Sync longlong.h with GCC
[deliverable/binutils-gdb.git] / Makefile.in
CommitLineData
405ea7a0
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
252b5132
RH
3#
4# Makefile for directory with subdirs to build.
5cec67bf 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
98dd765a 6# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
1b05fbbd 7# Free Software Foundation
252b5132
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
e8a5fa9c 11# the Free Software Foundation; either version 3 of the License, or
252b5132
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
e8a5fa9c
RW
20# along with this program; see the file COPYING3. If not see
21# <http://www.gnu.org/licenses/>.
252b5132
RH
22#
23
0bb6ea20
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
50212802
NN
32# -------------------------------
33# Standard Autoconf-set variables
34# -------------------------------
583d52d7 35VPATH=@srcdir@
583d52d7 36
c6b750e1 37build_alias=@build_noncanonical@
4b900473
PB
38build_vendor=@build_vendor@
39build_os=@build_os@
7f121bbf 40build=@build@
c6b750e1 41host_alias=@host_noncanonical@
4b900473
PB
42host_vendor=@host_vendor@
43host_os=@host_os@
7f121bbf 44host=@host@
c6b750e1 45target_alias=@target_noncanonical@
4b900473
PB
46target_vendor=@target_vendor@
47target_os=@target_os@
7f121bbf 48target=@target@
583d52d7 49
50212802 50program_transform_name = @program_transform_name@
403d9505
NN
51
52prefix = @prefix@
53exec_prefix = @exec_prefix@
54
50212802
NN
55srcdir = @srcdir@
56
403d9505
NN
57bindir = @bindir@
58sbindir = @sbindir@
59libexecdir = @libexecdir@
60datadir = @datadir@
61sysconfdir = @sysconfdir@
62sharedstatedir = @sharedstatedir@
63localstatedir = @localstatedir@
64libdir = @libdir@
65includedir = @includedir@
66oldincludedir = @oldincludedir@
67infodir = @infodir@
108a6f8e
CD
68datarootdir = @datarootdir@
69docdir = @docdir@
a3ca38d2 70pdfdir = @pdfdir@
108a6f8e 71htmldir = @htmldir@
403d9505 72mandir = @mandir@
252b5132
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
d5de0a84 82
e5c3f801
NN
83INSTALL = @INSTALL@
84INSTALL_PROGRAM = @INSTALL_PROGRAM@
85INSTALL_SCRIPT = @INSTALL_SCRIPT@
86INSTALL_DATA = @INSTALL_DATA@
656fdd47
PB
87LN = @LN@
88LN_S = @LN_S@
77d7106f
AM
89MAINT = @MAINT@
90MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
91MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
252b5132 92
50212802
NN
93# -------------------------------------------------
94# Miscellaneous non-standard autoconf-set variables
95# -------------------------------------------------
252b5132 96
50212802
NN
97# The gcc driver likes to know the arguments it was configured with.
98TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
252b5132 99
50212802
NN
100tooldir = @tooldir@
101build_tooldir = @build_tooldir@
252b5132 102
50212802
NN
103# This is the name of the environment variable used for the path to
104# the libraries.
105RPATH_ENVVAR = @RPATH_ENVVAR@
252b5132 106
3bbd2f8f
AL
107# On targets where RPATH_ENVVAR is PATH, a subdirectory of the GCC build path
108# is used instead of the directory itself to avoid including built
109# executables in PATH.
110GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@
111
50212802
NN
112# Build programs are put under this directory.
113BUILD_SUBDIR = @build_subdir@
114# This is set by the configure script to the arguments to use when configuring
115# directories built for the build system.
a7254363 116BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
6a9cf61e 117
e8a5fa9c
RW
118# Linker flags to use on the host, for stage1 or when not
119# bootstrapping.
120STAGE1_LDFLAGS = @stage1_ldflags@
121
122# Libraries to use on the host, for stage1 or when not bootstrapping.
123STAGE1_LIBS = @stage1_libs@
124
125# Linker flags to use for stage2 and later.
126POSTSTAGE1_LDFLAGS = @poststage1_ldflags@
127
128# Libraries to use for stage2 and later.
129POSTSTAGE1_LIBS = @poststage1_libs@
130
6a9cf61e
PB
131# This is the list of variables to export in the environment when
132# configuring any subdirectory. It must also be exported whenever
133# recursing into a build directory in case that directory's Makefile
134# re-runs configure.
135BASE_EXPORTS = \
136 FLEX="$(FLEX)"; export FLEX; \
137 LEX="$(LEX)"; export LEX; \
138 BISON="$(BISON)"; export BISON; \
139 YACC="$(YACC)"; export YACC; \
140 M4="$(M4)"; export M4; \
8e957354
PB
141 SED="$(SED)"; export SED; \
142 AWK="$(AWK)"; export AWK; \
6a9cf61e
PB
143 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
144
378fce5b 145# This is the list of variables to export in the environment when
6a9cf61e 146# configuring subdirectories for the build system.
378fce5b 147BUILD_EXPORTS = \
6a9cf61e 148 $(BASE_EXPORTS) \
378fce5b
DD
149 AR="$(AR_FOR_BUILD)"; export AR; \
150 AS="$(AS_FOR_BUILD)"; export AS; \
151 CC="$(CC_FOR_BUILD)"; export CC; \
152 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
153 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
154 CXX="$(CXX_FOR_BUILD)"; export CXX; \
155 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
156 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
157 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
e552509b
ILT
158 GOC="$(GOC_FOR_BUILD)"; export GOC; \
159 GOCFLAGS="$(GOCFLAGS_FOR_BUILD)"; export GOCFLAGS; \
378fce5b
DD
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; \
0c24b341
NC
165 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
166 WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
50212802 167
6641ce42 168# These variables must be set on the make command line for directories
2440009d 169# built for the build system to override those in BASE_FLAGS_TO_PASS.
6641ce42
JM
170EXTRA_BUILD_FLAGS = \
171 CFLAGS="$(CFLAGS_FOR_BUILD)" \
172 LDFLAGS="$(LDFLAGS_FOR_BUILD)"
173
50212802
NN
174# This is the list of directories to built for the host system.
175SUBDIRS = @configdirs@
911e63d0 176TARGET_CONFIGDIRS = @target_configdirs@
50212802
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@
b00612cc
PB
180# Host programs are put under this directory, which is . except if building
181# with srcdir=..
182HOST_SUBDIR = @host_subdir@
378fce5b 183# This is the list of variables to export in the environment when
be01d343
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.
378fce5b 186HOST_EXPORTS = \
6a9cf61e 187 $(BASE_EXPORTS) \
378fce5b 188 CC="$(CC)"; export CC; \
da888c87 189 ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \
378fce5b
DD
190 CFLAGS="$(CFLAGS)"; export CFLAGS; \
191 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
192 CXX="$(CXX)"; export CXX; \
193 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1b05fbbd
AO
194 GCJ="$(GCJ)"; export GCJ; \
195 GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \
9b980aa1 196 GOC="$(GOC)"; export GOC; \
378fce5b
DD
197 AR="$(AR)"; export AR; \
198 AS="$(AS)"; export AS; \
199 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
200 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
201 LD="$(LD)"; export LD; \
e8a5fa9c 202 LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \
378fce5b
DD
203 NM="$(NM)"; export NM; \
204 RANLIB="$(RANLIB)"; export RANLIB; \
205 WINDRES="$(WINDRES)"; export WINDRES; \
0c24b341 206 WINDMC="$(WINDMC)"; export WINDMC; \
378fce5b 207 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
95b6a1f2 208 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
b121d7d4 209 READELF="$(READELF)"; export READELF; \
be01d343
PB
210 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
211 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
212 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
213 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
214 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
215 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
6b91c541 216 OBJCOPY_FOR_TARGET="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY_FOR_TARGET; \
be01d343 217 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
b121d7d4 218 READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
378fce5b 219 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
e8a5fa9c 220 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \
378fce5b 221 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
315b3b02 222 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
1b6c0831 223 ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \
7ec59b9e 224 ISLINC="$(HOST_ISLINC)"; export ISLINC; \
700d40ca
ILT
225 LIBELFLIBS="$(HOST_LIBELFLIBS)" ; export LIBELFLIBS; \
226 LIBELFINC="$(HOST_LIBELFINC)" ; export LIBELFINC; \
f70224b5
PB
227@if gcc-bootstrap
228 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
229@endif gcc-bootstrap
e90269c8 230 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
378fce5b 231
1f53ca9a
AO
232POSTSTAGE1_CXX_EXPORT = \
233 CXX='$(CXX)'; export CXX; \
234 CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD;
235@if target-libstdc++-v3-bootstrap
236# Override the above if we're bootstrapping C++.
237POSTSTAGE1_CXX_EXPORT = \
d2489204 238 CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \
1f53ca9a 239 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
1d14850f 240 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
ffdd6afc 241 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
abca8d87 242 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
243 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
244 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$s/libstdc++-v3/libsupc++ \
ffdd6afc
ILT
245 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
246 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs"; \
247 export CXX; \
1f53ca9a
AO
248 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD;
249@endif target-libstdc++-v3-bootstrap
250
378fce5b 251# Similar, for later GCC stages.
d545f33b 252POSTSTAGE1_HOST_EXPORTS = \
7ffa0b57 253 $(HOST_EXPORTS) \
b00612cc 254 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
1b05fbbd
AO
255 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
256 $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
257 CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
1f53ca9a 258 $(POSTSTAGE1_CXX_EXPORT) \
1b6c0831 259 $(LTO_EXPORTS) \
e8a5fa9c
RW
260 GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
261 LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
262 HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
50212802 263
50212802
NN
264# Target libraries are put under this directory:
265TARGET_SUBDIR = @target_subdir@
266# This is set by the configure script to the arguments to use when configuring
267# directories built for the target.
a7254363 268TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
378fce5b 269# This is the list of variables to export in the environment when
f2b2dd91 270# configuring subdirectories for the target system.
378fce5b 271BASE_TARGET_EXPORTS = \
6a9cf61e 272 $(BASE_EXPORTS) \
378fce5b 273 AR="$(AR_FOR_TARGET)"; export AR; \
be01d343 274 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
1b05fbbd
AO
275 CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
276 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
378fce5b 277 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
06bcb89d 278 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
1b05fbbd
AO
279 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
280 GCJ="$(GCJ_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GCJ; \
281 GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \
e552509b 282 GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
378fce5b 283 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
be01d343 284 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
378fce5b 285 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7e0f7140 286 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
be01d343 287 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
5ae72758 288 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
6b91c541 289 OBJCOPY="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY; \
378fce5b 290 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
b121d7d4 291 READELF="$(READELF_FOR_TARGET)"; export READELF; \
7e0f7140 292 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
315b3b02 293 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
0c24b341 294 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
f2b2dd91
RW
295@if gcc-bootstrap
296 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
297@endif gcc-bootstrap
911e63d0
JR
298 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
299 TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
378fce5b
DD
300
301RAW_CXX_TARGET_EXPORTS = \
302 $(BASE_TARGET_EXPORTS) \
303 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
1b05fbbd 304 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
378fce5b
DD
305
306NORMAL_TARGET_EXPORTS = \
307 $(BASE_TARGET_EXPORTS) \
1b05fbbd 308 CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
50212802 309
4b1cb4fe
DD
310# Where to find GMP
311HOST_GMPLIBS = @gmplibs@
312HOST_GMPINC = @gmpinc@
313
7ec59b9e 314# Where to find ISL
1b6c0831 315HOST_ISLLIBS = @isllibs@
7ec59b9e 316HOST_ISLINC = @islinc@
e28c595f 317
700d40ca
ILT
318# Where to find libelf
319HOST_LIBELFLIBS = @libelflibs@
320HOST_LIBELFINC = @libelfinc@
321
ffdd6afc
ILT
322EXTRA_CONFIGARGS_LIBJAVA = @EXTRA_CONFIGARGS_LIBJAVA@
323
50212802
NN
324# ----------------------------------------------
325# Programs producing files for the BUILD machine
326# ----------------------------------------------
327
f6c1938b 328SHELL = @SHELL@
50212802
NN
329
330# pwd command to use. Allow user to override default by setting PWDCMD in
331# the environment to account for automounters. The make variable must not
332# be called PWDCMD, otherwise the value set here is passed to make
333# subprocesses and overrides the setting from the user's environment.
b40e3958
L
334# Don't use PWD since it is a common shell environment variable and we
335# don't want to corrupt it.
336PWD_COMMAND = $${PWDCMD-pwd}
50212802
NN
337
338# compilers to use to create programs which must be run in the build
339# environment.
b5714970
PB
340AR_FOR_BUILD = @AR_FOR_BUILD@
341AS_FOR_BUILD = @AS_FOR_BUILD@
50212802 342CC_FOR_BUILD = @CC_FOR_BUILD@
5fbad20a 343CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
b5714970
PB
344CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
345CXX_FOR_BUILD = @CXX_FOR_BUILD@
346DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
347GCJ_FOR_BUILD = @GCJ_FOR_BUILD@
348GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
9b980aa1 349GOC_FOR_BUILD = @GOC_FOR_BUILD@
b5714970
PB
350LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
351LD_FOR_BUILD = @LD_FOR_BUILD@
352NM_FOR_BUILD = @NM_FOR_BUILD@
353RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
354WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
355WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
50212802
NN
356
357# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
358# here so that they can be overridden by Makefile fragments.
50212802
NN
359BUILD_PREFIX = @BUILD_PREFIX@
360BUILD_PREFIX_1 = @BUILD_PREFIX_1@
252b5132 361
0df3d27f
PB
362# Flags to pass to stage2 and later makes. They are defined
363# here so that they can be overridden by Makefile fragments.
364BOOT_CFLAGS= -g -O2
f6d183c0 365BOOT_LDFLAGS=
d7b9dae9 366BOOT_ADAFLAGS= -gnatpg
0df3d27f 367
8e957354
PB
368AWK = @AWK@
369SED = @SED@
be01d343
PB
370BISON = @BISON@
371YACC = @YACC@
372FLEX = @FLEX@
373LEX = @LEX@
374M4 = @M4@
375MAKEINFO = @MAKEINFO@
376EXPECT = @EXPECT@
377RUNTEST = @RUNTEST@
252b5132
RH
378
379# This just becomes part of the MAKEINFO definition passed down to
380# sub-makes. It lets flags be given on the command line while still
381# using the makeinfo from the object tree.
62a3fc85
DD
382# (Default to avoid splitting info files by setting the threshold high.)
383MAKEINFOFLAGS = --split-size=5000000
252b5132 384
50212802
NN
385# ---------------------------------------------
386# Programs producing files for the HOST machine
387# ---------------------------------------------
252b5132 388
50212802 389AS = @AS@
50212802
NN
390AR = @AR@
391AR_FLAGS = rc
50212802 392CC = @CC@
50212802 393CXX = @CXX@
50212802 394DLLTOOL = @DLLTOOL@
50212802 395LD = @LD@
be01d343
PB
396LIPO = @LIPO@
397NM = @NM@
80911fe1 398OBJDUMP = @OBJDUMP@
50212802 399RANLIB = @RANLIB@
b121d7d4 400READELF = @READELF@
be01d343 401STRIP = @STRIP@
50212802 402WINDRES = @WINDRES@
0c24b341 403WINDMC = @WINDMC@
252b5132 404
a0323144
PB
405GNATBIND = @GNATBIND@
406GNATMAKE = @GNATMAKE@
407
be01d343 408CFLAGS = @CFLAGS@
b2edfdd2 409LDFLAGS = @LDFLAGS@
be01d343
PB
410LIBCFLAGS = $(CFLAGS)
411CXXFLAGS = @CXXFLAGS@
412LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
e552509b 413GOCFLAGS = $(CFLAGS)
50212802 414
1b05fbbd
AO
415TFLAGS =
416
417# Defaults for all stages; some are overridden below.
418
419STAGE_CFLAGS = $(BOOT_CFLAGS)
420STAGE_TFLAGS = $(TFLAGS)
421STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
422
423
424# Defaults for stage 1; some are overridden below.
425STAGE1_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
426STAGE1_CXXFLAGS = $(CXXFLAGS)
427@if target-libstdc++-v3-bootstrap
428# Override the above if we're bootstrapping C++.
429STAGE1_CXXFLAGS = $(STAGE1_CFLAGS)
430@endif target-libstdc++-v3-bootstrap
1b05fbbd 431STAGE1_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 432STAGE1_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
433
434# Defaults for stage 2; some are overridden below.
435STAGE2_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
436STAGE2_CXXFLAGS = $(CXXFLAGS)
437@if target-libstdc++-v3-bootstrap
438# Override the above if we're bootstrapping C++.
439STAGE2_CXXFLAGS = $(STAGE2_CFLAGS)
440@endif target-libstdc++-v3-bootstrap
1b05fbbd 441STAGE2_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 442STAGE2_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
443
444# Defaults for stage 3; some are overridden below.
445STAGE3_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
446STAGE3_CXXFLAGS = $(CXXFLAGS)
447@if target-libstdc++-v3-bootstrap
448# Override the above if we're bootstrapping C++.
449STAGE3_CXXFLAGS = $(STAGE3_CFLAGS)
450@endif target-libstdc++-v3-bootstrap
1b05fbbd 451STAGE3_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 452STAGE3_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
453
454# Defaults for stage 4; some are overridden below.
455STAGE4_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
456STAGE4_CXXFLAGS = $(CXXFLAGS)
457@if target-libstdc++-v3-bootstrap
458# Override the above if we're bootstrapping C++.
459STAGE4_CXXFLAGS = $(STAGE4_CFLAGS)
460@endif target-libstdc++-v3-bootstrap
1b05fbbd 461STAGE4_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 462STAGE4_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
463
464# Defaults for stage profile; some are overridden below.
465STAGEprofile_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
466STAGEprofile_CXXFLAGS = $(CXXFLAGS)
467@if target-libstdc++-v3-bootstrap
468# Override the above if we're bootstrapping C++.
469STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS)
470@endif target-libstdc++-v3-bootstrap
1b05fbbd 471STAGEprofile_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 472STAGEprofile_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
473
474# Defaults for stage feedback; some are overridden below.
475STAGEfeedback_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
476STAGEfeedback_CXXFLAGS = $(CXXFLAGS)
477@if target-libstdc++-v3-bootstrap
478# Override the above if we're bootstrapping C++.
479STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS)
480@endif target-libstdc++-v3-bootstrap
1b05fbbd 481STAGEfeedback_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 482STAGEfeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
483
484
8a0d8a5c
PB
485# Only build the C compiler for stage1, because that is the only one that
486# we can guarantee will build with the native compiler, and also it is the
487# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
488# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
489# overrideable (for a bootstrap build stage1 also builds gcc.info).
490
1b05fbbd 491STAGE1_CFLAGS = @stage1_cflags@
1f53ca9a
AO
492STAGE1_CHECKING = @stage1_checking@
493STAGE1_LANGUAGES = @stage1_languages@
1b05fbbd
AO
494# * We force-disable intermodule optimizations, even if
495# --enable-intermodule was passed, since the installed compiler
496# probably can't handle them. Luckily, autoconf always respects
497# the last argument when conflicting --enable arguments are passed.
498# * Likewise, we force-disable coverage flags, since the installed
499# compiler probably has never heard of them.
880b18d1 500# * We also disable -Wformat, since older GCCs don't understand newer %s.
1b05fbbd 501STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
880b18d1 502 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" \
503 --disable-build-format-warnings
8a0d8a5c 504
1b05fbbd
AO
505STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
506STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
8520c408 507
1b05fbbd
AO
508STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use
509STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS)
7f6ef0c0 510
8520c408
AO
511do-compare = @do_compare@
512do-compare3 = $(do-compare)
8520c408 513
50212802
NN
514# -----------------------------------------------
515# Programs producing files for the TARGET machine
516# -----------------------------------------------
0da52010 517
50212802 518AR_FOR_TARGET=@AR_FOR_TARGET@
852e5f18 519AS_FOR_TARGET=@AS_FOR_TARGET@
1b05fbbd 520CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
55db4b87 521
50212802
NN
522# If GCC_FOR_TARGET is not overriden on the command line, then this
523# variable is passed down to the gcc Makefile, where it is used to
524# build libgcc2.a. We define it here so that it can itself be
525# overridden on the command line.
1b05fbbd
AO
526GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
527CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
528RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
529GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@
530GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
e552509b 531GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
852e5f18 532DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
50212802 533LD_FOR_TARGET=@LD_FOR_TARGET@
50212802 534
7e0f7140 535LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
50212802 536NM_FOR_TARGET=@NM_FOR_TARGET@
5ae72758 537OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
6b91c541 538OBJCOPY_FOR_TARGET=@OBJCOPY_FOR_TARGET@
852e5f18 539RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
b121d7d4 540READELF_FOR_TARGET=@READELF_FOR_TARGET@
7e0f7140 541STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
50212802 542WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
0c24b341 543WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
252b5132 544
be01d343
PB
545COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
546COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
547COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
548
7f6ef0c0
PB
549CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
550CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
7f6ef0c0 551
be01d343
PB
552LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
553LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
91c1f14c 554LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
e552509b 555GOCFLAGS_FOR_TARGET = -O2 -g
50212802 556
1b05fbbd
AO
557FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
558SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
559DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
560
561XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
562
50212802
NN
563# ------------------------------------
564# Miscellaneous targets and flag lists
565# ------------------------------------
566
252b5132
RH
567# The first rule in the file had better be this one. Don't put any above it.
568# This lives here to allow makefile fragments to contain dependencies.
f70224b5 569all:
252b5132 570
252b5132 571#### host and target specific makefile fragments come in here.
a0da8069
NN
572@target_makefile_frag@
573@alphaieee_frag@
574@ospace_frag@
575@host_makefile_frag@
252b5132
RH
576###
577
e90269c8 578# This is the list of directories that may be needed in RPATH_ENVVAR
18a8530e 579# so that programs built for the target machine work.
1b6c0831 580TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libsanitizer)$(TARGET_LIB_PATH_libmpx)$(TARGET_LIB_PATH_libvtv)$(TARGET_LIB_PATH_libcilkrts)$(TARGET_LIB_PATH_liboffloadmic)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgomp)$(TARGET_LIB_PATH_libitm)$(TARGET_LIB_PATH_libatomic)$(HOST_LIB_PATH_gcc)
e90269c8
PB
581
582@if target-libstdc++-v3
18a8530e 583TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
e90269c8
PB
584@endif target-libstdc++-v3
585
5286fdef
L
586@if target-libsanitizer
587TARGET_LIB_PATH_libsanitizer = $$r/$(TARGET_SUBDIR)/libsanitizer/.libs:
588@endif target-libsanitizer
589
1b6c0831
L
590@if target-libmpx
591TARGET_LIB_PATH_libmpx = $$r/$(TARGET_SUBDIR)/libmpx/.libs:
592@endif target-libmpx
593
95e43135
JBG
594@if target-libvtv
595TARGET_LIB_PATH_libvtv = $$r/$(TARGET_SUBDIR)/libvtv/.libs:
596@endif target-libvtv
597
e78e02e6 598@if target-libcilkrts
599TARGET_LIB_PATH_libcilkrts = $$r/$(TARGET_SUBDIR)/libcilkrts/.libs:
600@endif target-libcilkrts
601
1b6c0831
L
602@if target-liboffloadmic
603TARGET_LIB_PATH_liboffloadmic = $$r/$(TARGET_SUBDIR)/liboffloadmic/.libs:
604@endif target-liboffloadmic
605
064d0a7c
PB
606@if target-libssp
607TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
608@endif target-libssp
609
b3ded179
PB
610@if target-libgomp
611TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
612@endif target-libgomp
613
7ec59b9e
L
614@if target-libitm
615TARGET_LIB_PATH_libitm = $$r/$(TARGET_SUBDIR)/libitm/.libs:
616@endif target-libitm
617
618@if target-libatomic
619TARGET_LIB_PATH_libatomic = $$r/$(TARGET_SUBDIR)/libatomic/.libs:
620@endif target-libatomic
621
e90269c8
PB
622
623
624# This is the list of directories that may be needed in RPATH_ENVVAR
625# so that programs built for the host machine work.
1b6c0831 626HOST_LIB_PATH = $(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_isl)$(HOST_LIB_PATH_libelf)
e90269c8
PB
627
628# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
629@if gcc
3bbd2f8f 630HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
e90269c8
PB
631@endif gcc
632
633
4b900473
PB
634@if gmp
635HOST_LIB_PATH_gmp = \
636 $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
637@endif gmp
638
639@if mpfr
640HOST_LIB_PATH_mpfr = \
641 $$r/$(HOST_SUBDIR)/mpfr/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/.libs:
642@endif mpfr
643
e8a5fa9c
RW
644@if mpc
645HOST_LIB_PATH_mpc = \
646 $$r/$(HOST_SUBDIR)/mpc/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/.libs:
647@endif mpc
648
7ec59b9e
L
649@if isl
650HOST_LIB_PATH_isl = \
651 $$r/$(HOST_SUBDIR)/isl/.libs:$$r/$(HOST_SUBDIR)/prev-isl/.libs:
652@endif isl
e28c595f 653
1f53ca9a
AO
654@if libelf
655HOST_LIB_PATH_libelf = \
656 $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
657@endif libelf
658
e90269c8 659
87cda2cf
AO
660CXX_FOR_TARGET_FLAG_TO_PASS = \
661 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
662@if target-libstdc++-v3
663# CXX_FOR_TARGET is tricky to get right for target libs that require a
664# functional C++ compiler. When we recurse, if we expand
665# CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
666# libstdc++ include flags from the script. Instead, we get an
667# -funconfigured-* word, so that we'll get errors if this invalid C++
668# command line is used for anything, but also so that we can use the
669# word to decide whether or not to pass on this CXX_FOR_TARGET. If we
670# don't pass it on, sub-make will use the default definition, that
671# re-expands it at the time of use, so we'll get it right when we need
672# it. One potential exception is the expansion of CXX_FOR_TARGET
673# passed down as part of CXX within TARGET_FLAGS, but this wouldn't
674# really work, for C++ host programs can't depend on the current-stage
675# C++ target library.
676CXX_FOR_TARGET_FLAG_TO_PASS = \
677 $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
678@endif target-libstdc++-v3
679
252b5132 680# Flags to pass down to all sub-makes.
252b5132 681BASE_FLAGS_TO_PASS = \
497f816e 682 "DESTDIR=$(DESTDIR)" \
252b5132 683 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
252b5132 684 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
252b5132
RH
685 "bindir=$(bindir)" \
686 "datadir=$(datadir)" \
687 "exec_prefix=$(exec_prefix)" \
688 "includedir=$(includedir)" \
108a6f8e
CD
689 "datarootdir=$(datarootdir)" \
690 "docdir=$(docdir)" \
252b5132 691 "infodir=$(infodir)" \
a3ca38d2 692 "pdfdir=$(pdfdir)" \
108a6f8e 693 "htmldir=$(htmldir)" \
252b5132
RH
694 "libdir=$(libdir)" \
695 "libexecdir=$(libexecdir)" \
696 "lispdir=$(lispdir)" \
697 "localstatedir=$(localstatedir)" \
698 "mandir=$(mandir)" \
699 "oldincludedir=$(oldincludedir)" \
700 "prefix=$(prefix)" \
701 "sbindir=$(sbindir)" \
702 "sharedstatedir=$(sharedstatedir)" \
703 "sysconfdir=$(sysconfdir)" \
704 "tooldir=$(tooldir)" \
ba73c63f 705 "build_tooldir=$(build_tooldir)" \
12f0bd74 706 "target_alias=$(target_alias)" \
8e957354 707 "AWK=$(AWK)" \
12f0bd74
NN
708 "BISON=$(BISON)" \
709 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
b2edd3b5 710 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
12f0bd74
NN
711 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
712 "EXPECT=$(EXPECT)" \
6a9cf61e 713 "FLEX=$(FLEX)" \
12f0bd74
NN
714 "INSTALL=$(INSTALL)" \
715 "INSTALL_DATA=$(INSTALL_DATA)" \
716 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
717 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
6641ce42 718 "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
12f0bd74
NN
719 "LEX=$(LEX)" \
720 "M4=$(M4)" \
721 "MAKE=$(MAKE)" \
722 "RUNTEST=$(RUNTEST)" \
723 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
8e957354 724 "SED=$(SED)" \
12f0bd74
NN
725 "SHELL=$(SHELL)" \
726 "YACC=$(YACC)" \
c52c6897 727 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
da888c87 728 "ADA_CFLAGS=$(ADA_CFLAGS)" \
12f0bd74 729 "AR_FLAGS=$(AR_FLAGS)" \
c52c6897 730 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
f6d183c0
PB
731 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
732 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
12f0bd74
NN
733 "CFLAGS=$(CFLAGS)" \
734 "CXXFLAGS=$(CXXFLAGS)" \
735 "LDFLAGS=$(LDFLAGS)" \
736 "LIBCFLAGS=$(LIBCFLAGS)" \
737 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
8a0d8a5c 738 "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
80911fe1 739 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
a0323144
PB
740 "GNATBIND=$(GNATBIND)" \
741 "GNATMAKE=$(GNATMAKE)" \
12f0bd74
NN
742 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
743 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
744 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
745 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
06bcb89d 746 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
12f0bd74
NN
747 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
748 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
1b05fbbd 749 "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
12f0bd74 750 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
4b1cb4fe 751 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
e552509b
ILT
752 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
753 "GOCFLAGS_FOR_TARGET=$(GOCFLAGS_FOR_TARGET)" \
12f0bd74 754 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
7e0f7140 755 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
414e5532 756 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
12f0bd74
NN
757 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
758 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
759 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
5ae72758 760 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
6b91c541 761 "OBJCOPY_FOR_TARGET=$(OBJCOPY_FOR_TARGET)" \
12f0bd74 762 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
b121d7d4 763 "READELF_FOR_TARGET=$(READELF_FOR_TARGET)" \
7e0f7140 764 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
12f0bd74 765 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
0c24b341 766 "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \
1b05fbbd 767 "BUILD_CONFIG=$(BUILD_CONFIG)" \
c52c6897 768 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
80911fe1 769 "LEAN=$(LEAN)" \
1b05fbbd 770 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
1f53ca9a 771 "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
772 "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \
773 "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
1f53ca9a 774 "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
775 "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \
776 "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
1f53ca9a 777 "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
778 "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \
779 "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
1f53ca9a 780 "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \
1b05fbbd
AO
781 "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \
782 "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \
1f53ca9a 783 "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
784 "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \
785 "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
1f53ca9a 786 "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd 787 "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
87cda2cf 788 $(CXX_FOR_TARGET_FLAG_TO_PASS) \
1b05fbbd 789 "TFLAGS=$(TFLAGS)" \
10ecffb9 790 "CONFIG_SHELL=$(SHELL)" \
12f0bd74 791 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
252b5132 792
55db4b87
PB
793# We leave this in just in case, but it is not needed anymore.
794RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
656fdd47 795
252b5132
RH
796# Flags to pass down to most sub-makes, in which we're building with
797# the host environment.
252b5132
RH
798EXTRA_HOST_FLAGS = \
799 'AR=$(AR)' \
800 'AS=$(AS)' \
801 'CC=$(CC)' \
802 'CXX=$(CXX)' \
803 'DLLTOOL=$(DLLTOOL)' \
1b05fbbd
AO
804 'GCJ=$(GCJ)' \
805 'GFORTRAN=$(GFORTRAN)' \
9b980aa1 806 'GOC=$(GOC)' \
252b5132 807 'LD=$(LD)' \
be01d343 808 'LIPO=$(LIPO)' \
252b5132 809 'NM=$(NM)' \
80911fe1 810 'OBJDUMP=$(OBJDUMP)' \
b9459e83 811 'RANLIB=$(RANLIB)' \
b121d7d4 812 'READELF=$(READELF)' \
be01d343 813 'STRIP=$(STRIP)' \
0c24b341
NC
814 'WINDRES=$(WINDRES)' \
815 'WINDMC=$(WINDMC)'
252b5132
RH
816
817FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
818
b3676d82
EB
819# Flags to pass to stage1 or when not bootstrapping.
820
821STAGE1_FLAGS_TO_PASS = \
822 LDFLAGS="$${LDFLAGS}" \
823 HOST_LIBS="$${HOST_LIBS}"
824
8a0d8a5c
PB
825# Flags to pass to stage2 and later makes.
826
827POSTSTAGE1_FLAGS_TO_PASS = \
e8a5fa9c
RW
828 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
829 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
830 GNATBIND="$${GNATBIND}" \
1f53ca9a
AO
831 LDFLAGS="$${LDFLAGS}" \
832 HOST_LIBS="$${HOST_LIBS}" \
1b6c0831 833 $(LTO_FLAGS_TO_PASS) \
8a0d8a5c
PB
834 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
835
f91ca6bc
IB
836@if gcc-bootstrap
837EXTRA_HOST_EXPORTS = if [ $(current_stage) != stage1 ]; then \
838 $(POSTSTAGE1_HOST_EXPORTS) \
839 fi ;
840
841EXTRA_BOOTSTRAP_FLAGS = CC="$$CC" CXX="$$CXX" LDFLAGS="$$LDFLAGS"
842@endif gcc-bootstrap
843
252b5132 844# Flags to pass down to makes which are built with the target environment.
0aed8855
PB
845# The double $ decreases the length of the command line; those variables
846# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
7f6ef0c0
PB
847# *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
848# so we expand them here.
252b5132
RH
849EXTRA_TARGET_FLAGS = \
850 'AR=$$(AR_FOR_TARGET)' \
0aed8855 851 'AS=$(COMPILER_AS_FOR_TARGET)' \
1b05fbbd
AO
852 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
853 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
1b6c0831
L
854 'CXX=$$(CXX_FOR_TARGET) -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
855 -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
856 $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
1b05fbbd 857 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
252b5132 858 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
1b05fbbd
AO
859 'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
860 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
9b980aa1 861 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
e552509b 862 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
0aed8855 863 'LD=$(COMPILER_LD_FOR_TARGET)' \
414e5532 864 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
1b05fbbd
AO
865 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
866 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
0aed8855 867 'NM=$(COMPILER_NM_FOR_TARGET)' \
5ae72758 868 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
6b91c541 869 'OBJCOPY=$$(OBJCOPY_FOR_TARGET)' \
252b5132 870 'RANLIB=$$(RANLIB_FOR_TARGET)' \
b121d7d4 871 'READELF=$$(READELF_FOR_TARGET)' \
0c24b341 872 'WINDRES=$$(WINDRES_FOR_TARGET)' \
1b05fbbd
AO
873 'WINDMC=$$(WINDMC_FOR_TARGET)' \
874 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
1b6c0831
L
875 'STAGE1_LDFLAGS=$$(POSTSTAGE1_LDFLAGS)' \
876 'STAGE1_LIBS=$$(POSTSTAGE1_LIBS)' \
1b05fbbd 877 "TFLAGS=$$TFLAGS"
252b5132
RH
878
879TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
880
881# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
882# unfortunately needs the native compiler and the target ar and
883# ranlib.
884# If any variables are added here, they must be added to do-*, below.
2a4cbe27 885# The BUILD_* variables are a special case, which are used for the gcc
252b5132
RH
886# cross-building scheme.
887EXTRA_GCC_FLAGS = \
252b5132 888 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
3dee29da 889 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
98dd765a 890 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
252b5132 891
f0b24077 892GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
252b5132 893
1b05fbbd 894@if gcc
96655cc4 895BUILD_CONFIG = @BUILD_CONFIG@
1b05fbbd
AO
896ifneq ($(BUILD_CONFIG),)
897include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
898endif
899@endif gcc
900
dd12c3a8 901.PHONY: configure-host
b813574b 902configure-host: \
dd12c3a8
NN
903 maybe-configure-bfd \
904 maybe-configure-opcodes \
905 maybe-configure-binutils \
906 maybe-configure-bison \
f9806fa5 907 maybe-configure-cgen \
dd12c3a8 908 maybe-configure-dejagnu \
dd12c3a8
NN
909 maybe-configure-etc \
910 maybe-configure-fastjar \
d3ed111c 911 maybe-configure-fixincludes \
dd12c3a8
NN
912 maybe-configure-flex \
913 maybe-configure-gas \
b813574b 914 maybe-configure-gcc \
4b900473
PB
915 maybe-configure-gmp \
916 maybe-configure-mpfr \
e8a5fa9c 917 maybe-configure-mpc \
7ec59b9e 918 maybe-configure-isl \
1f53ca9a 919 maybe-configure-libelf \
93f9b408 920 maybe-configure-gold \
dd12c3a8 921 maybe-configure-gprof \
dd12c3a8
NN
922 maybe-configure-intl \
923 maybe-configure-tcl \
924 maybe-configure-itcl \
925 maybe-configure-ld \
2bf680c4 926 maybe-configure-libbacktrace \
04cf1b77 927 maybe-configure-libcpp \
be01d343 928 maybe-configure-libdecnumber \
dd12c3a8
NN
929 maybe-configure-libgui \
930 maybe-configure-libiberty \
1b6c0831 931 maybe-configure-libiberty-linker-plugin \
dc448a7b 932 maybe-configure-libiconv \
dd12c3a8 933 maybe-configure-m4 \
dd12c3a8 934 maybe-configure-readline \
dd12c3a8
NN
935 maybe-configure-sid \
936 maybe-configure-sim \
dd12c3a8 937 maybe-configure-texinfo \
dd12c3a8
NN
938 maybe-configure-zlib \
939 maybe-configure-gdb \
940 maybe-configure-expect \
941 maybe-configure-guile \
942 maybe-configure-tk \
dd12c3a8 943 maybe-configure-libtermcap \
b00612cc 944 maybe-configure-utils \
700d40ca 945 maybe-configure-gnattools \
1b6c0831
L
946 maybe-configure-lto-plugin \
947 maybe-configure-libcc1 \
948 maybe-configure-gotools
dd12c3a8
NN
949.PHONY: configure-target
950configure-target: \
951 maybe-configure-target-libstdc++-v3 \
5286fdef 952 maybe-configure-target-libsanitizer \
1b6c0831 953 maybe-configure-target-libmpx \
95e43135 954 maybe-configure-target-libvtv \
e78e02e6 955 maybe-configure-target-libcilkrts \
1b6c0831 956 maybe-configure-target-liboffloadmic \
064d0a7c 957 maybe-configure-target-libssp \
dd12c3a8 958 maybe-configure-target-newlib \
6aa8ef82 959 maybe-configure-target-libgcc \
2bf680c4 960 maybe-configure-target-libbacktrace \
e552509b 961 maybe-configure-target-libquadmath \
4b1cb4fe 962 maybe-configure-target-libgfortran \
dd12c3a8 963 maybe-configure-target-libobjc \
e552509b 964 maybe-configure-target-libgo \
dd12c3a8
NN
965 maybe-configure-target-libtermcap \
966 maybe-configure-target-winsup \
967 maybe-configure-target-libgloss \
dd12c3a8
NN
968 maybe-configure-target-libffi \
969 maybe-configure-target-libjava \
970 maybe-configure-target-zlib \
971 maybe-configure-target-boehm-gc \
a2592b1b 972 maybe-configure-target-rda \
b3ded179 973 maybe-configure-target-libada \
7ec59b9e
L
974 maybe-configure-target-libgomp \
975 maybe-configure-target-libitm \
976 maybe-configure-target-libatomic
252b5132 977
319cab08
PB
978# The target built for a native non-bootstrap build.
979.PHONY: all
f70224b5
PB
980all:
981@if gcc-bootstrap
be01d343 982 [ -f stage_final ] || echo stage3 > stage_final
f70224b5
PB
983 @r=`${PWD_COMMAND}`; export r; \
984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
0aed8855 985 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
f70224b5 986@endif gcc-bootstrap
0aed8855 987 @: $(MAKE); $(unstage)
f70224b5
PB
988 @r=`${PWD_COMMAND}`; export r; \
989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 990@if gcc-bootstrap
b5233201 991 if [ -f stage_last ]; then \
07fc31c9 992 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
be01d343 993 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
f70224b5 994 else \
1b05fbbd 995@endif gcc-bootstrap
b5233201
AO
996 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
997@if gcc-bootstrap
998 ; \
04ec0acb 999 fi \
b5233201 1000@endif gcc-bootstrap
04ec0acb 1001 && :
6a9cf61e
PB
1002
1003.PHONY: all-build
c52c6897
PB
1004
1005all-build: maybe-all-build-libiberty
1006all-build: maybe-all-build-bison
c52c6897
PB
1007all-build: maybe-all-build-flex
1008all-build: maybe-all-build-m4
1009all-build: maybe-all-build-texinfo
1010all-build: maybe-all-build-fixincludes
1b6c0831 1011all-build: maybe-all-build-libcpp
c52c6897 1012
dd12c3a8 1013.PHONY: all-host
c52c6897 1014
c52c6897
PB
1015@if bfd-no-bootstrap
1016all-host: maybe-all-bfd
1017@endif bfd-no-bootstrap
1018@if opcodes-no-bootstrap
1019all-host: maybe-all-opcodes
1020@endif opcodes-no-bootstrap
1021@if binutils-no-bootstrap
1022all-host: maybe-all-binutils
1023@endif binutils-no-bootstrap
1024all-host: maybe-all-bison
f9806fa5 1025all-host: maybe-all-cgen
c52c6897 1026all-host: maybe-all-dejagnu
c52c6897
PB
1027all-host: maybe-all-etc
1028all-host: maybe-all-fastjar
201f096f 1029@if fixincludes-no-bootstrap
c52c6897 1030all-host: maybe-all-fixincludes
201f096f 1031@endif fixincludes-no-bootstrap
c52c6897
PB
1032all-host: maybe-all-flex
1033@if gas-no-bootstrap
1034all-host: maybe-all-gas
1035@endif gas-no-bootstrap
1036@if gcc-no-bootstrap
1037all-host: maybe-all-gcc
1038@endif gcc-no-bootstrap
4b900473
PB
1039@if gmp-no-bootstrap
1040all-host: maybe-all-gmp
1041@endif gmp-no-bootstrap
1042@if mpfr-no-bootstrap
1043all-host: maybe-all-mpfr
1044@endif mpfr-no-bootstrap
e8a5fa9c
RW
1045@if mpc-no-bootstrap
1046all-host: maybe-all-mpc
1047@endif mpc-no-bootstrap
7ec59b9e
L
1048@if isl-no-bootstrap
1049all-host: maybe-all-isl
1050@endif isl-no-bootstrap
1f53ca9a
AO
1051@if libelf-no-bootstrap
1052all-host: maybe-all-libelf
1053@endif libelf-no-bootstrap
93f9b408
ILT
1054@if gold-no-bootstrap
1055all-host: maybe-all-gold
1056@endif gold-no-bootstrap
c52c6897 1057all-host: maybe-all-gprof
c52c6897
PB
1058@if intl-no-bootstrap
1059all-host: maybe-all-intl
1060@endif intl-no-bootstrap
1061all-host: maybe-all-tcl
1062all-host: maybe-all-itcl
1063@if ld-no-bootstrap
1064all-host: maybe-all-ld
1065@endif ld-no-bootstrap
2bf680c4
ILT
1066@if libbacktrace-no-bootstrap
1067all-host: maybe-all-libbacktrace
1068@endif libbacktrace-no-bootstrap
c52c6897
PB
1069@if libcpp-no-bootstrap
1070all-host: maybe-all-libcpp
1071@endif libcpp-no-bootstrap
1072@if libdecnumber-no-bootstrap
1073all-host: maybe-all-libdecnumber
1074@endif libdecnumber-no-bootstrap
1075all-host: maybe-all-libgui
1076@if libiberty-no-bootstrap
1077all-host: maybe-all-libiberty
1078@endif libiberty-no-bootstrap
1b6c0831
L
1079@if libiberty-linker-plugin-no-bootstrap
1080all-host: maybe-all-libiberty-linker-plugin
1081@endif libiberty-linker-plugin-no-bootstrap
dc448a7b 1082all-host: maybe-all-libiconv
c52c6897 1083all-host: maybe-all-m4
c52c6897 1084all-host: maybe-all-readline
c52c6897
PB
1085all-host: maybe-all-sid
1086all-host: maybe-all-sim
c52c6897 1087all-host: maybe-all-texinfo
c52c6897
PB
1088@if zlib-no-bootstrap
1089all-host: maybe-all-zlib
1090@endif zlib-no-bootstrap
1091all-host: maybe-all-gdb
1092all-host: maybe-all-expect
1093all-host: maybe-all-guile
1094all-host: maybe-all-tk
1095all-host: maybe-all-libtermcap
1096all-host: maybe-all-utils
1097all-host: maybe-all-gnattools
700d40ca
ILT
1098@if lto-plugin-no-bootstrap
1099all-host: maybe-all-lto-plugin
1100@endif lto-plugin-no-bootstrap
1b6c0831
L
1101all-host: maybe-all-libcc1
1102all-host: maybe-all-gotools
c52c6897 1103
dd12c3a8 1104.PHONY: all-target
c52c6897 1105
e8a5fa9c 1106@if target-libstdc++-v3-no-bootstrap
c52c6897 1107all-target: maybe-all-target-libstdc++-v3
e8a5fa9c 1108@endif target-libstdc++-v3-no-bootstrap
5eb08693 1109@if target-libsanitizer-no-bootstrap
5286fdef 1110all-target: maybe-all-target-libsanitizer
5eb08693 1111@endif target-libsanitizer-no-bootstrap
1b6c0831
L
1112@if target-libmpx-no-bootstrap
1113all-target: maybe-all-target-libmpx
1114@endif target-libmpx-no-bootstrap
95e43135
JBG
1115@if target-libvtv-no-bootstrap
1116all-target: maybe-all-target-libvtv
1117@endif target-libvtv-no-bootstrap
e78e02e6 1118all-target: maybe-all-target-libcilkrts
1b6c0831 1119all-target: maybe-all-target-liboffloadmic
c52c6897 1120all-target: maybe-all-target-libssp
c52c6897 1121all-target: maybe-all-target-newlib
f86e35b8 1122@if target-libgcc-no-bootstrap
6aa8ef82 1123all-target: maybe-all-target-libgcc
f86e35b8 1124@endif target-libgcc-no-bootstrap
2bf680c4 1125all-target: maybe-all-target-libbacktrace
e552509b 1126all-target: maybe-all-target-libquadmath
c52c6897
PB
1127all-target: maybe-all-target-libgfortran
1128all-target: maybe-all-target-libobjc
e552509b 1129all-target: maybe-all-target-libgo
c52c6897
PB
1130all-target: maybe-all-target-libtermcap
1131all-target: maybe-all-target-winsup
1132all-target: maybe-all-target-libgloss
c52c6897
PB
1133all-target: maybe-all-target-libffi
1134all-target: maybe-all-target-libjava
1135all-target: maybe-all-target-zlib
1136all-target: maybe-all-target-boehm-gc
c52c6897
PB
1137all-target: maybe-all-target-rda
1138all-target: maybe-all-target-libada
911e63d0 1139@if target-libgomp-no-bootstrap
c52c6897 1140all-target: maybe-all-target-libgomp
911e63d0 1141@endif target-libgomp-no-bootstrap
7ec59b9e
L
1142all-target: maybe-all-target-libitm
1143all-target: maybe-all-target-libatomic
252b5132
RH
1144
1145# Do a target for all the subdirectories. A ``make do-X'' will do a
1146# ``make X'' in all subdirectories (because, in general, there is a
1147# dependency (below) of X upon do-X, a ``make X'' will also do this,
1148# but it may do additional work as well).
e393202e 1149
2a4cbe27 1150.PHONY: do-info
f70224b5 1151do-info:
0aed8855 1152 @: $(MAKE); $(unstage)
e360f423
PB
1153 @r=`${PWD_COMMAND}`; export r; \
1154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1155 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
f70224b5 1156 info-target
f70224b5 1157
e393202e 1158
2a4cbe27 1159.PHONY: info-host
c52c6897 1160
c52c6897
PB
1161info-host: maybe-info-bfd
1162info-host: maybe-info-opcodes
1163info-host: maybe-info-binutils
1164info-host: maybe-info-bison
f9806fa5 1165info-host: maybe-info-cgen
c52c6897 1166info-host: maybe-info-dejagnu
c52c6897
PB
1167info-host: maybe-info-etc
1168info-host: maybe-info-fastjar
c52c6897
PB
1169info-host: maybe-info-fixincludes
1170info-host: maybe-info-flex
1171info-host: maybe-info-gas
1172info-host: maybe-info-gcc
4b900473
PB
1173info-host: maybe-info-gmp
1174info-host: maybe-info-mpfr
e8a5fa9c 1175info-host: maybe-info-mpc
7ec59b9e 1176info-host: maybe-info-isl
1f53ca9a 1177info-host: maybe-info-libelf
93f9b408 1178info-host: maybe-info-gold
c52c6897 1179info-host: maybe-info-gprof
c52c6897
PB
1180info-host: maybe-info-intl
1181info-host: maybe-info-tcl
1182info-host: maybe-info-itcl
1183info-host: maybe-info-ld
2bf680c4 1184info-host: maybe-info-libbacktrace
c52c6897
PB
1185info-host: maybe-info-libcpp
1186info-host: maybe-info-libdecnumber
1187info-host: maybe-info-libgui
1188info-host: maybe-info-libiberty
1b6c0831 1189info-host: maybe-info-libiberty-linker-plugin
dc448a7b 1190info-host: maybe-info-libiconv
c52c6897 1191info-host: maybe-info-m4
c52c6897 1192info-host: maybe-info-readline
c52c6897
PB
1193info-host: maybe-info-sid
1194info-host: maybe-info-sim
c52c6897 1195info-host: maybe-info-texinfo
c52c6897
PB
1196info-host: maybe-info-zlib
1197info-host: maybe-info-gdb
1198info-host: maybe-info-expect
1199info-host: maybe-info-guile
1200info-host: maybe-info-tk
1201info-host: maybe-info-libtermcap
1202info-host: maybe-info-utils
1203info-host: maybe-info-gnattools
700d40ca 1204info-host: maybe-info-lto-plugin
1b6c0831
L
1205info-host: maybe-info-libcc1
1206info-host: maybe-info-gotools
252b5132 1207
2a4cbe27 1208.PHONY: info-target
c52c6897
PB
1209
1210info-target: maybe-info-target-libstdc++-v3
5286fdef 1211info-target: maybe-info-target-libsanitizer
1b6c0831 1212info-target: maybe-info-target-libmpx
95e43135 1213info-target: maybe-info-target-libvtv
e78e02e6 1214info-target: maybe-info-target-libcilkrts
1b6c0831 1215info-target: maybe-info-target-liboffloadmic
c52c6897 1216info-target: maybe-info-target-libssp
c52c6897 1217info-target: maybe-info-target-newlib
6aa8ef82 1218info-target: maybe-info-target-libgcc
2bf680c4 1219info-target: maybe-info-target-libbacktrace
e552509b 1220info-target: maybe-info-target-libquadmath
c52c6897
PB
1221info-target: maybe-info-target-libgfortran
1222info-target: maybe-info-target-libobjc
e552509b 1223info-target: maybe-info-target-libgo
c52c6897
PB
1224info-target: maybe-info-target-libtermcap
1225info-target: maybe-info-target-winsup
1226info-target: maybe-info-target-libgloss
c52c6897
PB
1227info-target: maybe-info-target-libffi
1228info-target: maybe-info-target-libjava
1229info-target: maybe-info-target-zlib
1230info-target: maybe-info-target-boehm-gc
c52c6897
PB
1231info-target: maybe-info-target-rda
1232info-target: maybe-info-target-libada
1233info-target: maybe-info-target-libgomp
7ec59b9e
L
1234info-target: maybe-info-target-libitm
1235info-target: maybe-info-target-libatomic
252b5132 1236
4fa63067 1237.PHONY: do-dvi
f70224b5 1238do-dvi:
0aed8855 1239 @: $(MAKE); $(unstage)
e360f423
PB
1240 @r=`${PWD_COMMAND}`; export r; \
1241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1242 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
f70224b5 1243 dvi-target
f70224b5 1244
2a4cbe27 1245
4fa63067 1246.PHONY: dvi-host
c52c6897 1247
c52c6897
PB
1248dvi-host: maybe-dvi-bfd
1249dvi-host: maybe-dvi-opcodes
1250dvi-host: maybe-dvi-binutils
1251dvi-host: maybe-dvi-bison
f9806fa5 1252dvi-host: maybe-dvi-cgen
c52c6897 1253dvi-host: maybe-dvi-dejagnu
c52c6897
PB
1254dvi-host: maybe-dvi-etc
1255dvi-host: maybe-dvi-fastjar
c52c6897
PB
1256dvi-host: maybe-dvi-fixincludes
1257dvi-host: maybe-dvi-flex
1258dvi-host: maybe-dvi-gas
1259dvi-host: maybe-dvi-gcc
4b900473
PB
1260dvi-host: maybe-dvi-gmp
1261dvi-host: maybe-dvi-mpfr
e8a5fa9c 1262dvi-host: maybe-dvi-mpc
7ec59b9e 1263dvi-host: maybe-dvi-isl
1f53ca9a 1264dvi-host: maybe-dvi-libelf
93f9b408 1265dvi-host: maybe-dvi-gold
c52c6897 1266dvi-host: maybe-dvi-gprof
c52c6897
PB
1267dvi-host: maybe-dvi-intl
1268dvi-host: maybe-dvi-tcl
1269dvi-host: maybe-dvi-itcl
1270dvi-host: maybe-dvi-ld
2bf680c4 1271dvi-host: maybe-dvi-libbacktrace
c52c6897
PB
1272dvi-host: maybe-dvi-libcpp
1273dvi-host: maybe-dvi-libdecnumber
1274dvi-host: maybe-dvi-libgui
1275dvi-host: maybe-dvi-libiberty
1b6c0831 1276dvi-host: maybe-dvi-libiberty-linker-plugin
dc448a7b 1277dvi-host: maybe-dvi-libiconv
c52c6897 1278dvi-host: maybe-dvi-m4
c52c6897 1279dvi-host: maybe-dvi-readline
c52c6897
PB
1280dvi-host: maybe-dvi-sid
1281dvi-host: maybe-dvi-sim
c52c6897 1282dvi-host: maybe-dvi-texinfo
c52c6897
PB
1283dvi-host: maybe-dvi-zlib
1284dvi-host: maybe-dvi-gdb
1285dvi-host: maybe-dvi-expect
1286dvi-host: maybe-dvi-guile
1287dvi-host: maybe-dvi-tk
1288dvi-host: maybe-dvi-libtermcap
1289dvi-host: maybe-dvi-utils
1290dvi-host: maybe-dvi-gnattools
700d40ca 1291dvi-host: maybe-dvi-lto-plugin
1b6c0831
L
1292dvi-host: maybe-dvi-libcc1
1293dvi-host: maybe-dvi-gotools
2a4cbe27 1294
4fa63067 1295.PHONY: dvi-target
c52c6897
PB
1296
1297dvi-target: maybe-dvi-target-libstdc++-v3
5286fdef 1298dvi-target: maybe-dvi-target-libsanitizer
1b6c0831 1299dvi-target: maybe-dvi-target-libmpx
95e43135 1300dvi-target: maybe-dvi-target-libvtv
e78e02e6 1301dvi-target: maybe-dvi-target-libcilkrts
1b6c0831 1302dvi-target: maybe-dvi-target-liboffloadmic
c52c6897 1303dvi-target: maybe-dvi-target-libssp
c52c6897 1304dvi-target: maybe-dvi-target-newlib
6aa8ef82 1305dvi-target: maybe-dvi-target-libgcc
2bf680c4 1306dvi-target: maybe-dvi-target-libbacktrace
e552509b 1307dvi-target: maybe-dvi-target-libquadmath
c52c6897
PB
1308dvi-target: maybe-dvi-target-libgfortran
1309dvi-target: maybe-dvi-target-libobjc
e552509b 1310dvi-target: maybe-dvi-target-libgo
c52c6897
PB
1311dvi-target: maybe-dvi-target-libtermcap
1312dvi-target: maybe-dvi-target-winsup
1313dvi-target: maybe-dvi-target-libgloss
c52c6897
PB
1314dvi-target: maybe-dvi-target-libffi
1315dvi-target: maybe-dvi-target-libjava
1316dvi-target: maybe-dvi-target-zlib
1317dvi-target: maybe-dvi-target-boehm-gc
c52c6897
PB
1318dvi-target: maybe-dvi-target-rda
1319dvi-target: maybe-dvi-target-libada
1320dvi-target: maybe-dvi-target-libgomp
7ec59b9e
L
1321dvi-target: maybe-dvi-target-libitm
1322dvi-target: maybe-dvi-target-libatomic
2a4cbe27 1323
56a8fe78
DD
1324.PHONY: do-pdf
1325do-pdf:
1326 @: $(MAKE); $(unstage)
1327 @r=`${PWD_COMMAND}`; export r; \
1328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1329 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1330 pdf-target
1331
1332
1333.PHONY: pdf-host
1334
56a8fe78
DD
1335pdf-host: maybe-pdf-bfd
1336pdf-host: maybe-pdf-opcodes
1337pdf-host: maybe-pdf-binutils
1338pdf-host: maybe-pdf-bison
f9806fa5 1339pdf-host: maybe-pdf-cgen
56a8fe78 1340pdf-host: maybe-pdf-dejagnu
56a8fe78
DD
1341pdf-host: maybe-pdf-etc
1342pdf-host: maybe-pdf-fastjar
56a8fe78
DD
1343pdf-host: maybe-pdf-fixincludes
1344pdf-host: maybe-pdf-flex
1345pdf-host: maybe-pdf-gas
1346pdf-host: maybe-pdf-gcc
4b900473
PB
1347pdf-host: maybe-pdf-gmp
1348pdf-host: maybe-pdf-mpfr
e8a5fa9c 1349pdf-host: maybe-pdf-mpc
7ec59b9e 1350pdf-host: maybe-pdf-isl
1f53ca9a 1351pdf-host: maybe-pdf-libelf
93f9b408 1352pdf-host: maybe-pdf-gold
56a8fe78 1353pdf-host: maybe-pdf-gprof
56a8fe78
DD
1354pdf-host: maybe-pdf-intl
1355pdf-host: maybe-pdf-tcl
1356pdf-host: maybe-pdf-itcl
1357pdf-host: maybe-pdf-ld
2bf680c4 1358pdf-host: maybe-pdf-libbacktrace
56a8fe78
DD
1359pdf-host: maybe-pdf-libcpp
1360pdf-host: maybe-pdf-libdecnumber
1361pdf-host: maybe-pdf-libgui
1362pdf-host: maybe-pdf-libiberty
1b6c0831 1363pdf-host: maybe-pdf-libiberty-linker-plugin
dc448a7b 1364pdf-host: maybe-pdf-libiconv
56a8fe78 1365pdf-host: maybe-pdf-m4
56a8fe78 1366pdf-host: maybe-pdf-readline
56a8fe78
DD
1367pdf-host: maybe-pdf-sid
1368pdf-host: maybe-pdf-sim
56a8fe78 1369pdf-host: maybe-pdf-texinfo
56a8fe78
DD
1370pdf-host: maybe-pdf-zlib
1371pdf-host: maybe-pdf-gdb
1372pdf-host: maybe-pdf-expect
1373pdf-host: maybe-pdf-guile
1374pdf-host: maybe-pdf-tk
1375pdf-host: maybe-pdf-libtermcap
1376pdf-host: maybe-pdf-utils
1377pdf-host: maybe-pdf-gnattools
700d40ca 1378pdf-host: maybe-pdf-lto-plugin
1b6c0831
L
1379pdf-host: maybe-pdf-libcc1
1380pdf-host: maybe-pdf-gotools
56a8fe78
DD
1381
1382.PHONY: pdf-target
1383
1384pdf-target: maybe-pdf-target-libstdc++-v3
5286fdef 1385pdf-target: maybe-pdf-target-libsanitizer
1b6c0831 1386pdf-target: maybe-pdf-target-libmpx
95e43135 1387pdf-target: maybe-pdf-target-libvtv
e78e02e6 1388pdf-target: maybe-pdf-target-libcilkrts
1b6c0831 1389pdf-target: maybe-pdf-target-liboffloadmic
56a8fe78
DD
1390pdf-target: maybe-pdf-target-libssp
1391pdf-target: maybe-pdf-target-newlib
6aa8ef82 1392pdf-target: maybe-pdf-target-libgcc
2bf680c4 1393pdf-target: maybe-pdf-target-libbacktrace
e552509b 1394pdf-target: maybe-pdf-target-libquadmath
56a8fe78
DD
1395pdf-target: maybe-pdf-target-libgfortran
1396pdf-target: maybe-pdf-target-libobjc
e552509b 1397pdf-target: maybe-pdf-target-libgo
56a8fe78
DD
1398pdf-target: maybe-pdf-target-libtermcap
1399pdf-target: maybe-pdf-target-winsup
1400pdf-target: maybe-pdf-target-libgloss
56a8fe78
DD
1401pdf-target: maybe-pdf-target-libffi
1402pdf-target: maybe-pdf-target-libjava
1403pdf-target: maybe-pdf-target-zlib
1404pdf-target: maybe-pdf-target-boehm-gc
56a8fe78
DD
1405pdf-target: maybe-pdf-target-rda
1406pdf-target: maybe-pdf-target-libada
1407pdf-target: maybe-pdf-target-libgomp
7ec59b9e
L
1408pdf-target: maybe-pdf-target-libitm
1409pdf-target: maybe-pdf-target-libatomic
56a8fe78 1410
6d389afc 1411.PHONY: do-html
f70224b5 1412do-html:
0aed8855 1413 @: $(MAKE); $(unstage)
e360f423
PB
1414 @r=`${PWD_COMMAND}`; export r; \
1415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1416 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
f70224b5 1417 html-target
f70224b5 1418
6d389afc
MS
1419
1420.PHONY: html-host
c52c6897 1421
c52c6897
PB
1422html-host: maybe-html-bfd
1423html-host: maybe-html-opcodes
1424html-host: maybe-html-binutils
1425html-host: maybe-html-bison
f9806fa5 1426html-host: maybe-html-cgen
c52c6897 1427html-host: maybe-html-dejagnu
c52c6897
PB
1428html-host: maybe-html-etc
1429html-host: maybe-html-fastjar
c52c6897
PB
1430html-host: maybe-html-fixincludes
1431html-host: maybe-html-flex
1432html-host: maybe-html-gas
1433html-host: maybe-html-gcc
4b900473
PB
1434html-host: maybe-html-gmp
1435html-host: maybe-html-mpfr
e8a5fa9c 1436html-host: maybe-html-mpc
7ec59b9e 1437html-host: maybe-html-isl
1f53ca9a 1438html-host: maybe-html-libelf
93f9b408 1439html-host: maybe-html-gold
c52c6897 1440html-host: maybe-html-gprof
c52c6897
PB
1441html-host: maybe-html-intl
1442html-host: maybe-html-tcl
1443html-host: maybe-html-itcl
1444html-host: maybe-html-ld
2bf680c4 1445html-host: maybe-html-libbacktrace
c52c6897
PB
1446html-host: maybe-html-libcpp
1447html-host: maybe-html-libdecnumber
1448html-host: maybe-html-libgui
1449html-host: maybe-html-libiberty
1b6c0831 1450html-host: maybe-html-libiberty-linker-plugin
dc448a7b 1451html-host: maybe-html-libiconv
c52c6897 1452html-host: maybe-html-m4
c52c6897 1453html-host: maybe-html-readline
c52c6897
PB
1454html-host: maybe-html-sid
1455html-host: maybe-html-sim
c52c6897 1456html-host: maybe-html-texinfo
c52c6897
PB
1457html-host: maybe-html-zlib
1458html-host: maybe-html-gdb
1459html-host: maybe-html-expect
1460html-host: maybe-html-guile
1461html-host: maybe-html-tk
1462html-host: maybe-html-libtermcap
1463html-host: maybe-html-utils
1464html-host: maybe-html-gnattools
700d40ca 1465html-host: maybe-html-lto-plugin
1b6c0831
L
1466html-host: maybe-html-libcc1
1467html-host: maybe-html-gotools
6d389afc
MS
1468
1469.PHONY: html-target
c52c6897
PB
1470
1471html-target: maybe-html-target-libstdc++-v3
5286fdef 1472html-target: maybe-html-target-libsanitizer
1b6c0831 1473html-target: maybe-html-target-libmpx
95e43135 1474html-target: maybe-html-target-libvtv
e78e02e6 1475html-target: maybe-html-target-libcilkrts
1b6c0831 1476html-target: maybe-html-target-liboffloadmic
c52c6897 1477html-target: maybe-html-target-libssp
c52c6897 1478html-target: maybe-html-target-newlib
6aa8ef82 1479html-target: maybe-html-target-libgcc
2bf680c4 1480html-target: maybe-html-target-libbacktrace
e552509b 1481html-target: maybe-html-target-libquadmath
c52c6897
PB
1482html-target: maybe-html-target-libgfortran
1483html-target: maybe-html-target-libobjc
e552509b 1484html-target: maybe-html-target-libgo
c52c6897
PB
1485html-target: maybe-html-target-libtermcap
1486html-target: maybe-html-target-winsup
1487html-target: maybe-html-target-libgloss
c52c6897
PB
1488html-target: maybe-html-target-libffi
1489html-target: maybe-html-target-libjava
1490html-target: maybe-html-target-zlib
1491html-target: maybe-html-target-boehm-gc
c52c6897
PB
1492html-target: maybe-html-target-rda
1493html-target: maybe-html-target-libada
1494html-target: maybe-html-target-libgomp
7ec59b9e
L
1495html-target: maybe-html-target-libitm
1496html-target: maybe-html-target-libatomic
6d389afc 1497
4fa63067 1498.PHONY: do-TAGS
f70224b5 1499do-TAGS:
0aed8855 1500 @: $(MAKE); $(unstage)
e360f423
PB
1501 @r=`${PWD_COMMAND}`; export r; \
1502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1503 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
f70224b5 1504 TAGS-target
f70224b5 1505
2a4cbe27 1506
4fa63067 1507.PHONY: TAGS-host
c52c6897 1508
c52c6897
PB
1509TAGS-host: maybe-TAGS-bfd
1510TAGS-host: maybe-TAGS-opcodes
1511TAGS-host: maybe-TAGS-binutils
1512TAGS-host: maybe-TAGS-bison
f9806fa5 1513TAGS-host: maybe-TAGS-cgen
c52c6897 1514TAGS-host: maybe-TAGS-dejagnu
c52c6897
PB
1515TAGS-host: maybe-TAGS-etc
1516TAGS-host: maybe-TAGS-fastjar
c52c6897
PB
1517TAGS-host: maybe-TAGS-fixincludes
1518TAGS-host: maybe-TAGS-flex
1519TAGS-host: maybe-TAGS-gas
1520TAGS-host: maybe-TAGS-gcc
4b900473
PB
1521TAGS-host: maybe-TAGS-gmp
1522TAGS-host: maybe-TAGS-mpfr
e8a5fa9c 1523TAGS-host: maybe-TAGS-mpc
7ec59b9e 1524TAGS-host: maybe-TAGS-isl
1f53ca9a 1525TAGS-host: maybe-TAGS-libelf
93f9b408 1526TAGS-host: maybe-TAGS-gold
c52c6897 1527TAGS-host: maybe-TAGS-gprof
c52c6897
PB
1528TAGS-host: maybe-TAGS-intl
1529TAGS-host: maybe-TAGS-tcl
1530TAGS-host: maybe-TAGS-itcl
1531TAGS-host: maybe-TAGS-ld
2bf680c4 1532TAGS-host: maybe-TAGS-libbacktrace
c52c6897
PB
1533TAGS-host: maybe-TAGS-libcpp
1534TAGS-host: maybe-TAGS-libdecnumber
1535TAGS-host: maybe-TAGS-libgui
1536TAGS-host: maybe-TAGS-libiberty
1b6c0831 1537TAGS-host: maybe-TAGS-libiberty-linker-plugin
dc448a7b 1538TAGS-host: maybe-TAGS-libiconv
c52c6897 1539TAGS-host: maybe-TAGS-m4
c52c6897 1540TAGS-host: maybe-TAGS-readline
c52c6897
PB
1541TAGS-host: maybe-TAGS-sid
1542TAGS-host: maybe-TAGS-sim
c52c6897 1543TAGS-host: maybe-TAGS-texinfo
c52c6897
PB
1544TAGS-host: maybe-TAGS-zlib
1545TAGS-host: maybe-TAGS-gdb
1546TAGS-host: maybe-TAGS-expect
1547TAGS-host: maybe-TAGS-guile
1548TAGS-host: maybe-TAGS-tk
1549TAGS-host: maybe-TAGS-libtermcap
1550TAGS-host: maybe-TAGS-utils
1551TAGS-host: maybe-TAGS-gnattools
700d40ca 1552TAGS-host: maybe-TAGS-lto-plugin
1b6c0831
L
1553TAGS-host: maybe-TAGS-libcc1
1554TAGS-host: maybe-TAGS-gotools
2a4cbe27 1555
4fa63067 1556.PHONY: TAGS-target
c52c6897
PB
1557
1558TAGS-target: maybe-TAGS-target-libstdc++-v3
5286fdef 1559TAGS-target: maybe-TAGS-target-libsanitizer
1b6c0831 1560TAGS-target: maybe-TAGS-target-libmpx
95e43135 1561TAGS-target: maybe-TAGS-target-libvtv
e78e02e6 1562TAGS-target: maybe-TAGS-target-libcilkrts
1b6c0831 1563TAGS-target: maybe-TAGS-target-liboffloadmic
c52c6897 1564TAGS-target: maybe-TAGS-target-libssp
c52c6897 1565TAGS-target: maybe-TAGS-target-newlib
6aa8ef82 1566TAGS-target: maybe-TAGS-target-libgcc
2bf680c4 1567TAGS-target: maybe-TAGS-target-libbacktrace
e552509b 1568TAGS-target: maybe-TAGS-target-libquadmath
c52c6897
PB
1569TAGS-target: maybe-TAGS-target-libgfortran
1570TAGS-target: maybe-TAGS-target-libobjc
e552509b 1571TAGS-target: maybe-TAGS-target-libgo
c52c6897
PB
1572TAGS-target: maybe-TAGS-target-libtermcap
1573TAGS-target: maybe-TAGS-target-winsup
1574TAGS-target: maybe-TAGS-target-libgloss
c52c6897
PB
1575TAGS-target: maybe-TAGS-target-libffi
1576TAGS-target: maybe-TAGS-target-libjava
1577TAGS-target: maybe-TAGS-target-zlib
1578TAGS-target: maybe-TAGS-target-boehm-gc
c52c6897
PB
1579TAGS-target: maybe-TAGS-target-rda
1580TAGS-target: maybe-TAGS-target-libada
1581TAGS-target: maybe-TAGS-target-libgomp
7ec59b9e
L
1582TAGS-target: maybe-TAGS-target-libitm
1583TAGS-target: maybe-TAGS-target-libatomic
a2592b1b 1584
4fa63067 1585.PHONY: do-install-info
f70224b5 1586do-install-info:
0aed8855 1587 @: $(MAKE); $(unstage)
e360f423
PB
1588 @r=`${PWD_COMMAND}`; export r; \
1589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1590 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
f70224b5 1591 install-info-target
f70224b5 1592
a2592b1b 1593
4fa63067 1594.PHONY: install-info-host
c52c6897 1595
c52c6897
PB
1596install-info-host: maybe-install-info-bfd
1597install-info-host: maybe-install-info-opcodes
1598install-info-host: maybe-install-info-binutils
1599install-info-host: maybe-install-info-bison
f9806fa5 1600install-info-host: maybe-install-info-cgen
c52c6897 1601install-info-host: maybe-install-info-dejagnu
c52c6897
PB
1602install-info-host: maybe-install-info-etc
1603install-info-host: maybe-install-info-fastjar
c52c6897
PB
1604install-info-host: maybe-install-info-fixincludes
1605install-info-host: maybe-install-info-flex
1606install-info-host: maybe-install-info-gas
1607install-info-host: maybe-install-info-gcc
4b900473
PB
1608install-info-host: maybe-install-info-gmp
1609install-info-host: maybe-install-info-mpfr
e8a5fa9c 1610install-info-host: maybe-install-info-mpc
7ec59b9e 1611install-info-host: maybe-install-info-isl
1f53ca9a 1612install-info-host: maybe-install-info-libelf
93f9b408 1613install-info-host: maybe-install-info-gold
c52c6897 1614install-info-host: maybe-install-info-gprof
c52c6897
PB
1615install-info-host: maybe-install-info-intl
1616install-info-host: maybe-install-info-tcl
1617install-info-host: maybe-install-info-itcl
1618install-info-host: maybe-install-info-ld
2bf680c4 1619install-info-host: maybe-install-info-libbacktrace
c52c6897
PB
1620install-info-host: maybe-install-info-libcpp
1621install-info-host: maybe-install-info-libdecnumber
1622install-info-host: maybe-install-info-libgui
1623install-info-host: maybe-install-info-libiberty
1b6c0831 1624install-info-host: maybe-install-info-libiberty-linker-plugin
dc448a7b 1625install-info-host: maybe-install-info-libiconv
c52c6897 1626install-info-host: maybe-install-info-m4
c52c6897 1627install-info-host: maybe-install-info-readline
c52c6897
PB
1628install-info-host: maybe-install-info-sid
1629install-info-host: maybe-install-info-sim
c52c6897 1630install-info-host: maybe-install-info-texinfo
c52c6897
PB
1631install-info-host: maybe-install-info-zlib
1632install-info-host: maybe-install-info-gdb
1633install-info-host: maybe-install-info-expect
1634install-info-host: maybe-install-info-guile
1635install-info-host: maybe-install-info-tk
1636install-info-host: maybe-install-info-libtermcap
1637install-info-host: maybe-install-info-utils
1638install-info-host: maybe-install-info-gnattools
700d40ca 1639install-info-host: maybe-install-info-lto-plugin
1b6c0831
L
1640install-info-host: maybe-install-info-libcc1
1641install-info-host: maybe-install-info-gotools
a2592b1b 1642
4fa63067 1643.PHONY: install-info-target
c52c6897
PB
1644
1645install-info-target: maybe-install-info-target-libstdc++-v3
5286fdef 1646install-info-target: maybe-install-info-target-libsanitizer
1b6c0831 1647install-info-target: maybe-install-info-target-libmpx
95e43135 1648install-info-target: maybe-install-info-target-libvtv
e78e02e6 1649install-info-target: maybe-install-info-target-libcilkrts
1b6c0831 1650install-info-target: maybe-install-info-target-liboffloadmic
c52c6897 1651install-info-target: maybe-install-info-target-libssp
c52c6897 1652install-info-target: maybe-install-info-target-newlib
6aa8ef82 1653install-info-target: maybe-install-info-target-libgcc
2bf680c4 1654install-info-target: maybe-install-info-target-libbacktrace
e552509b 1655install-info-target: maybe-install-info-target-libquadmath
c52c6897
PB
1656install-info-target: maybe-install-info-target-libgfortran
1657install-info-target: maybe-install-info-target-libobjc
e552509b 1658install-info-target: maybe-install-info-target-libgo
c52c6897
PB
1659install-info-target: maybe-install-info-target-libtermcap
1660install-info-target: maybe-install-info-target-winsup
1661install-info-target: maybe-install-info-target-libgloss
c52c6897
PB
1662install-info-target: maybe-install-info-target-libffi
1663install-info-target: maybe-install-info-target-libjava
1664install-info-target: maybe-install-info-target-zlib
1665install-info-target: maybe-install-info-target-boehm-gc
c52c6897
PB
1666install-info-target: maybe-install-info-target-rda
1667install-info-target: maybe-install-info-target-libada
1668install-info-target: maybe-install-info-target-libgomp
7ec59b9e
L
1669install-info-target: maybe-install-info-target-libitm
1670install-info-target: maybe-install-info-target-libatomic
2a4cbe27 1671
a3ca38d2
DD
1672.PHONY: do-install-pdf
1673do-install-pdf:
1674 @: $(MAKE); $(unstage)
1675 @r=`${PWD_COMMAND}`; export r; \
1676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1677 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1678 install-pdf-target
1679
1680
1681.PHONY: install-pdf-host
1682
a3ca38d2
DD
1683install-pdf-host: maybe-install-pdf-bfd
1684install-pdf-host: maybe-install-pdf-opcodes
1685install-pdf-host: maybe-install-pdf-binutils
1686install-pdf-host: maybe-install-pdf-bison
f9806fa5 1687install-pdf-host: maybe-install-pdf-cgen
a3ca38d2 1688install-pdf-host: maybe-install-pdf-dejagnu
a3ca38d2
DD
1689install-pdf-host: maybe-install-pdf-etc
1690install-pdf-host: maybe-install-pdf-fastjar
a3ca38d2
DD
1691install-pdf-host: maybe-install-pdf-fixincludes
1692install-pdf-host: maybe-install-pdf-flex
1693install-pdf-host: maybe-install-pdf-gas
1694install-pdf-host: maybe-install-pdf-gcc
a3ca38d2
DD
1695install-pdf-host: maybe-install-pdf-gmp
1696install-pdf-host: maybe-install-pdf-mpfr
e8a5fa9c 1697install-pdf-host: maybe-install-pdf-mpc
7ec59b9e 1698install-pdf-host: maybe-install-pdf-isl
1f53ca9a 1699install-pdf-host: maybe-install-pdf-libelf
93f9b408 1700install-pdf-host: maybe-install-pdf-gold
a3ca38d2 1701install-pdf-host: maybe-install-pdf-gprof
a3ca38d2
DD
1702install-pdf-host: maybe-install-pdf-intl
1703install-pdf-host: maybe-install-pdf-tcl
1704install-pdf-host: maybe-install-pdf-itcl
1705install-pdf-host: maybe-install-pdf-ld
2bf680c4 1706install-pdf-host: maybe-install-pdf-libbacktrace
a3ca38d2
DD
1707install-pdf-host: maybe-install-pdf-libcpp
1708install-pdf-host: maybe-install-pdf-libdecnumber
1709install-pdf-host: maybe-install-pdf-libgui
1710install-pdf-host: maybe-install-pdf-libiberty
1b6c0831 1711install-pdf-host: maybe-install-pdf-libiberty-linker-plugin
dc448a7b 1712install-pdf-host: maybe-install-pdf-libiconv
a3ca38d2 1713install-pdf-host: maybe-install-pdf-m4
a3ca38d2 1714install-pdf-host: maybe-install-pdf-readline
a3ca38d2
DD
1715install-pdf-host: maybe-install-pdf-sid
1716install-pdf-host: maybe-install-pdf-sim
a3ca38d2 1717install-pdf-host: maybe-install-pdf-texinfo
a3ca38d2
DD
1718install-pdf-host: maybe-install-pdf-zlib
1719install-pdf-host: maybe-install-pdf-gdb
1720install-pdf-host: maybe-install-pdf-expect
1721install-pdf-host: maybe-install-pdf-guile
1722install-pdf-host: maybe-install-pdf-tk
1723install-pdf-host: maybe-install-pdf-libtermcap
1724install-pdf-host: maybe-install-pdf-utils
1725install-pdf-host: maybe-install-pdf-gnattools
700d40ca 1726install-pdf-host: maybe-install-pdf-lto-plugin
1b6c0831
L
1727install-pdf-host: maybe-install-pdf-libcc1
1728install-pdf-host: maybe-install-pdf-gotools
a3ca38d2
DD
1729
1730.PHONY: install-pdf-target
1731
1732install-pdf-target: maybe-install-pdf-target-libstdc++-v3
5286fdef 1733install-pdf-target: maybe-install-pdf-target-libsanitizer
1b6c0831 1734install-pdf-target: maybe-install-pdf-target-libmpx
95e43135 1735install-pdf-target: maybe-install-pdf-target-libvtv
e78e02e6 1736install-pdf-target: maybe-install-pdf-target-libcilkrts
1b6c0831 1737install-pdf-target: maybe-install-pdf-target-liboffloadmic
a3ca38d2
DD
1738install-pdf-target: maybe-install-pdf-target-libssp
1739install-pdf-target: maybe-install-pdf-target-newlib
1740install-pdf-target: maybe-install-pdf-target-libgcc
2bf680c4 1741install-pdf-target: maybe-install-pdf-target-libbacktrace
e552509b 1742install-pdf-target: maybe-install-pdf-target-libquadmath
a3ca38d2
DD
1743install-pdf-target: maybe-install-pdf-target-libgfortran
1744install-pdf-target: maybe-install-pdf-target-libobjc
e552509b 1745install-pdf-target: maybe-install-pdf-target-libgo
a3ca38d2
DD
1746install-pdf-target: maybe-install-pdf-target-libtermcap
1747install-pdf-target: maybe-install-pdf-target-winsup
1748install-pdf-target: maybe-install-pdf-target-libgloss
a3ca38d2
DD
1749install-pdf-target: maybe-install-pdf-target-libffi
1750install-pdf-target: maybe-install-pdf-target-libjava
1751install-pdf-target: maybe-install-pdf-target-zlib
1752install-pdf-target: maybe-install-pdf-target-boehm-gc
a3ca38d2
DD
1753install-pdf-target: maybe-install-pdf-target-rda
1754install-pdf-target: maybe-install-pdf-target-libada
1755install-pdf-target: maybe-install-pdf-target-libgomp
7ec59b9e
L
1756install-pdf-target: maybe-install-pdf-target-libitm
1757install-pdf-target: maybe-install-pdf-target-libatomic
a3ca38d2 1758
108a6f8e
CD
1759.PHONY: do-install-html
1760do-install-html:
1761 @: $(MAKE); $(unstage)
1762 @r=`${PWD_COMMAND}`; export r; \
1763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1764 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1765 install-html-target
1766
1767
1768.PHONY: install-html-host
1769
108a6f8e
CD
1770install-html-host: maybe-install-html-bfd
1771install-html-host: maybe-install-html-opcodes
1772install-html-host: maybe-install-html-binutils
1773install-html-host: maybe-install-html-bison
f9806fa5 1774install-html-host: maybe-install-html-cgen
108a6f8e 1775install-html-host: maybe-install-html-dejagnu
108a6f8e
CD
1776install-html-host: maybe-install-html-etc
1777install-html-host: maybe-install-html-fastjar
108a6f8e
CD
1778install-html-host: maybe-install-html-fixincludes
1779install-html-host: maybe-install-html-flex
1780install-html-host: maybe-install-html-gas
1781install-html-host: maybe-install-html-gcc
4b900473
PB
1782install-html-host: maybe-install-html-gmp
1783install-html-host: maybe-install-html-mpfr
e8a5fa9c 1784install-html-host: maybe-install-html-mpc
7ec59b9e 1785install-html-host: maybe-install-html-isl
1f53ca9a 1786install-html-host: maybe-install-html-libelf
93f9b408 1787install-html-host: maybe-install-html-gold
108a6f8e 1788install-html-host: maybe-install-html-gprof
108a6f8e
CD
1789install-html-host: maybe-install-html-intl
1790install-html-host: maybe-install-html-tcl
1791install-html-host: maybe-install-html-itcl
1792install-html-host: maybe-install-html-ld
2bf680c4 1793install-html-host: maybe-install-html-libbacktrace
108a6f8e
CD
1794install-html-host: maybe-install-html-libcpp
1795install-html-host: maybe-install-html-libdecnumber
1796install-html-host: maybe-install-html-libgui
1797install-html-host: maybe-install-html-libiberty
1b6c0831 1798install-html-host: maybe-install-html-libiberty-linker-plugin
dc448a7b 1799install-html-host: maybe-install-html-libiconv
108a6f8e 1800install-html-host: maybe-install-html-m4
108a6f8e 1801install-html-host: maybe-install-html-readline
108a6f8e
CD
1802install-html-host: maybe-install-html-sid
1803install-html-host: maybe-install-html-sim
108a6f8e 1804install-html-host: maybe-install-html-texinfo
108a6f8e
CD
1805install-html-host: maybe-install-html-zlib
1806install-html-host: maybe-install-html-gdb
1807install-html-host: maybe-install-html-expect
1808install-html-host: maybe-install-html-guile
1809install-html-host: maybe-install-html-tk
1810install-html-host: maybe-install-html-libtermcap
1811install-html-host: maybe-install-html-utils
1812install-html-host: maybe-install-html-gnattools
700d40ca 1813install-html-host: maybe-install-html-lto-plugin
1b6c0831
L
1814install-html-host: maybe-install-html-libcc1
1815install-html-host: maybe-install-html-gotools
108a6f8e
CD
1816
1817.PHONY: install-html-target
1818
1819install-html-target: maybe-install-html-target-libstdc++-v3
5286fdef 1820install-html-target: maybe-install-html-target-libsanitizer
1b6c0831 1821install-html-target: maybe-install-html-target-libmpx
95e43135 1822install-html-target: maybe-install-html-target-libvtv
e78e02e6 1823install-html-target: maybe-install-html-target-libcilkrts
1b6c0831 1824install-html-target: maybe-install-html-target-liboffloadmic
108a6f8e 1825install-html-target: maybe-install-html-target-libssp
108a6f8e 1826install-html-target: maybe-install-html-target-newlib
6aa8ef82 1827install-html-target: maybe-install-html-target-libgcc
2bf680c4 1828install-html-target: maybe-install-html-target-libbacktrace
e552509b 1829install-html-target: maybe-install-html-target-libquadmath
108a6f8e
CD
1830install-html-target: maybe-install-html-target-libgfortran
1831install-html-target: maybe-install-html-target-libobjc
e552509b 1832install-html-target: maybe-install-html-target-libgo
108a6f8e
CD
1833install-html-target: maybe-install-html-target-libtermcap
1834install-html-target: maybe-install-html-target-winsup
1835install-html-target: maybe-install-html-target-libgloss
108a6f8e
CD
1836install-html-target: maybe-install-html-target-libffi
1837install-html-target: maybe-install-html-target-libjava
1838install-html-target: maybe-install-html-target-zlib
1839install-html-target: maybe-install-html-target-boehm-gc
108a6f8e
CD
1840install-html-target: maybe-install-html-target-rda
1841install-html-target: maybe-install-html-target-libada
1842install-html-target: maybe-install-html-target-libgomp
7ec59b9e
L
1843install-html-target: maybe-install-html-target-libitm
1844install-html-target: maybe-install-html-target-libatomic
108a6f8e 1845
2a4cbe27 1846.PHONY: do-installcheck
f70224b5 1847do-installcheck:
0aed8855 1848 @: $(MAKE); $(unstage)
e360f423
PB
1849 @r=`${PWD_COMMAND}`; export r; \
1850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1851 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
f70224b5 1852 installcheck-target
f70224b5 1853
2a4cbe27
NN
1854
1855.PHONY: installcheck-host
c52c6897 1856
c52c6897
PB
1857installcheck-host: maybe-installcheck-bfd
1858installcheck-host: maybe-installcheck-opcodes
1859installcheck-host: maybe-installcheck-binutils
1860installcheck-host: maybe-installcheck-bison
f9806fa5 1861installcheck-host: maybe-installcheck-cgen
c52c6897 1862installcheck-host: maybe-installcheck-dejagnu
c52c6897
PB
1863installcheck-host: maybe-installcheck-etc
1864installcheck-host: maybe-installcheck-fastjar
c52c6897
PB
1865installcheck-host: maybe-installcheck-fixincludes
1866installcheck-host: maybe-installcheck-flex
1867installcheck-host: maybe-installcheck-gas
1868installcheck-host: maybe-installcheck-gcc
4b900473
PB
1869installcheck-host: maybe-installcheck-gmp
1870installcheck-host: maybe-installcheck-mpfr
e8a5fa9c 1871installcheck-host: maybe-installcheck-mpc
7ec59b9e 1872installcheck-host: maybe-installcheck-isl
1f53ca9a 1873installcheck-host: maybe-installcheck-libelf
93f9b408 1874installcheck-host: maybe-installcheck-gold
c52c6897 1875installcheck-host: maybe-installcheck-gprof
c52c6897
PB
1876installcheck-host: maybe-installcheck-intl
1877installcheck-host: maybe-installcheck-tcl
1878installcheck-host: maybe-installcheck-itcl
1879installcheck-host: maybe-installcheck-ld
2bf680c4 1880installcheck-host: maybe-installcheck-libbacktrace
c52c6897
PB
1881installcheck-host: maybe-installcheck-libcpp
1882installcheck-host: maybe-installcheck-libdecnumber
1883installcheck-host: maybe-installcheck-libgui
1884installcheck-host: maybe-installcheck-libiberty
1b6c0831 1885installcheck-host: maybe-installcheck-libiberty-linker-plugin
dc448a7b 1886installcheck-host: maybe-installcheck-libiconv
c52c6897 1887installcheck-host: maybe-installcheck-m4
c52c6897 1888installcheck-host: maybe-installcheck-readline
c52c6897
PB
1889installcheck-host: maybe-installcheck-sid
1890installcheck-host: maybe-installcheck-sim
c52c6897 1891installcheck-host: maybe-installcheck-texinfo
c52c6897
PB
1892installcheck-host: maybe-installcheck-zlib
1893installcheck-host: maybe-installcheck-gdb
1894installcheck-host: maybe-installcheck-expect
1895installcheck-host: maybe-installcheck-guile
1896installcheck-host: maybe-installcheck-tk
1897installcheck-host: maybe-installcheck-libtermcap
1898installcheck-host: maybe-installcheck-utils
1899installcheck-host: maybe-installcheck-gnattools
700d40ca 1900installcheck-host: maybe-installcheck-lto-plugin
1b6c0831
L
1901installcheck-host: maybe-installcheck-libcc1
1902installcheck-host: maybe-installcheck-gotools
2a4cbe27
NN
1903
1904.PHONY: installcheck-target
c52c6897
PB
1905
1906installcheck-target: maybe-installcheck-target-libstdc++-v3
5286fdef 1907installcheck-target: maybe-installcheck-target-libsanitizer
1b6c0831 1908installcheck-target: maybe-installcheck-target-libmpx
95e43135 1909installcheck-target: maybe-installcheck-target-libvtv
e78e02e6 1910installcheck-target: maybe-installcheck-target-libcilkrts
1b6c0831 1911installcheck-target: maybe-installcheck-target-liboffloadmic
c52c6897 1912installcheck-target: maybe-installcheck-target-libssp
c52c6897 1913installcheck-target: maybe-installcheck-target-newlib
6aa8ef82 1914installcheck-target: maybe-installcheck-target-libgcc
2bf680c4 1915installcheck-target: maybe-installcheck-target-libbacktrace
e552509b 1916installcheck-target: maybe-installcheck-target-libquadmath
c52c6897
PB
1917installcheck-target: maybe-installcheck-target-libgfortran
1918installcheck-target: maybe-installcheck-target-libobjc
e552509b 1919installcheck-target: maybe-installcheck-target-libgo
c52c6897
PB
1920installcheck-target: maybe-installcheck-target-libtermcap
1921installcheck-target: maybe-installcheck-target-winsup
1922installcheck-target: maybe-installcheck-target-libgloss
c52c6897
PB
1923installcheck-target: maybe-installcheck-target-libffi
1924installcheck-target: maybe-installcheck-target-libjava
1925installcheck-target: maybe-installcheck-target-zlib
1926installcheck-target: maybe-installcheck-target-boehm-gc
c52c6897
PB
1927installcheck-target: maybe-installcheck-target-rda
1928installcheck-target: maybe-installcheck-target-libada
1929installcheck-target: maybe-installcheck-target-libgomp
7ec59b9e
L
1930installcheck-target: maybe-installcheck-target-libitm
1931installcheck-target: maybe-installcheck-target-libatomic
2a4cbe27 1932
4fa63067 1933.PHONY: do-mostlyclean
f70224b5 1934do-mostlyclean:
0aed8855 1935 @: $(MAKE); $(unstage)
e360f423
PB
1936 @r=`${PWD_COMMAND}`; export r; \
1937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1938 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
f70224b5 1939 mostlyclean-target
f70224b5 1940
2a4cbe27 1941
4fa63067 1942.PHONY: mostlyclean-host
c52c6897 1943
c52c6897
PB
1944mostlyclean-host: maybe-mostlyclean-bfd
1945mostlyclean-host: maybe-mostlyclean-opcodes
1946mostlyclean-host: maybe-mostlyclean-binutils
1947mostlyclean-host: maybe-mostlyclean-bison
f9806fa5 1948mostlyclean-host: maybe-mostlyclean-cgen
c52c6897 1949mostlyclean-host: maybe-mostlyclean-dejagnu
c52c6897
PB
1950mostlyclean-host: maybe-mostlyclean-etc
1951mostlyclean-host: maybe-mostlyclean-fastjar
c52c6897
PB
1952mostlyclean-host: maybe-mostlyclean-fixincludes
1953mostlyclean-host: maybe-mostlyclean-flex
1954mostlyclean-host: maybe-mostlyclean-gas
1955mostlyclean-host: maybe-mostlyclean-gcc
4b900473
PB
1956mostlyclean-host: maybe-mostlyclean-gmp
1957mostlyclean-host: maybe-mostlyclean-mpfr
e8a5fa9c 1958mostlyclean-host: maybe-mostlyclean-mpc
7ec59b9e 1959mostlyclean-host: maybe-mostlyclean-isl
1f53ca9a 1960mostlyclean-host: maybe-mostlyclean-libelf
93f9b408 1961mostlyclean-host: maybe-mostlyclean-gold
c52c6897 1962mostlyclean-host: maybe-mostlyclean-gprof
c52c6897
PB
1963mostlyclean-host: maybe-mostlyclean-intl
1964mostlyclean-host: maybe-mostlyclean-tcl
1965mostlyclean-host: maybe-mostlyclean-itcl
1966mostlyclean-host: maybe-mostlyclean-ld
2bf680c4 1967mostlyclean-host: maybe-mostlyclean-libbacktrace
c52c6897
PB
1968mostlyclean-host: maybe-mostlyclean-libcpp
1969mostlyclean-host: maybe-mostlyclean-libdecnumber
1970mostlyclean-host: maybe-mostlyclean-libgui
1971mostlyclean-host: maybe-mostlyclean-libiberty
1b6c0831 1972mostlyclean-host: maybe-mostlyclean-libiberty-linker-plugin
dc448a7b 1973mostlyclean-host: maybe-mostlyclean-libiconv
c52c6897 1974mostlyclean-host: maybe-mostlyclean-m4
c52c6897 1975mostlyclean-host: maybe-mostlyclean-readline
c52c6897
PB
1976mostlyclean-host: maybe-mostlyclean-sid
1977mostlyclean-host: maybe-mostlyclean-sim
c52c6897 1978mostlyclean-host: maybe-mostlyclean-texinfo
c52c6897
PB
1979mostlyclean-host: maybe-mostlyclean-zlib
1980mostlyclean-host: maybe-mostlyclean-gdb
1981mostlyclean-host: maybe-mostlyclean-expect
1982mostlyclean-host: maybe-mostlyclean-guile
1983mostlyclean-host: maybe-mostlyclean-tk
1984mostlyclean-host: maybe-mostlyclean-libtermcap
1985mostlyclean-host: maybe-mostlyclean-utils
1986mostlyclean-host: maybe-mostlyclean-gnattools
700d40ca 1987mostlyclean-host: maybe-mostlyclean-lto-plugin
1b6c0831
L
1988mostlyclean-host: maybe-mostlyclean-libcc1
1989mostlyclean-host: maybe-mostlyclean-gotools
2a4cbe27 1990
4fa63067 1991.PHONY: mostlyclean-target
c52c6897
PB
1992
1993mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
5286fdef 1994mostlyclean-target: maybe-mostlyclean-target-libsanitizer
1b6c0831 1995mostlyclean-target: maybe-mostlyclean-target-libmpx
95e43135 1996mostlyclean-target: maybe-mostlyclean-target-libvtv
e78e02e6 1997mostlyclean-target: maybe-mostlyclean-target-libcilkrts
1b6c0831 1998mostlyclean-target: maybe-mostlyclean-target-liboffloadmic
c52c6897 1999mostlyclean-target: maybe-mostlyclean-target-libssp
c52c6897 2000mostlyclean-target: maybe-mostlyclean-target-newlib
6aa8ef82 2001mostlyclean-target: maybe-mostlyclean-target-libgcc
2bf680c4 2002mostlyclean-target: maybe-mostlyclean-target-libbacktrace
e552509b 2003mostlyclean-target: maybe-mostlyclean-target-libquadmath
c52c6897
PB
2004mostlyclean-target: maybe-mostlyclean-target-libgfortran
2005mostlyclean-target: maybe-mostlyclean-target-libobjc
e552509b 2006mostlyclean-target: maybe-mostlyclean-target-libgo
c52c6897
PB
2007mostlyclean-target: maybe-mostlyclean-target-libtermcap
2008mostlyclean-target: maybe-mostlyclean-target-winsup
2009mostlyclean-target: maybe-mostlyclean-target-libgloss
c52c6897
PB
2010mostlyclean-target: maybe-mostlyclean-target-libffi
2011mostlyclean-target: maybe-mostlyclean-target-libjava
2012mostlyclean-target: maybe-mostlyclean-target-zlib
2013mostlyclean-target: maybe-mostlyclean-target-boehm-gc
c52c6897
PB
2014mostlyclean-target: maybe-mostlyclean-target-rda
2015mostlyclean-target: maybe-mostlyclean-target-libada
2016mostlyclean-target: maybe-mostlyclean-target-libgomp
7ec59b9e
L
2017mostlyclean-target: maybe-mostlyclean-target-libitm
2018mostlyclean-target: maybe-mostlyclean-target-libatomic
2a4cbe27 2019
4fa63067 2020.PHONY: do-clean
f70224b5 2021do-clean:
0aed8855 2022 @: $(MAKE); $(unstage)
e360f423
PB
2023 @r=`${PWD_COMMAND}`; export r; \
2024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2025 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
f70224b5 2026 clean-target
f70224b5 2027
2a4cbe27 2028
4fa63067 2029.PHONY: clean-host
c52c6897 2030
c52c6897
PB
2031clean-host: maybe-clean-bfd
2032clean-host: maybe-clean-opcodes
2033clean-host: maybe-clean-binutils
2034clean-host: maybe-clean-bison
f9806fa5 2035clean-host: maybe-clean-cgen
c52c6897 2036clean-host: maybe-clean-dejagnu
c52c6897
PB
2037clean-host: maybe-clean-etc
2038clean-host: maybe-clean-fastjar
c52c6897
PB
2039clean-host: maybe-clean-fixincludes
2040clean-host: maybe-clean-flex
2041clean-host: maybe-clean-gas
2042clean-host: maybe-clean-gcc
4b900473
PB
2043clean-host: maybe-clean-gmp
2044clean-host: maybe-clean-mpfr
e8a5fa9c 2045clean-host: maybe-clean-mpc
7ec59b9e 2046clean-host: maybe-clean-isl
1f53ca9a 2047clean-host: maybe-clean-libelf
93f9b408 2048clean-host: maybe-clean-gold
c52c6897 2049clean-host: maybe-clean-gprof
c52c6897
PB
2050clean-host: maybe-clean-intl
2051clean-host: maybe-clean-tcl
2052clean-host: maybe-clean-itcl
2053clean-host: maybe-clean-ld
2bf680c4 2054clean-host: maybe-clean-libbacktrace
c52c6897
PB
2055clean-host: maybe-clean-libcpp
2056clean-host: maybe-clean-libdecnumber
2057clean-host: maybe-clean-libgui
2058clean-host: maybe-clean-libiberty
1b6c0831 2059clean-host: maybe-clean-libiberty-linker-plugin
dc448a7b 2060clean-host: maybe-clean-libiconv
c52c6897 2061clean-host: maybe-clean-m4
c52c6897 2062clean-host: maybe-clean-readline
c52c6897
PB
2063clean-host: maybe-clean-sid
2064clean-host: maybe-clean-sim
c52c6897 2065clean-host: maybe-clean-texinfo
c52c6897
PB
2066clean-host: maybe-clean-zlib
2067clean-host: maybe-clean-gdb
2068clean-host: maybe-clean-expect
2069clean-host: maybe-clean-guile
2070clean-host: maybe-clean-tk
2071clean-host: maybe-clean-libtermcap
2072clean-host: maybe-clean-utils
2073clean-host: maybe-clean-gnattools
700d40ca 2074clean-host: maybe-clean-lto-plugin
1b6c0831
L
2075clean-host: maybe-clean-libcc1
2076clean-host: maybe-clean-gotools
2a4cbe27 2077
4fa63067 2078.PHONY: clean-target
c52c6897
PB
2079
2080clean-target: maybe-clean-target-libstdc++-v3
5286fdef 2081clean-target: maybe-clean-target-libsanitizer
1b6c0831 2082clean-target: maybe-clean-target-libmpx
95e43135 2083clean-target: maybe-clean-target-libvtv
e78e02e6 2084clean-target: maybe-clean-target-libcilkrts
1b6c0831 2085clean-target: maybe-clean-target-liboffloadmic
c52c6897 2086clean-target: maybe-clean-target-libssp
c52c6897 2087clean-target: maybe-clean-target-newlib
6aa8ef82 2088clean-target: maybe-clean-target-libgcc
2bf680c4 2089clean-target: maybe-clean-target-libbacktrace
e552509b 2090clean-target: maybe-clean-target-libquadmath
c52c6897
PB
2091clean-target: maybe-clean-target-libgfortran
2092clean-target: maybe-clean-target-libobjc
e552509b 2093clean-target: maybe-clean-target-libgo
c52c6897
PB
2094clean-target: maybe-clean-target-libtermcap
2095clean-target: maybe-clean-target-winsup
2096clean-target: maybe-clean-target-libgloss
c52c6897
PB
2097clean-target: maybe-clean-target-libffi
2098clean-target: maybe-clean-target-libjava
2099clean-target: maybe-clean-target-zlib
2100clean-target: maybe-clean-target-boehm-gc
c52c6897
PB
2101clean-target: maybe-clean-target-rda
2102clean-target: maybe-clean-target-libada
2103clean-target: maybe-clean-target-libgomp
7ec59b9e
L
2104clean-target: maybe-clean-target-libitm
2105clean-target: maybe-clean-target-libatomic
2a4cbe27 2106
4fa63067 2107.PHONY: do-distclean
f70224b5 2108do-distclean:
0aed8855 2109 @: $(MAKE); $(unstage)
e360f423
PB
2110 @r=`${PWD_COMMAND}`; export r; \
2111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2112 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
f70224b5 2113 distclean-target
f70224b5 2114
2a4cbe27 2115
4fa63067 2116.PHONY: distclean-host
c52c6897 2117
c52c6897
PB
2118distclean-host: maybe-distclean-bfd
2119distclean-host: maybe-distclean-opcodes
2120distclean-host: maybe-distclean-binutils
2121distclean-host: maybe-distclean-bison
f9806fa5 2122distclean-host: maybe-distclean-cgen
c52c6897 2123distclean-host: maybe-distclean-dejagnu
c52c6897
PB
2124distclean-host: maybe-distclean-etc
2125distclean-host: maybe-distclean-fastjar
c52c6897
PB
2126distclean-host: maybe-distclean-fixincludes
2127distclean-host: maybe-distclean-flex
2128distclean-host: maybe-distclean-gas
2129distclean-host: maybe-distclean-gcc
4b900473
PB
2130distclean-host: maybe-distclean-gmp
2131distclean-host: maybe-distclean-mpfr
e8a5fa9c 2132distclean-host: maybe-distclean-mpc
7ec59b9e 2133distclean-host: maybe-distclean-isl
1f53ca9a 2134distclean-host: maybe-distclean-libelf
93f9b408 2135distclean-host: maybe-distclean-gold
c52c6897 2136distclean-host: maybe-distclean-gprof
c52c6897
PB
2137distclean-host: maybe-distclean-intl
2138distclean-host: maybe-distclean-tcl
2139distclean-host: maybe-distclean-itcl
2140distclean-host: maybe-distclean-ld
2bf680c4 2141distclean-host: maybe-distclean-libbacktrace
c52c6897
PB
2142distclean-host: maybe-distclean-libcpp
2143distclean-host: maybe-distclean-libdecnumber
2144distclean-host: maybe-distclean-libgui
2145distclean-host: maybe-distclean-libiberty
1b6c0831 2146distclean-host: maybe-distclean-libiberty-linker-plugin
dc448a7b 2147distclean-host: maybe-distclean-libiconv
c52c6897 2148distclean-host: maybe-distclean-m4
c52c6897 2149distclean-host: maybe-distclean-readline
c52c6897
PB
2150distclean-host: maybe-distclean-sid
2151distclean-host: maybe-distclean-sim
c52c6897 2152distclean-host: maybe-distclean-texinfo
c52c6897
PB
2153distclean-host: maybe-distclean-zlib
2154distclean-host: maybe-distclean-gdb
2155distclean-host: maybe-distclean-expect
2156distclean-host: maybe-distclean-guile
2157distclean-host: maybe-distclean-tk
2158distclean-host: maybe-distclean-libtermcap
2159distclean-host: maybe-distclean-utils
2160distclean-host: maybe-distclean-gnattools
700d40ca 2161distclean-host: maybe-distclean-lto-plugin
1b6c0831
L
2162distclean-host: maybe-distclean-libcc1
2163distclean-host: maybe-distclean-gotools
2a4cbe27 2164
4fa63067 2165.PHONY: distclean-target
c52c6897
PB
2166
2167distclean-target: maybe-distclean-target-libstdc++-v3
5286fdef 2168distclean-target: maybe-distclean-target-libsanitizer
1b6c0831 2169distclean-target: maybe-distclean-target-libmpx
95e43135 2170distclean-target: maybe-distclean-target-libvtv
e78e02e6 2171distclean-target: maybe-distclean-target-libcilkrts
1b6c0831 2172distclean-target: maybe-distclean-target-liboffloadmic
c52c6897 2173distclean-target: maybe-distclean-target-libssp
c52c6897 2174distclean-target: maybe-distclean-target-newlib
6aa8ef82 2175distclean-target: maybe-distclean-target-libgcc
2bf680c4 2176distclean-target: maybe-distclean-target-libbacktrace
e552509b 2177distclean-target: maybe-distclean-target-libquadmath
c52c6897
PB
2178distclean-target: maybe-distclean-target-libgfortran
2179distclean-target: maybe-distclean-target-libobjc
e552509b 2180distclean-target: maybe-distclean-target-libgo
c52c6897
PB
2181distclean-target: maybe-distclean-target-libtermcap
2182distclean-target: maybe-distclean-target-winsup
2183distclean-target: maybe-distclean-target-libgloss
c52c6897
PB
2184distclean-target: maybe-distclean-target-libffi
2185distclean-target: maybe-distclean-target-libjava
2186distclean-target: maybe-distclean-target-zlib
2187distclean-target: maybe-distclean-target-boehm-gc
c52c6897
PB
2188distclean-target: maybe-distclean-target-rda
2189distclean-target: maybe-distclean-target-libada
2190distclean-target: maybe-distclean-target-libgomp
7ec59b9e
L
2191distclean-target: maybe-distclean-target-libitm
2192distclean-target: maybe-distclean-target-libatomic
2a4cbe27 2193
4fa63067 2194.PHONY: do-maintainer-clean
f70224b5 2195do-maintainer-clean:
0aed8855 2196 @: $(MAKE); $(unstage)
e360f423
PB
2197 @r=`${PWD_COMMAND}`; export r; \
2198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2199 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
f70224b5 2200 maintainer-clean-target
f70224b5 2201
2a4cbe27 2202
4fa63067 2203.PHONY: maintainer-clean-host
c52c6897 2204
c52c6897
PB
2205maintainer-clean-host: maybe-maintainer-clean-bfd
2206maintainer-clean-host: maybe-maintainer-clean-opcodes
2207maintainer-clean-host: maybe-maintainer-clean-binutils
2208maintainer-clean-host: maybe-maintainer-clean-bison
f9806fa5 2209maintainer-clean-host: maybe-maintainer-clean-cgen
c52c6897 2210maintainer-clean-host: maybe-maintainer-clean-dejagnu
c52c6897
PB
2211maintainer-clean-host: maybe-maintainer-clean-etc
2212maintainer-clean-host: maybe-maintainer-clean-fastjar
c52c6897
PB
2213maintainer-clean-host: maybe-maintainer-clean-fixincludes
2214maintainer-clean-host: maybe-maintainer-clean-flex
2215maintainer-clean-host: maybe-maintainer-clean-gas
2216maintainer-clean-host: maybe-maintainer-clean-gcc
4b900473
PB
2217maintainer-clean-host: maybe-maintainer-clean-gmp
2218maintainer-clean-host: maybe-maintainer-clean-mpfr
e8a5fa9c 2219maintainer-clean-host: maybe-maintainer-clean-mpc
7ec59b9e 2220maintainer-clean-host: maybe-maintainer-clean-isl
1f53ca9a 2221maintainer-clean-host: maybe-maintainer-clean-libelf
93f9b408 2222maintainer-clean-host: maybe-maintainer-clean-gold
c52c6897 2223maintainer-clean-host: maybe-maintainer-clean-gprof
c52c6897
PB
2224maintainer-clean-host: maybe-maintainer-clean-intl
2225maintainer-clean-host: maybe-maintainer-clean-tcl
2226maintainer-clean-host: maybe-maintainer-clean-itcl
2227maintainer-clean-host: maybe-maintainer-clean-ld
2bf680c4 2228maintainer-clean-host: maybe-maintainer-clean-libbacktrace
c52c6897
PB
2229maintainer-clean-host: maybe-maintainer-clean-libcpp
2230maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2231maintainer-clean-host: maybe-maintainer-clean-libgui
2232maintainer-clean-host: maybe-maintainer-clean-libiberty
1b6c0831 2233maintainer-clean-host: maybe-maintainer-clean-libiberty-linker-plugin
dc448a7b 2234maintainer-clean-host: maybe-maintainer-clean-libiconv
c52c6897 2235maintainer-clean-host: maybe-maintainer-clean-m4
c52c6897 2236maintainer-clean-host: maybe-maintainer-clean-readline
c52c6897
PB
2237maintainer-clean-host: maybe-maintainer-clean-sid
2238maintainer-clean-host: maybe-maintainer-clean-sim
c52c6897 2239maintainer-clean-host: maybe-maintainer-clean-texinfo
c52c6897
PB
2240maintainer-clean-host: maybe-maintainer-clean-zlib
2241maintainer-clean-host: maybe-maintainer-clean-gdb
2242maintainer-clean-host: maybe-maintainer-clean-expect
2243maintainer-clean-host: maybe-maintainer-clean-guile
2244maintainer-clean-host: maybe-maintainer-clean-tk
2245maintainer-clean-host: maybe-maintainer-clean-libtermcap
2246maintainer-clean-host: maybe-maintainer-clean-utils
2247maintainer-clean-host: maybe-maintainer-clean-gnattools
700d40ca 2248maintainer-clean-host: maybe-maintainer-clean-lto-plugin
1b6c0831
L
2249maintainer-clean-host: maybe-maintainer-clean-libcc1
2250maintainer-clean-host: maybe-maintainer-clean-gotools
2a4cbe27 2251
4fa63067 2252.PHONY: maintainer-clean-target
c52c6897
PB
2253
2254maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
5286fdef 2255maintainer-clean-target: maybe-maintainer-clean-target-libsanitizer
1b6c0831 2256maintainer-clean-target: maybe-maintainer-clean-target-libmpx
95e43135 2257maintainer-clean-target: maybe-maintainer-clean-target-libvtv
e78e02e6 2258maintainer-clean-target: maybe-maintainer-clean-target-libcilkrts
1b6c0831 2259maintainer-clean-target: maybe-maintainer-clean-target-liboffloadmic
c52c6897 2260maintainer-clean-target: maybe-maintainer-clean-target-libssp
c52c6897 2261maintainer-clean-target: maybe-maintainer-clean-target-newlib
6aa8ef82 2262maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2bf680c4 2263maintainer-clean-target: maybe-maintainer-clean-target-libbacktrace
e552509b 2264maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
c52c6897
PB
2265maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2266maintainer-clean-target: maybe-maintainer-clean-target-libobjc
e552509b 2267maintainer-clean-target: maybe-maintainer-clean-target-libgo
c52c6897
PB
2268maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2269maintainer-clean-target: maybe-maintainer-clean-target-winsup
2270maintainer-clean-target: maybe-maintainer-clean-target-libgloss
c52c6897
PB
2271maintainer-clean-target: maybe-maintainer-clean-target-libffi
2272maintainer-clean-target: maybe-maintainer-clean-target-libjava
2273maintainer-clean-target: maybe-maintainer-clean-target-zlib
2274maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
c52c6897
PB
2275maintainer-clean-target: maybe-maintainer-clean-target-rda
2276maintainer-clean-target: maybe-maintainer-clean-target-libada
2277maintainer-clean-target: maybe-maintainer-clean-target-libgomp
7ec59b9e
L
2278maintainer-clean-target: maybe-maintainer-clean-target-libitm
2279maintainer-clean-target: maybe-maintainer-clean-target-libatomic
2a4cbe27 2280
2a4cbe27 2281
4fa63067 2282# Here are the targets which correspond to the do-X targets.
2a4cbe27 2283
a3ca38d2
DD
2284.PHONY: info installcheck dvi pdf html
2285.PHONY: install-info install-pdf install-html
4fa63067
NN
2286.PHONY: clean distclean mostlyclean maintainer-clean realclean
2287.PHONY: local-clean local-distclean local-maintainer-clean
2288info: do-info
2289installcheck: do-installcheck
2290dvi: do-dvi
56a8fe78 2291pdf: do-pdf
6d389afc 2292html: do-html
2a4cbe27 2293
4fa63067
NN
2294# Make sure makeinfo is built before we do a `make info', if we're
2295# in fact building texinfo.
2296do-info: maybe-all-texinfo
2a4cbe27 2297
4fa63067 2298install-info: do-install-info dir.info
b40e3958 2299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fa63067
NN
2300 if [ -f dir.info ] ; then \
2301 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
2302 else true ; fi
2a4cbe27 2303
a3ca38d2
DD
2304install-pdf: do-install-pdf
2305
108a6f8e
CD
2306install-html: do-install-html
2307
4fa63067
NN
2308local-clean:
2309 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2a4cbe27 2310
4fa63067
NN
2311local-distclean:
2312 -rm -f Makefile config.status config.cache mh-frag mt-frag
0aed8855 2313 -rm -f maybedep.tmp serdep.tmp
4fa63067
NN
2314 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2315 rm -rf $(TARGET_SUBDIR); \
2316 else true; fi
2317 -rm -rf $(BUILD_SUBDIR)
b00612cc
PB
2318 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2319 rm -rf $(HOST_SUBDIR); \
2320 else true; fi
4fa63067
NN
2321 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2322 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2323 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2324 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
2325 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
18fa8f9c 2326 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a4cbe27 2327
4fa63067
NN
2328local-maintainer-clean:
2329 @echo "This command is intended for maintainers to use;"
2330 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 2331
4fa63067
NN
2332clean: do-clean local-clean
2333mostlyclean: do-mostlyclean local-clean
2334distclean: do-distclean local-clean local-distclean
2335maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2336maintainer-clean: local-distclean
2337realclean: maintainer-clean
2a4cbe27 2338
4fa63067 2339# Check target.
2a4cbe27 2340
4fa63067
NN
2341.PHONY: check do-check
2342check: do-check
2a4cbe27 2343
4fa63067 2344# Only include modules actually being configured and built.
f70224b5
PB
2345.PHONY: check-host
2346check-host: \
4fa63067
NN
2347 maybe-check-bfd \
2348 maybe-check-opcodes \
2349 maybe-check-binutils \
2350 maybe-check-bison \
f9806fa5 2351 maybe-check-cgen \
4fa63067 2352 maybe-check-dejagnu \
4fa63067
NN
2353 maybe-check-etc \
2354 maybe-check-fastjar \
d3ed111c 2355 maybe-check-fixincludes \
4fa63067
NN
2356 maybe-check-flex \
2357 maybe-check-gas \
b813574b 2358 maybe-check-gcc \
4b900473
PB
2359 maybe-check-gmp \
2360 maybe-check-mpfr \
e8a5fa9c 2361 maybe-check-mpc \
7ec59b9e 2362 maybe-check-isl \
1f53ca9a 2363 maybe-check-libelf \
93f9b408 2364 maybe-check-gold \
4fa63067 2365 maybe-check-gprof \
4fa63067
NN
2366 maybe-check-intl \
2367 maybe-check-tcl \
2368 maybe-check-itcl \
2369 maybe-check-ld \
2bf680c4 2370 maybe-check-libbacktrace \
04cf1b77 2371 maybe-check-libcpp \
be01d343 2372 maybe-check-libdecnumber \
4fa63067
NN
2373 maybe-check-libgui \
2374 maybe-check-libiberty \
1b6c0831 2375 maybe-check-libiberty-linker-plugin \
dc448a7b 2376 maybe-check-libiconv \
4fa63067 2377 maybe-check-m4 \
4fa63067 2378 maybe-check-readline \
4fa63067
NN
2379 maybe-check-sid \
2380 maybe-check-sim \
4fa63067 2381 maybe-check-texinfo \
4fa63067
NN
2382 maybe-check-zlib \
2383 maybe-check-gdb \
2384 maybe-check-expect \
2385 maybe-check-guile \
2386 maybe-check-tk \
4fa63067
NN
2387 maybe-check-libtermcap \
2388 maybe-check-utils \
700d40ca 2389 maybe-check-gnattools \
1b6c0831
L
2390 maybe-check-lto-plugin \
2391 maybe-check-libcc1 \
2392 maybe-check-gotools
f70224b5
PB
2393
2394.PHONY: check-target
2395check-target: \
4fa63067 2396 maybe-check-target-libstdc++-v3 \
5286fdef 2397 maybe-check-target-libsanitizer \
1b6c0831 2398 maybe-check-target-libmpx \
95e43135 2399 maybe-check-target-libvtv \
e78e02e6 2400 maybe-check-target-libcilkrts \
1b6c0831 2401 maybe-check-target-liboffloadmic \
064d0a7c 2402 maybe-check-target-libssp \
4fa63067 2403 maybe-check-target-newlib \
6aa8ef82 2404 maybe-check-target-libgcc \
2bf680c4 2405 maybe-check-target-libbacktrace \
e552509b 2406 maybe-check-target-libquadmath \
4b1cb4fe 2407 maybe-check-target-libgfortran \
4fa63067 2408 maybe-check-target-libobjc \
e552509b 2409 maybe-check-target-libgo \
4fa63067
NN
2410 maybe-check-target-libtermcap \
2411 maybe-check-target-winsup \
2412 maybe-check-target-libgloss \
4fa63067
NN
2413 maybe-check-target-libffi \
2414 maybe-check-target-libjava \
2415 maybe-check-target-zlib \
2416 maybe-check-target-boehm-gc \
4fa63067 2417 maybe-check-target-rda \
b3ded179 2418 maybe-check-target-libada \
7ec59b9e
L
2419 maybe-check-target-libgomp \
2420 maybe-check-target-libitm \
2421 maybe-check-target-libatomic
f70224b5
PB
2422
2423do-check:
0aed8855 2424 @: $(MAKE); $(unstage)
e360f423
PB
2425 @r=`${PWD_COMMAND}`; export r; \
2426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2427 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a4cbe27 2428
4fa63067 2429# Automated reporting of test results.
2a4cbe27 2430
4fa63067
NN
2431warning.log: build.log
2432 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 2433
4fa63067
NN
2434mail-report.log:
2435 if test x'$(BOOT_CFLAGS)' != x''; then \
2436 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2437 fi; \
2438 $(srcdir)/contrib/test_summary -t >$@
2439 chmod +x $@
2440 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2441
4fa63067
NN
2442mail-report-with-warnings.log: warning.log
2443 if test x'$(BOOT_CFLAGS)' != x''; then \
2444 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2445 fi; \
2446 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2447 chmod +x $@
2448 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2449
1b6c0831
L
2450# Local Vim config
2451
2452$(srcdir)/.local.vimrc:
2453 $(LN_S) $(srcdir)/contrib/vimrc $@
2454
2455$(srcdir)/.lvimrc:
2456 $(LN_S) $(srcdir)/contrib/vimrc $@
2457
2458vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
2459
2460.PHONY: vimrc
2461
4fa63067 2462# Installation targets.
2a4cbe27 2463
4fa63067 2464.PHONY: install uninstall
f70224b5 2465install:
0aed8855 2466 @: $(MAKE); $(unstage)
e360f423
PB
2467 @r=`${PWD_COMMAND}`; export r; \
2468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2469 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2a4cbe27 2470
4fa63067
NN
2471.PHONY: install-host-nogcc
2472install-host-nogcc: \
4fa63067
NN
2473 maybe-install-bfd \
2474 maybe-install-opcodes \
2475 maybe-install-binutils \
2476 maybe-install-bison \
f9806fa5 2477 maybe-install-cgen \
4fa63067 2478 maybe-install-dejagnu \
4fa63067
NN
2479 maybe-install-etc \
2480 maybe-install-fastjar \
d3ed111c 2481 maybe-install-fixincludes \
4fa63067
NN
2482 maybe-install-flex \
2483 maybe-install-gas \
4b900473
PB
2484 maybe-install-gmp \
2485 maybe-install-mpfr \
e8a5fa9c 2486 maybe-install-mpc \
7ec59b9e 2487 maybe-install-isl \
1f53ca9a 2488 maybe-install-libelf \
93f9b408 2489 maybe-install-gold \
4fa63067 2490 maybe-install-gprof \
4fa63067
NN
2491 maybe-install-intl \
2492 maybe-install-tcl \
2493 maybe-install-itcl \
2494 maybe-install-ld \
2bf680c4 2495 maybe-install-libbacktrace \
04cf1b77 2496 maybe-install-libcpp \
be01d343 2497 maybe-install-libdecnumber \
4fa63067
NN
2498 maybe-install-libgui \
2499 maybe-install-libiberty \
1b6c0831 2500 maybe-install-libiberty-linker-plugin \
dc448a7b 2501 maybe-install-libiconv \
4fa63067 2502 maybe-install-m4 \
4fa63067 2503 maybe-install-readline \
4fa63067
NN
2504 maybe-install-sid \
2505 maybe-install-sim \
4fa63067 2506 maybe-install-texinfo \
4fa63067
NN
2507 maybe-install-zlib \
2508 maybe-install-gdb \
2509 maybe-install-expect \
2510 maybe-install-guile \
2511 maybe-install-tk \
4fa63067 2512 maybe-install-libtermcap \
b00612cc 2513 maybe-install-utils \
700d40ca 2514 maybe-install-gnattools \
1b6c0831
L
2515 maybe-install-lto-plugin \
2516 maybe-install-libcc1 \
2517 maybe-install-gotools
2a4cbe27 2518
4fa63067 2519.PHONY: install-host
b813574b 2520install-host: \
4fa63067
NN
2521 maybe-install-bfd \
2522 maybe-install-opcodes \
2523 maybe-install-binutils \
2524 maybe-install-bison \
f9806fa5 2525 maybe-install-cgen \
4fa63067 2526 maybe-install-dejagnu \
4fa63067
NN
2527 maybe-install-etc \
2528 maybe-install-fastjar \
d3ed111c 2529 maybe-install-fixincludes \
4fa63067
NN
2530 maybe-install-flex \
2531 maybe-install-gas \
b813574b 2532 maybe-install-gcc \
4b900473
PB
2533 maybe-install-gmp \
2534 maybe-install-mpfr \
e8a5fa9c 2535 maybe-install-mpc \
7ec59b9e 2536 maybe-install-isl \
1f53ca9a 2537 maybe-install-libelf \
93f9b408 2538 maybe-install-gold \
4fa63067 2539 maybe-install-gprof \
4fa63067
NN
2540 maybe-install-intl \
2541 maybe-install-tcl \
2542 maybe-install-itcl \
2543 maybe-install-ld \
2bf680c4 2544 maybe-install-libbacktrace \
04cf1b77 2545 maybe-install-libcpp \
be01d343 2546 maybe-install-libdecnumber \
4fa63067
NN
2547 maybe-install-libgui \
2548 maybe-install-libiberty \
1b6c0831 2549 maybe-install-libiberty-linker-plugin \
dc448a7b 2550 maybe-install-libiconv \
4fa63067 2551 maybe-install-m4 \
4fa63067 2552 maybe-install-readline \
4fa63067
NN
2553 maybe-install-sid \
2554 maybe-install-sim \
4fa63067 2555 maybe-install-texinfo \
4fa63067
NN
2556 maybe-install-zlib \
2557 maybe-install-gdb \
2558 maybe-install-expect \
2559 maybe-install-guile \
2560 maybe-install-tk \
4fa63067 2561 maybe-install-libtermcap \
b00612cc 2562 maybe-install-utils \
700d40ca 2563 maybe-install-gnattools \
1b6c0831
L
2564 maybe-install-lto-plugin \
2565 maybe-install-libcc1 \
2566 maybe-install-gotools
2a4cbe27 2567
4fa63067
NN
2568.PHONY: install-target
2569install-target: \
2570 maybe-install-target-libstdc++-v3 \
5286fdef 2571 maybe-install-target-libsanitizer \
1b6c0831 2572 maybe-install-target-libmpx \
95e43135 2573 maybe-install-target-libvtv \
e78e02e6 2574 maybe-install-target-libcilkrts \
1b6c0831 2575 maybe-install-target-liboffloadmic \
064d0a7c 2576 maybe-install-target-libssp \
4fa63067 2577 maybe-install-target-newlib \
6aa8ef82 2578 maybe-install-target-libgcc \
2bf680c4 2579 maybe-install-target-libbacktrace \
e552509b 2580 maybe-install-target-libquadmath \
4b1cb4fe 2581 maybe-install-target-libgfortran \
4fa63067 2582 maybe-install-target-libobjc \
e552509b 2583 maybe-install-target-libgo \
4fa63067
NN
2584 maybe-install-target-libtermcap \
2585 maybe-install-target-winsup \
2586 maybe-install-target-libgloss \
4fa63067
NN
2587 maybe-install-target-libffi \
2588 maybe-install-target-libjava \
2589 maybe-install-target-zlib \
2590 maybe-install-target-boehm-gc \
4fa63067 2591 maybe-install-target-rda \
b3ded179 2592 maybe-install-target-libada \
7ec59b9e
L
2593 maybe-install-target-libgomp \
2594 maybe-install-target-libitm \
2595 maybe-install-target-libatomic
2a4cbe27 2596
4fa63067
NN
2597uninstall:
2598 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2599
4fa63067
NN
2600.PHONY: install.all
2601install.all: install-no-fixedincludes
2602 @if [ -f ./gcc/Makefile ] ; then \
2603 r=`${PWD_COMMAND}` ; export r ; \
0aed8855 2604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 2605 $(HOST_EXPORTS) \
4fa63067
NN
2606 (cd ./gcc && \
2607 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2608 else \
2609 true ; \
2610 fi
2a4cbe27 2611
7ec59b9e
L
2612# install-no-fixedincludes is used to allow the elaboration of binary packages
2613# suitable for distribution, where we cannot include the fixed system header
2614# files.
4fa63067
NN
2615.PHONY: install-no-fixedincludes
2616install-no-fixedincludes: installdirs install-host-nogcc \
7ec59b9e 2617 install-target gcc-install-no-fixedincludes
2a4cbe27 2618
9b980aa1
RW
2619.PHONY: install-strip
2620install-strip:
2621 @: $(MAKE); $(unstage)
2622 @r=`${PWD_COMMAND}`; export r; \
2623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2624 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2625
2626.PHONY: install-strip-host
2627install-strip-host: \
9b980aa1
RW
2628 maybe-install-strip-bfd \
2629 maybe-install-strip-opcodes \
2630 maybe-install-strip-binutils \
2631 maybe-install-strip-bison \
9b980aa1
RW
2632 maybe-install-strip-cgen \
2633 maybe-install-strip-dejagnu \
9b980aa1
RW
2634 maybe-install-strip-etc \
2635 maybe-install-strip-fastjar \
9b980aa1
RW
2636 maybe-install-strip-fixincludes \
2637 maybe-install-strip-flex \
2638 maybe-install-strip-gas \
2639 maybe-install-strip-gcc \
9b980aa1
RW
2640 maybe-install-strip-gmp \
2641 maybe-install-strip-mpfr \
2642 maybe-install-strip-mpc \
7ec59b9e 2643 maybe-install-strip-isl \
9b980aa1 2644 maybe-install-strip-libelf \
9b980aa1
RW
2645 maybe-install-strip-gold \
2646 maybe-install-strip-gprof \
9b980aa1
RW
2647 maybe-install-strip-intl \
2648 maybe-install-strip-tcl \
2649 maybe-install-strip-itcl \
2650 maybe-install-strip-ld \
2bf680c4 2651 maybe-install-strip-libbacktrace \
9b980aa1
RW
2652 maybe-install-strip-libcpp \
2653 maybe-install-strip-libdecnumber \
2654 maybe-install-strip-libgui \
2655 maybe-install-strip-libiberty \
1b6c0831 2656 maybe-install-strip-libiberty-linker-plugin \
9b980aa1 2657 maybe-install-strip-libiconv \
9b980aa1 2658 maybe-install-strip-m4 \
9b980aa1 2659 maybe-install-strip-readline \
9b980aa1
RW
2660 maybe-install-strip-sid \
2661 maybe-install-strip-sim \
9b980aa1 2662 maybe-install-strip-texinfo \
9b980aa1
RW
2663 maybe-install-strip-zlib \
2664 maybe-install-strip-gdb \
2665 maybe-install-strip-expect \
2666 maybe-install-strip-guile \
2667 maybe-install-strip-tk \
2668 maybe-install-strip-libtermcap \
2669 maybe-install-strip-utils \
2670 maybe-install-strip-gnattools \
1b6c0831
L
2671 maybe-install-strip-lto-plugin \
2672 maybe-install-strip-libcc1 \
2673 maybe-install-strip-gotools
9b980aa1
RW
2674
2675.PHONY: install-strip-target
2676install-strip-target: \
2677 maybe-install-strip-target-libstdc++-v3 \
5286fdef 2678 maybe-install-strip-target-libsanitizer \
1b6c0831 2679 maybe-install-strip-target-libmpx \
95e43135 2680 maybe-install-strip-target-libvtv \
e78e02e6 2681 maybe-install-strip-target-libcilkrts \
1b6c0831 2682 maybe-install-strip-target-liboffloadmic \
9b980aa1
RW
2683 maybe-install-strip-target-libssp \
2684 maybe-install-strip-target-newlib \
2685 maybe-install-strip-target-libgcc \
2bf680c4 2686 maybe-install-strip-target-libbacktrace \
9b980aa1
RW
2687 maybe-install-strip-target-libquadmath \
2688 maybe-install-strip-target-libgfortran \
2689 maybe-install-strip-target-libobjc \
2690 maybe-install-strip-target-libgo \
2691 maybe-install-strip-target-libtermcap \
2692 maybe-install-strip-target-winsup \
2693 maybe-install-strip-target-libgloss \
9b980aa1
RW
2694 maybe-install-strip-target-libffi \
2695 maybe-install-strip-target-libjava \
2696 maybe-install-strip-target-zlib \
2697 maybe-install-strip-target-boehm-gc \
9b980aa1
RW
2698 maybe-install-strip-target-rda \
2699 maybe-install-strip-target-libada \
7ec59b9e
L
2700 maybe-install-strip-target-libgomp \
2701 maybe-install-strip-target-libitm \
2702 maybe-install-strip-target-libatomic
9b980aa1
RW
2703
2704
4fa63067 2705### other supporting targets
2a4cbe27 2706
4fa63067
NN
2707MAKEDIRS= \
2708 $(DESTDIR)$(prefix) \
2709 $(DESTDIR)$(exec_prefix)
2710.PHONY: installdirs
2711installdirs: mkinstalldirs
2712 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2713
4fa63067
NN
2714dir.info: do-install-info
2715 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2716 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2717 mv -f dir.info.new dir.info ; \
2718 else true ; \
2719 fi
2a4cbe27 2720
4fa63067
NN
2721dist:
2722 @echo "Building a full distribution of this tree isn't done"
2723 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2724
4fa63067 2725etags tags: TAGS
2a4cbe27 2726
4fa63067
NN
2727# Right now this just builds TAGS in each subdirectory. emacs19 has the
2728# ability to use several tags files at once, so there is probably no need
2729# to combine them into one big TAGS file (like CVS 1.3 does). We could
2730# (if we felt like it) have this Makefile write a piece of elisp which
2731# the user could load to tell emacs19 where all the TAGS files we just
2732# built are.
2733TAGS: do-TAGS
2a4cbe27 2734
a7254363
PB
2735# ------------------------------------
2736# Macros for configure and all targets
2737# ------------------------------------
2738
2739
2740
2741
2742
4fa63067
NN
2743# --------------------------------------
2744# Modules which run on the build machine
2745# --------------------------------------
2746
a7254363 2747
4fa63067
NN
2748.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2749maybe-configure-build-libiberty:
4f0ef2d8
CD
2750@if gcc-bootstrap
2751configure-build-libiberty: stage_current
2752@endif gcc-bootstrap
6bd3dfaa
PB
2753@if build-libiberty
2754maybe-configure-build-libiberty: configure-build-libiberty
c52c6897 2755configure-build-libiberty:
0aed8855 2756 @: $(MAKE); $(unstage)
c52c6897 2757 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2759 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2760 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
1f53ca9a 2761 $(BUILD_EXPORTS) \
4fa63067
NN
2762 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2763 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2764 case $(srcdir) in \
b00612cc
PB
2765 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2766 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2767 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2768 esac; \
1b6c0831 2769 module_srcdir=libiberty; \
4fa63067 2770 rm -f no-such-file || : ; \
1b6c0831
L
2771 CONFIG_SITE=no-such-file $(SHELL) \
2772 $$s/$$module_srcdir/configure \
2773 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2774 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2775 --target=${target_alias} \
2a4cbe27 2776 || exit 1
6bd3dfaa 2777@endif build-libiberty
2a4cbe27 2778
a7254363
PB
2779
2780
d545f33b
PB
2781
2782
4fa63067
NN
2783.PHONY: all-build-libiberty maybe-all-build-libiberty
2784maybe-all-build-libiberty:
4f0ef2d8
CD
2785@if gcc-bootstrap
2786all-build-libiberty: stage_current
2787@endif gcc-bootstrap
6bd3dfaa 2788@if build-libiberty
72b2455a 2789TARGET-build-libiberty=all
6bd3dfaa 2790maybe-all-build-libiberty: all-build-libiberty
4fa63067 2791all-build-libiberty: configure-build-libiberty
0aed8855 2792 @: $(MAKE); $(unstage)
4fa63067 2793 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2795 $(BUILD_EXPORTS) \
72b2455a 2796 (cd $(BUILD_SUBDIR)/libiberty && \
b3676d82 2797 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2798 $(TARGET-build-libiberty))
6bd3dfaa 2799@endif build-libiberty
2a4cbe27 2800
a7254363
PB
2801
2802
d545f33b
PB
2803
2804
6a9cf61e
PB
2805.PHONY: configure-build-bison maybe-configure-build-bison
2806maybe-configure-build-bison:
4f0ef2d8
CD
2807@if gcc-bootstrap
2808configure-build-bison: stage_current
2809@endif gcc-bootstrap
6a9cf61e
PB
2810@if build-bison
2811maybe-configure-build-bison: configure-build-bison
c52c6897 2812configure-build-bison:
0aed8855 2813 @: $(MAKE); $(unstage)
c52c6897 2814 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2816 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2817 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
1f53ca9a 2818 $(BUILD_EXPORTS) \
6a9cf61e
PB
2819 echo Configuring in $(BUILD_SUBDIR)/bison; \
2820 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2821 case $(srcdir) in \
b00612cc
PB
2822 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2823 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2824 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2825 esac; \
1b6c0831 2826 module_srcdir=bison; \
6a9cf61e 2827 rm -f no-such-file || : ; \
1b6c0831
L
2828 CONFIG_SITE=no-such-file $(SHELL) \
2829 $$s/$$module_srcdir/configure \
2830 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2831 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2832 --target=${target_alias} \
6a9cf61e
PB
2833 || exit 1
2834@endif build-bison
2835
a7254363
PB
2836
2837
d545f33b
PB
2838
2839
6a9cf61e
PB
2840.PHONY: all-build-bison maybe-all-build-bison
2841maybe-all-build-bison:
4f0ef2d8
CD
2842@if gcc-bootstrap
2843all-build-bison: stage_current
2844@endif gcc-bootstrap
6a9cf61e 2845@if build-bison
72b2455a 2846TARGET-build-bison=all
6a9cf61e
PB
2847maybe-all-build-bison: all-build-bison
2848all-build-bison: configure-build-bison
0aed8855 2849 @: $(MAKE); $(unstage)
6a9cf61e
PB
2850 @r=`${PWD_COMMAND}`; export r; \
2851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2852 $(BUILD_EXPORTS) \
72b2455a 2853 (cd $(BUILD_SUBDIR)/bison && \
b3676d82 2854 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2855 $(TARGET-build-bison))
6a9cf61e
PB
2856@endif build-bison
2857
a7254363
PB
2858
2859
d545f33b
PB
2860
2861
6a9cf61e
PB
2862.PHONY: configure-build-flex maybe-configure-build-flex
2863maybe-configure-build-flex:
4f0ef2d8
CD
2864@if gcc-bootstrap
2865configure-build-flex: stage_current
2866@endif gcc-bootstrap
6a9cf61e
PB
2867@if build-flex
2868maybe-configure-build-flex: configure-build-flex
c52c6897 2869configure-build-flex:
0aed8855 2870 @: $(MAKE); $(unstage)
c52c6897 2871 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2873 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2874 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
1f53ca9a 2875 $(BUILD_EXPORTS) \
6a9cf61e
PB
2876 echo Configuring in $(BUILD_SUBDIR)/flex; \
2877 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2878 case $(srcdir) in \
b00612cc
PB
2879 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2880 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2881 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2882 esac; \
1b6c0831 2883 module_srcdir=flex; \
6a9cf61e 2884 rm -f no-such-file || : ; \
1b6c0831
L
2885 CONFIG_SITE=no-such-file $(SHELL) \
2886 $$s/$$module_srcdir/configure \
2887 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2888 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2889 --target=${target_alias} \
6a9cf61e
PB
2890 || exit 1
2891@endif build-flex
2892
a7254363
PB
2893
2894
d545f33b
PB
2895
2896
6a9cf61e
PB
2897.PHONY: all-build-flex maybe-all-build-flex
2898maybe-all-build-flex:
4f0ef2d8
CD
2899@if gcc-bootstrap
2900all-build-flex: stage_current
2901@endif gcc-bootstrap
6a9cf61e 2902@if build-flex
72b2455a 2903TARGET-build-flex=all
6a9cf61e
PB
2904maybe-all-build-flex: all-build-flex
2905all-build-flex: configure-build-flex
0aed8855 2906 @: $(MAKE); $(unstage)
6a9cf61e
PB
2907 @r=`${PWD_COMMAND}`; export r; \
2908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2909 $(BUILD_EXPORTS) \
72b2455a 2910 (cd $(BUILD_SUBDIR)/flex && \
b3676d82 2911 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2912 $(TARGET-build-flex))
6a9cf61e
PB
2913@endif build-flex
2914
a7254363
PB
2915
2916
d545f33b
PB
2917
2918
6a9cf61e
PB
2919.PHONY: configure-build-m4 maybe-configure-build-m4
2920maybe-configure-build-m4:
4f0ef2d8
CD
2921@if gcc-bootstrap
2922configure-build-m4: stage_current
2923@endif gcc-bootstrap
6a9cf61e
PB
2924@if build-m4
2925maybe-configure-build-m4: configure-build-m4
c52c6897 2926configure-build-m4:
0aed8855 2927 @: $(MAKE); $(unstage)
c52c6897 2928 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2930 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2931 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
1f53ca9a 2932 $(BUILD_EXPORTS) \
6a9cf61e
PB
2933 echo Configuring in $(BUILD_SUBDIR)/m4; \
2934 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2935 case $(srcdir) in \
b00612cc
PB
2936 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2937 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2938 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2939 esac; \
1b6c0831 2940 module_srcdir=m4; \
6a9cf61e 2941 rm -f no-such-file || : ; \
1b6c0831
L
2942 CONFIG_SITE=no-such-file $(SHELL) \
2943 $$s/$$module_srcdir/configure \
2944 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2945 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2946 --target=${target_alias} \
6a9cf61e
PB
2947 || exit 1
2948@endif build-m4
2949
a7254363
PB
2950
2951
d545f33b
PB
2952
2953
6a9cf61e
PB
2954.PHONY: all-build-m4 maybe-all-build-m4
2955maybe-all-build-m4:
4f0ef2d8
CD
2956@if gcc-bootstrap
2957all-build-m4: stage_current
2958@endif gcc-bootstrap
6a9cf61e 2959@if build-m4
72b2455a 2960TARGET-build-m4=all
6a9cf61e
PB
2961maybe-all-build-m4: all-build-m4
2962all-build-m4: configure-build-m4
0aed8855 2963 @: $(MAKE); $(unstage)
6a9cf61e
PB
2964 @r=`${PWD_COMMAND}`; export r; \
2965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2966 $(BUILD_EXPORTS) \
72b2455a 2967 (cd $(BUILD_SUBDIR)/m4 && \
b3676d82 2968 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2969 $(TARGET-build-m4))
6a9cf61e
PB
2970@endif build-m4
2971
a7254363
PB
2972
2973
d545f33b
PB
2974
2975
6a9cf61e
PB
2976.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2977maybe-configure-build-texinfo:
4f0ef2d8
CD
2978@if gcc-bootstrap
2979configure-build-texinfo: stage_current
2980@endif gcc-bootstrap
6a9cf61e
PB
2981@if build-texinfo
2982maybe-configure-build-texinfo: configure-build-texinfo
c52c6897 2983configure-build-texinfo:
0aed8855 2984 @: $(MAKE); $(unstage)
c52c6897 2985 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
2987 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2988 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
1f53ca9a 2989 $(BUILD_EXPORTS) \
6a9cf61e
PB
2990 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2991 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2992 case $(srcdir) in \
b00612cc
PB
2993 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2994 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2995 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2996 esac; \
1b6c0831 2997 module_srcdir=texinfo; \
6a9cf61e 2998 rm -f no-such-file || : ; \
1b6c0831
L
2999 CONFIG_SITE=no-such-file $(SHELL) \
3000 $$s/$$module_srcdir/configure \
3001 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3002 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3003 --target=${target_alias} \
6a9cf61e
PB
3004 || exit 1
3005@endif build-texinfo
3006
a7254363
PB
3007
3008
d545f33b
PB
3009
3010
6a9cf61e
PB
3011.PHONY: all-build-texinfo maybe-all-build-texinfo
3012maybe-all-build-texinfo:
4f0ef2d8
CD
3013@if gcc-bootstrap
3014all-build-texinfo: stage_current
3015@endif gcc-bootstrap
6a9cf61e 3016@if build-texinfo
72b2455a 3017TARGET-build-texinfo=all
6a9cf61e
PB
3018maybe-all-build-texinfo: all-build-texinfo
3019all-build-texinfo: configure-build-texinfo
0aed8855 3020 @: $(MAKE); $(unstage)
6a9cf61e
PB
3021 @r=`${PWD_COMMAND}`; export r; \
3022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3023 $(BUILD_EXPORTS) \
72b2455a 3024 (cd $(BUILD_SUBDIR)/texinfo && \
b3676d82 3025 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3026 $(TARGET-build-texinfo))
6a9cf61e
PB
3027@endif build-texinfo
3028
a7254363
PB
3029
3030
d545f33b
PB
3031
3032
ee025550
PB
3033.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3034maybe-configure-build-fixincludes:
4f0ef2d8
CD
3035@if gcc-bootstrap
3036configure-build-fixincludes: stage_current
3037@endif gcc-bootstrap
ee025550
PB
3038@if build-fixincludes
3039maybe-configure-build-fixincludes: configure-build-fixincludes
c52c6897 3040configure-build-fixincludes:
0aed8855 3041 @: $(MAKE); $(unstage)
c52c6897 3042 @r=`${PWD_COMMAND}`; export r; \
ee025550 3043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897
PB
3044 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
3045 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
1f53ca9a 3046 $(BUILD_EXPORTS) \
ee025550
PB
3047 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3048 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3049 case $(srcdir) in \
b00612cc
PB
3050 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3051 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3052 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
ee025550 3053 esac; \
1b6c0831 3054 module_srcdir=fixincludes; \
ee025550 3055 rm -f no-such-file || : ; \
1b6c0831
L
3056 CONFIG_SITE=no-such-file $(SHELL) \
3057 $$s/$$module_srcdir/configure \
3058 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3059 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3060 --target=${target_alias} \
ee025550
PB
3061 || exit 1
3062@endif build-fixincludes
3063
a7254363
PB
3064
3065
d545f33b
PB
3066
3067
ee025550
PB
3068.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3069maybe-all-build-fixincludes:
4f0ef2d8
CD
3070@if gcc-bootstrap
3071all-build-fixincludes: stage_current
3072@endif gcc-bootstrap
ee025550
PB
3073@if build-fixincludes
3074TARGET-build-fixincludes=all
3075maybe-all-build-fixincludes: all-build-fixincludes
3076all-build-fixincludes: configure-build-fixincludes
0aed8855 3077 @: $(MAKE); $(unstage)
ee025550
PB
3078 @r=`${PWD_COMMAND}`; export r; \
3079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3080 $(BUILD_EXPORTS) \
ee025550 3081 (cd $(BUILD_SUBDIR)/fixincludes && \
b3676d82 3082 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3083 $(TARGET-build-fixincludes))
ee025550
PB
3084@endif build-fixincludes
3085
2a4cbe27 3086
a7254363 3087
d545f33b
PB
3088
3089
1b6c0831
L
3090.PHONY: configure-build-libcpp maybe-configure-build-libcpp
3091maybe-configure-build-libcpp:
3092@if gcc-bootstrap
3093configure-build-libcpp: stage_current
3094@endif gcc-bootstrap
3095@if build-libcpp
3096maybe-configure-build-libcpp: configure-build-libcpp
3097configure-build-libcpp:
3098 @: $(MAKE); $(unstage)
3099 @r=`${PWD_COMMAND}`; export r; \
3100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3101 test ! -f $(BUILD_SUBDIR)/libcpp/Makefile || exit 0; \
3102 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libcpp ; \
3103 $(BUILD_EXPORTS) \
3104 echo Configuring in $(BUILD_SUBDIR)/libcpp; \
3105 cd "$(BUILD_SUBDIR)/libcpp" || exit 1; \
3106 case $(srcdir) in \
3107 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3108 *) topdir=`echo $(BUILD_SUBDIR)/libcpp/ | \
3109 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3110 esac; \
3111 module_srcdir=libcpp; \
3112 rm -f no-such-file || : ; \
3113 CONFIG_SITE=no-such-file $(SHELL) \
3114 $$s/$$module_srcdir/configure \
3115 --srcdir=$${topdir}/$$module_srcdir \
3116 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3117 --target=${target_alias} --disable-nls am_cv_func_iconv=no \
3118 || exit 1
3119@endif build-libcpp
3120
3121
3122
3123
3124
3125.PHONY: all-build-libcpp maybe-all-build-libcpp
3126maybe-all-build-libcpp:
3127@if gcc-bootstrap
3128all-build-libcpp: stage_current
3129@endif gcc-bootstrap
3130@if build-libcpp
3131TARGET-build-libcpp=all
3132maybe-all-build-libcpp: all-build-libcpp
3133all-build-libcpp: configure-build-libcpp
3134 @: $(MAKE); $(unstage)
3135 @r=`${PWD_COMMAND}`; export r; \
3136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3137 $(BUILD_EXPORTS) \
3138 (cd $(BUILD_SUBDIR)/libcpp && \
3139 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
3140 $(TARGET-build-libcpp))
3141@endif build-libcpp
3142
3143
3144
3145
3146
4fa63067
NN
3147# --------------------------------------
3148# Modules which run on the host machine
3149# --------------------------------------
2a4cbe27 3150
a7254363 3151
a90ef4bf
JM
3152.PHONY: configure-bfd maybe-configure-bfd
3153maybe-configure-bfd:
4f0ef2d8 3154@if gcc-bootstrap
a90ef4bf 3155configure-bfd: stage_current
4f0ef2d8 3156@endif gcc-bootstrap
a90ef4bf
JM
3157@if bfd
3158maybe-configure-bfd: configure-bfd
3159configure-bfd:
c52c6897 3160 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3162 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3163 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
1f53ca9a 3164 $(HOST_EXPORTS) \
a90ef4bf
JM
3165 echo Configuring in $(HOST_SUBDIR)/bfd; \
3166 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
4fa63067 3167 case $(srcdir) in \
b00612cc 3168 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 3169 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
b00612cc 3170 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 3171 esac; \
1b6c0831
L
3172 module_srcdir=bfd; \
3173 $(SHELL) \
3174 $$s/$$module_srcdir/configure \
3175 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3176 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3177 --target=${target_alias} \
2a4cbe27 3178 || exit 1
a90ef4bf 3179@endif bfd
a7254363 3180
d545f33b
PB
3181
3182
a90ef4bf
JM
3183.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3184maybe-configure-stage1-bfd:
3185@if bfd-bootstrap
3186maybe-configure-stage1-bfd: configure-stage1-bfd
3187configure-stage1-bfd:
3188 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3189 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067
NN
3190 @r=`${PWD_COMMAND}`; export r; \
3191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3192 TFLAGS="$(STAGE1_TFLAGS)"; \
3193 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3194 $(HOST_EXPORTS) \
3195 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3196 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3197 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
3198 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd ; \
3199 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3200 cd $(HOST_SUBDIR)/bfd || exit 1; \
3201 case $(srcdir) in \
3202 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3203 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3204 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3205 esac; \
1b6c0831
L
3206 module_srcdir=bfd; \
3207 $(SHELL) $$s/$$module_srcdir/configure \
3208 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3209 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3210 --target=${target_alias} \
3211 \
a90ef4bf
JM
3212 $(STAGE1_CONFIGURE_FLAGS)
3213@endif bfd-bootstrap
2a4cbe27 3214
a90ef4bf
JM
3215.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3216maybe-configure-stage2-bfd:
3217@if bfd-bootstrap
3218maybe-configure-stage2-bfd: configure-stage2-bfd
3219configure-stage2-bfd:
3220 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3221 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3222 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3224 TFLAGS="$(STAGE2_TFLAGS)"; \
3225 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3226 $(HOST_EXPORTS) \
a90ef4bf
JM
3227 $(POSTSTAGE1_HOST_EXPORTS) \
3228 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3229 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3230 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
3231 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd ; \
3232 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3233 cd $(HOST_SUBDIR)/bfd || exit 1; \
3234 case $(srcdir) in \
3235 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3236 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3237 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3238 esac; \
1b6c0831
L
3239 module_srcdir=bfd; \
3240 $(SHELL) $$s/$$module_srcdir/configure \
3241 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3242 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3243 --target=${target_alias} \
3244 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3245 $(STAGE2_CONFIGURE_FLAGS)
3246@endif bfd-bootstrap
2a4cbe27 3247
a90ef4bf
JM
3248.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3249maybe-configure-stage3-bfd:
3250@if bfd-bootstrap
3251maybe-configure-stage3-bfd: configure-stage3-bfd
3252configure-stage3-bfd:
3253 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3254 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3255 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3257 TFLAGS="$(STAGE3_TFLAGS)"; \
3258 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3259 $(HOST_EXPORTS) \
a90ef4bf
JM
3260 $(POSTSTAGE1_HOST_EXPORTS) \
3261 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3262 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3263 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
3264 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd ; \
3265 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3266 cd $(HOST_SUBDIR)/bfd || exit 1; \
3267 case $(srcdir) in \
3268 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3269 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3270 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3271 esac; \
1b6c0831
L
3272 module_srcdir=bfd; \
3273 $(SHELL) $$s/$$module_srcdir/configure \
3274 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3275 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3276 --target=${target_alias} \
3277 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3278 $(STAGE3_CONFIGURE_FLAGS)
3279@endif bfd-bootstrap
9b980aa1 3280
a90ef4bf
JM
3281.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3282maybe-configure-stage4-bfd:
3283@if bfd-bootstrap
3284maybe-configure-stage4-bfd: configure-stage4-bfd
3285configure-stage4-bfd:
3286 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3287 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
9b980aa1
RW
3288 @r=`${PWD_COMMAND}`; export r; \
3289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3290 TFLAGS="$(STAGE4_TFLAGS)"; \
3291 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
9b980aa1 3292 $(HOST_EXPORTS) \
a90ef4bf
JM
3293 $(POSTSTAGE1_HOST_EXPORTS) \
3294 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3295 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3296 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
3297 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd ; \
3298 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3299 cd $(HOST_SUBDIR)/bfd || exit 1; \
3300 case $(srcdir) in \
3301 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3302 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3303 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3304 esac; \
1b6c0831
L
3305 module_srcdir=bfd; \
3306 $(SHELL) $$s/$$module_srcdir/configure \
3307 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3308 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3309 --target=${target_alias} \
3310 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3311 $(STAGE4_CONFIGURE_FLAGS)
3312@endif bfd-bootstrap
4fa63067 3313
a90ef4bf
JM
3314.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3315maybe-configure-stageprofile-bfd:
3316@if bfd-bootstrap
3317maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3318configure-stageprofile-bfd:
3319 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3320 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3321 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3323 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3324 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3325 $(HOST_EXPORTS) \
a90ef4bf
JM
3326 $(POSTSTAGE1_HOST_EXPORTS) \
3327 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3328 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3329 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
3330 echo Configuring stage profile in $(HOST_SUBDIR)/bfd ; \
3331 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3332 cd $(HOST_SUBDIR)/bfd || exit 1; \
3333 case $(srcdir) in \
3334 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3335 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3336 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3337 esac; \
1b6c0831
L
3338 module_srcdir=bfd; \
3339 $(SHELL) $$s/$$module_srcdir/configure \
3340 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3341 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3342 --target=${target_alias} \
3343 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3344 $(STAGEprofile_CONFIGURE_FLAGS)
3345@endif bfd-bootstrap
2a4cbe27 3346
a90ef4bf
JM
3347.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3348maybe-configure-stagefeedback-bfd:
3349@if bfd-bootstrap
3350maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3351configure-stagefeedback-bfd:
3352 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3353 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3354 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3356 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3357 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3358 $(HOST_EXPORTS) \
a90ef4bf
JM
3359 $(POSTSTAGE1_HOST_EXPORTS) \
3360 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3361 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3362 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
3363 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd ; \
3364 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
3365 cd $(HOST_SUBDIR)/bfd || exit 1; \
3366 case $(srcdir) in \
3367 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3368 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3369 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3370 esac; \
1b6c0831
L
3371 module_srcdir=bfd; \
3372 $(SHELL) $$s/$$module_srcdir/configure \
3373 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3374 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3375 --target=${target_alias} \
3376 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3377 $(STAGEfeedback_CONFIGURE_FLAGS)
3378@endif bfd-bootstrap
2a4cbe27 3379
56a8fe78 3380
56a8fe78 3381
56a8fe78 3382
6d389afc 3383
a90ef4bf
JM
3384.PHONY: all-bfd maybe-all-bfd
3385maybe-all-bfd:
3386@if gcc-bootstrap
3387all-bfd: stage_current
3388@endif gcc-bootstrap
3389@if bfd
3390TARGET-bfd=all
3391maybe-all-bfd: all-bfd
3392all-bfd: configure-bfd
3393 @r=`${PWD_COMMAND}`; export r; \
6d389afc 3394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3395 $(HOST_EXPORTS) \
3396 (cd $(HOST_SUBDIR)/bfd && \
b3676d82 3397 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3398 $(TARGET-bfd))
3399@endif bfd
6d389afc 3400
6d389afc 3401
2a4cbe27 3402
a90ef4bf
JM
3403.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3404.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3405maybe-all-stage1-bfd:
3406maybe-clean-stage1-bfd:
3407@if bfd-bootstrap
3408maybe-all-stage1-bfd: all-stage1-bfd
3409all-stage1: all-stage1-bfd
3410TARGET-stage1-bfd = $(TARGET-bfd)
3411all-stage1-bfd: configure-stage1-bfd
3412 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3413 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3415 TFLAGS="$(STAGE1_TFLAGS)"; \
3416 $(HOST_EXPORTS) \
3417 cd $(HOST_SUBDIR)/bfd && \
3418 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3419 CFLAGS="$(STAGE1_CFLAGS)" \
3420 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3421 LIBCFLAGS="$(LIBCFLAGS)" \
3422 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3423 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3424 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
3425 $(EXTRA_HOST_FLAGS) \
3426 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3427 TFLAGS="$(STAGE1_TFLAGS)" \
3428 $(TARGET-stage1-bfd)
2a4cbe27 3429
a90ef4bf
JM
3430maybe-clean-stage1-bfd: clean-stage1-bfd
3431clean-stage1: clean-stage1-bfd
3432clean-stage1-bfd:
3433 @if [ $(current_stage) = stage1 ]; then \
3434 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3435 else \
3436 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3437 $(MAKE) stage1-start; \
3438 fi; \
3439 cd $(HOST_SUBDIR)/bfd && \
3440 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 3441 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3442@endif bfd-bootstrap
2a4cbe27 3443
2a4cbe27 3444
a90ef4bf
JM
3445.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3446.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3447maybe-all-stage2-bfd:
3448maybe-clean-stage2-bfd:
3449@if bfd-bootstrap
3450maybe-all-stage2-bfd: all-stage2-bfd
3451all-stage2: all-stage2-bfd
3452TARGET-stage2-bfd = $(TARGET-bfd)
3453all-stage2-bfd: configure-stage2-bfd
3454 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3455 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3457 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 3458 $(HOST_EXPORTS) \
a90ef4bf
JM
3459 $(POSTSTAGE1_HOST_EXPORTS) \
3460 cd $(HOST_SUBDIR)/bfd && \
3461 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3462 CFLAGS="$(STAGE2_CFLAGS)" \
3463 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3464 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3465 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3466 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3467 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3468 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3469 TFLAGS="$(STAGE2_TFLAGS)" \
3470 $(TARGET-stage2-bfd)
2a4cbe27 3471
a90ef4bf
JM
3472maybe-clean-stage2-bfd: clean-stage2-bfd
3473clean-stage2: clean-stage2-bfd
3474clean-stage2-bfd:
3475 @if [ $(current_stage) = stage2 ]; then \
3476 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3477 else \
3478 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3479 $(MAKE) stage2-start; \
3480 fi; \
3481 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3482 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3483@endif bfd-bootstrap
2a4cbe27 3484
a3ca38d2 3485
a90ef4bf
JM
3486.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3487.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3488maybe-all-stage3-bfd:
3489maybe-clean-stage3-bfd:
3490@if bfd-bootstrap
3491maybe-all-stage3-bfd: all-stage3-bfd
3492all-stage3: all-stage3-bfd
3493TARGET-stage3-bfd = $(TARGET-bfd)
3494all-stage3-bfd: configure-stage3-bfd
3495 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3496 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 3497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3498 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 3499 $(HOST_EXPORTS) \
a90ef4bf
JM
3500 $(POSTSTAGE1_HOST_EXPORTS) \
3501 cd $(HOST_SUBDIR)/bfd && \
3502 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3503 CFLAGS="$(STAGE3_CFLAGS)" \
3504 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3505 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3506 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3507 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3508 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3509 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3510 TFLAGS="$(STAGE3_TFLAGS)" \
3511 $(TARGET-stage3-bfd)
a3ca38d2 3512
a90ef4bf
JM
3513maybe-clean-stage3-bfd: clean-stage3-bfd
3514clean-stage3: clean-stage3-bfd
3515clean-stage3-bfd:
3516 @if [ $(current_stage) = stage3 ]; then \
3517 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3518 else \
3519 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3520 $(MAKE) stage3-start; \
3521 fi; \
3522 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3523 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3524@endif bfd-bootstrap
a3ca38d2 3525
108a6f8e 3526
a90ef4bf
JM
3527.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3528.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3529maybe-all-stage4-bfd:
3530maybe-clean-stage4-bfd:
3531@if bfd-bootstrap
3532maybe-all-stage4-bfd: all-stage4-bfd
3533all-stage4: all-stage4-bfd
3534TARGET-stage4-bfd = $(TARGET-bfd)
3535all-stage4-bfd: configure-stage4-bfd
3536 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3537 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 3538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3539 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 3540 $(HOST_EXPORTS) \
a90ef4bf
JM
3541 $(POSTSTAGE1_HOST_EXPORTS) \
3542 cd $(HOST_SUBDIR)/bfd && \
3543 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3544 CFLAGS="$(STAGE4_CFLAGS)" \
3545 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3546 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3547 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3548 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3549 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3550 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3551 TFLAGS="$(STAGE4_TFLAGS)" \
3552 $(TARGET-stage4-bfd)
108a6f8e 3553
a90ef4bf
JM
3554maybe-clean-stage4-bfd: clean-stage4-bfd
3555clean-stage4: clean-stage4-bfd
3556clean-stage4-bfd:
3557 @if [ $(current_stage) = stage4 ]; then \
3558 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3559 else \
3560 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3561 $(MAKE) stage4-start; \
3562 fi; \
3563 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3564 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3565@endif bfd-bootstrap
108a6f8e 3566
2a4cbe27 3567
a90ef4bf
JM
3568.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3569.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3570maybe-all-stageprofile-bfd:
3571maybe-clean-stageprofile-bfd:
3572@if bfd-bootstrap
3573maybe-all-stageprofile-bfd: all-stageprofile-bfd
3574all-stageprofile: all-stageprofile-bfd
3575TARGET-stageprofile-bfd = $(TARGET-bfd)
3576all-stageprofile-bfd: configure-stageprofile-bfd
3577 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3578 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3580 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 3581 $(HOST_EXPORTS) \
a90ef4bf
JM
3582 $(POSTSTAGE1_HOST_EXPORTS) \
3583 cd $(HOST_SUBDIR)/bfd && \
3584 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3585 CFLAGS="$(STAGEprofile_CFLAGS)" \
3586 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3587 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3588 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3589 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3590 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3591 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3592 TFLAGS="$(STAGEprofile_TFLAGS)" \
3593 $(TARGET-stageprofile-bfd)
2a4cbe27 3594
a90ef4bf
JM
3595maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3596clean-stageprofile: clean-stageprofile-bfd
3597clean-stageprofile-bfd:
3598 @if [ $(current_stage) = stageprofile ]; then \
3599 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3600 else \
3601 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3602 $(MAKE) stageprofile-start; \
3603 fi; \
3604 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3605 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3606@endif bfd-bootstrap
2a4cbe27 3607
a7254363 3608
a90ef4bf
JM
3609.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3610.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3611maybe-all-stagefeedback-bfd:
3612maybe-clean-stagefeedback-bfd:
3613@if bfd-bootstrap
3614maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3615all-stagefeedback: all-stagefeedback-bfd
3616TARGET-stagefeedback-bfd = $(TARGET-bfd)
3617all-stagefeedback-bfd: configure-stagefeedback-bfd
3618 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 3619 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3621 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3622 $(HOST_EXPORTS) \
3623 $(POSTSTAGE1_HOST_EXPORTS) \
3624 cd $(HOST_SUBDIR)/bfd && \
3625 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3626 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3627 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3628 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3629 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3630 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3631 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3632 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3633 TFLAGS="$(STAGEfeedback_TFLAGS)" \
3634 $(TARGET-stagefeedback-bfd)
d545f33b 3635
a90ef4bf
JM
3636maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3637clean-stagefeedback: clean-stagefeedback-bfd
3638clean-stagefeedback-bfd:
3639 @if [ $(current_stage) = stagefeedback ]; then \
3640 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3641 else \
3642 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3643 $(MAKE) stagefeedback-start; \
3644 fi; \
3645 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3646 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3647@endif bfd-bootstrap
d545f33b 3648
2a4cbe27 3649
a7254363 3650
d545f33b
PB
3651
3652
a90ef4bf
JM
3653.PHONY: check-bfd maybe-check-bfd
3654maybe-check-bfd:
3655@if bfd
3656maybe-check-bfd: check-bfd
2a4cbe27 3657
a90ef4bf 3658check-bfd:
0aed8855 3659 @: $(MAKE); $(unstage)
4fa63067 3660 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 3662 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 3663 (cd $(HOST_SUBDIR)/bfd && \
f91ca6bc 3664 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 3665
a90ef4bf 3666@endif bfd
2a4cbe27 3667
a90ef4bf
JM
3668.PHONY: install-bfd maybe-install-bfd
3669maybe-install-bfd:
3670@if bfd
3671maybe-install-bfd: install-bfd
2a4cbe27 3672
a90ef4bf 3673install-bfd: installdirs
0aed8855 3674 @: $(MAKE); $(unstage)
4fa63067 3675 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3677 $(HOST_EXPORTS) \
a90ef4bf 3678 (cd $(HOST_SUBDIR)/bfd && \
2da12f12 3679 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3680
a90ef4bf 3681@endif bfd
2a4cbe27 3682
a90ef4bf
JM
3683.PHONY: install-strip-bfd maybe-install-strip-bfd
3684maybe-install-strip-bfd:
3685@if bfd
3686maybe-install-strip-bfd: install-strip-bfd
9b980aa1 3687
a90ef4bf 3688install-strip-bfd: installdirs
9b980aa1
RW
3689 @: $(MAKE); $(unstage)
3690 @r=`${PWD_COMMAND}`; export r; \
3691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3692 $(HOST_EXPORTS) \
a90ef4bf 3693 (cd $(HOST_SUBDIR)/bfd && \
9b980aa1
RW
3694 $(MAKE) $(FLAGS_TO_PASS) install-strip)
3695
a90ef4bf 3696@endif bfd
9b980aa1 3697
56a8fe78 3698# Other targets (info, dvi, pdf, etc.)
2a4cbe27 3699
a90ef4bf
JM
3700.PHONY: maybe-info-bfd info-bfd
3701maybe-info-bfd:
3702@if bfd
3703maybe-info-bfd: info-bfd
4fa63067 3704
a90ef4bf
JM
3705info-bfd: \
3706 configure-bfd
3707 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3708 r=`${PWD_COMMAND}`; export r; \
3709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3710 $(HOST_EXPORTS) \
b813574b 3711 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3713 done; \
a90ef4bf
JM
3714 echo "Doing info in bfd" ; \
3715 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3718 "RANLIB=$${RANLIB}" \
0c24b341 3719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3720 info) \
2a4cbe27
NN
3721 || exit 1
3722
a90ef4bf 3723@endif bfd
2a4cbe27 3724
a90ef4bf
JM
3725.PHONY: maybe-dvi-bfd dvi-bfd
3726maybe-dvi-bfd:
3727@if bfd
3728maybe-dvi-bfd: dvi-bfd
2a4cbe27 3729
a90ef4bf
JM
3730dvi-bfd: \
3731 configure-bfd
3732 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3733 r=`${PWD_COMMAND}`; export r; \
3734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3735 $(HOST_EXPORTS) \
b813574b 3736 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3738 done; \
a90ef4bf
JM
3739 echo "Doing dvi in bfd" ; \
3740 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3743 "RANLIB=$${RANLIB}" \
0c24b341 3744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3745 dvi) \
2a4cbe27
NN
3746 || exit 1
3747
a90ef4bf 3748@endif bfd
2a4cbe27 3749
a90ef4bf
JM
3750.PHONY: maybe-pdf-bfd pdf-bfd
3751maybe-pdf-bfd:
3752@if bfd
3753maybe-pdf-bfd: pdf-bfd
56a8fe78 3754
a90ef4bf
JM
3755pdf-bfd: \
3756 configure-bfd
3757 @[ -f ./bfd/Makefile ] || exit 0; \
56a8fe78
DD
3758 r=`${PWD_COMMAND}`; export r; \
3759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3760 $(HOST_EXPORTS) \
3761 for flag in $(EXTRA_HOST_FLAGS) ; do \
3762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3763 done; \
a90ef4bf
JM
3764 echo "Doing pdf in bfd" ; \
3765 (cd $(HOST_SUBDIR)/bfd && \
56a8fe78
DD
3766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3768 "RANLIB=$${RANLIB}" \
0c24b341 3769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
3770 pdf) \
3771 || exit 1
3772
a90ef4bf 3773@endif bfd
56a8fe78 3774
a90ef4bf
JM
3775.PHONY: maybe-html-bfd html-bfd
3776maybe-html-bfd:
3777@if bfd
3778maybe-html-bfd: html-bfd
6d389afc 3779
a90ef4bf
JM
3780html-bfd: \
3781 configure-bfd
3782 @[ -f ./bfd/Makefile ] || exit 0; \
6d389afc
MS
3783 r=`${PWD_COMMAND}`; export r; \
3784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
3785 $(HOST_EXPORTS) \
3786 for flag in $(EXTRA_HOST_FLAGS) ; do \
3787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3788 done; \
a90ef4bf
JM
3789 echo "Doing html in bfd" ; \
3790 (cd $(HOST_SUBDIR)/bfd && \
6d389afc
MS
3791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3793 "RANLIB=$${RANLIB}" \
0c24b341 3794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
3795 html) \
3796 || exit 1
3797
a90ef4bf 3798@endif bfd
6d389afc 3799
a90ef4bf
JM
3800.PHONY: maybe-TAGS-bfd TAGS-bfd
3801maybe-TAGS-bfd:
3802@if bfd
3803maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 3804
a90ef4bf
JM
3805TAGS-bfd: \
3806 configure-bfd
3807 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3808 r=`${PWD_COMMAND}`; export r; \
3809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3810 $(HOST_EXPORTS) \
b813574b 3811 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3813 done; \
a90ef4bf
JM
3814 echo "Doing TAGS in bfd" ; \
3815 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3818 "RANLIB=$${RANLIB}" \
0c24b341 3819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3820 TAGS) \
2a4cbe27
NN
3821 || exit 1
3822
a90ef4bf 3823@endif bfd
2a4cbe27 3824
a90ef4bf
JM
3825.PHONY: maybe-install-info-bfd install-info-bfd
3826maybe-install-info-bfd:
3827@if bfd
3828maybe-install-info-bfd: install-info-bfd
2a4cbe27 3829
a90ef4bf
JM
3830install-info-bfd: \
3831 configure-bfd \
3832 info-bfd
3833 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3834 r=`${PWD_COMMAND}`; export r; \
3835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3836 $(HOST_EXPORTS) \
b813574b 3837 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3839 done; \
a90ef4bf
JM
3840 echo "Doing install-info in bfd" ; \
3841 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3844 "RANLIB=$${RANLIB}" \
0c24b341 3845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3846 install-info) \
2a4cbe27
NN
3847 || exit 1
3848
a90ef4bf 3849@endif bfd
2a4cbe27 3850
a90ef4bf
JM
3851.PHONY: maybe-install-pdf-bfd install-pdf-bfd
3852maybe-install-pdf-bfd:
3853@if bfd
3854maybe-install-pdf-bfd: install-pdf-bfd
a3ca38d2 3855
a90ef4bf
JM
3856install-pdf-bfd: \
3857 configure-bfd \
3858 pdf-bfd
3859 @[ -f ./bfd/Makefile ] || exit 0; \
a3ca38d2
DD
3860 r=`${PWD_COMMAND}`; export r; \
3861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3862 $(HOST_EXPORTS) \
3863 for flag in $(EXTRA_HOST_FLAGS) ; do \
3864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3865 done; \
a90ef4bf
JM
3866 echo "Doing install-pdf in bfd" ; \
3867 (cd $(HOST_SUBDIR)/bfd && \
a3ca38d2
DD
3868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3870 "RANLIB=$${RANLIB}" \
0c24b341 3871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
3872 install-pdf) \
3873 || exit 1
3874
a90ef4bf 3875@endif bfd
a3ca38d2 3876
a90ef4bf
JM
3877.PHONY: maybe-install-html-bfd install-html-bfd
3878maybe-install-html-bfd:
3879@if bfd
3880maybe-install-html-bfd: install-html-bfd
108a6f8e 3881
a90ef4bf
JM
3882install-html-bfd: \
3883 configure-bfd \
3884 html-bfd
3885 @[ -f ./bfd/Makefile ] || exit 0; \
108a6f8e
CD
3886 r=`${PWD_COMMAND}`; export r; \
3887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3888 $(HOST_EXPORTS) \
3889 for flag in $(EXTRA_HOST_FLAGS) ; do \
3890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3891 done; \
a90ef4bf
JM
3892 echo "Doing install-html in bfd" ; \
3893 (cd $(HOST_SUBDIR)/bfd && \
108a6f8e
CD
3894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3896 "RANLIB=$${RANLIB}" \
0c24b341 3897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
3898 install-html) \
3899 || exit 1
3900
a90ef4bf 3901@endif bfd
108a6f8e 3902
a90ef4bf
JM
3903.PHONY: maybe-installcheck-bfd installcheck-bfd
3904maybe-installcheck-bfd:
3905@if bfd
3906maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 3907
a90ef4bf
JM
3908installcheck-bfd: \
3909 configure-bfd
3910 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3911 r=`${PWD_COMMAND}`; export r; \
3912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3913 $(HOST_EXPORTS) \
b813574b 3914 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3916 done; \
a90ef4bf
JM
3917 echo "Doing installcheck in bfd" ; \
3918 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3921 "RANLIB=$${RANLIB}" \
0c24b341 3922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3923 installcheck) \
2a4cbe27
NN
3924 || exit 1
3925
a90ef4bf 3926@endif bfd
2a4cbe27 3927
a90ef4bf
JM
3928.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3929maybe-mostlyclean-bfd:
3930@if bfd
3931maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 3932
a90ef4bf
JM
3933mostlyclean-bfd:
3934 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3935 r=`${PWD_COMMAND}`; export r; \
3936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3937 $(HOST_EXPORTS) \
b813574b 3938 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3940 done; \
a90ef4bf
JM
3941 echo "Doing mostlyclean in bfd" ; \
3942 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3945 "RANLIB=$${RANLIB}" \
0c24b341 3946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3947 mostlyclean) \
2a4cbe27
NN
3948 || exit 1
3949
a90ef4bf 3950@endif bfd
2a4cbe27 3951
a90ef4bf
JM
3952.PHONY: maybe-clean-bfd clean-bfd
3953maybe-clean-bfd:
3954@if bfd
3955maybe-clean-bfd: clean-bfd
2a4cbe27 3956
a90ef4bf
JM
3957clean-bfd:
3958 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3959 r=`${PWD_COMMAND}`; export r; \
3960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3961 $(HOST_EXPORTS) \
b813574b 3962 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3964 done; \
a90ef4bf
JM
3965 echo "Doing clean in bfd" ; \
3966 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3969 "RANLIB=$${RANLIB}" \
0c24b341 3970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3971 clean) \
2a4cbe27
NN
3972 || exit 1
3973
a90ef4bf 3974@endif bfd
2a4cbe27 3975
a90ef4bf
JM
3976.PHONY: maybe-distclean-bfd distclean-bfd
3977maybe-distclean-bfd:
3978@if bfd
3979maybe-distclean-bfd: distclean-bfd
2a4cbe27 3980
a90ef4bf
JM
3981distclean-bfd:
3982 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3983 r=`${PWD_COMMAND}`; export r; \
3984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3985 $(HOST_EXPORTS) \
b813574b 3986 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3988 done; \
a90ef4bf
JM
3989 echo "Doing distclean in bfd" ; \
3990 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3993 "RANLIB=$${RANLIB}" \
0c24b341 3994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3995 distclean) \
2a4cbe27
NN
3996 || exit 1
3997
a90ef4bf 3998@endif bfd
2a4cbe27 3999
a90ef4bf
JM
4000.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4001maybe-maintainer-clean-bfd:
4002@if bfd
4003maybe-maintainer-clean-bfd: maintainer-clean-bfd
2a4cbe27 4004
a90ef4bf
JM
4005maintainer-clean-bfd:
4006 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4007 r=`${PWD_COMMAND}`; export r; \
4008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4009 $(HOST_EXPORTS) \
b813574b 4010 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4012 done; \
a90ef4bf
JM
4013 echo "Doing maintainer-clean in bfd" ; \
4014 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4017 "RANLIB=$${RANLIB}" \
0c24b341 4018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4019 maintainer-clean) \
2a4cbe27
NN
4020 || exit 1
4021
a90ef4bf 4022@endif bfd
2a4cbe27 4023
2a4cbe27 4024
a7254363 4025
a90ef4bf
JM
4026.PHONY: configure-opcodes maybe-configure-opcodes
4027maybe-configure-opcodes:
4f0ef2d8 4028@if gcc-bootstrap
a90ef4bf 4029configure-opcodes: stage_current
4f0ef2d8 4030@endif gcc-bootstrap
a90ef4bf
JM
4031@if opcodes
4032maybe-configure-opcodes: configure-opcodes
4033configure-opcodes:
c52c6897 4034 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4036 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4037 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
1f53ca9a 4038 $(HOST_EXPORTS) \
a90ef4bf
JM
4039 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4040 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
4fa63067 4041 case $(srcdir) in \
b00612cc 4042 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4043 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
b00612cc 4044 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4045 esac; \
1b6c0831
L
4046 module_srcdir=opcodes; \
4047 $(SHELL) \
4048 $$s/$$module_srcdir/configure \
4049 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4050 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4051 --target=${target_alias} \
2a4cbe27 4052 || exit 1
a90ef4bf 4053@endif opcodes
a7254363 4054
d545f33b
PB
4055
4056
a90ef4bf
JM
4057.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4058maybe-configure-stage1-opcodes:
4059@if opcodes-bootstrap
4060maybe-configure-stage1-opcodes: configure-stage1-opcodes
4061configure-stage1-opcodes:
4062 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4063 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4064 @r=`${PWD_COMMAND}`; export r; \
4065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4066 TFLAGS="$(STAGE1_TFLAGS)"; \
4067 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4068 $(HOST_EXPORTS) \
4069 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
4070 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4071 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
4072 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes ; \
4073 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4074 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4075 case $(srcdir) in \
4076 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4077 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4078 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4079 esac; \
1b6c0831
L
4080 module_srcdir=opcodes; \
4081 $(SHELL) $$s/$$module_srcdir/configure \
4082 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4083 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4084 --target=${target_alias} \
4085 \
a90ef4bf
JM
4086 $(STAGE1_CONFIGURE_FLAGS)
4087@endif opcodes-bootstrap
2a4cbe27 4088
a90ef4bf
JM
4089.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4090maybe-configure-stage2-opcodes:
4091@if opcodes-bootstrap
4092maybe-configure-stage2-opcodes: configure-stage2-opcodes
4093configure-stage2-opcodes:
4094 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4095 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067 4096 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4098 TFLAGS="$(STAGE2_TFLAGS)"; \
4099 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4100 $(HOST_EXPORTS) \
a90ef4bf
JM
4101 $(POSTSTAGE1_HOST_EXPORTS) \
4102 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
4103 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4104 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
4105 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes ; \
4106 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4107 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4108 case $(srcdir) in \
4109 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4110 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4111 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4112 esac; \
1b6c0831
L
4113 module_srcdir=opcodes; \
4114 $(SHELL) $$s/$$module_srcdir/configure \
4115 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4116 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4117 --target=${target_alias} \
4118 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4119 $(STAGE2_CONFIGURE_FLAGS)
4120@endif opcodes-bootstrap
2a4cbe27 4121
a90ef4bf
JM
4122.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
4123maybe-configure-stage3-opcodes:
4124@if opcodes-bootstrap
4125maybe-configure-stage3-opcodes: configure-stage3-opcodes
4126configure-stage3-opcodes:
4127 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4128 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4129 @r=`${PWD_COMMAND}`; export r; \
4130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4131 TFLAGS="$(STAGE3_TFLAGS)"; \
4132 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4133 $(HOST_EXPORTS) \
a90ef4bf
JM
4134 $(POSTSTAGE1_HOST_EXPORTS) \
4135 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
4136 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4137 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
4138 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes ; \
4139 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4140 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4141 case $(srcdir) in \
4142 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4143 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4144 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4145 esac; \
1b6c0831
L
4146 module_srcdir=opcodes; \
4147 $(SHELL) $$s/$$module_srcdir/configure \
4148 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4149 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4150 --target=${target_alias} \
4151 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4152 $(STAGE3_CONFIGURE_FLAGS)
4153@endif opcodes-bootstrap
9b980aa1 4154
a90ef4bf
JM
4155.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
4156maybe-configure-stage4-opcodes:
4157@if opcodes-bootstrap
4158maybe-configure-stage4-opcodes: configure-stage4-opcodes
4159configure-stage4-opcodes:
4160 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4161 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
9b980aa1
RW
4162 @r=`${PWD_COMMAND}`; export r; \
4163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4164 TFLAGS="$(STAGE4_TFLAGS)"; \
4165 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
9b980aa1 4166 $(HOST_EXPORTS) \
a90ef4bf
JM
4167 $(POSTSTAGE1_HOST_EXPORTS) \
4168 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
4169 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4170 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
4171 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes ; \
4172 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4173 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4174 case $(srcdir) in \
4175 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4176 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4177 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4178 esac; \
1b6c0831
L
4179 module_srcdir=opcodes; \
4180 $(SHELL) $$s/$$module_srcdir/configure \
4181 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4182 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4183 --target=${target_alias} \
4184 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4185 $(STAGE4_CONFIGURE_FLAGS)
4186@endif opcodes-bootstrap
4fa63067 4187
a90ef4bf
JM
4188.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
4189maybe-configure-stageprofile-opcodes:
4190@if opcodes-bootstrap
4191maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
4192configure-stageprofile-opcodes:
4193 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4194 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4195 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4197 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4198 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4199 $(HOST_EXPORTS) \
a90ef4bf
JM
4200 $(POSTSTAGE1_HOST_EXPORTS) \
4201 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4202 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4203 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
4204 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes ; \
4205 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4206 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4207 case $(srcdir) in \
4208 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4209 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4210 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4211 esac; \
1b6c0831
L
4212 module_srcdir=opcodes; \
4213 $(SHELL) $$s/$$module_srcdir/configure \
4214 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4215 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4216 --target=${target_alias} \
4217 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4218 $(STAGEprofile_CONFIGURE_FLAGS)
4219@endif opcodes-bootstrap
4220
4221.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4222maybe-configure-stagefeedback-opcodes:
4223@if opcodes-bootstrap
4224maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4225configure-stagefeedback-opcodes:
4226 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4227 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4228 @r=`${PWD_COMMAND}`; export r; \
4229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4230 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4231 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4232 $(HOST_EXPORTS) \
4233 $(POSTSTAGE1_HOST_EXPORTS) \
4234 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4235 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4236 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
4237 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes ; \
4238 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4239 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4240 case $(srcdir) in \
4241 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4242 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4243 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4244 esac; \
1b6c0831
L
4245 module_srcdir=opcodes; \
4246 $(SHELL) $$s/$$module_srcdir/configure \
4247 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4248 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4249 --target=${target_alias} \
4250 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4251 $(STAGEfeedback_CONFIGURE_FLAGS)
4252@endif opcodes-bootstrap
4253
4254
4255
4256
4257
4258.PHONY: all-opcodes maybe-all-opcodes
4259maybe-all-opcodes:
4260@if gcc-bootstrap
4261all-opcodes: stage_current
4262@endif gcc-bootstrap
4263@if opcodes
4264TARGET-opcodes=all
4265maybe-all-opcodes: all-opcodes
4266all-opcodes: configure-opcodes
4267 @r=`${PWD_COMMAND}`; export r; \
4268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4269 $(HOST_EXPORTS) \
4270 (cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4271 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4272 $(TARGET-opcodes))
4273@endif opcodes
4274
4275
4276
4277.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4278.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4279maybe-all-stage1-opcodes:
4280maybe-clean-stage1-opcodes:
4281@if opcodes-bootstrap
4282maybe-all-stage1-opcodes: all-stage1-opcodes
4283all-stage1: all-stage1-opcodes
4284TARGET-stage1-opcodes = $(TARGET-opcodes)
4285all-stage1-opcodes: configure-stage1-opcodes
4286 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4287 @r=`${PWD_COMMAND}`; export r; \
4288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4289 TFLAGS="$(STAGE1_TFLAGS)"; \
4290 $(HOST_EXPORTS) \
4291 cd $(HOST_SUBDIR)/opcodes && \
4292 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4293 CFLAGS="$(STAGE1_CFLAGS)" \
4294 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4295 LIBCFLAGS="$(LIBCFLAGS)" \
4296 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4297 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4298 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4299 $(EXTRA_HOST_FLAGS) \
4300 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4301 TFLAGS="$(STAGE1_TFLAGS)" \
4302 $(TARGET-stage1-opcodes)
4303
4304maybe-clean-stage1-opcodes: clean-stage1-opcodes
4305clean-stage1: clean-stage1-opcodes
4306clean-stage1-opcodes:
4307 @if [ $(current_stage) = stage1 ]; then \
4308 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4309 else \
4310 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4311 $(MAKE) stage1-start; \
4312 fi; \
4313 cd $(HOST_SUBDIR)/opcodes && \
4314 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 4315 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4316@endif opcodes-bootstrap
4317
4318
4319.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4320.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4321maybe-all-stage2-opcodes:
4322maybe-clean-stage2-opcodes:
4323@if opcodes-bootstrap
4324maybe-all-stage2-opcodes: all-stage2-opcodes
4325all-stage2: all-stage2-opcodes
4326TARGET-stage2-opcodes = $(TARGET-opcodes)
4327all-stage2-opcodes: configure-stage2-opcodes
4328 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4329 @r=`${PWD_COMMAND}`; export r; \
4330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4331 TFLAGS="$(STAGE2_TFLAGS)"; \
4332 $(HOST_EXPORTS) \
4333 $(POSTSTAGE1_HOST_EXPORTS) \
4334 cd $(HOST_SUBDIR)/opcodes && \
4335 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4336 CFLAGS="$(STAGE2_CFLAGS)" \
4337 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4338 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4339 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4340 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4341 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4342 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4343 TFLAGS="$(STAGE2_TFLAGS)" \
4344 $(TARGET-stage2-opcodes)
4345
4346maybe-clean-stage2-opcodes: clean-stage2-opcodes
4347clean-stage2: clean-stage2-opcodes
4348clean-stage2-opcodes:
4349 @if [ $(current_stage) = stage2 ]; then \
4350 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4351 else \
4352 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4353 $(MAKE) stage2-start; \
4354 fi; \
4355 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4356 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4357@endif opcodes-bootstrap
4358
4359
4360.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4361.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4362maybe-all-stage3-opcodes:
4363maybe-clean-stage3-opcodes:
4364@if opcodes-bootstrap
4365maybe-all-stage3-opcodes: all-stage3-opcodes
4366all-stage3: all-stage3-opcodes
4367TARGET-stage3-opcodes = $(TARGET-opcodes)
4368all-stage3-opcodes: configure-stage3-opcodes
4369 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4370 @r=`${PWD_COMMAND}`; export r; \
4371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4372 TFLAGS="$(STAGE3_TFLAGS)"; \
4373 $(HOST_EXPORTS) \
4374 $(POSTSTAGE1_HOST_EXPORTS) \
4375 cd $(HOST_SUBDIR)/opcodes && \
4376 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4377 CFLAGS="$(STAGE3_CFLAGS)" \
4378 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4379 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4380 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4381 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4382 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4383 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4384 TFLAGS="$(STAGE3_TFLAGS)" \
4385 $(TARGET-stage3-opcodes)
4386
4387maybe-clean-stage3-opcodes: clean-stage3-opcodes
4388clean-stage3: clean-stage3-opcodes
4389clean-stage3-opcodes:
4390 @if [ $(current_stage) = stage3 ]; then \
4391 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4392 else \
4393 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4394 $(MAKE) stage3-start; \
4395 fi; \
4396 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4397 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4398@endif opcodes-bootstrap
4399
4400
4401.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4402.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4403maybe-all-stage4-opcodes:
4404maybe-clean-stage4-opcodes:
4405@if opcodes-bootstrap
4406maybe-all-stage4-opcodes: all-stage4-opcodes
4407all-stage4: all-stage4-opcodes
4408TARGET-stage4-opcodes = $(TARGET-opcodes)
4409all-stage4-opcodes: configure-stage4-opcodes
4410 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4411 @r=`${PWD_COMMAND}`; export r; \
4412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4413 TFLAGS="$(STAGE4_TFLAGS)"; \
4414 $(HOST_EXPORTS) \
4415 $(POSTSTAGE1_HOST_EXPORTS) \
4416 cd $(HOST_SUBDIR)/opcodes && \
4417 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4418 CFLAGS="$(STAGE4_CFLAGS)" \
4419 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4420 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4421 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4422 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4423 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4424 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4425 TFLAGS="$(STAGE4_TFLAGS)" \
4426 $(TARGET-stage4-opcodes)
4427
4428maybe-clean-stage4-opcodes: clean-stage4-opcodes
4429clean-stage4: clean-stage4-opcodes
4430clean-stage4-opcodes:
4431 @if [ $(current_stage) = stage4 ]; then \
4432 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4433 else \
4434 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4435 $(MAKE) stage4-start; \
4436 fi; \
4437 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4438 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4439@endif opcodes-bootstrap
4440
4441
4442.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4443.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4444maybe-all-stageprofile-opcodes:
4445maybe-clean-stageprofile-opcodes:
4446@if opcodes-bootstrap
4447maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4448all-stageprofile: all-stageprofile-opcodes
4449TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4450all-stageprofile-opcodes: configure-stageprofile-opcodes
4451 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4452 @r=`${PWD_COMMAND}`; export r; \
4453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4454 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4455 $(HOST_EXPORTS) \
4456 $(POSTSTAGE1_HOST_EXPORTS) \
4457 cd $(HOST_SUBDIR)/opcodes && \
4458 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4459 CFLAGS="$(STAGEprofile_CFLAGS)" \
4460 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4461 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4462 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4463 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4464 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4465 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4466 TFLAGS="$(STAGEprofile_TFLAGS)" \
4467 $(TARGET-stageprofile-opcodes)
4468
4469maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4470clean-stageprofile: clean-stageprofile-opcodes
4471clean-stageprofile-opcodes:
4472 @if [ $(current_stage) = stageprofile ]; then \
4473 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4474 else \
4475 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4476 $(MAKE) stageprofile-start; \
4477 fi; \
4478 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4479 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4480@endif opcodes-bootstrap
4481
4482
4483.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4484.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4485maybe-all-stagefeedback-opcodes:
4486maybe-clean-stagefeedback-opcodes:
4487@if opcodes-bootstrap
4488maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4489all-stagefeedback: all-stagefeedback-opcodes
4490TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4491all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4492 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4493 @r=`${PWD_COMMAND}`; export r; \
4494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4495 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4496 $(HOST_EXPORTS) \
4497 $(POSTSTAGE1_HOST_EXPORTS) \
4498 cd $(HOST_SUBDIR)/opcodes && \
4499 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4500 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4501 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4502 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4503 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4504 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4505 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4506 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4507 TFLAGS="$(STAGEfeedback_TFLAGS)" \
4508 $(TARGET-stagefeedback-opcodes)
4509
4510maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4511clean-stagefeedback: clean-stagefeedback-opcodes
4512clean-stagefeedback-opcodes:
4513 @if [ $(current_stage) = stagefeedback ]; then \
4514 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4515 else \
4516 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4517 $(MAKE) stagefeedback-start; \
4518 fi; \
4519 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4520 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4521@endif opcodes-bootstrap
4522
4523
4524
4525
4526
4527.PHONY: check-opcodes maybe-check-opcodes
4528maybe-check-opcodes:
4529@if opcodes
4530maybe-check-opcodes: check-opcodes
4531
4532check-opcodes:
0aed8855 4533 @: $(MAKE); $(unstage)
a90ef4bf 4534 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 4536 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 4537 (cd $(HOST_SUBDIR)/opcodes && \
f91ca6bc 4538 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 4539
a90ef4bf 4540@endif opcodes
2a4cbe27 4541
a90ef4bf
JM
4542.PHONY: install-opcodes maybe-install-opcodes
4543maybe-install-opcodes:
4544@if opcodes
4545maybe-install-opcodes: install-opcodes
56a8fe78 4546
a90ef4bf 4547install-opcodes: installdirs
56a8fe78 4548 @: $(MAKE); $(unstage)
a90ef4bf 4549 @r=`${PWD_COMMAND}`; export r; \
56a8fe78
DD
4550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4551 $(HOST_EXPORTS) \
a90ef4bf
JM
4552 (cd $(HOST_SUBDIR)/opcodes && \
4553 $(MAKE) $(FLAGS_TO_PASS) install)
56a8fe78 4554
a90ef4bf 4555@endif opcodes
56a8fe78 4556
a90ef4bf
JM
4557.PHONY: install-strip-opcodes maybe-install-strip-opcodes
4558maybe-install-strip-opcodes:
4559@if opcodes
4560maybe-install-strip-opcodes: install-strip-opcodes
6d389afc 4561
a90ef4bf 4562install-strip-opcodes: installdirs
0aed8855 4563 @: $(MAKE); $(unstage)
a90ef4bf
JM
4564 @r=`${PWD_COMMAND}`; export r; \
4565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4566 $(HOST_EXPORTS) \
4567 (cd $(HOST_SUBDIR)/opcodes && \
4568 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4569
4570@endif opcodes
4571
4572# Other targets (info, dvi, pdf, etc.)
4573
4574.PHONY: maybe-info-opcodes info-opcodes
4575maybe-info-opcodes:
4576@if opcodes
4577maybe-info-opcodes: info-opcodes
4578
4579info-opcodes: \
4580 configure-opcodes
4581 @[ -f ./opcodes/Makefile ] || exit 0; \
6d389afc
MS
4582 r=`${PWD_COMMAND}`; export r; \
4583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
4584 $(HOST_EXPORTS) \
4585 for flag in $(EXTRA_HOST_FLAGS) ; do \
4586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4587 done; \
a90ef4bf
JM
4588 echo "Doing info in opcodes" ; \
4589 (cd $(HOST_SUBDIR)/opcodes && \
6d389afc
MS
4590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4592 "RANLIB=$${RANLIB}" \
0c24b341 4593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4594 info) \
6d389afc
MS
4595 || exit 1
4596
a90ef4bf 4597@endif opcodes
6d389afc 4598
a90ef4bf
JM
4599.PHONY: maybe-dvi-opcodes dvi-opcodes
4600maybe-dvi-opcodes:
4601@if opcodes
4602maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 4603
a90ef4bf
JM
4604dvi-opcodes: \
4605 configure-opcodes
4606 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4607 r=`${PWD_COMMAND}`; export r; \
4608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4609 $(HOST_EXPORTS) \
b813574b 4610 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4612 done; \
a90ef4bf
JM
4613 echo "Doing dvi in opcodes" ; \
4614 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4617 "RANLIB=$${RANLIB}" \
0c24b341 4618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4619 dvi) \
2a4cbe27
NN
4620 || exit 1
4621
a90ef4bf 4622@endif opcodes
2a4cbe27 4623
a90ef4bf
JM
4624.PHONY: maybe-pdf-opcodes pdf-opcodes
4625maybe-pdf-opcodes:
4626@if opcodes
4627maybe-pdf-opcodes: pdf-opcodes
2a4cbe27 4628
a90ef4bf
JM
4629pdf-opcodes: \
4630 configure-opcodes
4631 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4632 r=`${PWD_COMMAND}`; export r; \
4633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4634 $(HOST_EXPORTS) \
b813574b 4635 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4637 done; \
a90ef4bf
JM
4638 echo "Doing pdf in opcodes" ; \
4639 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4642 "RANLIB=$${RANLIB}" \
0c24b341 4643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4644 pdf) \
2a4cbe27
NN
4645 || exit 1
4646
a90ef4bf 4647@endif opcodes
2a4cbe27 4648
a90ef4bf
JM
4649.PHONY: maybe-html-opcodes html-opcodes
4650maybe-html-opcodes:
4651@if opcodes
4652maybe-html-opcodes: html-opcodes
a3ca38d2 4653
a90ef4bf
JM
4654html-opcodes: \
4655 configure-opcodes
4656 @[ -f ./opcodes/Makefile ] || exit 0; \
a3ca38d2
DD
4657 r=`${PWD_COMMAND}`; export r; \
4658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4659 $(HOST_EXPORTS) \
4660 for flag in $(EXTRA_HOST_FLAGS) ; do \
4661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4662 done; \
a90ef4bf
JM
4663 echo "Doing html in opcodes" ; \
4664 (cd $(HOST_SUBDIR)/opcodes && \
a3ca38d2
DD
4665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4667 "RANLIB=$${RANLIB}" \
0c24b341 4668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4669 html) \
a3ca38d2
DD
4670 || exit 1
4671
a90ef4bf 4672@endif opcodes
a3ca38d2 4673
a90ef4bf
JM
4674.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4675maybe-TAGS-opcodes:
4676@if opcodes
4677maybe-TAGS-opcodes: TAGS-opcodes
108a6f8e 4678
a90ef4bf
JM
4679TAGS-opcodes: \
4680 configure-opcodes
4681 @[ -f ./opcodes/Makefile ] || exit 0; \
108a6f8e
CD
4682 r=`${PWD_COMMAND}`; export r; \
4683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4684 $(HOST_EXPORTS) \
4685 for flag in $(EXTRA_HOST_FLAGS) ; do \
4686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4687 done; \
a90ef4bf
JM
4688 echo "Doing TAGS in opcodes" ; \
4689 (cd $(HOST_SUBDIR)/opcodes && \
108a6f8e
CD
4690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4692 "RANLIB=$${RANLIB}" \
0c24b341 4693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4694 TAGS) \
108a6f8e
CD
4695 || exit 1
4696
a90ef4bf 4697@endif opcodes
108a6f8e 4698
a90ef4bf
JM
4699.PHONY: maybe-install-info-opcodes install-info-opcodes
4700maybe-install-info-opcodes:
4701@if opcodes
4702maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 4703
a90ef4bf
JM
4704install-info-opcodes: \
4705 configure-opcodes \
4706 info-opcodes
4707 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4708 r=`${PWD_COMMAND}`; export r; \
4709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4710 $(HOST_EXPORTS) \
b813574b 4711 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4713 done; \
a90ef4bf
JM
4714 echo "Doing install-info in opcodes" ; \
4715 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4718 "RANLIB=$${RANLIB}" \
0c24b341 4719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4720 install-info) \
2a4cbe27
NN
4721 || exit 1
4722
a90ef4bf 4723@endif opcodes
2a4cbe27 4724
a90ef4bf
JM
4725.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
4726maybe-install-pdf-opcodes:
4727@if opcodes
4728maybe-install-pdf-opcodes: install-pdf-opcodes
2a4cbe27 4729
a90ef4bf
JM
4730install-pdf-opcodes: \
4731 configure-opcodes \
4732 pdf-opcodes
4733 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4734 r=`${PWD_COMMAND}`; export r; \
4735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4736 $(HOST_EXPORTS) \
b813574b 4737 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4739 done; \
a90ef4bf
JM
4740 echo "Doing install-pdf in opcodes" ; \
4741 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4744 "RANLIB=$${RANLIB}" \
0c24b341 4745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4746 install-pdf) \
2a4cbe27
NN
4747 || exit 1
4748
a90ef4bf 4749@endif opcodes
2a4cbe27 4750
a90ef4bf
JM
4751.PHONY: maybe-install-html-opcodes install-html-opcodes
4752maybe-install-html-opcodes:
4753@if opcodes
4754maybe-install-html-opcodes: install-html-opcodes
2a4cbe27 4755
a90ef4bf
JM
4756install-html-opcodes: \
4757 configure-opcodes \
4758 html-opcodes
4759 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4760 r=`${PWD_COMMAND}`; export r; \
4761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4762 $(HOST_EXPORTS) \
b813574b 4763 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4765 done; \
a90ef4bf
JM
4766 echo "Doing install-html in opcodes" ; \
4767 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4770 "RANLIB=$${RANLIB}" \
0c24b341 4771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4772 install-html) \
2a4cbe27
NN
4773 || exit 1
4774
a90ef4bf 4775@endif opcodes
2a4cbe27 4776
a90ef4bf
JM
4777.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4778maybe-installcheck-opcodes:
4779@if opcodes
4780maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 4781
a90ef4bf
JM
4782installcheck-opcodes: \
4783 configure-opcodes
4784 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4785 r=`${PWD_COMMAND}`; export r; \
4786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4787 $(HOST_EXPORTS) \
b813574b 4788 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4790 done; \
a90ef4bf
JM
4791 echo "Doing installcheck in opcodes" ; \
4792 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4795 "RANLIB=$${RANLIB}" \
0c24b341 4796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4797 installcheck) \
2a4cbe27
NN
4798 || exit 1
4799
a90ef4bf 4800@endif opcodes
2a4cbe27 4801
a90ef4bf
JM
4802.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4803maybe-mostlyclean-opcodes:
4804@if opcodes
4805maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27 4806
a90ef4bf
JM
4807mostlyclean-opcodes:
4808 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4809 r=`${PWD_COMMAND}`; export r; \
4810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4811 $(HOST_EXPORTS) \
b813574b 4812 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4814 done; \
a90ef4bf
JM
4815 echo "Doing mostlyclean in opcodes" ; \
4816 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4819 "RANLIB=$${RANLIB}" \
0c24b341 4820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4821 mostlyclean) \
2a4cbe27
NN
4822 || exit 1
4823
a90ef4bf 4824@endif opcodes
2a4cbe27 4825
a90ef4bf
JM
4826.PHONY: maybe-clean-opcodes clean-opcodes
4827maybe-clean-opcodes:
4828@if opcodes
4829maybe-clean-opcodes: clean-opcodes
2a4cbe27 4830
a90ef4bf
JM
4831clean-opcodes:
4832 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4833 r=`${PWD_COMMAND}`; export r; \
4834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4835 $(HOST_EXPORTS) \
b813574b 4836 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4838 done; \
a90ef4bf
JM
4839 echo "Doing clean in opcodes" ; \
4840 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4843 "RANLIB=$${RANLIB}" \
0c24b341 4844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4845 clean) \
2a4cbe27
NN
4846 || exit 1
4847
a90ef4bf 4848@endif opcodes
2a4cbe27 4849
a90ef4bf
JM
4850.PHONY: maybe-distclean-opcodes distclean-opcodes
4851maybe-distclean-opcodes:
4852@if opcodes
4853maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 4854
a90ef4bf
JM
4855distclean-opcodes:
4856 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4857 r=`${PWD_COMMAND}`; export r; \
4858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4859 $(HOST_EXPORTS) \
b813574b 4860 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4862 done; \
a90ef4bf
JM
4863 echo "Doing distclean in opcodes" ; \
4864 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4867 "RANLIB=$${RANLIB}" \
0c24b341 4868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4869 distclean) \
2a4cbe27
NN
4870 || exit 1
4871
a90ef4bf 4872@endif opcodes
2a4cbe27 4873
a90ef4bf
JM
4874.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4875maybe-maintainer-clean-opcodes:
4876@if opcodes
4877maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 4878
a90ef4bf
JM
4879maintainer-clean-opcodes:
4880 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4881 r=`${PWD_COMMAND}`; export r; \
4882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4883 $(HOST_EXPORTS) \
b813574b 4884 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4886 done; \
a90ef4bf
JM
4887 echo "Doing maintainer-clean in opcodes" ; \
4888 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4891 "RANLIB=$${RANLIB}" \
0c24b341 4892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4893 maintainer-clean) \
2a4cbe27
NN
4894 || exit 1
4895
a90ef4bf 4896@endif opcodes
2a4cbe27 4897
2a4cbe27 4898
a7254363 4899
a90ef4bf
JM
4900.PHONY: configure-binutils maybe-configure-binutils
4901maybe-configure-binutils:
4f0ef2d8 4902@if gcc-bootstrap
a90ef4bf 4903configure-binutils: stage_current
4f0ef2d8 4904@endif gcc-bootstrap
a90ef4bf
JM
4905@if binutils
4906maybe-configure-binutils: configure-binutils
4907configure-binutils:
c52c6897
PB
4908 @r=`${PWD_COMMAND}`; export r; \
4909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4910 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
4911 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
1f53ca9a 4912 $(HOST_EXPORTS) \
a90ef4bf
JM
4913 echo Configuring in $(HOST_SUBDIR)/binutils; \
4914 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
4fa63067 4915 case $(srcdir) in \
b00612cc 4916 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4917 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
b00612cc 4918 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4919 esac; \
1b6c0831
L
4920 module_srcdir=binutils; \
4921 $(SHELL) \
4922 $$s/$$module_srcdir/configure \
4923 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4924 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4925 --target=${target_alias} \
2a4cbe27 4926 || exit 1
a90ef4bf 4927@endif binutils
2a4cbe27 4928
a7254363
PB
4929
4930
a90ef4bf
JM
4931.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
4932maybe-configure-stage1-binutils:
4933@if binutils-bootstrap
4934maybe-configure-stage1-binutils: configure-stage1-binutils
4935configure-stage1-binutils:
c52c6897 4936 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 4937 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4938 @r=`${PWD_COMMAND}`; export r; \
4939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4940 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 4941 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
1b05fbbd 4942 $(HOST_EXPORTS) \
8ee82aff 4943 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4944 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4945 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
4946 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils ; \
4947 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4948 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4949 case $(srcdir) in \
4950 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4951 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4952 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4953 esac; \
1b6c0831
L
4954 module_srcdir=binutils; \
4955 $(SHELL) $$s/$$module_srcdir/configure \
4956 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4957 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4958 --target=${target_alias} \
4959 \
1b05fbbd 4960 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 4961@endif binutils-bootstrap
d545f33b 4962
a90ef4bf
JM
4963.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
4964maybe-configure-stage2-binutils:
4965@if binutils-bootstrap
4966maybe-configure-stage2-binutils: configure-stage2-binutils
4967configure-stage2-binutils:
c52c6897 4968 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 4969 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4970 @r=`${PWD_COMMAND}`; export r; \
4971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4972 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 4973 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 4974 $(HOST_EXPORTS) \
1b05fbbd 4975 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 4976 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4977 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4978 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
4979 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils ; \
4980 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4981 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4982 case $(srcdir) in \
4983 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4984 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4985 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4986 esac; \
1b6c0831
L
4987 module_srcdir=binutils; \
4988 $(SHELL) $$s/$$module_srcdir/configure \
4989 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4990 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4991 --target=${target_alias} \
4992 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 4993 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 4994@endif binutils-bootstrap
8520c408 4995
a90ef4bf
JM
4996.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
4997maybe-configure-stage3-binutils:
4998@if binutils-bootstrap
4999maybe-configure-stage3-binutils: configure-stage3-binutils
5000configure-stage3-binutils:
c52c6897 5001 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 5002 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5003 @r=`${PWD_COMMAND}`; export r; \
5004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5005 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 5006 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5007 $(HOST_EXPORTS) \
1b05fbbd 5008 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5009 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5010 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
5011 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
5012 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils ; \
5013 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
5014 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5015 case $(srcdir) in \
5016 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5017 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5018 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5019 esac; \
1b6c0831
L
5020 module_srcdir=binutils; \
5021 $(SHELL) $$s/$$module_srcdir/configure \
5022 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5023 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
5024 --target=${target_alias} \
5025 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5026 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 5027@endif binutils-bootstrap
8520c408 5028
a90ef4bf
JM
5029.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5030maybe-configure-stage4-binutils:
5031@if binutils-bootstrap
5032maybe-configure-stage4-binutils: configure-stage4-binutils
5033configure-stage4-binutils:
c52c6897 5034 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 5035 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5036 @r=`${PWD_COMMAND}`; export r; \
5037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5038 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 5039 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5040 $(HOST_EXPORTS) \
1b05fbbd 5041 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5042 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5043 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
5044 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
5045 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils ; \
5046 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
5047 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5048 case $(srcdir) in \
5049 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5050 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5051 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5052 esac; \
1b6c0831
L
5053 module_srcdir=binutils; \
5054 $(SHELL) $$s/$$module_srcdir/configure \
5055 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5056 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
5057 --target=${target_alias} \
5058 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5059 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 5060@endif binutils-bootstrap
d545f33b 5061
a90ef4bf
JM
5062.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5063maybe-configure-stageprofile-binutils:
5064@if binutils-bootstrap
5065maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
5066configure-stageprofile-binutils:
c52c6897 5067 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 5068 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5069 @r=`${PWD_COMMAND}`; export r; \
5070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5071 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 5072 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5073 $(HOST_EXPORTS) \
1b05fbbd
AO
5074 $(POSTSTAGE1_HOST_EXPORTS) \
5075 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5076 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
5077 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
5078 echo Configuring stage profile in $(HOST_SUBDIR)/binutils ; \
5079 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
5080 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5081 case $(srcdir) in \
5082 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5083 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5084 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5085 esac; \
1b6c0831
L
5086 module_srcdir=binutils; \
5087 $(SHELL) $$s/$$module_srcdir/configure \
5088 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5089 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
5090 --target=${target_alias} \
5091 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5092 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 5093@endif binutils-bootstrap
d545f33b 5094
a90ef4bf
JM
5095.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5096maybe-configure-stagefeedback-binutils:
5097@if binutils-bootstrap
5098maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
5099configure-stagefeedback-binutils:
c52c6897 5100 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 5101 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5102 @r=`${PWD_COMMAND}`; export r; \
5103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5104 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 5105 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5106 $(HOST_EXPORTS) \
1b05fbbd
AO
5107 $(POSTSTAGE1_HOST_EXPORTS) \
5108 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5109 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
5110 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
5111 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils ; \
5112 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
5113 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5114 case $(srcdir) in \
5115 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5116 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5117 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5118 esac; \
1b6c0831
L
5119 module_srcdir=binutils; \
5120 $(SHELL) $$s/$$module_srcdir/configure \
5121 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5122 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
5123 --target=${target_alias} \
5124 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5125 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 5126@endif binutils-bootstrap
d545f33b
PB
5127
5128
5129
5130
5131
a90ef4bf
JM
5132.PHONY: all-binutils maybe-all-binutils
5133maybe-all-binutils:
4f0ef2d8 5134@if gcc-bootstrap
a90ef4bf 5135all-binutils: stage_current
4f0ef2d8 5136@endif gcc-bootstrap
a90ef4bf
JM
5137@if binutils
5138TARGET-binutils=all
5139maybe-all-binutils: all-binutils
5140all-binutils: configure-binutils
c52c6897 5141 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 5143 $(HOST_EXPORTS) \
a90ef4bf 5144 (cd $(HOST_SUBDIR)/binutils && \
b3676d82 5145 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5146 $(TARGET-binutils))
5147@endif binutils
2a4cbe27 5148
a7254363 5149
d545f33b 5150
a90ef4bf
JM
5151.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5152.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5153maybe-all-stage1-binutils:
5154maybe-clean-stage1-binutils:
5155@if binutils-bootstrap
5156maybe-all-stage1-binutils: all-stage1-binutils
5157all-stage1: all-stage1-binutils
5158TARGET-stage1-binutils = $(TARGET-binutils)
5159all-stage1-binutils: configure-stage1-binutils
c52c6897 5160 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
5161 @r=`${PWD_COMMAND}`; export r; \
5162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5163 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 5164 $(HOST_EXPORTS) \
a90ef4bf 5165 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5166 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5167 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 5168 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
5169 LIBCFLAGS="$(LIBCFLAGS)" \
5170 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5171 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5172 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
5173 $(EXTRA_HOST_FLAGS) \
5174 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 5175 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 5176 $(TARGET-stage1-binutils)
d545f33b 5177
a90ef4bf
JM
5178maybe-clean-stage1-binutils: clean-stage1-binutils
5179clean-stage1: clean-stage1-binutils
5180clean-stage1-binutils:
9dbaa842 5181 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 5182 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5183 else \
a90ef4bf 5184 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5185 $(MAKE) stage1-start; \
5186 fi; \
a90ef4bf 5187 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5188 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 5189 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5190@endif binutils-bootstrap
d545f33b
PB
5191
5192
a90ef4bf
JM
5193.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5194.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5195maybe-all-stage2-binutils:
5196maybe-clean-stage2-binutils:
5197@if binutils-bootstrap
5198maybe-all-stage2-binutils: all-stage2-binutils
5199all-stage2: all-stage2-binutils
5200TARGET-stage2-binutils = $(TARGET-binutils)
5201all-stage2-binutils: configure-stage2-binutils
c52c6897 5202 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
5203 @r=`${PWD_COMMAND}`; export r; \
5204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5205 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 5206 $(HOST_EXPORTS) \
1f53ca9a 5207 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5208 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5209 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5210 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 5211 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
5212 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5213 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5214 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5215 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5216 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5217 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 5218 $(TARGET-stage2-binutils)
d545f33b 5219
a90ef4bf
JM
5220maybe-clean-stage2-binutils: clean-stage2-binutils
5221clean-stage2: clean-stage2-binutils
5222clean-stage2-binutils:
9dbaa842 5223 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 5224 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5225 else \
a90ef4bf 5226 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5227 $(MAKE) stage2-start; \
5228 fi; \
a90ef4bf 5229 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5230 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5231@endif binutils-bootstrap
d545f33b
PB
5232
5233
a90ef4bf
JM
5234.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5235.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5236maybe-all-stage3-binutils:
5237maybe-clean-stage3-binutils:
5238@if binutils-bootstrap
5239maybe-all-stage3-binutils: all-stage3-binutils
5240all-stage3: all-stage3-binutils
5241TARGET-stage3-binutils = $(TARGET-binutils)
5242all-stage3-binutils: configure-stage3-binutils
c52c6897 5243 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
5244 @r=`${PWD_COMMAND}`; export r; \
5245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5246 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 5247 $(HOST_EXPORTS) \
1f53ca9a 5248 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5249 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5250 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5251 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 5252 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
5253 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5254 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5255 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5256 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5257 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5258 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 5259 $(TARGET-stage3-binutils)
d545f33b 5260
a90ef4bf
JM
5261maybe-clean-stage3-binutils: clean-stage3-binutils
5262clean-stage3: clean-stage3-binutils
5263clean-stage3-binutils:
9dbaa842 5264 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 5265 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5266 else \
a90ef4bf 5267 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5268 $(MAKE) stage3-start; \
5269 fi; \
a90ef4bf 5270 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5271 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5272@endif binutils-bootstrap
d545f33b
PB
5273
5274
a90ef4bf
JM
5275.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5276.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5277maybe-all-stage4-binutils:
5278maybe-clean-stage4-binutils:
5279@if binutils-bootstrap
5280maybe-all-stage4-binutils: all-stage4-binutils
5281all-stage4: all-stage4-binutils
5282TARGET-stage4-binutils = $(TARGET-binutils)
5283all-stage4-binutils: configure-stage4-binutils
c52c6897 5284 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
5285 @r=`${PWD_COMMAND}`; export r; \
5286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5287 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 5288 $(HOST_EXPORTS) \
1f53ca9a 5289 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5290 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5291 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5292 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 5293 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 5294 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
5295 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5296 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5297 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5298 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5299 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 5300 $(TARGET-stage4-binutils)
d545f33b 5301
a90ef4bf
JM
5302maybe-clean-stage4-binutils: clean-stage4-binutils
5303clean-stage4: clean-stage4-binutils
5304clean-stage4-binutils:
9dbaa842 5305 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 5306 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5307 else \
a90ef4bf 5308 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5309 $(MAKE) stage4-start; \
5310 fi; \
a90ef4bf 5311 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5312 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5313@endif binutils-bootstrap
d545f33b
PB
5314
5315
a90ef4bf
JM
5316.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5317.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5318maybe-all-stageprofile-binutils:
5319maybe-clean-stageprofile-binutils:
5320@if binutils-bootstrap
5321maybe-all-stageprofile-binutils: all-stageprofile-binutils
5322all-stageprofile: all-stageprofile-binutils
5323TARGET-stageprofile-binutils = $(TARGET-binutils)
5324all-stageprofile-binutils: configure-stageprofile-binutils
c52c6897 5325 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
5326 @r=`${PWD_COMMAND}`; export r; \
5327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5328 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 5329 $(HOST_EXPORTS) \
1f53ca9a 5330 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5331 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5332 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5333 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 5334 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
5335 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5336 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5337 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5338 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5339 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5340 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 5341 $(TARGET-stageprofile-binutils)
d545f33b 5342
a90ef4bf
JM
5343maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5344clean-stageprofile: clean-stageprofile-binutils
5345clean-stageprofile-binutils:
9dbaa842 5346 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 5347 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5348 else \
a90ef4bf 5349 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5350 $(MAKE) stageprofile-start; \
5351 fi; \
a90ef4bf 5352 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5353 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5354@endif binutils-bootstrap
d545f33b
PB
5355
5356
a90ef4bf
JM
5357.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5358.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5359maybe-all-stagefeedback-binutils:
5360maybe-clean-stagefeedback-binutils:
5361@if binutils-bootstrap
5362maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5363all-stagefeedback: all-stagefeedback-binutils
5364TARGET-stagefeedback-binutils = $(TARGET-binutils)
5365all-stagefeedback-binutils: configure-stagefeedback-binutils
c52c6897 5366 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
5367 @r=`${PWD_COMMAND}`; export r; \
5368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5369 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 5370 $(HOST_EXPORTS) \
1f53ca9a 5371 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5372 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5373 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5374 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 5375 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
5376 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5377 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5378 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5379 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5380 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5381 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 5382 $(TARGET-stagefeedback-binutils)
d545f33b 5383
a90ef4bf
JM
5384maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
5385clean-stagefeedback: clean-stagefeedback-binutils
5386clean-stagefeedback-binutils:
9dbaa842 5387 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 5388 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5389 else \
a90ef4bf 5390 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5391 $(MAKE) stagefeedback-start; \
5392 fi; \
a90ef4bf 5393 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5394 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5395@endif binutils-bootstrap
d545f33b
PB
5396
5397
5398
5399
5400
a90ef4bf
JM
5401.PHONY: check-binutils maybe-check-binutils
5402maybe-check-binutils:
5403@if binutils
5404maybe-check-binutils: check-binutils
2a4cbe27 5405
a90ef4bf 5406check-binutils:
0aed8855 5407 @: $(MAKE); $(unstage)
4fa63067 5408 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5410 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 5411 (cd $(HOST_SUBDIR)/binutils && \
f91ca6bc 5412 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 5413
a90ef4bf 5414@endif binutils
2a4cbe27 5415
a90ef4bf
JM
5416.PHONY: install-binutils maybe-install-binutils
5417maybe-install-binutils:
5418@if binutils
5419maybe-install-binutils: install-binutils
2a4cbe27 5420
a90ef4bf 5421install-binutils: installdirs
0aed8855 5422 @: $(MAKE); $(unstage)
4fa63067 5423 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5425 $(HOST_EXPORTS) \
a90ef4bf 5426 (cd $(HOST_SUBDIR)/binutils && \
2da12f12 5427 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5428
a90ef4bf 5429@endif binutils
2a4cbe27 5430
a90ef4bf
JM
5431.PHONY: install-strip-binutils maybe-install-strip-binutils
5432maybe-install-strip-binutils:
5433@if binutils
5434maybe-install-strip-binutils: install-strip-binutils
9b980aa1 5435
a90ef4bf 5436install-strip-binutils: installdirs
9b980aa1
RW
5437 @: $(MAKE); $(unstage)
5438 @r=`${PWD_COMMAND}`; export r; \
5439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5440 $(HOST_EXPORTS) \
a90ef4bf 5441 (cd $(HOST_SUBDIR)/binutils && \
9b980aa1
RW
5442 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5443
a90ef4bf 5444@endif binutils
9b980aa1 5445
56a8fe78 5446# Other targets (info, dvi, pdf, etc.)
2a4cbe27 5447
a90ef4bf
JM
5448.PHONY: maybe-info-binutils info-binutils
5449maybe-info-binutils:
5450@if binutils
5451maybe-info-binutils: info-binutils
4fa63067 5452
a90ef4bf
JM
5453info-binutils: \
5454 configure-binutils
5455 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5456 r=`${PWD_COMMAND}`; export r; \
5457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5458 $(HOST_EXPORTS) \
b813574b 5459 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5461 done; \
a90ef4bf
JM
5462 echo "Doing info in binutils" ; \
5463 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5466 "RANLIB=$${RANLIB}" \
0c24b341 5467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5468 info) \
2a4cbe27
NN
5469 || exit 1
5470
a90ef4bf 5471@endif binutils
2a4cbe27 5472
a90ef4bf
JM
5473.PHONY: maybe-dvi-binutils dvi-binutils
5474maybe-dvi-binutils:
5475@if binutils
5476maybe-dvi-binutils: dvi-binutils
2a4cbe27 5477
a90ef4bf
JM
5478dvi-binutils: \
5479 configure-binutils
5480 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5481 r=`${PWD_COMMAND}`; export r; \
5482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5483 $(HOST_EXPORTS) \
b813574b 5484 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5486 done; \
a90ef4bf
JM
5487 echo "Doing dvi in binutils" ; \
5488 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5491 "RANLIB=$${RANLIB}" \
0c24b341 5492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5493 dvi) \
2a4cbe27
NN
5494 || exit 1
5495
a90ef4bf 5496@endif binutils
2a4cbe27 5497
a90ef4bf
JM
5498.PHONY: maybe-pdf-binutils pdf-binutils
5499maybe-pdf-binutils:
5500@if binutils
5501maybe-pdf-binutils: pdf-binutils
56a8fe78 5502
a90ef4bf
JM
5503pdf-binutils: \
5504 configure-binutils
5505 @[ -f ./binutils/Makefile ] || exit 0; \
56a8fe78
DD
5506 r=`${PWD_COMMAND}`; export r; \
5507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5508 $(HOST_EXPORTS) \
5509 for flag in $(EXTRA_HOST_FLAGS) ; do \
5510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5511 done; \
a90ef4bf
JM
5512 echo "Doing pdf in binutils" ; \
5513 (cd $(HOST_SUBDIR)/binutils && \
56a8fe78
DD
5514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5516 "RANLIB=$${RANLIB}" \
0c24b341 5517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
5518 pdf) \
5519 || exit 1
5520
a90ef4bf 5521@endif binutils
56a8fe78 5522
a90ef4bf
JM
5523.PHONY: maybe-html-binutils html-binutils
5524maybe-html-binutils:
5525@if binutils
5526maybe-html-binutils: html-binutils
6d389afc 5527
a90ef4bf
JM
5528html-binutils: \
5529 configure-binutils
5530 @[ -f ./binutils/Makefile ] || exit 0; \
6d389afc
MS
5531 r=`${PWD_COMMAND}`; export r; \
5532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5533 $(HOST_EXPORTS) \
5534 for flag in $(EXTRA_HOST_FLAGS) ; do \
5535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5536 done; \
a90ef4bf
JM
5537 echo "Doing html in binutils" ; \
5538 (cd $(HOST_SUBDIR)/binutils && \
6d389afc
MS
5539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5541 "RANLIB=$${RANLIB}" \
0c24b341 5542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
5543 html) \
5544 || exit 1
5545
a90ef4bf 5546@endif binutils
6d389afc 5547
a90ef4bf
JM
5548.PHONY: maybe-TAGS-binutils TAGS-binutils
5549maybe-TAGS-binutils:
5550@if binutils
5551maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 5552
a90ef4bf
JM
5553TAGS-binutils: \
5554 configure-binutils
5555 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5556 r=`${PWD_COMMAND}`; export r; \
5557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5558 $(HOST_EXPORTS) \
b813574b 5559 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5561 done; \
a90ef4bf
JM
5562 echo "Doing TAGS in binutils" ; \
5563 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5566 "RANLIB=$${RANLIB}" \
0c24b341 5567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5568 TAGS) \
2a4cbe27
NN
5569 || exit 1
5570
a90ef4bf 5571@endif binutils
2a4cbe27 5572
a90ef4bf
JM
5573.PHONY: maybe-install-info-binutils install-info-binutils
5574maybe-install-info-binutils:
5575@if binutils
5576maybe-install-info-binutils: install-info-binutils
2a4cbe27 5577
a90ef4bf
JM
5578install-info-binutils: \
5579 configure-binutils \
5580 info-binutils
5581 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5582 r=`${PWD_COMMAND}`; export r; \
5583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5584 $(HOST_EXPORTS) \
b813574b 5585 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5587 done; \
a90ef4bf
JM
5588 echo "Doing install-info in binutils" ; \
5589 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5592 "RANLIB=$${RANLIB}" \
0c24b341 5593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5594 install-info) \
2a4cbe27
NN
5595 || exit 1
5596
a90ef4bf 5597@endif binutils
2a4cbe27 5598
a90ef4bf
JM
5599.PHONY: maybe-install-pdf-binutils install-pdf-binutils
5600maybe-install-pdf-binutils:
5601@if binutils
5602maybe-install-pdf-binutils: install-pdf-binutils
a3ca38d2 5603
a90ef4bf
JM
5604install-pdf-binutils: \
5605 configure-binutils \
5606 pdf-binutils
5607 @[ -f ./binutils/Makefile ] || exit 0; \
a3ca38d2
DD
5608 r=`${PWD_COMMAND}`; export r; \
5609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5610 $(HOST_EXPORTS) \
5611 for flag in $(EXTRA_HOST_FLAGS) ; do \
5612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5613 done; \
a90ef4bf
JM
5614 echo "Doing install-pdf in binutils" ; \
5615 (cd $(HOST_SUBDIR)/binutils && \
a3ca38d2
DD
5616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5618 "RANLIB=$${RANLIB}" \
0c24b341 5619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
5620 install-pdf) \
5621 || exit 1
5622
a90ef4bf 5623@endif binutils
a3ca38d2 5624
a90ef4bf
JM
5625.PHONY: maybe-install-html-binutils install-html-binutils
5626maybe-install-html-binutils:
5627@if binutils
5628maybe-install-html-binutils: install-html-binutils
108a6f8e 5629
a90ef4bf
JM
5630install-html-binutils: \
5631 configure-binutils \
5632 html-binutils
5633 @[ -f ./binutils/Makefile ] || exit 0; \
108a6f8e
CD
5634 r=`${PWD_COMMAND}`; export r; \
5635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5636 $(HOST_EXPORTS) \
5637 for flag in $(EXTRA_HOST_FLAGS) ; do \
5638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5639 done; \
a90ef4bf
JM
5640 echo "Doing install-html in binutils" ; \
5641 (cd $(HOST_SUBDIR)/binutils && \
108a6f8e
CD
5642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5644 "RANLIB=$${RANLIB}" \
0c24b341 5645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
5646 install-html) \
5647 || exit 1
5648
a90ef4bf 5649@endif binutils
108a6f8e 5650
a90ef4bf
JM
5651.PHONY: maybe-installcheck-binutils installcheck-binutils
5652maybe-installcheck-binutils:
5653@if binutils
5654maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 5655
a90ef4bf
JM
5656installcheck-binutils: \
5657 configure-binutils
5658 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5659 r=`${PWD_COMMAND}`; export r; \
5660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5661 $(HOST_EXPORTS) \
b813574b 5662 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5664 done; \
a90ef4bf
JM
5665 echo "Doing installcheck in binutils" ; \
5666 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5669 "RANLIB=$${RANLIB}" \
0c24b341 5670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5671 installcheck) \
2a4cbe27
NN
5672 || exit 1
5673
a90ef4bf 5674@endif binutils
2a4cbe27 5675
a90ef4bf
JM
5676.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
5677maybe-mostlyclean-binutils:
5678@if binutils
5679maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 5680
a90ef4bf
JM
5681mostlyclean-binutils:
5682 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5683 r=`${PWD_COMMAND}`; export r; \
5684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5685 $(HOST_EXPORTS) \
b813574b 5686 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5688 done; \
a90ef4bf
JM
5689 echo "Doing mostlyclean in binutils" ; \
5690 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5693 "RANLIB=$${RANLIB}" \
0c24b341 5694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5695 mostlyclean) \
2a4cbe27
NN
5696 || exit 1
5697
a90ef4bf 5698@endif binutils
2a4cbe27 5699
a90ef4bf
JM
5700.PHONY: maybe-clean-binutils clean-binutils
5701maybe-clean-binutils:
5702@if binutils
5703maybe-clean-binutils: clean-binutils
2a4cbe27 5704
a90ef4bf
JM
5705clean-binutils:
5706 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5707 r=`${PWD_COMMAND}`; export r; \
5708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5709 $(HOST_EXPORTS) \
b813574b 5710 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5712 done; \
a90ef4bf
JM
5713 echo "Doing clean in binutils" ; \
5714 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5717 "RANLIB=$${RANLIB}" \
0c24b341 5718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5719 clean) \
2a4cbe27
NN
5720 || exit 1
5721
a90ef4bf 5722@endif binutils
2a4cbe27 5723
a90ef4bf
JM
5724.PHONY: maybe-distclean-binutils distclean-binutils
5725maybe-distclean-binutils:
5726@if binutils
5727maybe-distclean-binutils: distclean-binutils
2a4cbe27 5728
a90ef4bf
JM
5729distclean-binutils:
5730 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5731 r=`${PWD_COMMAND}`; export r; \
5732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5733 $(HOST_EXPORTS) \
b813574b 5734 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5736 done; \
a90ef4bf
JM
5737 echo "Doing distclean in binutils" ; \
5738 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5741 "RANLIB=$${RANLIB}" \
0c24b341 5742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5743 distclean) \
2a4cbe27
NN
5744 || exit 1
5745
a90ef4bf 5746@endif binutils
2a4cbe27 5747
a90ef4bf
JM
5748.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
5749maybe-maintainer-clean-binutils:
5750@if binutils
5751maybe-maintainer-clean-binutils: maintainer-clean-binutils
a2592b1b 5752
a90ef4bf
JM
5753maintainer-clean-binutils:
5754 @[ -f ./binutils/Makefile ] || exit 0; \
a2592b1b
DD
5755 r=`${PWD_COMMAND}`; export r; \
5756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5757 $(HOST_EXPORTS) \
b813574b 5758 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
5759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5760 done; \
a90ef4bf
JM
5761 echo "Doing maintainer-clean in binutils" ; \
5762 (cd $(HOST_SUBDIR)/binutils && \
a2592b1b
DD
5763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5765 "RANLIB=$${RANLIB}" \
0c24b341 5766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5767 maintainer-clean) \
a2592b1b
DD
5768 || exit 1
5769
a90ef4bf 5770@endif binutils
a2592b1b 5771
2a4cbe27 5772
a7254363 5773
a90ef4bf
JM
5774.PHONY: configure-bison maybe-configure-bison
5775maybe-configure-bison:
4f0ef2d8 5776@if gcc-bootstrap
a90ef4bf 5777configure-bison: stage_current
4f0ef2d8 5778@endif gcc-bootstrap
a90ef4bf
JM
5779@if bison
5780maybe-configure-bison: configure-bison
5781configure-bison:
5782 @: $(MAKE); $(unstage)
c52c6897
PB
5783 @r=`${PWD_COMMAND}`; export r; \
5784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5785 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
5786 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison ; \
1f53ca9a 5787 $(HOST_EXPORTS) \
a90ef4bf
JM
5788 echo Configuring in $(HOST_SUBDIR)/bison; \
5789 cd "$(HOST_SUBDIR)/bison" || exit 1; \
4fa63067 5790 case $(srcdir) in \
b00612cc 5791 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5792 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
b00612cc 5793 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5794 esac; \
1b6c0831
L
5795 module_srcdir=bison; \
5796 $(SHELL) \
5797 $$s/$$module_srcdir/configure \
5798 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5799 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5800 --target=${target_alias} \
4fa63067 5801 || exit 1
a90ef4bf 5802@endif bison
2a4cbe27 5803
a7254363
PB
5804
5805
d545f33b 5806
8520c408 5807
a90ef4bf
JM
5808.PHONY: all-bison maybe-all-bison
5809maybe-all-bison:
5810@if gcc-bootstrap
5811all-bison: stage_current
5812@endif gcc-bootstrap
5813@if bison
5814TARGET-bison=all
5815maybe-all-bison: all-bison
5816all-bison: configure-bison
5817 @: $(MAKE); $(unstage)
c52c6897
PB
5818 @r=`${PWD_COMMAND}`; export r; \
5819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5820 $(HOST_EXPORTS) \
5821 (cd $(HOST_SUBDIR)/bison && \
b3676d82 5822 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5823 $(TARGET-bison))
5824@endif bison
8520c408 5825
d545f33b 5826
d545f33b 5827
d545f33b 5828
a90ef4bf
JM
5829.PHONY: check-bison maybe-check-bison
5830maybe-check-bison:
5831@if bison
5832maybe-check-bison: check-bison
d545f33b 5833
a90ef4bf
JM
5834# This module is only tested in a native toolchain.
5835check-bison:
5836 @: $(MAKE); $(unstage)
5837 @if [ '$(host)' = '$(target)' ] ; then \
5838 r=`${PWD_COMMAND}`; export r; \
5839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5840 $(HOST_EXPORTS) \
a90ef4bf 5841 (cd $(HOST_SUBDIR)/bison && \
f91ca6bc 5842 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 5843 fi
d545f33b 5844
a90ef4bf 5845@endif bison
d545f33b 5846
a90ef4bf
JM
5847.PHONY: install-bison maybe-install-bison
5848maybe-install-bison:
5849@if bison
5850maybe-install-bison: install-bison
d545f33b 5851
a90ef4bf
JM
5852install-bison: installdirs
5853 @: $(MAKE); $(unstage)
c52c6897 5854 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5856 $(HOST_EXPORTS) \
5857 (cd $(HOST_SUBDIR)/bison && \
5858 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5859
a90ef4bf 5860@endif bison
a7254363 5861
a90ef4bf
JM
5862.PHONY: install-strip-bison maybe-install-strip-bison
5863maybe-install-strip-bison:
5864@if bison
5865maybe-install-strip-bison: install-strip-bison
d545f33b 5866
a90ef4bf
JM
5867install-strip-bison: installdirs
5868 @: $(MAKE); $(unstage)
d545f33b
PB
5869 @r=`${PWD_COMMAND}`; export r; \
5870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5871 $(HOST_EXPORTS) \
5872 (cd $(HOST_SUBDIR)/bison && \
5873 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 5874
a90ef4bf 5875@endif bison
d545f33b 5876
a90ef4bf 5877# Other targets (info, dvi, pdf, etc.)
d545f33b 5878
a90ef4bf
JM
5879.PHONY: maybe-info-bison info-bison
5880maybe-info-bison:
5881@if bison
5882maybe-info-bison: info-bison
5883
5884info-bison: \
5885 configure-bison
5886 @: $(MAKE); $(unstage)
5887 @[ -f ./bison/Makefile ] || exit 0; \
5888 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5890 $(HOST_EXPORTS) \
a90ef4bf
JM
5891 for flag in $(EXTRA_HOST_FLAGS) ; do \
5892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5893 done; \
5894 echo "Doing info in bison" ; \
5895 (cd $(HOST_SUBDIR)/bison && \
5896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5898 "RANLIB=$${RANLIB}" \
5899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5900 info) \
5901 || exit 1
d545f33b 5902
a90ef4bf 5903@endif bison
d545f33b 5904
a90ef4bf
JM
5905.PHONY: maybe-dvi-bison dvi-bison
5906maybe-dvi-bison:
5907@if bison
5908maybe-dvi-bison: dvi-bison
d545f33b 5909
a90ef4bf
JM
5910dvi-bison: \
5911 configure-bison
5912 @: $(MAKE); $(unstage)
5913 @[ -f ./bison/Makefile ] || exit 0; \
5914 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5916 $(HOST_EXPORTS) \
a90ef4bf
JM
5917 for flag in $(EXTRA_HOST_FLAGS) ; do \
5918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5919 done; \
5920 echo "Doing dvi in bison" ; \
5921 (cd $(HOST_SUBDIR)/bison && \
5922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5924 "RANLIB=$${RANLIB}" \
5925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5926 dvi) \
5927 || exit 1
d545f33b 5928
a90ef4bf 5929@endif bison
d545f33b 5930
a90ef4bf
JM
5931.PHONY: maybe-pdf-bison pdf-bison
5932maybe-pdf-bison:
5933@if bison
5934maybe-pdf-bison: pdf-bison
d545f33b 5935
a90ef4bf
JM
5936pdf-bison: \
5937 configure-bison
5938 @: $(MAKE); $(unstage)
5939 @[ -f ./bison/Makefile ] || exit 0; \
5940 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5942 $(HOST_EXPORTS) \
a90ef4bf
JM
5943 for flag in $(EXTRA_HOST_FLAGS) ; do \
5944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5945 done; \
5946 echo "Doing pdf in bison" ; \
5947 (cd $(HOST_SUBDIR)/bison && \
5948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5950 "RANLIB=$${RANLIB}" \
5951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5952 pdf) \
5953 || exit 1
d545f33b 5954
a90ef4bf 5955@endif bison
d545f33b 5956
a90ef4bf
JM
5957.PHONY: maybe-html-bison html-bison
5958maybe-html-bison:
5959@if bison
5960maybe-html-bison: html-bison
d545f33b 5961
a90ef4bf
JM
5962html-bison: \
5963 configure-bison
5964 @: $(MAKE); $(unstage)
5965 @[ -f ./bison/Makefile ] || exit 0; \
5966 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5968 $(HOST_EXPORTS) \
a90ef4bf
JM
5969 for flag in $(EXTRA_HOST_FLAGS) ; do \
5970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5971 done; \
5972 echo "Doing html in bison" ; \
5973 (cd $(HOST_SUBDIR)/bison && \
5974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5976 "RANLIB=$${RANLIB}" \
5977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5978 html) \
5979 || exit 1
d545f33b 5980
a90ef4bf 5981@endif bison
2a4cbe27 5982
a90ef4bf
JM
5983.PHONY: maybe-TAGS-bison TAGS-bison
5984maybe-TAGS-bison:
5985@if bison
5986maybe-TAGS-bison: TAGS-bison
2a4cbe27 5987
a90ef4bf
JM
5988TAGS-bison: \
5989 configure-bison
0aed8855 5990 @: $(MAKE); $(unstage)
a90ef4bf
JM
5991 @[ -f ./bison/Makefile ] || exit 0; \
5992 r=`${PWD_COMMAND}`; export r; \
4fa63067 5993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5994 $(HOST_EXPORTS) \
a90ef4bf
JM
5995 for flag in $(EXTRA_HOST_FLAGS) ; do \
5996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5997 done; \
5998 echo "Doing TAGS in bison" ; \
5999 (cd $(HOST_SUBDIR)/bison && \
6000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6002 "RANLIB=$${RANLIB}" \
6003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6004 TAGS) \
6005 || exit 1
4fa63067 6006
a90ef4bf 6007@endif bison
4fa63067 6008
a90ef4bf
JM
6009.PHONY: maybe-install-info-bison install-info-bison
6010maybe-install-info-bison:
6011@if bison
6012maybe-install-info-bison: install-info-bison
9b980aa1 6013
a90ef4bf
JM
6014install-info-bison: \
6015 configure-bison \
6016 info-bison
9b980aa1 6017 @: $(MAKE); $(unstage)
a90ef4bf 6018 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6019 r=`${PWD_COMMAND}`; export r; \
6020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6021 $(HOST_EXPORTS) \
b813574b 6022 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6024 done; \
a90ef4bf
JM
6025 echo "Doing install-info in bison" ; \
6026 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6029 "RANLIB=$${RANLIB}" \
0c24b341 6030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6031 install-info) \
2a4cbe27
NN
6032 || exit 1
6033
a90ef4bf 6034@endif bison
2a4cbe27 6035
a90ef4bf
JM
6036.PHONY: maybe-install-pdf-bison install-pdf-bison
6037maybe-install-pdf-bison:
6038@if bison
6039maybe-install-pdf-bison: install-pdf-bison
2a4cbe27 6040
a90ef4bf
JM
6041install-pdf-bison: \
6042 configure-bison \
6043 pdf-bison
6044 @: $(MAKE); $(unstage)
6045 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6046 r=`${PWD_COMMAND}`; export r; \
6047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6048 $(HOST_EXPORTS) \
b813574b 6049 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6051 done; \
a90ef4bf
JM
6052 echo "Doing install-pdf in bison" ; \
6053 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6056 "RANLIB=$${RANLIB}" \
0c24b341 6057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6058 install-pdf) \
2a4cbe27
NN
6059 || exit 1
6060
a90ef4bf 6061@endif bison
2a4cbe27 6062
a90ef4bf
JM
6063.PHONY: maybe-install-html-bison install-html-bison
6064maybe-install-html-bison:
6065@if bison
6066maybe-install-html-bison: install-html-bison
56a8fe78 6067
a90ef4bf
JM
6068install-html-bison: \
6069 configure-bison \
6070 html-bison
6071 @: $(MAKE); $(unstage)
6072 @[ -f ./bison/Makefile ] || exit 0; \
56a8fe78
DD
6073 r=`${PWD_COMMAND}`; export r; \
6074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6075 $(HOST_EXPORTS) \
6076 for flag in $(EXTRA_HOST_FLAGS) ; do \
6077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6078 done; \
a90ef4bf
JM
6079 echo "Doing install-html in bison" ; \
6080 (cd $(HOST_SUBDIR)/bison && \
56a8fe78
DD
6081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6083 "RANLIB=$${RANLIB}" \
0c24b341 6084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6085 install-html) \
56a8fe78
DD
6086 || exit 1
6087
a90ef4bf 6088@endif bison
56a8fe78 6089
a90ef4bf
JM
6090.PHONY: maybe-installcheck-bison installcheck-bison
6091maybe-installcheck-bison:
6092@if bison
6093maybe-installcheck-bison: installcheck-bison
6d389afc 6094
a90ef4bf
JM
6095installcheck-bison: \
6096 configure-bison
6097 @: $(MAKE); $(unstage)
6098 @[ -f ./bison/Makefile ] || exit 0; \
6d389afc
MS
6099 r=`${PWD_COMMAND}`; export r; \
6100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6101 $(HOST_EXPORTS) \
6102 for flag in $(EXTRA_HOST_FLAGS) ; do \
6103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6104 done; \
a90ef4bf
JM
6105 echo "Doing installcheck in bison" ; \
6106 (cd $(HOST_SUBDIR)/bison && \
6d389afc
MS
6107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6109 "RANLIB=$${RANLIB}" \
0c24b341 6110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6111 installcheck) \
6d389afc
MS
6112 || exit 1
6113
a90ef4bf 6114@endif bison
6d389afc 6115
a90ef4bf
JM
6116.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6117maybe-mostlyclean-bison:
6118@if bison
6119maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 6120
a90ef4bf
JM
6121mostlyclean-bison:
6122 @: $(MAKE); $(unstage)
6123 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6124 r=`${PWD_COMMAND}`; export r; \
6125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6126 $(HOST_EXPORTS) \
b813574b 6127 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6129 done; \
a90ef4bf
JM
6130 echo "Doing mostlyclean in bison" ; \
6131 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6134 "RANLIB=$${RANLIB}" \
0c24b341 6135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6136 mostlyclean) \
2a4cbe27
NN
6137 || exit 1
6138
a90ef4bf 6139@endif bison
2a4cbe27 6140
a90ef4bf
JM
6141.PHONY: maybe-clean-bison clean-bison
6142maybe-clean-bison:
6143@if bison
6144maybe-clean-bison: clean-bison
2a4cbe27 6145
a90ef4bf
JM
6146clean-bison:
6147 @: $(MAKE); $(unstage)
6148 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6149 r=`${PWD_COMMAND}`; export r; \
6150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6151 $(HOST_EXPORTS) \
b813574b 6152 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6154 done; \
a90ef4bf
JM
6155 echo "Doing clean in bison" ; \
6156 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6159 "RANLIB=$${RANLIB}" \
0c24b341 6160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6161 clean) \
2a4cbe27
NN
6162 || exit 1
6163
a90ef4bf 6164@endif bison
2a4cbe27 6165
a90ef4bf
JM
6166.PHONY: maybe-distclean-bison distclean-bison
6167maybe-distclean-bison:
6168@if bison
6169maybe-distclean-bison: distclean-bison
a3ca38d2 6170
a90ef4bf
JM
6171distclean-bison:
6172 @: $(MAKE); $(unstage)
6173 @[ -f ./bison/Makefile ] || exit 0; \
a3ca38d2
DD
6174 r=`${PWD_COMMAND}`; export r; \
6175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6176 $(HOST_EXPORTS) \
6177 for flag in $(EXTRA_HOST_FLAGS) ; do \
6178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6179 done; \
a90ef4bf
JM
6180 echo "Doing distclean in bison" ; \
6181 (cd $(HOST_SUBDIR)/bison && \
a3ca38d2
DD
6182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6184 "RANLIB=$${RANLIB}" \
0c24b341 6185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6186 distclean) \
a3ca38d2
DD
6187 || exit 1
6188
a90ef4bf 6189@endif bison
a3ca38d2 6190
a90ef4bf
JM
6191.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6192maybe-maintainer-clean-bison:
6193@if bison
6194maybe-maintainer-clean-bison: maintainer-clean-bison
108a6f8e 6195
a90ef4bf
JM
6196maintainer-clean-bison:
6197 @: $(MAKE); $(unstage)
6198 @[ -f ./bison/Makefile ] || exit 0; \
108a6f8e
CD
6199 r=`${PWD_COMMAND}`; export r; \
6200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6201 $(HOST_EXPORTS) \
6202 for flag in $(EXTRA_HOST_FLAGS) ; do \
6203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6204 done; \
a90ef4bf
JM
6205 echo "Doing maintainer-clean in bison" ; \
6206 (cd $(HOST_SUBDIR)/bison && \
108a6f8e
CD
6207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6209 "RANLIB=$${RANLIB}" \
0c24b341 6210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6211 maintainer-clean) \
108a6f8e
CD
6212 || exit 1
6213
a90ef4bf 6214@endif bison
108a6f8e 6215
2a4cbe27 6216
a90ef4bf
JM
6217
6218.PHONY: configure-cgen maybe-configure-cgen
6219maybe-configure-cgen:
6220@if gcc-bootstrap
6221configure-cgen: stage_current
6222@endif gcc-bootstrap
6223@if cgen
6224maybe-configure-cgen: configure-cgen
6225configure-cgen:
6226 @: $(MAKE); $(unstage)
6227 @r=`${PWD_COMMAND}`; export r; \
6228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6229 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
6230 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen ; \
6231 $(HOST_EXPORTS) \
6232 echo Configuring in $(HOST_SUBDIR)/cgen; \
6233 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
6234 case $(srcdir) in \
6235 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6236 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
6237 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6238 esac; \
1b6c0831
L
6239 module_srcdir=cgen; \
6240 $(SHELL) \
6241 $$s/$$module_srcdir/configure \
6242 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 6243 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6244 --target=${target_alias} \
a90ef4bf
JM
6245 || exit 1
6246@endif cgen
6247
6248
6249
6250
6251
6252.PHONY: all-cgen maybe-all-cgen
6253maybe-all-cgen:
6254@if gcc-bootstrap
6255all-cgen: stage_current
6256@endif gcc-bootstrap
6257@if cgen
6258TARGET-cgen=all
6259maybe-all-cgen: all-cgen
6260all-cgen: configure-cgen
6261 @: $(MAKE); $(unstage)
6262 @r=`${PWD_COMMAND}`; export r; \
6263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6264 $(HOST_EXPORTS) \
6265 (cd $(HOST_SUBDIR)/cgen && \
b3676d82 6266 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6267 $(TARGET-cgen))
6268@endif cgen
6269
6270
6271
6272
6273.PHONY: check-cgen maybe-check-cgen
6274maybe-check-cgen:
6275@if cgen
6276maybe-check-cgen: check-cgen
6277
6278check-cgen:
6279 @: $(MAKE); $(unstage)
6280 @r=`${PWD_COMMAND}`; export r; \
6281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6282 $(HOST_EXPORTS) \
a90ef4bf
JM
6283 (cd $(HOST_SUBDIR)/cgen && \
6284 $(MAKE) $(FLAGS_TO_PASS) check)
6285
6286@endif cgen
6287
6288.PHONY: install-cgen maybe-install-cgen
6289maybe-install-cgen:
6290@if cgen
6291maybe-install-cgen: install-cgen
6292
6293install-cgen: installdirs
6294 @: $(MAKE); $(unstage)
6295 @r=`${PWD_COMMAND}`; export r; \
6296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6297 $(HOST_EXPORTS) \
6298 (cd $(HOST_SUBDIR)/cgen && \
6299 $(MAKE) $(FLAGS_TO_PASS) install)
6300
6301@endif cgen
6302
6303.PHONY: install-strip-cgen maybe-install-strip-cgen
6304maybe-install-strip-cgen:
6305@if cgen
6306maybe-install-strip-cgen: install-strip-cgen
6307
6308install-strip-cgen: installdirs
6309 @: $(MAKE); $(unstage)
6310 @r=`${PWD_COMMAND}`; export r; \
6311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6312 $(HOST_EXPORTS) \
6313 (cd $(HOST_SUBDIR)/cgen && \
6314 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6315
6316@endif cgen
6317
6318# Other targets (info, dvi, pdf, etc.)
6319
6320.PHONY: maybe-info-cgen info-cgen
6321maybe-info-cgen:
6322@if cgen
6323maybe-info-cgen: info-cgen
6324
6325info-cgen: \
6326 configure-cgen
6327 @: $(MAKE); $(unstage)
6328 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6329 r=`${PWD_COMMAND}`; export r; \
6330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6331 $(HOST_EXPORTS) \
b813574b 6332 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6334 done; \
a90ef4bf
JM
6335 echo "Doing info in cgen" ; \
6336 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6339 "RANLIB=$${RANLIB}" \
0c24b341 6340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6341 info) \
2a4cbe27
NN
6342 || exit 1
6343
a90ef4bf 6344@endif cgen
2a4cbe27 6345
a90ef4bf
JM
6346.PHONY: maybe-dvi-cgen dvi-cgen
6347maybe-dvi-cgen:
6348@if cgen
6349maybe-dvi-cgen: dvi-cgen
2a4cbe27 6350
a90ef4bf
JM
6351dvi-cgen: \
6352 configure-cgen
6353 @: $(MAKE); $(unstage)
6354 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6355 r=`${PWD_COMMAND}`; export r; \
6356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6357 $(HOST_EXPORTS) \
b813574b 6358 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6360 done; \
a90ef4bf
JM
6361 echo "Doing dvi in cgen" ; \
6362 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6365 "RANLIB=$${RANLIB}" \
0c24b341 6366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6367 dvi) \
2a4cbe27
NN
6368 || exit 1
6369
a90ef4bf 6370@endif cgen
2a4cbe27 6371
a90ef4bf
JM
6372.PHONY: maybe-pdf-cgen pdf-cgen
6373maybe-pdf-cgen:
6374@if cgen
6375maybe-pdf-cgen: pdf-cgen
2a4cbe27 6376
a90ef4bf
JM
6377pdf-cgen: \
6378 configure-cgen
6379 @: $(MAKE); $(unstage)
6380 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6381 r=`${PWD_COMMAND}`; export r; \
6382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6383 $(HOST_EXPORTS) \
b813574b 6384 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6386 done; \
a90ef4bf
JM
6387 echo "Doing pdf in cgen" ; \
6388 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6391 "RANLIB=$${RANLIB}" \
0c24b341 6392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6393 pdf) \
2a4cbe27
NN
6394 || exit 1
6395
a90ef4bf 6396@endif cgen
2a4cbe27 6397
a90ef4bf
JM
6398.PHONY: maybe-html-cgen html-cgen
6399maybe-html-cgen:
6400@if cgen
6401maybe-html-cgen: html-cgen
2a4cbe27 6402
a90ef4bf
JM
6403html-cgen: \
6404 configure-cgen
6405 @: $(MAKE); $(unstage)
6406 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6407 r=`${PWD_COMMAND}`; export r; \
6408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6409 $(HOST_EXPORTS) \
b813574b 6410 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6412 done; \
a90ef4bf
JM
6413 echo "Doing html in cgen" ; \
6414 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6417 "RANLIB=$${RANLIB}" \
0c24b341 6418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6419 html) \
2a4cbe27
NN
6420 || exit 1
6421
a90ef4bf 6422@endif cgen
2a4cbe27 6423
a90ef4bf
JM
6424.PHONY: maybe-TAGS-cgen TAGS-cgen
6425maybe-TAGS-cgen:
6426@if cgen
6427maybe-TAGS-cgen: TAGS-cgen
2a4cbe27 6428
a90ef4bf
JM
6429TAGS-cgen: \
6430 configure-cgen
6431 @: $(MAKE); $(unstage)
6432 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6433 r=`${PWD_COMMAND}`; export r; \
6434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6435 $(HOST_EXPORTS) \
b813574b 6436 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6438 done; \
a90ef4bf
JM
6439 echo "Doing TAGS in cgen" ; \
6440 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6443 "RANLIB=$${RANLIB}" \
0c24b341 6444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6445 TAGS) \
2a4cbe27
NN
6446 || exit 1
6447
a90ef4bf 6448@endif cgen
2a4cbe27 6449
a90ef4bf
JM
6450.PHONY: maybe-install-info-cgen install-info-cgen
6451maybe-install-info-cgen:
6452@if cgen
6453maybe-install-info-cgen: install-info-cgen
2a4cbe27 6454
a90ef4bf
JM
6455install-info-cgen: \
6456 configure-cgen \
6457 info-cgen
6458 @: $(MAKE); $(unstage)
6459 @[ -f ./cgen/Makefile ] || exit 0; \
6460 r=`${PWD_COMMAND}`; export r; \
6461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6462 $(HOST_EXPORTS) \
6463 for flag in $(EXTRA_HOST_FLAGS) ; do \
6464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6465 done; \
6466 echo "Doing install-info in cgen" ; \
6467 (cd $(HOST_SUBDIR)/cgen && \
6468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6470 "RANLIB=$${RANLIB}" \
6471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6472 install-info) \
6473 || exit 1
a7254363 6474
a90ef4bf
JM
6475@endif cgen
6476
6477.PHONY: maybe-install-pdf-cgen install-pdf-cgen
6478maybe-install-pdf-cgen:
6479@if cgen
6480maybe-install-pdf-cgen: install-pdf-cgen
6481
6482install-pdf-cgen: \
6483 configure-cgen \
6484 pdf-cgen
6485 @: $(MAKE); $(unstage)
6486 @[ -f ./cgen/Makefile ] || exit 0; \
6487 r=`${PWD_COMMAND}`; export r; \
c52c6897 6488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6489 $(HOST_EXPORTS) \
6490 for flag in $(EXTRA_HOST_FLAGS) ; do \
6491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6492 done; \
6493 echo "Doing install-pdf in cgen" ; \
6494 (cd $(HOST_SUBDIR)/cgen && \
6495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6497 "RANLIB=$${RANLIB}" \
6498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6499 install-pdf) \
2a4cbe27
NN
6500 || exit 1
6501
a90ef4bf 6502@endif cgen
a7254363 6503
a90ef4bf
JM
6504.PHONY: maybe-install-html-cgen install-html-cgen
6505maybe-install-html-cgen:
6506@if cgen
6507maybe-install-html-cgen: install-html-cgen
a7254363 6508
a90ef4bf
JM
6509install-html-cgen: \
6510 configure-cgen \
6511 html-cgen
6512 @: $(MAKE); $(unstage)
6513 @[ -f ./cgen/Makefile ] || exit 0; \
6514 r=`${PWD_COMMAND}`; export r; \
c52c6897 6515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6516 $(HOST_EXPORTS) \
a90ef4bf
JM
6517 for flag in $(EXTRA_HOST_FLAGS) ; do \
6518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6519 done; \
6520 echo "Doing install-html in cgen" ; \
6521 (cd $(HOST_SUBDIR)/cgen && \
6522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6524 "RANLIB=$${RANLIB}" \
6525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6526 install-html) \
6527 || exit 1
d545f33b 6528
a90ef4bf
JM
6529@endif cgen
6530
6531.PHONY: maybe-installcheck-cgen installcheck-cgen
6532maybe-installcheck-cgen:
6533@if cgen
6534maybe-installcheck-cgen: installcheck-cgen
6535
6536installcheck-cgen: \
6537 configure-cgen
6538 @: $(MAKE); $(unstage)
6539 @[ -f ./cgen/Makefile ] || exit 0; \
6540 r=`${PWD_COMMAND}`; export r; \
c52c6897 6541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6542 $(HOST_EXPORTS) \
a90ef4bf
JM
6543 for flag in $(EXTRA_HOST_FLAGS) ; do \
6544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6545 done; \
6546 echo "Doing installcheck in cgen" ; \
6547 (cd $(HOST_SUBDIR)/cgen && \
6548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6550 "RANLIB=$${RANLIB}" \
6551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6552 installcheck) \
6553 || exit 1
8520c408 6554
a90ef4bf
JM
6555@endif cgen
6556
6557.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
6558maybe-mostlyclean-cgen:
6559@if cgen
6560maybe-mostlyclean-cgen: mostlyclean-cgen
6561
6562mostlyclean-cgen:
6563 @: $(MAKE); $(unstage)
6564 @[ -f ./cgen/Makefile ] || exit 0; \
6565 r=`${PWD_COMMAND}`; export r; \
c52c6897 6566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6567 $(HOST_EXPORTS) \
a90ef4bf
JM
6568 for flag in $(EXTRA_HOST_FLAGS) ; do \
6569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6570 done; \
6571 echo "Doing mostlyclean in cgen" ; \
6572 (cd $(HOST_SUBDIR)/cgen && \
6573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6575 "RANLIB=$${RANLIB}" \
6576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6577 mostlyclean) \
6578 || exit 1
8520c408 6579
a90ef4bf
JM
6580@endif cgen
6581
6582.PHONY: maybe-clean-cgen clean-cgen
6583maybe-clean-cgen:
6584@if cgen
6585maybe-clean-cgen: clean-cgen
6586
6587clean-cgen:
6588 @: $(MAKE); $(unstage)
6589 @[ -f ./cgen/Makefile ] || exit 0; \
6590 r=`${PWD_COMMAND}`; export r; \
c52c6897 6591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6592 $(HOST_EXPORTS) \
a90ef4bf
JM
6593 for flag in $(EXTRA_HOST_FLAGS) ; do \
6594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6595 done; \
6596 echo "Doing clean in cgen" ; \
6597 (cd $(HOST_SUBDIR)/cgen && \
6598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6600 "RANLIB=$${RANLIB}" \
6601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6602 clean) \
6603 || exit 1
d545f33b 6604
a90ef4bf
JM
6605@endif cgen
6606
6607.PHONY: maybe-distclean-cgen distclean-cgen
6608maybe-distclean-cgen:
6609@if cgen
6610maybe-distclean-cgen: distclean-cgen
6611
6612distclean-cgen:
6613 @: $(MAKE); $(unstage)
6614 @[ -f ./cgen/Makefile ] || exit 0; \
6615 r=`${PWD_COMMAND}`; export r; \
c52c6897 6616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6617 $(HOST_EXPORTS) \
a90ef4bf
JM
6618 for flag in $(EXTRA_HOST_FLAGS) ; do \
6619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6620 done; \
6621 echo "Doing distclean in cgen" ; \
6622 (cd $(HOST_SUBDIR)/cgen && \
6623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6625 "RANLIB=$${RANLIB}" \
6626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6627 distclean) \
6628 || exit 1
d545f33b 6629
a90ef4bf
JM
6630@endif cgen
6631
6632.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
6633maybe-maintainer-clean-cgen:
6634@if cgen
6635maybe-maintainer-clean-cgen: maintainer-clean-cgen
6636
6637maintainer-clean-cgen:
6638 @: $(MAKE); $(unstage)
6639 @[ -f ./cgen/Makefile ] || exit 0; \
6640 r=`${PWD_COMMAND}`; export r; \
c52c6897 6641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6642 $(HOST_EXPORTS) \
a90ef4bf
JM
6643 for flag in $(EXTRA_HOST_FLAGS) ; do \
6644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6645 done; \
6646 echo "Doing maintainer-clean in cgen" ; \
6647 (cd $(HOST_SUBDIR)/cgen && \
6648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6650 "RANLIB=$${RANLIB}" \
6651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6652 maintainer-clean) \
6653 || exit 1
6654
6655@endif cgen
6656
6657
6658
6659.PHONY: configure-dejagnu maybe-configure-dejagnu
6660maybe-configure-dejagnu:
6661@if gcc-bootstrap
6662configure-dejagnu: stage_current
6663@endif gcc-bootstrap
6664@if dejagnu
6665maybe-configure-dejagnu: configure-dejagnu
6666configure-dejagnu:
6667 @: $(MAKE); $(unstage)
6668 @r=`${PWD_COMMAND}`; export r; \
6669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6670 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
6671 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu ; \
6672 $(HOST_EXPORTS) \
6673 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
6674 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
d545f33b
PB
6675 case $(srcdir) in \
6676 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6677 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
d545f33b
PB
6678 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6679 esac; \
1b6c0831
L
6680 module_srcdir=dejagnu; \
6681 $(SHELL) \
6682 $$s/$$module_srcdir/configure \
6683 --srcdir=$${topdir}/$$module_srcdir \
4b900473 6684 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6685 --target=${target_alias} \
a90ef4bf
JM
6686 || exit 1
6687@endif dejagnu
d545f33b
PB
6688
6689
6690
6691
6692
a90ef4bf
JM
6693.PHONY: all-dejagnu maybe-all-dejagnu
6694maybe-all-dejagnu:
4f0ef2d8 6695@if gcc-bootstrap
a90ef4bf 6696all-dejagnu: stage_current
4f0ef2d8 6697@endif gcc-bootstrap
a90ef4bf
JM
6698@if dejagnu
6699TARGET-dejagnu=all
6700maybe-all-dejagnu: all-dejagnu
6701all-dejagnu: configure-dejagnu
6702 @: $(MAKE); $(unstage)
c52c6897 6703 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 6705 $(HOST_EXPORTS) \
a90ef4bf 6706 (cd $(HOST_SUBDIR)/dejagnu && \
b3676d82 6707 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6708 $(TARGET-dejagnu))
6709@endif dejagnu
4fa63067 6710
a7254363 6711
4fa63067 6712
a90ef4bf
JM
6713
6714.PHONY: check-dejagnu maybe-check-dejagnu
6715maybe-check-dejagnu:
6716@if dejagnu
6717maybe-check-dejagnu: check-dejagnu
6718
6719check-dejagnu:
6720 @: $(MAKE); $(unstage)
4fa63067
NN
6721 @r=`${PWD_COMMAND}`; export r; \
6722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6723 $(HOST_EXPORTS) \
a90ef4bf
JM
6724 (cd $(HOST_SUBDIR)/dejagnu && \
6725 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 6726
a90ef4bf 6727@endif dejagnu
2a4cbe27 6728
a90ef4bf
JM
6729.PHONY: install-dejagnu maybe-install-dejagnu
6730maybe-install-dejagnu:
6731@if dejagnu
6732maybe-install-dejagnu: install-dejagnu
2a4cbe27 6733
a90ef4bf
JM
6734install-dejagnu: installdirs
6735 @: $(MAKE); $(unstage)
4fa63067 6736 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6738 $(HOST_EXPORTS) \
a90ef4bf
JM
6739 (cd $(HOST_SUBDIR)/dejagnu && \
6740 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6741
a90ef4bf 6742@endif dejagnu
d545f33b 6743
a90ef4bf
JM
6744.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
6745maybe-install-strip-dejagnu:
6746@if dejagnu
6747maybe-install-strip-dejagnu: install-strip-dejagnu
9b980aa1 6748
a90ef4bf 6749install-strip-dejagnu: installdirs
9b980aa1
RW
6750 @: $(MAKE); $(unstage)
6751 @r=`${PWD_COMMAND}`; export r; \
6752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6753 $(HOST_EXPORTS) \
a90ef4bf 6754 (cd $(HOST_SUBDIR)/dejagnu && \
9b980aa1
RW
6755 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6756
a90ef4bf 6757@endif dejagnu
9b980aa1 6758
56a8fe78 6759# Other targets (info, dvi, pdf, etc.)
d545f33b 6760
a90ef4bf
JM
6761.PHONY: maybe-info-dejagnu info-dejagnu
6762maybe-info-dejagnu:
6763@if dejagnu
6764maybe-info-dejagnu: info-dejagnu
d545f33b 6765
a90ef4bf
JM
6766info-dejagnu: \
6767 configure-dejagnu
6768 @: $(MAKE); $(unstage)
6769 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6770 r=`${PWD_COMMAND}`; export r; \
6771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6772 $(HOST_EXPORTS) \
6773 for flag in $(EXTRA_HOST_FLAGS) ; do \
6774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6775 done; \
a90ef4bf
JM
6776 echo "Doing info in dejagnu" ; \
6777 (cd $(HOST_SUBDIR)/dejagnu && \
d545f33b
PB
6778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6780 "RANLIB=$${RANLIB}" \
0c24b341 6781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d545f33b
PB
6782 info) \
6783 || exit 1
6784
a90ef4bf 6785@endif dejagnu
d545f33b 6786
a90ef4bf
JM
6787.PHONY: maybe-dvi-dejagnu dvi-dejagnu
6788maybe-dvi-dejagnu:
6789@if dejagnu
6790maybe-dvi-dejagnu: dvi-dejagnu
d545f33b 6791
a90ef4bf
JM
6792dvi-dejagnu: \
6793 configure-dejagnu
6794 @: $(MAKE); $(unstage)
6795 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6796 r=`${PWD_COMMAND}`; export r; \
6797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6798 $(HOST_EXPORTS) \
6799 for flag in $(EXTRA_HOST_FLAGS) ; do \
6800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6801 done; \
a90ef4bf
JM
6802 echo "Doing dvi in dejagnu" ; \
6803 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6806 "RANLIB=$${RANLIB}" \
0c24b341 6807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6808 dvi) \
2a4cbe27
NN
6809 || exit 1
6810
a90ef4bf 6811@endif dejagnu
2a4cbe27 6812
a90ef4bf
JM
6813.PHONY: maybe-pdf-dejagnu pdf-dejagnu
6814maybe-pdf-dejagnu:
6815@if dejagnu
6816maybe-pdf-dejagnu: pdf-dejagnu
56a8fe78 6817
a90ef4bf
JM
6818pdf-dejagnu: \
6819 configure-dejagnu
6820 @: $(MAKE); $(unstage)
6821 @[ -f ./dejagnu/Makefile ] || exit 0; \
56a8fe78
DD
6822 r=`${PWD_COMMAND}`; export r; \
6823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6824 $(HOST_EXPORTS) \
6825 for flag in $(EXTRA_HOST_FLAGS) ; do \
6826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6827 done; \
a90ef4bf
JM
6828 echo "Doing pdf in dejagnu" ; \
6829 (cd $(HOST_SUBDIR)/dejagnu && \
56a8fe78
DD
6830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6832 "RANLIB=$${RANLIB}" \
0c24b341 6833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
6834 pdf) \
6835 || exit 1
6836
a90ef4bf 6837@endif dejagnu
56a8fe78 6838
a90ef4bf
JM
6839.PHONY: maybe-html-dejagnu html-dejagnu
6840maybe-html-dejagnu:
6841@if dejagnu
6842maybe-html-dejagnu: html-dejagnu
6d389afc 6843
a90ef4bf
JM
6844html-dejagnu: \
6845 configure-dejagnu
6846 @: $(MAKE); $(unstage)
6847 @[ -f ./dejagnu/Makefile ] || exit 0; \
6d389afc
MS
6848 r=`${PWD_COMMAND}`; export r; \
6849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6850 $(HOST_EXPORTS) \
6851 for flag in $(EXTRA_HOST_FLAGS) ; do \
6852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6853 done; \
a90ef4bf
JM
6854 echo "Doing html in dejagnu" ; \
6855 (cd $(HOST_SUBDIR)/dejagnu && \
6d389afc
MS
6856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6858 "RANLIB=$${RANLIB}" \
0c24b341 6859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
6860 html) \
6861 || exit 1
6862
a90ef4bf 6863@endif dejagnu
6d389afc 6864
a90ef4bf
JM
6865.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
6866maybe-TAGS-dejagnu:
6867@if dejagnu
6868maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 6869
a90ef4bf
JM
6870TAGS-dejagnu: \
6871 configure-dejagnu
6872 @: $(MAKE); $(unstage)
6873 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6874 r=`${PWD_COMMAND}`; export r; \
6875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6876 $(HOST_EXPORTS) \
b813574b 6877 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6879 done; \
a90ef4bf
JM
6880 echo "Doing TAGS in dejagnu" ; \
6881 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6884 "RANLIB=$${RANLIB}" \
0c24b341 6885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6886 TAGS) \
2a4cbe27
NN
6887 || exit 1
6888
a90ef4bf 6889@endif dejagnu
2a4cbe27 6890
a90ef4bf
JM
6891.PHONY: maybe-install-info-dejagnu install-info-dejagnu
6892maybe-install-info-dejagnu:
6893@if dejagnu
6894maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 6895
a90ef4bf
JM
6896install-info-dejagnu: \
6897 configure-dejagnu \
6898 info-dejagnu
6899 @: $(MAKE); $(unstage)
6900 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6901 r=`${PWD_COMMAND}`; export r; \
6902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6903 $(HOST_EXPORTS) \
b813574b 6904 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6906 done; \
a90ef4bf
JM
6907 echo "Doing install-info in dejagnu" ; \
6908 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6911 "RANLIB=$${RANLIB}" \
0c24b341 6912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6913 install-info) \
2a4cbe27
NN
6914 || exit 1
6915
a90ef4bf 6916@endif dejagnu
2a4cbe27 6917
a90ef4bf
JM
6918.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
6919maybe-install-pdf-dejagnu:
6920@if dejagnu
6921maybe-install-pdf-dejagnu: install-pdf-dejagnu
a3ca38d2 6922
a90ef4bf
JM
6923install-pdf-dejagnu: \
6924 configure-dejagnu \
6925 pdf-dejagnu
6926 @: $(MAKE); $(unstage)
6927 @[ -f ./dejagnu/Makefile ] || exit 0; \
a3ca38d2
DD
6928 r=`${PWD_COMMAND}`; export r; \
6929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6930 $(HOST_EXPORTS) \
6931 for flag in $(EXTRA_HOST_FLAGS) ; do \
6932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6933 done; \
a90ef4bf
JM
6934 echo "Doing install-pdf in dejagnu" ; \
6935 (cd $(HOST_SUBDIR)/dejagnu && \
a3ca38d2
DD
6936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6938 "RANLIB=$${RANLIB}" \
0c24b341 6939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
6940 install-pdf) \
6941 || exit 1
6942
a90ef4bf 6943@endif dejagnu
a3ca38d2 6944
a90ef4bf
JM
6945.PHONY: maybe-install-html-dejagnu install-html-dejagnu
6946maybe-install-html-dejagnu:
6947@if dejagnu
6948maybe-install-html-dejagnu: install-html-dejagnu
108a6f8e 6949
a90ef4bf
JM
6950install-html-dejagnu: \
6951 configure-dejagnu \
6952 html-dejagnu
6953 @: $(MAKE); $(unstage)
6954 @[ -f ./dejagnu/Makefile ] || exit 0; \
108a6f8e
CD
6955 r=`${PWD_COMMAND}`; export r; \
6956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6957 $(HOST_EXPORTS) \
6958 for flag in $(EXTRA_HOST_FLAGS) ; do \
6959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6960 done; \
a90ef4bf
JM
6961 echo "Doing install-html in dejagnu" ; \
6962 (cd $(HOST_SUBDIR)/dejagnu && \
108a6f8e
CD
6963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6965 "RANLIB=$${RANLIB}" \
0c24b341 6966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
6967 install-html) \
6968 || exit 1
6969
a90ef4bf 6970@endif dejagnu
108a6f8e 6971
a90ef4bf
JM
6972.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
6973maybe-installcheck-dejagnu:
6974@if dejagnu
6975maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 6976
a90ef4bf
JM
6977installcheck-dejagnu: \
6978 configure-dejagnu
6979 @: $(MAKE); $(unstage)
6980 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6981 r=`${PWD_COMMAND}`; export r; \
6982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6983 $(HOST_EXPORTS) \
b813574b 6984 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6986 done; \
a90ef4bf
JM
6987 echo "Doing installcheck in dejagnu" ; \
6988 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6991 "RANLIB=$${RANLIB}" \
0c24b341 6992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6993 installcheck) \
2a4cbe27
NN
6994 || exit 1
6995
a90ef4bf 6996@endif dejagnu
2a4cbe27 6997
a90ef4bf
JM
6998.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
6999maybe-mostlyclean-dejagnu:
7000@if dejagnu
7001maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 7002
a90ef4bf
JM
7003mostlyclean-dejagnu:
7004 @: $(MAKE); $(unstage)
7005 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7006 r=`${PWD_COMMAND}`; export r; \
7007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7008 $(HOST_EXPORTS) \
b813574b 7009 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7011 done; \
a90ef4bf
JM
7012 echo "Doing mostlyclean in dejagnu" ; \
7013 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7016 "RANLIB=$${RANLIB}" \
0c24b341 7017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7018 mostlyclean) \
2a4cbe27
NN
7019 || exit 1
7020
a90ef4bf 7021@endif dejagnu
2a4cbe27 7022
a90ef4bf
JM
7023.PHONY: maybe-clean-dejagnu clean-dejagnu
7024maybe-clean-dejagnu:
7025@if dejagnu
7026maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 7027
a90ef4bf
JM
7028clean-dejagnu:
7029 @: $(MAKE); $(unstage)
7030 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7031 r=`${PWD_COMMAND}`; export r; \
7032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7033 $(HOST_EXPORTS) \
b813574b 7034 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7036 done; \
a90ef4bf
JM
7037 echo "Doing clean in dejagnu" ; \
7038 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7041 "RANLIB=$${RANLIB}" \
0c24b341 7042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7043 clean) \
2a4cbe27
NN
7044 || exit 1
7045
a90ef4bf 7046@endif dejagnu
2a4cbe27 7047
a90ef4bf
JM
7048.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7049maybe-distclean-dejagnu:
7050@if dejagnu
7051maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 7052
a90ef4bf
JM
7053distclean-dejagnu:
7054 @: $(MAKE); $(unstage)
7055 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7056 r=`${PWD_COMMAND}`; export r; \
7057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7058 $(HOST_EXPORTS) \
b813574b 7059 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7061 done; \
a90ef4bf
JM
7062 echo "Doing distclean in dejagnu" ; \
7063 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7066 "RANLIB=$${RANLIB}" \
0c24b341 7067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7068 distclean) \
2a4cbe27
NN
7069 || exit 1
7070
a90ef4bf 7071@endif dejagnu
2a4cbe27 7072
a90ef4bf
JM
7073.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7074maybe-maintainer-clean-dejagnu:
7075@if dejagnu
7076maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 7077
a90ef4bf
JM
7078maintainer-clean-dejagnu:
7079 @: $(MAKE); $(unstage)
7080 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7081 r=`${PWD_COMMAND}`; export r; \
7082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7083 $(HOST_EXPORTS) \
b813574b 7084 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7086 done; \
a90ef4bf
JM
7087 echo "Doing maintainer-clean in dejagnu" ; \
7088 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7091 "RANLIB=$${RANLIB}" \
0c24b341 7092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7093 maintainer-clean) \
2a4cbe27
NN
7094 || exit 1
7095
a90ef4bf 7096@endif dejagnu
2a4cbe27 7097
2a4cbe27 7098
a7254363 7099
a90ef4bf
JM
7100.PHONY: configure-etc maybe-configure-etc
7101maybe-configure-etc:
4f0ef2d8 7102@if gcc-bootstrap
a90ef4bf 7103configure-etc: stage_current
4f0ef2d8 7104@endif gcc-bootstrap
a90ef4bf
JM
7105@if etc
7106maybe-configure-etc: configure-etc
7107configure-etc:
0aed8855 7108 @: $(MAKE); $(unstage)
c52c6897 7109 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
7111 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
7112 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc ; \
1f53ca9a 7113 $(HOST_EXPORTS) \
a90ef4bf
JM
7114 echo Configuring in $(HOST_SUBDIR)/etc; \
7115 cd "$(HOST_SUBDIR)/etc" || exit 1; \
4fa63067 7116 case $(srcdir) in \
b00612cc 7117 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7118 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
b00612cc 7119 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7120 esac; \
1b6c0831
L
7121 module_srcdir=etc; \
7122 $(SHELL) \
7123 $$s/$$module_srcdir/configure \
7124 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7125 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7126 --target=${target_alias} \
2a4cbe27 7127 || exit 1
a90ef4bf 7128@endif etc
2a4cbe27 7129
a7254363
PB
7130
7131
d545f33b
PB
7132
7133
a90ef4bf
JM
7134.PHONY: all-etc maybe-all-etc
7135maybe-all-etc:
4f0ef2d8 7136@if gcc-bootstrap
a90ef4bf 7137all-etc: stage_current
4f0ef2d8 7138@endif gcc-bootstrap
a90ef4bf
JM
7139@if etc
7140TARGET-etc=all
7141maybe-all-etc: all-etc
7142all-etc: configure-etc
0aed8855 7143 @: $(MAKE); $(unstage)
4fa63067
NN
7144 @r=`${PWD_COMMAND}`; export r; \
7145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7146 $(HOST_EXPORTS) \
a90ef4bf 7147 (cd $(HOST_SUBDIR)/etc && \
b3676d82 7148 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7149 $(TARGET-etc))
7150@endif etc
2a4cbe27 7151
a7254363 7152
d545f33b
PB
7153
7154
a90ef4bf
JM
7155.PHONY: check-etc maybe-check-etc
7156maybe-check-etc:
7157@if etc
7158maybe-check-etc: check-etc
2a4cbe27 7159
a90ef4bf 7160check-etc:
0aed8855 7161 @: $(MAKE); $(unstage)
a90ef4bf
JM
7162 @r=`${PWD_COMMAND}`; export r; \
7163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7164 $(HOST_EXPORTS) \
a90ef4bf
JM
7165 (cd $(HOST_SUBDIR)/etc && \
7166 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 7167
a90ef4bf 7168@endif etc
4fa63067 7169
a90ef4bf
JM
7170.PHONY: install-etc maybe-install-etc
7171maybe-install-etc:
7172@if etc
7173maybe-install-etc: install-etc
4fa63067 7174
a90ef4bf 7175install-etc: installdirs
0aed8855 7176 @: $(MAKE); $(unstage)
4fa63067 7177 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7179 $(HOST_EXPORTS) \
a90ef4bf 7180 (cd $(HOST_SUBDIR)/etc && \
2da12f12 7181 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 7182
a90ef4bf 7183@endif etc
2a4cbe27 7184
a90ef4bf
JM
7185.PHONY: install-strip-etc maybe-install-strip-etc
7186maybe-install-strip-etc:
7187@if etc
7188maybe-install-strip-etc: install-strip-etc
9b980aa1 7189
a90ef4bf 7190install-strip-etc: installdirs
9b980aa1
RW
7191 @: $(MAKE); $(unstage)
7192 @r=`${PWD_COMMAND}`; export r; \
7193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7194 $(HOST_EXPORTS) \
a90ef4bf 7195 (cd $(HOST_SUBDIR)/etc && \
9b980aa1
RW
7196 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7197
a90ef4bf 7198@endif etc
9b980aa1 7199
56a8fe78 7200# Other targets (info, dvi, pdf, etc.)
2a4cbe27 7201
a90ef4bf
JM
7202.PHONY: maybe-info-etc info-etc
7203maybe-info-etc:
7204@if etc
7205maybe-info-etc: info-etc
4fa63067 7206
a90ef4bf
JM
7207info-etc: \
7208 configure-etc
0aed8855 7209 @: $(MAKE); $(unstage)
a90ef4bf 7210 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7211 r=`${PWD_COMMAND}`; export r; \
7212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7213 $(HOST_EXPORTS) \
b813574b 7214 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7216 done; \
a90ef4bf
JM
7217 echo "Doing info in etc" ; \
7218 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7221 "RANLIB=$${RANLIB}" \
0c24b341 7222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7223 info) \
2a4cbe27
NN
7224 || exit 1
7225
a90ef4bf 7226@endif etc
2a4cbe27 7227
a90ef4bf
JM
7228.PHONY: maybe-dvi-etc dvi-etc
7229maybe-dvi-etc:
7230@if etc
7231maybe-dvi-etc: dvi-etc
2a4cbe27 7232
a90ef4bf
JM
7233dvi-etc: \
7234 configure-etc
0aed8855 7235 @: $(MAKE); $(unstage)
a90ef4bf 7236 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7237 r=`${PWD_COMMAND}`; export r; \
7238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7239 $(HOST_EXPORTS) \
b813574b 7240 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7242 done; \
a90ef4bf
JM
7243 echo "Doing dvi in etc" ; \
7244 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7247 "RANLIB=$${RANLIB}" \
0c24b341 7248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7249 dvi) \
2a4cbe27
NN
7250 || exit 1
7251
a90ef4bf 7252@endif etc
2a4cbe27 7253
a90ef4bf
JM
7254.PHONY: maybe-pdf-etc pdf-etc
7255maybe-pdf-etc:
7256@if etc
7257maybe-pdf-etc: pdf-etc
56a8fe78 7258
a90ef4bf
JM
7259pdf-etc: \
7260 configure-etc
56a8fe78 7261 @: $(MAKE); $(unstage)
a90ef4bf 7262 @[ -f ./etc/Makefile ] || exit 0; \
56a8fe78
DD
7263 r=`${PWD_COMMAND}`; export r; \
7264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7265 $(HOST_EXPORTS) \
7266 for flag in $(EXTRA_HOST_FLAGS) ; do \
7267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7268 done; \
a90ef4bf
JM
7269 echo "Doing pdf in etc" ; \
7270 (cd $(HOST_SUBDIR)/etc && \
56a8fe78
DD
7271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7273 "RANLIB=$${RANLIB}" \
0c24b341 7274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7275 pdf) \
7276 || exit 1
7277
a90ef4bf 7278@endif etc
56a8fe78 7279
a90ef4bf
JM
7280.PHONY: maybe-html-etc html-etc
7281maybe-html-etc:
7282@if etc
7283maybe-html-etc: html-etc
6d389afc 7284
a90ef4bf
JM
7285html-etc: \
7286 configure-etc
0aed8855 7287 @: $(MAKE); $(unstage)
a90ef4bf 7288 @[ -f ./etc/Makefile ] || exit 0; \
6d389afc
MS
7289 r=`${PWD_COMMAND}`; export r; \
7290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7291 $(HOST_EXPORTS) \
7292 for flag in $(EXTRA_HOST_FLAGS) ; do \
7293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7294 done; \
a90ef4bf
JM
7295 echo "Doing html in etc" ; \
7296 (cd $(HOST_SUBDIR)/etc && \
6d389afc
MS
7297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7299 "RANLIB=$${RANLIB}" \
0c24b341 7300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7301 html) \
7302 || exit 1
7303
a90ef4bf 7304@endif etc
6d389afc 7305
a90ef4bf
JM
7306.PHONY: maybe-TAGS-etc TAGS-etc
7307maybe-TAGS-etc:
7308@if etc
7309maybe-TAGS-etc: TAGS-etc
2a4cbe27 7310
a90ef4bf
JM
7311TAGS-etc: \
7312 configure-etc
0aed8855 7313 @: $(MAKE); $(unstage)
a90ef4bf 7314 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7315 r=`${PWD_COMMAND}`; export r; \
7316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7317 $(HOST_EXPORTS) \
b813574b 7318 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7320 done; \
a90ef4bf
JM
7321 echo "Doing TAGS in etc" ; \
7322 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7325 "RANLIB=$${RANLIB}" \
0c24b341 7326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7327 TAGS) \
2a4cbe27
NN
7328 || exit 1
7329
a90ef4bf 7330@endif etc
2a4cbe27 7331
a90ef4bf
JM
7332.PHONY: maybe-install-info-etc install-info-etc
7333maybe-install-info-etc:
7334@if etc
7335maybe-install-info-etc: install-info-etc
2a4cbe27 7336
a90ef4bf
JM
7337install-info-etc: \
7338 configure-etc \
7339 info-etc
0aed8855 7340 @: $(MAKE); $(unstage)
a90ef4bf 7341 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7342 r=`${PWD_COMMAND}`; export r; \
7343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7344 $(HOST_EXPORTS) \
b813574b 7345 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7347 done; \
a90ef4bf
JM
7348 echo "Doing install-info in etc" ; \
7349 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7352 "RANLIB=$${RANLIB}" \
0c24b341 7353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7354 install-info) \
2a4cbe27
NN
7355 || exit 1
7356
a90ef4bf 7357@endif etc
2a4cbe27 7358
a90ef4bf
JM
7359.PHONY: maybe-install-pdf-etc install-pdf-etc
7360maybe-install-pdf-etc:
7361@if etc
7362maybe-install-pdf-etc: install-pdf-etc
a3ca38d2 7363
a90ef4bf
JM
7364install-pdf-etc: \
7365 configure-etc \
7366 pdf-etc
a3ca38d2 7367 @: $(MAKE); $(unstage)
a90ef4bf 7368 @[ -f ./etc/Makefile ] || exit 0; \
a3ca38d2
DD
7369 r=`${PWD_COMMAND}`; export r; \
7370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7371 $(HOST_EXPORTS) \
7372 for flag in $(EXTRA_HOST_FLAGS) ; do \
7373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7374 done; \
a90ef4bf
JM
7375 echo "Doing install-pdf in etc" ; \
7376 (cd $(HOST_SUBDIR)/etc && \
a3ca38d2
DD
7377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7379 "RANLIB=$${RANLIB}" \
0c24b341 7380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7381 install-pdf) \
7382 || exit 1
7383
a90ef4bf 7384@endif etc
a3ca38d2 7385
a90ef4bf
JM
7386.PHONY: maybe-install-html-etc install-html-etc
7387maybe-install-html-etc:
7388@if etc
7389maybe-install-html-etc: install-html-etc
108a6f8e 7390
a90ef4bf
JM
7391install-html-etc: \
7392 configure-etc \
7393 html-etc
108a6f8e 7394 @: $(MAKE); $(unstage)
a90ef4bf 7395 @[ -f ./etc/Makefile ] || exit 0; \
108a6f8e
CD
7396 r=`${PWD_COMMAND}`; export r; \
7397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7398 $(HOST_EXPORTS) \
7399 for flag in $(EXTRA_HOST_FLAGS) ; do \
7400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7401 done; \
a90ef4bf
JM
7402 echo "Doing install-html in etc" ; \
7403 (cd $(HOST_SUBDIR)/etc && \
108a6f8e
CD
7404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7406 "RANLIB=$${RANLIB}" \
0c24b341 7407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7408 install-html) \
7409 || exit 1
7410
a90ef4bf 7411@endif etc
108a6f8e 7412
a90ef4bf
JM
7413.PHONY: maybe-installcheck-etc installcheck-etc
7414maybe-installcheck-etc:
7415@if etc
7416maybe-installcheck-etc: installcheck-etc
2a4cbe27 7417
a90ef4bf
JM
7418installcheck-etc: \
7419 configure-etc
0aed8855 7420 @: $(MAKE); $(unstage)
a90ef4bf 7421 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7422 r=`${PWD_COMMAND}`; export r; \
7423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7424 $(HOST_EXPORTS) \
b813574b 7425 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7427 done; \
a90ef4bf
JM
7428 echo "Doing installcheck in etc" ; \
7429 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7432 "RANLIB=$${RANLIB}" \
0c24b341 7433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7434 installcheck) \
2a4cbe27
NN
7435 || exit 1
7436
a90ef4bf 7437@endif etc
2a4cbe27 7438
a90ef4bf
JM
7439.PHONY: maybe-mostlyclean-etc mostlyclean-etc
7440maybe-mostlyclean-etc:
7441@if etc
7442maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 7443
a90ef4bf 7444mostlyclean-etc:
0aed8855 7445 @: $(MAKE); $(unstage)
a90ef4bf 7446 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7447 r=`${PWD_COMMAND}`; export r; \
7448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7449 $(HOST_EXPORTS) \
b813574b 7450 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7452 done; \
a90ef4bf
JM
7453 echo "Doing mostlyclean in etc" ; \
7454 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7457 "RANLIB=$${RANLIB}" \
0c24b341 7458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7459 mostlyclean) \
2a4cbe27
NN
7460 || exit 1
7461
a90ef4bf 7462@endif etc
2a4cbe27 7463
a90ef4bf
JM
7464.PHONY: maybe-clean-etc clean-etc
7465maybe-clean-etc:
7466@if etc
7467maybe-clean-etc: clean-etc
2a4cbe27 7468
a90ef4bf 7469clean-etc:
0aed8855 7470 @: $(MAKE); $(unstage)
a90ef4bf 7471 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7472 r=`${PWD_COMMAND}`; export r; \
7473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7474 $(HOST_EXPORTS) \
b813574b 7475 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7477 done; \
a90ef4bf
JM
7478 echo "Doing clean in etc" ; \
7479 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7482 "RANLIB=$${RANLIB}" \
0c24b341 7483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7484 clean) \
2a4cbe27
NN
7485 || exit 1
7486
a90ef4bf 7487@endif etc
2a4cbe27 7488
a90ef4bf
JM
7489.PHONY: maybe-distclean-etc distclean-etc
7490maybe-distclean-etc:
7491@if etc
7492maybe-distclean-etc: distclean-etc
2a4cbe27 7493
a90ef4bf 7494distclean-etc:
0aed8855 7495 @: $(MAKE); $(unstage)
a90ef4bf 7496 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7497 r=`${PWD_COMMAND}`; export r; \
7498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7499 $(HOST_EXPORTS) \
b813574b 7500 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7502 done; \
a90ef4bf
JM
7503 echo "Doing distclean in etc" ; \
7504 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7507 "RANLIB=$${RANLIB}" \
0c24b341 7508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7509 distclean) \
2a4cbe27
NN
7510 || exit 1
7511
a90ef4bf 7512@endif etc
2a4cbe27 7513
a90ef4bf
JM
7514.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7515maybe-maintainer-clean-etc:
7516@if etc
7517maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 7518
a90ef4bf 7519maintainer-clean-etc:
0aed8855 7520 @: $(MAKE); $(unstage)
a90ef4bf 7521 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7522 r=`${PWD_COMMAND}`; export r; \
7523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7524 $(HOST_EXPORTS) \
b813574b 7525 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7527 done; \
a90ef4bf
JM
7528 echo "Doing maintainer-clean in etc" ; \
7529 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7532 "RANLIB=$${RANLIB}" \
0c24b341 7533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7534 maintainer-clean) \
2a4cbe27
NN
7535 || exit 1
7536
a90ef4bf 7537@endif etc
2a4cbe27 7538
2a4cbe27 7539
a7254363 7540
a90ef4bf
JM
7541.PHONY: configure-fastjar maybe-configure-fastjar
7542maybe-configure-fastjar:
4f0ef2d8 7543@if gcc-bootstrap
a90ef4bf 7544configure-fastjar: stage_current
4f0ef2d8 7545@endif gcc-bootstrap
a90ef4bf
JM
7546@if fastjar
7547maybe-configure-fastjar: configure-fastjar
7548configure-fastjar:
0aed8855 7549 @: $(MAKE); $(unstage)
c52c6897 7550 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
7552 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
7553 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar ; \
1f53ca9a 7554 $(HOST_EXPORTS) \
a90ef4bf
JM
7555 echo Configuring in $(HOST_SUBDIR)/fastjar; \
7556 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
4fa63067 7557 case $(srcdir) in \
b00612cc 7558 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7559 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
b00612cc 7560 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7561 esac; \
1b6c0831
L
7562 module_srcdir=fastjar; \
7563 $(SHELL) \
7564 $$s/$$module_srcdir/configure \
7565 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7566 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7567 --target=${target_alias} \
4fa63067 7568 || exit 1
a90ef4bf 7569@endif fastjar
4fa63067 7570
a7254363
PB
7571
7572
d545f33b
PB
7573
7574
a90ef4bf
JM
7575.PHONY: all-fastjar maybe-all-fastjar
7576maybe-all-fastjar:
4f0ef2d8 7577@if gcc-bootstrap
a90ef4bf 7578all-fastjar: stage_current
4f0ef2d8 7579@endif gcc-bootstrap
a90ef4bf
JM
7580@if fastjar
7581TARGET-fastjar=all
7582maybe-all-fastjar: all-fastjar
7583all-fastjar: configure-fastjar
0aed8855 7584 @: $(MAKE); $(unstage)
4fa63067
NN
7585 @r=`${PWD_COMMAND}`; export r; \
7586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7587 $(HOST_EXPORTS) \
a90ef4bf 7588 (cd $(HOST_SUBDIR)/fastjar && \
b3676d82 7589 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7590 $(TARGET-fastjar))
7591@endif fastjar
4fa63067 7592
a7254363 7593
d545f33b
PB
7594
7595
a90ef4bf
JM
7596.PHONY: check-fastjar maybe-check-fastjar
7597maybe-check-fastjar:
7598@if fastjar
7599maybe-check-fastjar: check-fastjar
4fa63067
NN
7600
7601# This module is only tested in a native toolchain.
a90ef4bf 7602check-fastjar:
0aed8855 7603 @: $(MAKE); $(unstage)
4fa63067
NN
7604 @if [ '$(host)' = '$(target)' ] ; then \
7605 r=`${PWD_COMMAND}`; export r; \
7606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7607 $(HOST_EXPORTS) \
a90ef4bf 7608 (cd $(HOST_SUBDIR)/fastjar && \
f91ca6bc 7609 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067
NN
7610 fi
7611
a90ef4bf 7612@endif fastjar
4fa63067 7613
a90ef4bf
JM
7614.PHONY: install-fastjar maybe-install-fastjar
7615maybe-install-fastjar:
7616@if fastjar
7617maybe-install-fastjar: install-fastjar
4fa63067 7618
a90ef4bf 7619install-fastjar: installdirs
0aed8855 7620 @: $(MAKE); $(unstage)
4fa63067
NN
7621 @r=`${PWD_COMMAND}`; export r; \
7622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7623 $(HOST_EXPORTS) \
a90ef4bf 7624 (cd $(HOST_SUBDIR)/fastjar && \
2da12f12 7625 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7626
a90ef4bf 7627@endif fastjar
4fa63067 7628
a90ef4bf
JM
7629.PHONY: install-strip-fastjar maybe-install-strip-fastjar
7630maybe-install-strip-fastjar:
7631@if fastjar
7632maybe-install-strip-fastjar: install-strip-fastjar
9b980aa1 7633
a90ef4bf 7634install-strip-fastjar: installdirs
9b980aa1
RW
7635 @: $(MAKE); $(unstage)
7636 @r=`${PWD_COMMAND}`; export r; \
7637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7638 $(HOST_EXPORTS) \
a90ef4bf 7639 (cd $(HOST_SUBDIR)/fastjar && \
9b980aa1
RW
7640 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7641
a90ef4bf 7642@endif fastjar
9b980aa1 7643
56a8fe78 7644# Other targets (info, dvi, pdf, etc.)
4fa63067 7645
a90ef4bf
JM
7646.PHONY: maybe-info-fastjar info-fastjar
7647maybe-info-fastjar:
7648@if fastjar
7649maybe-info-fastjar: info-fastjar
4fa63067 7650
a90ef4bf
JM
7651info-fastjar: \
7652 configure-fastjar
0aed8855 7653 @: $(MAKE); $(unstage)
a90ef4bf 7654 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7655 r=`${PWD_COMMAND}`; export r; \
7656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7657 $(HOST_EXPORTS) \
b813574b 7658 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7660 done; \
a90ef4bf
JM
7661 echo "Doing info in fastjar" ; \
7662 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7665 "RANLIB=$${RANLIB}" \
0c24b341 7666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7667 info) \
2a4cbe27
NN
7668 || exit 1
7669
a90ef4bf 7670@endif fastjar
2a4cbe27 7671
a90ef4bf
JM
7672.PHONY: maybe-dvi-fastjar dvi-fastjar
7673maybe-dvi-fastjar:
7674@if fastjar
7675maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 7676
a90ef4bf
JM
7677dvi-fastjar: \
7678 configure-fastjar
0aed8855 7679 @: $(MAKE); $(unstage)
a90ef4bf 7680 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7681 r=`${PWD_COMMAND}`; export r; \
7682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7683 $(HOST_EXPORTS) \
b813574b 7684 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7686 done; \
a90ef4bf
JM
7687 echo "Doing dvi in fastjar" ; \
7688 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7691 "RANLIB=$${RANLIB}" \
0c24b341 7692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7693 dvi) \
2a4cbe27
NN
7694 || exit 1
7695
a90ef4bf 7696@endif fastjar
2a4cbe27 7697
a90ef4bf
JM
7698.PHONY: maybe-pdf-fastjar pdf-fastjar
7699maybe-pdf-fastjar:
7700@if fastjar
7701maybe-pdf-fastjar: pdf-fastjar
56a8fe78 7702
a90ef4bf
JM
7703pdf-fastjar: \
7704 configure-fastjar
56a8fe78 7705 @: $(MAKE); $(unstage)
a90ef4bf 7706 @[ -f ./fastjar/Makefile ] || exit 0; \
56a8fe78
DD
7707 r=`${PWD_COMMAND}`; export r; \
7708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7709 $(HOST_EXPORTS) \
7710 for flag in $(EXTRA_HOST_FLAGS) ; do \
7711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7712 done; \
a90ef4bf
JM
7713 echo "Doing pdf in fastjar" ; \
7714 (cd $(HOST_SUBDIR)/fastjar && \
56a8fe78
DD
7715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7717 "RANLIB=$${RANLIB}" \
0c24b341 7718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7719 pdf) \
7720 || exit 1
7721
a90ef4bf 7722@endif fastjar
56a8fe78 7723
a90ef4bf
JM
7724.PHONY: maybe-html-fastjar html-fastjar
7725maybe-html-fastjar:
7726@if fastjar
7727maybe-html-fastjar: html-fastjar
6d389afc 7728
a90ef4bf
JM
7729html-fastjar: \
7730 configure-fastjar
0aed8855 7731 @: $(MAKE); $(unstage)
a90ef4bf 7732 @[ -f ./fastjar/Makefile ] || exit 0; \
6d389afc
MS
7733 r=`${PWD_COMMAND}`; export r; \
7734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7735 $(HOST_EXPORTS) \
7736 for flag in $(EXTRA_HOST_FLAGS) ; do \
7737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7738 done; \
a90ef4bf
JM
7739 echo "Doing html in fastjar" ; \
7740 (cd $(HOST_SUBDIR)/fastjar && \
6d389afc
MS
7741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7743 "RANLIB=$${RANLIB}" \
0c24b341 7744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7745 html) \
7746 || exit 1
7747
a90ef4bf 7748@endif fastjar
6d389afc 7749
a90ef4bf
JM
7750.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7751maybe-TAGS-fastjar:
7752@if fastjar
7753maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 7754
a90ef4bf
JM
7755TAGS-fastjar: \
7756 configure-fastjar
0aed8855 7757 @: $(MAKE); $(unstage)
a90ef4bf 7758 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7759 r=`${PWD_COMMAND}`; export r; \
7760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7761 $(HOST_EXPORTS) \
b813574b 7762 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7764 done; \
a90ef4bf
JM
7765 echo "Doing TAGS in fastjar" ; \
7766 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7769 "RANLIB=$${RANLIB}" \
0c24b341 7770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7771 TAGS) \
2a4cbe27
NN
7772 || exit 1
7773
a90ef4bf 7774@endif fastjar
2a4cbe27 7775
a90ef4bf
JM
7776.PHONY: maybe-install-info-fastjar install-info-fastjar
7777maybe-install-info-fastjar:
7778@if fastjar
7779maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 7780
a90ef4bf
JM
7781install-info-fastjar: \
7782 configure-fastjar \
7783 info-fastjar
0aed8855 7784 @: $(MAKE); $(unstage)
a90ef4bf 7785 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7786 r=`${PWD_COMMAND}`; export r; \
7787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7788 $(HOST_EXPORTS) \
b813574b 7789 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7791 done; \
a90ef4bf
JM
7792 echo "Doing install-info in fastjar" ; \
7793 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7796 "RANLIB=$${RANLIB}" \
0c24b341 7797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7798 install-info) \
2a4cbe27
NN
7799 || exit 1
7800
a90ef4bf 7801@endif fastjar
2a4cbe27 7802
a90ef4bf
JM
7803.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
7804maybe-install-pdf-fastjar:
7805@if fastjar
7806maybe-install-pdf-fastjar: install-pdf-fastjar
a3ca38d2 7807
a90ef4bf
JM
7808install-pdf-fastjar: \
7809 configure-fastjar \
7810 pdf-fastjar
a3ca38d2 7811 @: $(MAKE); $(unstage)
a90ef4bf 7812 @[ -f ./fastjar/Makefile ] || exit 0; \
a3ca38d2
DD
7813 r=`${PWD_COMMAND}`; export r; \
7814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7815 $(HOST_EXPORTS) \
7816 for flag in $(EXTRA_HOST_FLAGS) ; do \
7817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7818 done; \
a90ef4bf
JM
7819 echo "Doing install-pdf in fastjar" ; \
7820 (cd $(HOST_SUBDIR)/fastjar && \
a3ca38d2
DD
7821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7823 "RANLIB=$${RANLIB}" \
0c24b341 7824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7825 install-pdf) \
7826 || exit 1
7827
a90ef4bf 7828@endif fastjar
a3ca38d2 7829
a90ef4bf
JM
7830.PHONY: maybe-install-html-fastjar install-html-fastjar
7831maybe-install-html-fastjar:
7832@if fastjar
7833maybe-install-html-fastjar: install-html-fastjar
108a6f8e 7834
a90ef4bf
JM
7835install-html-fastjar: \
7836 configure-fastjar \
7837 html-fastjar
108a6f8e 7838 @: $(MAKE); $(unstage)
a90ef4bf 7839 @[ -f ./fastjar/Makefile ] || exit 0; \
108a6f8e
CD
7840 r=`${PWD_COMMAND}`; export r; \
7841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7842 $(HOST_EXPORTS) \
7843 for flag in $(EXTRA_HOST_FLAGS) ; do \
7844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7845 done; \
a90ef4bf
JM
7846 echo "Doing install-html in fastjar" ; \
7847 (cd $(HOST_SUBDIR)/fastjar && \
108a6f8e
CD
7848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7850 "RANLIB=$${RANLIB}" \
0c24b341 7851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7852 install-html) \
7853 || exit 1
7854
a90ef4bf 7855@endif fastjar
108a6f8e 7856
a90ef4bf
JM
7857.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7858maybe-installcheck-fastjar:
7859@if fastjar
7860maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 7861
a90ef4bf
JM
7862installcheck-fastjar: \
7863 configure-fastjar
0aed8855 7864 @: $(MAKE); $(unstage)
a90ef4bf 7865 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7866 r=`${PWD_COMMAND}`; export r; \
7867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7868 $(HOST_EXPORTS) \
b813574b 7869 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7871 done; \
a90ef4bf
JM
7872 echo "Doing installcheck in fastjar" ; \
7873 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7876 "RANLIB=$${RANLIB}" \
0c24b341 7877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7878 installcheck) \
2a4cbe27
NN
7879 || exit 1
7880
a90ef4bf 7881@endif fastjar
2a4cbe27 7882
a90ef4bf
JM
7883.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
7884maybe-mostlyclean-fastjar:
7885@if fastjar
7886maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 7887
a90ef4bf 7888mostlyclean-fastjar:
0aed8855 7889 @: $(MAKE); $(unstage)
a90ef4bf 7890 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7891 r=`${PWD_COMMAND}`; export r; \
7892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7893 $(HOST_EXPORTS) \
b813574b 7894 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7896 done; \
a90ef4bf
JM
7897 echo "Doing mostlyclean in fastjar" ; \
7898 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7901 "RANLIB=$${RANLIB}" \
0c24b341 7902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7903 mostlyclean) \
2a4cbe27
NN
7904 || exit 1
7905
a90ef4bf 7906@endif fastjar
2a4cbe27 7907
a90ef4bf
JM
7908.PHONY: maybe-clean-fastjar clean-fastjar
7909maybe-clean-fastjar:
7910@if fastjar
7911maybe-clean-fastjar: clean-fastjar
2a4cbe27 7912
a90ef4bf 7913clean-fastjar:
0aed8855 7914 @: $(MAKE); $(unstage)
a90ef4bf 7915 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7916 r=`${PWD_COMMAND}`; export r; \
7917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7918 $(HOST_EXPORTS) \
b813574b 7919 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7921 done; \
a90ef4bf
JM
7922 echo "Doing clean in fastjar" ; \
7923 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7926 "RANLIB=$${RANLIB}" \
0c24b341 7927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7928 clean) \
2a4cbe27
NN
7929 || exit 1
7930
a90ef4bf 7931@endif fastjar
2a4cbe27 7932
a90ef4bf
JM
7933.PHONY: maybe-distclean-fastjar distclean-fastjar
7934maybe-distclean-fastjar:
7935@if fastjar
7936maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 7937
a90ef4bf 7938distclean-fastjar:
0aed8855 7939 @: $(MAKE); $(unstage)
a90ef4bf 7940 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7941 r=`${PWD_COMMAND}`; export r; \
7942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7943 $(HOST_EXPORTS) \
b813574b 7944 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7946 done; \
a90ef4bf
JM
7947 echo "Doing distclean in fastjar" ; \
7948 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7951 "RANLIB=$${RANLIB}" \
0c24b341 7952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7953 distclean) \
2a4cbe27
NN
7954 || exit 1
7955
a90ef4bf 7956@endif fastjar
2a4cbe27 7957
a90ef4bf
JM
7958.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
7959maybe-maintainer-clean-fastjar:
7960@if fastjar
7961maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
7962
7963maintainer-clean-fastjar:
0aed8855 7964 @: $(MAKE); $(unstage)
a90ef4bf 7965 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7966 r=`${PWD_COMMAND}`; export r; \
7967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7968 $(HOST_EXPORTS) \
b813574b 7969 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7971 done; \
a90ef4bf
JM
7972 echo "Doing maintainer-clean in fastjar" ; \
7973 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7976 "RANLIB=$${RANLIB}" \
0c24b341 7977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7978 maintainer-clean) \
2a4cbe27
NN
7979 || exit 1
7980
a90ef4bf 7981@endif fastjar
2a4cbe27 7982
2a4cbe27 7983
a7254363 7984
a90ef4bf
JM
7985.PHONY: configure-fixincludes maybe-configure-fixincludes
7986maybe-configure-fixincludes:
4f0ef2d8 7987@if gcc-bootstrap
a90ef4bf 7988configure-fixincludes: stage_current
4f0ef2d8 7989@endif gcc-bootstrap
a90ef4bf
JM
7990@if fixincludes
7991maybe-configure-fixincludes: configure-fixincludes
7992configure-fixincludes:
c52c6897 7993 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
7995 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
7996 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
1f53ca9a 7997 $(HOST_EXPORTS) \
a90ef4bf
JM
7998 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
7999 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
4fa63067 8000 case $(srcdir) in \
b00612cc 8001 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8002 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
b00612cc 8003 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 8004 esac; \
1b6c0831
L
8005 module_srcdir=fixincludes; \
8006 $(SHELL) \
8007 $$s/$$module_srcdir/configure \
8008 --srcdir=$${topdir}/$$module_srcdir \
4b900473 8009 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8010 --target=${target_alias} \
4fa63067 8011 || exit 1
a90ef4bf 8012@endif fixincludes
4fa63067 8013
a7254363
PB
8014
8015
201f096f 8016.PHONY: configure-stage1-fixincludes maybe-configure-stage1-fixincludes
8017maybe-configure-stage1-fixincludes:
8018@if fixincludes-bootstrap
8019maybe-configure-stage1-fixincludes: configure-stage1-fixincludes
8020configure-stage1-fixincludes:
8021 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8022 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8023 @r=`${PWD_COMMAND}`; export r; \
8024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8025 TFLAGS="$(STAGE1_TFLAGS)"; \
8026 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8027 $(HOST_EXPORTS) \
8028 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8029 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8030 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
8031 echo Configuring stage 1 in $(HOST_SUBDIR)/fixincludes ; \
8032 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
8033 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8034 case $(srcdir) in \
8035 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8036 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8037 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8038 esac; \
1b6c0831
L
8039 module_srcdir=fixincludes; \
8040 $(SHELL) $$s/$$module_srcdir/configure \
8041 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8042 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8043 --target=${target_alias} \
8044 \
201f096f 8045 $(STAGE1_CONFIGURE_FLAGS)
8046@endif fixincludes-bootstrap
8047
8048.PHONY: configure-stage2-fixincludes maybe-configure-stage2-fixincludes
8049maybe-configure-stage2-fixincludes:
8050@if fixincludes-bootstrap
8051maybe-configure-stage2-fixincludes: configure-stage2-fixincludes
8052configure-stage2-fixincludes:
8053 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8054 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8055 @r=`${PWD_COMMAND}`; export r; \
8056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8057 TFLAGS="$(STAGE2_TFLAGS)"; \
8058 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8059 $(HOST_EXPORTS) \
8060 $(POSTSTAGE1_HOST_EXPORTS) \
8061 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8062 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8063 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
8064 echo Configuring stage 2 in $(HOST_SUBDIR)/fixincludes ; \
8065 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
8066 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8067 case $(srcdir) in \
8068 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8069 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8070 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8071 esac; \
1b6c0831
L
8072 module_srcdir=fixincludes; \
8073 $(SHELL) $$s/$$module_srcdir/configure \
8074 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8075 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8076 --target=${target_alias} \
8077 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8078 $(STAGE2_CONFIGURE_FLAGS)
8079@endif fixincludes-bootstrap
8080
8081.PHONY: configure-stage3-fixincludes maybe-configure-stage3-fixincludes
8082maybe-configure-stage3-fixincludes:
8083@if fixincludes-bootstrap
8084maybe-configure-stage3-fixincludes: configure-stage3-fixincludes
8085configure-stage3-fixincludes:
8086 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8087 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8088 @r=`${PWD_COMMAND}`; export r; \
8089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8090 TFLAGS="$(STAGE3_TFLAGS)"; \
8091 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8092 $(HOST_EXPORTS) \
8093 $(POSTSTAGE1_HOST_EXPORTS) \
8094 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8095 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8096 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
8097 echo Configuring stage 3 in $(HOST_SUBDIR)/fixincludes ; \
8098 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
8099 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8100 case $(srcdir) in \
8101 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8102 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8103 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8104 esac; \
1b6c0831
L
8105 module_srcdir=fixincludes; \
8106 $(SHELL) $$s/$$module_srcdir/configure \
8107 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8108 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8109 --target=${target_alias} \
8110 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8111 $(STAGE3_CONFIGURE_FLAGS)
8112@endif fixincludes-bootstrap
8113
8114.PHONY: configure-stage4-fixincludes maybe-configure-stage4-fixincludes
8115maybe-configure-stage4-fixincludes:
8116@if fixincludes-bootstrap
8117maybe-configure-stage4-fixincludes: configure-stage4-fixincludes
8118configure-stage4-fixincludes:
8119 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8120 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8121 @r=`${PWD_COMMAND}`; export r; \
8122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8123 TFLAGS="$(STAGE4_TFLAGS)"; \
8124 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8125 $(HOST_EXPORTS) \
8126 $(POSTSTAGE1_HOST_EXPORTS) \
8127 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8128 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8129 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
8130 echo Configuring stage 4 in $(HOST_SUBDIR)/fixincludes ; \
8131 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
8132 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8133 case $(srcdir) in \
8134 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8135 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8136 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8137 esac; \
1b6c0831
L
8138 module_srcdir=fixincludes; \
8139 $(SHELL) $$s/$$module_srcdir/configure \
8140 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8141 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8142 --target=${target_alias} \
8143 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8144 $(STAGE4_CONFIGURE_FLAGS)
8145@endif fixincludes-bootstrap
8146
8147.PHONY: configure-stageprofile-fixincludes maybe-configure-stageprofile-fixincludes
8148maybe-configure-stageprofile-fixincludes:
8149@if fixincludes-bootstrap
8150maybe-configure-stageprofile-fixincludes: configure-stageprofile-fixincludes
8151configure-stageprofile-fixincludes:
8152 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8153 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8154 @r=`${PWD_COMMAND}`; export r; \
8155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8156 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8157 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8158 $(HOST_EXPORTS) \
8159 $(POSTSTAGE1_HOST_EXPORTS) \
8160 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8161 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8162 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
8163 echo Configuring stage profile in $(HOST_SUBDIR)/fixincludes ; \
8164 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
8165 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8166 case $(srcdir) in \
8167 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8168 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8169 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8170 esac; \
1b6c0831
L
8171 module_srcdir=fixincludes; \
8172 $(SHELL) $$s/$$module_srcdir/configure \
8173 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8174 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8175 --target=${target_alias} \
8176 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8177 $(STAGEprofile_CONFIGURE_FLAGS)
8178@endif fixincludes-bootstrap
8179
8180.PHONY: configure-stagefeedback-fixincludes maybe-configure-stagefeedback-fixincludes
8181maybe-configure-stagefeedback-fixincludes:
8182@if fixincludes-bootstrap
8183maybe-configure-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8184configure-stagefeedback-fixincludes:
8185 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8186 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8187 @r=`${PWD_COMMAND}`; export r; \
8188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8189 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8190 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8191 $(HOST_EXPORTS) \
8192 $(POSTSTAGE1_HOST_EXPORTS) \
8193 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
8194 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
8195 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
8196 echo Configuring stage feedback in $(HOST_SUBDIR)/fixincludes ; \
8197 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
8198 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8199 case $(srcdir) in \
8200 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8201 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8202 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8203 esac; \
1b6c0831
L
8204 module_srcdir=fixincludes; \
8205 $(SHELL) $$s/$$module_srcdir/configure \
8206 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8207 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8208 --target=${target_alias} \
8209 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8210 $(STAGEfeedback_CONFIGURE_FLAGS)
8211@endif fixincludes-bootstrap
8212
8213
8214
d545f33b
PB
8215
8216
a90ef4bf
JM
8217.PHONY: all-fixincludes maybe-all-fixincludes
8218maybe-all-fixincludes:
4f0ef2d8 8219@if gcc-bootstrap
a90ef4bf 8220all-fixincludes: stage_current
4f0ef2d8 8221@endif gcc-bootstrap
a90ef4bf
JM
8222@if fixincludes
8223TARGET-fixincludes=all
8224maybe-all-fixincludes: all-fixincludes
8225all-fixincludes: configure-fixincludes
4fa63067
NN
8226 @r=`${PWD_COMMAND}`; export r; \
8227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8228 $(HOST_EXPORTS) \
a90ef4bf 8229 (cd $(HOST_SUBDIR)/fixincludes && \
b3676d82 8230 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8231 $(TARGET-fixincludes))
8232@endif fixincludes
4fa63067 8233
a7254363 8234
d545f33b 8235
201f096f 8236.PHONY: all-stage1-fixincludes maybe-all-stage1-fixincludes
8237.PHONY: clean-stage1-fixincludes maybe-clean-stage1-fixincludes
8238maybe-all-stage1-fixincludes:
8239maybe-clean-stage1-fixincludes:
8240@if fixincludes-bootstrap
8241maybe-all-stage1-fixincludes: all-stage1-fixincludes
8242all-stage1: all-stage1-fixincludes
8243TARGET-stage1-fixincludes = $(TARGET-fixincludes)
8244all-stage1-fixincludes: configure-stage1-fixincludes
8245 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8246 @r=`${PWD_COMMAND}`; export r; \
8247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8248 TFLAGS="$(STAGE1_TFLAGS)"; \
8249 $(HOST_EXPORTS) \
8250 cd $(HOST_SUBDIR)/fixincludes && \
8251 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8252 CFLAGS="$(STAGE1_CFLAGS)" \
8253 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
8254 LIBCFLAGS="$(LIBCFLAGS)" \
8255 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8256 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8257 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8258 $(EXTRA_HOST_FLAGS) \
8259 $(STAGE1_FLAGS_TO_PASS) \
8260 TFLAGS="$(STAGE1_TFLAGS)" \
8261 $(TARGET-stage1-fixincludes)
8262
8263maybe-clean-stage1-fixincludes: clean-stage1-fixincludes
8264clean-stage1: clean-stage1-fixincludes
8265clean-stage1-fixincludes:
8266 @if [ $(current_stage) = stage1 ]; then \
8267 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8268 else \
8269 [ -f $(HOST_SUBDIR)/stage1-fixincludes/Makefile ] || exit 0; \
8270 $(MAKE) stage1-start; \
8271 fi; \
8272 cd $(HOST_SUBDIR)/fixincludes && \
8273 $(MAKE) $(EXTRA_HOST_FLAGS) \
8274 $(STAGE1_FLAGS_TO_PASS) clean
8275@endif fixincludes-bootstrap
8276
8277
8278.PHONY: all-stage2-fixincludes maybe-all-stage2-fixincludes
8279.PHONY: clean-stage2-fixincludes maybe-clean-stage2-fixincludes
8280maybe-all-stage2-fixincludes:
8281maybe-clean-stage2-fixincludes:
8282@if fixincludes-bootstrap
8283maybe-all-stage2-fixincludes: all-stage2-fixincludes
8284all-stage2: all-stage2-fixincludes
8285TARGET-stage2-fixincludes = $(TARGET-fixincludes)
8286all-stage2-fixincludes: configure-stage2-fixincludes
8287 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8288 @r=`${PWD_COMMAND}`; export r; \
8289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8290 TFLAGS="$(STAGE2_TFLAGS)"; \
8291 $(HOST_EXPORTS) \
8292 $(POSTSTAGE1_HOST_EXPORTS) \
8293 cd $(HOST_SUBDIR)/fixincludes && \
8294 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8295 CFLAGS="$(STAGE2_CFLAGS)" \
8296 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
8297 LIBCFLAGS="$(STAGE2_CFLAGS)" \
8298 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8299 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8300 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8301 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8302 TFLAGS="$(STAGE2_TFLAGS)" \
8303 $(TARGET-stage2-fixincludes)
8304
8305maybe-clean-stage2-fixincludes: clean-stage2-fixincludes
8306clean-stage2: clean-stage2-fixincludes
8307clean-stage2-fixincludes:
8308 @if [ $(current_stage) = stage2 ]; then \
8309 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8310 else \
8311 [ -f $(HOST_SUBDIR)/stage2-fixincludes/Makefile ] || exit 0; \
8312 $(MAKE) stage2-start; \
8313 fi; \
8314 cd $(HOST_SUBDIR)/fixincludes && \
8315 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8316@endif fixincludes-bootstrap
8317
8318
8319.PHONY: all-stage3-fixincludes maybe-all-stage3-fixincludes
8320.PHONY: clean-stage3-fixincludes maybe-clean-stage3-fixincludes
8321maybe-all-stage3-fixincludes:
8322maybe-clean-stage3-fixincludes:
8323@if fixincludes-bootstrap
8324maybe-all-stage3-fixincludes: all-stage3-fixincludes
8325all-stage3: all-stage3-fixincludes
8326TARGET-stage3-fixincludes = $(TARGET-fixincludes)
8327all-stage3-fixincludes: configure-stage3-fixincludes
8328 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8329 @r=`${PWD_COMMAND}`; export r; \
8330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8331 TFLAGS="$(STAGE3_TFLAGS)"; \
8332 $(HOST_EXPORTS) \
8333 $(POSTSTAGE1_HOST_EXPORTS) \
8334 cd $(HOST_SUBDIR)/fixincludes && \
8335 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8336 CFLAGS="$(STAGE3_CFLAGS)" \
8337 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
8338 LIBCFLAGS="$(STAGE3_CFLAGS)" \
8339 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8340 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8341 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8342 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8343 TFLAGS="$(STAGE3_TFLAGS)" \
8344 $(TARGET-stage3-fixincludes)
8345
8346maybe-clean-stage3-fixincludes: clean-stage3-fixincludes
8347clean-stage3: clean-stage3-fixincludes
8348clean-stage3-fixincludes:
8349 @if [ $(current_stage) = stage3 ]; then \
8350 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8351 else \
8352 [ -f $(HOST_SUBDIR)/stage3-fixincludes/Makefile ] || exit 0; \
8353 $(MAKE) stage3-start; \
8354 fi; \
8355 cd $(HOST_SUBDIR)/fixincludes && \
8356 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8357@endif fixincludes-bootstrap
8358
8359
8360.PHONY: all-stage4-fixincludes maybe-all-stage4-fixincludes
8361.PHONY: clean-stage4-fixincludes maybe-clean-stage4-fixincludes
8362maybe-all-stage4-fixincludes:
8363maybe-clean-stage4-fixincludes:
8364@if fixincludes-bootstrap
8365maybe-all-stage4-fixincludes: all-stage4-fixincludes
8366all-stage4: all-stage4-fixincludes
8367TARGET-stage4-fixincludes = $(TARGET-fixincludes)
8368all-stage4-fixincludes: configure-stage4-fixincludes
8369 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8370 @r=`${PWD_COMMAND}`; export r; \
8371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8372 TFLAGS="$(STAGE4_TFLAGS)"; \
8373 $(HOST_EXPORTS) \
8374 $(POSTSTAGE1_HOST_EXPORTS) \
8375 cd $(HOST_SUBDIR)/fixincludes && \
8376 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8377 CFLAGS="$(STAGE4_CFLAGS)" \
8378 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
8379 LIBCFLAGS="$(STAGE4_CFLAGS)" \
8380 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8381 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8382 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8383 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8384 TFLAGS="$(STAGE4_TFLAGS)" \
8385 $(TARGET-stage4-fixincludes)
8386
8387maybe-clean-stage4-fixincludes: clean-stage4-fixincludes
8388clean-stage4: clean-stage4-fixincludes
8389clean-stage4-fixincludes:
8390 @if [ $(current_stage) = stage4 ]; then \
8391 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8392 else \
8393 [ -f $(HOST_SUBDIR)/stage4-fixincludes/Makefile ] || exit 0; \
8394 $(MAKE) stage4-start; \
8395 fi; \
8396 cd $(HOST_SUBDIR)/fixincludes && \
8397 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8398@endif fixincludes-bootstrap
8399
8400
8401.PHONY: all-stageprofile-fixincludes maybe-all-stageprofile-fixincludes
8402.PHONY: clean-stageprofile-fixincludes maybe-clean-stageprofile-fixincludes
8403maybe-all-stageprofile-fixincludes:
8404maybe-clean-stageprofile-fixincludes:
8405@if fixincludes-bootstrap
8406maybe-all-stageprofile-fixincludes: all-stageprofile-fixincludes
8407all-stageprofile: all-stageprofile-fixincludes
8408TARGET-stageprofile-fixincludes = $(TARGET-fixincludes)
8409all-stageprofile-fixincludes: configure-stageprofile-fixincludes
8410 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8411 @r=`${PWD_COMMAND}`; export r; \
8412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8413 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8414 $(HOST_EXPORTS) \
8415 $(POSTSTAGE1_HOST_EXPORTS) \
8416 cd $(HOST_SUBDIR)/fixincludes && \
8417 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8418 CFLAGS="$(STAGEprofile_CFLAGS)" \
8419 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
8420 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
8421 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8422 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8423 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8424 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8425 TFLAGS="$(STAGEprofile_TFLAGS)" \
8426 $(TARGET-stageprofile-fixincludes)
8427
8428maybe-clean-stageprofile-fixincludes: clean-stageprofile-fixincludes
8429clean-stageprofile: clean-stageprofile-fixincludes
8430clean-stageprofile-fixincludes:
8431 @if [ $(current_stage) = stageprofile ]; then \
8432 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8433 else \
8434 [ -f $(HOST_SUBDIR)/stageprofile-fixincludes/Makefile ] || exit 0; \
8435 $(MAKE) stageprofile-start; \
8436 fi; \
8437 cd $(HOST_SUBDIR)/fixincludes && \
8438 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8439@endif fixincludes-bootstrap
8440
8441
8442.PHONY: all-stagefeedback-fixincludes maybe-all-stagefeedback-fixincludes
8443.PHONY: clean-stagefeedback-fixincludes maybe-clean-stagefeedback-fixincludes
8444maybe-all-stagefeedback-fixincludes:
8445maybe-clean-stagefeedback-fixincludes:
8446@if fixincludes-bootstrap
8447maybe-all-stagefeedback-fixincludes: all-stagefeedback-fixincludes
8448all-stagefeedback: all-stagefeedback-fixincludes
8449TARGET-stagefeedback-fixincludes = $(TARGET-fixincludes)
8450all-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8451 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8452 @r=`${PWD_COMMAND}`; export r; \
8453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8454 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8455 $(HOST_EXPORTS) \
8456 $(POSTSTAGE1_HOST_EXPORTS) \
8457 cd $(HOST_SUBDIR)/fixincludes && \
8458 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8459 CFLAGS="$(STAGEfeedback_CFLAGS)" \
8460 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
8461 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
8462 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8463 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8464 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8465 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8466 TFLAGS="$(STAGEfeedback_TFLAGS)" \
8467 $(TARGET-stagefeedback-fixincludes)
8468
8469maybe-clean-stagefeedback-fixincludes: clean-stagefeedback-fixincludes
8470clean-stagefeedback: clean-stagefeedback-fixincludes
8471clean-stagefeedback-fixincludes:
8472 @if [ $(current_stage) = stagefeedback ]; then \
8473 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8474 else \
8475 [ -f $(HOST_SUBDIR)/stagefeedback-fixincludes/Makefile ] || exit 0; \
8476 $(MAKE) stagefeedback-start; \
8477 fi; \
8478 cd $(HOST_SUBDIR)/fixincludes && \
8479 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8480@endif fixincludes-bootstrap
8481
8482
8483
8484
d545f33b 8485
a90ef4bf
JM
8486.PHONY: check-fixincludes maybe-check-fixincludes
8487maybe-check-fixincludes:
8488@if fixincludes
8489maybe-check-fixincludes: check-fixincludes
4fa63067 8490
a90ef4bf 8491check-fixincludes:
0aed8855 8492 @: $(MAKE); $(unstage)
4fa63067
NN
8493 @r=`${PWD_COMMAND}`; export r; \
8494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8495 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 8496 (cd $(HOST_SUBDIR)/fixincludes && \
f91ca6bc 8497 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 8498
a90ef4bf 8499@endif fixincludes
4fa63067 8500
a90ef4bf
JM
8501.PHONY: install-fixincludes maybe-install-fixincludes
8502maybe-install-fixincludes:
8503@if fixincludes
8504maybe-install-fixincludes: install-fixincludes
4fa63067 8505
a90ef4bf 8506install-fixincludes: installdirs
0aed8855 8507 @: $(MAKE); $(unstage)
4fa63067
NN
8508 @r=`${PWD_COMMAND}`; export r; \
8509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8510 $(HOST_EXPORTS) \
a90ef4bf 8511 (cd $(HOST_SUBDIR)/fixincludes && \
2da12f12 8512 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8513
a90ef4bf 8514@endif fixincludes
4fa63067 8515
a90ef4bf
JM
8516.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
8517maybe-install-strip-fixincludes:
8518@if fixincludes
8519maybe-install-strip-fixincludes: install-strip-fixincludes
9b980aa1 8520
a90ef4bf 8521install-strip-fixincludes: installdirs
9b980aa1
RW
8522 @: $(MAKE); $(unstage)
8523 @r=`${PWD_COMMAND}`; export r; \
8524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8525 $(HOST_EXPORTS) \
a90ef4bf 8526 (cd $(HOST_SUBDIR)/fixincludes && \
9b980aa1
RW
8527 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8528
a90ef4bf 8529@endif fixincludes
9b980aa1 8530
56a8fe78 8531# Other targets (info, dvi, pdf, etc.)
4fa63067 8532
a90ef4bf
JM
8533.PHONY: maybe-info-fixincludes info-fixincludes
8534maybe-info-fixincludes:
8535@if fixincludes
8536maybe-info-fixincludes: info-fixincludes
4fa63067 8537
a90ef4bf
JM
8538info-fixincludes: \
8539 configure-fixincludes
a90ef4bf 8540 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8541 r=`${PWD_COMMAND}`; export r; \
8542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8543 $(HOST_EXPORTS) \
b813574b 8544 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8546 done; \
a90ef4bf
JM
8547 echo "Doing info in fixincludes" ; \
8548 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8551 "RANLIB=$${RANLIB}" \
0c24b341 8552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8553 info) \
2a4cbe27
NN
8554 || exit 1
8555
a90ef4bf 8556@endif fixincludes
2a4cbe27 8557
a90ef4bf
JM
8558.PHONY: maybe-dvi-fixincludes dvi-fixincludes
8559maybe-dvi-fixincludes:
8560@if fixincludes
8561maybe-dvi-fixincludes: dvi-fixincludes
2a4cbe27 8562
a90ef4bf
JM
8563dvi-fixincludes: \
8564 configure-fixincludes
a90ef4bf 8565 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8566 r=`${PWD_COMMAND}`; export r; \
8567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8568 $(HOST_EXPORTS) \
b813574b 8569 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8571 done; \
a90ef4bf
JM
8572 echo "Doing dvi in fixincludes" ; \
8573 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8576 "RANLIB=$${RANLIB}" \
0c24b341 8577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8578 dvi) \
2a4cbe27
NN
8579 || exit 1
8580
a90ef4bf 8581@endif fixincludes
2a4cbe27 8582
a90ef4bf
JM
8583.PHONY: maybe-pdf-fixincludes pdf-fixincludes
8584maybe-pdf-fixincludes:
8585@if fixincludes
8586maybe-pdf-fixincludes: pdf-fixincludes
56a8fe78 8587
a90ef4bf
JM
8588pdf-fixincludes: \
8589 configure-fixincludes
a90ef4bf 8590 @[ -f ./fixincludes/Makefile ] || exit 0; \
56a8fe78
DD
8591 r=`${PWD_COMMAND}`; export r; \
8592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8593 $(HOST_EXPORTS) \
8594 for flag in $(EXTRA_HOST_FLAGS) ; do \
8595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8596 done; \
a90ef4bf
JM
8597 echo "Doing pdf in fixincludes" ; \
8598 (cd $(HOST_SUBDIR)/fixincludes && \
56a8fe78
DD
8599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8601 "RANLIB=$${RANLIB}" \
0c24b341 8602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
8603 pdf) \
8604 || exit 1
8605
a90ef4bf 8606@endif fixincludes
56a8fe78 8607
a90ef4bf
JM
8608.PHONY: maybe-html-fixincludes html-fixincludes
8609maybe-html-fixincludes:
8610@if fixincludes
8611maybe-html-fixincludes: html-fixincludes
6d389afc 8612
a90ef4bf
JM
8613html-fixincludes: \
8614 configure-fixincludes
a90ef4bf 8615 @[ -f ./fixincludes/Makefile ] || exit 0; \
6d389afc
MS
8616 r=`${PWD_COMMAND}`; export r; \
8617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
8618 $(HOST_EXPORTS) \
8619 for flag in $(EXTRA_HOST_FLAGS) ; do \
8620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8621 done; \
a90ef4bf
JM
8622 echo "Doing html in fixincludes" ; \
8623 (cd $(HOST_SUBDIR)/fixincludes && \
6d389afc
MS
8624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8626 "RANLIB=$${RANLIB}" \
0c24b341 8627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
8628 html) \
8629 || exit 1
8630
a90ef4bf 8631@endif fixincludes
6d389afc 8632
a90ef4bf
JM
8633.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
8634maybe-TAGS-fixincludes:
8635@if fixincludes
8636maybe-TAGS-fixincludes: TAGS-fixincludes
2a4cbe27 8637
a90ef4bf
JM
8638# fixincludes doesn't support TAGS.
8639TAGS-fixincludes:
2a4cbe27 8640
a90ef4bf 8641@endif fixincludes
2a4cbe27 8642
a90ef4bf
JM
8643.PHONY: maybe-install-info-fixincludes install-info-fixincludes
8644maybe-install-info-fixincludes:
8645@if fixincludes
8646maybe-install-info-fixincludes: install-info-fixincludes
2a4cbe27 8647
a90ef4bf
JM
8648install-info-fixincludes: \
8649 configure-fixincludes \
8650 info-fixincludes
a90ef4bf 8651 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8652 r=`${PWD_COMMAND}`; export r; \
8653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8654 $(HOST_EXPORTS) \
b813574b 8655 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8657 done; \
a90ef4bf
JM
8658 echo "Doing install-info in fixincludes" ; \
8659 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8662 "RANLIB=$${RANLIB}" \
0c24b341 8663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8664 install-info) \
2a4cbe27
NN
8665 || exit 1
8666
a90ef4bf 8667@endif fixincludes
2a4cbe27 8668
a90ef4bf
JM
8669.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
8670maybe-install-pdf-fixincludes:
8671@if fixincludes
8672maybe-install-pdf-fixincludes: install-pdf-fixincludes
a3ca38d2 8673
a90ef4bf
JM
8674install-pdf-fixincludes: \
8675 configure-fixincludes \
8676 pdf-fixincludes
a90ef4bf 8677 @[ -f ./fixincludes/Makefile ] || exit 0; \
a3ca38d2
DD
8678 r=`${PWD_COMMAND}`; export r; \
8679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8680 $(HOST_EXPORTS) \
8681 for flag in $(EXTRA_HOST_FLAGS) ; do \
8682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8683 done; \
a90ef4bf
JM
8684 echo "Doing install-pdf in fixincludes" ; \
8685 (cd $(HOST_SUBDIR)/fixincludes && \
a3ca38d2
DD
8686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8688 "RANLIB=$${RANLIB}" \
0c24b341 8689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8690 install-pdf) \
8691 || exit 1
8692
a90ef4bf 8693@endif fixincludes
a3ca38d2 8694
a90ef4bf
JM
8695.PHONY: maybe-install-html-fixincludes install-html-fixincludes
8696maybe-install-html-fixincludes:
8697@if fixincludes
8698maybe-install-html-fixincludes: install-html-fixincludes
108a6f8e 8699
a90ef4bf
JM
8700install-html-fixincludes: \
8701 configure-fixincludes \
8702 html-fixincludes
a90ef4bf 8703 @[ -f ./fixincludes/Makefile ] || exit 0; \
108a6f8e
CD
8704 r=`${PWD_COMMAND}`; export r; \
8705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8706 $(HOST_EXPORTS) \
8707 for flag in $(EXTRA_HOST_FLAGS) ; do \
8708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8709 done; \
a90ef4bf
JM
8710 echo "Doing install-html in fixincludes" ; \
8711 (cd $(HOST_SUBDIR)/fixincludes && \
108a6f8e
CD
8712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8714 "RANLIB=$${RANLIB}" \
0c24b341 8715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
8716 install-html) \
8717 || exit 1
8718
a90ef4bf 8719@endif fixincludes
108a6f8e 8720
a90ef4bf
JM
8721.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8722maybe-installcheck-fixincludes:
8723@if fixincludes
8724maybe-installcheck-fixincludes: installcheck-fixincludes
2a4cbe27 8725
a90ef4bf
JM
8726installcheck-fixincludes: \
8727 configure-fixincludes
a90ef4bf 8728 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8729 r=`${PWD_COMMAND}`; export r; \
8730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8731 $(HOST_EXPORTS) \
b813574b 8732 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8734 done; \
a90ef4bf
JM
8735 echo "Doing installcheck in fixincludes" ; \
8736 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8739 "RANLIB=$${RANLIB}" \
0c24b341 8740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8741 installcheck) \
2a4cbe27
NN
8742 || exit 1
8743
a90ef4bf 8744@endif fixincludes
2a4cbe27 8745
a90ef4bf
JM
8746.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8747maybe-mostlyclean-fixincludes:
8748@if fixincludes
8749maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
2a4cbe27 8750
a90ef4bf 8751mostlyclean-fixincludes:
a90ef4bf 8752 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8753 r=`${PWD_COMMAND}`; export r; \
8754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8755 $(HOST_EXPORTS) \
b813574b 8756 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8758 done; \
a90ef4bf
JM
8759 echo "Doing mostlyclean in fixincludes" ; \
8760 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8763 "RANLIB=$${RANLIB}" \
0c24b341 8764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8765 mostlyclean) \
2a4cbe27
NN
8766 || exit 1
8767
a90ef4bf 8768@endif fixincludes
2a4cbe27 8769
a90ef4bf
JM
8770.PHONY: maybe-clean-fixincludes clean-fixincludes
8771maybe-clean-fixincludes:
8772@if fixincludes
8773maybe-clean-fixincludes: clean-fixincludes
2a4cbe27 8774
a90ef4bf 8775clean-fixincludes:
a90ef4bf 8776 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8777 r=`${PWD_COMMAND}`; export r; \
8778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8779 $(HOST_EXPORTS) \
b813574b 8780 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8782 done; \
a90ef4bf
JM
8783 echo "Doing clean in fixincludes" ; \
8784 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8787 "RANLIB=$${RANLIB}" \
0c24b341 8788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8789 clean) \
2a4cbe27
NN
8790 || exit 1
8791
a90ef4bf 8792@endif fixincludes
2a4cbe27 8793
a90ef4bf
JM
8794.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8795maybe-distclean-fixincludes:
8796@if fixincludes
8797maybe-distclean-fixincludes: distclean-fixincludes
2a4cbe27 8798
a90ef4bf 8799distclean-fixincludes:
a90ef4bf 8800 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8801 r=`${PWD_COMMAND}`; export r; \
8802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8803 $(HOST_EXPORTS) \
b813574b 8804 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8806 done; \
a90ef4bf
JM
8807 echo "Doing distclean in fixincludes" ; \
8808 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8811 "RANLIB=$${RANLIB}" \
0c24b341 8812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8813 distclean) \
2a4cbe27
NN
8814 || exit 1
8815
a90ef4bf 8816@endif fixincludes
2a4cbe27 8817
a90ef4bf
JM
8818.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8819maybe-maintainer-clean-fixincludes:
8820@if fixincludes
8821maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
2a4cbe27 8822
a90ef4bf 8823maintainer-clean-fixincludes:
a90ef4bf 8824 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8825 r=`${PWD_COMMAND}`; export r; \
8826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8827 $(HOST_EXPORTS) \
b813574b 8828 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8830 done; \
a90ef4bf
JM
8831 echo "Doing maintainer-clean in fixincludes" ; \
8832 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8835 "RANLIB=$${RANLIB}" \
0c24b341 8836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8837 maintainer-clean) \
2a4cbe27
NN
8838 || exit 1
8839
a90ef4bf 8840@endif fixincludes
2a4cbe27 8841
2a4cbe27 8842
a7254363 8843
a90ef4bf
JM
8844.PHONY: configure-flex maybe-configure-flex
8845maybe-configure-flex:
f9806fa5 8846@if gcc-bootstrap
a90ef4bf 8847configure-flex: stage_current
f9806fa5 8848@endif gcc-bootstrap
a90ef4bf
JM
8849@if flex
8850maybe-configure-flex: configure-flex
8851configure-flex:
f9806fa5
DE
8852 @: $(MAKE); $(unstage)
8853 @r=`${PWD_COMMAND}`; export r; \
8854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
8855 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
8856 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex ; \
1f53ca9a 8857 $(HOST_EXPORTS) \
a90ef4bf
JM
8858 echo Configuring in $(HOST_SUBDIR)/flex; \
8859 cd "$(HOST_SUBDIR)/flex" || exit 1; \
f9806fa5
DE
8860 case $(srcdir) in \
8861 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8862 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
f9806fa5
DE
8863 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8864 esac; \
1b6c0831
L
8865 module_srcdir=flex; \
8866 $(SHELL) \
8867 $$s/$$module_srcdir/configure \
8868 --srcdir=$${topdir}/$$module_srcdir \
f9806fa5 8869 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8870 --target=${target_alias} \
f9806fa5 8871 || exit 1
a90ef4bf 8872@endif flex
f9806fa5
DE
8873
8874
8875
8876
8877
a90ef4bf
JM
8878.PHONY: all-flex maybe-all-flex
8879maybe-all-flex:
f9806fa5 8880@if gcc-bootstrap
a90ef4bf 8881all-flex: stage_current
f9806fa5 8882@endif gcc-bootstrap
a90ef4bf
JM
8883@if flex
8884TARGET-flex=all
8885maybe-all-flex: all-flex
8886all-flex: configure-flex
f9806fa5
DE
8887 @: $(MAKE); $(unstage)
8888 @r=`${PWD_COMMAND}`; export r; \
8889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8890 $(HOST_EXPORTS) \
a90ef4bf 8891 (cd $(HOST_SUBDIR)/flex && \
b3676d82 8892 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8893 $(TARGET-flex))
8894@endif flex
f9806fa5
DE
8895
8896
8897
8898
a90ef4bf
JM
8899.PHONY: check-flex maybe-check-flex
8900maybe-check-flex:
8901@if flex
8902maybe-check-flex: check-flex
f9806fa5 8903
a90ef4bf
JM
8904# This module is only tested in a native toolchain.
8905check-flex:
f9806fa5 8906 @: $(MAKE); $(unstage)
a90ef4bf
JM
8907 @if [ '$(host)' = '$(target)' ] ; then \
8908 r=`${PWD_COMMAND}`; export r; \
8909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8910 $(HOST_EXPORTS) \
a90ef4bf 8911 (cd $(HOST_SUBDIR)/flex && \
f91ca6bc 8912 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 8913 fi
f9806fa5 8914
a90ef4bf 8915@endif flex
f9806fa5 8916
a90ef4bf
JM
8917.PHONY: install-flex maybe-install-flex
8918maybe-install-flex:
8919@if flex
8920maybe-install-flex: install-flex
f9806fa5 8921
a90ef4bf 8922install-flex: installdirs
f9806fa5
DE
8923 @: $(MAKE); $(unstage)
8924 @r=`${PWD_COMMAND}`; export r; \
8925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8926 $(HOST_EXPORTS) \
a90ef4bf 8927 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8928 $(MAKE) $(FLAGS_TO_PASS) install)
8929
a90ef4bf 8930@endif flex
f9806fa5 8931
a90ef4bf
JM
8932.PHONY: install-strip-flex maybe-install-strip-flex
8933maybe-install-strip-flex:
8934@if flex
8935maybe-install-strip-flex: install-strip-flex
9b980aa1 8936
a90ef4bf 8937install-strip-flex: installdirs
9b980aa1
RW
8938 @: $(MAKE); $(unstage)
8939 @r=`${PWD_COMMAND}`; export r; \
8940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8941 $(HOST_EXPORTS) \
a90ef4bf 8942 (cd $(HOST_SUBDIR)/flex && \
9b980aa1
RW
8943 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8944
a90ef4bf 8945@endif flex
9b980aa1 8946
f9806fa5
DE
8947# Other targets (info, dvi, pdf, etc.)
8948
a90ef4bf
JM
8949.PHONY: maybe-info-flex info-flex
8950maybe-info-flex:
8951@if flex
8952maybe-info-flex: info-flex
f9806fa5 8953
a90ef4bf
JM
8954info-flex: \
8955 configure-flex
f9806fa5 8956 @: $(MAKE); $(unstage)
a90ef4bf 8957 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8958 r=`${PWD_COMMAND}`; export r; \
8959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8960 $(HOST_EXPORTS) \
8961 for flag in $(EXTRA_HOST_FLAGS) ; do \
8962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8963 done; \
a90ef4bf
JM
8964 echo "Doing info in flex" ; \
8965 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8968 "RANLIB=$${RANLIB}" \
8969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8970 info) \
8971 || exit 1
8972
a90ef4bf 8973@endif flex
f9806fa5 8974
a90ef4bf
JM
8975.PHONY: maybe-dvi-flex dvi-flex
8976maybe-dvi-flex:
8977@if flex
8978maybe-dvi-flex: dvi-flex
f9806fa5 8979
a90ef4bf
JM
8980dvi-flex: \
8981 configure-flex
f9806fa5 8982 @: $(MAKE); $(unstage)
a90ef4bf 8983 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8984 r=`${PWD_COMMAND}`; export r; \
8985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8986 $(HOST_EXPORTS) \
8987 for flag in $(EXTRA_HOST_FLAGS) ; do \
8988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8989 done; \
a90ef4bf
JM
8990 echo "Doing dvi in flex" ; \
8991 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8994 "RANLIB=$${RANLIB}" \
8995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8996 dvi) \
8997 || exit 1
8998
a90ef4bf 8999@endif flex
f9806fa5 9000
a90ef4bf
JM
9001.PHONY: maybe-pdf-flex pdf-flex
9002maybe-pdf-flex:
9003@if flex
9004maybe-pdf-flex: pdf-flex
f9806fa5 9005
a90ef4bf
JM
9006pdf-flex: \
9007 configure-flex
f9806fa5 9008 @: $(MAKE); $(unstage)
a90ef4bf 9009 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9010 r=`${PWD_COMMAND}`; export r; \
9011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9012 $(HOST_EXPORTS) \
9013 for flag in $(EXTRA_HOST_FLAGS) ; do \
9014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9015 done; \
a90ef4bf
JM
9016 echo "Doing pdf in flex" ; \
9017 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9020 "RANLIB=$${RANLIB}" \
9021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9022 pdf) \
9023 || exit 1
9024
a90ef4bf 9025@endif flex
f9806fa5 9026
a90ef4bf
JM
9027.PHONY: maybe-html-flex html-flex
9028maybe-html-flex:
9029@if flex
9030maybe-html-flex: html-flex
f9806fa5 9031
a90ef4bf
JM
9032html-flex: \
9033 configure-flex
f9806fa5 9034 @: $(MAKE); $(unstage)
a90ef4bf 9035 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9036 r=`${PWD_COMMAND}`; export r; \
9037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9038 $(HOST_EXPORTS) \
9039 for flag in $(EXTRA_HOST_FLAGS) ; do \
9040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9041 done; \
a90ef4bf
JM
9042 echo "Doing html in flex" ; \
9043 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9046 "RANLIB=$${RANLIB}" \
9047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9048 html) \
9049 || exit 1
9050
a90ef4bf 9051@endif flex
f9806fa5 9052
a90ef4bf
JM
9053.PHONY: maybe-TAGS-flex TAGS-flex
9054maybe-TAGS-flex:
9055@if flex
9056maybe-TAGS-flex: TAGS-flex
f9806fa5 9057
a90ef4bf
JM
9058TAGS-flex: \
9059 configure-flex
f9806fa5 9060 @: $(MAKE); $(unstage)
a90ef4bf 9061 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9062 r=`${PWD_COMMAND}`; export r; \
9063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9064 $(HOST_EXPORTS) \
9065 for flag in $(EXTRA_HOST_FLAGS) ; do \
9066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9067 done; \
a90ef4bf
JM
9068 echo "Doing TAGS in flex" ; \
9069 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9072 "RANLIB=$${RANLIB}" \
9073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9074 TAGS) \
9075 || exit 1
9076
a90ef4bf 9077@endif flex
f9806fa5 9078
a90ef4bf
JM
9079.PHONY: maybe-install-info-flex install-info-flex
9080maybe-install-info-flex:
9081@if flex
9082maybe-install-info-flex: install-info-flex
f9806fa5 9083
a90ef4bf
JM
9084install-info-flex: \
9085 configure-flex \
9086 info-flex
f9806fa5 9087 @: $(MAKE); $(unstage)
a90ef4bf 9088 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9089 r=`${PWD_COMMAND}`; export r; \
9090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9091 $(HOST_EXPORTS) \
9092 for flag in $(EXTRA_HOST_FLAGS) ; do \
9093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9094 done; \
a90ef4bf
JM
9095 echo "Doing install-info in flex" ; \
9096 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9099 "RANLIB=$${RANLIB}" \
9100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9101 install-info) \
9102 || exit 1
9103
a90ef4bf 9104@endif flex
f9806fa5 9105
a90ef4bf
JM
9106.PHONY: maybe-install-pdf-flex install-pdf-flex
9107maybe-install-pdf-flex:
9108@if flex
9109maybe-install-pdf-flex: install-pdf-flex
f9806fa5 9110
a90ef4bf
JM
9111install-pdf-flex: \
9112 configure-flex \
9113 pdf-flex
f9806fa5 9114 @: $(MAKE); $(unstage)
a90ef4bf 9115 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9116 r=`${PWD_COMMAND}`; export r; \
9117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9118 $(HOST_EXPORTS) \
9119 for flag in $(EXTRA_HOST_FLAGS) ; do \
9120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9121 done; \
a90ef4bf
JM
9122 echo "Doing install-pdf in flex" ; \
9123 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9126 "RANLIB=$${RANLIB}" \
9127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9128 install-pdf) \
9129 || exit 1
9130
a90ef4bf 9131@endif flex
f9806fa5 9132
a90ef4bf
JM
9133.PHONY: maybe-install-html-flex install-html-flex
9134maybe-install-html-flex:
9135@if flex
9136maybe-install-html-flex: install-html-flex
f9806fa5 9137
a90ef4bf
JM
9138install-html-flex: \
9139 configure-flex \
9140 html-flex
f9806fa5 9141 @: $(MAKE); $(unstage)
a90ef4bf 9142 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9143 r=`${PWD_COMMAND}`; export r; \
9144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9145 $(HOST_EXPORTS) \
9146 for flag in $(EXTRA_HOST_FLAGS) ; do \
9147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9148 done; \
a90ef4bf
JM
9149 echo "Doing install-html in flex" ; \
9150 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9153 "RANLIB=$${RANLIB}" \
9154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9155 install-html) \
9156 || exit 1
9157
a90ef4bf 9158@endif flex
f9806fa5 9159
a90ef4bf
JM
9160.PHONY: maybe-installcheck-flex installcheck-flex
9161maybe-installcheck-flex:
9162@if flex
9163maybe-installcheck-flex: installcheck-flex
f9806fa5 9164
a90ef4bf
JM
9165installcheck-flex: \
9166 configure-flex
f9806fa5 9167 @: $(MAKE); $(unstage)
a90ef4bf 9168 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9169 r=`${PWD_COMMAND}`; export r; \
9170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9171 $(HOST_EXPORTS) \
9172 for flag in $(EXTRA_HOST_FLAGS) ; do \
9173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9174 done; \
a90ef4bf
JM
9175 echo "Doing installcheck in flex" ; \
9176 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9179 "RANLIB=$${RANLIB}" \
9180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9181 installcheck) \
9182 || exit 1
9183
a90ef4bf 9184@endif flex
f9806fa5 9185
a90ef4bf
JM
9186.PHONY: maybe-mostlyclean-flex mostlyclean-flex
9187maybe-mostlyclean-flex:
9188@if flex
9189maybe-mostlyclean-flex: mostlyclean-flex
f9806fa5 9190
a90ef4bf 9191mostlyclean-flex:
f9806fa5 9192 @: $(MAKE); $(unstage)
a90ef4bf 9193 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
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; \
a90ef4bf
JM
9200 echo "Doing mostlyclean in flex" ; \
9201 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
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 mostlyclean) \
9207 || exit 1
9208
a90ef4bf 9209@endif flex
f9806fa5 9210
a90ef4bf
JM
9211.PHONY: maybe-clean-flex clean-flex
9212maybe-clean-flex:
9213@if flex
9214maybe-clean-flex: clean-flex
f9806fa5 9215
a90ef4bf 9216clean-flex:
f9806fa5 9217 @: $(MAKE); $(unstage)
a90ef4bf 9218 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9219 r=`${PWD_COMMAND}`; export r; \
9220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9221 $(HOST_EXPORTS) \
9222 for flag in $(EXTRA_HOST_FLAGS) ; do \
9223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9224 done; \
a90ef4bf
JM
9225 echo "Doing clean in flex" ; \
9226 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9229 "RANLIB=$${RANLIB}" \
9230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9231 clean) \
9232 || exit 1
9233
a90ef4bf 9234@endif flex
f9806fa5 9235
a90ef4bf
JM
9236.PHONY: maybe-distclean-flex distclean-flex
9237maybe-distclean-flex:
9238@if flex
9239maybe-distclean-flex: distclean-flex
f9806fa5 9240
a90ef4bf 9241distclean-flex:
f9806fa5 9242 @: $(MAKE); $(unstage)
a90ef4bf 9243 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9244 r=`${PWD_COMMAND}`; export r; \
9245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9246 $(HOST_EXPORTS) \
9247 for flag in $(EXTRA_HOST_FLAGS) ; do \
9248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9249 done; \
a90ef4bf
JM
9250 echo "Doing distclean in flex" ; \
9251 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9254 "RANLIB=$${RANLIB}" \
9255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9256 distclean) \
9257 || exit 1
9258
a90ef4bf 9259@endif flex
f9806fa5 9260
a90ef4bf
JM
9261.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
9262maybe-maintainer-clean-flex:
9263@if flex
9264maybe-maintainer-clean-flex: maintainer-clean-flex
f9806fa5 9265
a90ef4bf 9266maintainer-clean-flex:
f9806fa5 9267 @: $(MAKE); $(unstage)
a90ef4bf 9268 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9269 r=`${PWD_COMMAND}`; export r; \
9270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9271 $(HOST_EXPORTS) \
9272 for flag in $(EXTRA_HOST_FLAGS) ; do \
9273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9274 done; \
a90ef4bf
JM
9275 echo "Doing maintainer-clean in flex" ; \
9276 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9279 "RANLIB=$${RANLIB}" \
9280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9281 maintainer-clean) \
9282 || exit 1
9283
a90ef4bf 9284@endif flex
f9806fa5
DE
9285
9286
9287
a90ef4bf
JM
9288.PHONY: configure-gas maybe-configure-gas
9289maybe-configure-gas:
4f0ef2d8 9290@if gcc-bootstrap
a90ef4bf 9291configure-gas: stage_current
4f0ef2d8 9292@endif gcc-bootstrap
a90ef4bf
JM
9293@if gas
9294maybe-configure-gas: configure-gas
9295configure-gas:
c52c6897 9296 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9298 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9299 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
1f53ca9a 9300 $(HOST_EXPORTS) \
a90ef4bf
JM
9301 echo Configuring in $(HOST_SUBDIR)/gas; \
9302 cd "$(HOST_SUBDIR)/gas" || exit 1; \
4fa63067 9303 case $(srcdir) in \
b00612cc 9304 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9305 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
b00612cc 9306 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 9307 esac; \
1b6c0831
L
9308 module_srcdir=gas; \
9309 $(SHELL) \
9310 $$s/$$module_srcdir/configure \
9311 --srcdir=$${topdir}/$$module_srcdir \
4b900473 9312 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9313 --target=${target_alias} \
4fa63067 9314 || exit 1
a90ef4bf 9315@endif gas
a7254363 9316
d545f33b
PB
9317
9318
a90ef4bf
JM
9319.PHONY: configure-stage1-gas maybe-configure-stage1-gas
9320maybe-configure-stage1-gas:
9321@if gas-bootstrap
9322maybe-configure-stage1-gas: configure-stage1-gas
9323configure-stage1-gas:
9324 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9325 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9326 @r=`${PWD_COMMAND}`; export r; \
9327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9328 TFLAGS="$(STAGE1_TFLAGS)"; \
9329 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9330 $(HOST_EXPORTS) \
9331 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
9332 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
9333 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
9334 echo Configuring stage 1 in $(HOST_SUBDIR)/gas ; \
9335 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
9336 cd $(HOST_SUBDIR)/gas || exit 1; \
9337 case $(srcdir) in \
9338 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9339 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9340 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9341 esac; \
1b6c0831
L
9342 module_srcdir=gas; \
9343 $(SHELL) $$s/$$module_srcdir/configure \
9344 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9345 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9346 --target=${target_alias} \
9347 \
a90ef4bf
JM
9348 $(STAGE1_CONFIGURE_FLAGS)
9349@endif gas-bootstrap
4fa63067 9350
a90ef4bf
JM
9351.PHONY: configure-stage2-gas maybe-configure-stage2-gas
9352maybe-configure-stage2-gas:
9353@if gas-bootstrap
9354maybe-configure-stage2-gas: configure-stage2-gas
9355configure-stage2-gas:
9356 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9357 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9358 @r=`${PWD_COMMAND}`; export r; \
9359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9360 TFLAGS="$(STAGE2_TFLAGS)"; \
9361 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9362 $(HOST_EXPORTS) \
a90ef4bf
JM
9363 $(POSTSTAGE1_HOST_EXPORTS) \
9364 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
9365 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
9366 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
9367 echo Configuring stage 2 in $(HOST_SUBDIR)/gas ; \
9368 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
9369 cd $(HOST_SUBDIR)/gas || exit 1; \
9370 case $(srcdir) in \
9371 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9372 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9373 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9374 esac; \
1b6c0831
L
9375 module_srcdir=gas; \
9376 $(SHELL) $$s/$$module_srcdir/configure \
9377 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9378 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9379 --target=${target_alias} \
9380 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9381 $(STAGE2_CONFIGURE_FLAGS)
9382@endif gas-bootstrap
4fa63067 9383
a90ef4bf
JM
9384.PHONY: configure-stage3-gas maybe-configure-stage3-gas
9385maybe-configure-stage3-gas:
9386@if gas-bootstrap
9387maybe-configure-stage3-gas: configure-stage3-gas
9388configure-stage3-gas:
9389 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9390 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9391 @r=`${PWD_COMMAND}`; export r; \
9392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9393 TFLAGS="$(STAGE3_TFLAGS)"; \
9394 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9395 $(HOST_EXPORTS) \
a90ef4bf
JM
9396 $(POSTSTAGE1_HOST_EXPORTS) \
9397 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
9398 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
9399 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
9400 echo Configuring stage 3 in $(HOST_SUBDIR)/gas ; \
9401 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
9402 cd $(HOST_SUBDIR)/gas || exit 1; \
9403 case $(srcdir) in \
9404 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9405 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9406 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9407 esac; \
1b6c0831
L
9408 module_srcdir=gas; \
9409 $(SHELL) $$s/$$module_srcdir/configure \
9410 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9411 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9412 --target=${target_alias} \
9413 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9414 $(STAGE3_CONFIGURE_FLAGS)
9415@endif gas-bootstrap
9b980aa1 9416
a90ef4bf
JM
9417.PHONY: configure-stage4-gas maybe-configure-stage4-gas
9418maybe-configure-stage4-gas:
9419@if gas-bootstrap
9420maybe-configure-stage4-gas: configure-stage4-gas
9421configure-stage4-gas:
9422 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9423 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9b980aa1
RW
9424 @r=`${PWD_COMMAND}`; export r; \
9425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9426 TFLAGS="$(STAGE4_TFLAGS)"; \
9427 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9b980aa1 9428 $(HOST_EXPORTS) \
a90ef4bf
JM
9429 $(POSTSTAGE1_HOST_EXPORTS) \
9430 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
9431 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
9432 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
9433 echo Configuring stage 4 in $(HOST_SUBDIR)/gas ; \
9434 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
9435 cd $(HOST_SUBDIR)/gas || exit 1; \
9436 case $(srcdir) in \
9437 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9438 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9439 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9440 esac; \
1b6c0831
L
9441 module_srcdir=gas; \
9442 $(SHELL) $$s/$$module_srcdir/configure \
9443 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9444 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9445 --target=${target_alias} \
9446 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9447 $(STAGE4_CONFIGURE_FLAGS)
9448@endif gas-bootstrap
4fa63067 9449
a90ef4bf
JM
9450.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
9451maybe-configure-stageprofile-gas:
9452@if gas-bootstrap
9453maybe-configure-stageprofile-gas: configure-stageprofile-gas
9454configure-stageprofile-gas:
9455 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9456 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9457 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9459 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9460 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9461 $(HOST_EXPORTS) \
a90ef4bf
JM
9462 $(POSTSTAGE1_HOST_EXPORTS) \
9463 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
9464 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
9465 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
9466 echo Configuring stage profile in $(HOST_SUBDIR)/gas ; \
9467 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
9468 cd $(HOST_SUBDIR)/gas || exit 1; \
9469 case $(srcdir) in \
9470 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9471 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9472 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9473 esac; \
1b6c0831
L
9474 module_srcdir=gas; \
9475 $(SHELL) $$s/$$module_srcdir/configure \
9476 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9477 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9478 --target=${target_alias} \
9479 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9480 $(STAGEprofile_CONFIGURE_FLAGS)
9481@endif gas-bootstrap
2a4cbe27 9482
a90ef4bf
JM
9483.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
9484maybe-configure-stagefeedback-gas:
9485@if gas-bootstrap
9486maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
9487configure-stagefeedback-gas:
9488 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9489 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9490 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9492 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9493 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9494 $(HOST_EXPORTS) \
a90ef4bf
JM
9495 $(POSTSTAGE1_HOST_EXPORTS) \
9496 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9497 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9498 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
9499 echo Configuring stage feedback in $(HOST_SUBDIR)/gas ; \
9500 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
9501 cd $(HOST_SUBDIR)/gas || exit 1; \
9502 case $(srcdir) in \
9503 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9504 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9505 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9506 esac; \
1b6c0831
L
9507 module_srcdir=gas; \
9508 $(SHELL) $$s/$$module_srcdir/configure \
9509 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9510 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9511 --target=${target_alias} \
9512 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9513 $(STAGEfeedback_CONFIGURE_FLAGS)
9514@endif gas-bootstrap
2a4cbe27 9515
56a8fe78 9516
56a8fe78 9517
56a8fe78 9518
6d389afc 9519
a90ef4bf
JM
9520.PHONY: all-gas maybe-all-gas
9521maybe-all-gas:
9522@if gcc-bootstrap
9523all-gas: stage_current
9524@endif gcc-bootstrap
9525@if gas
9526TARGET-gas=all
9527maybe-all-gas: all-gas
9528all-gas: configure-gas
9529 @r=`${PWD_COMMAND}`; export r; \
6d389afc 9530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9531 $(HOST_EXPORTS) \
9532 (cd $(HOST_SUBDIR)/gas && \
b3676d82 9533 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9534 $(TARGET-gas))
9535@endif gas
6d389afc 9536
6d389afc 9537
2a4cbe27 9538
a90ef4bf
JM
9539.PHONY: all-stage1-gas maybe-all-stage1-gas
9540.PHONY: clean-stage1-gas maybe-clean-stage1-gas
9541maybe-all-stage1-gas:
9542maybe-clean-stage1-gas:
9543@if gas-bootstrap
9544maybe-all-stage1-gas: all-stage1-gas
9545all-stage1: all-stage1-gas
9546TARGET-stage1-gas = $(TARGET-gas)
9547all-stage1-gas: configure-stage1-gas
9548 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9549 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9551 TFLAGS="$(STAGE1_TFLAGS)"; \
9552 $(HOST_EXPORTS) \
9553 cd $(HOST_SUBDIR)/gas && \
9554 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9555 CFLAGS="$(STAGE1_CFLAGS)" \
9556 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9557 LIBCFLAGS="$(LIBCFLAGS)" \
9558 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9559 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9560 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
9561 $(EXTRA_HOST_FLAGS) \
9562 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9563 TFLAGS="$(STAGE1_TFLAGS)" \
9564 $(TARGET-stage1-gas)
2a4cbe27 9565
a90ef4bf
JM
9566maybe-clean-stage1-gas: clean-stage1-gas
9567clean-stage1: clean-stage1-gas
9568clean-stage1-gas:
9569 @if [ $(current_stage) = stage1 ]; then \
9570 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9571 else \
9572 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
9573 $(MAKE) stage1-start; \
9574 fi; \
9575 cd $(HOST_SUBDIR)/gas && \
9576 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 9577 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9578@endif gas-bootstrap
2a4cbe27 9579
2a4cbe27 9580
a90ef4bf
JM
9581.PHONY: all-stage2-gas maybe-all-stage2-gas
9582.PHONY: clean-stage2-gas maybe-clean-stage2-gas
9583maybe-all-stage2-gas:
9584maybe-clean-stage2-gas:
9585@if gas-bootstrap
9586maybe-all-stage2-gas: all-stage2-gas
9587all-stage2: all-stage2-gas
9588TARGET-stage2-gas = $(TARGET-gas)
9589all-stage2-gas: configure-stage2-gas
9590 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9591 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9593 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 9594 $(HOST_EXPORTS) \
a90ef4bf
JM
9595 $(POSTSTAGE1_HOST_EXPORTS) \
9596 cd $(HOST_SUBDIR)/gas && \
9597 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9598 CFLAGS="$(STAGE2_CFLAGS)" \
9599 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9600 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9601 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9602 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9603 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9604 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9605 TFLAGS="$(STAGE2_TFLAGS)" \
9606 $(TARGET-stage2-gas)
2a4cbe27 9607
a90ef4bf
JM
9608maybe-clean-stage2-gas: clean-stage2-gas
9609clean-stage2: clean-stage2-gas
9610clean-stage2-gas:
9611 @if [ $(current_stage) = stage2 ]; then \
9612 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9613 else \
9614 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
9615 $(MAKE) stage2-start; \
9616 fi; \
9617 cd $(HOST_SUBDIR)/gas && \
b3676d82 9618 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9619@endif gas-bootstrap
2a4cbe27 9620
2a4cbe27 9621
a90ef4bf
JM
9622.PHONY: all-stage3-gas maybe-all-stage3-gas
9623.PHONY: clean-stage3-gas maybe-clean-stage3-gas
9624maybe-all-stage3-gas:
9625maybe-clean-stage3-gas:
9626@if gas-bootstrap
9627maybe-all-stage3-gas: all-stage3-gas
9628all-stage3: all-stage3-gas
9629TARGET-stage3-gas = $(TARGET-gas)
9630all-stage3-gas: configure-stage3-gas
9631 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9632 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9634 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 9635 $(HOST_EXPORTS) \
a90ef4bf
JM
9636 $(POSTSTAGE1_HOST_EXPORTS) \
9637 cd $(HOST_SUBDIR)/gas && \
9638 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9639 CFLAGS="$(STAGE3_CFLAGS)" \
9640 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9641 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9642 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9643 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9644 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9645 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9646 TFLAGS="$(STAGE3_TFLAGS)" \
9647 $(TARGET-stage3-gas)
2a4cbe27 9648
a90ef4bf
JM
9649maybe-clean-stage3-gas: clean-stage3-gas
9650clean-stage3: clean-stage3-gas
9651clean-stage3-gas:
9652 @if [ $(current_stage) = stage3 ]; then \
9653 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9654 else \
9655 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
9656 $(MAKE) stage3-start; \
9657 fi; \
9658 cd $(HOST_SUBDIR)/gas && \
b3676d82 9659 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9660@endif gas-bootstrap
2a4cbe27 9661
2a4cbe27 9662
a90ef4bf
JM
9663.PHONY: all-stage4-gas maybe-all-stage4-gas
9664.PHONY: clean-stage4-gas maybe-clean-stage4-gas
9665maybe-all-stage4-gas:
9666maybe-clean-stage4-gas:
9667@if gas-bootstrap
9668maybe-all-stage4-gas: all-stage4-gas
9669all-stage4: all-stage4-gas
9670TARGET-stage4-gas = $(TARGET-gas)
9671all-stage4-gas: configure-stage4-gas
9672 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9673 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9675 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 9676 $(HOST_EXPORTS) \
a90ef4bf
JM
9677 $(POSTSTAGE1_HOST_EXPORTS) \
9678 cd $(HOST_SUBDIR)/gas && \
9679 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9680 CFLAGS="$(STAGE4_CFLAGS)" \
9681 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9682 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9683 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9684 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9685 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9686 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9687 TFLAGS="$(STAGE4_TFLAGS)" \
9688 $(TARGET-stage4-gas)
2a4cbe27 9689
a90ef4bf
JM
9690maybe-clean-stage4-gas: clean-stage4-gas
9691clean-stage4: clean-stage4-gas
9692clean-stage4-gas:
9693 @if [ $(current_stage) = stage4 ]; then \
9694 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9695 else \
9696 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
9697 $(MAKE) stage4-start; \
9698 fi; \
9699 cd $(HOST_SUBDIR)/gas && \
b3676d82 9700 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9701@endif gas-bootstrap
2a4cbe27 9702
2a4cbe27 9703
a90ef4bf
JM
9704.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
9705.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9706maybe-all-stageprofile-gas:
9707maybe-clean-stageprofile-gas:
9708@if gas-bootstrap
9709maybe-all-stageprofile-gas: all-stageprofile-gas
9710all-stageprofile: all-stageprofile-gas
9711TARGET-stageprofile-gas = $(TARGET-gas)
9712all-stageprofile-gas: configure-stageprofile-gas
9713 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9714 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9716 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 9717 $(HOST_EXPORTS) \
a90ef4bf
JM
9718 $(POSTSTAGE1_HOST_EXPORTS) \
9719 cd $(HOST_SUBDIR)/gas && \
9720 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9721 CFLAGS="$(STAGEprofile_CFLAGS)" \
9722 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9723 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9724 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9725 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9726 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9727 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9728 TFLAGS="$(STAGEprofile_TFLAGS)" \
9729 $(TARGET-stageprofile-gas)
4fa63067 9730
a90ef4bf
JM
9731maybe-clean-stageprofile-gas: clean-stageprofile-gas
9732clean-stageprofile: clean-stageprofile-gas
9733clean-stageprofile-gas:
9734 @if [ $(current_stage) = stageprofile ]; then \
9735 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9736 else \
9737 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
9738 $(MAKE) stageprofile-start; \
9739 fi; \
9740 cd $(HOST_SUBDIR)/gas && \
b3676d82 9741 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9742@endif gas-bootstrap
4fa63067 9743
a7254363 9744
a90ef4bf
JM
9745.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
9746.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9747maybe-all-stagefeedback-gas:
9748maybe-clean-stagefeedback-gas:
9749@if gas-bootstrap
9750maybe-all-stagefeedback-gas: all-stagefeedback-gas
9751all-stagefeedback: all-stagefeedback-gas
9752TARGET-stagefeedback-gas = $(TARGET-gas)
9753all-stagefeedback-gas: configure-stagefeedback-gas
9754 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 9755 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9757 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9758 $(HOST_EXPORTS) \
9759 $(POSTSTAGE1_HOST_EXPORTS) \
9760 cd $(HOST_SUBDIR)/gas && \
9761 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9762 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9763 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9764 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9765 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9766 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9767 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9768 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9769 TFLAGS="$(STAGEfeedback_TFLAGS)" \
9770 $(TARGET-stagefeedback-gas)
d545f33b 9771
a90ef4bf
JM
9772maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
9773clean-stagefeedback: clean-stagefeedback-gas
9774clean-stagefeedback-gas:
9775 @if [ $(current_stage) = stagefeedback ]; then \
9776 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9777 else \
9778 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
9779 $(MAKE) stagefeedback-start; \
9780 fi; \
9781 cd $(HOST_SUBDIR)/gas && \
b3676d82 9782 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9783@endif gas-bootstrap
d545f33b 9784
2a4cbe27 9785
a7254363 9786
d545f33b
PB
9787
9788
a90ef4bf
JM
9789.PHONY: check-gas maybe-check-gas
9790maybe-check-gas:
9791@if gas
9792maybe-check-gas: check-gas
2a4cbe27 9793
a90ef4bf 9794check-gas:
0aed8855 9795 @: $(MAKE); $(unstage)
4fa63067 9796 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 9798 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 9799 (cd $(HOST_SUBDIR)/gas && \
f91ca6bc 9800 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 9801
a90ef4bf 9802@endif gas
2a4cbe27 9803
a90ef4bf
JM
9804.PHONY: install-gas maybe-install-gas
9805maybe-install-gas:
9806@if gas
9807maybe-install-gas: install-gas
2a4cbe27 9808
a90ef4bf 9809install-gas: installdirs
0aed8855 9810 @: $(MAKE); $(unstage)
4fa63067 9811 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9813 $(HOST_EXPORTS) \
a90ef4bf 9814 (cd $(HOST_SUBDIR)/gas && \
2da12f12 9815 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9816
a90ef4bf 9817@endif gas
2a4cbe27 9818
a90ef4bf
JM
9819.PHONY: install-strip-gas maybe-install-strip-gas
9820maybe-install-strip-gas:
9821@if gas
9822maybe-install-strip-gas: install-strip-gas
9b980aa1 9823
a90ef4bf 9824install-strip-gas: installdirs
9b980aa1
RW
9825 @: $(MAKE); $(unstage)
9826 @r=`${PWD_COMMAND}`; export r; \
9827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9828 $(HOST_EXPORTS) \
a90ef4bf 9829 (cd $(HOST_SUBDIR)/gas && \
9b980aa1
RW
9830 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9831
a90ef4bf 9832@endif gas
9b980aa1 9833
56a8fe78 9834# Other targets (info, dvi, pdf, etc.)
2a4cbe27 9835
a90ef4bf
JM
9836.PHONY: maybe-info-gas info-gas
9837maybe-info-gas:
9838@if gas
9839maybe-info-gas: info-gas
2a4cbe27 9840
a90ef4bf
JM
9841info-gas: \
9842 configure-gas
9843 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9844 r=`${PWD_COMMAND}`; export r; \
9845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9846 $(HOST_EXPORTS) \
b813574b 9847 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9849 done; \
a90ef4bf
JM
9850 echo "Doing info in gas" ; \
9851 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9854 "RANLIB=$${RANLIB}" \
0c24b341 9855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9856 info) \
2a4cbe27
NN
9857 || exit 1
9858
a90ef4bf 9859@endif gas
2a4cbe27 9860
a90ef4bf
JM
9861.PHONY: maybe-dvi-gas dvi-gas
9862maybe-dvi-gas:
9863@if gas
9864maybe-dvi-gas: dvi-gas
2a4cbe27 9865
a90ef4bf
JM
9866dvi-gas: \
9867 configure-gas
9868 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9869 r=`${PWD_COMMAND}`; export r; \
9870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9871 $(HOST_EXPORTS) \
b813574b 9872 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9874 done; \
a90ef4bf
JM
9875 echo "Doing dvi in gas" ; \
9876 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9879 "RANLIB=$${RANLIB}" \
0c24b341 9880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9881 dvi) \
2a4cbe27
NN
9882 || exit 1
9883
a90ef4bf 9884@endif gas
2a4cbe27 9885
a90ef4bf
JM
9886.PHONY: maybe-pdf-gas pdf-gas
9887maybe-pdf-gas:
9888@if gas
9889maybe-pdf-gas: pdf-gas
56a8fe78 9890
a90ef4bf
JM
9891pdf-gas: \
9892 configure-gas
9893 @[ -f ./gas/Makefile ] || exit 0; \
56a8fe78
DD
9894 r=`${PWD_COMMAND}`; export r; \
9895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9896 $(HOST_EXPORTS) \
9897 for flag in $(EXTRA_HOST_FLAGS) ; do \
9898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9899 done; \
a90ef4bf
JM
9900 echo "Doing pdf in gas" ; \
9901 (cd $(HOST_SUBDIR)/gas && \
56a8fe78
DD
9902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9904 "RANLIB=$${RANLIB}" \
0c24b341 9905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
9906 pdf) \
9907 || exit 1
9908
a90ef4bf 9909@endif gas
56a8fe78 9910
a90ef4bf
JM
9911.PHONY: maybe-html-gas html-gas
9912maybe-html-gas:
9913@if gas
9914maybe-html-gas: html-gas
6d389afc 9915
a90ef4bf
JM
9916html-gas: \
9917 configure-gas
9918 @[ -f ./gas/Makefile ] || exit 0; \
6d389afc
MS
9919 r=`${PWD_COMMAND}`; export r; \
9920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
9921 $(HOST_EXPORTS) \
9922 for flag in $(EXTRA_HOST_FLAGS) ; do \
9923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9924 done; \
a90ef4bf
JM
9925 echo "Doing html in gas" ; \
9926 (cd $(HOST_SUBDIR)/gas && \
6d389afc
MS
9927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9929 "RANLIB=$${RANLIB}" \
0c24b341 9930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
9931 html) \
9932 || exit 1
9933
a90ef4bf 9934@endif gas
6d389afc 9935
a90ef4bf
JM
9936.PHONY: maybe-TAGS-gas TAGS-gas
9937maybe-TAGS-gas:
9938@if gas
9939maybe-TAGS-gas: TAGS-gas
2a4cbe27 9940
a90ef4bf
JM
9941TAGS-gas: \
9942 configure-gas
9943 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9944 r=`${PWD_COMMAND}`; export r; \
9945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9946 $(HOST_EXPORTS) \
b813574b 9947 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9949 done; \
a90ef4bf
JM
9950 echo "Doing TAGS in gas" ; \
9951 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9954 "RANLIB=$${RANLIB}" \
0c24b341 9955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9956 TAGS) \
2a4cbe27
NN
9957 || exit 1
9958
a90ef4bf 9959@endif gas
2a4cbe27 9960
a90ef4bf
JM
9961.PHONY: maybe-install-info-gas install-info-gas
9962maybe-install-info-gas:
9963@if gas
9964maybe-install-info-gas: install-info-gas
2a4cbe27 9965
a90ef4bf
JM
9966install-info-gas: \
9967 configure-gas \
9968 info-gas
9969 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9970 r=`${PWD_COMMAND}`; export r; \
9971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9972 $(HOST_EXPORTS) \
b813574b 9973 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9975 done; \
a90ef4bf
JM
9976 echo "Doing install-info in gas" ; \
9977 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9980 "RANLIB=$${RANLIB}" \
0c24b341 9981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9982 install-info) \
2a4cbe27
NN
9983 || exit 1
9984
a90ef4bf 9985@endif gas
2a4cbe27 9986
a90ef4bf
JM
9987.PHONY: maybe-install-pdf-gas install-pdf-gas
9988maybe-install-pdf-gas:
9989@if gas
9990maybe-install-pdf-gas: install-pdf-gas
a3ca38d2 9991
a90ef4bf
JM
9992install-pdf-gas: \
9993 configure-gas \
9994 pdf-gas
9995 @[ -f ./gas/Makefile ] || exit 0; \
a3ca38d2
DD
9996 r=`${PWD_COMMAND}`; export r; \
9997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9998 $(HOST_EXPORTS) \
9999 for flag in $(EXTRA_HOST_FLAGS) ; do \
10000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10001 done; \
a90ef4bf
JM
10002 echo "Doing install-pdf in gas" ; \
10003 (cd $(HOST_SUBDIR)/gas && \
a3ca38d2
DD
10004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10006 "RANLIB=$${RANLIB}" \
0c24b341 10007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10008 install-pdf) \
10009 || exit 1
10010
a90ef4bf 10011@endif gas
a3ca38d2 10012
a90ef4bf
JM
10013.PHONY: maybe-install-html-gas install-html-gas
10014maybe-install-html-gas:
10015@if gas
10016maybe-install-html-gas: install-html-gas
108a6f8e 10017
a90ef4bf
JM
10018install-html-gas: \
10019 configure-gas \
10020 html-gas
10021 @[ -f ./gas/Makefile ] || exit 0; \
108a6f8e
CD
10022 r=`${PWD_COMMAND}`; export r; \
10023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10024 $(HOST_EXPORTS) \
10025 for flag in $(EXTRA_HOST_FLAGS) ; do \
10026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10027 done; \
a90ef4bf
JM
10028 echo "Doing install-html in gas" ; \
10029 (cd $(HOST_SUBDIR)/gas && \
108a6f8e
CD
10030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10032 "RANLIB=$${RANLIB}" \
0c24b341 10033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10034 install-html) \
10035 || exit 1
10036
a90ef4bf 10037@endif gas
108a6f8e 10038
a90ef4bf
JM
10039.PHONY: maybe-installcheck-gas installcheck-gas
10040maybe-installcheck-gas:
10041@if gas
10042maybe-installcheck-gas: installcheck-gas
2a4cbe27 10043
a90ef4bf
JM
10044installcheck-gas: \
10045 configure-gas
10046 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10047 r=`${PWD_COMMAND}`; export r; \
10048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10049 $(HOST_EXPORTS) \
b813574b 10050 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10052 done; \
a90ef4bf
JM
10053 echo "Doing installcheck in gas" ; \
10054 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10057 "RANLIB=$${RANLIB}" \
0c24b341 10058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10059 installcheck) \
2a4cbe27
NN
10060 || exit 1
10061
a90ef4bf 10062@endif gas
2a4cbe27 10063
a90ef4bf
JM
10064.PHONY: maybe-mostlyclean-gas mostlyclean-gas
10065maybe-mostlyclean-gas:
10066@if gas
10067maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 10068
a90ef4bf
JM
10069mostlyclean-gas:
10070 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10071 r=`${PWD_COMMAND}`; export r; \
10072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10073 $(HOST_EXPORTS) \
b813574b 10074 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10076 done; \
a90ef4bf
JM
10077 echo "Doing mostlyclean in gas" ; \
10078 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10081 "RANLIB=$${RANLIB}" \
0c24b341 10082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10083 mostlyclean) \
2a4cbe27
NN
10084 || exit 1
10085
a90ef4bf 10086@endif gas
2a4cbe27 10087
a90ef4bf
JM
10088.PHONY: maybe-clean-gas clean-gas
10089maybe-clean-gas:
10090@if gas
10091maybe-clean-gas: clean-gas
2a4cbe27 10092
a90ef4bf
JM
10093clean-gas:
10094 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10095 r=`${PWD_COMMAND}`; export r; \
10096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10097 $(HOST_EXPORTS) \
b813574b 10098 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10100 done; \
a90ef4bf
JM
10101 echo "Doing clean in gas" ; \
10102 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10105 "RANLIB=$${RANLIB}" \
0c24b341 10106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10107 clean) \
2a4cbe27
NN
10108 || exit 1
10109
a90ef4bf 10110@endif gas
2a4cbe27 10111
a90ef4bf
JM
10112.PHONY: maybe-distclean-gas distclean-gas
10113maybe-distclean-gas:
10114@if gas
10115maybe-distclean-gas: distclean-gas
2a4cbe27 10116
a90ef4bf
JM
10117distclean-gas:
10118 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10119 r=`${PWD_COMMAND}`; export r; \
10120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10121 $(HOST_EXPORTS) \
b813574b 10122 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10124 done; \
a90ef4bf
JM
10125 echo "Doing distclean in gas" ; \
10126 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10129 "RANLIB=$${RANLIB}" \
0c24b341 10130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10131 distclean) \
2a4cbe27
NN
10132 || exit 1
10133
a90ef4bf 10134@endif gas
2a4cbe27 10135
a90ef4bf
JM
10136.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
10137maybe-maintainer-clean-gas:
10138@if gas
10139maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 10140
a90ef4bf
JM
10141maintainer-clean-gas:
10142 @[ -f ./gas/Makefile ] || exit 0; \
10143 r=`${PWD_COMMAND}`; export r; \
b40e3958 10144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10145 $(HOST_EXPORTS) \
b813574b 10146 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10148 done; \
a90ef4bf
JM
10149 echo "Doing maintainer-clean in gas" ; \
10150 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10153 "RANLIB=$${RANLIB}" \
0c24b341 10154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10155 maintainer-clean) \
2a4cbe27
NN
10156 || exit 1
10157
a90ef4bf 10158@endif gas
2a4cbe27 10159
2a4cbe27 10160
a7254363 10161
a90ef4bf
JM
10162.PHONY: configure-gcc maybe-configure-gcc
10163maybe-configure-gcc:
4f0ef2d8 10164@if gcc-bootstrap
a90ef4bf 10165configure-gcc: stage_current
4f0ef2d8 10166@endif gcc-bootstrap
a90ef4bf
JM
10167@if gcc
10168maybe-configure-gcc: configure-gcc
10169configure-gcc:
c52c6897 10170 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10172 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
10173 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
1f53ca9a 10174 $(HOST_EXPORTS) \
a90ef4bf
JM
10175 echo Configuring in $(HOST_SUBDIR)/gcc; \
10176 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
4fa63067 10177 case $(srcdir) in \
b00612cc 10178 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 10179 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
b00612cc 10180 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 10181 esac; \
1b6c0831
L
10182 module_srcdir=gcc; \
10183 $(SHELL) \
10184 $$s/$$module_srcdir/configure \
10185 --srcdir=$${topdir}/$$module_srcdir \
4b900473 10186 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10187 --target=${target_alias} \
4fa63067 10188 || exit 1
a90ef4bf 10189@endif gcc
a7254363 10190
d545f33b
PB
10191
10192
a90ef4bf
JM
10193.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
10194maybe-configure-stage1-gcc:
4f0ef2d8 10195@if gcc-bootstrap
a90ef4bf
JM
10196maybe-configure-stage1-gcc: configure-stage1-gcc
10197configure-stage1-gcc:
10198 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10199 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067
NN
10200 @r=`${PWD_COMMAND}`; export r; \
10201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10202 TFLAGS="$(STAGE1_TFLAGS)"; \
10203 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
10204 $(HOST_EXPORTS) \
10205 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10206 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10207 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
10208 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc ; \
10209 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
10210 cd $(HOST_SUBDIR)/gcc || exit 1; \
10211 case $(srcdir) in \
10212 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10213 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10214 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10215 esac; \
1b6c0831
L
10216 module_srcdir=gcc; \
10217 $(SHELL) $$s/$$module_srcdir/configure \
10218 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10219 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10220 --target=${target_alias} \
10221 \
a90ef4bf
JM
10222 $(STAGE1_CONFIGURE_FLAGS)
10223@endif gcc-bootstrap
4fa63067 10224
a90ef4bf
JM
10225.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
10226maybe-configure-stage2-gcc:
10227@if gcc-bootstrap
10228maybe-configure-stage2-gcc: configure-stage2-gcc
10229configure-stage2-gcc:
10230 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10231 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067 10232 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10234 TFLAGS="$(STAGE2_TFLAGS)"; \
10235 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10236 $(HOST_EXPORTS) \
a90ef4bf
JM
10237 $(POSTSTAGE1_HOST_EXPORTS) \
10238 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10239 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10240 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
10241 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc ; \
10242 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
10243 cd $(HOST_SUBDIR)/gcc || exit 1; \
10244 case $(srcdir) in \
10245 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10246 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10247 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10248 esac; \
1b6c0831
L
10249 module_srcdir=gcc; \
10250 $(SHELL) $$s/$$module_srcdir/configure \
10251 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10252 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10253 --target=${target_alias} \
10254 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10255 $(STAGE2_CONFIGURE_FLAGS)
10256@endif gcc-bootstrap
9b980aa1 10257
a90ef4bf
JM
10258.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
10259maybe-configure-stage3-gcc:
10260@if gcc-bootstrap
10261maybe-configure-stage3-gcc: configure-stage3-gcc
10262configure-stage3-gcc:
10263 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10264 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9b980aa1
RW
10265 @r=`${PWD_COMMAND}`; export r; \
10266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10267 TFLAGS="$(STAGE3_TFLAGS)"; \
10268 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9b980aa1 10269 $(HOST_EXPORTS) \
a90ef4bf
JM
10270 $(POSTSTAGE1_HOST_EXPORTS) \
10271 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10272 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10273 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
10274 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc ; \
10275 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
10276 cd $(HOST_SUBDIR)/gcc || exit 1; \
10277 case $(srcdir) in \
10278 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10279 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10280 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10281 esac; \
1b6c0831
L
10282 module_srcdir=gcc; \
10283 $(SHELL) $$s/$$module_srcdir/configure \
10284 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10285 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10286 --target=${target_alias} \
10287 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10288 $(STAGE3_CONFIGURE_FLAGS)
10289@endif gcc-bootstrap
4fa63067 10290
a90ef4bf
JM
10291.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
10292maybe-configure-stage4-gcc:
10293@if gcc-bootstrap
10294maybe-configure-stage4-gcc: configure-stage4-gcc
10295configure-stage4-gcc:
10296 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10297 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10298 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10300 TFLAGS="$(STAGE4_TFLAGS)"; \
10301 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10302 $(HOST_EXPORTS) \
a90ef4bf
JM
10303 $(POSTSTAGE1_HOST_EXPORTS) \
10304 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10305 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10306 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
10307 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc ; \
10308 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
10309 cd $(HOST_SUBDIR)/gcc || exit 1; \
10310 case $(srcdir) in \
10311 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10312 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10313 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10314 esac; \
1b6c0831
L
10315 module_srcdir=gcc; \
10316 $(SHELL) $$s/$$module_srcdir/configure \
10317 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10318 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10319 --target=${target_alias} \
10320 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10321 $(STAGE4_CONFIGURE_FLAGS)
10322@endif gcc-bootstrap
2a4cbe27 10323
a90ef4bf
JM
10324.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
10325maybe-configure-stageprofile-gcc:
10326@if gcc-bootstrap
10327maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
10328configure-stageprofile-gcc:
10329 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10330 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10331 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10333 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10334 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10335 $(HOST_EXPORTS) \
a90ef4bf
JM
10336 $(POSTSTAGE1_HOST_EXPORTS) \
10337 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10338 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10339 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
10340 echo Configuring stage profile in $(HOST_SUBDIR)/gcc ; \
10341 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
10342 cd $(HOST_SUBDIR)/gcc || exit 1; \
10343 case $(srcdir) in \
10344 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10345 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10346 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10347 esac; \
1b6c0831
L
10348 module_srcdir=gcc; \
10349 $(SHELL) $$s/$$module_srcdir/configure \
10350 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10351 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10352 --target=${target_alias} \
10353 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10354 $(STAGEprofile_CONFIGURE_FLAGS)
10355@endif gcc-bootstrap
56a8fe78 10356
a90ef4bf
JM
10357.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
10358maybe-configure-stagefeedback-gcc:
10359@if gcc-bootstrap
10360maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
10361configure-stagefeedback-gcc:
10362 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10363 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10364 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 10365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10366 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10367 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
56a8fe78 10368 $(HOST_EXPORTS) \
a90ef4bf
JM
10369 $(POSTSTAGE1_HOST_EXPORTS) \
10370 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10371 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10372 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
10373 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc ; \
10374 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
10375 cd $(HOST_SUBDIR)/gcc || exit 1; \
10376 case $(srcdir) in \
10377 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10378 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10379 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10380 esac; \
1b6c0831
L
10381 module_srcdir=gcc; \
10382 $(SHELL) $$s/$$module_srcdir/configure \
10383 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10384 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10385 --target=${target_alias} \
10386 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10387 $(STAGEfeedback_CONFIGURE_FLAGS)
10388@endif gcc-bootstrap
56a8fe78 10389
2a4cbe27 10390
2a4cbe27
NN
10391
10392
2a4cbe27 10393
a90ef4bf
JM
10394.PHONY: all-gcc maybe-all-gcc
10395maybe-all-gcc:
10396@if gcc-bootstrap
10397all-gcc: stage_current
10398@endif gcc-bootstrap
10399@if gcc
10400TARGET-gcc=all
10401maybe-all-gcc: all-gcc
10402all-gcc: configure-gcc
10403 @r=`${PWD_COMMAND}`; export r; \
6d389afc 10404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10405 $(HOST_EXPORTS) \
10406 (cd $(HOST_SUBDIR)/gcc && \
b3676d82 10407 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10408 $(TARGET-gcc))
10409@endif gcc
6d389afc 10410
6d389afc 10411
6d389afc 10412
a90ef4bf
JM
10413.PHONY: all-stage1-gcc maybe-all-stage1-gcc
10414.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
10415maybe-all-stage1-gcc:
10416maybe-clean-stage1-gcc:
10417@if gcc-bootstrap
10418maybe-all-stage1-gcc: all-stage1-gcc
10419all-stage1: all-stage1-gcc
10420TARGET-stage1-gcc = $(TARGET-gcc)
10421all-stage1-gcc: configure-stage1-gcc
10422 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10423 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10425 TFLAGS="$(STAGE1_TFLAGS)"; \
10426 $(HOST_EXPORTS) \
10427 cd $(HOST_SUBDIR)/gcc && \
10428 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10429 CFLAGS="$(STAGE1_CFLAGS)" \
10430 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10431 LIBCFLAGS="$(LIBCFLAGS)" \
10432 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10433 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10434 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
10435 $(EXTRA_HOST_FLAGS) \
10436 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10437 TFLAGS="$(STAGE1_TFLAGS)" \
10438 $(TARGET-stage1-gcc)
2a4cbe27 10439
a90ef4bf
JM
10440maybe-clean-stage1-gcc: clean-stage1-gcc
10441clean-stage1: clean-stage1-gcc
10442clean-stage1-gcc:
10443 @if [ $(current_stage) = stage1 ]; then \
10444 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10445 else \
10446 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
10447 $(MAKE) stage1-start; \
10448 fi; \
10449 cd $(HOST_SUBDIR)/gcc && \
10450 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 10451 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10452@endif gcc-bootstrap
2a4cbe27 10453
a3ca38d2 10454
a90ef4bf
JM
10455.PHONY: all-stage2-gcc maybe-all-stage2-gcc
10456.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
10457maybe-all-stage2-gcc:
10458maybe-clean-stage2-gcc:
10459@if gcc-bootstrap
10460maybe-all-stage2-gcc: all-stage2-gcc
10461all-stage2: all-stage2-gcc
10462TARGET-stage2-gcc = $(TARGET-gcc)
10463all-stage2-gcc: configure-stage2-gcc
10464 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10465 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 10466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10467 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 10468 $(HOST_EXPORTS) \
a90ef4bf
JM
10469 $(POSTSTAGE1_HOST_EXPORTS) \
10470 cd $(HOST_SUBDIR)/gcc && \
10471 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10472 CFLAGS="$(STAGE2_CFLAGS)" \
10473 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10474 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10475 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10476 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10477 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10478 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10479 TFLAGS="$(STAGE2_TFLAGS)" \
10480 $(TARGET-stage2-gcc)
a3ca38d2 10481
a90ef4bf
JM
10482maybe-clean-stage2-gcc: clean-stage2-gcc
10483clean-stage2: clean-stage2-gcc
10484clean-stage2-gcc:
10485 @if [ $(current_stage) = stage2 ]; then \
10486 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10487 else \
10488 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
10489 $(MAKE) stage2-start; \
10490 fi; \
10491 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10492 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10493@endif gcc-bootstrap
a3ca38d2 10494
108a6f8e 10495
a90ef4bf
JM
10496.PHONY: all-stage3-gcc maybe-all-stage3-gcc
10497.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
10498maybe-all-stage3-gcc:
10499maybe-clean-stage3-gcc:
10500@if gcc-bootstrap
10501maybe-all-stage3-gcc: all-stage3-gcc
10502all-stage3: all-stage3-gcc
10503TARGET-stage3-gcc = $(TARGET-gcc)
10504all-stage3-gcc: configure-stage3-gcc
10505 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10506 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 10507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10508 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 10509 $(HOST_EXPORTS) \
a90ef4bf
JM
10510 $(POSTSTAGE1_HOST_EXPORTS) \
10511 cd $(HOST_SUBDIR)/gcc && \
10512 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10513 CFLAGS="$(STAGE3_CFLAGS)" \
10514 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10515 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10516 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10517 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10518 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10519 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10520 TFLAGS="$(STAGE3_TFLAGS)" \
10521 $(TARGET-stage3-gcc)
108a6f8e 10522
a90ef4bf
JM
10523maybe-clean-stage3-gcc: clean-stage3-gcc
10524clean-stage3: clean-stage3-gcc
10525clean-stage3-gcc:
10526 @if [ $(current_stage) = stage3 ]; then \
10527 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10528 else \
10529 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
10530 $(MAKE) stage3-start; \
10531 fi; \
10532 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10533 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10534@endif gcc-bootstrap
108a6f8e 10535
2a4cbe27 10536
a90ef4bf
JM
10537.PHONY: all-stage4-gcc maybe-all-stage4-gcc
10538.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
10539maybe-all-stage4-gcc:
10540maybe-clean-stage4-gcc:
10541@if gcc-bootstrap
10542maybe-all-stage4-gcc: all-stage4-gcc
10543all-stage4: all-stage4-gcc
10544TARGET-stage4-gcc = $(TARGET-gcc)
10545all-stage4-gcc: configure-stage4-gcc
10546 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10547 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10549 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 10550 $(HOST_EXPORTS) \
a90ef4bf
JM
10551 $(POSTSTAGE1_HOST_EXPORTS) \
10552 cd $(HOST_SUBDIR)/gcc && \
10553 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10554 CFLAGS="$(STAGE4_CFLAGS)" \
10555 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10556 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10557 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10558 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10559 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10560 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10561 TFLAGS="$(STAGE4_TFLAGS)" \
10562 $(TARGET-stage4-gcc)
2a4cbe27 10563
a90ef4bf
JM
10564maybe-clean-stage4-gcc: clean-stage4-gcc
10565clean-stage4: clean-stage4-gcc
10566clean-stage4-gcc:
10567 @if [ $(current_stage) = stage4 ]; then \
10568 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10569 else \
10570 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
10571 $(MAKE) stage4-start; \
10572 fi; \
10573 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10574 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10575@endif gcc-bootstrap
2a4cbe27 10576
a2592b1b 10577
a90ef4bf
JM
10578.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
10579.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
10580maybe-all-stageprofile-gcc:
10581maybe-clean-stageprofile-gcc:
10582@if gcc-bootstrap
10583maybe-all-stageprofile-gcc: all-stageprofile-gcc
10584all-stageprofile: all-stageprofile-gcc
10585TARGET-stageprofile-gcc = $(TARGET-gcc)
10586all-stageprofile-gcc: configure-stageprofile-gcc
10587 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10588 @r=`${PWD_COMMAND}`; export r; \
a2592b1b 10589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10590 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 10591 $(HOST_EXPORTS) \
a90ef4bf
JM
10592 $(POSTSTAGE1_HOST_EXPORTS) \
10593 cd $(HOST_SUBDIR)/gcc && \
10594 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10595 CFLAGS="$(STAGEprofile_CFLAGS)" \
10596 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10597 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10598 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10599 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10600 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10601 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10602 TFLAGS="$(STAGEprofile_TFLAGS)" \
10603 $(TARGET-stageprofile-gcc)
2a4cbe27 10604
a90ef4bf
JM
10605maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
10606clean-stageprofile: clean-stageprofile-gcc
10607clean-stageprofile-gcc:
10608 @if [ $(current_stage) = stageprofile ]; then \
10609 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10610 else \
10611 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
10612 $(MAKE) stageprofile-start; \
10613 fi; \
10614 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10615 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10616@endif gcc-bootstrap
2a4cbe27 10617
a7254363 10618
a90ef4bf
JM
10619.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
10620.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
10621maybe-all-stagefeedback-gcc:
10622maybe-clean-stagefeedback-gcc:
4f0ef2d8 10623@if gcc-bootstrap
a90ef4bf
JM
10624maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
10625all-stagefeedback: all-stagefeedback-gcc
10626TARGET-stagefeedback-gcc = $(TARGET-gcc)
10627all-stagefeedback-gcc: configure-stagefeedback-gcc
10628 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 10629 @r=`${PWD_COMMAND}`; export r; \
4fa63067 10630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10631 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10632 $(HOST_EXPORTS) \
10633 $(POSTSTAGE1_HOST_EXPORTS) \
10634 cd $(HOST_SUBDIR)/gcc && \
10635 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10636 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10637 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10638 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10639 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10640 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10641 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10642 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10643 TFLAGS="$(STAGEfeedback_TFLAGS)" \
10644 $(TARGET-stagefeedback-gcc)
d545f33b 10645
a90ef4bf
JM
10646maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
10647clean-stagefeedback: clean-stagefeedback-gcc
10648clean-stagefeedback-gcc:
10649 @if [ $(current_stage) = stagefeedback ]; then \
10650 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10651 else \
10652 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
10653 $(MAKE) stagefeedback-start; \
10654 fi; \
10655 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10656 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
4f0ef2d8 10657@endif gcc-bootstrap
4fa63067 10658
a7254363 10659
d545f33b
PB
10660
10661
4fa63067 10662
a90ef4bf
JM
10663.PHONY: check-gcc maybe-check-gcc
10664maybe-check-gcc:
10665@if gcc
10666maybe-check-gcc: check-gcc
10667
10668check-gcc:
0aed8855 10669 @: $(MAKE); $(unstage)
4fa63067
NN
10670 @r=`${PWD_COMMAND}`; export r; \
10671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 10672 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 10673 (cd $(HOST_SUBDIR)/gcc && \
f91ca6bc 10674 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 10675
a90ef4bf 10676@endif gcc
4fa63067 10677
a90ef4bf
JM
10678.PHONY: install-gcc maybe-install-gcc
10679maybe-install-gcc:
10680@if gcc
10681maybe-install-gcc: install-gcc
4fa63067 10682
a90ef4bf 10683install-gcc: installdirs
0aed8855 10684 @: $(MAKE); $(unstage)
4fa63067
NN
10685 @r=`${PWD_COMMAND}`; export r; \
10686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10687 $(HOST_EXPORTS) \
a90ef4bf
JM
10688 (cd $(HOST_SUBDIR)/gcc && \
10689 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
4fa63067 10690
a90ef4bf 10691@endif gcc
4fa63067 10692
a90ef4bf
JM
10693.PHONY: install-strip-gcc maybe-install-strip-gcc
10694maybe-install-strip-gcc:
10695@if gcc
10696maybe-install-strip-gcc: install-strip-gcc
9b980aa1 10697
a90ef4bf 10698install-strip-gcc: installdirs
9b980aa1
RW
10699 @: $(MAKE); $(unstage)
10700 @r=`${PWD_COMMAND}`; export r; \
10701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10702 $(HOST_EXPORTS) \
a90ef4bf
JM
10703 (cd $(HOST_SUBDIR)/gcc && \
10704 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
9b980aa1 10705
a90ef4bf 10706@endif gcc
9b980aa1 10707
56a8fe78 10708# Other targets (info, dvi, pdf, etc.)
4fa63067 10709
a90ef4bf
JM
10710.PHONY: maybe-info-gcc info-gcc
10711maybe-info-gcc:
10712@if gcc
10713maybe-info-gcc: info-gcc
4fa63067 10714
a90ef4bf
JM
10715info-gcc: \
10716 configure-gcc
10717 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10718 r=`${PWD_COMMAND}`; export r; \
10719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10720 $(HOST_EXPORTS) \
a90ef4bf 10721 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10723 done; \
a90ef4bf
JM
10724 echo "Doing info in gcc" ; \
10725 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10728 "RANLIB=$${RANLIB}" \
0c24b341 10729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10730 info) \
2a4cbe27
NN
10731 || exit 1
10732
a90ef4bf 10733@endif gcc
2a4cbe27 10734
a90ef4bf
JM
10735.PHONY: maybe-dvi-gcc dvi-gcc
10736maybe-dvi-gcc:
10737@if gcc
10738maybe-dvi-gcc: dvi-gcc
2a4cbe27 10739
a90ef4bf
JM
10740dvi-gcc: \
10741 configure-gcc
10742 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10743 r=`${PWD_COMMAND}`; export r; \
10744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10745 $(HOST_EXPORTS) \
a90ef4bf 10746 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10748 done; \
a90ef4bf
JM
10749 echo "Doing dvi in gcc" ; \
10750 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10753 "RANLIB=$${RANLIB}" \
0c24b341 10754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10755 dvi) \
2a4cbe27
NN
10756 || exit 1
10757
a90ef4bf 10758@endif gcc
2a4cbe27 10759
a90ef4bf
JM
10760.PHONY: maybe-pdf-gcc pdf-gcc
10761maybe-pdf-gcc:
10762@if gcc
10763maybe-pdf-gcc: pdf-gcc
56a8fe78 10764
a90ef4bf
JM
10765pdf-gcc: \
10766 configure-gcc
10767 @[ -f ./gcc/Makefile ] || exit 0; \
56a8fe78
DD
10768 r=`${PWD_COMMAND}`; export r; \
10769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10770 $(HOST_EXPORTS) \
a90ef4bf 10771 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
56a8fe78
DD
10772 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10773 done; \
a90ef4bf
JM
10774 echo "Doing pdf in gcc" ; \
10775 (cd $(HOST_SUBDIR)/gcc && \
56a8fe78
DD
10776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10778 "RANLIB=$${RANLIB}" \
0c24b341 10779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
10780 pdf) \
10781 || exit 1
10782
a90ef4bf 10783@endif gcc
56a8fe78 10784
a90ef4bf
JM
10785.PHONY: maybe-html-gcc html-gcc
10786maybe-html-gcc:
10787@if gcc
10788maybe-html-gcc: html-gcc
6d389afc 10789
a90ef4bf
JM
10790html-gcc: \
10791 configure-gcc
10792 @[ -f ./gcc/Makefile ] || exit 0; \
6d389afc
MS
10793 r=`${PWD_COMMAND}`; export r; \
10794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 10795 $(HOST_EXPORTS) \
a90ef4bf 10796 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
6d389afc
MS
10797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10798 done; \
a90ef4bf
JM
10799 echo "Doing html in gcc" ; \
10800 (cd $(HOST_SUBDIR)/gcc && \
6d389afc
MS
10801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10803 "RANLIB=$${RANLIB}" \
0c24b341 10804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10805 html) \
10806 || exit 1
10807
a90ef4bf 10808@endif gcc
6d389afc 10809
a90ef4bf
JM
10810.PHONY: maybe-TAGS-gcc TAGS-gcc
10811maybe-TAGS-gcc:
10812@if gcc
10813maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 10814
a90ef4bf
JM
10815TAGS-gcc: \
10816 configure-gcc
10817 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10818 r=`${PWD_COMMAND}`; export r; \
10819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10820 $(HOST_EXPORTS) \
a90ef4bf 10821 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10823 done; \
a90ef4bf
JM
10824 echo "Doing TAGS in gcc" ; \
10825 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10828 "RANLIB=$${RANLIB}" \
0c24b341 10829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10830 TAGS) \
2a4cbe27
NN
10831 || exit 1
10832
a90ef4bf 10833@endif gcc
2a4cbe27 10834
a90ef4bf
JM
10835.PHONY: maybe-install-info-gcc install-info-gcc
10836maybe-install-info-gcc:
10837@if gcc
10838maybe-install-info-gcc: install-info-gcc
2a4cbe27 10839
a90ef4bf
JM
10840install-info-gcc: \
10841 configure-gcc \
10842 info-gcc
10843 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10844 r=`${PWD_COMMAND}`; export r; \
10845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10846 $(HOST_EXPORTS) \
a90ef4bf 10847 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10849 done; \
a90ef4bf
JM
10850 echo "Doing install-info in gcc" ; \
10851 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10854 "RANLIB=$${RANLIB}" \
0c24b341 10855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10856 install-info) \
2a4cbe27
NN
10857 || exit 1
10858
a90ef4bf 10859@endif gcc
2a4cbe27 10860
a90ef4bf
JM
10861.PHONY: maybe-install-pdf-gcc install-pdf-gcc
10862maybe-install-pdf-gcc:
10863@if gcc
10864maybe-install-pdf-gcc: install-pdf-gcc
a3ca38d2 10865
a90ef4bf
JM
10866install-pdf-gcc: \
10867 configure-gcc \
10868 pdf-gcc
10869 @[ -f ./gcc/Makefile ] || exit 0; \
a3ca38d2
DD
10870 r=`${PWD_COMMAND}`; export r; \
10871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10872 $(HOST_EXPORTS) \
a90ef4bf 10873 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a3ca38d2
DD
10874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10875 done; \
a90ef4bf
JM
10876 echo "Doing install-pdf in gcc" ; \
10877 (cd $(HOST_SUBDIR)/gcc && \
a3ca38d2
DD
10878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10880 "RANLIB=$${RANLIB}" \
0c24b341 10881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10882 install-pdf) \
10883 || exit 1
10884
a90ef4bf 10885@endif gcc
a3ca38d2 10886
a90ef4bf
JM
10887.PHONY: maybe-install-html-gcc install-html-gcc
10888maybe-install-html-gcc:
10889@if gcc
10890maybe-install-html-gcc: install-html-gcc
108a6f8e 10891
a90ef4bf
JM
10892install-html-gcc: \
10893 configure-gcc \
10894 html-gcc
10895 @[ -f ./gcc/Makefile ] || exit 0; \
108a6f8e
CD
10896 r=`${PWD_COMMAND}`; export r; \
10897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10898 $(HOST_EXPORTS) \
a90ef4bf 10899 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
108a6f8e
CD
10900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10901 done; \
a90ef4bf
JM
10902 echo "Doing install-html in gcc" ; \
10903 (cd $(HOST_SUBDIR)/gcc && \
108a6f8e
CD
10904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10906 "RANLIB=$${RANLIB}" \
0c24b341 10907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10908 install-html) \
10909 || exit 1
10910
a90ef4bf 10911@endif gcc
108a6f8e 10912
a90ef4bf
JM
10913.PHONY: maybe-installcheck-gcc installcheck-gcc
10914maybe-installcheck-gcc:
10915@if gcc
10916maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 10917
a90ef4bf
JM
10918installcheck-gcc: \
10919 configure-gcc
10920 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10921 r=`${PWD_COMMAND}`; export r; \
10922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10923 $(HOST_EXPORTS) \
a90ef4bf 10924 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10926 done; \
a90ef4bf
JM
10927 echo "Doing installcheck in gcc" ; \
10928 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10931 "RANLIB=$${RANLIB}" \
0c24b341 10932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10933 installcheck) \
2a4cbe27
NN
10934 || exit 1
10935
a90ef4bf 10936@endif gcc
2a4cbe27 10937
a90ef4bf
JM
10938.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
10939maybe-mostlyclean-gcc:
10940@if gcc
10941maybe-mostlyclean-gcc: mostlyclean-gcc
2a4cbe27 10942
a90ef4bf
JM
10943mostlyclean-gcc:
10944 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10945 r=`${PWD_COMMAND}`; export r; \
10946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10947 $(HOST_EXPORTS) \
a90ef4bf 10948 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10950 done; \
a90ef4bf
JM
10951 echo "Doing mostlyclean in gcc" ; \
10952 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10955 "RANLIB=$${RANLIB}" \
0c24b341 10956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10957 mostlyclean) \
2a4cbe27
NN
10958 || exit 1
10959
a90ef4bf 10960@endif gcc
2a4cbe27 10961
a90ef4bf
JM
10962.PHONY: maybe-clean-gcc clean-gcc
10963maybe-clean-gcc:
10964@if gcc
10965maybe-clean-gcc: clean-gcc
2a4cbe27 10966
a90ef4bf
JM
10967clean-gcc:
10968 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10969 r=`${PWD_COMMAND}`; export r; \
10970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10971 $(HOST_EXPORTS) \
a90ef4bf 10972 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10974 done; \
a90ef4bf
JM
10975 echo "Doing clean in gcc" ; \
10976 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10979 "RANLIB=$${RANLIB}" \
0c24b341 10980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10981 clean) \
2a4cbe27
NN
10982 || exit 1
10983
a90ef4bf 10984@endif gcc
2a4cbe27 10985
a90ef4bf
JM
10986.PHONY: maybe-distclean-gcc distclean-gcc
10987maybe-distclean-gcc:
10988@if gcc
10989maybe-distclean-gcc: distclean-gcc
2a4cbe27 10990
a90ef4bf
JM
10991distclean-gcc:
10992 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10993 r=`${PWD_COMMAND}`; export r; \
10994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10995 $(HOST_EXPORTS) \
a90ef4bf 10996 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10998 done; \
a90ef4bf
JM
10999 echo "Doing distclean in gcc" ; \
11000 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11003 "RANLIB=$${RANLIB}" \
0c24b341 11004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11005 distclean) \
2a4cbe27
NN
11006 || exit 1
11007
a90ef4bf 11008@endif gcc
2a4cbe27 11009
a90ef4bf
JM
11010.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
11011maybe-maintainer-clean-gcc:
11012@if gcc
11013maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 11014
a90ef4bf
JM
11015maintainer-clean-gcc:
11016 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11017 r=`${PWD_COMMAND}`; export r; \
11018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11019 $(HOST_EXPORTS) \
a90ef4bf 11020 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11022 done; \
a90ef4bf
JM
11023 echo "Doing maintainer-clean in gcc" ; \
11024 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11027 "RANLIB=$${RANLIB}" \
0c24b341 11028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11029 maintainer-clean) \
2a4cbe27
NN
11030 || exit 1
11031
a90ef4bf 11032@endif gcc
2a4cbe27 11033
2a4cbe27 11034
a7254363 11035
a90ef4bf
JM
11036.PHONY: configure-gmp maybe-configure-gmp
11037maybe-configure-gmp:
4f0ef2d8 11038@if gcc-bootstrap
a90ef4bf 11039configure-gmp: stage_current
4f0ef2d8 11040@endif gcc-bootstrap
a90ef4bf
JM
11041@if gmp
11042maybe-configure-gmp: configure-gmp
11043configure-gmp:
c52c6897 11044 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11046 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11047 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
1f53ca9a 11048 $(HOST_EXPORTS) \
a90ef4bf
JM
11049 echo Configuring in $(HOST_SUBDIR)/gmp; \
11050 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
4fa63067 11051 case $(srcdir) in \
b00612cc 11052 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11053 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
b00612cc 11054 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11055 esac; \
1b6c0831
L
11056 module_srcdir=gmp; \
11057 $(SHELL) \
11058 $$s/$$module_srcdir/configure \
11059 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11060 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11061 --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \
4fa63067 11062 || exit 1
a90ef4bf 11063@endif gmp
a7254363 11064
d545f33b
PB
11065
11066
a90ef4bf
JM
11067.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
11068maybe-configure-stage1-gmp:
11069@if gmp-bootstrap
11070maybe-configure-stage1-gmp: configure-stage1-gmp
11071configure-stage1-gmp:
11072 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11073 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067
NN
11074 @r=`${PWD_COMMAND}`; export r; \
11075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11076 TFLAGS="$(STAGE1_TFLAGS)"; \
11077 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11078 $(HOST_EXPORTS) \
11079 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11080 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11081 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
11082 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp ; \
11083 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
11084 cd $(HOST_SUBDIR)/gmp || exit 1; \
11085 case $(srcdir) in \
11086 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11087 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11088 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11089 esac; \
1b6c0831
L
11090 module_srcdir=gmp; \
11091 $(SHELL) $$s/$$module_srcdir/configure \
11092 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11093 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11094 --target=none-${host_vendor}-${host_os} \
11095 \
a90ef4bf 11096 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 11097 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11098@endif gmp-bootstrap
4fa63067 11099
a90ef4bf
JM
11100.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
11101maybe-configure-stage2-gmp:
11102@if gmp-bootstrap
11103maybe-configure-stage2-gmp: configure-stage2-gmp
11104configure-stage2-gmp:
11105 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11106 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11107 @r=`${PWD_COMMAND}`; export r; \
11108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11109 TFLAGS="$(STAGE2_TFLAGS)"; \
11110 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11111 $(HOST_EXPORTS) \
11112 $(POSTSTAGE1_HOST_EXPORTS) \
11113 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11114 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11115 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
11116 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp ; \
11117 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
11118 cd $(HOST_SUBDIR)/gmp || exit 1; \
11119 case $(srcdir) in \
11120 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11121 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11122 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11123 esac; \
1b6c0831
L
11124 module_srcdir=gmp; \
11125 $(SHELL) $$s/$$module_srcdir/configure \
11126 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11127 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11128 --target=none-${host_vendor}-${host_os} \
11129 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11130 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 11131 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11132@endif gmp-bootstrap
4fa63067 11133
a90ef4bf
JM
11134.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
11135maybe-configure-stage3-gmp:
11136@if gmp-bootstrap
11137maybe-configure-stage3-gmp: configure-stage3-gmp
11138configure-stage3-gmp:
11139 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11140 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067 11141 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11143 TFLAGS="$(STAGE3_TFLAGS)"; \
11144 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
378fce5b 11145 $(HOST_EXPORTS) \
a90ef4bf
JM
11146 $(POSTSTAGE1_HOST_EXPORTS) \
11147 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11148 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11149 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
11150 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp ; \
11151 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
11152 cd $(HOST_SUBDIR)/gmp || exit 1; \
11153 case $(srcdir) in \
11154 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11155 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11156 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11157 esac; \
1b6c0831
L
11158 module_srcdir=gmp; \
11159 $(SHELL) $$s/$$module_srcdir/configure \
11160 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11161 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11162 --target=none-${host_vendor}-${host_os} \
11163 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11164 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 11165 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11166@endif gmp-bootstrap
2a4cbe27 11167
a90ef4bf
JM
11168.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
11169maybe-configure-stage4-gmp:
11170@if gmp-bootstrap
11171maybe-configure-stage4-gmp: configure-stage4-gmp
11172configure-stage4-gmp:
11173 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11174 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11175 @r=`${PWD_COMMAND}`; export r; \
11176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11177 TFLAGS="$(STAGE4_TFLAGS)"; \
11178 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11179 $(HOST_EXPORTS) \
11180 $(POSTSTAGE1_HOST_EXPORTS) \
11181 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11182 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11183 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
11184 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp ; \
11185 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
11186 cd $(HOST_SUBDIR)/gmp || exit 1; \
11187 case $(srcdir) in \
11188 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11189 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11190 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11191 esac; \
1b6c0831
L
11192 module_srcdir=gmp; \
11193 $(SHELL) $$s/$$module_srcdir/configure \
11194 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11195 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11196 --target=none-${host_vendor}-${host_os} \
11197 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11198 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 11199 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11200@endif gmp-bootstrap
2a4cbe27 11201
a90ef4bf
JM
11202.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
11203maybe-configure-stageprofile-gmp:
11204@if gmp-bootstrap
11205maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
11206configure-stageprofile-gmp:
11207 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11208 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11209 @r=`${PWD_COMMAND}`; export r; \
11210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11211 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11212 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11213 $(HOST_EXPORTS) \
11214 $(POSTSTAGE1_HOST_EXPORTS) \
11215 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11216 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11217 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
11218 echo Configuring stage profile in $(HOST_SUBDIR)/gmp ; \
11219 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
11220 cd $(HOST_SUBDIR)/gmp || exit 1; \
11221 case $(srcdir) in \
11222 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11223 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11224 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11225 esac; \
1b6c0831
L
11226 module_srcdir=gmp; \
11227 $(SHELL) $$s/$$module_srcdir/configure \
11228 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11229 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11230 --target=none-${host_vendor}-${host_os} \
11231 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11232 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 11233 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11234@endif gmp-bootstrap
9b980aa1 11235
a90ef4bf
JM
11236.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
11237maybe-configure-stagefeedback-gmp:
11238@if gmp-bootstrap
11239maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
11240configure-stagefeedback-gmp:
11241 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11242 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
9b980aa1
RW
11243 @r=`${PWD_COMMAND}`; export r; \
11244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11245 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11246 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
9b980aa1 11247 $(HOST_EXPORTS) \
a90ef4bf
JM
11248 $(POSTSTAGE1_HOST_EXPORTS) \
11249 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11250 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11251 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
11252 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp ; \
11253 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp ; \
11254 cd $(HOST_SUBDIR)/gmp || exit 1; \
11255 case $(srcdir) in \
11256 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11257 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11258 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11259 esac; \
1b6c0831
L
11260 module_srcdir=gmp; \
11261 $(SHELL) $$s/$$module_srcdir/configure \
11262 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11263 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11264 --target=none-${host_vendor}-${host_os} \
11265 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11266 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 11267 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11268@endif gmp-bootstrap
9b980aa1 11269
9b980aa1 11270
2a4cbe27 11271
4fa63067 11272
a90ef4bf
JM
11273
11274.PHONY: all-gmp maybe-all-gmp
11275maybe-all-gmp:
11276@if gcc-bootstrap
11277all-gmp: stage_current
11278@endif gcc-bootstrap
11279@if gmp
11280TARGET-gmp=all
11281maybe-all-gmp: all-gmp
11282all-gmp: configure-gmp
11283 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11285 $(HOST_EXPORTS) \
11286 (cd $(HOST_SUBDIR)/gmp && \
b3676d82 11287 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
11288 $(TARGET-gmp))
11289@endif gmp
2a4cbe27
NN
11290
11291
2a4cbe27 11292
a90ef4bf
JM
11293.PHONY: all-stage1-gmp maybe-all-stage1-gmp
11294.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
11295maybe-all-stage1-gmp:
11296maybe-clean-stage1-gmp:
11297@if gmp-bootstrap
11298maybe-all-stage1-gmp: all-stage1-gmp
11299all-stage1: all-stage1-gmp
11300TARGET-stage1-gmp = $(TARGET-gmp)
11301all-stage1-gmp: configure-stage1-gmp
11302 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11303 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11305 TFLAGS="$(STAGE1_TFLAGS)"; \
11306 $(HOST_EXPORTS) \
11307 cd $(HOST_SUBDIR)/gmp && \
11308 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11309 CFLAGS="$(STAGE1_CFLAGS)" \
11310 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11311 LIBCFLAGS="$(LIBCFLAGS)" \
11312 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11313 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11314 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
11315 $(EXTRA_HOST_FLAGS) \
11316 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
11317 TFLAGS="$(STAGE1_TFLAGS)" \
11318 $(TARGET-stage1-gmp)
2a4cbe27 11319
a90ef4bf
JM
11320maybe-clean-stage1-gmp: clean-stage1-gmp
11321clean-stage1: clean-stage1-gmp
11322clean-stage1-gmp:
11323 @if [ $(current_stage) = stage1 ]; then \
11324 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11325 else \
11326 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
11327 $(MAKE) stage1-start; \
11328 fi; \
11329 cd $(HOST_SUBDIR)/gmp && \
11330 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 11331 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11332@endif gmp-bootstrap
2a4cbe27 11333
56a8fe78 11334
a90ef4bf
JM
11335.PHONY: all-stage2-gmp maybe-all-stage2-gmp
11336.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
11337maybe-all-stage2-gmp:
11338maybe-clean-stage2-gmp:
11339@if gmp-bootstrap
11340maybe-all-stage2-gmp: all-stage2-gmp
11341all-stage2: all-stage2-gmp
11342TARGET-stage2-gmp = $(TARGET-gmp)
11343all-stage2-gmp: configure-stage2-gmp
11344 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11345 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 11346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11347 TFLAGS="$(STAGE2_TFLAGS)"; \
56a8fe78 11348 $(HOST_EXPORTS) \
a90ef4bf
JM
11349 $(POSTSTAGE1_HOST_EXPORTS) \
11350 cd $(HOST_SUBDIR)/gmp && \
11351 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11352 CFLAGS="$(STAGE2_CFLAGS)" \
11353 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11354 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11355 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11356 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11357 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11358 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11359 TFLAGS="$(STAGE2_TFLAGS)" \
11360 $(TARGET-stage2-gmp)
56a8fe78 11361
a90ef4bf
JM
11362maybe-clean-stage2-gmp: clean-stage2-gmp
11363clean-stage2: clean-stage2-gmp
11364clean-stage2-gmp:
11365 @if [ $(current_stage) = stage2 ]; then \
11366 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11367 else \
11368 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
11369 $(MAKE) stage2-start; \
11370 fi; \
11371 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11372 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11373@endif gmp-bootstrap
56a8fe78 11374
6d389afc 11375
a90ef4bf
JM
11376.PHONY: all-stage3-gmp maybe-all-stage3-gmp
11377.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
11378maybe-all-stage3-gmp:
11379maybe-clean-stage3-gmp:
11380@if gmp-bootstrap
11381maybe-all-stage3-gmp: all-stage3-gmp
11382all-stage3: all-stage3-gmp
11383TARGET-stage3-gmp = $(TARGET-gmp)
11384all-stage3-gmp: configure-stage3-gmp
11385 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11386 @r=`${PWD_COMMAND}`; export r; \
6d389afc 11387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11388 TFLAGS="$(STAGE3_TFLAGS)"; \
6d389afc 11389 $(HOST_EXPORTS) \
a90ef4bf
JM
11390 $(POSTSTAGE1_HOST_EXPORTS) \
11391 cd $(HOST_SUBDIR)/gmp && \
11392 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11393 CFLAGS="$(STAGE3_CFLAGS)" \
11394 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11395 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11396 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11397 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11398 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11399 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11400 TFLAGS="$(STAGE3_TFLAGS)" \
11401 $(TARGET-stage3-gmp)
6d389afc 11402
a90ef4bf
JM
11403maybe-clean-stage3-gmp: clean-stage3-gmp
11404clean-stage3: clean-stage3-gmp
11405clean-stage3-gmp:
11406 @if [ $(current_stage) = stage3 ]; then \
11407 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11408 else \
11409 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
11410 $(MAKE) stage3-start; \
11411 fi; \
11412 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11413 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11414@endif gmp-bootstrap
6d389afc 11415
2a4cbe27 11416
a90ef4bf
JM
11417.PHONY: all-stage4-gmp maybe-all-stage4-gmp
11418.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
11419maybe-all-stage4-gmp:
11420maybe-clean-stage4-gmp:
11421@if gmp-bootstrap
11422maybe-all-stage4-gmp: all-stage4-gmp
11423all-stage4: all-stage4-gmp
11424TARGET-stage4-gmp = $(TARGET-gmp)
11425all-stage4-gmp: configure-stage4-gmp
11426 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11427 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11429 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 11430 $(HOST_EXPORTS) \
a90ef4bf
JM
11431 $(POSTSTAGE1_HOST_EXPORTS) \
11432 cd $(HOST_SUBDIR)/gmp && \
11433 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11434 CFLAGS="$(STAGE4_CFLAGS)" \
11435 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11436 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11437 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11438 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11439 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11440 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11441 TFLAGS="$(STAGE4_TFLAGS)" \
11442 $(TARGET-stage4-gmp)
2a4cbe27 11443
a90ef4bf
JM
11444maybe-clean-stage4-gmp: clean-stage4-gmp
11445clean-stage4: clean-stage4-gmp
11446clean-stage4-gmp:
11447 @if [ $(current_stage) = stage4 ]; then \
11448 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11449 else \
11450 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
11451 $(MAKE) stage4-start; \
11452 fi; \
11453 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11454 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11455@endif gmp-bootstrap
2a4cbe27 11456
2a4cbe27 11457
a90ef4bf
JM
11458.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
11459.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
11460maybe-all-stageprofile-gmp:
11461maybe-clean-stageprofile-gmp:
11462@if gmp-bootstrap
11463maybe-all-stageprofile-gmp: all-stageprofile-gmp
11464all-stageprofile: all-stageprofile-gmp
11465TARGET-stageprofile-gmp = $(TARGET-gmp)
11466all-stageprofile-gmp: configure-stageprofile-gmp
11467 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11468 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11470 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 11471 $(HOST_EXPORTS) \
a90ef4bf
JM
11472 $(POSTSTAGE1_HOST_EXPORTS) \
11473 cd $(HOST_SUBDIR)/gmp && \
11474 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11475 CFLAGS="$(STAGEprofile_CFLAGS)" \
11476 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
11477 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
11478 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11479 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11480 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11481 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11482 TFLAGS="$(STAGEprofile_TFLAGS)" \
11483 $(TARGET-stageprofile-gmp)
2a4cbe27 11484
a90ef4bf
JM
11485maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
11486clean-stageprofile: clean-stageprofile-gmp
11487clean-stageprofile-gmp:
11488 @if [ $(current_stage) = stageprofile ]; then \
11489 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11490 else \
11491 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
11492 $(MAKE) stageprofile-start; \
11493 fi; \
11494 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11495 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11496@endif gmp-bootstrap
2a4cbe27 11497
a7254363 11498
a90ef4bf
JM
11499.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
11500.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
11501maybe-all-stagefeedback-gmp:
11502maybe-clean-stagefeedback-gmp:
11503@if gmp-bootstrap
11504maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
11505all-stagefeedback: all-stagefeedback-gmp
11506TARGET-stagefeedback-gmp = $(TARGET-gmp)
11507all-stagefeedback-gmp: configure-stagefeedback-gmp
11508 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 11509 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11511 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11512 $(HOST_EXPORTS) \
11513 $(POSTSTAGE1_HOST_EXPORTS) \
11514 cd $(HOST_SUBDIR)/gmp && \
11515 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11516 CFLAGS="$(STAGEfeedback_CFLAGS)" \
11517 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
11518 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
11519 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11520 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11521 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11522 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11523 TFLAGS="$(STAGEfeedback_TFLAGS)" \
11524 $(TARGET-stagefeedback-gmp)
d545f33b 11525
a90ef4bf
JM
11526maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
11527clean-stagefeedback: clean-stagefeedback-gmp
11528clean-stagefeedback-gmp:
11529 @if [ $(current_stage) = stagefeedback ]; then \
11530 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11531 else \
11532 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
11533 $(MAKE) stagefeedback-start; \
11534 fi; \
11535 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11536 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11537@endif gmp-bootstrap
d545f33b 11538
4fa63067 11539
a7254363 11540
d545f33b
PB
11541
11542
a90ef4bf
JM
11543.PHONY: check-gmp maybe-check-gmp
11544maybe-check-gmp:
11545@if gmp
11546maybe-check-gmp: check-gmp
4fa63067 11547
a90ef4bf 11548check-gmp:
0aed8855 11549 @: $(MAKE); $(unstage)
4fa63067
NN
11550 @r=`${PWD_COMMAND}`; export r; \
11551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 11552 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 11553 (cd $(HOST_SUBDIR)/gmp && \
f91ca6bc 11554 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 11555
a90ef4bf 11556@endif gmp
2a4cbe27 11557
a90ef4bf
JM
11558.PHONY: install-gmp maybe-install-gmp
11559maybe-install-gmp:
11560@if gmp
11561maybe-install-gmp: install-gmp
2a4cbe27 11562
a90ef4bf 11563install-gmp:
2a4cbe27 11564
a90ef4bf 11565@endif gmp
2a4cbe27 11566
a90ef4bf
JM
11567.PHONY: install-strip-gmp maybe-install-strip-gmp
11568maybe-install-strip-gmp:
11569@if gmp
11570maybe-install-strip-gmp: install-strip-gmp
9b980aa1 11571
a90ef4bf 11572install-strip-gmp:
9b980aa1 11573
a90ef4bf 11574@endif gmp
9b980aa1 11575
56a8fe78 11576# Other targets (info, dvi, pdf, etc.)
2a4cbe27 11577
a90ef4bf
JM
11578.PHONY: maybe-info-gmp info-gmp
11579maybe-info-gmp:
11580@if gmp
11581maybe-info-gmp: info-gmp
4fa63067 11582
a90ef4bf
JM
11583info-gmp: \
11584 configure-gmp
11585 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11586 r=`${PWD_COMMAND}`; export r; \
11587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11588 $(HOST_EXPORTS) \
b813574b 11589 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11591 done; \
a90ef4bf
JM
11592 echo "Doing info in gmp" ; \
11593 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11596 "RANLIB=$${RANLIB}" \
0c24b341 11597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11598 info) \
2a4cbe27
NN
11599 || exit 1
11600
a90ef4bf 11601@endif gmp
2a4cbe27 11602
a90ef4bf
JM
11603.PHONY: maybe-dvi-gmp dvi-gmp
11604maybe-dvi-gmp:
11605@if gmp
11606maybe-dvi-gmp: dvi-gmp
2a4cbe27 11607
a90ef4bf
JM
11608dvi-gmp: \
11609 configure-gmp
11610 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11611 r=`${PWD_COMMAND}`; export r; \
11612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11613 $(HOST_EXPORTS) \
b813574b 11614 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11616 done; \
a90ef4bf
JM
11617 echo "Doing dvi in gmp" ; \
11618 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11621 "RANLIB=$${RANLIB}" \
0c24b341 11622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11623 dvi) \
2a4cbe27
NN
11624 || exit 1
11625
a90ef4bf 11626@endif gmp
2a4cbe27 11627
a90ef4bf
JM
11628.PHONY: maybe-pdf-gmp pdf-gmp
11629maybe-pdf-gmp:
11630@if gmp
11631maybe-pdf-gmp: pdf-gmp
56a8fe78 11632
a90ef4bf
JM
11633pdf-gmp: \
11634 configure-gmp
11635 @[ -f ./gmp/Makefile ] || exit 0; \
56a8fe78
DD
11636 r=`${PWD_COMMAND}`; export r; \
11637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11638 $(HOST_EXPORTS) \
11639 for flag in $(EXTRA_HOST_FLAGS) ; do \
11640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11641 done; \
a90ef4bf
JM
11642 echo "Doing pdf in gmp" ; \
11643 (cd $(HOST_SUBDIR)/gmp && \
56a8fe78
DD
11644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11646 "RANLIB=$${RANLIB}" \
0c24b341 11647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11648 pdf) \
11649 || exit 1
11650
a90ef4bf 11651@endif gmp
56a8fe78 11652
a90ef4bf
JM
11653.PHONY: maybe-html-gmp html-gmp
11654maybe-html-gmp:
11655@if gmp
11656maybe-html-gmp: html-gmp
6d389afc 11657
a90ef4bf
JM
11658html-gmp: \
11659 configure-gmp
11660 @[ -f ./gmp/Makefile ] || exit 0; \
6d389afc
MS
11661 r=`${PWD_COMMAND}`; export r; \
11662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
11663 $(HOST_EXPORTS) \
11664 for flag in $(EXTRA_HOST_FLAGS) ; do \
11665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11666 done; \
a90ef4bf
JM
11667 echo "Doing html in gmp" ; \
11668 (cd $(HOST_SUBDIR)/gmp && \
6d389afc
MS
11669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11671 "RANLIB=$${RANLIB}" \
0c24b341 11672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11673 html) \
11674 || exit 1
11675
a90ef4bf 11676@endif gmp
6d389afc 11677
a90ef4bf
JM
11678.PHONY: maybe-TAGS-gmp TAGS-gmp
11679maybe-TAGS-gmp:
11680@if gmp
11681maybe-TAGS-gmp: TAGS-gmp
2a4cbe27 11682
a90ef4bf
JM
11683TAGS-gmp: \
11684 configure-gmp
11685 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11686 r=`${PWD_COMMAND}`; export r; \
11687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11688 $(HOST_EXPORTS) \
b813574b 11689 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11691 done; \
a90ef4bf
JM
11692 echo "Doing TAGS in gmp" ; \
11693 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11696 "RANLIB=$${RANLIB}" \
0c24b341 11697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11698 TAGS) \
2a4cbe27
NN
11699 || exit 1
11700
a90ef4bf 11701@endif gmp
2a4cbe27 11702
a90ef4bf
JM
11703.PHONY: maybe-install-info-gmp install-info-gmp
11704maybe-install-info-gmp:
11705@if gmp
11706maybe-install-info-gmp: install-info-gmp
2a4cbe27 11707
a90ef4bf
JM
11708install-info-gmp: \
11709 configure-gmp \
11710 info-gmp
11711 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11712 r=`${PWD_COMMAND}`; export r; \
11713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11714 $(HOST_EXPORTS) \
b813574b 11715 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11717 done; \
a90ef4bf
JM
11718 echo "Doing install-info in gmp" ; \
11719 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11722 "RANLIB=$${RANLIB}" \
0c24b341 11723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11724 install-info) \
2a4cbe27
NN
11725 || exit 1
11726
a90ef4bf 11727@endif gmp
2a4cbe27 11728
a90ef4bf
JM
11729.PHONY: maybe-install-pdf-gmp install-pdf-gmp
11730maybe-install-pdf-gmp:
11731@if gmp
11732maybe-install-pdf-gmp: install-pdf-gmp
a3ca38d2 11733
a90ef4bf
JM
11734install-pdf-gmp: \
11735 configure-gmp \
11736 pdf-gmp
11737 @[ -f ./gmp/Makefile ] || exit 0; \
a3ca38d2
DD
11738 r=`${PWD_COMMAND}`; export r; \
11739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11740 $(HOST_EXPORTS) \
11741 for flag in $(EXTRA_HOST_FLAGS) ; do \
11742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11743 done; \
a90ef4bf
JM
11744 echo "Doing install-pdf in gmp" ; \
11745 (cd $(HOST_SUBDIR)/gmp && \
a3ca38d2
DD
11746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11748 "RANLIB=$${RANLIB}" \
0c24b341 11749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11750 install-pdf) \
11751 || exit 1
11752
a90ef4bf 11753@endif gmp
a3ca38d2 11754
a90ef4bf
JM
11755.PHONY: maybe-install-html-gmp install-html-gmp
11756maybe-install-html-gmp:
11757@if gmp
11758maybe-install-html-gmp: install-html-gmp
108a6f8e 11759
a90ef4bf
JM
11760install-html-gmp: \
11761 configure-gmp \
11762 html-gmp
11763 @[ -f ./gmp/Makefile ] || exit 0; \
108a6f8e
CD
11764 r=`${PWD_COMMAND}`; export r; \
11765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11766 $(HOST_EXPORTS) \
11767 for flag in $(EXTRA_HOST_FLAGS) ; do \
11768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11769 done; \
a90ef4bf
JM
11770 echo "Doing install-html in gmp" ; \
11771 (cd $(HOST_SUBDIR)/gmp && \
108a6f8e
CD
11772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11774 "RANLIB=$${RANLIB}" \
0c24b341 11775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
11776 install-html) \
11777 || exit 1
11778
a90ef4bf 11779@endif gmp
108a6f8e 11780
a90ef4bf
JM
11781.PHONY: maybe-installcheck-gmp installcheck-gmp
11782maybe-installcheck-gmp:
11783@if gmp
11784maybe-installcheck-gmp: installcheck-gmp
2a4cbe27 11785
a90ef4bf
JM
11786installcheck-gmp: \
11787 configure-gmp
11788 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11789 r=`${PWD_COMMAND}`; export r; \
11790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11791 $(HOST_EXPORTS) \
b813574b 11792 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11794 done; \
a90ef4bf
JM
11795 echo "Doing installcheck in gmp" ; \
11796 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11799 "RANLIB=$${RANLIB}" \
0c24b341 11800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11801 installcheck) \
2a4cbe27
NN
11802 || exit 1
11803
a90ef4bf 11804@endif gmp
2a4cbe27 11805
a90ef4bf
JM
11806.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
11807maybe-mostlyclean-gmp:
11808@if gmp
11809maybe-mostlyclean-gmp: mostlyclean-gmp
2a4cbe27 11810
a90ef4bf
JM
11811mostlyclean-gmp:
11812 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11813 r=`${PWD_COMMAND}`; export r; \
11814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11815 $(HOST_EXPORTS) \
b813574b 11816 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11818 done; \
a90ef4bf
JM
11819 echo "Doing mostlyclean in gmp" ; \
11820 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11823 "RANLIB=$${RANLIB}" \
0c24b341 11824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11825 mostlyclean) \
2a4cbe27
NN
11826 || exit 1
11827
a90ef4bf 11828@endif gmp
2a4cbe27 11829
a90ef4bf
JM
11830.PHONY: maybe-clean-gmp clean-gmp
11831maybe-clean-gmp:
11832@if gmp
11833maybe-clean-gmp: clean-gmp
2a4cbe27 11834
a90ef4bf
JM
11835clean-gmp:
11836 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11837 r=`${PWD_COMMAND}`; export r; \
11838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11839 $(HOST_EXPORTS) \
b813574b 11840 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11842 done; \
a90ef4bf
JM
11843 echo "Doing clean in gmp" ; \
11844 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11847 "RANLIB=$${RANLIB}" \
0c24b341 11848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11849 clean) \
2a4cbe27
NN
11850 || exit 1
11851
a90ef4bf 11852@endif gmp
2a4cbe27 11853
a90ef4bf
JM
11854.PHONY: maybe-distclean-gmp distclean-gmp
11855maybe-distclean-gmp:
11856@if gmp
11857maybe-distclean-gmp: distclean-gmp
2a4cbe27 11858
a90ef4bf
JM
11859distclean-gmp:
11860 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11861 r=`${PWD_COMMAND}`; export r; \
11862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11863 $(HOST_EXPORTS) \
b813574b 11864 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11866 done; \
a90ef4bf
JM
11867 echo "Doing distclean in gmp" ; \
11868 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11871 "RANLIB=$${RANLIB}" \
0c24b341 11872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11873 distclean) \
2a4cbe27
NN
11874 || exit 1
11875
a90ef4bf 11876@endif gmp
2a4cbe27 11877
a90ef4bf
JM
11878.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
11879maybe-maintainer-clean-gmp:
11880@if gmp
11881maybe-maintainer-clean-gmp: maintainer-clean-gmp
2a4cbe27 11882
a90ef4bf
JM
11883maintainer-clean-gmp:
11884 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11885 r=`${PWD_COMMAND}`; export r; \
11886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11887 $(HOST_EXPORTS) \
b813574b 11888 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11890 done; \
a90ef4bf
JM
11891 echo "Doing maintainer-clean in gmp" ; \
11892 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11895 "RANLIB=$${RANLIB}" \
0c24b341 11896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11897 maintainer-clean) \
2a4cbe27
NN
11898 || exit 1
11899
a90ef4bf 11900@endif gmp
2a4cbe27 11901
2a4cbe27 11902
a7254363 11903
a90ef4bf
JM
11904.PHONY: configure-mpfr maybe-configure-mpfr
11905maybe-configure-mpfr:
4f0ef2d8 11906@if gcc-bootstrap
a90ef4bf 11907configure-mpfr: stage_current
4f0ef2d8 11908@endif gcc-bootstrap
a90ef4bf
JM
11909@if mpfr
11910maybe-configure-mpfr: configure-mpfr
11911configure-mpfr:
11912 @r=`${PWD_COMMAND}`; export r; \
11913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11914 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
11915 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
1f53ca9a 11916 $(HOST_EXPORTS) \
a90ef4bf
JM
11917 echo Configuring in $(HOST_SUBDIR)/mpfr; \
11918 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
4fa63067 11919 case $(srcdir) in \
b00612cc 11920 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11921 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
b00612cc 11922 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11923 esac; \
1b6c0831
L
11924 module_srcdir=mpfr; \
11925 $(SHELL) \
11926 $$s/$$module_srcdir/configure \
11927 --srcdir=$${topdir}/$$module_srcdir \
4b900473 11928 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11929 --target=${target_alias} --disable-shared @extra_mpfr_configure_flags@ \
2a4cbe27 11930 || exit 1
a90ef4bf 11931@endif mpfr
d545f33b
PB
11932
11933
2a4cbe27 11934
a90ef4bf
JM
11935.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
11936maybe-configure-stage1-mpfr:
11937@if mpfr-bootstrap
11938maybe-configure-stage1-mpfr: configure-stage1-mpfr
11939configure-stage1-mpfr:
11940 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11941 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 11942 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11944 TFLAGS="$(STAGE1_TFLAGS)"; \
11945 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11946 $(HOST_EXPORTS) \
a90ef4bf
JM
11947 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11948 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11949 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
11950 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr ; \
11951 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11952 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11953 case $(srcdir) in \
11954 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11955 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11956 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11957 esac; \
1b6c0831
L
11958 module_srcdir=mpfr; \
11959 $(SHELL) $$s/$$module_srcdir/configure \
11960 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11961 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
11962 --target=${target_alias} \
11963 \
a90ef4bf
JM
11964 $(STAGE1_CONFIGURE_FLAGS) \
11965 --disable-shared @extra_mpfr_configure_flags@
11966@endif mpfr-bootstrap
2a4cbe27 11967
a90ef4bf
JM
11968.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
11969maybe-configure-stage2-mpfr:
11970@if mpfr-bootstrap
11971maybe-configure-stage2-mpfr: configure-stage2-mpfr
11972configure-stage2-mpfr:
11973 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11974 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 11975 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11977 TFLAGS="$(STAGE2_TFLAGS)"; \
11978 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11979 $(HOST_EXPORTS) \
a90ef4bf
JM
11980 $(POSTSTAGE1_HOST_EXPORTS) \
11981 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11982 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11983 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
11984 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr ; \
11985 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
11986 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11987 case $(srcdir) in \
11988 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11989 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11990 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11991 esac; \
1b6c0831
L
11992 module_srcdir=mpfr; \
11993 $(SHELL) $$s/$$module_srcdir/configure \
11994 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11995 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
11996 --target=${target_alias} \
11997 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
11998 $(STAGE2_CONFIGURE_FLAGS) \
11999 --disable-shared @extra_mpfr_configure_flags@
12000@endif mpfr-bootstrap
9b980aa1 12001
a90ef4bf
JM
12002.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
12003maybe-configure-stage3-mpfr:
12004@if mpfr-bootstrap
12005maybe-configure-stage3-mpfr: configure-stage3-mpfr
12006configure-stage3-mpfr:
12007 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12008 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
9b980aa1
RW
12009 @r=`${PWD_COMMAND}`; export r; \
12010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12011 TFLAGS="$(STAGE3_TFLAGS)"; \
12012 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
9b980aa1 12013 $(HOST_EXPORTS) \
a90ef4bf
JM
12014 $(POSTSTAGE1_HOST_EXPORTS) \
12015 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12016 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12017 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
12018 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr ; \
12019 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
12020 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12021 case $(srcdir) in \
12022 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12023 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12024 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12025 esac; \
1b6c0831
L
12026 module_srcdir=mpfr; \
12027 $(SHELL) $$s/$$module_srcdir/configure \
12028 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12029 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12030 --target=${target_alias} \
12031 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12032 $(STAGE3_CONFIGURE_FLAGS) \
12033 --disable-shared @extra_mpfr_configure_flags@
12034@endif mpfr-bootstrap
2a4cbe27 12035
a90ef4bf
JM
12036.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
12037maybe-configure-stage4-mpfr:
12038@if mpfr-bootstrap
12039maybe-configure-stage4-mpfr: configure-stage4-mpfr
12040configure-stage4-mpfr:
12041 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12042 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12043 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12045 TFLAGS="$(STAGE4_TFLAGS)"; \
12046 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12047 $(HOST_EXPORTS) \
a90ef4bf
JM
12048 $(POSTSTAGE1_HOST_EXPORTS) \
12049 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12050 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12051 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
12052 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr ; \
12053 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
12054 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12055 case $(srcdir) in \
12056 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12057 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12058 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12059 esac; \
1b6c0831
L
12060 module_srcdir=mpfr; \
12061 $(SHELL) $$s/$$module_srcdir/configure \
12062 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12063 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12064 --target=${target_alias} \
12065 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12066 $(STAGE4_CONFIGURE_FLAGS) \
12067 --disable-shared @extra_mpfr_configure_flags@
12068@endif mpfr-bootstrap
2a4cbe27 12069
a90ef4bf
JM
12070.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
12071maybe-configure-stageprofile-mpfr:
12072@if mpfr-bootstrap
12073maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
12074configure-stageprofile-mpfr:
12075 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12076 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12077 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12079 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12080 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12081 $(HOST_EXPORTS) \
a90ef4bf
JM
12082 $(POSTSTAGE1_HOST_EXPORTS) \
12083 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12084 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12085 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
12086 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr ; \
12087 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
12088 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12089 case $(srcdir) in \
12090 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12091 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12092 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12093 esac; \
1b6c0831
L
12094 module_srcdir=mpfr; \
12095 $(SHELL) $$s/$$module_srcdir/configure \
12096 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12097 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12098 --target=${target_alias} \
12099 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12100 $(STAGEprofile_CONFIGURE_FLAGS) \
12101 --disable-shared @extra_mpfr_configure_flags@
12102@endif mpfr-bootstrap
56a8fe78 12103
a90ef4bf
JM
12104.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
12105maybe-configure-stagefeedback-mpfr:
12106@if mpfr-bootstrap
12107maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
12108configure-stagefeedback-mpfr:
12109 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12110 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12111 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 12112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12113 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12114 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
56a8fe78 12115 $(HOST_EXPORTS) \
a90ef4bf
JM
12116 $(POSTSTAGE1_HOST_EXPORTS) \
12117 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12118 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12119 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
12120 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr ; \
12121 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr ; \
12122 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12123 case $(srcdir) in \
12124 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12125 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12126 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12127 esac; \
1b6c0831
L
12128 module_srcdir=mpfr; \
12129 $(SHELL) $$s/$$module_srcdir/configure \
12130 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12131 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12132 --target=${target_alias} \
12133 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12134 $(STAGEfeedback_CONFIGURE_FLAGS) \
12135 --disable-shared @extra_mpfr_configure_flags@
12136@endif mpfr-bootstrap
56a8fe78 12137
6d389afc 12138
6d389afc 12139
6d389afc 12140
2a4cbe27 12141
a90ef4bf
JM
12142.PHONY: all-mpfr maybe-all-mpfr
12143maybe-all-mpfr:
12144@if gcc-bootstrap
12145all-mpfr: stage_current
12146@endif gcc-bootstrap
12147@if mpfr
12148TARGET-mpfr=all
12149maybe-all-mpfr: all-mpfr
12150all-mpfr: configure-mpfr
12151 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12153 $(HOST_EXPORTS) \
12154 (cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12155 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
12156 $(TARGET-mpfr))
12157@endif mpfr
2a4cbe27
NN
12158
12159
2a4cbe27 12160
a90ef4bf
JM
12161.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
12162.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
12163maybe-all-stage1-mpfr:
12164maybe-clean-stage1-mpfr:
12165@if mpfr-bootstrap
12166maybe-all-stage1-mpfr: all-stage1-mpfr
12167all-stage1: all-stage1-mpfr
12168TARGET-stage1-mpfr = $(TARGET-mpfr)
12169all-stage1-mpfr: configure-stage1-mpfr
12170 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12171 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12173 TFLAGS="$(STAGE1_TFLAGS)"; \
12174 $(HOST_EXPORTS) \
12175 cd $(HOST_SUBDIR)/mpfr && \
12176 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12177 CFLAGS="$(STAGE1_CFLAGS)" \
12178 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12179 LIBCFLAGS="$(LIBCFLAGS)" \
12180 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12181 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12182 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
12183 $(EXTRA_HOST_FLAGS) \
12184 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
12185 TFLAGS="$(STAGE1_TFLAGS)" \
12186 $(TARGET-stage1-mpfr)
2a4cbe27 12187
a90ef4bf
JM
12188maybe-clean-stage1-mpfr: clean-stage1-mpfr
12189clean-stage1: clean-stage1-mpfr
12190clean-stage1-mpfr:
12191 @if [ $(current_stage) = stage1 ]; then \
12192 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12193 else \
12194 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
12195 $(MAKE) stage1-start; \
12196 fi; \
12197 cd $(HOST_SUBDIR)/mpfr && \
12198 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 12199 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12200@endif mpfr-bootstrap
2a4cbe27 12201
a3ca38d2 12202
a90ef4bf
JM
12203.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
12204.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
12205maybe-all-stage2-mpfr:
12206maybe-clean-stage2-mpfr:
12207@if mpfr-bootstrap
12208maybe-all-stage2-mpfr: all-stage2-mpfr
12209all-stage2: all-stage2-mpfr
12210TARGET-stage2-mpfr = $(TARGET-mpfr)
12211all-stage2-mpfr: configure-stage2-mpfr
12212 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12213 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 12214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12215 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 12216 $(HOST_EXPORTS) \
a90ef4bf
JM
12217 $(POSTSTAGE1_HOST_EXPORTS) \
12218 cd $(HOST_SUBDIR)/mpfr && \
12219 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12220 CFLAGS="$(STAGE2_CFLAGS)" \
12221 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
12222 LIBCFLAGS="$(STAGE2_CFLAGS)" \
12223 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12224 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12225 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12226 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12227 TFLAGS="$(STAGE2_TFLAGS)" \
12228 $(TARGET-stage2-mpfr)
a3ca38d2 12229
a90ef4bf
JM
12230maybe-clean-stage2-mpfr: clean-stage2-mpfr
12231clean-stage2: clean-stage2-mpfr
12232clean-stage2-mpfr:
12233 @if [ $(current_stage) = stage2 ]; then \
12234 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12235 else \
12236 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
12237 $(MAKE) stage2-start; \
12238 fi; \
12239 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12240 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12241@endif mpfr-bootstrap
a3ca38d2 12242
108a6f8e 12243
a90ef4bf
JM
12244.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
12245.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
12246maybe-all-stage3-mpfr:
12247maybe-clean-stage3-mpfr:
12248@if mpfr-bootstrap
12249maybe-all-stage3-mpfr: all-stage3-mpfr
12250all-stage3: all-stage3-mpfr
12251TARGET-stage3-mpfr = $(TARGET-mpfr)
12252all-stage3-mpfr: configure-stage3-mpfr
12253 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12254 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 12255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12256 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 12257 $(HOST_EXPORTS) \
a90ef4bf
JM
12258 $(POSTSTAGE1_HOST_EXPORTS) \
12259 cd $(HOST_SUBDIR)/mpfr && \
12260 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12261 CFLAGS="$(STAGE3_CFLAGS)" \
12262 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
12263 LIBCFLAGS="$(STAGE3_CFLAGS)" \
12264 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12265 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12266 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12267 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12268 TFLAGS="$(STAGE3_TFLAGS)" \
12269 $(TARGET-stage3-mpfr)
108a6f8e 12270
a90ef4bf
JM
12271maybe-clean-stage3-mpfr: clean-stage3-mpfr
12272clean-stage3: clean-stage3-mpfr
12273clean-stage3-mpfr:
12274 @if [ $(current_stage) = stage3 ]; then \
12275 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12276 else \
12277 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
12278 $(MAKE) stage3-start; \
12279 fi; \
12280 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12281 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12282@endif mpfr-bootstrap
108a6f8e 12283
2a4cbe27 12284
a90ef4bf
JM
12285.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
12286.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
12287maybe-all-stage4-mpfr:
12288maybe-clean-stage4-mpfr:
12289@if mpfr-bootstrap
12290maybe-all-stage4-mpfr: all-stage4-mpfr
12291all-stage4: all-stage4-mpfr
12292TARGET-stage4-mpfr = $(TARGET-mpfr)
12293all-stage4-mpfr: configure-stage4-mpfr
12294 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12295 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12297 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 12298 $(HOST_EXPORTS) \
a90ef4bf
JM
12299 $(POSTSTAGE1_HOST_EXPORTS) \
12300 cd $(HOST_SUBDIR)/mpfr && \
12301 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12302 CFLAGS="$(STAGE4_CFLAGS)" \
12303 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
12304 LIBCFLAGS="$(STAGE4_CFLAGS)" \
12305 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12306 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12307 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12308 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12309 TFLAGS="$(STAGE4_TFLAGS)" \
12310 $(TARGET-stage4-mpfr)
2a4cbe27 12311
a90ef4bf
JM
12312maybe-clean-stage4-mpfr: clean-stage4-mpfr
12313clean-stage4: clean-stage4-mpfr
12314clean-stage4-mpfr:
12315 @if [ $(current_stage) = stage4 ]; then \
12316 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12317 else \
12318 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
12319 $(MAKE) stage4-start; \
12320 fi; \
12321 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12322 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12323@endif mpfr-bootstrap
2a4cbe27 12324
2a4cbe27 12325
a90ef4bf
JM
12326.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
12327.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
12328maybe-all-stageprofile-mpfr:
12329maybe-clean-stageprofile-mpfr:
12330@if mpfr-bootstrap
12331maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
12332all-stageprofile: all-stageprofile-mpfr
12333TARGET-stageprofile-mpfr = $(TARGET-mpfr)
12334all-stageprofile-mpfr: configure-stageprofile-mpfr
12335 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12336 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12338 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 12339 $(HOST_EXPORTS) \
a90ef4bf
JM
12340 $(POSTSTAGE1_HOST_EXPORTS) \
12341 cd $(HOST_SUBDIR)/mpfr && \
12342 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12343 CFLAGS="$(STAGEprofile_CFLAGS)" \
12344 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12345 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12346 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12347 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12348 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12349 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12350 TFLAGS="$(STAGEprofile_TFLAGS)" \
12351 $(TARGET-stageprofile-mpfr)
2a4cbe27 12352
a90ef4bf
JM
12353maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
12354clean-stageprofile: clean-stageprofile-mpfr
12355clean-stageprofile-mpfr:
12356 @if [ $(current_stage) = stageprofile ]; then \
12357 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12358 else \
12359 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
12360 $(MAKE) stageprofile-start; \
12361 fi; \
12362 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12363 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12364@endif mpfr-bootstrap
2a4cbe27 12365
a7254363 12366
a90ef4bf
JM
12367.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
12368.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
12369maybe-all-stagefeedback-mpfr:
12370maybe-clean-stagefeedback-mpfr:
12371@if mpfr-bootstrap
12372maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
12373all-stagefeedback: all-stagefeedback-mpfr
12374TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
12375all-stagefeedback-mpfr: configure-stagefeedback-mpfr
12376 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 12377 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12379 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12380 $(HOST_EXPORTS) \
12381 $(POSTSTAGE1_HOST_EXPORTS) \
12382 cd $(HOST_SUBDIR)/mpfr && \
12383 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12384 CFLAGS="$(STAGEfeedback_CFLAGS)" \
12385 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12386 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12387 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12388 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12389 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12390 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12391 TFLAGS="$(STAGEfeedback_TFLAGS)" \
12392 $(TARGET-stagefeedback-mpfr)
d545f33b 12393
a90ef4bf
JM
12394maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
12395clean-stagefeedback: clean-stagefeedback-mpfr
12396clean-stagefeedback-mpfr:
12397 @if [ $(current_stage) = stagefeedback ]; then \
12398 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12399 else \
12400 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
12401 $(MAKE) stagefeedback-start; \
12402 fi; \
12403 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12404 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12405@endif mpfr-bootstrap
d545f33b 12406
2a4cbe27 12407
a7254363 12408
d545f33b
PB
12409
12410
a90ef4bf
JM
12411.PHONY: check-mpfr maybe-check-mpfr
12412maybe-check-mpfr:
12413@if mpfr
12414maybe-check-mpfr: check-mpfr
2a4cbe27 12415
a90ef4bf 12416check-mpfr:
0aed8855 12417 @: $(MAKE); $(unstage)
4fa63067 12418 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 12420 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 12421 (cd $(HOST_SUBDIR)/mpfr && \
f91ca6bc 12422 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 12423
a90ef4bf 12424@endif mpfr
2a4cbe27 12425
a90ef4bf
JM
12426.PHONY: install-mpfr maybe-install-mpfr
12427maybe-install-mpfr:
12428@if mpfr
12429maybe-install-mpfr: install-mpfr
2a4cbe27 12430
a90ef4bf 12431install-mpfr:
4fa63067 12432
a90ef4bf 12433@endif mpfr
4fa63067 12434
a90ef4bf
JM
12435.PHONY: install-strip-mpfr maybe-install-strip-mpfr
12436maybe-install-strip-mpfr:
12437@if mpfr
12438maybe-install-strip-mpfr: install-strip-mpfr
9b980aa1 12439
a90ef4bf 12440install-strip-mpfr:
9b980aa1 12441
a90ef4bf 12442@endif mpfr
9b980aa1 12443
56a8fe78 12444# Other targets (info, dvi, pdf, etc.)
4fa63067 12445
a90ef4bf
JM
12446.PHONY: maybe-info-mpfr info-mpfr
12447maybe-info-mpfr:
12448@if mpfr
12449maybe-info-mpfr: info-mpfr
4fa63067 12450
a90ef4bf
JM
12451info-mpfr: \
12452 configure-mpfr
12453 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12454 r=`${PWD_COMMAND}`; export r; \
12455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12456 $(HOST_EXPORTS) \
b813574b 12457 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12459 done; \
a90ef4bf
JM
12460 echo "Doing info in mpfr" ; \
12461 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12464 "RANLIB=$${RANLIB}" \
0c24b341 12465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12466 info) \
2a4cbe27
NN
12467 || exit 1
12468
a90ef4bf 12469@endif mpfr
2a4cbe27 12470
a90ef4bf
JM
12471.PHONY: maybe-dvi-mpfr dvi-mpfr
12472maybe-dvi-mpfr:
12473@if mpfr
12474maybe-dvi-mpfr: dvi-mpfr
2a4cbe27 12475
a90ef4bf
JM
12476dvi-mpfr: \
12477 configure-mpfr
12478 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12479 r=`${PWD_COMMAND}`; export r; \
12480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12481 $(HOST_EXPORTS) \
b813574b 12482 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12484 done; \
a90ef4bf
JM
12485 echo "Doing dvi in mpfr" ; \
12486 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12489 "RANLIB=$${RANLIB}" \
0c24b341 12490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12491 dvi) \
2a4cbe27
NN
12492 || exit 1
12493
a90ef4bf 12494@endif mpfr
2a4cbe27 12495
a90ef4bf
JM
12496.PHONY: maybe-pdf-mpfr pdf-mpfr
12497maybe-pdf-mpfr:
12498@if mpfr
12499maybe-pdf-mpfr: pdf-mpfr
56a8fe78 12500
a90ef4bf
JM
12501pdf-mpfr: \
12502 configure-mpfr
12503 @[ -f ./mpfr/Makefile ] || exit 0; \
56a8fe78
DD
12504 r=`${PWD_COMMAND}`; export r; \
12505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12506 $(HOST_EXPORTS) \
12507 for flag in $(EXTRA_HOST_FLAGS) ; do \
12508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12509 done; \
a90ef4bf
JM
12510 echo "Doing pdf in mpfr" ; \
12511 (cd $(HOST_SUBDIR)/mpfr && \
56a8fe78
DD
12512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12514 "RANLIB=$${RANLIB}" \
0c24b341 12515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
12516 pdf) \
12517 || exit 1
12518
a90ef4bf 12519@endif mpfr
56a8fe78 12520
a90ef4bf
JM
12521.PHONY: maybe-html-mpfr html-mpfr
12522maybe-html-mpfr:
12523@if mpfr
12524maybe-html-mpfr: html-mpfr
6d389afc 12525
a90ef4bf
JM
12526html-mpfr: \
12527 configure-mpfr
12528 @[ -f ./mpfr/Makefile ] || exit 0; \
6d389afc
MS
12529 r=`${PWD_COMMAND}`; export r; \
12530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
12531 $(HOST_EXPORTS) \
12532 for flag in $(EXTRA_HOST_FLAGS) ; do \
12533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12534 done; \
a90ef4bf
JM
12535 echo "Doing html in mpfr" ; \
12536 (cd $(HOST_SUBDIR)/mpfr && \
6d389afc
MS
12537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12539 "RANLIB=$${RANLIB}" \
0c24b341 12540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
12541 html) \
12542 || exit 1
12543
a90ef4bf 12544@endif mpfr
6d389afc 12545
a90ef4bf
JM
12546.PHONY: maybe-TAGS-mpfr TAGS-mpfr
12547maybe-TAGS-mpfr:
12548@if mpfr
12549maybe-TAGS-mpfr: TAGS-mpfr
4fa63067 12550
a90ef4bf
JM
12551TAGS-mpfr: \
12552 configure-mpfr
12553 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12554 r=`${PWD_COMMAND}`; export r; \
12555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12556 $(HOST_EXPORTS) \
b813574b 12557 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12559 done; \
a90ef4bf
JM
12560 echo "Doing TAGS in mpfr" ; \
12561 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12564 "RANLIB=$${RANLIB}" \
0c24b341 12565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12566 TAGS) \
2a4cbe27
NN
12567 || exit 1
12568
a90ef4bf 12569@endif mpfr
2a4cbe27 12570
a90ef4bf
JM
12571.PHONY: maybe-install-info-mpfr install-info-mpfr
12572maybe-install-info-mpfr:
12573@if mpfr
12574maybe-install-info-mpfr: install-info-mpfr
2a4cbe27 12575
a90ef4bf
JM
12576install-info-mpfr: \
12577 configure-mpfr \
12578 info-mpfr
12579 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12580 r=`${PWD_COMMAND}`; export r; \
12581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12582 $(HOST_EXPORTS) \
b813574b 12583 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12585 done; \
a90ef4bf
JM
12586 echo "Doing install-info in mpfr" ; \
12587 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12590 "RANLIB=$${RANLIB}" \
0c24b341 12591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12592 install-info) \
2a4cbe27
NN
12593 || exit 1
12594
a90ef4bf 12595@endif mpfr
2a4cbe27 12596
a90ef4bf
JM
12597.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
12598maybe-install-pdf-mpfr:
12599@if mpfr
12600maybe-install-pdf-mpfr: install-pdf-mpfr
a3ca38d2 12601
a90ef4bf
JM
12602install-pdf-mpfr: \
12603 configure-mpfr \
12604 pdf-mpfr
12605 @[ -f ./mpfr/Makefile ] || exit 0; \
a3ca38d2
DD
12606 r=`${PWD_COMMAND}`; export r; \
12607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12608 $(HOST_EXPORTS) \
12609 for flag in $(EXTRA_HOST_FLAGS) ; do \
12610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12611 done; \
a90ef4bf
JM
12612 echo "Doing install-pdf in mpfr" ; \
12613 (cd $(HOST_SUBDIR)/mpfr && \
a3ca38d2
DD
12614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12616 "RANLIB=$${RANLIB}" \
0c24b341 12617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
12618 install-pdf) \
12619 || exit 1
12620
a90ef4bf 12621@endif mpfr
a3ca38d2 12622
a90ef4bf
JM
12623.PHONY: maybe-install-html-mpfr install-html-mpfr
12624maybe-install-html-mpfr:
12625@if mpfr
12626maybe-install-html-mpfr: install-html-mpfr
108a6f8e 12627
a90ef4bf
JM
12628install-html-mpfr: \
12629 configure-mpfr \
12630 html-mpfr
12631 @[ -f ./mpfr/Makefile ] || exit 0; \
108a6f8e
CD
12632 r=`${PWD_COMMAND}`; export r; \
12633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12634 $(HOST_EXPORTS) \
12635 for flag in $(EXTRA_HOST_FLAGS) ; do \
12636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12637 done; \
a90ef4bf
JM
12638 echo "Doing install-html in mpfr" ; \
12639 (cd $(HOST_SUBDIR)/mpfr && \
108a6f8e
CD
12640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12642 "RANLIB=$${RANLIB}" \
0c24b341 12643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
12644 install-html) \
12645 || exit 1
12646
a90ef4bf 12647@endif mpfr
108a6f8e 12648
a90ef4bf
JM
12649.PHONY: maybe-installcheck-mpfr installcheck-mpfr
12650maybe-installcheck-mpfr:
12651@if mpfr
12652maybe-installcheck-mpfr: installcheck-mpfr
2a4cbe27 12653
a90ef4bf
JM
12654installcheck-mpfr: \
12655 configure-mpfr
12656 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12657 r=`${PWD_COMMAND}`; export r; \
12658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12659 $(HOST_EXPORTS) \
b813574b 12660 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12662 done; \
a90ef4bf
JM
12663 echo "Doing installcheck in mpfr" ; \
12664 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12667 "RANLIB=$${RANLIB}" \
0c24b341 12668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12669 installcheck) \
2a4cbe27
NN
12670 || exit 1
12671
a90ef4bf 12672@endif mpfr
2a4cbe27 12673
a90ef4bf
JM
12674.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
12675maybe-mostlyclean-mpfr:
12676@if mpfr
12677maybe-mostlyclean-mpfr: mostlyclean-mpfr
2a4cbe27 12678
a90ef4bf
JM
12679mostlyclean-mpfr:
12680 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12681 r=`${PWD_COMMAND}`; export r; \
12682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12683 $(HOST_EXPORTS) \
b813574b 12684 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12686 done; \
a90ef4bf
JM
12687 echo "Doing mostlyclean in mpfr" ; \
12688 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12691 "RANLIB=$${RANLIB}" \
0c24b341 12692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12693 mostlyclean) \
2a4cbe27
NN
12694 || exit 1
12695
a90ef4bf 12696@endif mpfr
2a4cbe27 12697
a90ef4bf
JM
12698.PHONY: maybe-clean-mpfr clean-mpfr
12699maybe-clean-mpfr:
12700@if mpfr
12701maybe-clean-mpfr: clean-mpfr
2a4cbe27 12702
a90ef4bf
JM
12703clean-mpfr:
12704 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12705 r=`${PWD_COMMAND}`; export r; \
12706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12707 $(HOST_EXPORTS) \
b813574b 12708 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12710 done; \
a90ef4bf
JM
12711 echo "Doing clean in mpfr" ; \
12712 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12715 "RANLIB=$${RANLIB}" \
0c24b341 12716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12717 clean) \
2a4cbe27
NN
12718 || exit 1
12719
a90ef4bf 12720@endif mpfr
2a4cbe27 12721
a90ef4bf
JM
12722.PHONY: maybe-distclean-mpfr distclean-mpfr
12723maybe-distclean-mpfr:
12724@if mpfr
12725maybe-distclean-mpfr: distclean-mpfr
2a4cbe27 12726
a90ef4bf
JM
12727distclean-mpfr:
12728 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12729 r=`${PWD_COMMAND}`; export r; \
12730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12731 $(HOST_EXPORTS) \
b813574b 12732 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12734 done; \
a90ef4bf
JM
12735 echo "Doing distclean in mpfr" ; \
12736 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12739 "RANLIB=$${RANLIB}" \
0c24b341 12740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12741 distclean) \
2a4cbe27
NN
12742 || exit 1
12743
a90ef4bf 12744@endif mpfr
2a4cbe27 12745
a90ef4bf
JM
12746.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
12747maybe-maintainer-clean-mpfr:
12748@if mpfr
12749maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
2a4cbe27 12750
a90ef4bf
JM
12751maintainer-clean-mpfr:
12752 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12753 r=`${PWD_COMMAND}`; export r; \
12754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12755 $(HOST_EXPORTS) \
b813574b 12756 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12758 done; \
a90ef4bf
JM
12759 echo "Doing maintainer-clean in mpfr" ; \
12760 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12763 "RANLIB=$${RANLIB}" \
0c24b341 12764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12765 maintainer-clean) \
2a4cbe27
NN
12766 || exit 1
12767
a90ef4bf 12768@endif mpfr
2a4cbe27 12769
2a4cbe27 12770
a7254363 12771
a90ef4bf
JM
12772.PHONY: configure-mpc maybe-configure-mpc
12773maybe-configure-mpc:
4f0ef2d8 12774@if gcc-bootstrap
a90ef4bf 12775configure-mpc: stage_current
4f0ef2d8 12776@endif gcc-bootstrap
a90ef4bf
JM
12777@if mpc
12778maybe-configure-mpc: configure-mpc
12779configure-mpc:
c52c6897 12780 @r=`${PWD_COMMAND}`; export r; \
d3ed111c 12781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12782 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12783 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
1f53ca9a 12784 $(HOST_EXPORTS) \
a90ef4bf
JM
12785 echo Configuring in $(HOST_SUBDIR)/mpc; \
12786 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
d3ed111c 12787 case $(srcdir) in \
b00612cc 12788 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12789 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
b00612cc 12790 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d3ed111c 12791 esac; \
1b6c0831
L
12792 module_srcdir=mpc; \
12793 $(SHELL) \
12794 $$s/$$module_srcdir/configure \
12795 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12796 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12797 --target=${target_alias} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
d3ed111c 12798 || exit 1
a90ef4bf 12799@endif mpc
d545f33b
PB
12800
12801
d3ed111c 12802
a90ef4bf
JM
12803.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
12804maybe-configure-stage1-mpc:
12805@if mpc-bootstrap
12806maybe-configure-stage1-mpc: configure-stage1-mpc
12807configure-stage1-mpc:
12808 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12809 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12810 @r=`${PWD_COMMAND}`; export r; \
12811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12812 TFLAGS="$(STAGE1_TFLAGS)"; \
12813 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12814 $(HOST_EXPORTS) \
a90ef4bf
JM
12815 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12816 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12817 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
12818 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc ; \
12819 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12820 cd $(HOST_SUBDIR)/mpc || exit 1; \
12821 case $(srcdir) in \
12822 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12823 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12824 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12825 esac; \
1b6c0831
L
12826 module_srcdir=mpc; \
12827 $(SHELL) $$s/$$module_srcdir/configure \
12828 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12829 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12830 --target=${target_alias} \
12831 \
a90ef4bf
JM
12832 $(STAGE1_CONFIGURE_FLAGS) \
12833 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12834@endif mpc-bootstrap
d3ed111c 12835
a90ef4bf
JM
12836.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
12837maybe-configure-stage2-mpc:
12838@if mpc-bootstrap
12839maybe-configure-stage2-mpc: configure-stage2-mpc
12840configure-stage2-mpc:
12841 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12842 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12843 @r=`${PWD_COMMAND}`; export r; \
12844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12845 TFLAGS="$(STAGE2_TFLAGS)"; \
12846 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12847 $(HOST_EXPORTS) \
a90ef4bf
JM
12848 $(POSTSTAGE1_HOST_EXPORTS) \
12849 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12850 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12851 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
12852 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc ; \
12853 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12854 cd $(HOST_SUBDIR)/mpc || exit 1; \
12855 case $(srcdir) in \
12856 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12857 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12858 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12859 esac; \
1b6c0831
L
12860 module_srcdir=mpc; \
12861 $(SHELL) $$s/$$module_srcdir/configure \
12862 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12863 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12864 --target=${target_alias} \
12865 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12866 $(STAGE2_CONFIGURE_FLAGS) \
12867 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12868@endif mpc-bootstrap
9b980aa1 12869
a90ef4bf
JM
12870.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
12871maybe-configure-stage3-mpc:
12872@if mpc-bootstrap
12873maybe-configure-stage3-mpc: configure-stage3-mpc
12874configure-stage3-mpc:
12875 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12876 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
9b980aa1
RW
12877 @r=`${PWD_COMMAND}`; export r; \
12878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12879 TFLAGS="$(STAGE3_TFLAGS)"; \
12880 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
9b980aa1 12881 $(HOST_EXPORTS) \
a90ef4bf
JM
12882 $(POSTSTAGE1_HOST_EXPORTS) \
12883 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12884 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12885 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
12886 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc ; \
12887 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12888 cd $(HOST_SUBDIR)/mpc || exit 1; \
12889 case $(srcdir) in \
12890 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12891 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12892 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12893 esac; \
1b6c0831
L
12894 module_srcdir=mpc; \
12895 $(SHELL) $$s/$$module_srcdir/configure \
12896 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12897 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12898 --target=${target_alias} \
12899 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12900 $(STAGE3_CONFIGURE_FLAGS) \
12901 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12902@endif mpc-bootstrap
d3ed111c 12903
a90ef4bf
JM
12904.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
12905maybe-configure-stage4-mpc:
12906@if mpc-bootstrap
12907maybe-configure-stage4-mpc: configure-stage4-mpc
12908configure-stage4-mpc:
12909 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12910 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12911 @r=`${PWD_COMMAND}`; export r; \
12912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12913 TFLAGS="$(STAGE4_TFLAGS)"; \
12914 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12915 $(HOST_EXPORTS) \
12916 $(POSTSTAGE1_HOST_EXPORTS) \
12917 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12918 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12919 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
12920 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc ; \
12921 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12922 cd $(HOST_SUBDIR)/mpc || exit 1; \
12923 case $(srcdir) in \
12924 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12925 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12926 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12927 esac; \
1b6c0831
L
12928 module_srcdir=mpc; \
12929 $(SHELL) $$s/$$module_srcdir/configure \
12930 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12931 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12932 --target=${target_alias} \
12933 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12934 $(STAGE4_CONFIGURE_FLAGS) \
12935 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12936@endif mpc-bootstrap
12937
12938.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
12939maybe-configure-stageprofile-mpc:
12940@if mpc-bootstrap
12941maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
12942configure-stageprofile-mpc:
12943 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12944 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12945 @r=`${PWD_COMMAND}`; export r; \
12946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12947 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12948 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12949 $(HOST_EXPORTS) \
12950 $(POSTSTAGE1_HOST_EXPORTS) \
12951 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12952 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12953 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
12954 echo Configuring stage profile in $(HOST_SUBDIR)/mpc ; \
12955 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12956 cd $(HOST_SUBDIR)/mpc || exit 1; \
12957 case $(srcdir) in \
12958 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12959 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12960 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12961 esac; \
1b6c0831
L
12962 module_srcdir=mpc; \
12963 $(SHELL) $$s/$$module_srcdir/configure \
12964 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12965 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12966 --target=${target_alias} \
12967 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12968 $(STAGEprofile_CONFIGURE_FLAGS) \
12969 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12970@endif mpc-bootstrap
12971
12972.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
12973maybe-configure-stagefeedback-mpc:
12974@if mpc-bootstrap
12975maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
12976configure-stagefeedback-mpc:
12977 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12978 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12979 @r=`${PWD_COMMAND}`; export r; \
12980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12981 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12982 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12983 $(HOST_EXPORTS) \
12984 $(POSTSTAGE1_HOST_EXPORTS) \
12985 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12986 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12987 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
12988 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc ; \
12989 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc ; \
12990 cd $(HOST_SUBDIR)/mpc || exit 1; \
12991 case $(srcdir) in \
12992 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12993 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12994 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12995 esac; \
1b6c0831
L
12996 module_srcdir=mpc; \
12997 $(SHELL) $$s/$$module_srcdir/configure \
12998 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12999 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13000 --target=${target_alias} \
13001 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
13002 $(STAGEfeedback_CONFIGURE_FLAGS) \
13003 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
13004@endif mpc-bootstrap
13005
13006
13007
13008
13009
13010.PHONY: all-mpc maybe-all-mpc
13011maybe-all-mpc:
13012@if gcc-bootstrap
13013all-mpc: stage_current
13014@endif gcc-bootstrap
13015@if mpc
13016TARGET-mpc=all
13017maybe-all-mpc: all-mpc
13018all-mpc: configure-mpc
13019 @r=`${PWD_COMMAND}`; export r; \
13020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13021 $(HOST_EXPORTS) \
13022 (cd $(HOST_SUBDIR)/mpc && \
b3676d82 13023 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13024 $(TARGET-mpc))
13025@endif mpc
13026
13027
13028
13029.PHONY: all-stage1-mpc maybe-all-stage1-mpc
13030.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
13031maybe-all-stage1-mpc:
13032maybe-clean-stage1-mpc:
13033@if mpc-bootstrap
13034maybe-all-stage1-mpc: all-stage1-mpc
13035all-stage1: all-stage1-mpc
13036TARGET-stage1-mpc = $(TARGET-mpc)
13037all-stage1-mpc: configure-stage1-mpc
13038 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
13039 @r=`${PWD_COMMAND}`; export r; \
13040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13041 TFLAGS="$(STAGE1_TFLAGS)"; \
13042 $(HOST_EXPORTS) \
13043 cd $(HOST_SUBDIR)/mpc && \
13044 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13045 CFLAGS="$(STAGE1_CFLAGS)" \
13046 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13047 LIBCFLAGS="$(LIBCFLAGS)" \
13048 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13049 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13050 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13051 $(EXTRA_HOST_FLAGS) \
13052 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13053 TFLAGS="$(STAGE1_TFLAGS)" \
13054 $(TARGET-stage1-mpc)
13055
13056maybe-clean-stage1-mpc: clean-stage1-mpc
13057clean-stage1: clean-stage1-mpc
13058clean-stage1-mpc:
13059 @if [ $(current_stage) = stage1 ]; then \
13060 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13061 else \
13062 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
13063 $(MAKE) stage1-start; \
13064 fi; \
13065 cd $(HOST_SUBDIR)/mpc && \
13066 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13067 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13068@endif mpc-bootstrap
13069
13070
13071.PHONY: all-stage2-mpc maybe-all-stage2-mpc
13072.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
13073maybe-all-stage2-mpc:
13074maybe-clean-stage2-mpc:
13075@if mpc-bootstrap
13076maybe-all-stage2-mpc: all-stage2-mpc
13077all-stage2: all-stage2-mpc
13078TARGET-stage2-mpc = $(TARGET-mpc)
13079all-stage2-mpc: configure-stage2-mpc
13080 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13081 @r=`${PWD_COMMAND}`; export r; \
13082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13083 TFLAGS="$(STAGE2_TFLAGS)"; \
13084 $(HOST_EXPORTS) \
13085 $(POSTSTAGE1_HOST_EXPORTS) \
13086 cd $(HOST_SUBDIR)/mpc && \
13087 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13088 CFLAGS="$(STAGE2_CFLAGS)" \
13089 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13090 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13091 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13092 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13093 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13094 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13095 TFLAGS="$(STAGE2_TFLAGS)" \
13096 $(TARGET-stage2-mpc)
13097
13098maybe-clean-stage2-mpc: clean-stage2-mpc
13099clean-stage2: clean-stage2-mpc
13100clean-stage2-mpc:
13101 @if [ $(current_stage) = stage2 ]; then \
13102 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13103 else \
13104 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
13105 $(MAKE) stage2-start; \
13106 fi; \
13107 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13108 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13109@endif mpc-bootstrap
13110
13111
13112.PHONY: all-stage3-mpc maybe-all-stage3-mpc
13113.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
13114maybe-all-stage3-mpc:
13115maybe-clean-stage3-mpc:
13116@if mpc-bootstrap
13117maybe-all-stage3-mpc: all-stage3-mpc
13118all-stage3: all-stage3-mpc
13119TARGET-stage3-mpc = $(TARGET-mpc)
13120all-stage3-mpc: configure-stage3-mpc
13121 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13122 @r=`${PWD_COMMAND}`; export r; \
13123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13124 TFLAGS="$(STAGE3_TFLAGS)"; \
13125 $(HOST_EXPORTS) \
13126 $(POSTSTAGE1_HOST_EXPORTS) \
13127 cd $(HOST_SUBDIR)/mpc && \
13128 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13129 CFLAGS="$(STAGE3_CFLAGS)" \
13130 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13131 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13132 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13133 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13134 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13135 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13136 TFLAGS="$(STAGE3_TFLAGS)" \
13137 $(TARGET-stage3-mpc)
13138
13139maybe-clean-stage3-mpc: clean-stage3-mpc
13140clean-stage3: clean-stage3-mpc
13141clean-stage3-mpc:
13142 @if [ $(current_stage) = stage3 ]; then \
13143 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13144 else \
13145 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
13146 $(MAKE) stage3-start; \
13147 fi; \
13148 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13149 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13150@endif mpc-bootstrap
13151
13152
13153.PHONY: all-stage4-mpc maybe-all-stage4-mpc
13154.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
13155maybe-all-stage4-mpc:
13156maybe-clean-stage4-mpc:
13157@if mpc-bootstrap
13158maybe-all-stage4-mpc: all-stage4-mpc
13159all-stage4: all-stage4-mpc
13160TARGET-stage4-mpc = $(TARGET-mpc)
13161all-stage4-mpc: configure-stage4-mpc
13162 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13163 @r=`${PWD_COMMAND}`; export r; \
13164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13165 TFLAGS="$(STAGE4_TFLAGS)"; \
13166 $(HOST_EXPORTS) \
13167 $(POSTSTAGE1_HOST_EXPORTS) \
13168 cd $(HOST_SUBDIR)/mpc && \
13169 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13170 CFLAGS="$(STAGE4_CFLAGS)" \
13171 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13172 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13173 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13174 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13175 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13176 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13177 TFLAGS="$(STAGE4_TFLAGS)" \
13178 $(TARGET-stage4-mpc)
13179
13180maybe-clean-stage4-mpc: clean-stage4-mpc
13181clean-stage4: clean-stage4-mpc
13182clean-stage4-mpc:
13183 @if [ $(current_stage) = stage4 ]; then \
13184 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13185 else \
13186 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
13187 $(MAKE) stage4-start; \
13188 fi; \
13189 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13190 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13191@endif mpc-bootstrap
13192
13193
13194.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
13195.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
13196maybe-all-stageprofile-mpc:
13197maybe-clean-stageprofile-mpc:
13198@if mpc-bootstrap
13199maybe-all-stageprofile-mpc: all-stageprofile-mpc
13200all-stageprofile: all-stageprofile-mpc
13201TARGET-stageprofile-mpc = $(TARGET-mpc)
13202all-stageprofile-mpc: configure-stageprofile-mpc
13203 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13204 @r=`${PWD_COMMAND}`; export r; \
13205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13206 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13207 $(HOST_EXPORTS) \
13208 $(POSTSTAGE1_HOST_EXPORTS) \
13209 cd $(HOST_SUBDIR)/mpc && \
13210 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13211 CFLAGS="$(STAGEprofile_CFLAGS)" \
13212 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13213 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13214 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13215 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13216 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13217 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13218 TFLAGS="$(STAGEprofile_TFLAGS)" \
13219 $(TARGET-stageprofile-mpc)
13220
13221maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
13222clean-stageprofile: clean-stageprofile-mpc
13223clean-stageprofile-mpc:
13224 @if [ $(current_stage) = stageprofile ]; then \
13225 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13226 else \
13227 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
13228 $(MAKE) stageprofile-start; \
13229 fi; \
13230 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13231 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13232@endif mpc-bootstrap
13233
13234
13235.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
13236.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
13237maybe-all-stagefeedback-mpc:
13238maybe-clean-stagefeedback-mpc:
13239@if mpc-bootstrap
13240maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
13241all-stagefeedback: all-stagefeedback-mpc
13242TARGET-stagefeedback-mpc = $(TARGET-mpc)
13243all-stagefeedback-mpc: configure-stagefeedback-mpc
13244 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13245 @r=`${PWD_COMMAND}`; export r; \
13246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13247 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13248 $(HOST_EXPORTS) \
13249 $(POSTSTAGE1_HOST_EXPORTS) \
13250 cd $(HOST_SUBDIR)/mpc && \
13251 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13252 CFLAGS="$(STAGEfeedback_CFLAGS)" \
13253 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13254 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13255 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13256 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13257 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13258 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13259 TFLAGS="$(STAGEfeedback_TFLAGS)" \
13260 $(TARGET-stagefeedback-mpc)
13261
13262maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
13263clean-stagefeedback: clean-stagefeedback-mpc
13264clean-stagefeedback-mpc:
13265 @if [ $(current_stage) = stagefeedback ]; then \
13266 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13267 else \
13268 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
13269 $(MAKE) stagefeedback-start; \
13270 fi; \
13271 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13272 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13273@endif mpc-bootstrap
13274
13275
13276
13277
13278
13279.PHONY: check-mpc maybe-check-mpc
13280maybe-check-mpc:
13281@if mpc
13282maybe-check-mpc: check-mpc
13283
13284check-mpc:
13285 @: $(MAKE); $(unstage)
13286 @r=`${PWD_COMMAND}`; export r; \
13287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 13288 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 13289 (cd $(HOST_SUBDIR)/mpc && \
f91ca6bc 13290 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf
JM
13291
13292@endif mpc
13293
13294.PHONY: install-mpc maybe-install-mpc
13295maybe-install-mpc:
13296@if mpc
13297maybe-install-mpc: install-mpc
13298
13299install-mpc:
13300
13301@endif mpc
13302
13303.PHONY: install-strip-mpc maybe-install-strip-mpc
13304maybe-install-strip-mpc:
13305@if mpc
13306maybe-install-strip-mpc: install-strip-mpc
13307
13308install-strip-mpc:
13309
13310@endif mpc
13311
13312# Other targets (info, dvi, pdf, etc.)
13313
13314.PHONY: maybe-info-mpc info-mpc
13315maybe-info-mpc:
13316@if mpc
13317maybe-info-mpc: info-mpc
13318
13319info-mpc: \
13320 configure-mpc
13321 @[ -f ./mpc/Makefile ] || exit 0; \
13322 r=`${PWD_COMMAND}`; export r; \
a4fd3374
DD
13323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13324 $(HOST_EXPORTS) \
13325 for flag in $(EXTRA_HOST_FLAGS) ; do \
13326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13327 done; \
a90ef4bf
JM
13328 echo "Doing info in mpc" ; \
13329 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13332 "RANLIB=$${RANLIB}" \
0c24b341 13333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13334 info) \
13335 || exit 1
d3ed111c 13336
a90ef4bf 13337@endif mpc
d3ed111c 13338
a90ef4bf
JM
13339.PHONY: maybe-dvi-mpc dvi-mpc
13340maybe-dvi-mpc:
13341@if mpc
13342maybe-dvi-mpc: dvi-mpc
d3ed111c 13343
a90ef4bf
JM
13344dvi-mpc: \
13345 configure-mpc
13346 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13347 r=`${PWD_COMMAND}`; export r; \
13348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13349 $(HOST_EXPORTS) \
13350 for flag in $(EXTRA_HOST_FLAGS) ; do \
13351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13352 done; \
a90ef4bf
JM
13353 echo "Doing dvi in mpc" ; \
13354 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13357 "RANLIB=$${RANLIB}" \
0c24b341 13358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13359 dvi) \
13360 || exit 1
d3ed111c 13361
a90ef4bf 13362@endif mpc
d3ed111c 13363
a90ef4bf
JM
13364.PHONY: maybe-pdf-mpc pdf-mpc
13365maybe-pdf-mpc:
13366@if mpc
13367maybe-pdf-mpc: pdf-mpc
56a8fe78 13368
a90ef4bf
JM
13369pdf-mpc: \
13370 configure-mpc
13371 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13372 r=`${PWD_COMMAND}`; export r; \
13373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13374 $(HOST_EXPORTS) \
13375 for flag in $(EXTRA_HOST_FLAGS) ; do \
13376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13377 done; \
a90ef4bf
JM
13378 echo "Doing pdf in mpc" ; \
13379 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13382 "RANLIB=$${RANLIB}" \
0c24b341 13383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13384 pdf) \
13385 || exit 1
56a8fe78 13386
a90ef4bf 13387@endif mpc
56a8fe78 13388
a90ef4bf
JM
13389.PHONY: maybe-html-mpc html-mpc
13390maybe-html-mpc:
13391@if mpc
13392maybe-html-mpc: html-mpc
6d389afc 13393
a90ef4bf
JM
13394html-mpc: \
13395 configure-mpc
13396 @[ -f ./mpc/Makefile ] || exit 0; \
6d389afc
MS
13397 r=`${PWD_COMMAND}`; export r; \
13398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
13399 $(HOST_EXPORTS) \
13400 for flag in $(EXTRA_HOST_FLAGS) ; do \
13401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13402 done; \
a90ef4bf
JM
13403 echo "Doing html in mpc" ; \
13404 (cd $(HOST_SUBDIR)/mpc && \
6d389afc
MS
13405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13407 "RANLIB=$${RANLIB}" \
0c24b341 13408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
13409 html) \
13410 || exit 1
13411
a90ef4bf 13412@endif mpc
d3ed111c 13413
a90ef4bf
JM
13414.PHONY: maybe-TAGS-mpc TAGS-mpc
13415maybe-TAGS-mpc:
13416@if mpc
13417maybe-TAGS-mpc: TAGS-mpc
d3ed111c 13418
a90ef4bf
JM
13419TAGS-mpc: \
13420 configure-mpc
13421 @[ -f ./mpc/Makefile ] || exit 0; \
13422 r=`${PWD_COMMAND}`; export r; \
13423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4fd3374
DD
13424 $(HOST_EXPORTS) \
13425 for flag in $(EXTRA_HOST_FLAGS) ; do \
13426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13427 done; \
a90ef4bf
JM
13428 echo "Doing TAGS in mpc" ; \
13429 (cd $(HOST_SUBDIR)/mpc && \
13430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13432 "RANLIB=$${RANLIB}" \
13433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
13434 TAGS) \
13435 || exit 1
13436
13437@endif mpc
13438
13439.PHONY: maybe-install-info-mpc install-info-mpc
13440maybe-install-info-mpc:
13441@if mpc
13442maybe-install-info-mpc: install-info-mpc
13443
13444install-info-mpc: \
13445 configure-mpc \
13446 info-mpc
13447 @[ -f ./mpc/Makefile ] || exit 0; \
13448 r=`${PWD_COMMAND}`; export r; \
13449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13450 $(HOST_EXPORTS) \
13451 for flag in $(EXTRA_HOST_FLAGS) ; do \
13452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13453 done; \
13454 echo "Doing install-info in mpc" ; \
13455 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13458 "RANLIB=$${RANLIB}" \
0c24b341 13459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13460 install-info) \
13461 || exit 1
d3ed111c 13462
a90ef4bf 13463@endif mpc
d3ed111c 13464
a90ef4bf
JM
13465.PHONY: maybe-install-pdf-mpc install-pdf-mpc
13466maybe-install-pdf-mpc:
13467@if mpc
13468maybe-install-pdf-mpc: install-pdf-mpc
a3ca38d2 13469
a90ef4bf
JM
13470install-pdf-mpc: \
13471 configure-mpc \
13472 pdf-mpc
13473 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13474 r=`${PWD_COMMAND}`; export r; \
13475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13476 $(HOST_EXPORTS) \
13477 for flag in $(EXTRA_HOST_FLAGS) ; do \
13478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13479 done; \
a90ef4bf
JM
13480 echo "Doing install-pdf in mpc" ; \
13481 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13484 "RANLIB=$${RANLIB}" \
0c24b341 13485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13486 install-pdf) \
13487 || exit 1
a3ca38d2 13488
a90ef4bf 13489@endif mpc
a3ca38d2 13490
a90ef4bf
JM
13491.PHONY: maybe-install-html-mpc install-html-mpc
13492maybe-install-html-mpc:
13493@if mpc
13494maybe-install-html-mpc: install-html-mpc
108a6f8e 13495
a90ef4bf
JM
13496install-html-mpc: \
13497 configure-mpc \
13498 html-mpc
13499 @[ -f ./mpc/Makefile ] || exit 0; \
108a6f8e
CD
13500 r=`${PWD_COMMAND}`; export r; \
13501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13502 $(HOST_EXPORTS) \
13503 for flag in $(EXTRA_HOST_FLAGS) ; do \
13504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13505 done; \
a90ef4bf
JM
13506 echo "Doing install-html in mpc" ; \
13507 (cd $(HOST_SUBDIR)/mpc && \
108a6f8e
CD
13508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13510 "RANLIB=$${RANLIB}" \
0c24b341 13511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
13512 install-html) \
13513 || exit 1
13514
a90ef4bf 13515@endif mpc
108a6f8e 13516
a90ef4bf
JM
13517.PHONY: maybe-installcheck-mpc installcheck-mpc
13518maybe-installcheck-mpc:
13519@if mpc
13520maybe-installcheck-mpc: installcheck-mpc
d3ed111c 13521
a90ef4bf
JM
13522installcheck-mpc: \
13523 configure-mpc
13524 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13525 r=`${PWD_COMMAND}`; export r; \
13526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13527 $(HOST_EXPORTS) \
13528 for flag in $(EXTRA_HOST_FLAGS) ; do \
13529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13530 done; \
a90ef4bf
JM
13531 echo "Doing installcheck in mpc" ; \
13532 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13535 "RANLIB=$${RANLIB}" \
0c24b341 13536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13537 installcheck) \
13538 || exit 1
d3ed111c 13539
a90ef4bf 13540@endif mpc
d3ed111c 13541
a90ef4bf
JM
13542.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
13543maybe-mostlyclean-mpc:
13544@if mpc
13545maybe-mostlyclean-mpc: mostlyclean-mpc
d3ed111c 13546
a90ef4bf
JM
13547mostlyclean-mpc:
13548 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13549 r=`${PWD_COMMAND}`; export r; \
13550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13551 $(HOST_EXPORTS) \
13552 for flag in $(EXTRA_HOST_FLAGS) ; do \
13553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13554 done; \
a90ef4bf
JM
13555 echo "Doing mostlyclean in mpc" ; \
13556 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13559 "RANLIB=$${RANLIB}" \
0c24b341 13560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13561 mostlyclean) \
13562 || exit 1
13563
a90ef4bf 13564@endif mpc
d3ed111c 13565
a90ef4bf
JM
13566.PHONY: maybe-clean-mpc clean-mpc
13567maybe-clean-mpc:
13568@if mpc
13569maybe-clean-mpc: clean-mpc
d3ed111c 13570
a90ef4bf
JM
13571clean-mpc:
13572 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13573 r=`${PWD_COMMAND}`; export r; \
13574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13575 $(HOST_EXPORTS) \
13576 for flag in $(EXTRA_HOST_FLAGS) ; do \
13577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13578 done; \
a90ef4bf
JM
13579 echo "Doing clean in mpc" ; \
13580 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13583 "RANLIB=$${RANLIB}" \
0c24b341 13584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13585 clean) \
13586 || exit 1
13587
a90ef4bf 13588@endif mpc
d3ed111c 13589
a90ef4bf
JM
13590.PHONY: maybe-distclean-mpc distclean-mpc
13591maybe-distclean-mpc:
13592@if mpc
13593maybe-distclean-mpc: distclean-mpc
d3ed111c 13594
a90ef4bf
JM
13595distclean-mpc:
13596 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13597 r=`${PWD_COMMAND}`; export r; \
13598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13599 $(HOST_EXPORTS) \
13600 for flag in $(EXTRA_HOST_FLAGS) ; do \
13601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13602 done; \
a90ef4bf
JM
13603 echo "Doing distclean in mpc" ; \
13604 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13607 "RANLIB=$${RANLIB}" \
0c24b341 13608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13609 distclean) \
13610 || exit 1
13611
a90ef4bf 13612@endif mpc
d3ed111c 13613
a90ef4bf
JM
13614.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
13615maybe-maintainer-clean-mpc:
13616@if mpc
13617maybe-maintainer-clean-mpc: maintainer-clean-mpc
d3ed111c 13618
a90ef4bf
JM
13619maintainer-clean-mpc:
13620 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13621 r=`${PWD_COMMAND}`; export r; \
13622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13623 $(HOST_EXPORTS) \
13624 for flag in $(EXTRA_HOST_FLAGS) ; do \
13625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13626 done; \
a90ef4bf
JM
13627 echo "Doing maintainer-clean in mpc" ; \
13628 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13631 "RANLIB=$${RANLIB}" \
0c24b341 13632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13633 maintainer-clean) \
13634 || exit 1
13635
a90ef4bf 13636@endif mpc
d3ed111c
GK
13637
13638
a7254363 13639
7ec59b9e
L
13640.PHONY: configure-isl maybe-configure-isl
13641maybe-configure-isl:
4f0ef2d8 13642@if gcc-bootstrap
7ec59b9e 13643configure-isl: stage_current
4f0ef2d8 13644@endif gcc-bootstrap
7ec59b9e
L
13645@if isl
13646maybe-configure-isl: configure-isl
13647configure-isl:
c52c6897 13648 @r=`${PWD_COMMAND}`; export r; \
4fa63067 13649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e
L
13650 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
13651 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
1f53ca9a 13652 $(HOST_EXPORTS) \
7ec59b9e
L
13653 echo Configuring in $(HOST_SUBDIR)/isl; \
13654 cd "$(HOST_SUBDIR)/isl" || exit 1; \
4fa63067 13655 case $(srcdir) in \
b00612cc 13656 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13657 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
b00612cc 13658 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13659 esac; \
1b6c0831
L
13660 module_srcdir=isl; \
13661 $(SHELL) \
13662 $$s/$$module_srcdir/configure \
13663 --srcdir=$${topdir}/$$module_srcdir \
4b900473 13664 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13665 --target=${target_alias} --disable-shared @extra_isl_gmp_configure_flags@ \
4fa63067 13666 || exit 1
7ec59b9e 13667@endif isl
4fa63067 13668
a7254363
PB
13669
13670
7ec59b9e
L
13671.PHONY: configure-stage1-isl maybe-configure-stage1-isl
13672maybe-configure-stage1-isl:
13673@if isl-bootstrap
13674maybe-configure-stage1-isl: configure-stage1-isl
13675configure-stage1-isl:
a90ef4bf 13676 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
7ec59b9e 13677 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13678 @r=`${PWD_COMMAND}`; export r; \
13679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13680 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 13681 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13682 $(HOST_EXPORTS) \
13683 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13684 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13685 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13686 echo Configuring stage 1 in $(HOST_SUBDIR)/isl ; \
13687 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13688 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13689 case $(srcdir) in \
13690 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13691 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13692 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13693 esac; \
1b6c0831
L
13694 module_srcdir=isl; \
13695 $(SHELL) $$s/$$module_srcdir/configure \
13696 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13697 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13698 --target=${target_alias} \
13699 \
a90ef4bf 13700 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e
L
13701 --disable-shared @extra_isl_gmp_configure_flags@
13702@endif isl-bootstrap
13703
13704.PHONY: configure-stage2-isl maybe-configure-stage2-isl
13705maybe-configure-stage2-isl:
13706@if isl-bootstrap
13707maybe-configure-stage2-isl: configure-stage2-isl
13708configure-stage2-isl:
a90ef4bf 13709 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
7ec59b9e 13710 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13711 @r=`${PWD_COMMAND}`; export r; \
13712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13713 TFLAGS="$(STAGE2_TFLAGS)"; \
7ec59b9e 13714 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13715 $(HOST_EXPORTS) \
13716 $(POSTSTAGE1_HOST_EXPORTS) \
13717 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13718 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13719 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13720 echo Configuring stage 2 in $(HOST_SUBDIR)/isl ; \
13721 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13722 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13723 case $(srcdir) in \
13724 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13725 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13726 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13727 esac; \
1b6c0831
L
13728 module_srcdir=isl; \
13729 $(SHELL) $$s/$$module_srcdir/configure \
13730 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13731 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13732 --target=${target_alias} \
13733 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13734 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e
L
13735 --disable-shared @extra_isl_gmp_configure_flags@
13736@endif isl-bootstrap
13737
13738.PHONY: configure-stage3-isl maybe-configure-stage3-isl
13739maybe-configure-stage3-isl:
13740@if isl-bootstrap
13741maybe-configure-stage3-isl: configure-stage3-isl
13742configure-stage3-isl:
a90ef4bf 13743 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
7ec59b9e 13744 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
4fa63067
NN
13745 @r=`${PWD_COMMAND}`; export r; \
13746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13747 TFLAGS="$(STAGE3_TFLAGS)"; \
7ec59b9e 13748 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13749 $(HOST_EXPORTS) \
13750 $(POSTSTAGE1_HOST_EXPORTS) \
13751 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13752 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13753 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13754 echo Configuring stage 3 in $(HOST_SUBDIR)/isl ; \
13755 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13756 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13757 case $(srcdir) in \
13758 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13759 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13760 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13761 esac; \
1b6c0831
L
13762 module_srcdir=isl; \
13763 $(SHELL) $$s/$$module_srcdir/configure \
13764 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13765 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13766 --target=${target_alias} \
13767 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13768 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e
L
13769 --disable-shared @extra_isl_gmp_configure_flags@
13770@endif isl-bootstrap
13771
13772.PHONY: configure-stage4-isl maybe-configure-stage4-isl
13773maybe-configure-stage4-isl:
13774@if isl-bootstrap
13775maybe-configure-stage4-isl: configure-stage4-isl
13776configure-stage4-isl:
a90ef4bf 13777 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
7ec59b9e 13778 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13779 @r=`${PWD_COMMAND}`; export r; \
13780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13781 TFLAGS="$(STAGE4_TFLAGS)"; \
7ec59b9e 13782 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13783 $(HOST_EXPORTS) \
13784 $(POSTSTAGE1_HOST_EXPORTS) \
13785 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13786 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13787 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13788 echo Configuring stage 4 in $(HOST_SUBDIR)/isl ; \
13789 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13790 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13791 case $(srcdir) in \
13792 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13793 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13794 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13795 esac; \
1b6c0831
L
13796 module_srcdir=isl; \
13797 $(SHELL) $$s/$$module_srcdir/configure \
13798 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13799 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13800 --target=${target_alias} \
13801 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13802 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e
L
13803 --disable-shared @extra_isl_gmp_configure_flags@
13804@endif isl-bootstrap
13805
13806.PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl
13807maybe-configure-stageprofile-isl:
13808@if isl-bootstrap
13809maybe-configure-stageprofile-isl: configure-stageprofile-isl
13810configure-stageprofile-isl:
a90ef4bf 13811 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
7ec59b9e 13812 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13813 @r=`${PWD_COMMAND}`; export r; \
13814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13815 TFLAGS="$(STAGEprofile_TFLAGS)"; \
7ec59b9e 13816 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13817 $(HOST_EXPORTS) \
13818 $(POSTSTAGE1_HOST_EXPORTS) \
13819 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13820 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13821 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13822 echo Configuring stage profile in $(HOST_SUBDIR)/isl ; \
13823 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13824 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13825 case $(srcdir) in \
13826 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13827 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13828 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13829 esac; \
1b6c0831
L
13830 module_srcdir=isl; \
13831 $(SHELL) $$s/$$module_srcdir/configure \
13832 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13833 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13834 --target=${target_alias} \
13835 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13836 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e
L
13837 --disable-shared @extra_isl_gmp_configure_flags@
13838@endif isl-bootstrap
13839
13840.PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl
13841maybe-configure-stagefeedback-isl:
13842@if isl-bootstrap
13843maybe-configure-stagefeedback-isl: configure-stagefeedback-isl
13844configure-stagefeedback-isl:
a90ef4bf 13845 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
7ec59b9e 13846 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13847 @r=`${PWD_COMMAND}`; export r; \
13848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13849 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
7ec59b9e 13850 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13851 $(HOST_EXPORTS) \
13852 $(POSTSTAGE1_HOST_EXPORTS) \
13853 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13854 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13855 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
7ec59b9e
L
13856 echo Configuring stage feedback in $(HOST_SUBDIR)/isl ; \
13857 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl ; \
13858 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13859 case $(srcdir) in \
13860 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13861 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13862 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13863 esac; \
1b6c0831
L
13864 module_srcdir=isl; \
13865 $(SHELL) $$s/$$module_srcdir/configure \
13866 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13867 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13868 --target=${target_alias} \
13869 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13870 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e
L
13871 --disable-shared @extra_isl_gmp_configure_flags@
13872@endif isl-bootstrap
d545f33b 13873
4fa63067 13874
4fa63067
NN
13875
13876
4fa63067 13877
7ec59b9e
L
13878.PHONY: all-isl maybe-all-isl
13879maybe-all-isl:
a90ef4bf 13880@if gcc-bootstrap
7ec59b9e 13881all-isl: stage_current
a90ef4bf 13882@endif gcc-bootstrap
7ec59b9e
L
13883@if isl
13884TARGET-isl=all
13885maybe-all-isl: all-isl
13886all-isl: configure-isl
4fa63067
NN
13887 @r=`${PWD_COMMAND}`; export r; \
13888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13889 $(HOST_EXPORTS) \
7ec59b9e 13890 (cd $(HOST_SUBDIR)/isl && \
b3676d82 13891 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \
7ec59b9e
L
13892 $(TARGET-isl))
13893@endif isl
13894
13895
13896
13897.PHONY: all-stage1-isl maybe-all-stage1-isl
13898.PHONY: clean-stage1-isl maybe-clean-stage1-isl
13899maybe-all-stage1-isl:
13900maybe-clean-stage1-isl:
13901@if isl-bootstrap
13902maybe-all-stage1-isl: all-stage1-isl
13903all-stage1: all-stage1-isl
13904TARGET-stage1-isl = $(TARGET-isl)
13905all-stage1-isl: configure-stage1-isl
a90ef4bf 13906 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9b980aa1
RW
13907 @r=`${PWD_COMMAND}`; export r; \
13908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13909 TFLAGS="$(STAGE1_TFLAGS)"; \
13910 $(HOST_EXPORTS) \
7ec59b9e 13911 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13912 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13913 CFLAGS="$(STAGE1_CFLAGS)" \
13914 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13915 LIBCFLAGS="$(LIBCFLAGS)" \
13916 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13917 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13918 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13919 $(EXTRA_HOST_FLAGS) \
13920 $(STAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13921 TFLAGS="$(STAGE1_TFLAGS)" \
7ec59b9e 13922 $(TARGET-stage1-isl)
9b980aa1 13923
7ec59b9e
L
13924maybe-clean-stage1-isl: clean-stage1-isl
13925clean-stage1: clean-stage1-isl
13926clean-stage1-isl:
a90ef4bf 13927 @if [ $(current_stage) = stage1 ]; then \
7ec59b9e 13928 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13929 else \
7ec59b9e 13930 [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13931 $(MAKE) stage1-start; \
13932 fi; \
7ec59b9e 13933 cd $(HOST_SUBDIR)/isl && \
a90ef4bf 13934 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13935 $(STAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13936@endif isl-bootstrap
13937
13938
13939.PHONY: all-stage2-isl maybe-all-stage2-isl
13940.PHONY: clean-stage2-isl maybe-clean-stage2-isl
13941maybe-all-stage2-isl:
13942maybe-clean-stage2-isl:
13943@if isl-bootstrap
13944maybe-all-stage2-isl: all-stage2-isl
13945all-stage2: all-stage2-isl
13946TARGET-stage2-isl = $(TARGET-isl)
13947all-stage2-isl: configure-stage2-isl
a90ef4bf
JM
13948 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13949 @r=`${PWD_COMMAND}`; export r; \
13950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13951 TFLAGS="$(STAGE2_TFLAGS)"; \
13952 $(HOST_EXPORTS) \
13953 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 13954 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13955 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13956 CFLAGS="$(STAGE2_CFLAGS)" \
13957 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13958 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13959 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13960 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13961 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 13962 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13963 TFLAGS="$(STAGE2_TFLAGS)" \
7ec59b9e 13964 $(TARGET-stage2-isl)
a90ef4bf 13965
7ec59b9e
L
13966maybe-clean-stage2-isl: clean-stage2-isl
13967clean-stage2: clean-stage2-isl
13968clean-stage2-isl:
a90ef4bf 13969 @if [ $(current_stage) = stage2 ]; then \
7ec59b9e 13970 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13971 else \
7ec59b9e 13972 [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13973 $(MAKE) stage2-start; \
13974 fi; \
7ec59b9e 13975 cd $(HOST_SUBDIR)/isl && \
b3676d82 13976 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13977@endif isl-bootstrap
13978
13979
13980.PHONY: all-stage3-isl maybe-all-stage3-isl
13981.PHONY: clean-stage3-isl maybe-clean-stage3-isl
13982maybe-all-stage3-isl:
13983maybe-clean-stage3-isl:
13984@if isl-bootstrap
13985maybe-all-stage3-isl: all-stage3-isl
13986all-stage3: all-stage3-isl
13987TARGET-stage3-isl = $(TARGET-isl)
13988all-stage3-isl: configure-stage3-isl
a90ef4bf
JM
13989 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13990 @r=`${PWD_COMMAND}`; export r; \
13991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13992 TFLAGS="$(STAGE3_TFLAGS)"; \
13993 $(HOST_EXPORTS) \
13994 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 13995 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13996 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13997 CFLAGS="$(STAGE3_CFLAGS)" \
13998 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13999 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14000 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14001 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14002 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14003 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14004 TFLAGS="$(STAGE3_TFLAGS)" \
7ec59b9e 14005 $(TARGET-stage3-isl)
a90ef4bf 14006
7ec59b9e
L
14007maybe-clean-stage3-isl: clean-stage3-isl
14008clean-stage3: clean-stage3-isl
14009clean-stage3-isl:
a90ef4bf 14010 @if [ $(current_stage) = stage3 ]; then \
7ec59b9e 14011 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14012 else \
7ec59b9e 14013 [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14014 $(MAKE) stage3-start; \
14015 fi; \
7ec59b9e 14016 cd $(HOST_SUBDIR)/isl && \
b3676d82 14017 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14018@endif isl-bootstrap
14019
14020
14021.PHONY: all-stage4-isl maybe-all-stage4-isl
14022.PHONY: clean-stage4-isl maybe-clean-stage4-isl
14023maybe-all-stage4-isl:
14024maybe-clean-stage4-isl:
14025@if isl-bootstrap
14026maybe-all-stage4-isl: all-stage4-isl
14027all-stage4: all-stage4-isl
14028TARGET-stage4-isl = $(TARGET-isl)
14029all-stage4-isl: configure-stage4-isl
a90ef4bf
JM
14030 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
14031 @r=`${PWD_COMMAND}`; export r; \
14032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14033 TFLAGS="$(STAGE4_TFLAGS)"; \
14034 $(HOST_EXPORTS) \
14035 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14036 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14037 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14038 CFLAGS="$(STAGE4_CFLAGS)" \
14039 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
14040 LIBCFLAGS="$(STAGE4_CFLAGS)" \
14041 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14042 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14043 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14044 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14045 TFLAGS="$(STAGE4_TFLAGS)" \
7ec59b9e 14046 $(TARGET-stage4-isl)
a90ef4bf 14047
7ec59b9e
L
14048maybe-clean-stage4-isl: clean-stage4-isl
14049clean-stage4: clean-stage4-isl
14050clean-stage4-isl:
a90ef4bf 14051 @if [ $(current_stage) = stage4 ]; then \
7ec59b9e 14052 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14053 else \
7ec59b9e 14054 [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14055 $(MAKE) stage4-start; \
14056 fi; \
7ec59b9e 14057 cd $(HOST_SUBDIR)/isl && \
b3676d82 14058 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14059@endif isl-bootstrap
14060
14061
14062.PHONY: all-stageprofile-isl maybe-all-stageprofile-isl
14063.PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl
14064maybe-all-stageprofile-isl:
14065maybe-clean-stageprofile-isl:
14066@if isl-bootstrap
14067maybe-all-stageprofile-isl: all-stageprofile-isl
14068all-stageprofile: all-stageprofile-isl
14069TARGET-stageprofile-isl = $(TARGET-isl)
14070all-stageprofile-isl: configure-stageprofile-isl
a90ef4bf
JM
14071 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
14072 @r=`${PWD_COMMAND}`; export r; \
14073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14074 TFLAGS="$(STAGEprofile_TFLAGS)"; \
14075 $(HOST_EXPORTS) \
14076 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14077 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14078 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14079 CFLAGS="$(STAGEprofile_CFLAGS)" \
14080 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
14081 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14082 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14083 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14084 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14085 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14086 TFLAGS="$(STAGEprofile_TFLAGS)" \
7ec59b9e 14087 $(TARGET-stageprofile-isl)
a90ef4bf 14088
7ec59b9e
L
14089maybe-clean-stageprofile-isl: clean-stageprofile-isl
14090clean-stageprofile: clean-stageprofile-isl
14091clean-stageprofile-isl:
a90ef4bf 14092 @if [ $(current_stage) = stageprofile ]; then \
7ec59b9e 14093 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14094 else \
7ec59b9e 14095 [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14096 $(MAKE) stageprofile-start; \
14097 fi; \
7ec59b9e 14098 cd $(HOST_SUBDIR)/isl && \
b3676d82 14099 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14100@endif isl-bootstrap
14101
14102
14103.PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl
14104.PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl
14105maybe-all-stagefeedback-isl:
14106maybe-clean-stagefeedback-isl:
14107@if isl-bootstrap
14108maybe-all-stagefeedback-isl: all-stagefeedback-isl
14109all-stagefeedback: all-stagefeedback-isl
14110TARGET-stagefeedback-isl = $(TARGET-isl)
14111all-stagefeedback-isl: configure-stagefeedback-isl
a90ef4bf
JM
14112 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
14113 @r=`${PWD_COMMAND}`; export r; \
14114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14115 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
14116 $(HOST_EXPORTS) \
14117 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14118 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14119 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14120 CFLAGS="$(STAGEfeedback_CFLAGS)" \
14121 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
14122 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14123 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14124 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14125 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14126 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14127 TFLAGS="$(STAGEfeedback_TFLAGS)" \
7ec59b9e 14128 $(TARGET-stagefeedback-isl)
a90ef4bf 14129
7ec59b9e
L
14130maybe-clean-stagefeedback-isl: clean-stagefeedback-isl
14131clean-stagefeedback: clean-stagefeedback-isl
14132clean-stagefeedback-isl:
a90ef4bf 14133 @if [ $(current_stage) = stagefeedback ]; then \
7ec59b9e 14134 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14135 else \
7ec59b9e 14136 [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14137 $(MAKE) stagefeedback-start; \
14138 fi; \
7ec59b9e 14139 cd $(HOST_SUBDIR)/isl && \
b3676d82 14140 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e 14141@endif isl-bootstrap
a90ef4bf
JM
14142
14143
14144
14145
14146
7ec59b9e
L
14147.PHONY: check-isl maybe-check-isl
14148maybe-check-isl:
14149@if isl
14150maybe-check-isl: check-isl
a90ef4bf 14151
7ec59b9e 14152check-isl:
0aed8855 14153 @: $(MAKE); $(unstage)
a90ef4bf
JM
14154 @r=`${PWD_COMMAND}`; export r; \
14155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 14156 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
7ec59b9e 14157 (cd $(HOST_SUBDIR)/isl && \
f91ca6bc 14158 $(MAKE) $(FLAGS_TO_PASS) V=1 $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf 14159
7ec59b9e 14160@endif isl
a90ef4bf 14161
7ec59b9e
L
14162.PHONY: install-isl maybe-install-isl
14163maybe-install-isl:
14164@if isl
14165maybe-install-isl: install-isl
a90ef4bf 14166
7ec59b9e 14167install-isl:
a90ef4bf 14168
7ec59b9e 14169@endif isl
a90ef4bf 14170
7ec59b9e
L
14171.PHONY: install-strip-isl maybe-install-strip-isl
14172maybe-install-strip-isl:
14173@if isl
14174maybe-install-strip-isl: install-strip-isl
a90ef4bf 14175
7ec59b9e 14176install-strip-isl:
a90ef4bf 14177
7ec59b9e 14178@endif isl
a90ef4bf
JM
14179
14180# Other targets (info, dvi, pdf, etc.)
14181
7ec59b9e
L
14182.PHONY: maybe-info-isl info-isl
14183maybe-info-isl:
14184@if isl
14185maybe-info-isl: info-isl
a90ef4bf 14186
7ec59b9e
L
14187info-isl: \
14188 configure-isl
14189 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14190 r=`${PWD_COMMAND}`; export r; \
14191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14192 $(HOST_EXPORTS) \
7ec59b9e 14193 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14195 done; \
7ec59b9e
L
14196 echo "Doing info in isl" ; \
14197 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14200 "RANLIB=$${RANLIB}" \
0c24b341 14201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14202 info) \
2a4cbe27
NN
14203 || exit 1
14204
7ec59b9e 14205@endif isl
2a4cbe27 14206
7ec59b9e
L
14207.PHONY: maybe-dvi-isl dvi-isl
14208maybe-dvi-isl:
14209@if isl
14210maybe-dvi-isl: dvi-isl
2a4cbe27 14211
7ec59b9e
L
14212dvi-isl: \
14213 configure-isl
14214 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14215 r=`${PWD_COMMAND}`; export r; \
14216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14217 $(HOST_EXPORTS) \
7ec59b9e 14218 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14220 done; \
7ec59b9e
L
14221 echo "Doing dvi in isl" ; \
14222 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14225 "RANLIB=$${RANLIB}" \
0c24b341 14226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14227 dvi) \
2a4cbe27
NN
14228 || exit 1
14229
7ec59b9e 14230@endif isl
2a4cbe27 14231
7ec59b9e
L
14232.PHONY: maybe-pdf-isl pdf-isl
14233maybe-pdf-isl:
14234@if isl
14235maybe-pdf-isl: pdf-isl
56a8fe78 14236
7ec59b9e
L
14237pdf-isl: \
14238 configure-isl
14239 @[ -f ./isl/Makefile ] || exit 0; \
56a8fe78
DD
14240 r=`${PWD_COMMAND}`; export r; \
14241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14242 $(HOST_EXPORTS) \
7ec59b9e 14243 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
56a8fe78
DD
14244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14245 done; \
7ec59b9e
L
14246 echo "Doing pdf in isl" ; \
14247 (cd $(HOST_SUBDIR)/isl && \
56a8fe78
DD
14248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14250 "RANLIB=$${RANLIB}" \
0c24b341 14251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
14252 pdf) \
14253 || exit 1
14254
7ec59b9e 14255@endif isl
56a8fe78 14256
7ec59b9e
L
14257.PHONY: maybe-html-isl html-isl
14258maybe-html-isl:
14259@if isl
14260maybe-html-isl: html-isl
6d389afc 14261
7ec59b9e
L
14262html-isl: \
14263 configure-isl
14264 @[ -f ./isl/Makefile ] || exit 0; \
6d389afc
MS
14265 r=`${PWD_COMMAND}`; export r; \
14266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 14267 $(HOST_EXPORTS) \
7ec59b9e 14268 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
6d389afc
MS
14269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14270 done; \
7ec59b9e
L
14271 echo "Doing html in isl" ; \
14272 (cd $(HOST_SUBDIR)/isl && \
6d389afc
MS
14273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14275 "RANLIB=$${RANLIB}" \
0c24b341 14276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
14277 html) \
14278 || exit 1
14279
7ec59b9e 14280@endif isl
6d389afc 14281
7ec59b9e
L
14282.PHONY: maybe-TAGS-isl TAGS-isl
14283maybe-TAGS-isl:
14284@if isl
14285maybe-TAGS-isl: TAGS-isl
2a4cbe27 14286
7ec59b9e
L
14287TAGS-isl: \
14288 configure-isl
14289 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14290 r=`${PWD_COMMAND}`; export r; \
14291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14292 $(HOST_EXPORTS) \
7ec59b9e 14293 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14295 done; \
7ec59b9e
L
14296 echo "Doing TAGS in isl" ; \
14297 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14300 "RANLIB=$${RANLIB}" \
0c24b341 14301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14302 TAGS) \
2a4cbe27
NN
14303 || exit 1
14304
7ec59b9e 14305@endif isl
2a4cbe27 14306
7ec59b9e
L
14307.PHONY: maybe-install-info-isl install-info-isl
14308maybe-install-info-isl:
14309@if isl
14310maybe-install-info-isl: install-info-isl
2a4cbe27 14311
7ec59b9e
L
14312install-info-isl: \
14313 configure-isl \
14314 info-isl
14315 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14316 r=`${PWD_COMMAND}`; export r; \
14317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14318 $(HOST_EXPORTS) \
7ec59b9e 14319 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14321 done; \
7ec59b9e
L
14322 echo "Doing install-info in isl" ; \
14323 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14326 "RANLIB=$${RANLIB}" \
0c24b341 14327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14328 install-info) \
2a4cbe27
NN
14329 || exit 1
14330
7ec59b9e 14331@endif isl
2a4cbe27 14332
7ec59b9e
L
14333.PHONY: maybe-install-pdf-isl install-pdf-isl
14334maybe-install-pdf-isl:
14335@if isl
14336maybe-install-pdf-isl: install-pdf-isl
a3ca38d2 14337
7ec59b9e
L
14338install-pdf-isl: \
14339 configure-isl \
14340 pdf-isl
14341 @[ -f ./isl/Makefile ] || exit 0; \
a3ca38d2
DD
14342 r=`${PWD_COMMAND}`; export r; \
14343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14344 $(HOST_EXPORTS) \
7ec59b9e 14345 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
a3ca38d2
DD
14346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14347 done; \
7ec59b9e
L
14348 echo "Doing install-pdf in isl" ; \
14349 (cd $(HOST_SUBDIR)/isl && \
a3ca38d2
DD
14350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14352 "RANLIB=$${RANLIB}" \
0c24b341 14353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
14354 install-pdf) \
14355 || exit 1
14356
7ec59b9e 14357@endif isl
a3ca38d2 14358
7ec59b9e
L
14359.PHONY: maybe-install-html-isl install-html-isl
14360maybe-install-html-isl:
14361@if isl
14362maybe-install-html-isl: install-html-isl
108a6f8e 14363
7ec59b9e
L
14364install-html-isl: \
14365 configure-isl \
14366 html-isl
14367 @[ -f ./isl/Makefile ] || exit 0; \
108a6f8e
CD
14368 r=`${PWD_COMMAND}`; export r; \
14369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14370 $(HOST_EXPORTS) \
7ec59b9e 14371 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
108a6f8e
CD
14372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14373 done; \
7ec59b9e
L
14374 echo "Doing install-html in isl" ; \
14375 (cd $(HOST_SUBDIR)/isl && \
108a6f8e
CD
14376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14378 "RANLIB=$${RANLIB}" \
0c24b341 14379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
14380 install-html) \
14381 || exit 1
14382
7ec59b9e 14383@endif isl
108a6f8e 14384
7ec59b9e
L
14385.PHONY: maybe-installcheck-isl installcheck-isl
14386maybe-installcheck-isl:
14387@if isl
14388maybe-installcheck-isl: installcheck-isl
2a4cbe27 14389
7ec59b9e
L
14390installcheck-isl: \
14391 configure-isl
14392 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14393 r=`${PWD_COMMAND}`; export r; \
14394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14395 $(HOST_EXPORTS) \
7ec59b9e 14396 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14398 done; \
7ec59b9e
L
14399 echo "Doing installcheck in isl" ; \
14400 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14403 "RANLIB=$${RANLIB}" \
0c24b341 14404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14405 installcheck) \
2a4cbe27
NN
14406 || exit 1
14407
7ec59b9e 14408@endif isl
2a4cbe27 14409
7ec59b9e
L
14410.PHONY: maybe-mostlyclean-isl mostlyclean-isl
14411maybe-mostlyclean-isl:
14412@if isl
14413maybe-mostlyclean-isl: mostlyclean-isl
2a4cbe27 14414
7ec59b9e
L
14415mostlyclean-isl:
14416 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14417 r=`${PWD_COMMAND}`; export r; \
14418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14419 $(HOST_EXPORTS) \
7ec59b9e 14420 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14422 done; \
7ec59b9e
L
14423 echo "Doing mostlyclean in isl" ; \
14424 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14427 "RANLIB=$${RANLIB}" \
0c24b341 14428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14429 mostlyclean) \
2a4cbe27
NN
14430 || exit 1
14431
7ec59b9e 14432@endif isl
2a4cbe27 14433
7ec59b9e
L
14434.PHONY: maybe-clean-isl clean-isl
14435maybe-clean-isl:
14436@if isl
14437maybe-clean-isl: clean-isl
2a4cbe27 14438
7ec59b9e
L
14439clean-isl:
14440 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14441 r=`${PWD_COMMAND}`; export r; \
14442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14443 $(HOST_EXPORTS) \
7ec59b9e 14444 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14446 done; \
7ec59b9e
L
14447 echo "Doing clean in isl" ; \
14448 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14451 "RANLIB=$${RANLIB}" \
0c24b341 14452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14453 clean) \
2a4cbe27
NN
14454 || exit 1
14455
7ec59b9e 14456@endif isl
2a4cbe27 14457
7ec59b9e
L
14458.PHONY: maybe-distclean-isl distclean-isl
14459maybe-distclean-isl:
14460@if isl
14461maybe-distclean-isl: distclean-isl
2a4cbe27 14462
7ec59b9e
L
14463distclean-isl:
14464 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14465 r=`${PWD_COMMAND}`; export r; \
14466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14467 $(HOST_EXPORTS) \
7ec59b9e 14468 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14470 done; \
7ec59b9e
L
14471 echo "Doing distclean in isl" ; \
14472 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14475 "RANLIB=$${RANLIB}" \
0c24b341 14476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14477 distclean) \
2a4cbe27
NN
14478 || exit 1
14479
7ec59b9e 14480@endif isl
2a4cbe27 14481
7ec59b9e
L
14482.PHONY: maybe-maintainer-clean-isl maintainer-clean-isl
14483maybe-maintainer-clean-isl:
14484@if isl
14485maybe-maintainer-clean-isl: maintainer-clean-isl
2a4cbe27 14486
7ec59b9e
L
14487maintainer-clean-isl:
14488 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14489 r=`${PWD_COMMAND}`; export r; \
14490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14491 $(HOST_EXPORTS) \
7ec59b9e 14492 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14494 done; \
7ec59b9e
L
14495 echo "Doing maintainer-clean in isl" ; \
14496 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14499 "RANLIB=$${RANLIB}" \
0c24b341 14500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14501 maintainer-clean) \
2a4cbe27
NN
14502 || exit 1
14503
7ec59b9e 14504@endif isl
2a4cbe27 14505
2a4cbe27 14506
a7254363 14507
a90ef4bf
JM
14508.PHONY: configure-libelf maybe-configure-libelf
14509maybe-configure-libelf:
c52c6897 14510@if gcc-bootstrap
a90ef4bf 14511configure-libelf: stage_current
c52c6897 14512@endif gcc-bootstrap
a90ef4bf
JM
14513@if libelf
14514maybe-configure-libelf: configure-libelf
14515configure-libelf:
c52c6897
PB
14516 @r=`${PWD_COMMAND}`; export r; \
14517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
14518 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
14519 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
1f53ca9a 14520 $(HOST_EXPORTS) \
a90ef4bf
JM
14521 echo Configuring in $(HOST_SUBDIR)/libelf; \
14522 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
4fa63067 14523 case $(srcdir) in \
b00612cc 14524 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14525 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
b00612cc 14526 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 14527 esac; \
1b6c0831
L
14528 module_srcdir=libelf; \
14529 $(SHELL) \
14530 $$s/$$module_srcdir/configure \
14531 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14532 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14533 --target=${target_alias} --disable-shared \
4fa63067 14534 || exit 1
a90ef4bf 14535@endif libelf
4fa63067 14536
a7254363
PB
14537
14538
a90ef4bf
JM
14539.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
14540maybe-configure-stage1-libelf:
14541@if libelf-bootstrap
14542maybe-configure-stage1-libelf: configure-stage1-libelf
14543configure-stage1-libelf:
c52c6897 14544 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 14545 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14546 @r=`${PWD_COMMAND}`; export r; \
14547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14548 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 14549 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
1b05fbbd 14550 $(HOST_EXPORTS) \
8ee82aff 14551 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14552 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14553 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14554 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf ; \
14555 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14556 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14557 case $(srcdir) in \
14558 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14559 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14560 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14561 esac; \
1b6c0831
L
14562 module_srcdir=libelf; \
14563 $(SHELL) $$s/$$module_srcdir/configure \
14564 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14565 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14566 --target=${target_alias} \
14567 \
a90ef4bf
JM
14568 $(STAGE1_CONFIGURE_FLAGS) \
14569 --disable-shared
14570@endif libelf-bootstrap
d545f33b 14571
a90ef4bf
JM
14572.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
14573maybe-configure-stage2-libelf:
14574@if libelf-bootstrap
14575maybe-configure-stage2-libelf: configure-stage2-libelf
14576configure-stage2-libelf:
c52c6897 14577 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 14578 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14579 @r=`${PWD_COMMAND}`; export r; \
14580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14581 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 14582 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14583 $(HOST_EXPORTS) \
1b05fbbd 14584 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14585 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14586 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14587 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14588 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf ; \
14589 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14590 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14591 case $(srcdir) in \
14592 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14593 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14594 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14595 esac; \
1b6c0831
L
14596 module_srcdir=libelf; \
14597 $(SHELL) $$s/$$module_srcdir/configure \
14598 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14599 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14600 --target=${target_alias} \
14601 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14602 $(STAGE2_CONFIGURE_FLAGS) \
14603 --disable-shared
14604@endif libelf-bootstrap
8520c408 14605
a90ef4bf
JM
14606.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
14607maybe-configure-stage3-libelf:
14608@if libelf-bootstrap
14609maybe-configure-stage3-libelf: configure-stage3-libelf
14610configure-stage3-libelf:
c52c6897 14611 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 14612 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14613 @r=`${PWD_COMMAND}`; export r; \
14614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14615 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 14616 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14617 $(HOST_EXPORTS) \
1b05fbbd 14618 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14619 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14620 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14621 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14622 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf ; \
14623 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14624 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14625 case $(srcdir) in \
14626 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14627 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14628 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14629 esac; \
1b6c0831
L
14630 module_srcdir=libelf; \
14631 $(SHELL) $$s/$$module_srcdir/configure \
14632 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14633 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14634 --target=${target_alias} \
14635 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14636 $(STAGE3_CONFIGURE_FLAGS) \
14637 --disable-shared
14638@endif libelf-bootstrap
8520c408 14639
a90ef4bf
JM
14640.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
14641maybe-configure-stage4-libelf:
14642@if libelf-bootstrap
14643maybe-configure-stage4-libelf: configure-stage4-libelf
14644configure-stage4-libelf:
c52c6897 14645 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 14646 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14647 @r=`${PWD_COMMAND}`; export r; \
14648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14649 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 14650 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14651 $(HOST_EXPORTS) \
1b05fbbd 14652 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14653 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14654 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14655 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14656 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf ; \
14657 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14658 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14659 case $(srcdir) in \
14660 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14661 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14662 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14663 esac; \
1b6c0831
L
14664 module_srcdir=libelf; \
14665 $(SHELL) $$s/$$module_srcdir/configure \
14666 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14667 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14668 --target=${target_alias} \
14669 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14670 $(STAGE4_CONFIGURE_FLAGS) \
14671 --disable-shared
14672@endif libelf-bootstrap
d545f33b 14673
a90ef4bf
JM
14674.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
14675maybe-configure-stageprofile-libelf:
14676@if libelf-bootstrap
14677maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
14678configure-stageprofile-libelf:
c52c6897 14679 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 14680 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14681 @r=`${PWD_COMMAND}`; export r; \
14682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14683 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 14684 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14685 $(HOST_EXPORTS) \
1b05fbbd
AO
14686 $(POSTSTAGE1_HOST_EXPORTS) \
14687 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14688 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14689 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14690 echo Configuring stage profile in $(HOST_SUBDIR)/libelf ; \
14691 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14692 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14693 case $(srcdir) in \
14694 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14695 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14696 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14697 esac; \
1b6c0831
L
14698 module_srcdir=libelf; \
14699 $(SHELL) $$s/$$module_srcdir/configure \
14700 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14701 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14702 --target=${target_alias} \
14703 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14704 $(STAGEprofile_CONFIGURE_FLAGS) \
14705 --disable-shared
14706@endif libelf-bootstrap
d545f33b 14707
a90ef4bf
JM
14708.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
14709maybe-configure-stagefeedback-libelf:
14710@if libelf-bootstrap
14711maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
14712configure-stagefeedback-libelf:
c52c6897 14713 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 14714 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14715 @r=`${PWD_COMMAND}`; export r; \
14716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14717 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 14718 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14719 $(HOST_EXPORTS) \
1b05fbbd
AO
14720 $(POSTSTAGE1_HOST_EXPORTS) \
14721 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14722 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14723 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
14724 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf ; \
14725 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf ; \
14726 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14727 case $(srcdir) in \
14728 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14729 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14730 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14731 esac; \
1b6c0831
L
14732 module_srcdir=libelf; \
14733 $(SHELL) $$s/$$module_srcdir/configure \
14734 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14735 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14736 --target=${target_alias} \
14737 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14738 $(STAGEfeedback_CONFIGURE_FLAGS) \
14739 --disable-shared
14740@endif libelf-bootstrap
d545f33b
PB
14741
14742
14743
14744
14745
a90ef4bf
JM
14746.PHONY: all-libelf maybe-all-libelf
14747maybe-all-libelf:
4f0ef2d8 14748@if gcc-bootstrap
a90ef4bf 14749all-libelf: stage_current
4f0ef2d8 14750@endif gcc-bootstrap
a90ef4bf
JM
14751@if libelf
14752TARGET-libelf=all
14753maybe-all-libelf: all-libelf
14754all-libelf: configure-libelf
c52c6897 14755 @r=`${PWD_COMMAND}`; export r; \
4fa63067 14756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 14757 $(HOST_EXPORTS) \
a90ef4bf 14758 (cd $(HOST_SUBDIR)/libelf && \
b3676d82 14759 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
14760 $(TARGET-libelf))
14761@endif libelf
4fa63067 14762
a7254363 14763
d545f33b 14764
a90ef4bf
JM
14765.PHONY: all-stage1-libelf maybe-all-stage1-libelf
14766.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
14767maybe-all-stage1-libelf:
14768maybe-clean-stage1-libelf:
14769@if libelf-bootstrap
14770maybe-all-stage1-libelf: all-stage1-libelf
14771all-stage1: all-stage1-libelf
14772TARGET-stage1-libelf = $(TARGET-libelf)
14773all-stage1-libelf: configure-stage1-libelf
c52c6897 14774 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
14775 @r=`${PWD_COMMAND}`; export r; \
14776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14777 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 14778 $(HOST_EXPORTS) \
a90ef4bf 14779 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14780 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14781 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 14782 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
14783 LIBCFLAGS="$(LIBCFLAGS)" \
14784 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14785 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14786 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14787 $(EXTRA_HOST_FLAGS) \
14788 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 14789 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 14790 $(TARGET-stage1-libelf)
d545f33b 14791
a90ef4bf
JM
14792maybe-clean-stage1-libelf: clean-stage1-libelf
14793clean-stage1: clean-stage1-libelf
14794clean-stage1-libelf:
9dbaa842 14795 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 14796 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14797 else \
a90ef4bf 14798 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14799 $(MAKE) stage1-start; \
14800 fi; \
a90ef4bf 14801 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14802 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14803 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14804@endif libelf-bootstrap
d545f33b
PB
14805
14806
a90ef4bf
JM
14807.PHONY: all-stage2-libelf maybe-all-stage2-libelf
14808.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
14809maybe-all-stage2-libelf:
14810maybe-clean-stage2-libelf:
14811@if libelf-bootstrap
14812maybe-all-stage2-libelf: all-stage2-libelf
14813all-stage2: all-stage2-libelf
14814TARGET-stage2-libelf = $(TARGET-libelf)
14815all-stage2-libelf: configure-stage2-libelf
c52c6897 14816 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
14817 @r=`${PWD_COMMAND}`; export r; \
14818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14819 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 14820 $(HOST_EXPORTS) \
1f53ca9a 14821 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14822 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14823 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14824 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 14825 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
14826 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14827 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14828 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14829 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14830 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14831 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 14832 $(TARGET-stage2-libelf)
d545f33b 14833
a90ef4bf
JM
14834maybe-clean-stage2-libelf: clean-stage2-libelf
14835clean-stage2: clean-stage2-libelf
14836clean-stage2-libelf:
9dbaa842 14837 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 14838 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14839 else \
a90ef4bf 14840 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14841 $(MAKE) stage2-start; \
14842 fi; \
a90ef4bf 14843 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14844 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14845@endif libelf-bootstrap
d545f33b
PB
14846
14847
a90ef4bf
JM
14848.PHONY: all-stage3-libelf maybe-all-stage3-libelf
14849.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
14850maybe-all-stage3-libelf:
14851maybe-clean-stage3-libelf:
14852@if libelf-bootstrap
14853maybe-all-stage3-libelf: all-stage3-libelf
14854all-stage3: all-stage3-libelf
14855TARGET-stage3-libelf = $(TARGET-libelf)
14856all-stage3-libelf: configure-stage3-libelf
c52c6897 14857 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
14858 @r=`${PWD_COMMAND}`; export r; \
14859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14860 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 14861 $(HOST_EXPORTS) \
1f53ca9a 14862 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14863 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14864 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14865 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 14866 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
14867 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14868 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14869 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14870 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14871 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14872 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 14873 $(TARGET-stage3-libelf)
d545f33b 14874
a90ef4bf
JM
14875maybe-clean-stage3-libelf: clean-stage3-libelf
14876clean-stage3: clean-stage3-libelf
14877clean-stage3-libelf:
9dbaa842 14878 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 14879 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14880 else \
a90ef4bf 14881 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14882 $(MAKE) stage3-start; \
14883 fi; \
a90ef4bf 14884 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14885 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14886@endif libelf-bootstrap
d545f33b
PB
14887
14888
a90ef4bf
JM
14889.PHONY: all-stage4-libelf maybe-all-stage4-libelf
14890.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
14891maybe-all-stage4-libelf:
14892maybe-clean-stage4-libelf:
14893@if libelf-bootstrap
14894maybe-all-stage4-libelf: all-stage4-libelf
14895all-stage4: all-stage4-libelf
14896TARGET-stage4-libelf = $(TARGET-libelf)
14897all-stage4-libelf: configure-stage4-libelf
c52c6897 14898 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
14899 @r=`${PWD_COMMAND}`; export r; \
14900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14901 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 14902 $(HOST_EXPORTS) \
1f53ca9a 14903 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14904 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14905 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14906 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 14907 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 14908 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
14909 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14910 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14911 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14912 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14913 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 14914 $(TARGET-stage4-libelf)
d545f33b 14915
a90ef4bf
JM
14916maybe-clean-stage4-libelf: clean-stage4-libelf
14917clean-stage4: clean-stage4-libelf
14918clean-stage4-libelf:
9dbaa842 14919 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 14920 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14921 else \
a90ef4bf 14922 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14923 $(MAKE) stage4-start; \
14924 fi; \
a90ef4bf 14925 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14926 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14927@endif libelf-bootstrap
d545f33b
PB
14928
14929
a90ef4bf
JM
14930.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
14931.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
14932maybe-all-stageprofile-libelf:
14933maybe-clean-stageprofile-libelf:
14934@if libelf-bootstrap
14935maybe-all-stageprofile-libelf: all-stageprofile-libelf
14936all-stageprofile: all-stageprofile-libelf
14937TARGET-stageprofile-libelf = $(TARGET-libelf)
14938all-stageprofile-libelf: configure-stageprofile-libelf
c52c6897 14939 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
14940 @r=`${PWD_COMMAND}`; export r; \
14941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14942 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 14943 $(HOST_EXPORTS) \
1f53ca9a 14944 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14945 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14946 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14947 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 14948 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
14949 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14950 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14951 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14952 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14953 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14954 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 14955 $(TARGET-stageprofile-libelf)
d545f33b 14956
a90ef4bf
JM
14957maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
14958clean-stageprofile: clean-stageprofile-libelf
14959clean-stageprofile-libelf:
9dbaa842 14960 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 14961 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14962 else \
a90ef4bf 14963 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14964 $(MAKE) stageprofile-start; \
14965 fi; \
a90ef4bf 14966 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14967 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14968@endif libelf-bootstrap
d545f33b
PB
14969
14970
a90ef4bf
JM
14971.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
14972.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
14973maybe-all-stagefeedback-libelf:
14974maybe-clean-stagefeedback-libelf:
14975@if libelf-bootstrap
14976maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
14977all-stagefeedback: all-stagefeedback-libelf
14978TARGET-stagefeedback-libelf = $(TARGET-libelf)
14979all-stagefeedback-libelf: configure-stagefeedback-libelf
c52c6897 14980 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
14981 @r=`${PWD_COMMAND}`; export r; \
14982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14983 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 14984 $(HOST_EXPORTS) \
1f53ca9a 14985 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14986 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14987 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14988 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 14989 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
14990 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14991 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14992 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14993 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14994 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14995 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 14996 $(TARGET-stagefeedback-libelf)
d545f33b 14997
a90ef4bf
JM
14998maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
14999clean-stagefeedback: clean-stagefeedback-libelf
15000clean-stagefeedback-libelf:
9dbaa842 15001 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 15002 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15003 else \
a90ef4bf 15004 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15005 $(MAKE) stagefeedback-start; \
15006 fi; \
a90ef4bf 15007 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15008 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15009@endif libelf-bootstrap
d545f33b
PB
15010
15011
15012
15013
15014
a90ef4bf
JM
15015.PHONY: check-libelf maybe-check-libelf
15016maybe-check-libelf:
15017@if libelf
15018maybe-check-libelf: check-libelf
4fa63067 15019
a90ef4bf 15020check-libelf:
0aed8855 15021 @: $(MAKE); $(unstage)
4fa63067
NN
15022 @r=`${PWD_COMMAND}`; export r; \
15023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15024 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15025 (cd $(HOST_SUBDIR)/libelf && \
f91ca6bc 15026 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15027
a90ef4bf 15028@endif libelf
4fa63067 15029
a90ef4bf
JM
15030.PHONY: install-libelf maybe-install-libelf
15031maybe-install-libelf:
15032@if libelf
15033maybe-install-libelf: install-libelf
4fa63067 15034
a90ef4bf 15035install-libelf:
4fa63067 15036
a90ef4bf 15037@endif libelf
4fa63067 15038
a90ef4bf
JM
15039.PHONY: install-strip-libelf maybe-install-strip-libelf
15040maybe-install-strip-libelf:
15041@if libelf
15042maybe-install-strip-libelf: install-strip-libelf
9b980aa1 15043
a90ef4bf 15044install-strip-libelf:
9b980aa1 15045
a90ef4bf 15046@endif libelf
9b980aa1 15047
56a8fe78 15048# Other targets (info, dvi, pdf, etc.)
4fa63067 15049
a90ef4bf
JM
15050.PHONY: maybe-info-libelf info-libelf
15051maybe-info-libelf:
15052@if libelf
15053maybe-info-libelf: info-libelf
4fa63067 15054
a90ef4bf
JM
15055info-libelf: \
15056 configure-libelf
15057 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15058 r=`${PWD_COMMAND}`; export r; \
15059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15060 $(HOST_EXPORTS) \
a90ef4bf 15061 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15063 done; \
a90ef4bf
JM
15064 echo "Doing info in libelf" ; \
15065 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15068 "RANLIB=$${RANLIB}" \
0c24b341 15069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15070 info) \
2a4cbe27
NN
15071 || exit 1
15072
a90ef4bf 15073@endif libelf
2a4cbe27 15074
a90ef4bf
JM
15075.PHONY: maybe-dvi-libelf dvi-libelf
15076maybe-dvi-libelf:
15077@if libelf
15078maybe-dvi-libelf: dvi-libelf
2a4cbe27 15079
a90ef4bf
JM
15080dvi-libelf: \
15081 configure-libelf
15082 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15083 r=`${PWD_COMMAND}`; export r; \
15084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15085 $(HOST_EXPORTS) \
a90ef4bf 15086 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15088 done; \
a90ef4bf
JM
15089 echo "Doing dvi in libelf" ; \
15090 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15093 "RANLIB=$${RANLIB}" \
0c24b341 15094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15095 dvi) \
2a4cbe27
NN
15096 || exit 1
15097
a90ef4bf 15098@endif libelf
2a4cbe27 15099
a90ef4bf
JM
15100.PHONY: maybe-pdf-libelf pdf-libelf
15101maybe-pdf-libelf:
15102@if libelf
15103maybe-pdf-libelf: pdf-libelf
56a8fe78 15104
a90ef4bf
JM
15105pdf-libelf: \
15106 configure-libelf
15107 @[ -f ./libelf/Makefile ] || exit 0; \
56a8fe78
DD
15108 r=`${PWD_COMMAND}`; export r; \
15109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15110 $(HOST_EXPORTS) \
a90ef4bf 15111 for flag in $(EXTRA_HOST_FLAGS) ; do \
56a8fe78
DD
15112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15113 done; \
a90ef4bf
JM
15114 echo "Doing pdf in libelf" ; \
15115 (cd $(HOST_SUBDIR)/libelf && \
56a8fe78
DD
15116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15118 "RANLIB=$${RANLIB}" \
0c24b341 15119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15120 pdf) \
15121 || exit 1
15122
a90ef4bf 15123@endif libelf
56a8fe78 15124
a90ef4bf
JM
15125.PHONY: maybe-html-libelf html-libelf
15126maybe-html-libelf:
15127@if libelf
15128maybe-html-libelf: html-libelf
6d389afc 15129
a90ef4bf
JM
15130html-libelf: \
15131 configure-libelf
15132 @[ -f ./libelf/Makefile ] || exit 0; \
6d389afc
MS
15133 r=`${PWD_COMMAND}`; export r; \
15134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 15135 $(HOST_EXPORTS) \
a90ef4bf 15136 for flag in $(EXTRA_HOST_FLAGS) ; do \
6d389afc
MS
15137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15138 done; \
a90ef4bf
JM
15139 echo "Doing html in libelf" ; \
15140 (cd $(HOST_SUBDIR)/libelf && \
6d389afc
MS
15141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15143 "RANLIB=$${RANLIB}" \
0c24b341 15144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
15145 html) \
15146 || exit 1
15147
a90ef4bf 15148@endif libelf
6d389afc 15149
a90ef4bf
JM
15150.PHONY: maybe-TAGS-libelf TAGS-libelf
15151maybe-TAGS-libelf:
15152@if libelf
15153maybe-TAGS-libelf: TAGS-libelf
2a4cbe27 15154
a90ef4bf
JM
15155TAGS-libelf: \
15156 configure-libelf
15157 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15158 r=`${PWD_COMMAND}`; export r; \
15159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15160 $(HOST_EXPORTS) \
a90ef4bf 15161 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15163 done; \
a90ef4bf
JM
15164 echo "Doing TAGS in libelf" ; \
15165 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15168 "RANLIB=$${RANLIB}" \
0c24b341 15169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15170 TAGS) \
2a4cbe27
NN
15171 || exit 1
15172
a90ef4bf 15173@endif libelf
2a4cbe27 15174
a90ef4bf
JM
15175.PHONY: maybe-install-info-libelf install-info-libelf
15176maybe-install-info-libelf:
15177@if libelf
15178maybe-install-info-libelf: install-info-libelf
a2592b1b 15179
a90ef4bf
JM
15180install-info-libelf: \
15181 configure-libelf \
15182 info-libelf
15183 @[ -f ./libelf/Makefile ] || exit 0; \
a2592b1b
DD
15184 r=`${PWD_COMMAND}`; export r; \
15185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15186 $(HOST_EXPORTS) \
a90ef4bf 15187 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
15188 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15189 done; \
a90ef4bf
JM
15190 echo "Doing install-info in libelf" ; \
15191 (cd $(HOST_SUBDIR)/libelf && \
a2592b1b
DD
15192 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15193 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15194 "RANLIB=$${RANLIB}" \
0c24b341 15195 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15196 install-info) \
a2592b1b
DD
15197 || exit 1
15198
a90ef4bf 15199@endif libelf
a2592b1b 15200
a90ef4bf
JM
15201.PHONY: maybe-install-pdf-libelf install-pdf-libelf
15202maybe-install-pdf-libelf:
15203@if libelf
15204maybe-install-pdf-libelf: install-pdf-libelf
a3ca38d2 15205
a90ef4bf
JM
15206install-pdf-libelf: \
15207 configure-libelf \
15208 pdf-libelf
15209 @[ -f ./libelf/Makefile ] || exit 0; \
a3ca38d2
DD
15210 r=`${PWD_COMMAND}`; export r; \
15211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15212 $(HOST_EXPORTS) \
a90ef4bf 15213 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
15214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15215 done; \
a90ef4bf
JM
15216 echo "Doing install-pdf in libelf" ; \
15217 (cd $(HOST_SUBDIR)/libelf && \
a3ca38d2
DD
15218 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15219 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15220 "RANLIB=$${RANLIB}" \
0c24b341 15221 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
15222 install-pdf) \
15223 || exit 1
15224
a90ef4bf 15225@endif libelf
a3ca38d2 15226
a90ef4bf
JM
15227.PHONY: maybe-install-html-libelf install-html-libelf
15228maybe-install-html-libelf:
15229@if libelf
15230maybe-install-html-libelf: install-html-libelf
108a6f8e 15231
a90ef4bf
JM
15232install-html-libelf: \
15233 configure-libelf \
15234 html-libelf
15235 @[ -f ./libelf/Makefile ] || exit 0; \
108a6f8e
CD
15236 r=`${PWD_COMMAND}`; export r; \
15237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15238 $(HOST_EXPORTS) \
a90ef4bf 15239 for flag in $(EXTRA_HOST_FLAGS) ; do \
108a6f8e
CD
15240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15241 done; \
a90ef4bf
JM
15242 echo "Doing install-html in libelf" ; \
15243 (cd $(HOST_SUBDIR)/libelf && \
108a6f8e
CD
15244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15246 "RANLIB=$${RANLIB}" \
0c24b341 15247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
15248 install-html) \
15249 || exit 1
15250
a90ef4bf 15251@endif libelf
108a6f8e 15252
a90ef4bf
JM
15253.PHONY: maybe-installcheck-libelf installcheck-libelf
15254maybe-installcheck-libelf:
15255@if libelf
15256maybe-installcheck-libelf: installcheck-libelf
2a4cbe27 15257
a90ef4bf
JM
15258installcheck-libelf: \
15259 configure-libelf
15260 @[ -f ./libelf/Makefile ] || exit 0; \
4fa63067
NN
15261 r=`${PWD_COMMAND}`; export r; \
15262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15263 $(HOST_EXPORTS) \
a90ef4bf 15264 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15266 done; \
a90ef4bf
JM
15267 echo "Doing installcheck in libelf" ; \
15268 (cd $(HOST_SUBDIR)/libelf && \
4fa63067
NN
15269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15271 "RANLIB=$${RANLIB}" \
0c24b341 15272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15273 installcheck) \
4fa63067 15274 || exit 1
2a4cbe27 15275
a90ef4bf 15276@endif libelf
4fa63067 15277
a90ef4bf
JM
15278.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
15279maybe-mostlyclean-libelf:
15280@if libelf
15281maybe-mostlyclean-libelf: mostlyclean-libelf
4fa63067 15282
a90ef4bf
JM
15283mostlyclean-libelf:
15284 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15285 r=`${PWD_COMMAND}`; export r; \
15286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15287 $(HOST_EXPORTS) \
a90ef4bf 15288 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15290 done; \
a90ef4bf
JM
15291 echo "Doing mostlyclean in libelf" ; \
15292 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15295 "RANLIB=$${RANLIB}" \
0c24b341 15296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15297 mostlyclean) \
2a4cbe27
NN
15298 || exit 1
15299
a90ef4bf 15300@endif libelf
2a4cbe27 15301
a90ef4bf
JM
15302.PHONY: maybe-clean-libelf clean-libelf
15303maybe-clean-libelf:
15304@if libelf
15305maybe-clean-libelf: clean-libelf
2a4cbe27 15306
a90ef4bf
JM
15307clean-libelf:
15308 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15309 r=`${PWD_COMMAND}`; export r; \
15310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15311 $(HOST_EXPORTS) \
a90ef4bf 15312 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15314 done; \
a90ef4bf
JM
15315 echo "Doing clean in libelf" ; \
15316 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15319 "RANLIB=$${RANLIB}" \
0c24b341 15320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15321 clean) \
2a4cbe27
NN
15322 || exit 1
15323
a90ef4bf 15324@endif libelf
2a4cbe27 15325
a90ef4bf
JM
15326.PHONY: maybe-distclean-libelf distclean-libelf
15327maybe-distclean-libelf:
15328@if libelf
15329maybe-distclean-libelf: distclean-libelf
2a4cbe27 15330
a90ef4bf
JM
15331distclean-libelf:
15332 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15333 r=`${PWD_COMMAND}`; export r; \
15334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15335 $(HOST_EXPORTS) \
a90ef4bf 15336 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15338 done; \
a90ef4bf
JM
15339 echo "Doing distclean in libelf" ; \
15340 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15343 "RANLIB=$${RANLIB}" \
0c24b341 15344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15345 distclean) \
2a4cbe27
NN
15346 || exit 1
15347
a90ef4bf 15348@endif libelf
2a4cbe27 15349
a90ef4bf
JM
15350.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
15351maybe-maintainer-clean-libelf:
15352@if libelf
15353maybe-maintainer-clean-libelf: maintainer-clean-libelf
2a4cbe27 15354
a90ef4bf
JM
15355maintainer-clean-libelf:
15356 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15357 r=`${PWD_COMMAND}`; export r; \
15358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15359 $(HOST_EXPORTS) \
a90ef4bf 15360 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15362 done; \
a90ef4bf
JM
15363 echo "Doing maintainer-clean in libelf" ; \
15364 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15367 "RANLIB=$${RANLIB}" \
0c24b341 15368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15369 maintainer-clean) \
2a4cbe27
NN
15370 || exit 1
15371
a90ef4bf 15372@endif libelf
2a4cbe27 15373
2a4cbe27 15374
a7254363 15375
a90ef4bf
JM
15376.PHONY: configure-gold maybe-configure-gold
15377maybe-configure-gold:
4f0ef2d8 15378@if gcc-bootstrap
a90ef4bf 15379configure-gold: stage_current
4f0ef2d8 15380@endif gcc-bootstrap
a90ef4bf
JM
15381@if gold
15382maybe-configure-gold: configure-gold
15383configure-gold:
c52c6897 15384 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15386 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15387 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
1f53ca9a 15388 $(HOST_EXPORTS) \
a90ef4bf
JM
15389 echo Configuring in $(HOST_SUBDIR)/gold; \
15390 cd "$(HOST_SUBDIR)/gold" || exit 1; \
4fa63067 15391 case $(srcdir) in \
b00612cc 15392 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 15393 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
b00612cc 15394 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 15395 esac; \
1b6c0831
L
15396 module_srcdir=gold; \
15397 $(SHELL) \
15398 $$s/$$module_srcdir/configure \
15399 --srcdir=$${topdir}/$$module_srcdir \
4b900473 15400 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15401 --target=${target_alias} \
4fa63067 15402 || exit 1
a90ef4bf 15403@endif gold
a7254363 15404
d545f33b
PB
15405
15406
a90ef4bf
JM
15407.PHONY: configure-stage1-gold maybe-configure-stage1-gold
15408maybe-configure-stage1-gold:
15409@if gold-bootstrap
15410maybe-configure-stage1-gold: configure-stage1-gold
15411configure-stage1-gold:
15412 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15413 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15414 @r=`${PWD_COMMAND}`; export r; \
15415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15416 TFLAGS="$(STAGE1_TFLAGS)"; \
15417 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15418 $(HOST_EXPORTS) \
15419 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15420 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15421 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
15422 echo Configuring stage 1 in $(HOST_SUBDIR)/gold ; \
15423 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15424 cd $(HOST_SUBDIR)/gold || exit 1; \
15425 case $(srcdir) in \
15426 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15427 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15428 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15429 esac; \
1b6c0831
L
15430 module_srcdir=gold; \
15431 $(SHELL) $$s/$$module_srcdir/configure \
15432 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15433 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15434 --target=${target_alias} \
15435 \
a90ef4bf
JM
15436 $(STAGE1_CONFIGURE_FLAGS)
15437@endif gold-bootstrap
4fa63067 15438
a90ef4bf
JM
15439.PHONY: configure-stage2-gold maybe-configure-stage2-gold
15440maybe-configure-stage2-gold:
15441@if gold-bootstrap
15442maybe-configure-stage2-gold: configure-stage2-gold
15443configure-stage2-gold:
15444 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15445 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15446 @r=`${PWD_COMMAND}`; export r; \
15447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15448 TFLAGS="$(STAGE2_TFLAGS)"; \
15449 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15450 $(HOST_EXPORTS) \
a90ef4bf
JM
15451 $(POSTSTAGE1_HOST_EXPORTS) \
15452 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15453 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15454 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
15455 echo Configuring stage 2 in $(HOST_SUBDIR)/gold ; \
15456 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15457 cd $(HOST_SUBDIR)/gold || exit 1; \
15458 case $(srcdir) in \
15459 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15460 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15461 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15462 esac; \
1b6c0831
L
15463 module_srcdir=gold; \
15464 $(SHELL) $$s/$$module_srcdir/configure \
15465 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15466 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15467 --target=${target_alias} \
15468 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15469 $(STAGE2_CONFIGURE_FLAGS)
15470@endif gold-bootstrap
4fa63067 15471
a90ef4bf
JM
15472.PHONY: configure-stage3-gold maybe-configure-stage3-gold
15473maybe-configure-stage3-gold:
15474@if gold-bootstrap
15475maybe-configure-stage3-gold: configure-stage3-gold
15476configure-stage3-gold:
15477 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15478 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15479 @r=`${PWD_COMMAND}`; export r; \
15480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15481 TFLAGS="$(STAGE3_TFLAGS)"; \
15482 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15483 $(HOST_EXPORTS) \
a90ef4bf
JM
15484 $(POSTSTAGE1_HOST_EXPORTS) \
15485 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
15486 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
15487 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
15488 echo Configuring stage 3 in $(HOST_SUBDIR)/gold ; \
15489 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15490 cd $(HOST_SUBDIR)/gold || exit 1; \
15491 case $(srcdir) in \
15492 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15493 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15494 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15495 esac; \
1b6c0831
L
15496 module_srcdir=gold; \
15497 $(SHELL) $$s/$$module_srcdir/configure \
15498 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15499 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15500 --target=${target_alias} \
15501 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15502 $(STAGE3_CONFIGURE_FLAGS)
15503@endif gold-bootstrap
9b980aa1 15504
a90ef4bf
JM
15505.PHONY: configure-stage4-gold maybe-configure-stage4-gold
15506maybe-configure-stage4-gold:
15507@if gold-bootstrap
15508maybe-configure-stage4-gold: configure-stage4-gold
15509configure-stage4-gold:
15510 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15511 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
9b980aa1
RW
15512 @r=`${PWD_COMMAND}`; export r; \
15513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15514 TFLAGS="$(STAGE4_TFLAGS)"; \
15515 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
9b980aa1 15516 $(HOST_EXPORTS) \
a90ef4bf
JM
15517 $(POSTSTAGE1_HOST_EXPORTS) \
15518 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
15519 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
15520 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
15521 echo Configuring stage 4 in $(HOST_SUBDIR)/gold ; \
15522 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15523 cd $(HOST_SUBDIR)/gold || exit 1; \
15524 case $(srcdir) in \
15525 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15526 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15527 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15528 esac; \
1b6c0831
L
15529 module_srcdir=gold; \
15530 $(SHELL) $$s/$$module_srcdir/configure \
15531 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15532 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15533 --target=${target_alias} \
15534 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15535 $(STAGE4_CONFIGURE_FLAGS)
15536@endif gold-bootstrap
4fa63067 15537
a90ef4bf
JM
15538.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
15539maybe-configure-stageprofile-gold:
15540@if gold-bootstrap
15541maybe-configure-stageprofile-gold: configure-stageprofile-gold
15542configure-stageprofile-gold:
15543 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15544 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15545 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15547 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15548 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15549 $(HOST_EXPORTS) \
a90ef4bf
JM
15550 $(POSTSTAGE1_HOST_EXPORTS) \
15551 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
15552 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
15553 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
15554 echo Configuring stage profile in $(HOST_SUBDIR)/gold ; \
15555 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15556 cd $(HOST_SUBDIR)/gold || exit 1; \
15557 case $(srcdir) in \
15558 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15559 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15560 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15561 esac; \
1b6c0831
L
15562 module_srcdir=gold; \
15563 $(SHELL) $$s/$$module_srcdir/configure \
15564 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15565 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15566 --target=${target_alias} \
15567 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15568 $(STAGEprofile_CONFIGURE_FLAGS)
15569@endif gold-bootstrap
2a4cbe27 15570
a90ef4bf
JM
15571.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
15572maybe-configure-stagefeedback-gold:
15573@if gold-bootstrap
15574maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
15575configure-stagefeedback-gold:
15576 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15577 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15578 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15580 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15581 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15582 $(HOST_EXPORTS) \
a90ef4bf
JM
15583 $(POSTSTAGE1_HOST_EXPORTS) \
15584 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15585 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15586 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
15587 echo Configuring stage feedback in $(HOST_SUBDIR)/gold ; \
15588 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold ; \
15589 cd $(HOST_SUBDIR)/gold || exit 1; \
15590 case $(srcdir) in \
15591 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15592 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15593 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15594 esac; \
1b6c0831
L
15595 module_srcdir=gold; \
15596 $(SHELL) $$s/$$module_srcdir/configure \
15597 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15598 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15599 --target=${target_alias} \
15600 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15601 $(STAGEfeedback_CONFIGURE_FLAGS)
15602@endif gold-bootstrap
2a4cbe27 15603
56a8fe78 15604
56a8fe78 15605
56a8fe78 15606
6d389afc 15607
a90ef4bf
JM
15608.PHONY: all-gold maybe-all-gold
15609maybe-all-gold:
15610@if gcc-bootstrap
15611all-gold: stage_current
15612@endif gcc-bootstrap
15613@if gold
15614TARGET-gold=all
15615maybe-all-gold: all-gold
15616all-gold: configure-gold
15617 @r=`${PWD_COMMAND}`; export r; \
6d389afc 15618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15619 $(HOST_EXPORTS) \
15620 (cd $(HOST_SUBDIR)/gold && \
b3676d82 15621 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15622 $(TARGET-gold))
15623@endif gold
6d389afc 15624
6d389afc 15625
2a4cbe27 15626
a90ef4bf
JM
15627.PHONY: all-stage1-gold maybe-all-stage1-gold
15628.PHONY: clean-stage1-gold maybe-clean-stage1-gold
15629maybe-all-stage1-gold:
15630maybe-clean-stage1-gold:
15631@if gold-bootstrap
15632maybe-all-stage1-gold: all-stage1-gold
15633all-stage1: all-stage1-gold
15634TARGET-stage1-gold = $(TARGET-gold)
15635all-stage1-gold: configure-stage1-gold
15636 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15637 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15639 TFLAGS="$(STAGE1_TFLAGS)"; \
15640 $(HOST_EXPORTS) \
15641 cd $(HOST_SUBDIR)/gold && \
15642 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15643 CFLAGS="$(STAGE1_CFLAGS)" \
15644 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15645 LIBCFLAGS="$(LIBCFLAGS)" \
15646 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15647 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15648 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15649 $(EXTRA_HOST_FLAGS) \
15650 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15651 TFLAGS="$(STAGE1_TFLAGS)" \
15652 $(TARGET-stage1-gold)
2a4cbe27 15653
a90ef4bf
JM
15654maybe-clean-stage1-gold: clean-stage1-gold
15655clean-stage1: clean-stage1-gold
15656clean-stage1-gold:
15657 @if [ $(current_stage) = stage1 ]; then \
15658 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15659 else \
15660 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
15661 $(MAKE) stage1-start; \
15662 fi; \
15663 cd $(HOST_SUBDIR)/gold && \
15664 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15665 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15666@endif gold-bootstrap
2a4cbe27 15667
2a4cbe27 15668
a90ef4bf
JM
15669.PHONY: all-stage2-gold maybe-all-stage2-gold
15670.PHONY: clean-stage2-gold maybe-clean-stage2-gold
15671maybe-all-stage2-gold:
15672maybe-clean-stage2-gold:
15673@if gold-bootstrap
15674maybe-all-stage2-gold: all-stage2-gold
15675all-stage2: all-stage2-gold
15676TARGET-stage2-gold = $(TARGET-gold)
15677all-stage2-gold: configure-stage2-gold
15678 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15679 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15681 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 15682 $(HOST_EXPORTS) \
a90ef4bf
JM
15683 $(POSTSTAGE1_HOST_EXPORTS) \
15684 cd $(HOST_SUBDIR)/gold && \
15685 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15686 CFLAGS="$(STAGE2_CFLAGS)" \
15687 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15688 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15689 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15690 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15691 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15692 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15693 TFLAGS="$(STAGE2_TFLAGS)" \
15694 $(TARGET-stage2-gold)
2a4cbe27 15695
a90ef4bf
JM
15696maybe-clean-stage2-gold: clean-stage2-gold
15697clean-stage2: clean-stage2-gold
15698clean-stage2-gold:
15699 @if [ $(current_stage) = stage2 ]; then \
15700 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15701 else \
15702 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
15703 $(MAKE) stage2-start; \
15704 fi; \
15705 cd $(HOST_SUBDIR)/gold && \
b3676d82 15706 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15707@endif gold-bootstrap
2a4cbe27 15708
a3ca38d2 15709
a90ef4bf
JM
15710.PHONY: all-stage3-gold maybe-all-stage3-gold
15711.PHONY: clean-stage3-gold maybe-clean-stage3-gold
15712maybe-all-stage3-gold:
15713maybe-clean-stage3-gold:
15714@if gold-bootstrap
15715maybe-all-stage3-gold: all-stage3-gold
15716all-stage3: all-stage3-gold
15717TARGET-stage3-gold = $(TARGET-gold)
15718all-stage3-gold: configure-stage3-gold
15719 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15720 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15722 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 15723 $(HOST_EXPORTS) \
a90ef4bf
JM
15724 $(POSTSTAGE1_HOST_EXPORTS) \
15725 cd $(HOST_SUBDIR)/gold && \
15726 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15727 CFLAGS="$(STAGE3_CFLAGS)" \
15728 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15729 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15730 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15731 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15732 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15733 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15734 TFLAGS="$(STAGE3_TFLAGS)" \
15735 $(TARGET-stage3-gold)
2a4cbe27 15736
a90ef4bf
JM
15737maybe-clean-stage3-gold: clean-stage3-gold
15738clean-stage3: clean-stage3-gold
15739clean-stage3-gold:
15740 @if [ $(current_stage) = stage3 ]; then \
15741 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15742 else \
15743 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
15744 $(MAKE) stage3-start; \
15745 fi; \
15746 cd $(HOST_SUBDIR)/gold && \
b3676d82 15747 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15748@endif gold-bootstrap
2a4cbe27 15749
2a4cbe27 15750
a90ef4bf
JM
15751.PHONY: all-stage4-gold maybe-all-stage4-gold
15752.PHONY: clean-stage4-gold maybe-clean-stage4-gold
15753maybe-all-stage4-gold:
15754maybe-clean-stage4-gold:
15755@if gold-bootstrap
15756maybe-all-stage4-gold: all-stage4-gold
15757all-stage4: all-stage4-gold
15758TARGET-stage4-gold = $(TARGET-gold)
15759all-stage4-gold: configure-stage4-gold
15760 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15761 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15763 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 15764 $(HOST_EXPORTS) \
a90ef4bf
JM
15765 $(POSTSTAGE1_HOST_EXPORTS) \
15766 cd $(HOST_SUBDIR)/gold && \
15767 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15768 CFLAGS="$(STAGE4_CFLAGS)" \
15769 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15770 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15771 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15772 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15773 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15774 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15775 TFLAGS="$(STAGE4_TFLAGS)" \
15776 $(TARGET-stage4-gold)
2a4cbe27 15777
a90ef4bf
JM
15778maybe-clean-stage4-gold: clean-stage4-gold
15779clean-stage4: clean-stage4-gold
15780clean-stage4-gold:
15781 @if [ $(current_stage) = stage4 ]; then \
15782 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15783 else \
15784 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
15785 $(MAKE) stage4-start; \
15786 fi; \
15787 cd $(HOST_SUBDIR)/gold && \
b3676d82 15788 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15789@endif gold-bootstrap
2a4cbe27 15790
2a4cbe27 15791
a90ef4bf
JM
15792.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
15793.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
15794maybe-all-stageprofile-gold:
15795maybe-clean-stageprofile-gold:
15796@if gold-bootstrap
15797maybe-all-stageprofile-gold: all-stageprofile-gold
15798all-stageprofile: all-stageprofile-gold
15799TARGET-stageprofile-gold = $(TARGET-gold)
15800all-stageprofile-gold: configure-stageprofile-gold
15801 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15802 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15804 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 15805 $(HOST_EXPORTS) \
a90ef4bf
JM
15806 $(POSTSTAGE1_HOST_EXPORTS) \
15807 cd $(HOST_SUBDIR)/gold && \
15808 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15809 CFLAGS="$(STAGEprofile_CFLAGS)" \
15810 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
15811 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15812 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15813 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15814 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15815 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15816 TFLAGS="$(STAGEprofile_TFLAGS)" \
15817 $(TARGET-stageprofile-gold)
2a4cbe27 15818
a90ef4bf
JM
15819maybe-clean-stageprofile-gold: clean-stageprofile-gold
15820clean-stageprofile: clean-stageprofile-gold
15821clean-stageprofile-gold:
15822 @if [ $(current_stage) = stageprofile ]; then \
15823 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15824 else \
15825 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
15826 $(MAKE) stageprofile-start; \
15827 fi; \
15828 cd $(HOST_SUBDIR)/gold && \
b3676d82 15829 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15830@endif gold-bootstrap
2a4cbe27 15831
a7254363 15832
a90ef4bf
JM
15833.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
15834.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
15835maybe-all-stagefeedback-gold:
15836maybe-clean-stagefeedback-gold:
15837@if gold-bootstrap
15838maybe-all-stagefeedback-gold: all-stagefeedback-gold
15839all-stagefeedback: all-stagefeedback-gold
15840TARGET-stagefeedback-gold = $(TARGET-gold)
15841all-stagefeedback-gold: configure-stagefeedback-gold
15842 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 15843 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15845 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15846 $(HOST_EXPORTS) \
15847 $(POSTSTAGE1_HOST_EXPORTS) \
15848 cd $(HOST_SUBDIR)/gold && \
15849 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15850 CFLAGS="$(STAGEfeedback_CFLAGS)" \
15851 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
15852 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15853 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15854 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15855 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15856 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15857 TFLAGS="$(STAGEfeedback_TFLAGS)" \
15858 $(TARGET-stagefeedback-gold)
d545f33b 15859
a90ef4bf
JM
15860maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
15861clean-stagefeedback: clean-stagefeedback-gold
15862clean-stagefeedback-gold:
15863 @if [ $(current_stage) = stagefeedback ]; then \
15864 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15865 else \
15866 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
15867 $(MAKE) stagefeedback-start; \
15868 fi; \
15869 cd $(HOST_SUBDIR)/gold && \
b3676d82 15870 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15871@endif gold-bootstrap
d545f33b 15872
4fa63067 15873
a7254363 15874
d545f33b
PB
15875
15876
a90ef4bf
JM
15877.PHONY: check-gold maybe-check-gold
15878maybe-check-gold:
15879@if gold
15880maybe-check-gold: check-gold
4fa63067 15881
a90ef4bf 15882check-gold:
0aed8855 15883 @: $(MAKE); $(unstage)
4fa63067
NN
15884 @r=`${PWD_COMMAND}`; export r; \
15885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15886 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15887 (cd $(HOST_SUBDIR)/gold && \
f91ca6bc 15888 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15889
a90ef4bf 15890@endif gold
4fa63067 15891
a90ef4bf
JM
15892.PHONY: install-gold maybe-install-gold
15893maybe-install-gold:
15894@if gold
15895maybe-install-gold: install-gold
4fa63067 15896
a90ef4bf 15897install-gold: installdirs
0aed8855 15898 @: $(MAKE); $(unstage)
4fa63067
NN
15899 @r=`${PWD_COMMAND}`; export r; \
15900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15901 $(HOST_EXPORTS) \
a90ef4bf 15902 (cd $(HOST_SUBDIR)/gold && \
2da12f12 15903 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 15904
a90ef4bf 15905@endif gold
4fa63067 15906
a90ef4bf
JM
15907.PHONY: install-strip-gold maybe-install-strip-gold
15908maybe-install-strip-gold:
15909@if gold
15910maybe-install-strip-gold: install-strip-gold
9b980aa1 15911
a90ef4bf 15912install-strip-gold: installdirs
9b980aa1
RW
15913 @: $(MAKE); $(unstage)
15914 @r=`${PWD_COMMAND}`; export r; \
15915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15916 $(HOST_EXPORTS) \
a90ef4bf 15917 (cd $(HOST_SUBDIR)/gold && \
9b980aa1
RW
15918 $(MAKE) $(FLAGS_TO_PASS) install-strip)
15919
a90ef4bf 15920@endif gold
9b980aa1 15921
56a8fe78 15922# Other targets (info, dvi, pdf, etc.)
4fa63067 15923
a90ef4bf
JM
15924.PHONY: maybe-info-gold info-gold
15925maybe-info-gold:
15926@if gold
15927maybe-info-gold: info-gold
4fa63067 15928
a90ef4bf
JM
15929info-gold: \
15930 configure-gold
15931 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
15932 r=`${PWD_COMMAND}`; export r; \
15933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15934 $(HOST_EXPORTS) \
b813574b 15935 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15937 done; \
a90ef4bf
JM
15938 echo "Doing info in gold" ; \
15939 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
15940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15942 "RANLIB=$${RANLIB}" \
0c24b341 15943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15944 info) \
2a4cbe27
NN
15945 || exit 1
15946
a90ef4bf 15947@endif gold
2a4cbe27 15948
a90ef4bf
JM
15949.PHONY: maybe-dvi-gold dvi-gold
15950maybe-dvi-gold:
15951@if gold
15952maybe-dvi-gold: dvi-gold
2a4cbe27 15953
a90ef4bf
JM
15954dvi-gold: \
15955 configure-gold
15956 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
15957 r=`${PWD_COMMAND}`; export r; \
15958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15959 $(HOST_EXPORTS) \
b813574b 15960 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15962 done; \
a90ef4bf
JM
15963 echo "Doing dvi in gold" ; \
15964 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
15965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15967 "RANLIB=$${RANLIB}" \
0c24b341 15968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15969 dvi) \
2a4cbe27
NN
15970 || exit 1
15971
a90ef4bf 15972@endif gold
2a4cbe27 15973
a90ef4bf
JM
15974.PHONY: maybe-pdf-gold pdf-gold
15975maybe-pdf-gold:
15976@if gold
15977maybe-pdf-gold: pdf-gold
56a8fe78 15978
a90ef4bf
JM
15979pdf-gold: \
15980 configure-gold
15981 @[ -f ./gold/Makefile ] || exit 0; \
56a8fe78
DD
15982 r=`${PWD_COMMAND}`; export r; \
15983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15984 $(HOST_EXPORTS) \
15985 for flag in $(EXTRA_HOST_FLAGS) ; do \
15986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15987 done; \
a90ef4bf
JM
15988 echo "Doing pdf in gold" ; \
15989 (cd $(HOST_SUBDIR)/gold && \
56a8fe78
DD
15990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15992 "RANLIB=$${RANLIB}" \
0c24b341 15993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15994 pdf) \
15995 || exit 1
15996
a90ef4bf 15997@endif gold
56a8fe78 15998
a90ef4bf
JM
15999.PHONY: maybe-html-gold html-gold
16000maybe-html-gold:
16001@if gold
16002maybe-html-gold: html-gold
6d389afc 16003
a90ef4bf
JM
16004html-gold: \
16005 configure-gold
16006 @[ -f ./gold/Makefile ] || exit 0; \
6d389afc
MS
16007 r=`${PWD_COMMAND}`; export r; \
16008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
16009 $(HOST_EXPORTS) \
16010 for flag in $(EXTRA_HOST_FLAGS) ; do \
16011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16012 done; \
a90ef4bf
JM
16013 echo "Doing html in gold" ; \
16014 (cd $(HOST_SUBDIR)/gold && \
6d389afc
MS
16015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16017 "RANLIB=$${RANLIB}" \
0c24b341 16018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
16019 html) \
16020 || exit 1
16021
a90ef4bf 16022@endif gold
6d389afc 16023
a90ef4bf
JM
16024.PHONY: maybe-TAGS-gold TAGS-gold
16025maybe-TAGS-gold:
16026@if gold
16027maybe-TAGS-gold: TAGS-gold
2a4cbe27 16028
a90ef4bf
JM
16029TAGS-gold: \
16030 configure-gold
16031 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16032 r=`${PWD_COMMAND}`; export r; \
16033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16034 $(HOST_EXPORTS) \
b813574b 16035 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16037 done; \
a90ef4bf
JM
16038 echo "Doing TAGS in gold" ; \
16039 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16042 "RANLIB=$${RANLIB}" \
0c24b341 16043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16044 TAGS) \
2a4cbe27
NN
16045 || exit 1
16046
a90ef4bf 16047@endif gold
2a4cbe27 16048
a90ef4bf
JM
16049.PHONY: maybe-install-info-gold install-info-gold
16050maybe-install-info-gold:
16051@if gold
16052maybe-install-info-gold: install-info-gold
b813574b 16053
a90ef4bf
JM
16054install-info-gold: \
16055 configure-gold \
16056 info-gold
16057 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16058 r=`${PWD_COMMAND}`; export r; \
16059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16060 $(HOST_EXPORTS) \
b813574b 16061 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16063 done; \
a90ef4bf
JM
16064 echo "Doing install-info in gold" ; \
16065 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16068 "RANLIB=$${RANLIB}" \
0c24b341 16069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16070 install-info) \
2a4cbe27
NN
16071 || exit 1
16072
a90ef4bf 16073@endif gold
2a4cbe27 16074
a90ef4bf
JM
16075.PHONY: maybe-install-pdf-gold install-pdf-gold
16076maybe-install-pdf-gold:
16077@if gold
16078maybe-install-pdf-gold: install-pdf-gold
a3ca38d2 16079
a90ef4bf
JM
16080install-pdf-gold: \
16081 configure-gold \
16082 pdf-gold
16083 @[ -f ./gold/Makefile ] || exit 0; \
a3ca38d2
DD
16084 r=`${PWD_COMMAND}`; export r; \
16085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16086 $(HOST_EXPORTS) \
16087 for flag in $(EXTRA_HOST_FLAGS) ; do \
16088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16089 done; \
a90ef4bf
JM
16090 echo "Doing install-pdf in gold" ; \
16091 (cd $(HOST_SUBDIR)/gold && \
a3ca38d2
DD
16092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16094 "RANLIB=$${RANLIB}" \
0c24b341 16095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16096 install-pdf) \
16097 || exit 1
16098
a90ef4bf 16099@endif gold
a3ca38d2 16100
a90ef4bf
JM
16101.PHONY: maybe-install-html-gold install-html-gold
16102maybe-install-html-gold:
16103@if gold
16104maybe-install-html-gold: install-html-gold
108a6f8e 16105
a90ef4bf
JM
16106install-html-gold: \
16107 configure-gold \
16108 html-gold
16109 @[ -f ./gold/Makefile ] || exit 0; \
108a6f8e
CD
16110 r=`${PWD_COMMAND}`; export r; \
16111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16112 $(HOST_EXPORTS) \
16113 for flag in $(EXTRA_HOST_FLAGS) ; do \
16114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16115 done; \
a90ef4bf
JM
16116 echo "Doing install-html in gold" ; \
16117 (cd $(HOST_SUBDIR)/gold && \
108a6f8e
CD
16118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16120 "RANLIB=$${RANLIB}" \
0c24b341 16121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
16122 install-html) \
16123 || exit 1
16124
a90ef4bf 16125@endif gold
108a6f8e 16126
a90ef4bf
JM
16127.PHONY: maybe-installcheck-gold installcheck-gold
16128maybe-installcheck-gold:
16129@if gold
16130maybe-installcheck-gold: installcheck-gold
2a4cbe27 16131
a90ef4bf
JM
16132installcheck-gold: \
16133 configure-gold
16134 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16135 r=`${PWD_COMMAND}`; export r; \
16136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16137 $(HOST_EXPORTS) \
b813574b 16138 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16140 done; \
a90ef4bf
JM
16141 echo "Doing installcheck in gold" ; \
16142 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16145 "RANLIB=$${RANLIB}" \
0c24b341 16146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16147 installcheck) \
2a4cbe27
NN
16148 || exit 1
16149
a90ef4bf 16150@endif gold
2a4cbe27 16151
a90ef4bf
JM
16152.PHONY: maybe-mostlyclean-gold mostlyclean-gold
16153maybe-mostlyclean-gold:
16154@if gold
16155maybe-mostlyclean-gold: mostlyclean-gold
2a4cbe27 16156
a90ef4bf
JM
16157mostlyclean-gold:
16158 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16159 r=`${PWD_COMMAND}`; export r; \
16160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16161 $(HOST_EXPORTS) \
b813574b 16162 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16164 done; \
a90ef4bf
JM
16165 echo "Doing mostlyclean in gold" ; \
16166 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16169 "RANLIB=$${RANLIB}" \
0c24b341 16170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16171 mostlyclean) \
2a4cbe27
NN
16172 || exit 1
16173
a90ef4bf 16174@endif gold
2a4cbe27 16175
a90ef4bf
JM
16176.PHONY: maybe-clean-gold clean-gold
16177maybe-clean-gold:
16178@if gold
16179maybe-clean-gold: clean-gold
2a4cbe27 16180
a90ef4bf
JM
16181clean-gold:
16182 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16183 r=`${PWD_COMMAND}`; export r; \
16184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16185 $(HOST_EXPORTS) \
b813574b 16186 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16188 done; \
a90ef4bf
JM
16189 echo "Doing clean in gold" ; \
16190 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16193 "RANLIB=$${RANLIB}" \
0c24b341 16194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16195 clean) \
2a4cbe27
NN
16196 || exit 1
16197
a90ef4bf 16198@endif gold
2a4cbe27 16199
a90ef4bf
JM
16200.PHONY: maybe-distclean-gold distclean-gold
16201maybe-distclean-gold:
16202@if gold
16203maybe-distclean-gold: distclean-gold
2a4cbe27 16204
a90ef4bf
JM
16205distclean-gold:
16206 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16207 r=`${PWD_COMMAND}`; export r; \
16208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16209 $(HOST_EXPORTS) \
b813574b 16210 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16212 done; \
a90ef4bf
JM
16213 echo "Doing distclean in gold" ; \
16214 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16217 "RANLIB=$${RANLIB}" \
0c24b341 16218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16219 distclean) \
2a4cbe27
NN
16220 || exit 1
16221
a90ef4bf 16222@endif gold
2a4cbe27 16223
a90ef4bf
JM
16224.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
16225maybe-maintainer-clean-gold:
16226@if gold
16227maybe-maintainer-clean-gold: maintainer-clean-gold
2a4cbe27 16228
a90ef4bf
JM
16229maintainer-clean-gold:
16230 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16231 r=`${PWD_COMMAND}`; export r; \
16232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16233 $(HOST_EXPORTS) \
b813574b 16234 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16236 done; \
a90ef4bf
JM
16237 echo "Doing maintainer-clean in gold" ; \
16238 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16241 "RANLIB=$${RANLIB}" \
0c24b341 16242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16243 maintainer-clean) \
4fa63067
NN
16244 || exit 1
16245
a90ef4bf 16246@endif gold
4fa63067
NN
16247
16248
a7254363 16249
a90ef4bf
JM
16250.PHONY: configure-gprof maybe-configure-gprof
16251maybe-configure-gprof:
4b900473 16252@if gcc-bootstrap
a90ef4bf 16253configure-gprof: stage_current
4b900473 16254@endif gcc-bootstrap
a90ef4bf
JM
16255@if gprof
16256maybe-configure-gprof: configure-gprof
16257configure-gprof:
16258 @: $(MAKE); $(unstage)
4b900473
PB
16259 @r=`${PWD_COMMAND}`; export r; \
16260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
16261 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
16262 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof ; \
1f53ca9a 16263 $(HOST_EXPORTS) \
a90ef4bf
JM
16264 echo Configuring in $(HOST_SUBDIR)/gprof; \
16265 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
4b900473
PB
16266 case $(srcdir) in \
16267 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16268 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
4b900473
PB
16269 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16270 esac; \
1b6c0831
L
16271 module_srcdir=gprof; \
16272 $(SHELL) \
16273 $$s/$$module_srcdir/configure \
16274 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16275 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16276 --target=${target_alias} \
4b900473 16277 || exit 1
a90ef4bf 16278@endif gprof
4b900473
PB
16279
16280
16281
4b900473 16282
a90ef4bf
JM
16283
16284.PHONY: all-gprof maybe-all-gprof
16285maybe-all-gprof:
16286@if gcc-bootstrap
16287all-gprof: stage_current
16288@endif gcc-bootstrap
16289@if gprof
16290TARGET-gprof=all
16291maybe-all-gprof: all-gprof
16292all-gprof: configure-gprof
16293 @: $(MAKE); $(unstage)
4b900473
PB
16294 @r=`${PWD_COMMAND}`; export r; \
16295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16296 $(HOST_EXPORTS) \
a90ef4bf 16297 (cd $(HOST_SUBDIR)/gprof && \
b3676d82 16298 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16299 $(TARGET-gprof))
16300@endif gprof
4b900473
PB
16301
16302
4b900473 16303
4b900473 16304
a90ef4bf
JM
16305.PHONY: check-gprof maybe-check-gprof
16306maybe-check-gprof:
16307@if gprof
16308maybe-check-gprof: check-gprof
4b900473 16309
a90ef4bf
JM
16310check-gprof:
16311 @: $(MAKE); $(unstage)
4b900473
PB
16312 @r=`${PWD_COMMAND}`; export r; \
16313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 16314 $(HOST_EXPORTS) \
a90ef4bf
JM
16315 (cd $(HOST_SUBDIR)/gprof && \
16316 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 16317
a90ef4bf 16318@endif gprof
4b900473 16319
a90ef4bf
JM
16320.PHONY: install-gprof maybe-install-gprof
16321maybe-install-gprof:
16322@if gprof
16323maybe-install-gprof: install-gprof
4b900473 16324
a90ef4bf
JM
16325install-gprof: installdirs
16326 @: $(MAKE); $(unstage)
4b900473
PB
16327 @r=`${PWD_COMMAND}`; export r; \
16328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16329 $(HOST_EXPORTS) \
a90ef4bf
JM
16330 (cd $(HOST_SUBDIR)/gprof && \
16331 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 16332
a90ef4bf 16333@endif gprof
4b900473 16334
a90ef4bf
JM
16335.PHONY: install-strip-gprof maybe-install-strip-gprof
16336maybe-install-strip-gprof:
16337@if gprof
16338maybe-install-strip-gprof: install-strip-gprof
4b900473 16339
a90ef4bf 16340install-strip-gprof: installdirs
4b900473
PB
16341 @: $(MAKE); $(unstage)
16342 @r=`${PWD_COMMAND}`; export r; \
16343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16344 $(HOST_EXPORTS) \
a90ef4bf
JM
16345 (cd $(HOST_SUBDIR)/gprof && \
16346 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 16347
a90ef4bf 16348@endif gprof
9b980aa1 16349
4b900473
PB
16350# Other targets (info, dvi, pdf, etc.)
16351
a90ef4bf
JM
16352.PHONY: maybe-info-gprof info-gprof
16353maybe-info-gprof:
16354@if gprof
16355maybe-info-gprof: info-gprof
4b900473 16356
a90ef4bf
JM
16357info-gprof: \
16358 configure-gprof
16359 @: $(MAKE); $(unstage)
16360 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16361 r=`${PWD_COMMAND}`; export r; \
16362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16363 $(HOST_EXPORTS) \
16364 for flag in $(EXTRA_HOST_FLAGS) ; do \
16365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16366 done; \
a90ef4bf
JM
16367 echo "Doing info in gprof" ; \
16368 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16371 "RANLIB=$${RANLIB}" \
0c24b341 16372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16373 info) \
16374 || exit 1
16375
a90ef4bf 16376@endif gprof
4b900473 16377
a90ef4bf
JM
16378.PHONY: maybe-dvi-gprof dvi-gprof
16379maybe-dvi-gprof:
16380@if gprof
16381maybe-dvi-gprof: dvi-gprof
4b900473 16382
a90ef4bf
JM
16383dvi-gprof: \
16384 configure-gprof
16385 @: $(MAKE); $(unstage)
16386 @[ -f ./gprof/Makefile ] || exit 0; \
16387 r=`${PWD_COMMAND}`; export r; \
16388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16389 $(HOST_EXPORTS) \
4b900473
PB
16390 for flag in $(EXTRA_HOST_FLAGS) ; do \
16391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16392 done; \
a90ef4bf
JM
16393 echo "Doing dvi in gprof" ; \
16394 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16397 "RANLIB=$${RANLIB}" \
0c24b341 16398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16399 dvi) \
16400 || exit 1
16401
a90ef4bf 16402@endif gprof
4b900473 16403
a90ef4bf
JM
16404.PHONY: maybe-pdf-gprof pdf-gprof
16405maybe-pdf-gprof:
16406@if gprof
16407maybe-pdf-gprof: pdf-gprof
4b900473 16408
a90ef4bf
JM
16409pdf-gprof: \
16410 configure-gprof
16411 @: $(MAKE); $(unstage)
16412 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16413 r=`${PWD_COMMAND}`; export r; \
16414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16415 $(HOST_EXPORTS) \
16416 for flag in $(EXTRA_HOST_FLAGS) ; do \
16417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16418 done; \
a90ef4bf
JM
16419 echo "Doing pdf in gprof" ; \
16420 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16423 "RANLIB=$${RANLIB}" \
0c24b341 16424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16425 pdf) \
16426 || exit 1
16427
a90ef4bf 16428@endif gprof
4b900473 16429
a90ef4bf
JM
16430.PHONY: maybe-html-gprof html-gprof
16431maybe-html-gprof:
16432@if gprof
16433maybe-html-gprof: html-gprof
4b900473 16434
a90ef4bf
JM
16435html-gprof: \
16436 configure-gprof
16437 @: $(MAKE); $(unstage)
16438 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16439 r=`${PWD_COMMAND}`; export r; \
16440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16441 $(HOST_EXPORTS) \
16442 for flag in $(EXTRA_HOST_FLAGS) ; do \
16443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16444 done; \
a90ef4bf
JM
16445 echo "Doing html in gprof" ; \
16446 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16449 "RANLIB=$${RANLIB}" \
0c24b341 16450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16451 html) \
16452 || exit 1
16453
a90ef4bf 16454@endif gprof
4b900473 16455
a90ef4bf
JM
16456.PHONY: maybe-TAGS-gprof TAGS-gprof
16457maybe-TAGS-gprof:
16458@if gprof
16459maybe-TAGS-gprof: TAGS-gprof
4b900473 16460
a90ef4bf
JM
16461TAGS-gprof: \
16462 configure-gprof
16463 @: $(MAKE); $(unstage)
16464 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16465 r=`${PWD_COMMAND}`; export r; \
16466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16467 $(HOST_EXPORTS) \
16468 for flag in $(EXTRA_HOST_FLAGS) ; do \
16469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16470 done; \
a90ef4bf
JM
16471 echo "Doing TAGS in gprof" ; \
16472 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16475 "RANLIB=$${RANLIB}" \
0c24b341 16476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16477 TAGS) \
16478 || exit 1
16479
a90ef4bf 16480@endif gprof
4b900473 16481
a90ef4bf
JM
16482.PHONY: maybe-install-info-gprof install-info-gprof
16483maybe-install-info-gprof:
16484@if gprof
16485maybe-install-info-gprof: install-info-gprof
4b900473 16486
a90ef4bf
JM
16487install-info-gprof: \
16488 configure-gprof \
16489 info-gprof
16490 @: $(MAKE); $(unstage)
16491 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16492 r=`${PWD_COMMAND}`; export r; \
16493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16494 $(HOST_EXPORTS) \
16495 for flag in $(EXTRA_HOST_FLAGS) ; do \
16496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16497 done; \
a90ef4bf
JM
16498 echo "Doing install-info in gprof" ; \
16499 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16502 "RANLIB=$${RANLIB}" \
0c24b341 16503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16504 install-info) \
16505 || exit 1
16506
a90ef4bf 16507@endif gprof
4b900473 16508
a90ef4bf
JM
16509.PHONY: maybe-install-pdf-gprof install-pdf-gprof
16510maybe-install-pdf-gprof:
16511@if gprof
16512maybe-install-pdf-gprof: install-pdf-gprof
a3ca38d2 16513
a90ef4bf
JM
16514install-pdf-gprof: \
16515 configure-gprof \
16516 pdf-gprof
16517 @: $(MAKE); $(unstage)
16518 @[ -f ./gprof/Makefile ] || exit 0; \
a3ca38d2
DD
16519 r=`${PWD_COMMAND}`; export r; \
16520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16521 $(HOST_EXPORTS) \
16522 for flag in $(EXTRA_HOST_FLAGS) ; do \
16523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16524 done; \
a90ef4bf
JM
16525 echo "Doing install-pdf in gprof" ; \
16526 (cd $(HOST_SUBDIR)/gprof && \
a3ca38d2
DD
16527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16529 "RANLIB=$${RANLIB}" \
0c24b341 16530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16531 install-pdf) \
16532 || exit 1
16533
a90ef4bf 16534@endif gprof
a3ca38d2 16535
a90ef4bf
JM
16536.PHONY: maybe-install-html-gprof install-html-gprof
16537maybe-install-html-gprof:
16538@if gprof
16539maybe-install-html-gprof: install-html-gprof
4b900473 16540
a90ef4bf
JM
16541install-html-gprof: \
16542 configure-gprof \
16543 html-gprof
16544 @: $(MAKE); $(unstage)
16545 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16546 r=`${PWD_COMMAND}`; export r; \
16547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16548 $(HOST_EXPORTS) \
16549 for flag in $(EXTRA_HOST_FLAGS) ; do \
16550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16551 done; \
a90ef4bf
JM
16552 echo "Doing install-html in gprof" ; \
16553 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16556 "RANLIB=$${RANLIB}" \
0c24b341 16557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16558 install-html) \
16559 || exit 1
16560
a90ef4bf 16561@endif gprof
4b900473 16562
a90ef4bf
JM
16563.PHONY: maybe-installcheck-gprof installcheck-gprof
16564maybe-installcheck-gprof:
16565@if gprof
16566maybe-installcheck-gprof: installcheck-gprof
4b900473 16567
a90ef4bf
JM
16568installcheck-gprof: \
16569 configure-gprof
16570 @: $(MAKE); $(unstage)
16571 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16572 r=`${PWD_COMMAND}`; export r; \
16573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16574 $(HOST_EXPORTS) \
16575 for flag in $(EXTRA_HOST_FLAGS) ; do \
16576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16577 done; \
a90ef4bf
JM
16578 echo "Doing installcheck in gprof" ; \
16579 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16582 "RANLIB=$${RANLIB}" \
16583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16584 installcheck) \
16585 || exit 1
16586
a90ef4bf 16587@endif gprof
e28c595f 16588
a90ef4bf
JM
16589.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
16590maybe-mostlyclean-gprof:
16591@if gprof
16592maybe-mostlyclean-gprof: mostlyclean-gprof
e28c595f 16593
a90ef4bf
JM
16594mostlyclean-gprof:
16595 @: $(MAKE); $(unstage)
16596 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16597 r=`${PWD_COMMAND}`; export r; \
16598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16599 $(HOST_EXPORTS) \
16600 for flag in $(EXTRA_HOST_FLAGS) ; do \
16601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16602 done; \
a90ef4bf
JM
16603 echo "Doing mostlyclean in gprof" ; \
16604 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16607 "RANLIB=$${RANLIB}" \
16608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16609 mostlyclean) \
16610 || exit 1
16611
a90ef4bf 16612@endif gprof
e28c595f 16613
a90ef4bf
JM
16614.PHONY: maybe-clean-gprof clean-gprof
16615maybe-clean-gprof:
16616@if gprof
16617maybe-clean-gprof: clean-gprof
e28c595f 16618
a90ef4bf
JM
16619clean-gprof:
16620 @: $(MAKE); $(unstage)
16621 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16622 r=`${PWD_COMMAND}`; export r; \
16623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16624 $(HOST_EXPORTS) \
16625 for flag in $(EXTRA_HOST_FLAGS) ; do \
16626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16627 done; \
a90ef4bf
JM
16628 echo "Doing clean in gprof" ; \
16629 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16632 "RANLIB=$${RANLIB}" \
16633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16634 clean) \
16635 || exit 1
16636
a90ef4bf 16637@endif gprof
e28c595f 16638
a90ef4bf
JM
16639.PHONY: maybe-distclean-gprof distclean-gprof
16640maybe-distclean-gprof:
16641@if gprof
16642maybe-distclean-gprof: distclean-gprof
e28c595f 16643
a90ef4bf
JM
16644distclean-gprof:
16645 @: $(MAKE); $(unstage)
16646 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16647 r=`${PWD_COMMAND}`; export r; \
16648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16649 $(HOST_EXPORTS) \
16650 for flag in $(EXTRA_HOST_FLAGS) ; do \
16651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16652 done; \
a90ef4bf
JM
16653 echo "Doing distclean in gprof" ; \
16654 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16657 "RANLIB=$${RANLIB}" \
16658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16659 distclean) \
16660 || exit 1
16661
a90ef4bf 16662@endif gprof
e28c595f 16663
a90ef4bf
JM
16664.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
16665maybe-maintainer-clean-gprof:
16666@if gprof
16667maybe-maintainer-clean-gprof: maintainer-clean-gprof
e28c595f 16668
a90ef4bf
JM
16669maintainer-clean-gprof:
16670 @: $(MAKE); $(unstage)
16671 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16672 r=`${PWD_COMMAND}`; export r; \
16673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16674 $(HOST_EXPORTS) \
16675 for flag in $(EXTRA_HOST_FLAGS) ; do \
16676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16677 done; \
a90ef4bf
JM
16678 echo "Doing maintainer-clean in gprof" ; \
16679 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16682 "RANLIB=$${RANLIB}" \
16683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16684 maintainer-clean) \
16685 || exit 1
16686
a90ef4bf 16687@endif gprof
e28c595f
JM
16688
16689
16690
a90ef4bf
JM
16691.PHONY: configure-intl maybe-configure-intl
16692maybe-configure-intl:
e28c595f 16693@if gcc-bootstrap
a90ef4bf 16694configure-intl: stage_current
e28c595f 16695@endif gcc-bootstrap
a90ef4bf
JM
16696@if intl
16697maybe-configure-intl: configure-intl
16698configure-intl:
e28c595f
JM
16699 @r=`${PWD_COMMAND}`; export r; \
16700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
16701 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
16702 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
1f53ca9a 16703 $(HOST_EXPORTS) \
a90ef4bf
JM
16704 echo Configuring in $(HOST_SUBDIR)/intl; \
16705 cd "$(HOST_SUBDIR)/intl" || exit 1; \
e28c595f
JM
16706 case $(srcdir) in \
16707 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16708 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16709 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16710 esac; \
1b6c0831
L
16711 module_srcdir=intl; \
16712 $(SHELL) \
16713 $$s/$$module_srcdir/configure \
16714 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16715 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16716 --target=${target_alias} \
e28c595f 16717 || exit 1
a90ef4bf 16718@endif intl
e28c595f
JM
16719
16720
16721
a90ef4bf
JM
16722.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16723maybe-configure-stage1-intl:
16724@if intl-bootstrap
16725maybe-configure-stage1-intl: configure-stage1-intl
16726configure-stage1-intl:
e28c595f 16727 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 16728 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16729 @r=`${PWD_COMMAND}`; export r; \
16730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16731 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 16732 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
1b05fbbd 16733 $(HOST_EXPORTS) \
e28c595f 16734 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16735 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16736 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
16737 echo Configuring stage 1 in $(HOST_SUBDIR)/intl ; \
16738 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16739 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16740 case $(srcdir) in \
16741 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16742 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16743 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16744 esac; \
1b6c0831
L
16745 module_srcdir=intl; \
16746 $(SHELL) $$s/$$module_srcdir/configure \
16747 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16748 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16749 --target=${target_alias} \
16750 \
a90ef4bf
JM
16751 $(STAGE1_CONFIGURE_FLAGS)
16752@endif intl-bootstrap
e28c595f 16753
a90ef4bf
JM
16754.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16755maybe-configure-stage2-intl:
16756@if intl-bootstrap
16757maybe-configure-stage2-intl: configure-stage2-intl
16758configure-stage2-intl:
e28c595f 16759 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 16760 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16761 @r=`${PWD_COMMAND}`; export r; \
16762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16763 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 16764 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16765 $(HOST_EXPORTS) \
1b05fbbd 16766 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16767 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16768 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16769 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
16770 echo Configuring stage 2 in $(HOST_SUBDIR)/intl ; \
16771 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16772 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16773 case $(srcdir) in \
16774 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16775 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16776 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16777 esac; \
1b6c0831
L
16778 module_srcdir=intl; \
16779 $(SHELL) $$s/$$module_srcdir/configure \
16780 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16781 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16782 --target=${target_alias} \
16783 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16784 $(STAGE2_CONFIGURE_FLAGS)
16785@endif intl-bootstrap
e28c595f 16786
a90ef4bf
JM
16787.PHONY: configure-stage3-intl maybe-configure-stage3-intl
16788maybe-configure-stage3-intl:
16789@if intl-bootstrap
16790maybe-configure-stage3-intl: configure-stage3-intl
16791configure-stage3-intl:
e28c595f 16792 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 16793 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16794 @r=`${PWD_COMMAND}`; export r; \
16795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16796 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 16797 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16798 $(HOST_EXPORTS) \
1b05fbbd 16799 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16800 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16801 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
16802 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
16803 echo Configuring stage 3 in $(HOST_SUBDIR)/intl ; \
16804 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16805 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16806 case $(srcdir) in \
16807 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16808 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16809 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16810 esac; \
1b6c0831
L
16811 module_srcdir=intl; \
16812 $(SHELL) $$s/$$module_srcdir/configure \
16813 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16814 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16815 --target=${target_alias} \
16816 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16817 $(STAGE3_CONFIGURE_FLAGS)
16818@endif intl-bootstrap
e28c595f 16819
a90ef4bf
JM
16820.PHONY: configure-stage4-intl maybe-configure-stage4-intl
16821maybe-configure-stage4-intl:
16822@if intl-bootstrap
16823maybe-configure-stage4-intl: configure-stage4-intl
16824configure-stage4-intl:
e28c595f 16825 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 16826 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16827 @r=`${PWD_COMMAND}`; export r; \
16828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16829 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 16830 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16831 $(HOST_EXPORTS) \
1b05fbbd 16832 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16833 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16834 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
16835 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
16836 echo Configuring stage 4 in $(HOST_SUBDIR)/intl ; \
16837 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16838 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16839 case $(srcdir) in \
16840 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16841 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16842 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16843 esac; \
1b6c0831
L
16844 module_srcdir=intl; \
16845 $(SHELL) $$s/$$module_srcdir/configure \
16846 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16847 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16848 --target=${target_alias} \
16849 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16850 $(STAGE4_CONFIGURE_FLAGS)
16851@endif intl-bootstrap
e28c595f 16852
a90ef4bf
JM
16853.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
16854maybe-configure-stageprofile-intl:
16855@if intl-bootstrap
16856maybe-configure-stageprofile-intl: configure-stageprofile-intl
16857configure-stageprofile-intl:
e28c595f 16858 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 16859 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16860 @r=`${PWD_COMMAND}`; export r; \
16861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16862 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 16863 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16864 $(HOST_EXPORTS) \
1b05fbbd
AO
16865 $(POSTSTAGE1_HOST_EXPORTS) \
16866 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16867 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
16868 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
16869 echo Configuring stage profile in $(HOST_SUBDIR)/intl ; \
16870 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16871 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16872 case $(srcdir) in \
16873 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16874 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16875 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16876 esac; \
1b6c0831
L
16877 module_srcdir=intl; \
16878 $(SHELL) $$s/$$module_srcdir/configure \
16879 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16880 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16881 --target=${target_alias} \
16882 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16883 $(STAGEprofile_CONFIGURE_FLAGS)
16884@endif intl-bootstrap
e28c595f 16885
a90ef4bf
JM
16886.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
16887maybe-configure-stagefeedback-intl:
16888@if intl-bootstrap
16889maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
16890configure-stagefeedback-intl:
e28c595f 16891 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 16892 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16893 @r=`${PWD_COMMAND}`; export r; \
16894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16895 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 16896 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16897 $(HOST_EXPORTS) \
1b05fbbd
AO
16898 $(POSTSTAGE1_HOST_EXPORTS) \
16899 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16900 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
16901 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
16902 echo Configuring stage feedback in $(HOST_SUBDIR)/intl ; \
16903 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
16904 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16905 case $(srcdir) in \
16906 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16907 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16908 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16909 esac; \
1b6c0831
L
16910 module_srcdir=intl; \
16911 $(SHELL) $$s/$$module_srcdir/configure \
16912 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16913 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16914 --target=${target_alias} \
16915 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16916 $(STAGEfeedback_CONFIGURE_FLAGS)
16917@endif intl-bootstrap
e28c595f
JM
16918
16919
16920
16921
16922
a90ef4bf
JM
16923.PHONY: all-intl maybe-all-intl
16924maybe-all-intl:
e28c595f 16925@if gcc-bootstrap
a90ef4bf 16926all-intl: stage_current
e28c595f 16927@endif gcc-bootstrap
a90ef4bf
JM
16928@if intl
16929TARGET-intl=all
16930maybe-all-intl: all-intl
16931all-intl: configure-intl
e28c595f
JM
16932 @r=`${PWD_COMMAND}`; export r; \
16933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16934 $(HOST_EXPORTS) \
a90ef4bf 16935 (cd $(HOST_SUBDIR)/intl && \
b3676d82 16936 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16937 $(TARGET-intl))
16938@endif intl
e28c595f
JM
16939
16940
16941
a90ef4bf
JM
16942.PHONY: all-stage1-intl maybe-all-stage1-intl
16943.PHONY: clean-stage1-intl maybe-clean-stage1-intl
16944maybe-all-stage1-intl:
16945maybe-clean-stage1-intl:
16946@if intl-bootstrap
16947maybe-all-stage1-intl: all-stage1-intl
16948all-stage1: all-stage1-intl
16949TARGET-stage1-intl = $(TARGET-intl)
16950all-stage1-intl: configure-stage1-intl
e28c595f
JM
16951 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
16952 @r=`${PWD_COMMAND}`; export r; \
16953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16954 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 16955 $(HOST_EXPORTS) \
a90ef4bf 16956 cd $(HOST_SUBDIR)/intl && \
e28c595f 16957 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 16958 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 16959 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
16960 LIBCFLAGS="$(LIBCFLAGS)" \
16961 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16962 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16963 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
16964 $(EXTRA_HOST_FLAGS) \
16965 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 16966 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 16967 $(TARGET-stage1-intl)
e28c595f 16968
a90ef4bf
JM
16969maybe-clean-stage1-intl: clean-stage1-intl
16970clean-stage1: clean-stage1-intl
16971clean-stage1-intl:
e28c595f 16972 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 16973 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 16974 else \
a90ef4bf 16975 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
e28c595f
JM
16976 $(MAKE) stage1-start; \
16977 fi; \
a90ef4bf 16978 cd $(HOST_SUBDIR)/intl && \
e28c595f 16979 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 16980 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 16981@endif intl-bootstrap
e28c595f
JM
16982
16983
a90ef4bf
JM
16984.PHONY: all-stage2-intl maybe-all-stage2-intl
16985.PHONY: clean-stage2-intl maybe-clean-stage2-intl
16986maybe-all-stage2-intl:
16987maybe-clean-stage2-intl:
16988@if intl-bootstrap
16989maybe-all-stage2-intl: all-stage2-intl
16990all-stage2: all-stage2-intl
16991TARGET-stage2-intl = $(TARGET-intl)
16992all-stage2-intl: configure-stage2-intl
e28c595f
JM
16993 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
16994 @r=`${PWD_COMMAND}`; export r; \
16995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16996 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 16997 $(HOST_EXPORTS) \
1f53ca9a 16998 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 16999 cd $(HOST_SUBDIR)/intl && \
e28c595f 17000 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17001 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 17002 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
17003 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17004 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17005 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17006 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17007 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17008 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 17009 $(TARGET-stage2-intl)
e28c595f 17010
a90ef4bf
JM
17011maybe-clean-stage2-intl: clean-stage2-intl
17012clean-stage2: clean-stage2-intl
17013clean-stage2-intl:
e28c595f 17014 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 17015 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17016 else \
a90ef4bf 17017 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
e28c595f
JM
17018 $(MAKE) stage2-start; \
17019 fi; \
a90ef4bf 17020 cd $(HOST_SUBDIR)/intl && \
b3676d82 17021 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17022@endif intl-bootstrap
e28c595f
JM
17023
17024
a90ef4bf
JM
17025.PHONY: all-stage3-intl maybe-all-stage3-intl
17026.PHONY: clean-stage3-intl maybe-clean-stage3-intl
17027maybe-all-stage3-intl:
17028maybe-clean-stage3-intl:
17029@if intl-bootstrap
17030maybe-all-stage3-intl: all-stage3-intl
17031all-stage3: all-stage3-intl
17032TARGET-stage3-intl = $(TARGET-intl)
17033all-stage3-intl: configure-stage3-intl
e28c595f
JM
17034 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17035 @r=`${PWD_COMMAND}`; export r; \
17036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17037 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 17038 $(HOST_EXPORTS) \
1f53ca9a 17039 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17040 cd $(HOST_SUBDIR)/intl && \
e28c595f 17041 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17042 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 17043 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
17044 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17045 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17046 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17047 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17048 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17049 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 17050 $(TARGET-stage3-intl)
e28c595f 17051
a90ef4bf
JM
17052maybe-clean-stage3-intl: clean-stage3-intl
17053clean-stage3: clean-stage3-intl
17054clean-stage3-intl:
e28c595f 17055 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 17056 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17057 else \
a90ef4bf 17058 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
e28c595f
JM
17059 $(MAKE) stage3-start; \
17060 fi; \
a90ef4bf 17061 cd $(HOST_SUBDIR)/intl && \
b3676d82 17062 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17063@endif intl-bootstrap
e28c595f
JM
17064
17065
a90ef4bf
JM
17066.PHONY: all-stage4-intl maybe-all-stage4-intl
17067.PHONY: clean-stage4-intl maybe-clean-stage4-intl
17068maybe-all-stage4-intl:
17069maybe-clean-stage4-intl:
17070@if intl-bootstrap
17071maybe-all-stage4-intl: all-stage4-intl
17072all-stage4: all-stage4-intl
17073TARGET-stage4-intl = $(TARGET-intl)
17074all-stage4-intl: configure-stage4-intl
e28c595f
JM
17075 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17076 @r=`${PWD_COMMAND}`; export r; \
17077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17078 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 17079 $(HOST_EXPORTS) \
1f53ca9a 17080 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17081 cd $(HOST_SUBDIR)/intl && \
e28c595f 17082 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17083 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 17084 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 17085 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
17086 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17087 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17088 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17089 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17090 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 17091 $(TARGET-stage4-intl)
e28c595f 17092
a90ef4bf
JM
17093maybe-clean-stage4-intl: clean-stage4-intl
17094clean-stage4: clean-stage4-intl
17095clean-stage4-intl:
e28c595f 17096 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 17097 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17098 else \
a90ef4bf 17099 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
e28c595f
JM
17100 $(MAKE) stage4-start; \
17101 fi; \
a90ef4bf 17102 cd $(HOST_SUBDIR)/intl && \
b3676d82 17103 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17104@endif intl-bootstrap
e28c595f
JM
17105
17106
a90ef4bf
JM
17107.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
17108.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
17109maybe-all-stageprofile-intl:
17110maybe-clean-stageprofile-intl:
17111@if intl-bootstrap
17112maybe-all-stageprofile-intl: all-stageprofile-intl
17113all-stageprofile: all-stageprofile-intl
17114TARGET-stageprofile-intl = $(TARGET-intl)
17115all-stageprofile-intl: configure-stageprofile-intl
e28c595f
JM
17116 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17117 @r=`${PWD_COMMAND}`; export r; \
17118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17119 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 17120 $(HOST_EXPORTS) \
1f53ca9a 17121 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17122 cd $(HOST_SUBDIR)/intl && \
e28c595f 17123 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17124 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 17125 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
17126 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17127 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17128 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17129 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17130 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17131 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 17132 $(TARGET-stageprofile-intl)
e28c595f 17133
a90ef4bf
JM
17134maybe-clean-stageprofile-intl: clean-stageprofile-intl
17135clean-stageprofile: clean-stageprofile-intl
17136clean-stageprofile-intl:
e28c595f 17137 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 17138 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17139 else \
a90ef4bf 17140 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
e28c595f
JM
17141 $(MAKE) stageprofile-start; \
17142 fi; \
a90ef4bf 17143 cd $(HOST_SUBDIR)/intl && \
b3676d82 17144 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17145@endif intl-bootstrap
e28c595f
JM
17146
17147
a90ef4bf
JM
17148.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
17149.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
17150maybe-all-stagefeedback-intl:
17151maybe-clean-stagefeedback-intl:
17152@if intl-bootstrap
17153maybe-all-stagefeedback-intl: all-stagefeedback-intl
17154all-stagefeedback: all-stagefeedback-intl
17155TARGET-stagefeedback-intl = $(TARGET-intl)
17156all-stagefeedback-intl: configure-stagefeedback-intl
e28c595f
JM
17157 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17158 @r=`${PWD_COMMAND}`; export r; \
17159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17160 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 17161 $(HOST_EXPORTS) \
1f53ca9a 17162 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17163 cd $(HOST_SUBDIR)/intl && \
e28c595f 17164 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17165 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 17166 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
17167 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17168 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17169 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17170 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17171 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17172 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 17173 $(TARGET-stagefeedback-intl)
e28c595f 17174
a90ef4bf
JM
17175maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
17176clean-stagefeedback: clean-stagefeedback-intl
17177clean-stagefeedback-intl:
e28c595f 17178 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 17179 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17180 else \
a90ef4bf 17181 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
e28c595f
JM
17182 $(MAKE) stagefeedback-start; \
17183 fi; \
a90ef4bf 17184 cd $(HOST_SUBDIR)/intl && \
b3676d82 17185 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17186@endif intl-bootstrap
e28c595f
JM
17187
17188
17189
17190
17191
a90ef4bf
JM
17192.PHONY: check-intl maybe-check-intl
17193maybe-check-intl:
17194@if intl
17195maybe-check-intl: check-intl
e28c595f 17196
a90ef4bf 17197check-intl:
e28c595f
JM
17198 @: $(MAKE); $(unstage)
17199 @r=`${PWD_COMMAND}`; export r; \
17200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17201 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 17202 (cd $(HOST_SUBDIR)/intl && \
f91ca6bc 17203 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 17204
a90ef4bf 17205@endif intl
e28c595f 17206
a90ef4bf
JM
17207.PHONY: install-intl maybe-install-intl
17208maybe-install-intl:
17209@if intl
17210maybe-install-intl: install-intl
e28c595f 17211
a90ef4bf
JM
17212install-intl: installdirs
17213 @: $(MAKE); $(unstage)
17214 @r=`${PWD_COMMAND}`; export r; \
17215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17216 $(HOST_EXPORTS) \
17217 (cd $(HOST_SUBDIR)/intl && \
17218 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 17219
a90ef4bf 17220@endif intl
e28c595f 17221
a90ef4bf
JM
17222.PHONY: install-strip-intl maybe-install-strip-intl
17223maybe-install-strip-intl:
17224@if intl
17225maybe-install-strip-intl: install-strip-intl
9b980aa1 17226
a90ef4bf
JM
17227install-strip-intl: installdirs
17228 @: $(MAKE); $(unstage)
17229 @r=`${PWD_COMMAND}`; export r; \
17230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17231 $(HOST_EXPORTS) \
17232 (cd $(HOST_SUBDIR)/intl && \
17233 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 17234
a90ef4bf 17235@endif intl
9b980aa1 17236
e28c595f
JM
17237# Other targets (info, dvi, pdf, etc.)
17238
a90ef4bf
JM
17239.PHONY: maybe-info-intl info-intl
17240maybe-info-intl:
17241@if intl
17242maybe-info-intl: info-intl
e28c595f 17243
a90ef4bf
JM
17244info-intl: \
17245 configure-intl
17246 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17247 r=`${PWD_COMMAND}`; export r; \
17248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17249 $(HOST_EXPORTS) \
17250 for flag in $(EXTRA_HOST_FLAGS) ; do \
17251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17252 done; \
a90ef4bf
JM
17253 echo "Doing info in intl" ; \
17254 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17257 "RANLIB=$${RANLIB}" \
17258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17259 info) \
17260 || exit 1
17261
a90ef4bf 17262@endif intl
e28c595f 17263
a90ef4bf
JM
17264.PHONY: maybe-dvi-intl dvi-intl
17265maybe-dvi-intl:
17266@if intl
17267maybe-dvi-intl: dvi-intl
e28c595f 17268
a90ef4bf
JM
17269dvi-intl: \
17270 configure-intl
17271 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17272 r=`${PWD_COMMAND}`; export r; \
17273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17274 $(HOST_EXPORTS) \
17275 for flag in $(EXTRA_HOST_FLAGS) ; do \
17276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17277 done; \
a90ef4bf
JM
17278 echo "Doing dvi in intl" ; \
17279 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17282 "RANLIB=$${RANLIB}" \
17283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17284 dvi) \
17285 || exit 1
17286
a90ef4bf 17287@endif intl
e28c595f 17288
a90ef4bf
JM
17289.PHONY: maybe-pdf-intl pdf-intl
17290maybe-pdf-intl:
17291@if intl
17292maybe-pdf-intl: pdf-intl
e28c595f 17293
a90ef4bf
JM
17294pdf-intl: \
17295 configure-intl
17296 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17297 r=`${PWD_COMMAND}`; export r; \
17298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17299 $(HOST_EXPORTS) \
17300 for flag in $(EXTRA_HOST_FLAGS) ; do \
17301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17302 done; \
a90ef4bf
JM
17303 echo "Doing pdf in intl" ; \
17304 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17307 "RANLIB=$${RANLIB}" \
17308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17309 pdf) \
17310 || exit 1
17311
a90ef4bf 17312@endif intl
e28c595f 17313
a90ef4bf
JM
17314.PHONY: maybe-html-intl html-intl
17315maybe-html-intl:
17316@if intl
17317maybe-html-intl: html-intl
e28c595f 17318
a90ef4bf
JM
17319html-intl: \
17320 configure-intl
17321 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17322 r=`${PWD_COMMAND}`; export r; \
17323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17324 $(HOST_EXPORTS) \
17325 for flag in $(EXTRA_HOST_FLAGS) ; do \
17326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17327 done; \
a90ef4bf
JM
17328 echo "Doing html in intl" ; \
17329 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17332 "RANLIB=$${RANLIB}" \
17333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17334 html) \
17335 || exit 1
17336
a90ef4bf 17337@endif intl
e28c595f 17338
a90ef4bf
JM
17339.PHONY: maybe-TAGS-intl TAGS-intl
17340maybe-TAGS-intl:
17341@if intl
17342maybe-TAGS-intl: TAGS-intl
e28c595f 17343
a90ef4bf
JM
17344TAGS-intl: \
17345 configure-intl
17346 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17347 r=`${PWD_COMMAND}`; export r; \
17348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17349 $(HOST_EXPORTS) \
17350 for flag in $(EXTRA_HOST_FLAGS) ; do \
17351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17352 done; \
a90ef4bf
JM
17353 echo "Doing TAGS in intl" ; \
17354 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17357 "RANLIB=$${RANLIB}" \
17358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17359 TAGS) \
17360 || exit 1
17361
a90ef4bf 17362@endif intl
e28c595f 17363
a90ef4bf
JM
17364.PHONY: maybe-install-info-intl install-info-intl
17365maybe-install-info-intl:
17366@if intl
17367maybe-install-info-intl: install-info-intl
e28c595f 17368
a90ef4bf
JM
17369install-info-intl: \
17370 configure-intl \
17371 info-intl
17372 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17373 r=`${PWD_COMMAND}`; export r; \
17374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17375 $(HOST_EXPORTS) \
17376 for flag in $(EXTRA_HOST_FLAGS) ; do \
17377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17378 done; \
a90ef4bf
JM
17379 echo "Doing install-info in intl" ; \
17380 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17383 "RANLIB=$${RANLIB}" \
17384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17385 install-info) \
17386 || exit 1
17387
a90ef4bf 17388@endif intl
e28c595f 17389
a90ef4bf
JM
17390.PHONY: maybe-install-pdf-intl install-pdf-intl
17391maybe-install-pdf-intl:
17392@if intl
17393maybe-install-pdf-intl: install-pdf-intl
e28c595f 17394
a90ef4bf
JM
17395install-pdf-intl: \
17396 configure-intl \
17397 pdf-intl
17398 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17399 r=`${PWD_COMMAND}`; export r; \
17400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17401 $(HOST_EXPORTS) \
17402 for flag in $(EXTRA_HOST_FLAGS) ; do \
17403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17404 done; \
a90ef4bf
JM
17405 echo "Doing install-pdf in intl" ; \
17406 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17409 "RANLIB=$${RANLIB}" \
17410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17411 install-pdf) \
17412 || exit 1
17413
a90ef4bf 17414@endif intl
e28c595f 17415
a90ef4bf
JM
17416.PHONY: maybe-install-html-intl install-html-intl
17417maybe-install-html-intl:
17418@if intl
17419maybe-install-html-intl: install-html-intl
e28c595f 17420
a90ef4bf
JM
17421install-html-intl: \
17422 configure-intl \
17423 html-intl
17424 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17425 r=`${PWD_COMMAND}`; export r; \
17426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17427 $(HOST_EXPORTS) \
17428 for flag in $(EXTRA_HOST_FLAGS) ; do \
17429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17430 done; \
a90ef4bf
JM
17431 echo "Doing install-html in intl" ; \
17432 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17435 "RANLIB=$${RANLIB}" \
17436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17437 install-html) \
17438 || exit 1
17439
a90ef4bf 17440@endif intl
e28c595f 17441
a90ef4bf
JM
17442.PHONY: maybe-installcheck-intl installcheck-intl
17443maybe-installcheck-intl:
17444@if intl
17445maybe-installcheck-intl: installcheck-intl
e28c595f 17446
a90ef4bf
JM
17447installcheck-intl: \
17448 configure-intl
17449 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17450 r=`${PWD_COMMAND}`; export r; \
17451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17452 $(HOST_EXPORTS) \
17453 for flag in $(EXTRA_HOST_FLAGS) ; do \
17454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17455 done; \
a90ef4bf
JM
17456 echo "Doing installcheck in intl" ; \
17457 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17460 "RANLIB=$${RANLIB}" \
17461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17462 installcheck) \
17463 || exit 1
17464
a90ef4bf 17465@endif intl
e28c595f 17466
a90ef4bf
JM
17467.PHONY: maybe-mostlyclean-intl mostlyclean-intl
17468maybe-mostlyclean-intl:
17469@if intl
17470maybe-mostlyclean-intl: mostlyclean-intl
e28c595f 17471
a90ef4bf
JM
17472mostlyclean-intl:
17473 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17474 r=`${PWD_COMMAND}`; export r; \
17475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17476 $(HOST_EXPORTS) \
17477 for flag in $(EXTRA_HOST_FLAGS) ; do \
17478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17479 done; \
a90ef4bf
JM
17480 echo "Doing mostlyclean in intl" ; \
17481 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17484 "RANLIB=$${RANLIB}" \
17485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17486 mostlyclean) \
17487 || exit 1
17488
a90ef4bf 17489@endif intl
e28c595f 17490
a90ef4bf
JM
17491.PHONY: maybe-clean-intl clean-intl
17492maybe-clean-intl:
17493@if intl
17494maybe-clean-intl: clean-intl
e28c595f 17495
a90ef4bf
JM
17496clean-intl:
17497 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17498 r=`${PWD_COMMAND}`; export r; \
17499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17500 $(HOST_EXPORTS) \
17501 for flag in $(EXTRA_HOST_FLAGS) ; do \
17502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17503 done; \
a90ef4bf
JM
17504 echo "Doing clean in intl" ; \
17505 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17508 "RANLIB=$${RANLIB}" \
17509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17510 clean) \
17511 || exit 1
17512
a90ef4bf 17513@endif intl
e28c595f 17514
a90ef4bf
JM
17515.PHONY: maybe-distclean-intl distclean-intl
17516maybe-distclean-intl:
17517@if intl
17518maybe-distclean-intl: distclean-intl
e28c595f 17519
a90ef4bf
JM
17520distclean-intl:
17521 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17522 r=`${PWD_COMMAND}`; export r; \
17523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17524 $(HOST_EXPORTS) \
17525 for flag in $(EXTRA_HOST_FLAGS) ; do \
17526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17527 done; \
a90ef4bf
JM
17528 echo "Doing distclean in intl" ; \
17529 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17532 "RANLIB=$${RANLIB}" \
17533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17534 distclean) \
17535 || exit 1
17536
a90ef4bf 17537@endif intl
e28c595f 17538
a90ef4bf
JM
17539.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
17540maybe-maintainer-clean-intl:
17541@if intl
17542maybe-maintainer-clean-intl: maintainer-clean-intl
e28c595f 17543
a90ef4bf
JM
17544maintainer-clean-intl:
17545 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17546 r=`${PWD_COMMAND}`; export r; \
17547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17548 $(HOST_EXPORTS) \
17549 for flag in $(EXTRA_HOST_FLAGS) ; do \
17550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17551 done; \
a90ef4bf
JM
17552 echo "Doing maintainer-clean in intl" ; \
17553 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17556 "RANLIB=$${RANLIB}" \
17557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17558 maintainer-clean) \
17559 || exit 1
17560
a90ef4bf 17561@endif intl
e28c595f
JM
17562
17563
17564
a90ef4bf
JM
17565.PHONY: configure-tcl maybe-configure-tcl
17566maybe-configure-tcl:
e8a5fa9c 17567@if gcc-bootstrap
a90ef4bf 17568configure-tcl: stage_current
e8a5fa9c 17569@endif gcc-bootstrap
a90ef4bf
JM
17570@if tcl
17571maybe-configure-tcl: configure-tcl
17572configure-tcl:
17573 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17574 @r=`${PWD_COMMAND}`; export r; \
17575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17576 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
17577 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl ; \
1f53ca9a 17578 $(HOST_EXPORTS) \
a90ef4bf
JM
17579 echo Configuring in $(HOST_SUBDIR)/tcl; \
17580 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
e8a5fa9c
RW
17581 case $(srcdir) in \
17582 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17583 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
e8a5fa9c
RW
17584 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17585 esac; \
1b6c0831
L
17586 module_srcdir=tcl; \
17587 $(SHELL) \
17588 $$s/$$module_srcdir/configure \
17589 --srcdir=$${topdir}/$$module_srcdir \
e8a5fa9c 17590 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17591 --target=${target_alias} \
e8a5fa9c 17592 || exit 1
a90ef4bf 17593@endif tcl
e8a5fa9c
RW
17594
17595
17596
e8a5fa9c 17597
e8a5fa9c 17598
a90ef4bf
JM
17599.PHONY: all-tcl maybe-all-tcl
17600maybe-all-tcl:
17601@if gcc-bootstrap
17602all-tcl: stage_current
17603@endif gcc-bootstrap
17604@if tcl
17605TARGET-tcl=all
17606maybe-all-tcl: all-tcl
17607all-tcl: configure-tcl
17608 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17609 @r=`${PWD_COMMAND}`; export r; \
17610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17611 $(HOST_EXPORTS) \
17612 (cd $(HOST_SUBDIR)/tcl && \
b3676d82 17613 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17614 $(TARGET-tcl))
17615@endif tcl
e8a5fa9c 17616
a90ef4bf
JM
17617
17618
17619
17620.PHONY: check-tcl maybe-check-tcl
17621maybe-check-tcl:
17622@if tcl
17623maybe-check-tcl: check-tcl
17624
17625check-tcl:
17626 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17627 @r=`${PWD_COMMAND}`; export r; \
17628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17629 $(HOST_EXPORTS) \
a90ef4bf
JM
17630 (cd $(HOST_SUBDIR)/tcl && \
17631 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 17632
a90ef4bf
JM
17633@endif tcl
17634
17635.PHONY: install-tcl maybe-install-tcl
17636maybe-install-tcl:
17637@if tcl
17638maybe-install-tcl: install-tcl
17639
17640install-tcl: installdirs
17641 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17642 @r=`${PWD_COMMAND}`; export r; \
17643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17644 $(HOST_EXPORTS) \
a90ef4bf
JM
17645 (cd $(HOST_SUBDIR)/tcl && \
17646 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 17647
a90ef4bf
JM
17648@endif tcl
17649
17650.PHONY: install-strip-tcl maybe-install-strip-tcl
17651maybe-install-strip-tcl:
17652@if tcl
17653maybe-install-strip-tcl: install-strip-tcl
17654
17655install-strip-tcl: installdirs
17656 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17657 @r=`${PWD_COMMAND}`; export r; \
17658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17659 $(HOST_EXPORTS) \
a90ef4bf
JM
17660 (cd $(HOST_SUBDIR)/tcl && \
17661 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 17662
a90ef4bf 17663@endif tcl
e8a5fa9c 17664
a90ef4bf 17665# Other targets (info, dvi, pdf, etc.)
e8a5fa9c 17666
a90ef4bf
JM
17667.PHONY: maybe-info-tcl info-tcl
17668maybe-info-tcl:
17669@if tcl
17670maybe-info-tcl: info-tcl
e8a5fa9c 17671
a90ef4bf
JM
17672info-tcl: \
17673 configure-tcl
17674 @: $(MAKE); $(unstage)
17675 @[ -f ./tcl/Makefile ] || exit 0; \
17676 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17678 $(HOST_EXPORTS) \
17679 for flag in $(EXTRA_HOST_FLAGS) ; do \
17680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17681 done; \
17682 echo "Doing info in tcl" ; \
17683 (cd $(HOST_SUBDIR)/tcl && \
17684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17686 "RANLIB=$${RANLIB}" \
17687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17688 info) \
17689 || exit 1
e8a5fa9c 17690
a90ef4bf 17691@endif tcl
e8a5fa9c 17692
a90ef4bf
JM
17693.PHONY: maybe-dvi-tcl dvi-tcl
17694maybe-dvi-tcl:
17695@if tcl
17696maybe-dvi-tcl: dvi-tcl
e8a5fa9c 17697
a90ef4bf
JM
17698dvi-tcl: \
17699 configure-tcl
17700 @: $(MAKE); $(unstage)
17701 @[ -f ./tcl/Makefile ] || exit 0; \
17702 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
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 dvi in tcl" ; \
17709 (cd $(HOST_SUBDIR)/tcl && \
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 dvi) \
17715 || exit 1
e8a5fa9c 17716
a90ef4bf 17717@endif tcl
e8a5fa9c 17718
a90ef4bf
JM
17719.PHONY: maybe-pdf-tcl pdf-tcl
17720maybe-pdf-tcl:
17721@if tcl
17722maybe-pdf-tcl: pdf-tcl
e8a5fa9c 17723
a90ef4bf
JM
17724pdf-tcl: \
17725 configure-tcl
17726 @: $(MAKE); $(unstage)
17727 @[ -f ./tcl/Makefile ] || exit 0; \
17728 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17730 $(HOST_EXPORTS) \
a90ef4bf
JM
17731 for flag in $(EXTRA_HOST_FLAGS) ; do \
17732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17733 done; \
17734 echo "Doing pdf in tcl" ; \
17735 (cd $(HOST_SUBDIR)/tcl && \
17736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17738 "RANLIB=$${RANLIB}" \
17739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17740 pdf) \
17741 || exit 1
e8a5fa9c 17742
a90ef4bf 17743@endif tcl
e8a5fa9c 17744
a90ef4bf
JM
17745.PHONY: maybe-html-tcl html-tcl
17746maybe-html-tcl:
17747@if tcl
17748maybe-html-tcl: html-tcl
e8a5fa9c 17749
a90ef4bf
JM
17750html-tcl: \
17751 configure-tcl
17752 @: $(MAKE); $(unstage)
17753 @[ -f ./tcl/Makefile ] || exit 0; \
17754 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17756 $(HOST_EXPORTS) \
a90ef4bf
JM
17757 for flag in $(EXTRA_HOST_FLAGS) ; do \
17758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17759 done; \
17760 echo "Doing html in tcl" ; \
17761 (cd $(HOST_SUBDIR)/tcl && \
17762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17764 "RANLIB=$${RANLIB}" \
17765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17766 html) \
17767 || exit 1
e8a5fa9c 17768
a90ef4bf 17769@endif tcl
e8a5fa9c 17770
a90ef4bf
JM
17771.PHONY: maybe-TAGS-tcl TAGS-tcl
17772maybe-TAGS-tcl:
17773@if tcl
17774maybe-TAGS-tcl: TAGS-tcl
e8a5fa9c 17775
a90ef4bf
JM
17776TAGS-tcl: \
17777 configure-tcl
17778 @: $(MAKE); $(unstage)
17779 @[ -f ./tcl/Makefile ] || exit 0; \
17780 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17782 $(HOST_EXPORTS) \
a90ef4bf
JM
17783 for flag in $(EXTRA_HOST_FLAGS) ; do \
17784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17785 done; \
17786 echo "Doing TAGS in tcl" ; \
17787 (cd $(HOST_SUBDIR)/tcl && \
17788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17790 "RANLIB=$${RANLIB}" \
17791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17792 TAGS) \
17793 || exit 1
e8a5fa9c 17794
a90ef4bf 17795@endif tcl
e8a5fa9c 17796
a90ef4bf
JM
17797.PHONY: maybe-install-info-tcl install-info-tcl
17798maybe-install-info-tcl:
17799@if tcl
17800maybe-install-info-tcl: install-info-tcl
e8a5fa9c 17801
a90ef4bf
JM
17802install-info-tcl: \
17803 configure-tcl \
17804 info-tcl
e8a5fa9c 17805 @: $(MAKE); $(unstage)
a90ef4bf 17806 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17807 r=`${PWD_COMMAND}`; export r; \
17808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17809 $(HOST_EXPORTS) \
17810 for flag in $(EXTRA_HOST_FLAGS) ; do \
17811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17812 done; \
a90ef4bf
JM
17813 echo "Doing install-info in tcl" ; \
17814 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17817 "RANLIB=$${RANLIB}" \
17818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17819 install-info) \
e8a5fa9c
RW
17820 || exit 1
17821
a90ef4bf 17822@endif tcl
e8a5fa9c 17823
a90ef4bf
JM
17824.PHONY: maybe-install-pdf-tcl install-pdf-tcl
17825maybe-install-pdf-tcl:
17826@if tcl
17827maybe-install-pdf-tcl: install-pdf-tcl
e8a5fa9c 17828
a90ef4bf
JM
17829install-pdf-tcl: \
17830 configure-tcl \
17831 pdf-tcl
17832 @: $(MAKE); $(unstage)
17833 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17834 r=`${PWD_COMMAND}`; export r; \
17835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17836 $(HOST_EXPORTS) \
17837 for flag in $(EXTRA_HOST_FLAGS) ; do \
17838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17839 done; \
a90ef4bf
JM
17840 echo "Doing install-pdf in tcl" ; \
17841 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17844 "RANLIB=$${RANLIB}" \
17845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17846 install-pdf) \
e8a5fa9c
RW
17847 || exit 1
17848
a90ef4bf 17849@endif tcl
e8a5fa9c 17850
a90ef4bf
JM
17851.PHONY: maybe-install-html-tcl install-html-tcl
17852maybe-install-html-tcl:
17853@if tcl
17854maybe-install-html-tcl: install-html-tcl
e8a5fa9c 17855
a90ef4bf
JM
17856install-html-tcl: \
17857 configure-tcl \
17858 html-tcl
17859 @: $(MAKE); $(unstage)
17860 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17861 r=`${PWD_COMMAND}`; export r; \
17862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17863 $(HOST_EXPORTS) \
17864 for flag in $(EXTRA_HOST_FLAGS) ; do \
17865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17866 done; \
a90ef4bf
JM
17867 echo "Doing install-html in tcl" ; \
17868 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17871 "RANLIB=$${RANLIB}" \
17872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17873 install-html) \
e8a5fa9c
RW
17874 || exit 1
17875
a90ef4bf 17876@endif tcl
e8a5fa9c 17877
a90ef4bf
JM
17878.PHONY: maybe-installcheck-tcl installcheck-tcl
17879maybe-installcheck-tcl:
17880@if tcl
17881maybe-installcheck-tcl: installcheck-tcl
e8a5fa9c 17882
a90ef4bf
JM
17883installcheck-tcl: \
17884 configure-tcl
17885 @: $(MAKE); $(unstage)
17886 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17887 r=`${PWD_COMMAND}`; export r; \
17888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17889 $(HOST_EXPORTS) \
17890 for flag in $(EXTRA_HOST_FLAGS) ; do \
17891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17892 done; \
a90ef4bf
JM
17893 echo "Doing installcheck in tcl" ; \
17894 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17897 "RANLIB=$${RANLIB}" \
17898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17899 installcheck) \
e8a5fa9c
RW
17900 || exit 1
17901
a90ef4bf 17902@endif tcl
e8a5fa9c 17903
a90ef4bf
JM
17904.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
17905maybe-mostlyclean-tcl:
17906@if tcl
17907maybe-mostlyclean-tcl: mostlyclean-tcl
e8a5fa9c 17908
a90ef4bf
JM
17909# tcl doesn't support mostlyclean.
17910mostlyclean-tcl:
17911
17912@endif tcl
17913
17914.PHONY: maybe-clean-tcl clean-tcl
17915maybe-clean-tcl:
17916@if tcl
17917maybe-clean-tcl: clean-tcl
17918
17919clean-tcl:
17920 @: $(MAKE); $(unstage)
17921 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17922 r=`${PWD_COMMAND}`; export r; \
17923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17924 $(HOST_EXPORTS) \
17925 for flag in $(EXTRA_HOST_FLAGS) ; do \
17926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17927 done; \
a90ef4bf
JM
17928 echo "Doing clean in tcl" ; \
17929 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17932 "RANLIB=$${RANLIB}" \
17933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17934 clean) \
e8a5fa9c
RW
17935 || exit 1
17936
a90ef4bf 17937@endif tcl
e8a5fa9c 17938
a90ef4bf
JM
17939.PHONY: maybe-distclean-tcl distclean-tcl
17940maybe-distclean-tcl:
17941@if tcl
17942maybe-distclean-tcl: distclean-tcl
e8a5fa9c 17943
a90ef4bf
JM
17944distclean-tcl:
17945 @: $(MAKE); $(unstage)
17946 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17947 r=`${PWD_COMMAND}`; export r; \
17948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17949 $(HOST_EXPORTS) \
17950 for flag in $(EXTRA_HOST_FLAGS) ; do \
17951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17952 done; \
a90ef4bf
JM
17953 echo "Doing distclean in tcl" ; \
17954 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17957 "RANLIB=$${RANLIB}" \
17958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17959 distclean) \
e8a5fa9c
RW
17960 || exit 1
17961
a90ef4bf 17962@endif tcl
e8a5fa9c 17963
a90ef4bf
JM
17964.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
17965maybe-maintainer-clean-tcl:
17966@if tcl
17967maybe-maintainer-clean-tcl: maintainer-clean-tcl
e8a5fa9c 17968
a90ef4bf
JM
17969maintainer-clean-tcl:
17970 @: $(MAKE); $(unstage)
17971 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17972 r=`${PWD_COMMAND}`; export r; \
17973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17974 $(HOST_EXPORTS) \
17975 for flag in $(EXTRA_HOST_FLAGS) ; do \
17976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17977 done; \
a90ef4bf
JM
17978 echo "Doing maintainer-clean in tcl" ; \
17979 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17982 "RANLIB=$${RANLIB}" \
17983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17984 maintainer-clean) \
e8a5fa9c
RW
17985 || exit 1
17986
a90ef4bf 17987@endif tcl
e8a5fa9c 17988
e8a5fa9c 17989
a90ef4bf
JM
17990
17991.PHONY: configure-itcl maybe-configure-itcl
17992maybe-configure-itcl:
17993@if gcc-bootstrap
17994configure-itcl: stage_current
17995@endif gcc-bootstrap
17996@if itcl
17997maybe-configure-itcl: configure-itcl
17998configure-itcl:
17999 @: $(MAKE); $(unstage)
18000 @r=`${PWD_COMMAND}`; export r; \
18001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18002 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
18003 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl ; \
18004 $(HOST_EXPORTS) \
18005 echo Configuring in $(HOST_SUBDIR)/itcl; \
18006 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
18007 case $(srcdir) in \
18008 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18009 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
18010 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18011 esac; \
1b6c0831
L
18012 module_srcdir=itcl; \
18013 $(SHELL) \
18014 $$s/$$module_srcdir/configure \
18015 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18016 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18017 --target=${target_alias} \
a90ef4bf
JM
18018 || exit 1
18019@endif itcl
18020
18021
18022
18023
18024
18025.PHONY: all-itcl maybe-all-itcl
18026maybe-all-itcl:
18027@if gcc-bootstrap
18028all-itcl: stage_current
18029@endif gcc-bootstrap
18030@if itcl
18031TARGET-itcl=all
18032maybe-all-itcl: all-itcl
18033all-itcl: configure-itcl
18034 @: $(MAKE); $(unstage)
18035 @r=`${PWD_COMMAND}`; export r; \
18036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18037 $(HOST_EXPORTS) \
18038 (cd $(HOST_SUBDIR)/itcl && \
b3676d82 18039 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18040 $(TARGET-itcl))
18041@endif itcl
18042
18043
18044
18045
18046.PHONY: check-itcl maybe-check-itcl
18047maybe-check-itcl:
18048@if itcl
18049maybe-check-itcl: check-itcl
18050
18051check-itcl:
18052 @: $(MAKE); $(unstage)
18053 @r=`${PWD_COMMAND}`; export r; \
18054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18055 $(HOST_EXPORTS) \
a90ef4bf
JM
18056 (cd $(HOST_SUBDIR)/itcl && \
18057 $(MAKE) $(FLAGS_TO_PASS) check)
18058
18059@endif itcl
18060
18061.PHONY: install-itcl maybe-install-itcl
18062maybe-install-itcl:
18063@if itcl
18064maybe-install-itcl: install-itcl
18065
18066install-itcl: installdirs
18067 @: $(MAKE); $(unstage)
18068 @r=`${PWD_COMMAND}`; export r; \
18069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18070 $(HOST_EXPORTS) \
18071 (cd $(HOST_SUBDIR)/itcl && \
18072 $(MAKE) $(FLAGS_TO_PASS) install)
18073
18074@endif itcl
18075
18076.PHONY: install-strip-itcl maybe-install-strip-itcl
18077maybe-install-strip-itcl:
18078@if itcl
18079maybe-install-strip-itcl: install-strip-itcl
18080
18081install-strip-itcl: installdirs
18082 @: $(MAKE); $(unstage)
18083 @r=`${PWD_COMMAND}`; export r; \
18084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18085 $(HOST_EXPORTS) \
18086 (cd $(HOST_SUBDIR)/itcl && \
18087 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18088
18089@endif itcl
18090
18091# Other targets (info, dvi, pdf, etc.)
18092
18093.PHONY: maybe-info-itcl info-itcl
18094maybe-info-itcl:
18095@if itcl
18096maybe-info-itcl: info-itcl
18097
18098info-itcl: \
18099 configure-itcl
18100 @: $(MAKE); $(unstage)
18101 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18102 r=`${PWD_COMMAND}`; export r; \
18103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18104 $(HOST_EXPORTS) \
18105 for flag in $(EXTRA_HOST_FLAGS) ; do \
18106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18107 done; \
a90ef4bf
JM
18108 echo "Doing info in itcl" ; \
18109 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18112 "RANLIB=$${RANLIB}" \
18113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18114 info) \
e8a5fa9c
RW
18115 || exit 1
18116
a90ef4bf 18117@endif itcl
e8a5fa9c 18118
a90ef4bf
JM
18119.PHONY: maybe-dvi-itcl dvi-itcl
18120maybe-dvi-itcl:
18121@if itcl
18122maybe-dvi-itcl: dvi-itcl
e8a5fa9c 18123
a90ef4bf
JM
18124dvi-itcl: \
18125 configure-itcl
18126 @: $(MAKE); $(unstage)
18127 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18128 r=`${PWD_COMMAND}`; export r; \
18129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18130 $(HOST_EXPORTS) \
18131 for flag in $(EXTRA_HOST_FLAGS) ; do \
18132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18133 done; \
a90ef4bf
JM
18134 echo "Doing dvi in itcl" ; \
18135 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18138 "RANLIB=$${RANLIB}" \
18139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18140 dvi) \
e8a5fa9c
RW
18141 || exit 1
18142
a90ef4bf 18143@endif itcl
e8a5fa9c 18144
a90ef4bf
JM
18145.PHONY: maybe-pdf-itcl pdf-itcl
18146maybe-pdf-itcl:
18147@if itcl
18148maybe-pdf-itcl: pdf-itcl
e8a5fa9c 18149
a90ef4bf
JM
18150pdf-itcl: \
18151 configure-itcl
18152 @: $(MAKE); $(unstage)
18153 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18154 r=`${PWD_COMMAND}`; export r; \
18155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18156 $(HOST_EXPORTS) \
18157 for flag in $(EXTRA_HOST_FLAGS) ; do \
18158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18159 done; \
a90ef4bf
JM
18160 echo "Doing pdf in itcl" ; \
18161 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18164 "RANLIB=$${RANLIB}" \
18165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18166 pdf) \
e8a5fa9c
RW
18167 || exit 1
18168
a90ef4bf 18169@endif itcl
e8a5fa9c 18170
a90ef4bf
JM
18171.PHONY: maybe-html-itcl html-itcl
18172maybe-html-itcl:
18173@if itcl
18174maybe-html-itcl: html-itcl
e8a5fa9c 18175
a90ef4bf
JM
18176html-itcl: \
18177 configure-itcl
18178 @: $(MAKE); $(unstage)
18179 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18180 r=`${PWD_COMMAND}`; export r; \
18181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18182 $(HOST_EXPORTS) \
18183 for flag in $(EXTRA_HOST_FLAGS) ; do \
18184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18185 done; \
a90ef4bf
JM
18186 echo "Doing html in itcl" ; \
18187 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18190 "RANLIB=$${RANLIB}" \
18191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18192 html) \
e8a5fa9c
RW
18193 || exit 1
18194
a90ef4bf 18195@endif itcl
e8a5fa9c 18196
a90ef4bf
JM
18197.PHONY: maybe-TAGS-itcl TAGS-itcl
18198maybe-TAGS-itcl:
18199@if itcl
18200maybe-TAGS-itcl: TAGS-itcl
e8a5fa9c 18201
a90ef4bf
JM
18202TAGS-itcl: \
18203 configure-itcl
18204 @: $(MAKE); $(unstage)
18205 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18206 r=`${PWD_COMMAND}`; export r; \
18207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18208 $(HOST_EXPORTS) \
18209 for flag in $(EXTRA_HOST_FLAGS) ; do \
18210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18211 done; \
a90ef4bf
JM
18212 echo "Doing TAGS in itcl" ; \
18213 (cd $(HOST_SUBDIR)/itcl && \
18214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18216 "RANLIB=$${RANLIB}" \
18217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18218 TAGS) \
18219 || exit 1
18220
18221@endif itcl
18222
18223.PHONY: maybe-install-info-itcl install-info-itcl
18224maybe-install-info-itcl:
18225@if itcl
18226maybe-install-info-itcl: install-info-itcl
18227
18228install-info-itcl: \
18229 configure-itcl \
18230 info-itcl
18231 @: $(MAKE); $(unstage)
18232 @[ -f ./itcl/Makefile ] || exit 0; \
18233 r=`${PWD_COMMAND}`; export r; \
18234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18235 $(HOST_EXPORTS) \
18236 for flag in $(EXTRA_HOST_FLAGS) ; do \
18237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18238 done; \
18239 echo "Doing install-info in itcl" ; \
18240 (cd $(HOST_SUBDIR)/itcl && \
18241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18243 "RANLIB=$${RANLIB}" \
18244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18245 install-info) \
18246 || exit 1
18247
18248@endif itcl
18249
18250.PHONY: maybe-install-pdf-itcl install-pdf-itcl
18251maybe-install-pdf-itcl:
18252@if itcl
18253maybe-install-pdf-itcl: install-pdf-itcl
18254
18255install-pdf-itcl: \
18256 configure-itcl \
18257 pdf-itcl
18258 @: $(MAKE); $(unstage)
18259 @[ -f ./itcl/Makefile ] || exit 0; \
18260 r=`${PWD_COMMAND}`; export r; \
18261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18262 $(HOST_EXPORTS) \
18263 for flag in $(EXTRA_HOST_FLAGS) ; do \
18264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18265 done; \
18266 echo "Doing install-pdf in itcl" ; \
18267 (cd $(HOST_SUBDIR)/itcl && \
18268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18270 "RANLIB=$${RANLIB}" \
18271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18272 install-pdf) \
18273 || exit 1
18274
18275@endif itcl
18276
18277.PHONY: maybe-install-html-itcl install-html-itcl
18278maybe-install-html-itcl:
18279@if itcl
18280maybe-install-html-itcl: install-html-itcl
18281
18282install-html-itcl: \
18283 configure-itcl \
18284 html-itcl
18285 @: $(MAKE); $(unstage)
18286 @[ -f ./itcl/Makefile ] || exit 0; \
18287 r=`${PWD_COMMAND}`; export r; \
18288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18289 $(HOST_EXPORTS) \
18290 for flag in $(EXTRA_HOST_FLAGS) ; do \
18291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18292 done; \
18293 echo "Doing install-html in itcl" ; \
18294 (cd $(HOST_SUBDIR)/itcl && \
18295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18297 "RANLIB=$${RANLIB}" \
18298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18299 install-html) \
18300 || exit 1
18301
18302@endif itcl
18303
18304.PHONY: maybe-installcheck-itcl installcheck-itcl
18305maybe-installcheck-itcl:
18306@if itcl
18307maybe-installcheck-itcl: installcheck-itcl
18308
18309installcheck-itcl: \
18310 configure-itcl
18311 @: $(MAKE); $(unstage)
18312 @[ -f ./itcl/Makefile ] || exit 0; \
18313 r=`${PWD_COMMAND}`; export r; \
18314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18315 $(HOST_EXPORTS) \
18316 for flag in $(EXTRA_HOST_FLAGS) ; do \
18317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18318 done; \
18319 echo "Doing installcheck in itcl" ; \
18320 (cd $(HOST_SUBDIR)/itcl && \
18321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18323 "RANLIB=$${RANLIB}" \
18324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18325 installcheck) \
18326 || exit 1
18327
18328@endif itcl
18329
18330.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
18331maybe-mostlyclean-itcl:
18332@if itcl
18333maybe-mostlyclean-itcl: mostlyclean-itcl
18334
18335mostlyclean-itcl:
18336 @: $(MAKE); $(unstage)
18337 @[ -f ./itcl/Makefile ] || exit 0; \
18338 r=`${PWD_COMMAND}`; export r; \
18339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18340 $(HOST_EXPORTS) \
18341 for flag in $(EXTRA_HOST_FLAGS) ; do \
18342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18343 done; \
18344 echo "Doing mostlyclean in itcl" ; \
18345 (cd $(HOST_SUBDIR)/itcl && \
18346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18348 "RANLIB=$${RANLIB}" \
18349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18350 mostlyclean) \
18351 || exit 1
18352
18353@endif itcl
18354
18355.PHONY: maybe-clean-itcl clean-itcl
18356maybe-clean-itcl:
18357@if itcl
18358maybe-clean-itcl: clean-itcl
18359
18360clean-itcl:
18361 @: $(MAKE); $(unstage)
18362 @[ -f ./itcl/Makefile ] || exit 0; \
18363 r=`${PWD_COMMAND}`; export r; \
18364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18365 $(HOST_EXPORTS) \
18366 for flag in $(EXTRA_HOST_FLAGS) ; do \
18367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18368 done; \
18369 echo "Doing clean in itcl" ; \
18370 (cd $(HOST_SUBDIR)/itcl && \
18371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18373 "RANLIB=$${RANLIB}" \
18374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18375 clean) \
18376 || exit 1
18377
18378@endif itcl
18379
18380.PHONY: maybe-distclean-itcl distclean-itcl
18381maybe-distclean-itcl:
18382@if itcl
18383maybe-distclean-itcl: distclean-itcl
18384
18385distclean-itcl:
18386 @: $(MAKE); $(unstage)
18387 @[ -f ./itcl/Makefile ] || exit 0; \
18388 r=`${PWD_COMMAND}`; export r; \
18389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18390 $(HOST_EXPORTS) \
18391 for flag in $(EXTRA_HOST_FLAGS) ; do \
18392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18393 done; \
18394 echo "Doing distclean in itcl" ; \
18395 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18398 "RANLIB=$${RANLIB}" \
18399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18400 distclean) \
18401 || exit 1
18402
a90ef4bf 18403@endif itcl
e8a5fa9c 18404
a90ef4bf
JM
18405.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
18406maybe-maintainer-clean-itcl:
18407@if itcl
18408maybe-maintainer-clean-itcl: maintainer-clean-itcl
e8a5fa9c 18409
a90ef4bf
JM
18410maintainer-clean-itcl:
18411 @: $(MAKE); $(unstage)
18412 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18413 r=`${PWD_COMMAND}`; export r; \
18414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18415 $(HOST_EXPORTS) \
18416 for flag in $(EXTRA_HOST_FLAGS) ; do \
18417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18418 done; \
a90ef4bf
JM
18419 echo "Doing maintainer-clean in itcl" ; \
18420 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18423 "RANLIB=$${RANLIB}" \
18424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18425 maintainer-clean) \
18426 || exit 1
18427
a90ef4bf 18428@endif itcl
e8a5fa9c
RW
18429
18430
18431
a90ef4bf
JM
18432.PHONY: configure-ld maybe-configure-ld
18433maybe-configure-ld:
e28c595f 18434@if gcc-bootstrap
a90ef4bf 18435configure-ld: stage_current
e28c595f 18436@endif gcc-bootstrap
a90ef4bf
JM
18437@if ld
18438maybe-configure-ld: configure-ld
18439configure-ld:
e28c595f
JM
18440 @r=`${PWD_COMMAND}`; export r; \
18441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
18442 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
18443 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
1f53ca9a 18444 $(HOST_EXPORTS) \
a90ef4bf
JM
18445 echo Configuring in $(HOST_SUBDIR)/ld; \
18446 cd "$(HOST_SUBDIR)/ld" || exit 1; \
e28c595f
JM
18447 case $(srcdir) in \
18448 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18449 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18450 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18451 esac; \
1b6c0831
L
18452 module_srcdir=ld; \
18453 $(SHELL) \
18454 $$s/$$module_srcdir/configure \
18455 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18456 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18457 --target=${target_alias} \
e28c595f 18458 || exit 1
a90ef4bf 18459@endif ld
e28c595f
JM
18460
18461
18462
a90ef4bf
JM
18463.PHONY: configure-stage1-ld maybe-configure-stage1-ld
18464maybe-configure-stage1-ld:
18465@if ld-bootstrap
18466maybe-configure-stage1-ld: configure-stage1-ld
18467configure-stage1-ld:
e28c595f 18468 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 18469 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18470 @r=`${PWD_COMMAND}`; export r; \
18471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18472 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 18473 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
1b05fbbd 18474 $(HOST_EXPORTS) \
e28c595f 18475 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18476 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18477 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18478 echo Configuring stage 1 in $(HOST_SUBDIR)/ld ; \
18479 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18480 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18481 case $(srcdir) in \
18482 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18483 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18484 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18485 esac; \
1b6c0831
L
18486 module_srcdir=ld; \
18487 $(SHELL) $$s/$$module_srcdir/configure \
18488 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18489 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18490 --target=${target_alias} \
18491 \
a90ef4bf
JM
18492 $(STAGE1_CONFIGURE_FLAGS)
18493@endif ld-bootstrap
e28c595f 18494
a90ef4bf
JM
18495.PHONY: configure-stage2-ld maybe-configure-stage2-ld
18496maybe-configure-stage2-ld:
18497@if ld-bootstrap
18498maybe-configure-stage2-ld: configure-stage2-ld
18499configure-stage2-ld:
e28c595f 18500 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 18501 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18502 @r=`${PWD_COMMAND}`; export r; \
18503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18504 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 18505 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18506 $(HOST_EXPORTS) \
1b05fbbd 18507 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18508 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18509 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18510 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18511 echo Configuring stage 2 in $(HOST_SUBDIR)/ld ; \
18512 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18513 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18514 case $(srcdir) in \
18515 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18516 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18517 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18518 esac; \
1b6c0831
L
18519 module_srcdir=ld; \
18520 $(SHELL) $$s/$$module_srcdir/configure \
18521 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18522 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18523 --target=${target_alias} \
18524 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18525 $(STAGE2_CONFIGURE_FLAGS)
18526@endif ld-bootstrap
e28c595f 18527
a90ef4bf
JM
18528.PHONY: configure-stage3-ld maybe-configure-stage3-ld
18529maybe-configure-stage3-ld:
18530@if ld-bootstrap
18531maybe-configure-stage3-ld: configure-stage3-ld
18532configure-stage3-ld:
e28c595f 18533 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 18534 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18535 @r=`${PWD_COMMAND}`; export r; \
18536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18537 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 18538 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18539 $(HOST_EXPORTS) \
1b05fbbd 18540 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18541 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18542 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18543 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18544 echo Configuring stage 3 in $(HOST_SUBDIR)/ld ; \
18545 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18546 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18547 case $(srcdir) in \
18548 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18549 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18550 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18551 esac; \
1b6c0831
L
18552 module_srcdir=ld; \
18553 $(SHELL) $$s/$$module_srcdir/configure \
18554 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18555 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18556 --target=${target_alias} \
18557 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18558 $(STAGE3_CONFIGURE_FLAGS)
18559@endif ld-bootstrap
e28c595f 18560
a90ef4bf
JM
18561.PHONY: configure-stage4-ld maybe-configure-stage4-ld
18562maybe-configure-stage4-ld:
18563@if ld-bootstrap
18564maybe-configure-stage4-ld: configure-stage4-ld
18565configure-stage4-ld:
e28c595f 18566 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 18567 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18568 @r=`${PWD_COMMAND}`; export r; \
18569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18570 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 18571 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18572 $(HOST_EXPORTS) \
1b05fbbd 18573 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18574 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18575 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18576 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18577 echo Configuring stage 4 in $(HOST_SUBDIR)/ld ; \
18578 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18579 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18580 case $(srcdir) in \
18581 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18582 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18583 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18584 esac; \
1b6c0831
L
18585 module_srcdir=ld; \
18586 $(SHELL) $$s/$$module_srcdir/configure \
18587 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18588 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18589 --target=${target_alias} \
18590 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18591 $(STAGE4_CONFIGURE_FLAGS)
18592@endif ld-bootstrap
e28c595f 18593
a90ef4bf
JM
18594.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
18595maybe-configure-stageprofile-ld:
18596@if ld-bootstrap
18597maybe-configure-stageprofile-ld: configure-stageprofile-ld
18598configure-stageprofile-ld:
e28c595f 18599 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 18600 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18601 @r=`${PWD_COMMAND}`; export r; \
18602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18603 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 18604 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18605 $(HOST_EXPORTS) \
1b05fbbd
AO
18606 $(POSTSTAGE1_HOST_EXPORTS) \
18607 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18608 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18609 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18610 echo Configuring stage profile in $(HOST_SUBDIR)/ld ; \
18611 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18612 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18613 case $(srcdir) in \
18614 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18615 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18616 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18617 esac; \
1b6c0831
L
18618 module_srcdir=ld; \
18619 $(SHELL) $$s/$$module_srcdir/configure \
18620 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18621 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18622 --target=${target_alias} \
18623 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18624 $(STAGEprofile_CONFIGURE_FLAGS)
18625@endif ld-bootstrap
e28c595f 18626
a90ef4bf
JM
18627.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
18628maybe-configure-stagefeedback-ld:
18629@if ld-bootstrap
18630maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
18631configure-stagefeedback-ld:
e28c595f 18632 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 18633 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18634 @r=`${PWD_COMMAND}`; export r; \
18635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18636 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 18637 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18638 $(HOST_EXPORTS) \
1b05fbbd
AO
18639 $(POSTSTAGE1_HOST_EXPORTS) \
18640 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18641 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18642 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
18643 echo Configuring stage feedback in $(HOST_SUBDIR)/ld ; \
18644 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
18645 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18646 case $(srcdir) in \
18647 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18648 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18649 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18650 esac; \
1b6c0831
L
18651 module_srcdir=ld; \
18652 $(SHELL) $$s/$$module_srcdir/configure \
18653 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18654 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18655 --target=${target_alias} \
18656 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18657 $(STAGEfeedback_CONFIGURE_FLAGS)
18658@endif ld-bootstrap
e28c595f
JM
18659
18660
18661
18662
18663
a90ef4bf
JM
18664.PHONY: all-ld maybe-all-ld
18665maybe-all-ld:
e28c595f 18666@if gcc-bootstrap
a90ef4bf 18667all-ld: stage_current
e28c595f 18668@endif gcc-bootstrap
a90ef4bf
JM
18669@if ld
18670TARGET-ld=all
18671maybe-all-ld: all-ld
18672all-ld: configure-ld
e28c595f
JM
18673 @r=`${PWD_COMMAND}`; export r; \
18674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 18675 $(HOST_EXPORTS) \
a90ef4bf 18676 (cd $(HOST_SUBDIR)/ld && \
b3676d82 18677 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18678 $(TARGET-ld))
18679@endif ld
e28c595f
JM
18680
18681
18682
a90ef4bf
JM
18683.PHONY: all-stage1-ld maybe-all-stage1-ld
18684.PHONY: clean-stage1-ld maybe-clean-stage1-ld
18685maybe-all-stage1-ld:
18686maybe-clean-stage1-ld:
18687@if ld-bootstrap
18688maybe-all-stage1-ld: all-stage1-ld
18689all-stage1: all-stage1-ld
18690TARGET-stage1-ld = $(TARGET-ld)
18691all-stage1-ld: configure-stage1-ld
e28c595f
JM
18692 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18693 @r=`${PWD_COMMAND}`; export r; \
18694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18695 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 18696 $(HOST_EXPORTS) \
a90ef4bf 18697 cd $(HOST_SUBDIR)/ld && \
e28c595f 18698 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18699 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 18700 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
18701 LIBCFLAGS="$(LIBCFLAGS)" \
18702 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18703 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18704 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
18705 $(EXTRA_HOST_FLAGS) \
18706 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 18707 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 18708 $(TARGET-stage1-ld)
e28c595f 18709
a90ef4bf
JM
18710maybe-clean-stage1-ld: clean-stage1-ld
18711clean-stage1: clean-stage1-ld
18712clean-stage1-ld:
e28c595f 18713 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 18714 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18715 else \
a90ef4bf 18716 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
e28c595f
JM
18717 $(MAKE) stage1-start; \
18718 fi; \
a90ef4bf 18719 cd $(HOST_SUBDIR)/ld && \
e28c595f 18720 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 18721 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18722@endif ld-bootstrap
e28c595f
JM
18723
18724
a90ef4bf
JM
18725.PHONY: all-stage2-ld maybe-all-stage2-ld
18726.PHONY: clean-stage2-ld maybe-clean-stage2-ld
18727maybe-all-stage2-ld:
18728maybe-clean-stage2-ld:
18729@if ld-bootstrap
18730maybe-all-stage2-ld: all-stage2-ld
18731all-stage2: all-stage2-ld
18732TARGET-stage2-ld = $(TARGET-ld)
18733all-stage2-ld: configure-stage2-ld
e28c595f
JM
18734 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18735 @r=`${PWD_COMMAND}`; export r; \
18736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18737 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 18738 $(HOST_EXPORTS) \
1f53ca9a 18739 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18740 cd $(HOST_SUBDIR)/ld && \
e28c595f 18741 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18742 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 18743 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
18744 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18745 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18746 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18747 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18748 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18749 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 18750 $(TARGET-stage2-ld)
e28c595f 18751
a90ef4bf
JM
18752maybe-clean-stage2-ld: clean-stage2-ld
18753clean-stage2: clean-stage2-ld
18754clean-stage2-ld:
e28c595f 18755 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 18756 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18757 else \
a90ef4bf 18758 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
e28c595f
JM
18759 $(MAKE) stage2-start; \
18760 fi; \
a90ef4bf 18761 cd $(HOST_SUBDIR)/ld && \
b3676d82 18762 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18763@endif ld-bootstrap
e28c595f
JM
18764
18765
a90ef4bf
JM
18766.PHONY: all-stage3-ld maybe-all-stage3-ld
18767.PHONY: clean-stage3-ld maybe-clean-stage3-ld
18768maybe-all-stage3-ld:
18769maybe-clean-stage3-ld:
18770@if ld-bootstrap
18771maybe-all-stage3-ld: all-stage3-ld
18772all-stage3: all-stage3-ld
18773TARGET-stage3-ld = $(TARGET-ld)
18774all-stage3-ld: configure-stage3-ld
e28c595f
JM
18775 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18776 @r=`${PWD_COMMAND}`; export r; \
18777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18778 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 18779 $(HOST_EXPORTS) \
1f53ca9a 18780 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18781 cd $(HOST_SUBDIR)/ld && \
e28c595f 18782 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18783 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 18784 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
18785 LIBCFLAGS="$(STAGE3_CFLAGS)" \
18786 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18787 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18788 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18789 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18790 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 18791 $(TARGET-stage3-ld)
e28c595f 18792
a90ef4bf
JM
18793maybe-clean-stage3-ld: clean-stage3-ld
18794clean-stage3: clean-stage3-ld
18795clean-stage3-ld:
e28c595f 18796 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 18797 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18798 else \
a90ef4bf 18799 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
e28c595f
JM
18800 $(MAKE) stage3-start; \
18801 fi; \
a90ef4bf 18802 cd $(HOST_SUBDIR)/ld && \
b3676d82 18803 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18804@endif ld-bootstrap
e28c595f
JM
18805
18806
a90ef4bf
JM
18807.PHONY: all-stage4-ld maybe-all-stage4-ld
18808.PHONY: clean-stage4-ld maybe-clean-stage4-ld
18809maybe-all-stage4-ld:
18810maybe-clean-stage4-ld:
18811@if ld-bootstrap
18812maybe-all-stage4-ld: all-stage4-ld
18813all-stage4: all-stage4-ld
18814TARGET-stage4-ld = $(TARGET-ld)
18815all-stage4-ld: configure-stage4-ld
e28c595f
JM
18816 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18817 @r=`${PWD_COMMAND}`; export r; \
18818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18819 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 18820 $(HOST_EXPORTS) \
1f53ca9a 18821 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18822 cd $(HOST_SUBDIR)/ld && \
e28c595f 18823 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18824 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 18825 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 18826 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
18827 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18828 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18829 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18830 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18831 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 18832 $(TARGET-stage4-ld)
e28c595f 18833
a90ef4bf
JM
18834maybe-clean-stage4-ld: clean-stage4-ld
18835clean-stage4: clean-stage4-ld
18836clean-stage4-ld:
e28c595f 18837 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 18838 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18839 else \
a90ef4bf 18840 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
e28c595f
JM
18841 $(MAKE) stage4-start; \
18842 fi; \
a90ef4bf 18843 cd $(HOST_SUBDIR)/ld && \
b3676d82 18844 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18845@endif ld-bootstrap
e28c595f
JM
18846
18847
a90ef4bf
JM
18848.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
18849.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
18850maybe-all-stageprofile-ld:
18851maybe-clean-stageprofile-ld:
18852@if ld-bootstrap
18853maybe-all-stageprofile-ld: all-stageprofile-ld
18854all-stageprofile: all-stageprofile-ld
18855TARGET-stageprofile-ld = $(TARGET-ld)
18856all-stageprofile-ld: configure-stageprofile-ld
e28c595f
JM
18857 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18858 @r=`${PWD_COMMAND}`; export r; \
18859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18860 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 18861 $(HOST_EXPORTS) \
1f53ca9a 18862 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18863 cd $(HOST_SUBDIR)/ld && \
e28c595f 18864 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18865 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 18866 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
18867 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
18868 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18869 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18870 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18871 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18872 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 18873 $(TARGET-stageprofile-ld)
e28c595f 18874
a90ef4bf
JM
18875maybe-clean-stageprofile-ld: clean-stageprofile-ld
18876clean-stageprofile: clean-stageprofile-ld
18877clean-stageprofile-ld:
e28c595f 18878 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 18879 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18880 else \
a90ef4bf 18881 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
e28c595f
JM
18882 $(MAKE) stageprofile-start; \
18883 fi; \
a90ef4bf 18884 cd $(HOST_SUBDIR)/ld && \
b3676d82 18885 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18886@endif ld-bootstrap
e28c595f
JM
18887
18888
a90ef4bf
JM
18889.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
18890.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
18891maybe-all-stagefeedback-ld:
18892maybe-clean-stagefeedback-ld:
18893@if ld-bootstrap
18894maybe-all-stagefeedback-ld: all-stagefeedback-ld
18895all-stagefeedback: all-stagefeedback-ld
18896TARGET-stagefeedback-ld = $(TARGET-ld)
18897all-stagefeedback-ld: configure-stagefeedback-ld
e28c595f
JM
18898 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
18899 @r=`${PWD_COMMAND}`; export r; \
18900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18901 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 18902 $(HOST_EXPORTS) \
1f53ca9a 18903 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18904 cd $(HOST_SUBDIR)/ld && \
e28c595f 18905 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18906 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 18907 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
18908 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
18909 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18910 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18911 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18912 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18913 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 18914 $(TARGET-stagefeedback-ld)
e28c595f 18915
a90ef4bf
JM
18916maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
18917clean-stagefeedback: clean-stagefeedback-ld
18918clean-stagefeedback-ld:
e28c595f 18919 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 18920 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18921 else \
a90ef4bf 18922 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
e28c595f
JM
18923 $(MAKE) stagefeedback-start; \
18924 fi; \
a90ef4bf 18925 cd $(HOST_SUBDIR)/ld && \
b3676d82 18926 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18927@endif ld-bootstrap
e28c595f
JM
18928
18929
18930
18931
18932
a90ef4bf
JM
18933.PHONY: check-ld maybe-check-ld
18934maybe-check-ld:
18935@if ld
18936maybe-check-ld: check-ld
e28c595f 18937
a90ef4bf 18938check-ld:
e28c595f
JM
18939 @: $(MAKE); $(unstage)
18940 @r=`${PWD_COMMAND}`; export r; \
18941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18942 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 18943 (cd $(HOST_SUBDIR)/ld && \
f91ca6bc 18944 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 18945
a90ef4bf 18946@endif ld
e28c595f 18947
a90ef4bf
JM
18948.PHONY: install-ld maybe-install-ld
18949maybe-install-ld:
18950@if ld
18951maybe-install-ld: install-ld
e28c595f 18952
a90ef4bf
JM
18953install-ld: installdirs
18954 @: $(MAKE); $(unstage)
18955 @r=`${PWD_COMMAND}`; export r; \
18956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18957 $(HOST_EXPORTS) \
18958 (cd $(HOST_SUBDIR)/ld && \
18959 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 18960
a90ef4bf 18961@endif ld
e28c595f 18962
a90ef4bf
JM
18963.PHONY: install-strip-ld maybe-install-strip-ld
18964maybe-install-strip-ld:
18965@if ld
18966maybe-install-strip-ld: install-strip-ld
9b980aa1 18967
a90ef4bf
JM
18968install-strip-ld: installdirs
18969 @: $(MAKE); $(unstage)
18970 @r=`${PWD_COMMAND}`; export r; \
18971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18972 $(HOST_EXPORTS) \
18973 (cd $(HOST_SUBDIR)/ld && \
18974 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 18975
a90ef4bf 18976@endif ld
9b980aa1 18977
e28c595f
JM
18978# Other targets (info, dvi, pdf, etc.)
18979
a90ef4bf
JM
18980.PHONY: maybe-info-ld info-ld
18981maybe-info-ld:
18982@if ld
18983maybe-info-ld: info-ld
e28c595f 18984
a90ef4bf
JM
18985info-ld: \
18986 configure-ld
18987 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
18988 r=`${PWD_COMMAND}`; export r; \
18989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18990 $(HOST_EXPORTS) \
18991 for flag in $(EXTRA_HOST_FLAGS) ; do \
18992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18993 done; \
a90ef4bf
JM
18994 echo "Doing info in ld" ; \
18995 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
18996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18998 "RANLIB=$${RANLIB}" \
18999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19000 info) \
19001 || exit 1
19002
a90ef4bf 19003@endif ld
e28c595f 19004
a90ef4bf
JM
19005.PHONY: maybe-dvi-ld dvi-ld
19006maybe-dvi-ld:
19007@if ld
19008maybe-dvi-ld: dvi-ld
e28c595f 19009
a90ef4bf
JM
19010dvi-ld: \
19011 configure-ld
19012 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19013 r=`${PWD_COMMAND}`; export r; \
19014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19015 $(HOST_EXPORTS) \
19016 for flag in $(EXTRA_HOST_FLAGS) ; do \
19017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19018 done; \
a90ef4bf
JM
19019 echo "Doing dvi in ld" ; \
19020 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19023 "RANLIB=$${RANLIB}" \
19024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19025 dvi) \
19026 || exit 1
19027
a90ef4bf 19028@endif ld
e28c595f 19029
a90ef4bf
JM
19030.PHONY: maybe-pdf-ld pdf-ld
19031maybe-pdf-ld:
19032@if ld
19033maybe-pdf-ld: pdf-ld
e28c595f 19034
a90ef4bf
JM
19035pdf-ld: \
19036 configure-ld
19037 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19038 r=`${PWD_COMMAND}`; export r; \
19039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19040 $(HOST_EXPORTS) \
19041 for flag in $(EXTRA_HOST_FLAGS) ; do \
19042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19043 done; \
a90ef4bf
JM
19044 echo "Doing pdf in ld" ; \
19045 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19048 "RANLIB=$${RANLIB}" \
19049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19050 pdf) \
19051 || exit 1
19052
a90ef4bf 19053@endif ld
e28c595f 19054
a90ef4bf
JM
19055.PHONY: maybe-html-ld html-ld
19056maybe-html-ld:
19057@if ld
19058maybe-html-ld: html-ld
e28c595f 19059
a90ef4bf
JM
19060html-ld: \
19061 configure-ld
19062 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19063 r=`${PWD_COMMAND}`; export r; \
19064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19065 $(HOST_EXPORTS) \
19066 for flag in $(EXTRA_HOST_FLAGS) ; do \
19067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19068 done; \
a90ef4bf
JM
19069 echo "Doing html in ld" ; \
19070 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19073 "RANLIB=$${RANLIB}" \
19074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19075 html) \
19076 || exit 1
19077
a90ef4bf 19078@endif ld
e28c595f 19079
a90ef4bf
JM
19080.PHONY: maybe-TAGS-ld TAGS-ld
19081maybe-TAGS-ld:
19082@if ld
19083maybe-TAGS-ld: TAGS-ld
e28c595f 19084
a90ef4bf
JM
19085TAGS-ld: \
19086 configure-ld
19087 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19088 r=`${PWD_COMMAND}`; export r; \
19089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19090 $(HOST_EXPORTS) \
19091 for flag in $(EXTRA_HOST_FLAGS) ; do \
19092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19093 done; \
a90ef4bf
JM
19094 echo "Doing TAGS in ld" ; \
19095 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19098 "RANLIB=$${RANLIB}" \
19099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19100 TAGS) \
19101 || exit 1
19102
a90ef4bf 19103@endif ld
e28c595f 19104
a90ef4bf
JM
19105.PHONY: maybe-install-info-ld install-info-ld
19106maybe-install-info-ld:
19107@if ld
19108maybe-install-info-ld: install-info-ld
e28c595f 19109
a90ef4bf
JM
19110install-info-ld: \
19111 configure-ld \
19112 info-ld
19113 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19114 r=`${PWD_COMMAND}`; export r; \
19115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19116 $(HOST_EXPORTS) \
19117 for flag in $(EXTRA_HOST_FLAGS) ; do \
19118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19119 done; \
a90ef4bf
JM
19120 echo "Doing install-info in ld" ; \
19121 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19124 "RANLIB=$${RANLIB}" \
19125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19126 install-info) \
19127 || exit 1
19128
a90ef4bf 19129@endif ld
e28c595f 19130
a90ef4bf
JM
19131.PHONY: maybe-install-pdf-ld install-pdf-ld
19132maybe-install-pdf-ld:
19133@if ld
19134maybe-install-pdf-ld: install-pdf-ld
e28c595f 19135
a90ef4bf
JM
19136install-pdf-ld: \
19137 configure-ld \
19138 pdf-ld
19139 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19140 r=`${PWD_COMMAND}`; export r; \
19141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19142 $(HOST_EXPORTS) \
19143 for flag in $(EXTRA_HOST_FLAGS) ; do \
19144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19145 done; \
a90ef4bf
JM
19146 echo "Doing install-pdf in ld" ; \
19147 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19150 "RANLIB=$${RANLIB}" \
19151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19152 install-pdf) \
19153 || exit 1
19154
a90ef4bf 19155@endif ld
e28c595f 19156
a90ef4bf
JM
19157.PHONY: maybe-install-html-ld install-html-ld
19158maybe-install-html-ld:
19159@if ld
19160maybe-install-html-ld: install-html-ld
e28c595f 19161
a90ef4bf
JM
19162install-html-ld: \
19163 configure-ld \
19164 html-ld
19165 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19166 r=`${PWD_COMMAND}`; export r; \
19167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19168 $(HOST_EXPORTS) \
19169 for flag in $(EXTRA_HOST_FLAGS) ; do \
19170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19171 done; \
a90ef4bf
JM
19172 echo "Doing install-html in ld" ; \
19173 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19176 "RANLIB=$${RANLIB}" \
19177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19178 install-html) \
19179 || exit 1
19180
a90ef4bf 19181@endif ld
e28c595f 19182
a90ef4bf
JM
19183.PHONY: maybe-installcheck-ld installcheck-ld
19184maybe-installcheck-ld:
19185@if ld
19186maybe-installcheck-ld: installcheck-ld
e28c595f 19187
a90ef4bf
JM
19188installcheck-ld: \
19189 configure-ld
19190 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19191 r=`${PWD_COMMAND}`; export r; \
19192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19193 $(HOST_EXPORTS) \
19194 for flag in $(EXTRA_HOST_FLAGS) ; do \
19195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19196 done; \
a90ef4bf
JM
19197 echo "Doing installcheck in ld" ; \
19198 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19201 "RANLIB=$${RANLIB}" \
0c24b341 19202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19203 installcheck) \
19204 || exit 1
19205
a90ef4bf 19206@endif ld
4b900473 19207
a90ef4bf
JM
19208.PHONY: maybe-mostlyclean-ld mostlyclean-ld
19209maybe-mostlyclean-ld:
19210@if ld
19211maybe-mostlyclean-ld: mostlyclean-ld
4b900473 19212
a90ef4bf
JM
19213mostlyclean-ld:
19214 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19215 r=`${PWD_COMMAND}`; export r; \
19216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19217 $(HOST_EXPORTS) \
19218 for flag in $(EXTRA_HOST_FLAGS) ; do \
19219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19220 done; \
a90ef4bf
JM
19221 echo "Doing mostlyclean in ld" ; \
19222 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19225 "RANLIB=$${RANLIB}" \
0c24b341 19226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19227 mostlyclean) \
19228 || exit 1
19229
a90ef4bf 19230@endif ld
4b900473 19231
a90ef4bf
JM
19232.PHONY: maybe-clean-ld clean-ld
19233maybe-clean-ld:
19234@if ld
19235maybe-clean-ld: clean-ld
4b900473 19236
a90ef4bf
JM
19237clean-ld:
19238 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19239 r=`${PWD_COMMAND}`; export r; \
19240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19241 $(HOST_EXPORTS) \
19242 for flag in $(EXTRA_HOST_FLAGS) ; do \
19243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19244 done; \
a90ef4bf
JM
19245 echo "Doing clean in ld" ; \
19246 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19249 "RANLIB=$${RANLIB}" \
0c24b341 19250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19251 clean) \
19252 || exit 1
19253
a90ef4bf 19254@endif ld
4b900473 19255
a90ef4bf
JM
19256.PHONY: maybe-distclean-ld distclean-ld
19257maybe-distclean-ld:
19258@if ld
19259maybe-distclean-ld: distclean-ld
4b900473 19260
a90ef4bf
JM
19261distclean-ld:
19262 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19263 r=`${PWD_COMMAND}`; export r; \
19264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19265 $(HOST_EXPORTS) \
19266 for flag in $(EXTRA_HOST_FLAGS) ; do \
19267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19268 done; \
a90ef4bf
JM
19269 echo "Doing distclean in ld" ; \
19270 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19273 "RANLIB=$${RANLIB}" \
0c24b341 19274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19275 distclean) \
19276 || exit 1
19277
a90ef4bf 19278@endif ld
4b900473 19279
a90ef4bf
JM
19280.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
19281maybe-maintainer-clean-ld:
19282@if ld
19283maybe-maintainer-clean-ld: maintainer-clean-ld
4b900473 19284
a90ef4bf
JM
19285maintainer-clean-ld:
19286 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19287 r=`${PWD_COMMAND}`; export r; \
19288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19289 $(HOST_EXPORTS) \
19290 for flag in $(EXTRA_HOST_FLAGS) ; do \
19291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19292 done; \
a90ef4bf
JM
19293 echo "Doing maintainer-clean in ld" ; \
19294 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19297 "RANLIB=$${RANLIB}" \
0c24b341 19298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19299 maintainer-clean) \
19300 || exit 1
19301
a90ef4bf 19302@endif ld
4b900473
PB
19303
19304
19305
2bf680c4
ILT
19306.PHONY: configure-libbacktrace maybe-configure-libbacktrace
19307maybe-configure-libbacktrace:
19308@if gcc-bootstrap
19309configure-libbacktrace: stage_current
19310@endif gcc-bootstrap
19311@if libbacktrace
19312maybe-configure-libbacktrace: configure-libbacktrace
19313configure-libbacktrace:
19314 @r=`${PWD_COMMAND}`; export r; \
19315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19316 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19317 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19318 $(HOST_EXPORTS) \
19319 echo Configuring in $(HOST_SUBDIR)/libbacktrace; \
19320 cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \
19321 case $(srcdir) in \
19322 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19323 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19324 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19325 esac; \
1b6c0831
L
19326 module_srcdir=libbacktrace; \
19327 $(SHELL) \
19328 $$s/$$module_srcdir/configure \
19329 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19330 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19331 --target=${target_alias} \
2bf680c4
ILT
19332 || exit 1
19333@endif libbacktrace
19334
19335
19336
19337.PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace
19338maybe-configure-stage1-libbacktrace:
19339@if libbacktrace-bootstrap
19340maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace
19341configure-stage1-libbacktrace:
19342 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19343 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19344 @r=`${PWD_COMMAND}`; export r; \
19345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19346 TFLAGS="$(STAGE1_TFLAGS)"; \
19347 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19348 $(HOST_EXPORTS) \
19349 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
19350 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19351 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
19352 echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace ; \
19353 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19354 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19355 case $(srcdir) in \
19356 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19357 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19358 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19359 esac; \
1b6c0831
L
19360 module_srcdir=libbacktrace; \
19361 $(SHELL) $$s/$$module_srcdir/configure \
19362 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19363 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19364 --target=${target_alias} \
19365 \
2bf680c4
ILT
19366 $(STAGE1_CONFIGURE_FLAGS)
19367@endif libbacktrace-bootstrap
19368
19369.PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace
19370maybe-configure-stage2-libbacktrace:
19371@if libbacktrace-bootstrap
19372maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace
19373configure-stage2-libbacktrace:
19374 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19375 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19376 @r=`${PWD_COMMAND}`; export r; \
19377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19378 TFLAGS="$(STAGE2_TFLAGS)"; \
19379 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19380 $(HOST_EXPORTS) \
19381 $(POSTSTAGE1_HOST_EXPORTS) \
19382 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
19383 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19384 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
19385 echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace ; \
19386 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19387 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19388 case $(srcdir) in \
19389 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19390 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19391 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19392 esac; \
1b6c0831
L
19393 module_srcdir=libbacktrace; \
19394 $(SHELL) $$s/$$module_srcdir/configure \
19395 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19396 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19397 --target=${target_alias} \
19398 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19399 $(STAGE2_CONFIGURE_FLAGS)
19400@endif libbacktrace-bootstrap
19401
19402.PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace
19403maybe-configure-stage3-libbacktrace:
19404@if libbacktrace-bootstrap
19405maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace
19406configure-stage3-libbacktrace:
19407 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19408 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19409 @r=`${PWD_COMMAND}`; export r; \
19410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19411 TFLAGS="$(STAGE3_TFLAGS)"; \
19412 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19413 $(HOST_EXPORTS) \
19414 $(POSTSTAGE1_HOST_EXPORTS) \
19415 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
19416 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19417 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
19418 echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace ; \
19419 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19420 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19421 case $(srcdir) in \
19422 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19423 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19424 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19425 esac; \
1b6c0831
L
19426 module_srcdir=libbacktrace; \
19427 $(SHELL) $$s/$$module_srcdir/configure \
19428 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19429 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19430 --target=${target_alias} \
19431 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19432 $(STAGE3_CONFIGURE_FLAGS)
19433@endif libbacktrace-bootstrap
19434
19435.PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace
19436maybe-configure-stage4-libbacktrace:
19437@if libbacktrace-bootstrap
19438maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace
19439configure-stage4-libbacktrace:
19440 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19441 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19442 @r=`${PWD_COMMAND}`; export r; \
19443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19444 TFLAGS="$(STAGE4_TFLAGS)"; \
19445 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19446 $(HOST_EXPORTS) \
19447 $(POSTSTAGE1_HOST_EXPORTS) \
19448 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
19449 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19450 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
19451 echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace ; \
19452 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19453 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19454 case $(srcdir) in \
19455 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19456 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19457 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19458 esac; \
1b6c0831
L
19459 module_srcdir=libbacktrace; \
19460 $(SHELL) $$s/$$module_srcdir/configure \
19461 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19462 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19463 --target=${target_alias} \
19464 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19465 $(STAGE4_CONFIGURE_FLAGS)
19466@endif libbacktrace-bootstrap
19467
19468.PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace
19469maybe-configure-stageprofile-libbacktrace:
19470@if libbacktrace-bootstrap
19471maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19472configure-stageprofile-libbacktrace:
19473 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19474 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19475 @r=`${PWD_COMMAND}`; export r; \
19476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19477 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19478 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19479 $(HOST_EXPORTS) \
19480 $(POSTSTAGE1_HOST_EXPORTS) \
19481 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
19482 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19483 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
19484 echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace ; \
19485 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19486 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19487 case $(srcdir) in \
19488 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19489 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19490 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19491 esac; \
1b6c0831
L
19492 module_srcdir=libbacktrace; \
19493 $(SHELL) $$s/$$module_srcdir/configure \
19494 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19495 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19496 --target=${target_alias} \
19497 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19498 $(STAGEprofile_CONFIGURE_FLAGS)
19499@endif libbacktrace-bootstrap
19500
19501.PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace
19502maybe-configure-stagefeedback-libbacktrace:
19503@if libbacktrace-bootstrap
19504maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19505configure-stagefeedback-libbacktrace:
19506 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19507 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19508 @r=`${PWD_COMMAND}`; export r; \
19509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19510 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19511 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19512 $(HOST_EXPORTS) \
19513 $(POSTSTAGE1_HOST_EXPORTS) \
19514 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
19515 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19516 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
19517 echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace ; \
19518 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace ; \
19519 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19520 case $(srcdir) in \
19521 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19522 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19523 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19524 esac; \
1b6c0831
L
19525 module_srcdir=libbacktrace; \
19526 $(SHELL) $$s/$$module_srcdir/configure \
19527 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19528 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19529 --target=${target_alias} \
19530 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19531 $(STAGEfeedback_CONFIGURE_FLAGS)
19532@endif libbacktrace-bootstrap
19533
19534
19535
19536
19537
19538.PHONY: all-libbacktrace maybe-all-libbacktrace
19539maybe-all-libbacktrace:
19540@if gcc-bootstrap
19541all-libbacktrace: stage_current
19542@endif gcc-bootstrap
19543@if libbacktrace
19544TARGET-libbacktrace=all
19545maybe-all-libbacktrace: all-libbacktrace
19546all-libbacktrace: configure-libbacktrace
19547 @r=`${PWD_COMMAND}`; export r; \
19548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19549 $(HOST_EXPORTS) \
19550 (cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19551 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19552 $(TARGET-libbacktrace))
19553@endif libbacktrace
19554
19555
19556
19557.PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace
19558.PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace
19559maybe-all-stage1-libbacktrace:
19560maybe-clean-stage1-libbacktrace:
19561@if libbacktrace-bootstrap
19562maybe-all-stage1-libbacktrace: all-stage1-libbacktrace
19563all-stage1: all-stage1-libbacktrace
19564TARGET-stage1-libbacktrace = $(TARGET-libbacktrace)
19565all-stage1-libbacktrace: configure-stage1-libbacktrace
19566 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19567 @r=`${PWD_COMMAND}`; export r; \
19568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19569 TFLAGS="$(STAGE1_TFLAGS)"; \
19570 $(HOST_EXPORTS) \
19571 cd $(HOST_SUBDIR)/libbacktrace && \
19572 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19573 CFLAGS="$(STAGE1_CFLAGS)" \
19574 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
19575 LIBCFLAGS="$(LIBCFLAGS)" \
19576 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19577 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19578 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
19579 $(EXTRA_HOST_FLAGS) \
19580 $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19581 TFLAGS="$(STAGE1_TFLAGS)" \
19582 $(TARGET-stage1-libbacktrace)
19583
19584maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace
19585clean-stage1: clean-stage1-libbacktrace
19586clean-stage1-libbacktrace:
19587 @if [ $(current_stage) = stage1 ]; then \
19588 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19589 else \
19590 [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \
19591 $(MAKE) stage1-start; \
19592 fi; \
19593 cd $(HOST_SUBDIR)/libbacktrace && \
19594 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 19595 $(STAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19596@endif libbacktrace-bootstrap
19597
19598
19599.PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace
19600.PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace
19601maybe-all-stage2-libbacktrace:
19602maybe-clean-stage2-libbacktrace:
19603@if libbacktrace-bootstrap
19604maybe-all-stage2-libbacktrace: all-stage2-libbacktrace
19605all-stage2: all-stage2-libbacktrace
19606TARGET-stage2-libbacktrace = $(TARGET-libbacktrace)
19607all-stage2-libbacktrace: configure-stage2-libbacktrace
19608 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19609 @r=`${PWD_COMMAND}`; export r; \
19610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19611 TFLAGS="$(STAGE2_TFLAGS)"; \
19612 $(HOST_EXPORTS) \
19613 $(POSTSTAGE1_HOST_EXPORTS) \
19614 cd $(HOST_SUBDIR)/libbacktrace && \
19615 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19616 CFLAGS="$(STAGE2_CFLAGS)" \
19617 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
19618 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19619 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19620 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19621 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19622 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19623 TFLAGS="$(STAGE2_TFLAGS)" \
19624 $(TARGET-stage2-libbacktrace)
19625
19626maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace
19627clean-stage2: clean-stage2-libbacktrace
19628clean-stage2-libbacktrace:
19629 @if [ $(current_stage) = stage2 ]; then \
19630 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19631 else \
19632 [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \
19633 $(MAKE) stage2-start; \
19634 fi; \
19635 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19636 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19637@endif libbacktrace-bootstrap
19638
19639
19640.PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace
19641.PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace
19642maybe-all-stage3-libbacktrace:
19643maybe-clean-stage3-libbacktrace:
19644@if libbacktrace-bootstrap
19645maybe-all-stage3-libbacktrace: all-stage3-libbacktrace
19646all-stage3: all-stage3-libbacktrace
19647TARGET-stage3-libbacktrace = $(TARGET-libbacktrace)
19648all-stage3-libbacktrace: configure-stage3-libbacktrace
19649 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19650 @r=`${PWD_COMMAND}`; export r; \
19651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19652 TFLAGS="$(STAGE3_TFLAGS)"; \
19653 $(HOST_EXPORTS) \
19654 $(POSTSTAGE1_HOST_EXPORTS) \
19655 cd $(HOST_SUBDIR)/libbacktrace && \
19656 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19657 CFLAGS="$(STAGE3_CFLAGS)" \
19658 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
19659 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19660 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19661 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19662 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19663 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19664 TFLAGS="$(STAGE3_TFLAGS)" \
19665 $(TARGET-stage3-libbacktrace)
19666
19667maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace
19668clean-stage3: clean-stage3-libbacktrace
19669clean-stage3-libbacktrace:
19670 @if [ $(current_stage) = stage3 ]; then \
19671 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19672 else \
19673 [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \
19674 $(MAKE) stage3-start; \
19675 fi; \
19676 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19677 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19678@endif libbacktrace-bootstrap
19679
19680
19681.PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace
19682.PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace
19683maybe-all-stage4-libbacktrace:
19684maybe-clean-stage4-libbacktrace:
19685@if libbacktrace-bootstrap
19686maybe-all-stage4-libbacktrace: all-stage4-libbacktrace
19687all-stage4: all-stage4-libbacktrace
19688TARGET-stage4-libbacktrace = $(TARGET-libbacktrace)
19689all-stage4-libbacktrace: configure-stage4-libbacktrace
19690 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19691 @r=`${PWD_COMMAND}`; export r; \
19692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19693 TFLAGS="$(STAGE4_TFLAGS)"; \
19694 $(HOST_EXPORTS) \
19695 $(POSTSTAGE1_HOST_EXPORTS) \
19696 cd $(HOST_SUBDIR)/libbacktrace && \
19697 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19698 CFLAGS="$(STAGE4_CFLAGS)" \
19699 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
19700 LIBCFLAGS="$(STAGE4_CFLAGS)" \
19701 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19702 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19703 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19704 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19705 TFLAGS="$(STAGE4_TFLAGS)" \
19706 $(TARGET-stage4-libbacktrace)
19707
19708maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace
19709clean-stage4: clean-stage4-libbacktrace
19710clean-stage4-libbacktrace:
19711 @if [ $(current_stage) = stage4 ]; then \
19712 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19713 else \
19714 [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \
19715 $(MAKE) stage4-start; \
19716 fi; \
19717 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19718 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19719@endif libbacktrace-bootstrap
19720
19721
19722.PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace
19723.PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace
19724maybe-all-stageprofile-libbacktrace:
19725maybe-clean-stageprofile-libbacktrace:
19726@if libbacktrace-bootstrap
19727maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace
19728all-stageprofile: all-stageprofile-libbacktrace
19729TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace)
19730all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19731 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19732 @r=`${PWD_COMMAND}`; export r; \
19733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19734 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19735 $(HOST_EXPORTS) \
19736 $(POSTSTAGE1_HOST_EXPORTS) \
19737 cd $(HOST_SUBDIR)/libbacktrace && \
19738 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19739 CFLAGS="$(STAGEprofile_CFLAGS)" \
19740 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
19741 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19742 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19743 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19744 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19745 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19746 TFLAGS="$(STAGEprofile_TFLAGS)" \
19747 $(TARGET-stageprofile-libbacktrace)
19748
19749maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace
19750clean-stageprofile: clean-stageprofile-libbacktrace
19751clean-stageprofile-libbacktrace:
19752 @if [ $(current_stage) = stageprofile ]; then \
19753 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19754 else \
19755 [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \
19756 $(MAKE) stageprofile-start; \
19757 fi; \
19758 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19759 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19760@endif libbacktrace-bootstrap
19761
19762
19763.PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace
19764.PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace
19765maybe-all-stagefeedback-libbacktrace:
19766maybe-clean-stagefeedback-libbacktrace:
19767@if libbacktrace-bootstrap
19768maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace
19769all-stagefeedback: all-stagefeedback-libbacktrace
19770TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace)
19771all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19772 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19773 @r=`${PWD_COMMAND}`; export r; \
19774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19775 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19776 $(HOST_EXPORTS) \
19777 $(POSTSTAGE1_HOST_EXPORTS) \
19778 cd $(HOST_SUBDIR)/libbacktrace && \
19779 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19780 CFLAGS="$(STAGEfeedback_CFLAGS)" \
19781 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
19782 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19783 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19784 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19785 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19786 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19787 TFLAGS="$(STAGEfeedback_TFLAGS)" \
19788 $(TARGET-stagefeedback-libbacktrace)
19789
19790maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace
19791clean-stagefeedback: clean-stagefeedback-libbacktrace
19792clean-stagefeedback-libbacktrace:
19793 @if [ $(current_stage) = stagefeedback ]; then \
19794 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19795 else \
19796 [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \
19797 $(MAKE) stagefeedback-start; \
19798 fi; \
19799 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19800 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19801@endif libbacktrace-bootstrap
19802
19803
19804
19805
19806
19807.PHONY: check-libbacktrace maybe-check-libbacktrace
19808maybe-check-libbacktrace:
19809@if libbacktrace
19810maybe-check-libbacktrace: check-libbacktrace
19811
19812check-libbacktrace:
19813 @: $(MAKE); $(unstage)
19814 @r=`${PWD_COMMAND}`; export r; \
19815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19816 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
2bf680c4 19817 (cd $(HOST_SUBDIR)/libbacktrace && \
f91ca6bc 19818 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2bf680c4
ILT
19819
19820@endif libbacktrace
19821
19822.PHONY: install-libbacktrace maybe-install-libbacktrace
19823maybe-install-libbacktrace:
19824@if libbacktrace
19825maybe-install-libbacktrace: install-libbacktrace
19826
19827install-libbacktrace: installdirs
19828 @: $(MAKE); $(unstage)
19829 @r=`${PWD_COMMAND}`; export r; \
19830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19831 $(HOST_EXPORTS) \
19832 (cd $(HOST_SUBDIR)/libbacktrace && \
19833 $(MAKE) $(FLAGS_TO_PASS) install)
19834
19835@endif libbacktrace
19836
19837.PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace
19838maybe-install-strip-libbacktrace:
19839@if libbacktrace
19840maybe-install-strip-libbacktrace: install-strip-libbacktrace
19841
19842install-strip-libbacktrace: installdirs
19843 @: $(MAKE); $(unstage)
19844 @r=`${PWD_COMMAND}`; export r; \
19845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19846 $(HOST_EXPORTS) \
19847 (cd $(HOST_SUBDIR)/libbacktrace && \
19848 $(MAKE) $(FLAGS_TO_PASS) install-strip)
19849
19850@endif libbacktrace
19851
19852# Other targets (info, dvi, pdf, etc.)
19853
19854.PHONY: maybe-info-libbacktrace info-libbacktrace
19855maybe-info-libbacktrace:
19856@if libbacktrace
19857maybe-info-libbacktrace: info-libbacktrace
19858
19859info-libbacktrace: \
19860 configure-libbacktrace
19861 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19862 r=`${PWD_COMMAND}`; export r; \
19863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19864 $(HOST_EXPORTS) \
19865 for flag in $(EXTRA_HOST_FLAGS) ; do \
19866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19867 done; \
19868 echo "Doing info in libbacktrace" ; \
19869 (cd $(HOST_SUBDIR)/libbacktrace && \
19870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19872 "RANLIB=$${RANLIB}" \
19873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19874 info) \
19875 || exit 1
19876
19877@endif libbacktrace
19878
19879.PHONY: maybe-dvi-libbacktrace dvi-libbacktrace
19880maybe-dvi-libbacktrace:
19881@if libbacktrace
19882maybe-dvi-libbacktrace: dvi-libbacktrace
19883
19884dvi-libbacktrace: \
19885 configure-libbacktrace
19886 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19887 r=`${PWD_COMMAND}`; export r; \
19888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19889 $(HOST_EXPORTS) \
19890 for flag in $(EXTRA_HOST_FLAGS) ; do \
19891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19892 done; \
19893 echo "Doing dvi in libbacktrace" ; \
19894 (cd $(HOST_SUBDIR)/libbacktrace && \
19895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19897 "RANLIB=$${RANLIB}" \
19898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19899 dvi) \
19900 || exit 1
19901
19902@endif libbacktrace
19903
19904.PHONY: maybe-pdf-libbacktrace pdf-libbacktrace
19905maybe-pdf-libbacktrace:
19906@if libbacktrace
19907maybe-pdf-libbacktrace: pdf-libbacktrace
19908
19909pdf-libbacktrace: \
19910 configure-libbacktrace
19911 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19912 r=`${PWD_COMMAND}`; export r; \
19913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19914 $(HOST_EXPORTS) \
19915 for flag in $(EXTRA_HOST_FLAGS) ; do \
19916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19917 done; \
19918 echo "Doing pdf in libbacktrace" ; \
19919 (cd $(HOST_SUBDIR)/libbacktrace && \
19920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19922 "RANLIB=$${RANLIB}" \
19923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19924 pdf) \
19925 || exit 1
19926
19927@endif libbacktrace
19928
19929.PHONY: maybe-html-libbacktrace html-libbacktrace
19930maybe-html-libbacktrace:
19931@if libbacktrace
19932maybe-html-libbacktrace: html-libbacktrace
19933
19934html-libbacktrace: \
19935 configure-libbacktrace
19936 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19937 r=`${PWD_COMMAND}`; export r; \
19938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19939 $(HOST_EXPORTS) \
19940 for flag in $(EXTRA_HOST_FLAGS) ; do \
19941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19942 done; \
19943 echo "Doing html in libbacktrace" ; \
19944 (cd $(HOST_SUBDIR)/libbacktrace && \
19945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19947 "RANLIB=$${RANLIB}" \
19948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19949 html) \
19950 || exit 1
19951
19952@endif libbacktrace
19953
19954.PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace
19955maybe-TAGS-libbacktrace:
19956@if libbacktrace
19957maybe-TAGS-libbacktrace: TAGS-libbacktrace
19958
19959TAGS-libbacktrace: \
19960 configure-libbacktrace
19961 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19962 r=`${PWD_COMMAND}`; export r; \
19963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19964 $(HOST_EXPORTS) \
19965 for flag in $(EXTRA_HOST_FLAGS) ; do \
19966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19967 done; \
19968 echo "Doing TAGS in libbacktrace" ; \
19969 (cd $(HOST_SUBDIR)/libbacktrace && \
19970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19972 "RANLIB=$${RANLIB}" \
19973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19974 TAGS) \
19975 || exit 1
19976
19977@endif libbacktrace
19978
19979.PHONY: maybe-install-info-libbacktrace install-info-libbacktrace
19980maybe-install-info-libbacktrace:
19981@if libbacktrace
19982maybe-install-info-libbacktrace: install-info-libbacktrace
19983
19984install-info-libbacktrace: \
19985 configure-libbacktrace \
19986 info-libbacktrace
19987 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19988 r=`${PWD_COMMAND}`; export r; \
19989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19990 $(HOST_EXPORTS) \
19991 for flag in $(EXTRA_HOST_FLAGS) ; do \
19992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19993 done; \
19994 echo "Doing install-info in libbacktrace" ; \
19995 (cd $(HOST_SUBDIR)/libbacktrace && \
19996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19998 "RANLIB=$${RANLIB}" \
19999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20000 install-info) \
20001 || exit 1
20002
20003@endif libbacktrace
20004
20005.PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace
20006maybe-install-pdf-libbacktrace:
20007@if libbacktrace
20008maybe-install-pdf-libbacktrace: install-pdf-libbacktrace
20009
20010install-pdf-libbacktrace: \
20011 configure-libbacktrace \
20012 pdf-libbacktrace
20013 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20014 r=`${PWD_COMMAND}`; export r; \
20015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20016 $(HOST_EXPORTS) \
20017 for flag in $(EXTRA_HOST_FLAGS) ; do \
20018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20019 done; \
20020 echo "Doing install-pdf in libbacktrace" ; \
20021 (cd $(HOST_SUBDIR)/libbacktrace && \
20022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20024 "RANLIB=$${RANLIB}" \
20025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20026 install-pdf) \
20027 || exit 1
20028
20029@endif libbacktrace
20030
20031.PHONY: maybe-install-html-libbacktrace install-html-libbacktrace
20032maybe-install-html-libbacktrace:
20033@if libbacktrace
20034maybe-install-html-libbacktrace: install-html-libbacktrace
20035
20036install-html-libbacktrace: \
20037 configure-libbacktrace \
20038 html-libbacktrace
20039 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20040 r=`${PWD_COMMAND}`; export r; \
20041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20042 $(HOST_EXPORTS) \
20043 for flag in $(EXTRA_HOST_FLAGS) ; do \
20044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20045 done; \
20046 echo "Doing install-html in libbacktrace" ; \
20047 (cd $(HOST_SUBDIR)/libbacktrace && \
20048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20050 "RANLIB=$${RANLIB}" \
20051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20052 install-html) \
20053 || exit 1
20054
20055@endif libbacktrace
20056
20057.PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace
20058maybe-installcheck-libbacktrace:
20059@if libbacktrace
20060maybe-installcheck-libbacktrace: installcheck-libbacktrace
20061
20062installcheck-libbacktrace: \
20063 configure-libbacktrace
20064 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20065 r=`${PWD_COMMAND}`; export r; \
20066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20067 $(HOST_EXPORTS) \
20068 for flag in $(EXTRA_HOST_FLAGS) ; do \
20069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20070 done; \
20071 echo "Doing installcheck in libbacktrace" ; \
20072 (cd $(HOST_SUBDIR)/libbacktrace && \
20073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20075 "RANLIB=$${RANLIB}" \
20076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20077 installcheck) \
20078 || exit 1
20079
20080@endif libbacktrace
20081
20082.PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace
20083maybe-mostlyclean-libbacktrace:
20084@if libbacktrace
20085maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace
20086
20087mostlyclean-libbacktrace:
20088 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20089 r=`${PWD_COMMAND}`; export r; \
20090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20091 $(HOST_EXPORTS) \
20092 for flag in $(EXTRA_HOST_FLAGS) ; do \
20093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20094 done; \
20095 echo "Doing mostlyclean in libbacktrace" ; \
20096 (cd $(HOST_SUBDIR)/libbacktrace && \
20097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20099 "RANLIB=$${RANLIB}" \
20100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20101 mostlyclean) \
20102 || exit 1
20103
20104@endif libbacktrace
20105
20106.PHONY: maybe-clean-libbacktrace clean-libbacktrace
20107maybe-clean-libbacktrace:
20108@if libbacktrace
20109maybe-clean-libbacktrace: clean-libbacktrace
20110
20111clean-libbacktrace:
20112 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20113 r=`${PWD_COMMAND}`; export r; \
20114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20115 $(HOST_EXPORTS) \
20116 for flag in $(EXTRA_HOST_FLAGS) ; do \
20117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20118 done; \
20119 echo "Doing clean in libbacktrace" ; \
20120 (cd $(HOST_SUBDIR)/libbacktrace && \
20121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20123 "RANLIB=$${RANLIB}" \
20124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20125 clean) \
20126 || exit 1
20127
20128@endif libbacktrace
20129
20130.PHONY: maybe-distclean-libbacktrace distclean-libbacktrace
20131maybe-distclean-libbacktrace:
20132@if libbacktrace
20133maybe-distclean-libbacktrace: distclean-libbacktrace
20134
20135distclean-libbacktrace:
20136 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20137 r=`${PWD_COMMAND}`; export r; \
20138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20139 $(HOST_EXPORTS) \
20140 for flag in $(EXTRA_HOST_FLAGS) ; do \
20141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20142 done; \
20143 echo "Doing distclean in libbacktrace" ; \
20144 (cd $(HOST_SUBDIR)/libbacktrace && \
20145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20147 "RANLIB=$${RANLIB}" \
20148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20149 distclean) \
20150 || exit 1
20151
20152@endif libbacktrace
20153
20154.PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace
20155maybe-maintainer-clean-libbacktrace:
20156@if libbacktrace
20157maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace
20158
20159maintainer-clean-libbacktrace:
20160 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20161 r=`${PWD_COMMAND}`; export r; \
20162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20163 $(HOST_EXPORTS) \
20164 for flag in $(EXTRA_HOST_FLAGS) ; do \
20165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20166 done; \
20167 echo "Doing maintainer-clean in libbacktrace" ; \
20168 (cd $(HOST_SUBDIR)/libbacktrace && \
20169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20171 "RANLIB=$${RANLIB}" \
20172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20173 maintainer-clean) \
20174 || exit 1
20175
20176@endif libbacktrace
20177
20178
20179
a90ef4bf
JM
20180.PHONY: configure-libcpp maybe-configure-libcpp
20181maybe-configure-libcpp:
4b900473 20182@if gcc-bootstrap
a90ef4bf 20183configure-libcpp: stage_current
4b900473 20184@endif gcc-bootstrap
a90ef4bf
JM
20185@if libcpp
20186maybe-configure-libcpp: configure-libcpp
20187configure-libcpp:
4b900473
PB
20188 @r=`${PWD_COMMAND}`; export r; \
20189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20190 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
20191 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20192 $(HOST_EXPORTS) \
20193 echo Configuring in $(HOST_SUBDIR)/libcpp; \
20194 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
4b900473
PB
20195 case $(srcdir) in \
20196 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20197 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20198 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20199 esac; \
1b6c0831
L
20200 module_srcdir=libcpp; \
20201 $(SHELL) \
20202 $$s/$$module_srcdir/configure \
20203 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20204 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20205 --target=${target_alias} \
4b900473 20206 || exit 1
a90ef4bf 20207@endif libcpp
4b900473
PB
20208
20209
20210
a90ef4bf
JM
20211.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
20212maybe-configure-stage1-libcpp:
20213@if libcpp-bootstrap
20214maybe-configure-stage1-libcpp: configure-stage1-libcpp
20215configure-stage1-libcpp:
4b900473 20216 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 20217 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20218 @r=`${PWD_COMMAND}`; export r; \
20219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20220 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 20221 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
1b05fbbd 20222 $(HOST_EXPORTS) \
8ee82aff 20223 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 20224 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20225 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
20226 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp ; \
20227 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20228 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20229 case $(srcdir) in \
20230 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20231 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20232 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20233 esac; \
1b6c0831
L
20234 module_srcdir=libcpp; \
20235 $(SHELL) $$s/$$module_srcdir/configure \
20236 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20237 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20238 --target=${target_alias} \
20239 \
a90ef4bf
JM
20240 $(STAGE1_CONFIGURE_FLAGS)
20241@endif libcpp-bootstrap
e28c595f 20242
a90ef4bf
JM
20243.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
20244maybe-configure-stage2-libcpp:
20245@if libcpp-bootstrap
20246maybe-configure-stage2-libcpp: configure-stage2-libcpp
20247configure-stage2-libcpp:
4b900473 20248 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 20249 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20250 @r=`${PWD_COMMAND}`; export r; \
20251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20252 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 20253 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20254 $(HOST_EXPORTS) \
1b05fbbd 20255 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20256 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 20257 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20258 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
20259 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp ; \
20260 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20261 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20262 case $(srcdir) in \
20263 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20264 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20265 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20266 esac; \
1b6c0831
L
20267 module_srcdir=libcpp; \
20268 $(SHELL) $$s/$$module_srcdir/configure \
20269 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20270 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20271 --target=${target_alias} \
20272 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20273 $(STAGE2_CONFIGURE_FLAGS)
20274@endif libcpp-bootstrap
e28c595f 20275
a90ef4bf
JM
20276.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
20277maybe-configure-stage3-libcpp:
20278@if libcpp-bootstrap
20279maybe-configure-stage3-libcpp: configure-stage3-libcpp
20280configure-stage3-libcpp:
4b900473 20281 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 20282 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20283 @r=`${PWD_COMMAND}`; export r; \
20284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20285 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 20286 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20287 $(HOST_EXPORTS) \
1b05fbbd 20288 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20289 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 20290 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20291 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
20292 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp ; \
20293 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20294 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20295 case $(srcdir) in \
20296 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20297 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20298 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20299 esac; \
1b6c0831
L
20300 module_srcdir=libcpp; \
20301 $(SHELL) $$s/$$module_srcdir/configure \
20302 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20303 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20304 --target=${target_alias} \
20305 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20306 $(STAGE3_CONFIGURE_FLAGS)
20307@endif libcpp-bootstrap
e28c595f 20308
a90ef4bf
JM
20309.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
20310maybe-configure-stage4-libcpp:
20311@if libcpp-bootstrap
20312maybe-configure-stage4-libcpp: configure-stage4-libcpp
20313configure-stage4-libcpp:
4b900473 20314 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 20315 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20316 @r=`${PWD_COMMAND}`; export r; \
20317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20318 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 20319 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20320 $(HOST_EXPORTS) \
1b05fbbd 20321 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20322 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 20323 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20324 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
20325 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp ; \
20326 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20327 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20328 case $(srcdir) in \
20329 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20330 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20331 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20332 esac; \
1b6c0831
L
20333 module_srcdir=libcpp; \
20334 $(SHELL) $$s/$$module_srcdir/configure \
20335 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20336 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20337 --target=${target_alias} \
20338 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20339 $(STAGE4_CONFIGURE_FLAGS)
20340@endif libcpp-bootstrap
e28c595f 20341
a90ef4bf
JM
20342.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
20343maybe-configure-stageprofile-libcpp:
20344@if libcpp-bootstrap
20345maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
20346configure-stageprofile-libcpp:
4b900473 20347 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 20348 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20349 @r=`${PWD_COMMAND}`; export r; \
20350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20351 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 20352 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20353 $(HOST_EXPORTS) \
1b05fbbd
AO
20354 $(POSTSTAGE1_HOST_EXPORTS) \
20355 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 20356 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20357 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
20358 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp ; \
20359 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20360 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20361 case $(srcdir) in \
20362 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20363 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20364 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20365 esac; \
1b6c0831
L
20366 module_srcdir=libcpp; \
20367 $(SHELL) $$s/$$module_srcdir/configure \
20368 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20369 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20370 --target=${target_alias} \
20371 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20372 $(STAGEprofile_CONFIGURE_FLAGS)
20373@endif libcpp-bootstrap
e28c595f 20374
a90ef4bf
JM
20375.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
20376maybe-configure-stagefeedback-libcpp:
20377@if libcpp-bootstrap
20378maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
20379configure-stagefeedback-libcpp:
4b900473 20380 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 20381 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20382 @r=`${PWD_COMMAND}`; export r; \
20383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20384 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 20385 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20386 $(HOST_EXPORTS) \
1b05fbbd
AO
20387 $(POSTSTAGE1_HOST_EXPORTS) \
20388 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 20389 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf
JM
20390 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
20391 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp ; \
20392 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
20393 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20394 case $(srcdir) in \
20395 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20396 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20397 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20398 esac; \
1b6c0831
L
20399 module_srcdir=libcpp; \
20400 $(SHELL) $$s/$$module_srcdir/configure \
20401 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20402 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20403 --target=${target_alias} \
20404 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20405 $(STAGEfeedback_CONFIGURE_FLAGS)
20406@endif libcpp-bootstrap
4b900473
PB
20407
20408
20409
20410
20411
a90ef4bf
JM
20412.PHONY: all-libcpp maybe-all-libcpp
20413maybe-all-libcpp:
4b900473 20414@if gcc-bootstrap
a90ef4bf 20415all-libcpp: stage_current
4b900473 20416@endif gcc-bootstrap
a90ef4bf
JM
20417@if libcpp
20418TARGET-libcpp=all
20419maybe-all-libcpp: all-libcpp
20420all-libcpp: configure-libcpp
4b900473
PB
20421 @r=`${PWD_COMMAND}`; export r; \
20422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20423 $(HOST_EXPORTS) \
20424 (cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20425 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20426 $(TARGET-libcpp))
20427@endif libcpp
4b900473
PB
20428
20429
20430
a90ef4bf
JM
20431.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
20432.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
20433maybe-all-stage1-libcpp:
20434maybe-clean-stage1-libcpp:
20435@if libcpp-bootstrap
20436maybe-all-stage1-libcpp: all-stage1-libcpp
20437all-stage1: all-stage1-libcpp
20438TARGET-stage1-libcpp = $(TARGET-libcpp)
20439all-stage1-libcpp: configure-stage1-libcpp
4b900473
PB
20440 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20441 @r=`${PWD_COMMAND}`; export r; \
20442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20443 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf
JM
20444 $(HOST_EXPORTS) \
20445 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20446 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20447 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 20448 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
20449 LIBCFLAGS="$(LIBCFLAGS)" \
20450 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20451 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20452 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
20453 $(EXTRA_HOST_FLAGS) \
20454 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 20455 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 20456 $(TARGET-stage1-libcpp)
4b900473 20457
a90ef4bf
JM
20458maybe-clean-stage1-libcpp: clean-stage1-libcpp
20459clean-stage1: clean-stage1-libcpp
20460clean-stage1-libcpp:
4b900473 20461 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 20462 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20463 else \
a90ef4bf 20464 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
4b900473
PB
20465 $(MAKE) stage1-start; \
20466 fi; \
a90ef4bf 20467 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20468 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 20469 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20470@endif libcpp-bootstrap
e28c595f
JM
20471
20472
a90ef4bf
JM
20473.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
20474.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
20475maybe-all-stage2-libcpp:
20476maybe-clean-stage2-libcpp:
20477@if libcpp-bootstrap
20478maybe-all-stage2-libcpp: all-stage2-libcpp
20479all-stage2: all-stage2-libcpp
20480TARGET-stage2-libcpp = $(TARGET-libcpp)
20481all-stage2-libcpp: configure-stage2-libcpp
4b900473
PB
20482 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20483 @r=`${PWD_COMMAND}`; export r; \
20484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20485 TFLAGS="$(STAGE2_TFLAGS)"; \
4b900473 20486 $(HOST_EXPORTS) \
a90ef4bf
JM
20487 $(POSTSTAGE1_HOST_EXPORTS) \
20488 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20489 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20490 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 20491 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
20492 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20493 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20494 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20495 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20496 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20497 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 20498 $(TARGET-stage2-libcpp)
4b900473 20499
a90ef4bf
JM
20500maybe-clean-stage2-libcpp: clean-stage2-libcpp
20501clean-stage2: clean-stage2-libcpp
20502clean-stage2-libcpp:
4b900473 20503 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 20504 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20505 else \
a90ef4bf 20506 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
4b900473
PB
20507 $(MAKE) stage2-start; \
20508 fi; \
a90ef4bf 20509 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20510 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20511@endif libcpp-bootstrap
e28c595f
JM
20512
20513
a90ef4bf
JM
20514.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
20515.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
20516maybe-all-stage3-libcpp:
20517maybe-clean-stage3-libcpp:
20518@if libcpp-bootstrap
20519maybe-all-stage3-libcpp: all-stage3-libcpp
20520all-stage3: all-stage3-libcpp
20521TARGET-stage3-libcpp = $(TARGET-libcpp)
20522all-stage3-libcpp: configure-stage3-libcpp
4b900473
PB
20523 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20524 @r=`${PWD_COMMAND}`; export r; \
20525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20526 TFLAGS="$(STAGE3_TFLAGS)"; \
4b900473 20527 $(HOST_EXPORTS) \
a90ef4bf
JM
20528 $(POSTSTAGE1_HOST_EXPORTS) \
20529 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20530 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20531 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 20532 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
20533 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20534 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20535 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20536 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20537 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20538 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 20539 $(TARGET-stage3-libcpp)
4b900473 20540
a90ef4bf
JM
20541maybe-clean-stage3-libcpp: clean-stage3-libcpp
20542clean-stage3: clean-stage3-libcpp
20543clean-stage3-libcpp:
4b900473 20544 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 20545 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20546 else \
a90ef4bf 20547 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
4b900473
PB
20548 $(MAKE) stage3-start; \
20549 fi; \
a90ef4bf 20550 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20551 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20552@endif libcpp-bootstrap
e28c595f
JM
20553
20554
a90ef4bf
JM
20555.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
20556.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
20557maybe-all-stage4-libcpp:
20558maybe-clean-stage4-libcpp:
20559@if libcpp-bootstrap
20560maybe-all-stage4-libcpp: all-stage4-libcpp
20561all-stage4: all-stage4-libcpp
20562TARGET-stage4-libcpp = $(TARGET-libcpp)
20563all-stage4-libcpp: configure-stage4-libcpp
4b900473
PB
20564 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20565 @r=`${PWD_COMMAND}`; export r; \
20566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20567 TFLAGS="$(STAGE4_TFLAGS)"; \
4b900473 20568 $(HOST_EXPORTS) \
a90ef4bf
JM
20569 $(POSTSTAGE1_HOST_EXPORTS) \
20570 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20571 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20572 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 20573 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 20574 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
20575 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20576 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20577 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20578 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20579 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 20580 $(TARGET-stage4-libcpp)
4b900473 20581
a90ef4bf
JM
20582maybe-clean-stage4-libcpp: clean-stage4-libcpp
20583clean-stage4: clean-stage4-libcpp
20584clean-stage4-libcpp:
4b900473 20585 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 20586 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20587 else \
a90ef4bf 20588 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
4b900473
PB
20589 $(MAKE) stage4-start; \
20590 fi; \
a90ef4bf 20591 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20592 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20593@endif libcpp-bootstrap
e28c595f
JM
20594
20595
a90ef4bf
JM
20596.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
20597.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
20598maybe-all-stageprofile-libcpp:
20599maybe-clean-stageprofile-libcpp:
20600@if libcpp-bootstrap
20601maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
20602all-stageprofile: all-stageprofile-libcpp
20603TARGET-stageprofile-libcpp = $(TARGET-libcpp)
20604all-stageprofile-libcpp: configure-stageprofile-libcpp
4b900473
PB
20605 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20606 @r=`${PWD_COMMAND}`; export r; \
20607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20608 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4b900473 20609 $(HOST_EXPORTS) \
a90ef4bf
JM
20610 $(POSTSTAGE1_HOST_EXPORTS) \
20611 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20612 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20613 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 20614 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
20615 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20616 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20617 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20618 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20619 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20620 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 20621 $(TARGET-stageprofile-libcpp)
4b900473 20622
a90ef4bf
JM
20623maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
20624clean-stageprofile: clean-stageprofile-libcpp
20625clean-stageprofile-libcpp:
4b900473 20626 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 20627 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20628 else \
a90ef4bf 20629 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
4b900473
PB
20630 $(MAKE) stageprofile-start; \
20631 fi; \
a90ef4bf 20632 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20633 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20634@endif libcpp-bootstrap
e28c595f
JM
20635
20636
a90ef4bf
JM
20637.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
20638.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
20639maybe-all-stagefeedback-libcpp:
20640maybe-clean-stagefeedback-libcpp:
20641@if libcpp-bootstrap
20642maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
20643all-stagefeedback: all-stagefeedback-libcpp
20644TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
20645all-stagefeedback-libcpp: configure-stagefeedback-libcpp
4b900473
PB
20646 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20647 @r=`${PWD_COMMAND}`; export r; \
20648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20649 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4b900473 20650 $(HOST_EXPORTS) \
a90ef4bf
JM
20651 $(POSTSTAGE1_HOST_EXPORTS) \
20652 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20653 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20654 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 20655 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
20656 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20657 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20658 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20659 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20660 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20661 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 20662 $(TARGET-stagefeedback-libcpp)
4b900473 20663
a90ef4bf
JM
20664maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
20665clean-stagefeedback: clean-stagefeedback-libcpp
20666clean-stagefeedback-libcpp:
4b900473 20667 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 20668 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20669 else \
a90ef4bf 20670 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
4b900473
PB
20671 $(MAKE) stagefeedback-start; \
20672 fi; \
a90ef4bf 20673 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20674 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20675@endif libcpp-bootstrap
4b900473
PB
20676
20677
20678
20679
20680
a90ef4bf
JM
20681.PHONY: check-libcpp maybe-check-libcpp
20682maybe-check-libcpp:
20683@if libcpp
20684maybe-check-libcpp: check-libcpp
4b900473 20685
a90ef4bf 20686check-libcpp:
4b900473
PB
20687 @: $(MAKE); $(unstage)
20688 @r=`${PWD_COMMAND}`; export r; \
20689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 20690 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 20691 (cd $(HOST_SUBDIR)/libcpp && \
f91ca6bc 20692 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4b900473 20693
a90ef4bf 20694@endif libcpp
4b900473 20695
a90ef4bf
JM
20696.PHONY: install-libcpp maybe-install-libcpp
20697maybe-install-libcpp:
20698@if libcpp
20699maybe-install-libcpp: install-libcpp
4b900473 20700
a90ef4bf
JM
20701install-libcpp: installdirs
20702 @: $(MAKE); $(unstage)
20703 @r=`${PWD_COMMAND}`; export r; \
20704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20705 $(HOST_EXPORTS) \
20706 (cd $(HOST_SUBDIR)/libcpp && \
20707 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 20708
a90ef4bf 20709@endif libcpp
4b900473 20710
a90ef4bf
JM
20711.PHONY: install-strip-libcpp maybe-install-strip-libcpp
20712maybe-install-strip-libcpp:
20713@if libcpp
20714maybe-install-strip-libcpp: install-strip-libcpp
9b980aa1 20715
a90ef4bf
JM
20716install-strip-libcpp: installdirs
20717 @: $(MAKE); $(unstage)
20718 @r=`${PWD_COMMAND}`; export r; \
20719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20720 $(HOST_EXPORTS) \
20721 (cd $(HOST_SUBDIR)/libcpp && \
20722 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 20723
a90ef4bf 20724@endif libcpp
9b980aa1 20725
4b900473
PB
20726# Other targets (info, dvi, pdf, etc.)
20727
a90ef4bf
JM
20728.PHONY: maybe-info-libcpp info-libcpp
20729maybe-info-libcpp:
20730@if libcpp
20731maybe-info-libcpp: info-libcpp
4b900473 20732
a90ef4bf
JM
20733info-libcpp: \
20734 configure-libcpp
20735 @[ -f ./libcpp/Makefile ] || exit 0; \
20736 r=`${PWD_COMMAND}`; export r; \
4b900473
PB
20737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20738 $(HOST_EXPORTS) \
a90ef4bf 20739 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20741 done; \
a90ef4bf
JM
20742 echo "Doing info in libcpp" ; \
20743 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20746 "RANLIB=$${RANLIB}" \
0c24b341 20747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20748 info) \
20749 || exit 1
20750
a90ef4bf 20751@endif libcpp
4b900473 20752
a90ef4bf
JM
20753.PHONY: maybe-dvi-libcpp dvi-libcpp
20754maybe-dvi-libcpp:
20755@if libcpp
20756maybe-dvi-libcpp: dvi-libcpp
4b900473 20757
a90ef4bf
JM
20758dvi-libcpp: \
20759 configure-libcpp
20760 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20761 r=`${PWD_COMMAND}`; export r; \
20762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20763 $(HOST_EXPORTS) \
a90ef4bf 20764 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20766 done; \
a90ef4bf
JM
20767 echo "Doing dvi in libcpp" ; \
20768 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20771 "RANLIB=$${RANLIB}" \
0c24b341 20772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20773 dvi) \
20774 || exit 1
20775
a90ef4bf 20776@endif libcpp
4b900473 20777
a90ef4bf
JM
20778.PHONY: maybe-pdf-libcpp pdf-libcpp
20779maybe-pdf-libcpp:
20780@if libcpp
20781maybe-pdf-libcpp: pdf-libcpp
4b900473 20782
a90ef4bf
JM
20783pdf-libcpp: \
20784 configure-libcpp
20785 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20786 r=`${PWD_COMMAND}`; export r; \
20787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20788 $(HOST_EXPORTS) \
a90ef4bf 20789 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20791 done; \
a90ef4bf
JM
20792 echo "Doing pdf in libcpp" ; \
20793 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20796 "RANLIB=$${RANLIB}" \
0c24b341 20797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20798 pdf) \
20799 || exit 1
20800
a90ef4bf 20801@endif libcpp
4b900473 20802
a90ef4bf
JM
20803.PHONY: maybe-html-libcpp html-libcpp
20804maybe-html-libcpp:
20805@if libcpp
20806maybe-html-libcpp: html-libcpp
4b900473 20807
a90ef4bf
JM
20808html-libcpp: \
20809 configure-libcpp
20810 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20811 r=`${PWD_COMMAND}`; export r; \
20812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20813 $(HOST_EXPORTS) \
a90ef4bf 20814 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20816 done; \
a90ef4bf
JM
20817 echo "Doing html in libcpp" ; \
20818 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20821 "RANLIB=$${RANLIB}" \
0c24b341 20822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20823 html) \
20824 || exit 1
20825
a90ef4bf 20826@endif libcpp
4b900473 20827
a90ef4bf
JM
20828.PHONY: maybe-TAGS-libcpp TAGS-libcpp
20829maybe-TAGS-libcpp:
20830@if libcpp
20831maybe-TAGS-libcpp: TAGS-libcpp
4b900473 20832
a90ef4bf
JM
20833TAGS-libcpp: \
20834 configure-libcpp
20835 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20836 r=`${PWD_COMMAND}`; export r; \
20837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20838 $(HOST_EXPORTS) \
a90ef4bf 20839 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20841 done; \
a90ef4bf
JM
20842 echo "Doing TAGS in libcpp" ; \
20843 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20846 "RANLIB=$${RANLIB}" \
0c24b341 20847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20848 TAGS) \
20849 || exit 1
20850
a90ef4bf 20851@endif libcpp
4b900473 20852
a90ef4bf
JM
20853.PHONY: maybe-install-info-libcpp install-info-libcpp
20854maybe-install-info-libcpp:
20855@if libcpp
20856maybe-install-info-libcpp: install-info-libcpp
4b900473 20857
a90ef4bf
JM
20858install-info-libcpp: \
20859 configure-libcpp \
20860 info-libcpp
20861 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20862 r=`${PWD_COMMAND}`; export r; \
20863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20864 $(HOST_EXPORTS) \
a90ef4bf 20865 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20867 done; \
a90ef4bf
JM
20868 echo "Doing install-info in libcpp" ; \
20869 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20872 "RANLIB=$${RANLIB}" \
0c24b341 20873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20874 install-info) \
20875 || exit 1
20876
a90ef4bf 20877@endif libcpp
4b900473 20878
a90ef4bf
JM
20879.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
20880maybe-install-pdf-libcpp:
20881@if libcpp
20882maybe-install-pdf-libcpp: install-pdf-libcpp
a3ca38d2 20883
a90ef4bf
JM
20884install-pdf-libcpp: \
20885 configure-libcpp \
20886 pdf-libcpp
20887 @[ -f ./libcpp/Makefile ] || exit 0; \
a3ca38d2
DD
20888 r=`${PWD_COMMAND}`; export r; \
20889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20890 $(HOST_EXPORTS) \
a90ef4bf 20891 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
20892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20893 done; \
a90ef4bf
JM
20894 echo "Doing install-pdf in libcpp" ; \
20895 (cd $(HOST_SUBDIR)/libcpp && \
a3ca38d2
DD
20896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20898 "RANLIB=$${RANLIB}" \
0c24b341 20899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
20900 install-pdf) \
20901 || exit 1
20902
a90ef4bf 20903@endif libcpp
a3ca38d2 20904
a90ef4bf
JM
20905.PHONY: maybe-install-html-libcpp install-html-libcpp
20906maybe-install-html-libcpp:
20907@if libcpp
20908maybe-install-html-libcpp: install-html-libcpp
4b900473 20909
a90ef4bf
JM
20910install-html-libcpp: \
20911 configure-libcpp \
20912 html-libcpp
20913 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20914 r=`${PWD_COMMAND}`; export r; \
20915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20916 $(HOST_EXPORTS) \
a90ef4bf 20917 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20919 done; \
a90ef4bf
JM
20920 echo "Doing install-html in libcpp" ; \
20921 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20924 "RANLIB=$${RANLIB}" \
0c24b341 20925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20926 install-html) \
20927 || exit 1
20928
a90ef4bf 20929@endif libcpp
4b900473 20930
a90ef4bf
JM
20931.PHONY: maybe-installcheck-libcpp installcheck-libcpp
20932maybe-installcheck-libcpp:
20933@if libcpp
20934maybe-installcheck-libcpp: installcheck-libcpp
4b900473 20935
a90ef4bf
JM
20936installcheck-libcpp: \
20937 configure-libcpp
20938 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20939 r=`${PWD_COMMAND}`; export r; \
20940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20941 $(HOST_EXPORTS) \
a90ef4bf 20942 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20944 done; \
a90ef4bf
JM
20945 echo "Doing installcheck in libcpp" ; \
20946 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20949 "RANLIB=$${RANLIB}" \
0c24b341 20950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20951 installcheck) \
20952 || exit 1
20953
a90ef4bf 20954@endif libcpp
4b900473 20955
a90ef4bf
JM
20956.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
20957maybe-mostlyclean-libcpp:
20958@if libcpp
20959maybe-mostlyclean-libcpp: mostlyclean-libcpp
4b900473 20960
a90ef4bf
JM
20961mostlyclean-libcpp:
20962 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20963 r=`${PWD_COMMAND}`; export r; \
20964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20965 $(HOST_EXPORTS) \
a90ef4bf 20966 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20968 done; \
a90ef4bf
JM
20969 echo "Doing mostlyclean in libcpp" ; \
20970 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20973 "RANLIB=$${RANLIB}" \
0c24b341 20974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20975 mostlyclean) \
20976 || exit 1
20977
a90ef4bf 20978@endif libcpp
4b900473 20979
a90ef4bf
JM
20980.PHONY: maybe-clean-libcpp clean-libcpp
20981maybe-clean-libcpp:
20982@if libcpp
20983maybe-clean-libcpp: clean-libcpp
4b900473 20984
a90ef4bf
JM
20985clean-libcpp:
20986 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20987 r=`${PWD_COMMAND}`; export r; \
20988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20989 $(HOST_EXPORTS) \
a90ef4bf 20990 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20992 done; \
a90ef4bf
JM
20993 echo "Doing clean in libcpp" ; \
20994 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20997 "RANLIB=$${RANLIB}" \
0c24b341 20998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20999 clean) \
21000 || exit 1
21001
a90ef4bf 21002@endif libcpp
4b900473 21003
a90ef4bf
JM
21004.PHONY: maybe-distclean-libcpp distclean-libcpp
21005maybe-distclean-libcpp:
21006@if libcpp
21007maybe-distclean-libcpp: distclean-libcpp
4b900473 21008
a90ef4bf
JM
21009distclean-libcpp:
21010 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21011 r=`${PWD_COMMAND}`; export r; \
21012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21013 $(HOST_EXPORTS) \
a90ef4bf 21014 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21016 done; \
a90ef4bf
JM
21017 echo "Doing distclean in libcpp" ; \
21018 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21021 "RANLIB=$${RANLIB}" \
0c24b341 21022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21023 distclean) \
21024 || exit 1
21025
a90ef4bf 21026@endif libcpp
4b900473 21027
a90ef4bf
JM
21028.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
21029maybe-maintainer-clean-libcpp:
21030@if libcpp
21031maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
4b900473 21032
a90ef4bf
JM
21033maintainer-clean-libcpp:
21034 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21035 r=`${PWD_COMMAND}`; export r; \
21036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21037 $(HOST_EXPORTS) \
a90ef4bf 21038 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21040 done; \
a90ef4bf
JM
21041 echo "Doing maintainer-clean in libcpp" ; \
21042 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21045 "RANLIB=$${RANLIB}" \
0c24b341 21046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21047 maintainer-clean) \
21048 || exit 1
21049
a90ef4bf 21050@endif libcpp
4b900473
PB
21051
21052
21053
a90ef4bf
JM
21054.PHONY: configure-libdecnumber maybe-configure-libdecnumber
21055maybe-configure-libdecnumber:
1f53ca9a 21056@if gcc-bootstrap
a90ef4bf 21057configure-libdecnumber: stage_current
1f53ca9a 21058@endif gcc-bootstrap
a90ef4bf
JM
21059@if libdecnumber
21060maybe-configure-libdecnumber: configure-libdecnumber
21061configure-libdecnumber:
1f53ca9a
AO
21062 @r=`${PWD_COMMAND}`; export r; \
21063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
21064 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
21065 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
1f53ca9a 21066 $(HOST_EXPORTS) \
a90ef4bf
JM
21067 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
21068 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
1f53ca9a
AO
21069 case $(srcdir) in \
21070 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21071 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21072 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21073 esac; \
1b6c0831
L
21074 module_srcdir=libdecnumber; \
21075 $(SHELL) \
21076 $$s/$$module_srcdir/configure \
21077 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21078 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21079 --target=${target_alias} \
1f53ca9a 21080 || exit 1
a90ef4bf 21081@endif libdecnumber
1f53ca9a
AO
21082
21083
21084
a90ef4bf
JM
21085.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
21086maybe-configure-stage1-libdecnumber:
21087@if libdecnumber-bootstrap
21088maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
21089configure-stage1-libdecnumber:
1f53ca9a 21090 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 21091 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21092 @r=`${PWD_COMMAND}`; export r; \
21093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21094 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 21095 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21096 $(HOST_EXPORTS) \
21097 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
21098 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21099 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21100 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber ; \
21101 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21102 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21103 case $(srcdir) in \
21104 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21105 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21106 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21107 esac; \
1b6c0831
L
21108 module_srcdir=libdecnumber; \
21109 $(SHELL) $$s/$$module_srcdir/configure \
21110 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21111 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21112 --target=${target_alias} \
21113 \
a90ef4bf
JM
21114 $(STAGE1_CONFIGURE_FLAGS)
21115@endif libdecnumber-bootstrap
1f53ca9a 21116
a90ef4bf
JM
21117.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
21118maybe-configure-stage2-libdecnumber:
21119@if libdecnumber-bootstrap
21120maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
21121configure-stage2-libdecnumber:
1f53ca9a 21122 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 21123 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21124 @r=`${PWD_COMMAND}`; export r; \
21125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21126 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 21127 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21128 $(HOST_EXPORTS) \
21129 $(POSTSTAGE1_HOST_EXPORTS) \
21130 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
21131 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21132 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21133 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber ; \
21134 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21135 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21136 case $(srcdir) in \
21137 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21138 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21139 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21140 esac; \
1b6c0831
L
21141 module_srcdir=libdecnumber; \
21142 $(SHELL) $$s/$$module_srcdir/configure \
21143 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21144 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21145 --target=${target_alias} \
21146 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21147 $(STAGE2_CONFIGURE_FLAGS)
21148@endif libdecnumber-bootstrap
1f53ca9a 21149
a90ef4bf
JM
21150.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
21151maybe-configure-stage3-libdecnumber:
21152@if libdecnumber-bootstrap
21153maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
21154configure-stage3-libdecnumber:
1f53ca9a 21155 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 21156 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21157 @r=`${PWD_COMMAND}`; export r; \
21158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21159 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 21160 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21161 $(HOST_EXPORTS) \
21162 $(POSTSTAGE1_HOST_EXPORTS) \
21163 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
21164 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21165 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21166 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber ; \
21167 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21168 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21169 case $(srcdir) in \
21170 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21171 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21172 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21173 esac; \
1b6c0831
L
21174 module_srcdir=libdecnumber; \
21175 $(SHELL) $$s/$$module_srcdir/configure \
21176 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21177 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21178 --target=${target_alias} \
21179 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21180 $(STAGE3_CONFIGURE_FLAGS)
21181@endif libdecnumber-bootstrap
1f53ca9a 21182
a90ef4bf
JM
21183.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
21184maybe-configure-stage4-libdecnumber:
21185@if libdecnumber-bootstrap
21186maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
21187configure-stage4-libdecnumber:
1f53ca9a 21188 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 21189 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21190 @r=`${PWD_COMMAND}`; export r; \
21191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21192 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 21193 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21194 $(HOST_EXPORTS) \
21195 $(POSTSTAGE1_HOST_EXPORTS) \
21196 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
21197 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21198 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21199 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber ; \
21200 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21201 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21202 case $(srcdir) in \
21203 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21204 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21205 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21206 esac; \
1b6c0831
L
21207 module_srcdir=libdecnumber; \
21208 $(SHELL) $$s/$$module_srcdir/configure \
21209 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21210 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21211 --target=${target_alias} \
21212 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21213 $(STAGE4_CONFIGURE_FLAGS)
21214@endif libdecnumber-bootstrap
1f53ca9a 21215
a90ef4bf
JM
21216.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
21217maybe-configure-stageprofile-libdecnumber:
21218@if libdecnumber-bootstrap
21219maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
21220configure-stageprofile-libdecnumber:
1f53ca9a 21221 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 21222 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21223 @r=`${PWD_COMMAND}`; export r; \
21224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21225 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 21226 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21227 $(HOST_EXPORTS) \
21228 $(POSTSTAGE1_HOST_EXPORTS) \
21229 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
21230 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21231 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21232 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber ; \
21233 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21234 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21235 case $(srcdir) in \
21236 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21237 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21238 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21239 esac; \
1b6c0831
L
21240 module_srcdir=libdecnumber; \
21241 $(SHELL) $$s/$$module_srcdir/configure \
21242 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21243 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21244 --target=${target_alias} \
21245 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21246 $(STAGEprofile_CONFIGURE_FLAGS)
21247@endif libdecnumber-bootstrap
1f53ca9a 21248
a90ef4bf
JM
21249.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
21250maybe-configure-stagefeedback-libdecnumber:
21251@if libdecnumber-bootstrap
21252maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
21253configure-stagefeedback-libdecnumber:
1f53ca9a 21254 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 21255 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21256 @r=`${PWD_COMMAND}`; export r; \
21257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21258 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 21259 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21260 $(HOST_EXPORTS) \
21261 $(POSTSTAGE1_HOST_EXPORTS) \
21262 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
21263 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21264 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
21265 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber ; \
21266 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
21267 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21268 case $(srcdir) in \
21269 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21270 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21271 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21272 esac; \
1b6c0831
L
21273 module_srcdir=libdecnumber; \
21274 $(SHELL) $$s/$$module_srcdir/configure \
21275 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21276 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21277 --target=${target_alias} \
21278 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21279 $(STAGEfeedback_CONFIGURE_FLAGS)
21280@endif libdecnumber-bootstrap
1f53ca9a
AO
21281
21282
21283
21284
21285
a90ef4bf
JM
21286.PHONY: all-libdecnumber maybe-all-libdecnumber
21287maybe-all-libdecnumber:
1f53ca9a 21288@if gcc-bootstrap
a90ef4bf 21289all-libdecnumber: stage_current
1f53ca9a 21290@endif gcc-bootstrap
a90ef4bf
JM
21291@if libdecnumber
21292TARGET-libdecnumber=all
21293maybe-all-libdecnumber: all-libdecnumber
21294all-libdecnumber: configure-libdecnumber
1f53ca9a
AO
21295 @r=`${PWD_COMMAND}`; export r; \
21296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21297 $(HOST_EXPORTS) \
a90ef4bf 21298 (cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21299 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21300 $(TARGET-libdecnumber))
21301@endif libdecnumber
1f53ca9a
AO
21302
21303
21304
a90ef4bf
JM
21305.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
21306.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
21307maybe-all-stage1-libdecnumber:
21308maybe-clean-stage1-libdecnumber:
21309@if libdecnumber-bootstrap
21310maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
21311all-stage1: all-stage1-libdecnumber
21312TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
21313all-stage1-libdecnumber: configure-stage1-libdecnumber
1f53ca9a
AO
21314 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
21315 @r=`${PWD_COMMAND}`; export r; \
21316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21317 TFLAGS="$(STAGE1_TFLAGS)"; \
21318 $(HOST_EXPORTS) \
a90ef4bf 21319 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21320 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21321 CFLAGS="$(STAGE1_CFLAGS)" \
21322 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
21323 LIBCFLAGS="$(LIBCFLAGS)" \
21324 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21325 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21326 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
21327 $(EXTRA_HOST_FLAGS) \
21328 $(STAGE1_FLAGS_TO_PASS) \
1f53ca9a 21329 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 21330 $(TARGET-stage1-libdecnumber)
1f53ca9a 21331
a90ef4bf
JM
21332maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
21333clean-stage1: clean-stage1-libdecnumber
21334clean-stage1-libdecnumber:
1f53ca9a 21335 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 21336 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21337 else \
a90ef4bf 21338 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21339 $(MAKE) stage1-start; \
21340 fi; \
a90ef4bf 21341 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a 21342 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 21343 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21344@endif libdecnumber-bootstrap
1f53ca9a
AO
21345
21346
a90ef4bf
JM
21347.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
21348.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
21349maybe-all-stage2-libdecnumber:
21350maybe-clean-stage2-libdecnumber:
21351@if libdecnumber-bootstrap
21352maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
21353all-stage2: all-stage2-libdecnumber
21354TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
21355all-stage2-libdecnumber: configure-stage2-libdecnumber
1f53ca9a
AO
21356 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
21357 @r=`${PWD_COMMAND}`; export r; \
21358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21359 TFLAGS="$(STAGE2_TFLAGS)"; \
21360 $(HOST_EXPORTS) \
21361 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21362 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21363 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21364 CFLAGS="$(STAGE2_CFLAGS)" \
21365 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
21366 LIBCFLAGS="$(STAGE2_CFLAGS)" \
21367 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21368 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21369 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21370 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21371 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 21372 $(TARGET-stage2-libdecnumber)
1f53ca9a 21373
a90ef4bf
JM
21374maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
21375clean-stage2: clean-stage2-libdecnumber
21376clean-stage2-libdecnumber:
1f53ca9a 21377 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 21378 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21379 else \
a90ef4bf 21380 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21381 $(MAKE) stage2-start; \
21382 fi; \
a90ef4bf 21383 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21384 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21385@endif libdecnumber-bootstrap
1f53ca9a
AO
21386
21387
a90ef4bf
JM
21388.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
21389.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
21390maybe-all-stage3-libdecnumber:
21391maybe-clean-stage3-libdecnumber:
21392@if libdecnumber-bootstrap
21393maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
21394all-stage3: all-stage3-libdecnumber
21395TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
21396all-stage3-libdecnumber: configure-stage3-libdecnumber
1f53ca9a
AO
21397 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
21398 @r=`${PWD_COMMAND}`; export r; \
21399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21400 TFLAGS="$(STAGE3_TFLAGS)"; \
21401 $(HOST_EXPORTS) \
21402 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21403 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21404 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21405 CFLAGS="$(STAGE3_CFLAGS)" \
21406 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
21407 LIBCFLAGS="$(STAGE3_CFLAGS)" \
21408 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21409 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21410 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21411 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21412 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 21413 $(TARGET-stage3-libdecnumber)
1f53ca9a 21414
a90ef4bf
JM
21415maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
21416clean-stage3: clean-stage3-libdecnumber
21417clean-stage3-libdecnumber:
1f53ca9a 21418 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 21419 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21420 else \
a90ef4bf 21421 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21422 $(MAKE) stage3-start; \
21423 fi; \
a90ef4bf 21424 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21425 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21426@endif libdecnumber-bootstrap
1f53ca9a
AO
21427
21428
a90ef4bf
JM
21429.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
21430.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
21431maybe-all-stage4-libdecnumber:
21432maybe-clean-stage4-libdecnumber:
21433@if libdecnumber-bootstrap
21434maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
21435all-stage4: all-stage4-libdecnumber
21436TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
21437all-stage4-libdecnumber: configure-stage4-libdecnumber
1f53ca9a
AO
21438 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
21439 @r=`${PWD_COMMAND}`; export r; \
21440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21441 TFLAGS="$(STAGE4_TFLAGS)"; \
21442 $(HOST_EXPORTS) \
21443 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21444 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21445 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21446 CFLAGS="$(STAGE4_CFLAGS)" \
21447 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
21448 LIBCFLAGS="$(STAGE4_CFLAGS)" \
21449 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21450 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21451 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21452 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21453 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 21454 $(TARGET-stage4-libdecnumber)
1f53ca9a 21455
a90ef4bf
JM
21456maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
21457clean-stage4: clean-stage4-libdecnumber
21458clean-stage4-libdecnumber:
1f53ca9a 21459 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 21460 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21461 else \
a90ef4bf 21462 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21463 $(MAKE) stage4-start; \
21464 fi; \
a90ef4bf 21465 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21466 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21467@endif libdecnumber-bootstrap
1f53ca9a
AO
21468
21469
a90ef4bf
JM
21470.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
21471.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
21472maybe-all-stageprofile-libdecnumber:
21473maybe-clean-stageprofile-libdecnumber:
21474@if libdecnumber-bootstrap
21475maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
21476all-stageprofile: all-stageprofile-libdecnumber
21477TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
21478all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
1f53ca9a
AO
21479 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
21480 @r=`${PWD_COMMAND}`; export r; \
21481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21482 TFLAGS="$(STAGEprofile_TFLAGS)"; \
21483 $(HOST_EXPORTS) \
21484 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21485 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21486 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21487 CFLAGS="$(STAGEprofile_CFLAGS)" \
21488 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
21489 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
21490 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21491 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21492 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21493 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21494 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 21495 $(TARGET-stageprofile-libdecnumber)
1f53ca9a 21496
a90ef4bf
JM
21497maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
21498clean-stageprofile: clean-stageprofile-libdecnumber
21499clean-stageprofile-libdecnumber:
1f53ca9a 21500 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 21501 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21502 else \
a90ef4bf 21503 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21504 $(MAKE) stageprofile-start; \
21505 fi; \
a90ef4bf 21506 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21507 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21508@endif libdecnumber-bootstrap
1f53ca9a
AO
21509
21510
a90ef4bf
JM
21511.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
21512.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
21513maybe-all-stagefeedback-libdecnumber:
21514maybe-clean-stagefeedback-libdecnumber:
21515@if libdecnumber-bootstrap
21516maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
21517all-stagefeedback: all-stagefeedback-libdecnumber
21518TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
21519all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
1f53ca9a
AO
21520 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
21521 @r=`${PWD_COMMAND}`; export r; \
21522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21523 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
21524 $(HOST_EXPORTS) \
21525 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21526 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21527 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21528 CFLAGS="$(STAGEfeedback_CFLAGS)" \
21529 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
21530 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
21531 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21532 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21533 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21534 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21535 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 21536 $(TARGET-stagefeedback-libdecnumber)
1f53ca9a 21537
a90ef4bf
JM
21538maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
21539clean-stagefeedback: clean-stagefeedback-libdecnumber
21540clean-stagefeedback-libdecnumber:
1f53ca9a 21541 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 21542 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21543 else \
a90ef4bf 21544 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21545 $(MAKE) stagefeedback-start; \
21546 fi; \
a90ef4bf 21547 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21548 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21549@endif libdecnumber-bootstrap
1f53ca9a
AO
21550
21551
21552
21553
21554
a90ef4bf
JM
21555.PHONY: check-libdecnumber maybe-check-libdecnumber
21556maybe-check-libdecnumber:
21557@if libdecnumber
21558maybe-check-libdecnumber: check-libdecnumber
1f53ca9a 21559
a90ef4bf 21560check-libdecnumber:
1f53ca9a
AO
21561 @: $(MAKE); $(unstage)
21562 @r=`${PWD_COMMAND}`; export r; \
21563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 21564 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 21565 (cd $(HOST_SUBDIR)/libdecnumber && \
f91ca6bc 21566 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
1f53ca9a 21567
a90ef4bf 21568@endif libdecnumber
1f53ca9a 21569
a90ef4bf
JM
21570.PHONY: install-libdecnumber maybe-install-libdecnumber
21571maybe-install-libdecnumber:
21572@if libdecnumber
21573maybe-install-libdecnumber: install-libdecnumber
1f53ca9a 21574
a90ef4bf
JM
21575install-libdecnumber: installdirs
21576 @: $(MAKE); $(unstage)
21577 @r=`${PWD_COMMAND}`; export r; \
21578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21579 $(HOST_EXPORTS) \
21580 (cd $(HOST_SUBDIR)/libdecnumber && \
21581 $(MAKE) $(FLAGS_TO_PASS) install)
1f53ca9a 21582
a90ef4bf 21583@endif libdecnumber
1f53ca9a 21584
a90ef4bf
JM
21585.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
21586maybe-install-strip-libdecnumber:
21587@if libdecnumber
21588maybe-install-strip-libdecnumber: install-strip-libdecnumber
9b980aa1 21589
a90ef4bf
JM
21590install-strip-libdecnumber: installdirs
21591 @: $(MAKE); $(unstage)
21592 @r=`${PWD_COMMAND}`; export r; \
21593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21594 $(HOST_EXPORTS) \
21595 (cd $(HOST_SUBDIR)/libdecnumber && \
21596 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 21597
a90ef4bf 21598@endif libdecnumber
9b980aa1 21599
1f53ca9a
AO
21600# Other targets (info, dvi, pdf, etc.)
21601
a90ef4bf
JM
21602.PHONY: maybe-info-libdecnumber info-libdecnumber
21603maybe-info-libdecnumber:
21604@if libdecnumber
21605maybe-info-libdecnumber: info-libdecnumber
1f53ca9a 21606
a90ef4bf
JM
21607info-libdecnumber: \
21608 configure-libdecnumber
21609 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21610 r=`${PWD_COMMAND}`; export r; \
21611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21612 $(HOST_EXPORTS) \
21613 for flag in $(EXTRA_HOST_FLAGS) ; do \
21614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21615 done; \
a90ef4bf
JM
21616 echo "Doing info in libdecnumber" ; \
21617 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21620 "RANLIB=$${RANLIB}" \
21621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21622 info) \
21623 || exit 1
21624
a90ef4bf 21625@endif libdecnumber
1f53ca9a 21626
a90ef4bf
JM
21627.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
21628maybe-dvi-libdecnumber:
21629@if libdecnumber
21630maybe-dvi-libdecnumber: dvi-libdecnumber
1f53ca9a 21631
a90ef4bf
JM
21632dvi-libdecnumber: \
21633 configure-libdecnumber
21634 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21635 r=`${PWD_COMMAND}`; export r; \
21636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21637 $(HOST_EXPORTS) \
21638 for flag in $(EXTRA_HOST_FLAGS) ; do \
21639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21640 done; \
a90ef4bf
JM
21641 echo "Doing dvi in libdecnumber" ; \
21642 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21645 "RANLIB=$${RANLIB}" \
21646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21647 dvi) \
21648 || exit 1
21649
a90ef4bf 21650@endif libdecnumber
1f53ca9a 21651
a90ef4bf
JM
21652.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
21653maybe-pdf-libdecnumber:
21654@if libdecnumber
21655maybe-pdf-libdecnumber: pdf-libdecnumber
1f53ca9a 21656
a90ef4bf
JM
21657pdf-libdecnumber: \
21658 configure-libdecnumber
21659 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21660 r=`${PWD_COMMAND}`; export r; \
21661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21662 $(HOST_EXPORTS) \
21663 for flag in $(EXTRA_HOST_FLAGS) ; do \
21664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21665 done; \
a90ef4bf
JM
21666 echo "Doing pdf in libdecnumber" ; \
21667 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21670 "RANLIB=$${RANLIB}" \
21671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21672 pdf) \
21673 || exit 1
21674
a90ef4bf 21675@endif libdecnumber
1f53ca9a 21676
a90ef4bf
JM
21677.PHONY: maybe-html-libdecnumber html-libdecnumber
21678maybe-html-libdecnumber:
21679@if libdecnumber
21680maybe-html-libdecnumber: html-libdecnumber
1f53ca9a 21681
a90ef4bf
JM
21682html-libdecnumber: \
21683 configure-libdecnumber
21684 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21685 r=`${PWD_COMMAND}`; export r; \
21686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21687 $(HOST_EXPORTS) \
21688 for flag in $(EXTRA_HOST_FLAGS) ; do \
21689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21690 done; \
a90ef4bf
JM
21691 echo "Doing html in libdecnumber" ; \
21692 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21695 "RANLIB=$${RANLIB}" \
21696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21697 html) \
21698 || exit 1
21699
a90ef4bf 21700@endif libdecnumber
1f53ca9a 21701
a90ef4bf
JM
21702.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
21703maybe-TAGS-libdecnumber:
21704@if libdecnumber
21705maybe-TAGS-libdecnumber: TAGS-libdecnumber
1f53ca9a 21706
a90ef4bf
JM
21707TAGS-libdecnumber: \
21708 configure-libdecnumber
21709 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21710 r=`${PWD_COMMAND}`; export r; \
21711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21712 $(HOST_EXPORTS) \
21713 for flag in $(EXTRA_HOST_FLAGS) ; do \
21714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21715 done; \
a90ef4bf
JM
21716 echo "Doing TAGS in libdecnumber" ; \
21717 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21720 "RANLIB=$${RANLIB}" \
21721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21722 TAGS) \
21723 || exit 1
21724
a90ef4bf 21725@endif libdecnumber
1f53ca9a 21726
a90ef4bf
JM
21727.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
21728maybe-install-info-libdecnumber:
21729@if libdecnumber
21730maybe-install-info-libdecnumber: install-info-libdecnumber
1f53ca9a 21731
a90ef4bf
JM
21732install-info-libdecnumber: \
21733 configure-libdecnumber \
21734 info-libdecnumber
21735 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21736 r=`${PWD_COMMAND}`; export r; \
21737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21738 $(HOST_EXPORTS) \
21739 for flag in $(EXTRA_HOST_FLAGS) ; do \
21740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21741 done; \
a90ef4bf
JM
21742 echo "Doing install-info in libdecnumber" ; \
21743 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21746 "RANLIB=$${RANLIB}" \
21747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21748 install-info) \
21749 || exit 1
21750
a90ef4bf 21751@endif libdecnumber
1f53ca9a 21752
a90ef4bf
JM
21753.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
21754maybe-install-pdf-libdecnumber:
21755@if libdecnumber
21756maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
1f53ca9a 21757
a90ef4bf
JM
21758install-pdf-libdecnumber: \
21759 configure-libdecnumber \
21760 pdf-libdecnumber
21761 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21762 r=`${PWD_COMMAND}`; export r; \
21763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21764 $(HOST_EXPORTS) \
21765 for flag in $(EXTRA_HOST_FLAGS) ; do \
21766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21767 done; \
a90ef4bf
JM
21768 echo "Doing install-pdf in libdecnumber" ; \
21769 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21772 "RANLIB=$${RANLIB}" \
21773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21774 install-pdf) \
21775 || exit 1
21776
a90ef4bf 21777@endif libdecnumber
1f53ca9a 21778
a90ef4bf
JM
21779.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
21780maybe-install-html-libdecnumber:
21781@if libdecnumber
21782maybe-install-html-libdecnumber: install-html-libdecnumber
1f53ca9a 21783
a90ef4bf
JM
21784install-html-libdecnumber: \
21785 configure-libdecnumber \
21786 html-libdecnumber
21787 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21788 r=`${PWD_COMMAND}`; export r; \
21789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21790 $(HOST_EXPORTS) \
21791 for flag in $(EXTRA_HOST_FLAGS) ; do \
21792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21793 done; \
a90ef4bf
JM
21794 echo "Doing install-html in libdecnumber" ; \
21795 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21798 "RANLIB=$${RANLIB}" \
21799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21800 install-html) \
21801 || exit 1
21802
a90ef4bf 21803@endif libdecnumber
1f53ca9a 21804
a90ef4bf
JM
21805.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
21806maybe-installcheck-libdecnumber:
21807@if libdecnumber
21808maybe-installcheck-libdecnumber: installcheck-libdecnumber
1f53ca9a 21809
a90ef4bf
JM
21810installcheck-libdecnumber: \
21811 configure-libdecnumber
21812 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21813 r=`${PWD_COMMAND}`; export r; \
21814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21815 $(HOST_EXPORTS) \
21816 for flag in $(EXTRA_HOST_FLAGS) ; do \
21817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21818 done; \
a90ef4bf
JM
21819 echo "Doing installcheck in libdecnumber" ; \
21820 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21823 "RANLIB=$${RANLIB}" \
21824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21825 installcheck) \
21826 || exit 1
21827
a90ef4bf 21828@endif libdecnumber
1f53ca9a 21829
a90ef4bf
JM
21830.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
21831maybe-mostlyclean-libdecnumber:
21832@if libdecnumber
21833maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
1f53ca9a 21834
a90ef4bf
JM
21835mostlyclean-libdecnumber:
21836 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21837 r=`${PWD_COMMAND}`; export r; \
21838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21839 $(HOST_EXPORTS) \
21840 for flag in $(EXTRA_HOST_FLAGS) ; do \
21841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21842 done; \
a90ef4bf
JM
21843 echo "Doing mostlyclean in libdecnumber" ; \
21844 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21847 "RANLIB=$${RANLIB}" \
21848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21849 mostlyclean) \
21850 || exit 1
21851
a90ef4bf 21852@endif libdecnumber
1f53ca9a 21853
a90ef4bf
JM
21854.PHONY: maybe-clean-libdecnumber clean-libdecnumber
21855maybe-clean-libdecnumber:
21856@if libdecnumber
21857maybe-clean-libdecnumber: clean-libdecnumber
1f53ca9a 21858
a90ef4bf
JM
21859clean-libdecnumber:
21860 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21861 r=`${PWD_COMMAND}`; export r; \
21862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21863 $(HOST_EXPORTS) \
21864 for flag in $(EXTRA_HOST_FLAGS) ; do \
21865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21866 done; \
a90ef4bf
JM
21867 echo "Doing clean in libdecnumber" ; \
21868 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21871 "RANLIB=$${RANLIB}" \
21872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21873 clean) \
21874 || exit 1
21875
a90ef4bf 21876@endif libdecnumber
1f53ca9a 21877
a90ef4bf
JM
21878.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
21879maybe-distclean-libdecnumber:
21880@if libdecnumber
21881maybe-distclean-libdecnumber: distclean-libdecnumber
1f53ca9a 21882
a90ef4bf
JM
21883distclean-libdecnumber:
21884 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21885 r=`${PWD_COMMAND}`; export r; \
21886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21887 $(HOST_EXPORTS) \
21888 for flag in $(EXTRA_HOST_FLAGS) ; do \
21889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21890 done; \
a90ef4bf
JM
21891 echo "Doing distclean in libdecnumber" ; \
21892 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21895 "RANLIB=$${RANLIB}" \
21896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21897 distclean) \
21898 || exit 1
21899
a90ef4bf 21900@endif libdecnumber
1f53ca9a 21901
a90ef4bf
JM
21902.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
21903maybe-maintainer-clean-libdecnumber:
21904@if libdecnumber
21905maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
1f53ca9a 21906
a90ef4bf
JM
21907maintainer-clean-libdecnumber:
21908 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21909 r=`${PWD_COMMAND}`; export r; \
21910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21911 $(HOST_EXPORTS) \
21912 for flag in $(EXTRA_HOST_FLAGS) ; do \
21913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21914 done; \
a90ef4bf
JM
21915 echo "Doing maintainer-clean in libdecnumber" ; \
21916 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21919 "RANLIB=$${RANLIB}" \
21920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21921 maintainer-clean) \
21922 || exit 1
21923
a90ef4bf 21924@endif libdecnumber
1f53ca9a
AO
21925
21926
21927
a90ef4bf
JM
21928.PHONY: configure-libgui maybe-configure-libgui
21929maybe-configure-libgui:
4f0ef2d8 21930@if gcc-bootstrap
a90ef4bf 21931configure-libgui: stage_current
4f0ef2d8 21932@endif gcc-bootstrap
a90ef4bf
JM
21933@if libgui
21934maybe-configure-libgui: configure-libgui
21935configure-libgui:
0aed8855 21936 @: $(MAKE); $(unstage)
c52c6897 21937 @r=`${PWD_COMMAND}`; export r; \
4fa63067 21938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
21939 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
21940 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui ; \
1f53ca9a 21941 $(HOST_EXPORTS) \
a90ef4bf
JM
21942 echo Configuring in $(HOST_SUBDIR)/libgui; \
21943 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
4fa63067 21944 case $(srcdir) in \
b00612cc 21945 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21946 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
b00612cc 21947 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 21948 esac; \
1b6c0831
L
21949 module_srcdir=libgui; \
21950 $(SHELL) \
21951 $$s/$$module_srcdir/configure \
21952 --srcdir=$${topdir}/$$module_srcdir \
4b900473 21953 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21954 --target=${target_alias} \
2a4cbe27 21955 || exit 1
a90ef4bf 21956@endif libgui
2a4cbe27 21957
a7254363
PB
21958
21959
d545f33b
PB
21960
21961
a90ef4bf
JM
21962.PHONY: all-libgui maybe-all-libgui
21963maybe-all-libgui:
4f0ef2d8 21964@if gcc-bootstrap
a90ef4bf 21965all-libgui: stage_current
4f0ef2d8 21966@endif gcc-bootstrap
a90ef4bf
JM
21967@if libgui
21968TARGET-libgui=all
21969maybe-all-libgui: all-libgui
21970all-libgui: configure-libgui
0aed8855 21971 @: $(MAKE); $(unstage)
4fa63067
NN
21972 @r=`${PWD_COMMAND}`; export r; \
21973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 21974 $(HOST_EXPORTS) \
a90ef4bf 21975 (cd $(HOST_SUBDIR)/libgui && \
b3676d82 21976 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21977 $(TARGET-libgui))
21978@endif libgui
2a4cbe27 21979
a7254363 21980
d545f33b
PB
21981
21982
a90ef4bf
JM
21983.PHONY: check-libgui maybe-check-libgui
21984maybe-check-libgui:
21985@if libgui
21986maybe-check-libgui: check-libgui
2a4cbe27 21987
a90ef4bf 21988check-libgui:
0aed8855 21989 @: $(MAKE); $(unstage)
4fa63067 21990 @r=`${PWD_COMMAND}`; export r; \
b40e3958 21991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 21992 $(HOST_EXPORTS) \
a90ef4bf 21993 (cd $(HOST_SUBDIR)/libgui && \
b00612cc 21994 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 21995
a90ef4bf 21996@endif libgui
2a4cbe27 21997
a90ef4bf
JM
21998.PHONY: install-libgui maybe-install-libgui
21999maybe-install-libgui:
22000@if libgui
22001maybe-install-libgui: install-libgui
2a4cbe27 22002
a90ef4bf 22003install-libgui: installdirs
0aed8855 22004 @: $(MAKE); $(unstage)
4fa63067 22005 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22007 $(HOST_EXPORTS) \
a90ef4bf 22008 (cd $(HOST_SUBDIR)/libgui && \
2da12f12 22009 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 22010
a90ef4bf 22011@endif libgui
2a4cbe27 22012
a90ef4bf
JM
22013.PHONY: install-strip-libgui maybe-install-strip-libgui
22014maybe-install-strip-libgui:
22015@if libgui
22016maybe-install-strip-libgui: install-strip-libgui
9b980aa1 22017
a90ef4bf 22018install-strip-libgui: installdirs
9b980aa1
RW
22019 @: $(MAKE); $(unstage)
22020 @r=`${PWD_COMMAND}`; export r; \
22021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22022 $(HOST_EXPORTS) \
a90ef4bf 22023 (cd $(HOST_SUBDIR)/libgui && \
9b980aa1
RW
22024 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22025
a90ef4bf 22026@endif libgui
9b980aa1 22027
56a8fe78 22028# Other targets (info, dvi, pdf, etc.)
2a4cbe27 22029
a90ef4bf
JM
22030.PHONY: maybe-info-libgui info-libgui
22031maybe-info-libgui:
22032@if libgui
22033maybe-info-libgui: info-libgui
4fa63067 22034
a90ef4bf
JM
22035info-libgui: \
22036 configure-libgui
0aed8855 22037 @: $(MAKE); $(unstage)
a90ef4bf 22038 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22039 r=`${PWD_COMMAND}`; export r; \
22040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22041 $(HOST_EXPORTS) \
b813574b 22042 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22044 done; \
a90ef4bf
JM
22045 echo "Doing info in libgui" ; \
22046 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22049 "RANLIB=$${RANLIB}" \
0c24b341 22050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22051 info) \
2a4cbe27
NN
22052 || exit 1
22053
a90ef4bf 22054@endif libgui
2a4cbe27 22055
a90ef4bf
JM
22056.PHONY: maybe-dvi-libgui dvi-libgui
22057maybe-dvi-libgui:
22058@if libgui
22059maybe-dvi-libgui: dvi-libgui
2a4cbe27 22060
a90ef4bf
JM
22061dvi-libgui: \
22062 configure-libgui
0aed8855 22063 @: $(MAKE); $(unstage)
a90ef4bf 22064 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22065 r=`${PWD_COMMAND}`; export r; \
22066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22067 $(HOST_EXPORTS) \
b813574b 22068 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22070 done; \
a90ef4bf
JM
22071 echo "Doing dvi in libgui" ; \
22072 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22075 "RANLIB=$${RANLIB}" \
0c24b341 22076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22077 dvi) \
2a4cbe27
NN
22078 || exit 1
22079
a90ef4bf 22080@endif libgui
2a4cbe27 22081
a90ef4bf
JM
22082.PHONY: maybe-pdf-libgui pdf-libgui
22083maybe-pdf-libgui:
22084@if libgui
22085maybe-pdf-libgui: pdf-libgui
56a8fe78 22086
a90ef4bf
JM
22087pdf-libgui: \
22088 configure-libgui
56a8fe78 22089 @: $(MAKE); $(unstage)
a90ef4bf 22090 @[ -f ./libgui/Makefile ] || exit 0; \
56a8fe78
DD
22091 r=`${PWD_COMMAND}`; export r; \
22092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22093 $(HOST_EXPORTS) \
22094 for flag in $(EXTRA_HOST_FLAGS) ; do \
22095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22096 done; \
a90ef4bf
JM
22097 echo "Doing pdf in libgui" ; \
22098 (cd $(HOST_SUBDIR)/libgui && \
56a8fe78
DD
22099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22101 "RANLIB=$${RANLIB}" \
0c24b341 22102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
22103 pdf) \
22104 || exit 1
22105
a90ef4bf 22106@endif libgui
56a8fe78 22107
a90ef4bf
JM
22108.PHONY: maybe-html-libgui html-libgui
22109maybe-html-libgui:
22110@if libgui
22111maybe-html-libgui: html-libgui
6d389afc 22112
a90ef4bf
JM
22113html-libgui: \
22114 configure-libgui
0aed8855 22115 @: $(MAKE); $(unstage)
a90ef4bf 22116 @[ -f ./libgui/Makefile ] || exit 0; \
6d389afc
MS
22117 r=`${PWD_COMMAND}`; export r; \
22118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
22119 $(HOST_EXPORTS) \
22120 for flag in $(EXTRA_HOST_FLAGS) ; do \
22121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22122 done; \
a90ef4bf
JM
22123 echo "Doing html in libgui" ; \
22124 (cd $(HOST_SUBDIR)/libgui && \
6d389afc
MS
22125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22127 "RANLIB=$${RANLIB}" \
0c24b341 22128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
22129 html) \
22130 || exit 1
22131
a90ef4bf 22132@endif libgui
6d389afc 22133
a90ef4bf
JM
22134.PHONY: maybe-TAGS-libgui TAGS-libgui
22135maybe-TAGS-libgui:
22136@if libgui
22137maybe-TAGS-libgui: TAGS-libgui
2a4cbe27 22138
a90ef4bf
JM
22139TAGS-libgui: \
22140 configure-libgui
0aed8855 22141 @: $(MAKE); $(unstage)
a90ef4bf 22142 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22143 r=`${PWD_COMMAND}`; export r; \
22144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22145 $(HOST_EXPORTS) \
b813574b 22146 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22148 done; \
a90ef4bf
JM
22149 echo "Doing TAGS in libgui" ; \
22150 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22153 "RANLIB=$${RANLIB}" \
0c24b341 22154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22155 TAGS) \
2a4cbe27
NN
22156 || exit 1
22157
a90ef4bf 22158@endif libgui
2a4cbe27 22159
a90ef4bf
JM
22160.PHONY: maybe-install-info-libgui install-info-libgui
22161maybe-install-info-libgui:
22162@if libgui
22163maybe-install-info-libgui: install-info-libgui
2a4cbe27 22164
a90ef4bf
JM
22165install-info-libgui: \
22166 configure-libgui \
22167 info-libgui
0aed8855 22168 @: $(MAKE); $(unstage)
a90ef4bf 22169 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22170 r=`${PWD_COMMAND}`; export r; \
22171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22172 $(HOST_EXPORTS) \
b813574b 22173 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22175 done; \
a90ef4bf
JM
22176 echo "Doing install-info in libgui" ; \
22177 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22180 "RANLIB=$${RANLIB}" \
0c24b341 22181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22182 install-info) \
2a4cbe27
NN
22183 || exit 1
22184
a90ef4bf 22185@endif libgui
2a4cbe27 22186
a90ef4bf
JM
22187.PHONY: maybe-install-pdf-libgui install-pdf-libgui
22188maybe-install-pdf-libgui:
22189@if libgui
22190maybe-install-pdf-libgui: install-pdf-libgui
a3ca38d2 22191
a90ef4bf
JM
22192install-pdf-libgui: \
22193 configure-libgui \
22194 pdf-libgui
a3ca38d2 22195 @: $(MAKE); $(unstage)
a90ef4bf 22196 @[ -f ./libgui/Makefile ] || exit 0; \
a3ca38d2
DD
22197 r=`${PWD_COMMAND}`; export r; \
22198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22199 $(HOST_EXPORTS) \
22200 for flag in $(EXTRA_HOST_FLAGS) ; do \
22201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22202 done; \
a90ef4bf
JM
22203 echo "Doing install-pdf in libgui" ; \
22204 (cd $(HOST_SUBDIR)/libgui && \
a3ca38d2
DD
22205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22207 "RANLIB=$${RANLIB}" \
0c24b341 22208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
22209 install-pdf) \
22210 || exit 1
22211
a90ef4bf 22212@endif libgui
a3ca38d2 22213
a90ef4bf
JM
22214.PHONY: maybe-install-html-libgui install-html-libgui
22215maybe-install-html-libgui:
22216@if libgui
22217maybe-install-html-libgui: install-html-libgui
108a6f8e 22218
a90ef4bf
JM
22219install-html-libgui: \
22220 configure-libgui \
22221 html-libgui
108a6f8e 22222 @: $(MAKE); $(unstage)
a90ef4bf 22223 @[ -f ./libgui/Makefile ] || exit 0; \
108a6f8e
CD
22224 r=`${PWD_COMMAND}`; export r; \
22225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22226 $(HOST_EXPORTS) \
22227 for flag in $(EXTRA_HOST_FLAGS) ; do \
22228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22229 done; \
a90ef4bf
JM
22230 echo "Doing install-html in libgui" ; \
22231 (cd $(HOST_SUBDIR)/libgui && \
108a6f8e
CD
22232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22234 "RANLIB=$${RANLIB}" \
0c24b341 22235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
22236 install-html) \
22237 || exit 1
22238
a90ef4bf 22239@endif libgui
108a6f8e 22240
a90ef4bf
JM
22241.PHONY: maybe-installcheck-libgui installcheck-libgui
22242maybe-installcheck-libgui:
22243@if libgui
22244maybe-installcheck-libgui: installcheck-libgui
2a4cbe27 22245
a90ef4bf
JM
22246installcheck-libgui: \
22247 configure-libgui
0aed8855 22248 @: $(MAKE); $(unstage)
a90ef4bf 22249 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22250 r=`${PWD_COMMAND}`; export r; \
22251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22252 $(HOST_EXPORTS) \
b813574b 22253 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22255 done; \
a90ef4bf
JM
22256 echo "Doing installcheck in libgui" ; \
22257 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22260 "RANLIB=$${RANLIB}" \
0c24b341 22261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22262 installcheck) \
2a4cbe27
NN
22263 || exit 1
22264
a90ef4bf 22265@endif libgui
2a4cbe27 22266
a90ef4bf
JM
22267.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
22268maybe-mostlyclean-libgui:
22269@if libgui
22270maybe-mostlyclean-libgui: mostlyclean-libgui
2a4cbe27 22271
a90ef4bf 22272mostlyclean-libgui:
0aed8855 22273 @: $(MAKE); $(unstage)
a90ef4bf 22274 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22275 r=`${PWD_COMMAND}`; export r; \
22276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22277 $(HOST_EXPORTS) \
b813574b 22278 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22280 done; \
a90ef4bf
JM
22281 echo "Doing mostlyclean in libgui" ; \
22282 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22285 "RANLIB=$${RANLIB}" \
0c24b341 22286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22287 mostlyclean) \
2a4cbe27
NN
22288 || exit 1
22289
a90ef4bf 22290@endif libgui
2a4cbe27 22291
a90ef4bf
JM
22292.PHONY: maybe-clean-libgui clean-libgui
22293maybe-clean-libgui:
22294@if libgui
22295maybe-clean-libgui: clean-libgui
2a4cbe27 22296
a90ef4bf 22297clean-libgui:
0aed8855 22298 @: $(MAKE); $(unstage)
a90ef4bf 22299 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22300 r=`${PWD_COMMAND}`; export r; \
22301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22302 $(HOST_EXPORTS) \
b813574b 22303 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22305 done; \
a90ef4bf
JM
22306 echo "Doing clean in libgui" ; \
22307 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22310 "RANLIB=$${RANLIB}" \
0c24b341 22311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22312 clean) \
2a4cbe27
NN
22313 || exit 1
22314
a90ef4bf 22315@endif libgui
2a4cbe27 22316
a90ef4bf
JM
22317.PHONY: maybe-distclean-libgui distclean-libgui
22318maybe-distclean-libgui:
22319@if libgui
22320maybe-distclean-libgui: distclean-libgui
2a4cbe27 22321
a90ef4bf 22322distclean-libgui:
0aed8855 22323 @: $(MAKE); $(unstage)
a90ef4bf 22324 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22325 r=`${PWD_COMMAND}`; export r; \
22326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22327 $(HOST_EXPORTS) \
b813574b 22328 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22330 done; \
a90ef4bf
JM
22331 echo "Doing distclean in libgui" ; \
22332 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22335 "RANLIB=$${RANLIB}" \
0c24b341 22336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22337 distclean) \
2a4cbe27
NN
22338 || exit 1
22339
a90ef4bf 22340@endif libgui
2a4cbe27 22341
a90ef4bf
JM
22342.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
22343maybe-maintainer-clean-libgui:
22344@if libgui
22345maybe-maintainer-clean-libgui: maintainer-clean-libgui
2a4cbe27 22346
a90ef4bf 22347maintainer-clean-libgui:
0aed8855 22348 @: $(MAKE); $(unstage)
a90ef4bf 22349 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22350 r=`${PWD_COMMAND}`; export r; \
22351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22352 $(HOST_EXPORTS) \
b813574b 22353 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22355 done; \
a90ef4bf
JM
22356 echo "Doing maintainer-clean in libgui" ; \
22357 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22360 "RANLIB=$${RANLIB}" \
0c24b341 22361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22362 maintainer-clean) \
2a4cbe27
NN
22363 || exit 1
22364
a90ef4bf 22365@endif libgui
2a4cbe27 22366
2a4cbe27 22367
a7254363 22368
a90ef4bf
JM
22369.PHONY: configure-libiberty maybe-configure-libiberty
22370maybe-configure-libiberty:
93f9b408 22371@if gcc-bootstrap
a90ef4bf 22372configure-libiberty: stage_current
93f9b408 22373@endif gcc-bootstrap
a90ef4bf
JM
22374@if libiberty
22375maybe-configure-libiberty: configure-libiberty
22376configure-libiberty:
93f9b408
ILT
22377 @r=`${PWD_COMMAND}`; export r; \
22378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
22379 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
22380 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
1f53ca9a 22381 $(HOST_EXPORTS) \
a90ef4bf
JM
22382 echo Configuring in $(HOST_SUBDIR)/libiberty; \
22383 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
93f9b408
ILT
22384 case $(srcdir) in \
22385 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22386 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22387 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22388 esac; \
1b6c0831
L
22389 module_srcdir=libiberty; \
22390 $(SHELL) \
22391 $$s/$$module_srcdir/configure \
22392 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22393 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22394 --target=${target_alias} @extra_host_libiberty_configure_flags@ \
93f9b408 22395 || exit 1
a90ef4bf 22396@endif libiberty
93f9b408
ILT
22397
22398
22399
a90ef4bf
JM
22400.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
22401maybe-configure-stage1-libiberty:
22402@if libiberty-bootstrap
22403maybe-configure-stage1-libiberty: configure-stage1-libiberty
22404configure-stage1-libiberty:
93f9b408 22405 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 22406 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22407 @r=`${PWD_COMMAND}`; export r; \
22408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22409 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 22410 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
1b05fbbd 22411 $(HOST_EXPORTS) \
93f9b408 22412 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22413 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
22414 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22415 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty ; \
22416 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22417 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22418 case $(srcdir) in \
22419 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22420 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22421 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22422 esac; \
1b6c0831
L
22423 module_srcdir=libiberty; \
22424 $(SHELL) $$s/$$module_srcdir/configure \
22425 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22426 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22427 --target=${target_alias} \
22428 \
a90ef4bf
JM
22429 $(STAGE1_CONFIGURE_FLAGS) \
22430 @extra_host_libiberty_configure_flags@
22431@endif libiberty-bootstrap
93f9b408 22432
a90ef4bf
JM
22433.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
22434maybe-configure-stage2-libiberty:
22435@if libiberty-bootstrap
22436maybe-configure-stage2-libiberty: configure-stage2-libiberty
22437configure-stage2-libiberty:
93f9b408 22438 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 22439 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22440 @r=`${PWD_COMMAND}`; export r; \
22441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22442 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 22443 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22444 $(HOST_EXPORTS) \
1b05fbbd 22445 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22446 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22447 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
22448 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22449 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty ; \
22450 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22451 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22452 case $(srcdir) in \
22453 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22454 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22455 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22456 esac; \
1b6c0831
L
22457 module_srcdir=libiberty; \
22458 $(SHELL) $$s/$$module_srcdir/configure \
22459 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22460 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22461 --target=${target_alias} \
22462 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22463 $(STAGE2_CONFIGURE_FLAGS) \
22464 @extra_host_libiberty_configure_flags@
22465@endif libiberty-bootstrap
93f9b408 22466
a90ef4bf
JM
22467.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
22468maybe-configure-stage3-libiberty:
22469@if libiberty-bootstrap
22470maybe-configure-stage3-libiberty: configure-stage3-libiberty
22471configure-stage3-libiberty:
93f9b408 22472 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 22473 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22474 @r=`${PWD_COMMAND}`; export r; \
22475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22476 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 22477 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22478 $(HOST_EXPORTS) \
1b05fbbd 22479 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22480 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22481 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22482 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22483 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty ; \
22484 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22485 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22486 case $(srcdir) in \
22487 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22488 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22489 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22490 esac; \
1b6c0831
L
22491 module_srcdir=libiberty; \
22492 $(SHELL) $$s/$$module_srcdir/configure \
22493 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22494 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22495 --target=${target_alias} \
22496 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22497 $(STAGE3_CONFIGURE_FLAGS) \
22498 @extra_host_libiberty_configure_flags@
22499@endif libiberty-bootstrap
93f9b408 22500
a90ef4bf
JM
22501.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
22502maybe-configure-stage4-libiberty:
22503@if libiberty-bootstrap
22504maybe-configure-stage4-libiberty: configure-stage4-libiberty
22505configure-stage4-libiberty:
93f9b408 22506 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 22507 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22508 @r=`${PWD_COMMAND}`; export r; \
22509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22510 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 22511 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22512 $(HOST_EXPORTS) \
1b05fbbd 22513 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22514 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22515 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22516 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22517 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty ; \
22518 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22519 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22520 case $(srcdir) in \
22521 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22522 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22523 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22524 esac; \
1b6c0831
L
22525 module_srcdir=libiberty; \
22526 $(SHELL) $$s/$$module_srcdir/configure \
22527 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22528 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22529 --target=${target_alias} \
22530 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22531 $(STAGE4_CONFIGURE_FLAGS) \
22532 @extra_host_libiberty_configure_flags@
22533@endif libiberty-bootstrap
93f9b408 22534
a90ef4bf
JM
22535.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
22536maybe-configure-stageprofile-libiberty:
22537@if libiberty-bootstrap
22538maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
22539configure-stageprofile-libiberty:
93f9b408 22540 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 22541 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22542 @r=`${PWD_COMMAND}`; export r; \
22543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22544 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 22545 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22546 $(HOST_EXPORTS) \
1b05fbbd
AO
22547 $(POSTSTAGE1_HOST_EXPORTS) \
22548 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22549 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22550 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22551 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty ; \
22552 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22553 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22554 case $(srcdir) in \
22555 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22556 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22557 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22558 esac; \
1b6c0831
L
22559 module_srcdir=libiberty; \
22560 $(SHELL) $$s/$$module_srcdir/configure \
22561 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22562 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22563 --target=${target_alias} \
22564 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22565 $(STAGEprofile_CONFIGURE_FLAGS) \
22566 @extra_host_libiberty_configure_flags@
22567@endif libiberty-bootstrap
93f9b408 22568
a90ef4bf
JM
22569.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
22570maybe-configure-stagefeedback-libiberty:
22571@if libiberty-bootstrap
22572maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
22573configure-stagefeedback-libiberty:
93f9b408 22574 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 22575 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22576 @r=`${PWD_COMMAND}`; export r; \
22577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22578 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 22579 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22580 $(HOST_EXPORTS) \
1b05fbbd
AO
22581 $(POSTSTAGE1_HOST_EXPORTS) \
22582 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22583 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
22584 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
22585 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty ; \
22586 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
22587 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22588 case $(srcdir) in \
22589 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22590 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22591 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22592 esac; \
1b6c0831
L
22593 module_srcdir=libiberty; \
22594 $(SHELL) $$s/$$module_srcdir/configure \
22595 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22596 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22597 --target=${target_alias} \
22598 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22599 $(STAGEfeedback_CONFIGURE_FLAGS) \
22600 @extra_host_libiberty_configure_flags@
22601@endif libiberty-bootstrap
93f9b408
ILT
22602
22603
22604
22605
22606
a90ef4bf
JM
22607.PHONY: all-libiberty maybe-all-libiberty
22608maybe-all-libiberty:
93f9b408 22609@if gcc-bootstrap
a90ef4bf 22610all-libiberty: stage_current
93f9b408 22611@endif gcc-bootstrap
a90ef4bf
JM
22612@if libiberty
22613TARGET-libiberty=all
22614maybe-all-libiberty: all-libiberty
22615all-libiberty: configure-libiberty
93f9b408
ILT
22616 @r=`${PWD_COMMAND}`; export r; \
22617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22618 $(HOST_EXPORTS) \
a90ef4bf 22619 (cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22620 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22621 $(TARGET-libiberty))
22622@endif libiberty
93f9b408
ILT
22623
22624
22625
a90ef4bf
JM
22626.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
22627.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
22628maybe-all-stage1-libiberty:
22629maybe-clean-stage1-libiberty:
22630@if libiberty-bootstrap
22631maybe-all-stage1-libiberty: all-stage1-libiberty
22632all-stage1: all-stage1-libiberty
22633TARGET-stage1-libiberty = $(TARGET-libiberty)
22634all-stage1-libiberty: configure-stage1-libiberty
93f9b408
ILT
22635 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22636 @r=`${PWD_COMMAND}`; export r; \
22637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22638 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 22639 $(HOST_EXPORTS) \
a90ef4bf 22640 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22641 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22642 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 22643 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
22644 LIBCFLAGS="$(LIBCFLAGS)" \
22645 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22646 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22647 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
22648 $(EXTRA_HOST_FLAGS) \
22649 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 22650 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 22651 $(TARGET-stage1-libiberty)
93f9b408 22652
a90ef4bf
JM
22653maybe-clean-stage1-libiberty: clean-stage1-libiberty
22654clean-stage1: clean-stage1-libiberty
22655clean-stage1-libiberty:
93f9b408 22656 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 22657 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22658 else \
a90ef4bf 22659 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22660 $(MAKE) stage1-start; \
22661 fi; \
a90ef4bf 22662 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22663 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 22664 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22665@endif libiberty-bootstrap
93f9b408
ILT
22666
22667
a90ef4bf
JM
22668.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
22669.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
22670maybe-all-stage2-libiberty:
22671maybe-clean-stage2-libiberty:
22672@if libiberty-bootstrap
22673maybe-all-stage2-libiberty: all-stage2-libiberty
22674all-stage2: all-stage2-libiberty
22675TARGET-stage2-libiberty = $(TARGET-libiberty)
22676all-stage2-libiberty: configure-stage2-libiberty
93f9b408
ILT
22677 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22678 @r=`${PWD_COMMAND}`; export r; \
22679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22680 TFLAGS="$(STAGE2_TFLAGS)"; \
93f9b408 22681 $(HOST_EXPORTS) \
1f53ca9a 22682 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22683 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22684 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22685 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 22686 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
22687 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22688 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22689 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22690 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22691 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22692 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 22693 $(TARGET-stage2-libiberty)
93f9b408 22694
a90ef4bf
JM
22695maybe-clean-stage2-libiberty: clean-stage2-libiberty
22696clean-stage2: clean-stage2-libiberty
22697clean-stage2-libiberty:
93f9b408 22698 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 22699 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22700 else \
a90ef4bf 22701 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22702 $(MAKE) stage2-start; \
22703 fi; \
a90ef4bf 22704 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22705 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22706@endif libiberty-bootstrap
93f9b408
ILT
22707
22708
a90ef4bf
JM
22709.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
22710.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
22711maybe-all-stage3-libiberty:
22712maybe-clean-stage3-libiberty:
22713@if libiberty-bootstrap
22714maybe-all-stage3-libiberty: all-stage3-libiberty
22715all-stage3: all-stage3-libiberty
22716TARGET-stage3-libiberty = $(TARGET-libiberty)
22717all-stage3-libiberty: configure-stage3-libiberty
93f9b408
ILT
22718 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22719 @r=`${PWD_COMMAND}`; export r; \
22720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22721 TFLAGS="$(STAGE3_TFLAGS)"; \
93f9b408 22722 $(HOST_EXPORTS) \
1f53ca9a 22723 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22724 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22725 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22726 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 22727 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
22728 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22729 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22730 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22731 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22732 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22733 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 22734 $(TARGET-stage3-libiberty)
93f9b408 22735
a90ef4bf
JM
22736maybe-clean-stage3-libiberty: clean-stage3-libiberty
22737clean-stage3: clean-stage3-libiberty
22738clean-stage3-libiberty:
93f9b408 22739 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 22740 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22741 else \
a90ef4bf 22742 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22743 $(MAKE) stage3-start; \
22744 fi; \
a90ef4bf 22745 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22746 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22747@endif libiberty-bootstrap
93f9b408
ILT
22748
22749
a90ef4bf
JM
22750.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
22751.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
22752maybe-all-stage4-libiberty:
22753maybe-clean-stage4-libiberty:
22754@if libiberty-bootstrap
22755maybe-all-stage4-libiberty: all-stage4-libiberty
22756all-stage4: all-stage4-libiberty
22757TARGET-stage4-libiberty = $(TARGET-libiberty)
22758all-stage4-libiberty: configure-stage4-libiberty
93f9b408
ILT
22759 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22760 @r=`${PWD_COMMAND}`; export r; \
22761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22762 TFLAGS="$(STAGE4_TFLAGS)"; \
93f9b408 22763 $(HOST_EXPORTS) \
1f53ca9a 22764 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22765 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22766 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22767 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 22768 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
93f9b408 22769 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
22770 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22771 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22772 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22773 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22774 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 22775 $(TARGET-stage4-libiberty)
93f9b408 22776
a90ef4bf
JM
22777maybe-clean-stage4-libiberty: clean-stage4-libiberty
22778clean-stage4: clean-stage4-libiberty
22779clean-stage4-libiberty:
93f9b408 22780 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 22781 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22782 else \
a90ef4bf 22783 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22784 $(MAKE) stage4-start; \
22785 fi; \
a90ef4bf 22786 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22787 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22788@endif libiberty-bootstrap
93f9b408
ILT
22789
22790
a90ef4bf
JM
22791.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
22792.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
22793maybe-all-stageprofile-libiberty:
22794maybe-clean-stageprofile-libiberty:
22795@if libiberty-bootstrap
22796maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
22797all-stageprofile: all-stageprofile-libiberty
22798TARGET-stageprofile-libiberty = $(TARGET-libiberty)
22799all-stageprofile-libiberty: configure-stageprofile-libiberty
93f9b408
ILT
22800 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22801 @r=`${PWD_COMMAND}`; export r; \
22802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22803 TFLAGS="$(STAGEprofile_TFLAGS)"; \
93f9b408 22804 $(HOST_EXPORTS) \
1f53ca9a 22805 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22806 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22807 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22808 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 22809 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
22810 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
22811 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22812 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22813 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22814 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22815 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 22816 $(TARGET-stageprofile-libiberty)
93f9b408 22817
a90ef4bf
JM
22818maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
22819clean-stageprofile: clean-stageprofile-libiberty
22820clean-stageprofile-libiberty:
93f9b408 22821 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 22822 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22823 else \
a90ef4bf 22824 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22825 $(MAKE) stageprofile-start; \
22826 fi; \
a90ef4bf 22827 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22828 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22829@endif libiberty-bootstrap
93f9b408
ILT
22830
22831
a90ef4bf
JM
22832.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
22833.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
22834maybe-all-stagefeedback-libiberty:
22835maybe-clean-stagefeedback-libiberty:
22836@if libiberty-bootstrap
22837maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
22838all-stagefeedback: all-stagefeedback-libiberty
22839TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
22840all-stagefeedback-libiberty: configure-stagefeedback-libiberty
93f9b408
ILT
22841 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
22842 @r=`${PWD_COMMAND}`; export r; \
22843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22844 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
93f9b408 22845 $(HOST_EXPORTS) \
1f53ca9a 22846 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22847 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22848 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22849 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 22850 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
22851 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
22852 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22853 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22854 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22855 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22856 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 22857 $(TARGET-stagefeedback-libiberty)
93f9b408 22858
a90ef4bf
JM
22859maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
22860clean-stagefeedback: clean-stagefeedback-libiberty
22861clean-stagefeedback-libiberty:
93f9b408 22862 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 22863 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22864 else \
a90ef4bf 22865 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22866 $(MAKE) stagefeedback-start; \
22867 fi; \
a90ef4bf 22868 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22869 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22870@endif libiberty-bootstrap
93f9b408
ILT
22871
22872
22873
22874
22875
a90ef4bf
JM
22876.PHONY: check-libiberty maybe-check-libiberty
22877maybe-check-libiberty:
22878@if libiberty
22879maybe-check-libiberty: check-libiberty
93f9b408 22880
a90ef4bf 22881check-libiberty:
93f9b408
ILT
22882 @: $(MAKE); $(unstage)
22883 @r=`${PWD_COMMAND}`; export r; \
22884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22885 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 22886 (cd $(HOST_SUBDIR)/libiberty && \
f91ca6bc 22887 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
93f9b408 22888
a90ef4bf 22889@endif libiberty
93f9b408 22890
a90ef4bf
JM
22891.PHONY: install-libiberty maybe-install-libiberty
22892maybe-install-libiberty:
22893@if libiberty
22894maybe-install-libiberty: install-libiberty
93f9b408 22895
a90ef4bf 22896install-libiberty: installdirs
93f9b408
ILT
22897 @: $(MAKE); $(unstage)
22898 @r=`${PWD_COMMAND}`; export r; \
22899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22900 $(HOST_EXPORTS) \
a90ef4bf 22901 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22902 $(MAKE) $(FLAGS_TO_PASS) install)
22903
a90ef4bf 22904@endif libiberty
93f9b408 22905
a90ef4bf
JM
22906.PHONY: install-strip-libiberty maybe-install-strip-libiberty
22907maybe-install-strip-libiberty:
22908@if libiberty
22909maybe-install-strip-libiberty: install-strip-libiberty
9b980aa1 22910
a90ef4bf 22911install-strip-libiberty: installdirs
9b980aa1
RW
22912 @: $(MAKE); $(unstage)
22913 @r=`${PWD_COMMAND}`; export r; \
22914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22915 $(HOST_EXPORTS) \
a90ef4bf 22916 (cd $(HOST_SUBDIR)/libiberty && \
9b980aa1
RW
22917 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22918
a90ef4bf 22919@endif libiberty
9b980aa1 22920
93f9b408
ILT
22921# Other targets (info, dvi, pdf, etc.)
22922
a90ef4bf
JM
22923.PHONY: maybe-info-libiberty info-libiberty
22924maybe-info-libiberty:
22925@if libiberty
22926maybe-info-libiberty: info-libiberty
93f9b408 22927
a90ef4bf
JM
22928info-libiberty: \
22929 configure-libiberty
22930 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22931 r=`${PWD_COMMAND}`; export r; \
22932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22933 $(HOST_EXPORTS) \
22934 for flag in $(EXTRA_HOST_FLAGS) ; do \
22935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22936 done; \
a90ef4bf
JM
22937 echo "Doing info in libiberty" ; \
22938 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22941 "RANLIB=$${RANLIB}" \
22942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22943 info) \
22944 || exit 1
22945
a90ef4bf 22946@endif libiberty
93f9b408 22947
a90ef4bf
JM
22948.PHONY: maybe-dvi-libiberty dvi-libiberty
22949maybe-dvi-libiberty:
22950@if libiberty
22951maybe-dvi-libiberty: dvi-libiberty
93f9b408 22952
a90ef4bf
JM
22953dvi-libiberty: \
22954 configure-libiberty
22955 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22956 r=`${PWD_COMMAND}`; export r; \
22957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22958 $(HOST_EXPORTS) \
22959 for flag in $(EXTRA_HOST_FLAGS) ; do \
22960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22961 done; \
a90ef4bf
JM
22962 echo "Doing dvi in libiberty" ; \
22963 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22966 "RANLIB=$${RANLIB}" \
22967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22968 dvi) \
22969 || exit 1
22970
a90ef4bf 22971@endif libiberty
93f9b408 22972
a90ef4bf
JM
22973.PHONY: maybe-pdf-libiberty pdf-libiberty
22974maybe-pdf-libiberty:
22975@if libiberty
22976maybe-pdf-libiberty: pdf-libiberty
93f9b408 22977
a90ef4bf
JM
22978pdf-libiberty: \
22979 configure-libiberty
22980 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22981 r=`${PWD_COMMAND}`; export r; \
22982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22983 $(HOST_EXPORTS) \
22984 for flag in $(EXTRA_HOST_FLAGS) ; do \
22985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22986 done; \
a90ef4bf
JM
22987 echo "Doing pdf in libiberty" ; \
22988 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22991 "RANLIB=$${RANLIB}" \
22992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22993 pdf) \
22994 || exit 1
22995
a90ef4bf 22996@endif libiberty
93f9b408 22997
a90ef4bf
JM
22998.PHONY: maybe-html-libiberty html-libiberty
22999maybe-html-libiberty:
23000@if libiberty
23001maybe-html-libiberty: html-libiberty
93f9b408 23002
a90ef4bf
JM
23003html-libiberty: \
23004 configure-libiberty
23005 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23006 r=`${PWD_COMMAND}`; export r; \
23007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23008 $(HOST_EXPORTS) \
23009 for flag in $(EXTRA_HOST_FLAGS) ; do \
23010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23011 done; \
a90ef4bf
JM
23012 echo "Doing html in libiberty" ; \
23013 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23016 "RANLIB=$${RANLIB}" \
23017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23018 html) \
23019 || exit 1
23020
a90ef4bf 23021@endif libiberty
93f9b408 23022
a90ef4bf
JM
23023.PHONY: maybe-TAGS-libiberty TAGS-libiberty
23024maybe-TAGS-libiberty:
23025@if libiberty
23026maybe-TAGS-libiberty: TAGS-libiberty
93f9b408 23027
a90ef4bf
JM
23028TAGS-libiberty: \
23029 configure-libiberty
23030 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23031 r=`${PWD_COMMAND}`; export r; \
23032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23033 $(HOST_EXPORTS) \
23034 for flag in $(EXTRA_HOST_FLAGS) ; do \
23035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23036 done; \
a90ef4bf
JM
23037 echo "Doing TAGS in libiberty" ; \
23038 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23041 "RANLIB=$${RANLIB}" \
23042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23043 TAGS) \
23044 || exit 1
23045
a90ef4bf 23046@endif libiberty
93f9b408 23047
a90ef4bf
JM
23048.PHONY: maybe-install-info-libiberty install-info-libiberty
23049maybe-install-info-libiberty:
23050@if libiberty
23051maybe-install-info-libiberty: install-info-libiberty
93f9b408 23052
a90ef4bf
JM
23053install-info-libiberty: \
23054 configure-libiberty \
23055 info-libiberty
23056 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23057 r=`${PWD_COMMAND}`; export r; \
23058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23059 $(HOST_EXPORTS) \
23060 for flag in $(EXTRA_HOST_FLAGS) ; do \
23061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23062 done; \
a90ef4bf
JM
23063 echo "Doing install-info in libiberty" ; \
23064 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23067 "RANLIB=$${RANLIB}" \
23068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23069 install-info) \
23070 || exit 1
23071
a90ef4bf 23072@endif libiberty
93f9b408 23073
a90ef4bf
JM
23074.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
23075maybe-install-pdf-libiberty:
23076@if libiberty
23077maybe-install-pdf-libiberty: install-pdf-libiberty
93f9b408 23078
a90ef4bf
JM
23079install-pdf-libiberty: \
23080 configure-libiberty \
23081 pdf-libiberty
23082 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23083 r=`${PWD_COMMAND}`; export r; \
23084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23085 $(HOST_EXPORTS) \
23086 for flag in $(EXTRA_HOST_FLAGS) ; do \
23087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23088 done; \
a90ef4bf
JM
23089 echo "Doing install-pdf in libiberty" ; \
23090 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23093 "RANLIB=$${RANLIB}" \
23094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23095 install-pdf) \
23096 || exit 1
23097
a90ef4bf 23098@endif libiberty
93f9b408 23099
a90ef4bf
JM
23100.PHONY: maybe-install-html-libiberty install-html-libiberty
23101maybe-install-html-libiberty:
23102@if libiberty
23103maybe-install-html-libiberty: install-html-libiberty
93f9b408 23104
a90ef4bf
JM
23105install-html-libiberty: \
23106 configure-libiberty \
23107 html-libiberty
23108 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23109 r=`${PWD_COMMAND}`; export r; \
23110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23111 $(HOST_EXPORTS) \
23112 for flag in $(EXTRA_HOST_FLAGS) ; do \
23113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23114 done; \
a90ef4bf
JM
23115 echo "Doing install-html in libiberty" ; \
23116 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23119 "RANLIB=$${RANLIB}" \
23120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23121 install-html) \
23122 || exit 1
23123
a90ef4bf 23124@endif libiberty
93f9b408 23125
a90ef4bf
JM
23126.PHONY: maybe-installcheck-libiberty installcheck-libiberty
23127maybe-installcheck-libiberty:
23128@if libiberty
23129maybe-installcheck-libiberty: installcheck-libiberty
93f9b408 23130
a90ef4bf
JM
23131installcheck-libiberty: \
23132 configure-libiberty
23133 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23134 r=`${PWD_COMMAND}`; export r; \
23135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23136 $(HOST_EXPORTS) \
23137 for flag in $(EXTRA_HOST_FLAGS) ; do \
23138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23139 done; \
a90ef4bf
JM
23140 echo "Doing installcheck in libiberty" ; \
23141 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23144 "RANLIB=$${RANLIB}" \
23145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23146 installcheck) \
23147 || exit 1
23148
a90ef4bf 23149@endif libiberty
93f9b408 23150
a90ef4bf
JM
23151.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
23152maybe-mostlyclean-libiberty:
23153@if libiberty
23154maybe-mostlyclean-libiberty: mostlyclean-libiberty
93f9b408 23155
a90ef4bf
JM
23156mostlyclean-libiberty:
23157 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23158 r=`${PWD_COMMAND}`; export r; \
23159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23160 $(HOST_EXPORTS) \
23161 for flag in $(EXTRA_HOST_FLAGS) ; do \
23162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23163 done; \
a90ef4bf
JM
23164 echo "Doing mostlyclean in libiberty" ; \
23165 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23168 "RANLIB=$${RANLIB}" \
23169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23170 mostlyclean) \
23171 || exit 1
23172
a90ef4bf 23173@endif libiberty
93f9b408 23174
a90ef4bf
JM
23175.PHONY: maybe-clean-libiberty clean-libiberty
23176maybe-clean-libiberty:
23177@if libiberty
23178maybe-clean-libiberty: clean-libiberty
93f9b408 23179
a90ef4bf
JM
23180clean-libiberty:
23181 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23182 r=`${PWD_COMMAND}`; export r; \
23183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23184 $(HOST_EXPORTS) \
23185 for flag in $(EXTRA_HOST_FLAGS) ; do \
23186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23187 done; \
a90ef4bf
JM
23188 echo "Doing clean in libiberty" ; \
23189 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23192 "RANLIB=$${RANLIB}" \
23193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23194 clean) \
23195 || exit 1
23196
a90ef4bf 23197@endif libiberty
93f9b408 23198
a90ef4bf
JM
23199.PHONY: maybe-distclean-libiberty distclean-libiberty
23200maybe-distclean-libiberty:
23201@if libiberty
23202maybe-distclean-libiberty: distclean-libiberty
93f9b408 23203
a90ef4bf
JM
23204distclean-libiberty:
23205 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23206 r=`${PWD_COMMAND}`; export r; \
23207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23208 $(HOST_EXPORTS) \
23209 for flag in $(EXTRA_HOST_FLAGS) ; do \
23210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23211 done; \
a90ef4bf
JM
23212 echo "Doing distclean in libiberty" ; \
23213 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23216 "RANLIB=$${RANLIB}" \
23217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23218 distclean) \
23219 || exit 1
23220
a90ef4bf 23221@endif libiberty
93f9b408 23222
a90ef4bf
JM
23223.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
23224maybe-maintainer-clean-libiberty:
23225@if libiberty
23226maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
93f9b408 23227
a90ef4bf
JM
23228maintainer-clean-libiberty:
23229 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23230 r=`${PWD_COMMAND}`; export r; \
23231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23232 $(HOST_EXPORTS) \
23233 for flag in $(EXTRA_HOST_FLAGS) ; do \
23234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23235 done; \
a90ef4bf
JM
23236 echo "Doing maintainer-clean in libiberty" ; \
23237 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23240 "RANLIB=$${RANLIB}" \
23241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23242 maintainer-clean) \
23243 || exit 1
23244
a90ef4bf 23245@endif libiberty
93f9b408
ILT
23246
23247
23248
1b6c0831
L
23249.PHONY: configure-libiberty-linker-plugin maybe-configure-libiberty-linker-plugin
23250maybe-configure-libiberty-linker-plugin:
23251@if gcc-bootstrap
23252configure-libiberty-linker-plugin: stage_current
23253@endif gcc-bootstrap
23254@if libiberty-linker-plugin
23255maybe-configure-libiberty-linker-plugin: configure-libiberty-linker-plugin
23256configure-libiberty-linker-plugin:
23257 @r=`${PWD_COMMAND}`; export r; \
23258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23259 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23260 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23261 $(HOST_EXPORTS) \
23262 echo Configuring in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23263 cd "$(HOST_SUBDIR)/libiberty-linker-plugin" || exit 1; \
23264 case $(srcdir) in \
23265 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23266 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23267 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23268 esac; \
23269 module_srcdir=libiberty; \
23270 $(SHELL) \
23271 $$s/$$module_srcdir/configure \
23272 --srcdir=$${topdir}/$$module_srcdir \
23273 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23274 --target=${target_alias} @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
23275 || exit 1
23276@endif libiberty-linker-plugin
23277
23278
23279
23280.PHONY: configure-stage1-libiberty-linker-plugin maybe-configure-stage1-libiberty-linker-plugin
23281maybe-configure-stage1-libiberty-linker-plugin:
23282@if libiberty-linker-plugin-bootstrap
23283maybe-configure-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23284configure-stage1-libiberty-linker-plugin:
23285 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23286 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23287 @r=`${PWD_COMMAND}`; export r; \
23288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23289 TFLAGS="$(STAGE1_TFLAGS)"; \
23290 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23291 $(HOST_EXPORTS) \
23292 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
23293 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
23294 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
23295 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23296 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23297 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23298 case $(srcdir) in \
23299 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23300 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23301 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23302 esac; \
23303 module_srcdir=libiberty; \
23304 $(SHELL) $$s/$$module_srcdir/configure \
23305 --srcdir=$${topdir}/$$module_srcdir \
23306 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23307 --target=${target_alias} \
23308 \
23309 $(STAGE1_CONFIGURE_FLAGS) \
23310 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23311@endif libiberty-linker-plugin-bootstrap
23312
23313.PHONY: configure-stage2-libiberty-linker-plugin maybe-configure-stage2-libiberty-linker-plugin
23314maybe-configure-stage2-libiberty-linker-plugin:
23315@if libiberty-linker-plugin-bootstrap
23316maybe-configure-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23317configure-stage2-libiberty-linker-plugin:
23318 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23319 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23320 @r=`${PWD_COMMAND}`; export r; \
23321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23322 TFLAGS="$(STAGE2_TFLAGS)"; \
23323 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23324 $(HOST_EXPORTS) \
23325 $(POSTSTAGE1_HOST_EXPORTS) \
23326 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
23327 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
23328 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
23329 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23330 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23331 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23332 case $(srcdir) in \
23333 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23334 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23335 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23336 esac; \
23337 module_srcdir=libiberty; \
23338 $(SHELL) $$s/$$module_srcdir/configure \
23339 --srcdir=$${topdir}/$$module_srcdir \
23340 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23341 --target=${target_alias} \
23342 --with-build-libsubdir=$(HOST_SUBDIR) \
23343 $(STAGE2_CONFIGURE_FLAGS) \
23344 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23345@endif libiberty-linker-plugin-bootstrap
23346
23347.PHONY: configure-stage3-libiberty-linker-plugin maybe-configure-stage3-libiberty-linker-plugin
23348maybe-configure-stage3-libiberty-linker-plugin:
23349@if libiberty-linker-plugin-bootstrap
23350maybe-configure-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23351configure-stage3-libiberty-linker-plugin:
23352 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23353 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23354 @r=`${PWD_COMMAND}`; export r; \
23355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23356 TFLAGS="$(STAGE3_TFLAGS)"; \
23357 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23358 $(HOST_EXPORTS) \
23359 $(POSTSTAGE1_HOST_EXPORTS) \
23360 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
23361 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
23362 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
23363 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23364 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23365 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23366 case $(srcdir) in \
23367 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23368 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23369 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23370 esac; \
23371 module_srcdir=libiberty; \
23372 $(SHELL) $$s/$$module_srcdir/configure \
23373 --srcdir=$${topdir}/$$module_srcdir \
23374 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23375 --target=${target_alias} \
23376 --with-build-libsubdir=$(HOST_SUBDIR) \
23377 $(STAGE3_CONFIGURE_FLAGS) \
23378 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23379@endif libiberty-linker-plugin-bootstrap
23380
23381.PHONY: configure-stage4-libiberty-linker-plugin maybe-configure-stage4-libiberty-linker-plugin
23382maybe-configure-stage4-libiberty-linker-plugin:
23383@if libiberty-linker-plugin-bootstrap
23384maybe-configure-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23385configure-stage4-libiberty-linker-plugin:
23386 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23387 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23388 @r=`${PWD_COMMAND}`; export r; \
23389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23390 TFLAGS="$(STAGE4_TFLAGS)"; \
23391 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23392 $(HOST_EXPORTS) \
23393 $(POSTSTAGE1_HOST_EXPORTS) \
23394 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
23395 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
23396 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
23397 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23398 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23399 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23400 case $(srcdir) in \
23401 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23402 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23403 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23404 esac; \
23405 module_srcdir=libiberty; \
23406 $(SHELL) $$s/$$module_srcdir/configure \
23407 --srcdir=$${topdir}/$$module_srcdir \
23408 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23409 --target=${target_alias} \
23410 --with-build-libsubdir=$(HOST_SUBDIR) \
23411 $(STAGE4_CONFIGURE_FLAGS) \
23412 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23413@endif libiberty-linker-plugin-bootstrap
23414
23415.PHONY: configure-stageprofile-libiberty-linker-plugin maybe-configure-stageprofile-libiberty-linker-plugin
23416maybe-configure-stageprofile-libiberty-linker-plugin:
23417@if libiberty-linker-plugin-bootstrap
23418maybe-configure-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23419configure-stageprofile-libiberty-linker-plugin:
23420 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23421 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23422 @r=`${PWD_COMMAND}`; export r; \
23423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23424 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23425 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23426 $(HOST_EXPORTS) \
23427 $(POSTSTAGE1_HOST_EXPORTS) \
23428 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
23429 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
23430 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
23431 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23432 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23433 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23434 case $(srcdir) in \
23435 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23436 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23437 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23438 esac; \
23439 module_srcdir=libiberty; \
23440 $(SHELL) $$s/$$module_srcdir/configure \
23441 --srcdir=$${topdir}/$$module_srcdir \
23442 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23443 --target=${target_alias} \
23444 --with-build-libsubdir=$(HOST_SUBDIR) \
23445 $(STAGEprofile_CONFIGURE_FLAGS) \
23446 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23447@endif libiberty-linker-plugin-bootstrap
23448
23449.PHONY: configure-stagefeedback-libiberty-linker-plugin maybe-configure-stagefeedback-libiberty-linker-plugin
23450maybe-configure-stagefeedback-libiberty-linker-plugin:
23451@if libiberty-linker-plugin-bootstrap
23452maybe-configure-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23453configure-stagefeedback-libiberty-linker-plugin:
23454 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23455 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23456 @r=`${PWD_COMMAND}`; export r; \
23457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23458 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23459 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23460 $(HOST_EXPORTS) \
23461 $(POSTSTAGE1_HOST_EXPORTS) \
23462 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
23463 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
23464 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
23465 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23466 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin ; \
23467 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23468 case $(srcdir) in \
23469 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23470 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23471 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23472 esac; \
23473 module_srcdir=libiberty; \
23474 $(SHELL) $$s/$$module_srcdir/configure \
23475 --srcdir=$${topdir}/$$module_srcdir \
23476 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23477 --target=${target_alias} \
23478 --with-build-libsubdir=$(HOST_SUBDIR) \
23479 $(STAGEfeedback_CONFIGURE_FLAGS) \
23480 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23481@endif libiberty-linker-plugin-bootstrap
23482
23483
23484
23485
23486
23487.PHONY: all-libiberty-linker-plugin maybe-all-libiberty-linker-plugin
23488maybe-all-libiberty-linker-plugin:
23489@if gcc-bootstrap
23490all-libiberty-linker-plugin: stage_current
23491@endif gcc-bootstrap
23492@if libiberty-linker-plugin
23493TARGET-libiberty-linker-plugin=all
23494maybe-all-libiberty-linker-plugin: all-libiberty-linker-plugin
23495all-libiberty-linker-plugin: configure-libiberty-linker-plugin
23496 @r=`${PWD_COMMAND}`; export r; \
23497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23498 $(HOST_EXPORTS) \
23499 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23500 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23501 $(TARGET-libiberty-linker-plugin))
23502@endif libiberty-linker-plugin
23503
23504
23505
23506.PHONY: all-stage1-libiberty-linker-plugin maybe-all-stage1-libiberty-linker-plugin
23507.PHONY: clean-stage1-libiberty-linker-plugin maybe-clean-stage1-libiberty-linker-plugin
23508maybe-all-stage1-libiberty-linker-plugin:
23509maybe-clean-stage1-libiberty-linker-plugin:
23510@if libiberty-linker-plugin-bootstrap
23511maybe-all-stage1-libiberty-linker-plugin: all-stage1-libiberty-linker-plugin
23512all-stage1: all-stage1-libiberty-linker-plugin
23513TARGET-stage1-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23514all-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23515 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23516 @r=`${PWD_COMMAND}`; export r; \
23517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23518 TFLAGS="$(STAGE1_TFLAGS)"; \
23519 $(HOST_EXPORTS) \
23520 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23521 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23522 CFLAGS="$(STAGE1_CFLAGS)" \
23523 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
23524 LIBCFLAGS="$(LIBCFLAGS)" \
23525 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23526 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23527 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23528 $(EXTRA_HOST_FLAGS) \
23529 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23530 TFLAGS="$(STAGE1_TFLAGS)" \
23531 $(TARGET-stage1-libiberty-linker-plugin)
23532
23533maybe-clean-stage1-libiberty-linker-plugin: clean-stage1-libiberty-linker-plugin
23534clean-stage1: clean-stage1-libiberty-linker-plugin
23535clean-stage1-libiberty-linker-plugin:
23536 @if [ $(current_stage) = stage1 ]; then \
23537 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23538 else \
23539 [ -f $(HOST_SUBDIR)/stage1-libiberty-linker-plugin/Makefile ] || exit 0; \
23540 $(MAKE) stage1-start; \
23541 fi; \
23542 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23543 $(MAKE) $(EXTRA_HOST_FLAGS) \
23544 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23545@endif libiberty-linker-plugin-bootstrap
23546
23547
23548.PHONY: all-stage2-libiberty-linker-plugin maybe-all-stage2-libiberty-linker-plugin
23549.PHONY: clean-stage2-libiberty-linker-plugin maybe-clean-stage2-libiberty-linker-plugin
23550maybe-all-stage2-libiberty-linker-plugin:
23551maybe-clean-stage2-libiberty-linker-plugin:
23552@if libiberty-linker-plugin-bootstrap
23553maybe-all-stage2-libiberty-linker-plugin: all-stage2-libiberty-linker-plugin
23554all-stage2: all-stage2-libiberty-linker-plugin
23555TARGET-stage2-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23556all-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23557 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23558 @r=`${PWD_COMMAND}`; export r; \
23559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23560 TFLAGS="$(STAGE2_TFLAGS)"; \
23561 $(HOST_EXPORTS) \
23562 $(POSTSTAGE1_HOST_EXPORTS) \
23563 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23564 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23565 CFLAGS="$(STAGE2_CFLAGS)" \
23566 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
23567 LIBCFLAGS="$(STAGE2_CFLAGS)" \
23568 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23569 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23570 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23571 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23572 TFLAGS="$(STAGE2_TFLAGS)" \
23573 $(TARGET-stage2-libiberty-linker-plugin)
23574
23575maybe-clean-stage2-libiberty-linker-plugin: clean-stage2-libiberty-linker-plugin
23576clean-stage2: clean-stage2-libiberty-linker-plugin
23577clean-stage2-libiberty-linker-plugin:
23578 @if [ $(current_stage) = stage2 ]; then \
23579 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23580 else \
23581 [ -f $(HOST_SUBDIR)/stage2-libiberty-linker-plugin/Makefile ] || exit 0; \
23582 $(MAKE) stage2-start; \
23583 fi; \
23584 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23585 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23586@endif libiberty-linker-plugin-bootstrap
23587
23588
23589.PHONY: all-stage3-libiberty-linker-plugin maybe-all-stage3-libiberty-linker-plugin
23590.PHONY: clean-stage3-libiberty-linker-plugin maybe-clean-stage3-libiberty-linker-plugin
23591maybe-all-stage3-libiberty-linker-plugin:
23592maybe-clean-stage3-libiberty-linker-plugin:
23593@if libiberty-linker-plugin-bootstrap
23594maybe-all-stage3-libiberty-linker-plugin: all-stage3-libiberty-linker-plugin
23595all-stage3: all-stage3-libiberty-linker-plugin
23596TARGET-stage3-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23597all-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23598 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23599 @r=`${PWD_COMMAND}`; export r; \
23600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23601 TFLAGS="$(STAGE3_TFLAGS)"; \
23602 $(HOST_EXPORTS) \
23603 $(POSTSTAGE1_HOST_EXPORTS) \
23604 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23605 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23606 CFLAGS="$(STAGE3_CFLAGS)" \
23607 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
23608 LIBCFLAGS="$(STAGE3_CFLAGS)" \
23609 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23610 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23611 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23612 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23613 TFLAGS="$(STAGE3_TFLAGS)" \
23614 $(TARGET-stage3-libiberty-linker-plugin)
23615
23616maybe-clean-stage3-libiberty-linker-plugin: clean-stage3-libiberty-linker-plugin
23617clean-stage3: clean-stage3-libiberty-linker-plugin
23618clean-stage3-libiberty-linker-plugin:
23619 @if [ $(current_stage) = stage3 ]; then \
23620 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23621 else \
23622 [ -f $(HOST_SUBDIR)/stage3-libiberty-linker-plugin/Makefile ] || exit 0; \
23623 $(MAKE) stage3-start; \
23624 fi; \
23625 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23626 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23627@endif libiberty-linker-plugin-bootstrap
23628
23629
23630.PHONY: all-stage4-libiberty-linker-plugin maybe-all-stage4-libiberty-linker-plugin
23631.PHONY: clean-stage4-libiberty-linker-plugin maybe-clean-stage4-libiberty-linker-plugin
23632maybe-all-stage4-libiberty-linker-plugin:
23633maybe-clean-stage4-libiberty-linker-plugin:
23634@if libiberty-linker-plugin-bootstrap
23635maybe-all-stage4-libiberty-linker-plugin: all-stage4-libiberty-linker-plugin
23636all-stage4: all-stage4-libiberty-linker-plugin
23637TARGET-stage4-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23638all-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23639 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23640 @r=`${PWD_COMMAND}`; export r; \
23641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23642 TFLAGS="$(STAGE4_TFLAGS)"; \
23643 $(HOST_EXPORTS) \
23644 $(POSTSTAGE1_HOST_EXPORTS) \
23645 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23646 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23647 CFLAGS="$(STAGE4_CFLAGS)" \
23648 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
23649 LIBCFLAGS="$(STAGE4_CFLAGS)" \
23650 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23651 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23652 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23653 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23654 TFLAGS="$(STAGE4_TFLAGS)" \
23655 $(TARGET-stage4-libiberty-linker-plugin)
23656
23657maybe-clean-stage4-libiberty-linker-plugin: clean-stage4-libiberty-linker-plugin
23658clean-stage4: clean-stage4-libiberty-linker-plugin
23659clean-stage4-libiberty-linker-plugin:
23660 @if [ $(current_stage) = stage4 ]; then \
23661 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23662 else \
23663 [ -f $(HOST_SUBDIR)/stage4-libiberty-linker-plugin/Makefile ] || exit 0; \
23664 $(MAKE) stage4-start; \
23665 fi; \
23666 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23667 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23668@endif libiberty-linker-plugin-bootstrap
23669
23670
23671.PHONY: all-stageprofile-libiberty-linker-plugin maybe-all-stageprofile-libiberty-linker-plugin
23672.PHONY: clean-stageprofile-libiberty-linker-plugin maybe-clean-stageprofile-libiberty-linker-plugin
23673maybe-all-stageprofile-libiberty-linker-plugin:
23674maybe-clean-stageprofile-libiberty-linker-plugin:
23675@if libiberty-linker-plugin-bootstrap
23676maybe-all-stageprofile-libiberty-linker-plugin: all-stageprofile-libiberty-linker-plugin
23677all-stageprofile: all-stageprofile-libiberty-linker-plugin
23678TARGET-stageprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23679all-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23680 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23681 @r=`${PWD_COMMAND}`; export r; \
23682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23683 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23684 $(HOST_EXPORTS) \
23685 $(POSTSTAGE1_HOST_EXPORTS) \
23686 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23687 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23688 CFLAGS="$(STAGEprofile_CFLAGS)" \
23689 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
23690 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23691 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23692 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23693 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23694 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23695 TFLAGS="$(STAGEprofile_TFLAGS)" \
23696 $(TARGET-stageprofile-libiberty-linker-plugin)
23697
23698maybe-clean-stageprofile-libiberty-linker-plugin: clean-stageprofile-libiberty-linker-plugin
23699clean-stageprofile: clean-stageprofile-libiberty-linker-plugin
23700clean-stageprofile-libiberty-linker-plugin:
23701 @if [ $(current_stage) = stageprofile ]; then \
23702 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23703 else \
23704 [ -f $(HOST_SUBDIR)/stageprofile-libiberty-linker-plugin/Makefile ] || exit 0; \
23705 $(MAKE) stageprofile-start; \
23706 fi; \
23707 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23708 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23709@endif libiberty-linker-plugin-bootstrap
23710
23711
23712.PHONY: all-stagefeedback-libiberty-linker-plugin maybe-all-stagefeedback-libiberty-linker-plugin
23713.PHONY: clean-stagefeedback-libiberty-linker-plugin maybe-clean-stagefeedback-libiberty-linker-plugin
23714maybe-all-stagefeedback-libiberty-linker-plugin:
23715maybe-clean-stagefeedback-libiberty-linker-plugin:
23716@if libiberty-linker-plugin-bootstrap
23717maybe-all-stagefeedback-libiberty-linker-plugin: all-stagefeedback-libiberty-linker-plugin
23718all-stagefeedback: all-stagefeedback-libiberty-linker-plugin
23719TARGET-stagefeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23720all-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23721 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23722 @r=`${PWD_COMMAND}`; export r; \
23723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23724 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23725 $(HOST_EXPORTS) \
23726 $(POSTSTAGE1_HOST_EXPORTS) \
23727 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23728 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23729 CFLAGS="$(STAGEfeedback_CFLAGS)" \
23730 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
23731 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23732 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23733 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23734 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23735 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23736 TFLAGS="$(STAGEfeedback_TFLAGS)" \
23737 $(TARGET-stagefeedback-libiberty-linker-plugin)
23738
23739maybe-clean-stagefeedback-libiberty-linker-plugin: clean-stagefeedback-libiberty-linker-plugin
23740clean-stagefeedback: clean-stagefeedback-libiberty-linker-plugin
23741clean-stagefeedback-libiberty-linker-plugin:
23742 @if [ $(current_stage) = stagefeedback ]; then \
23743 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23744 else \
23745 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty-linker-plugin/Makefile ] || exit 0; \
23746 $(MAKE) stagefeedback-start; \
23747 fi; \
23748 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23749 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23750@endif libiberty-linker-plugin-bootstrap
23751
23752
23753
23754
23755
23756.PHONY: check-libiberty-linker-plugin maybe-check-libiberty-linker-plugin
23757maybe-check-libiberty-linker-plugin:
23758@if libiberty-linker-plugin
23759maybe-check-libiberty-linker-plugin: check-libiberty-linker-plugin
23760
23761check-libiberty-linker-plugin:
23762 @: $(MAKE); $(unstage)
23763 @r=`${PWD_COMMAND}`; export r; \
23764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23765 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
1b6c0831 23766 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
f91ca6bc 23767 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
1b6c0831
L
23768
23769@endif libiberty-linker-plugin
23770
23771.PHONY: install-libiberty-linker-plugin maybe-install-libiberty-linker-plugin
23772maybe-install-libiberty-linker-plugin:
23773@if libiberty-linker-plugin
23774maybe-install-libiberty-linker-plugin: install-libiberty-linker-plugin
23775
23776install-libiberty-linker-plugin: installdirs
23777 @: $(MAKE); $(unstage)
23778 @r=`${PWD_COMMAND}`; export r; \
23779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23780 $(HOST_EXPORTS) \
23781 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23782 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
23783
23784@endif libiberty-linker-plugin
23785
23786.PHONY: install-strip-libiberty-linker-plugin maybe-install-strip-libiberty-linker-plugin
23787maybe-install-strip-libiberty-linker-plugin:
23788@if libiberty-linker-plugin
23789maybe-install-strip-libiberty-linker-plugin: install-strip-libiberty-linker-plugin
23790
23791install-strip-libiberty-linker-plugin: installdirs
23792 @: $(MAKE); $(unstage)
23793 @r=`${PWD_COMMAND}`; export r; \
23794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23795 $(HOST_EXPORTS) \
23796 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23797 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
23798
23799@endif libiberty-linker-plugin
23800
23801# Other targets (info, dvi, pdf, etc.)
23802
23803.PHONY: maybe-info-libiberty-linker-plugin info-libiberty-linker-plugin
23804maybe-info-libiberty-linker-plugin:
23805@if libiberty-linker-plugin
23806maybe-info-libiberty-linker-plugin: info-libiberty-linker-plugin
23807
23808info-libiberty-linker-plugin: \
23809 configure-libiberty-linker-plugin
23810 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23811 r=`${PWD_COMMAND}`; export r; \
23812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23813 $(HOST_EXPORTS) \
23814 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23816 done; \
23817 echo "Doing info in libiberty-linker-plugin" ; \
23818 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23821 "RANLIB=$${RANLIB}" \
23822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23823 info) \
23824 || exit 1
23825
23826@endif libiberty-linker-plugin
23827
23828.PHONY: maybe-dvi-libiberty-linker-plugin dvi-libiberty-linker-plugin
23829maybe-dvi-libiberty-linker-plugin:
23830@if libiberty-linker-plugin
23831maybe-dvi-libiberty-linker-plugin: dvi-libiberty-linker-plugin
23832
23833dvi-libiberty-linker-plugin: \
23834 configure-libiberty-linker-plugin
23835 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23836 r=`${PWD_COMMAND}`; export r; \
23837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23838 $(HOST_EXPORTS) \
23839 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23841 done; \
23842 echo "Doing dvi in libiberty-linker-plugin" ; \
23843 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23846 "RANLIB=$${RANLIB}" \
23847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23848 dvi) \
23849 || exit 1
23850
23851@endif libiberty-linker-plugin
23852
23853.PHONY: maybe-pdf-libiberty-linker-plugin pdf-libiberty-linker-plugin
23854maybe-pdf-libiberty-linker-plugin:
23855@if libiberty-linker-plugin
23856maybe-pdf-libiberty-linker-plugin: pdf-libiberty-linker-plugin
23857
23858pdf-libiberty-linker-plugin: \
23859 configure-libiberty-linker-plugin
23860 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23861 r=`${PWD_COMMAND}`; export r; \
23862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23863 $(HOST_EXPORTS) \
23864 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23866 done; \
23867 echo "Doing pdf in libiberty-linker-plugin" ; \
23868 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23871 "RANLIB=$${RANLIB}" \
23872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23873 pdf) \
23874 || exit 1
23875
23876@endif libiberty-linker-plugin
23877
23878.PHONY: maybe-html-libiberty-linker-plugin html-libiberty-linker-plugin
23879maybe-html-libiberty-linker-plugin:
23880@if libiberty-linker-plugin
23881maybe-html-libiberty-linker-plugin: html-libiberty-linker-plugin
23882
23883html-libiberty-linker-plugin: \
23884 configure-libiberty-linker-plugin
23885 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23886 r=`${PWD_COMMAND}`; export r; \
23887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23888 $(HOST_EXPORTS) \
23889 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23891 done; \
23892 echo "Doing html in libiberty-linker-plugin" ; \
23893 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23896 "RANLIB=$${RANLIB}" \
23897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23898 html) \
23899 || exit 1
23900
23901@endif libiberty-linker-plugin
23902
23903.PHONY: maybe-TAGS-libiberty-linker-plugin TAGS-libiberty-linker-plugin
23904maybe-TAGS-libiberty-linker-plugin:
23905@if libiberty-linker-plugin
23906maybe-TAGS-libiberty-linker-plugin: TAGS-libiberty-linker-plugin
23907
23908TAGS-libiberty-linker-plugin: \
23909 configure-libiberty-linker-plugin
23910 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23911 r=`${PWD_COMMAND}`; export r; \
23912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23913 $(HOST_EXPORTS) \
23914 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23916 done; \
23917 echo "Doing TAGS in libiberty-linker-plugin" ; \
23918 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23921 "RANLIB=$${RANLIB}" \
23922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23923 TAGS) \
23924 || exit 1
23925
23926@endif libiberty-linker-plugin
23927
23928.PHONY: maybe-install-info-libiberty-linker-plugin install-info-libiberty-linker-plugin
23929maybe-install-info-libiberty-linker-plugin:
23930@if libiberty-linker-plugin
23931maybe-install-info-libiberty-linker-plugin: install-info-libiberty-linker-plugin
23932
23933install-info-libiberty-linker-plugin: \
23934 configure-libiberty-linker-plugin \
23935 info-libiberty-linker-plugin
23936 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23937 r=`${PWD_COMMAND}`; export r; \
23938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23939 $(HOST_EXPORTS) \
23940 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23942 done; \
23943 echo "Doing install-info in libiberty-linker-plugin" ; \
23944 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23947 "RANLIB=$${RANLIB}" \
23948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23949 install-info) \
23950 || exit 1
23951
23952@endif libiberty-linker-plugin
23953
23954.PHONY: maybe-install-pdf-libiberty-linker-plugin install-pdf-libiberty-linker-plugin
23955maybe-install-pdf-libiberty-linker-plugin:
23956@if libiberty-linker-plugin
23957maybe-install-pdf-libiberty-linker-plugin: install-pdf-libiberty-linker-plugin
23958
23959install-pdf-libiberty-linker-plugin: \
23960 configure-libiberty-linker-plugin \
23961 pdf-libiberty-linker-plugin
23962 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23963 r=`${PWD_COMMAND}`; export r; \
23964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23965 $(HOST_EXPORTS) \
23966 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23968 done; \
23969 echo "Doing install-pdf in libiberty-linker-plugin" ; \
23970 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23973 "RANLIB=$${RANLIB}" \
23974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23975 install-pdf) \
23976 || exit 1
23977
23978@endif libiberty-linker-plugin
23979
23980.PHONY: maybe-install-html-libiberty-linker-plugin install-html-libiberty-linker-plugin
23981maybe-install-html-libiberty-linker-plugin:
23982@if libiberty-linker-plugin
23983maybe-install-html-libiberty-linker-plugin: install-html-libiberty-linker-plugin
23984
23985install-html-libiberty-linker-plugin: \
23986 configure-libiberty-linker-plugin \
23987 html-libiberty-linker-plugin
23988 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23989 r=`${PWD_COMMAND}`; export r; \
23990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23991 $(HOST_EXPORTS) \
23992 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23994 done; \
23995 echo "Doing install-html in libiberty-linker-plugin" ; \
23996 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23999 "RANLIB=$${RANLIB}" \
24000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24001 install-html) \
24002 || exit 1
24003
24004@endif libiberty-linker-plugin
24005
24006.PHONY: maybe-installcheck-libiberty-linker-plugin installcheck-libiberty-linker-plugin
24007maybe-installcheck-libiberty-linker-plugin:
24008@if libiberty-linker-plugin
24009maybe-installcheck-libiberty-linker-plugin: installcheck-libiberty-linker-plugin
24010
24011installcheck-libiberty-linker-plugin: \
24012 configure-libiberty-linker-plugin
24013 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24014 r=`${PWD_COMMAND}`; export r; \
24015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24016 $(HOST_EXPORTS) \
24017 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24019 done; \
24020 echo "Doing installcheck in libiberty-linker-plugin" ; \
24021 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24024 "RANLIB=$${RANLIB}" \
24025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24026 installcheck) \
24027 || exit 1
24028
24029@endif libiberty-linker-plugin
24030
24031.PHONY: maybe-mostlyclean-libiberty-linker-plugin mostlyclean-libiberty-linker-plugin
24032maybe-mostlyclean-libiberty-linker-plugin:
24033@if libiberty-linker-plugin
24034maybe-mostlyclean-libiberty-linker-plugin: mostlyclean-libiberty-linker-plugin
24035
24036mostlyclean-libiberty-linker-plugin:
24037 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24038 r=`${PWD_COMMAND}`; export r; \
24039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24040 $(HOST_EXPORTS) \
24041 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24043 done; \
24044 echo "Doing mostlyclean in libiberty-linker-plugin" ; \
24045 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24048 "RANLIB=$${RANLIB}" \
24049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24050 mostlyclean) \
24051 || exit 1
24052
24053@endif libiberty-linker-plugin
24054
24055.PHONY: maybe-clean-libiberty-linker-plugin clean-libiberty-linker-plugin
24056maybe-clean-libiberty-linker-plugin:
24057@if libiberty-linker-plugin
24058maybe-clean-libiberty-linker-plugin: clean-libiberty-linker-plugin
24059
24060clean-libiberty-linker-plugin:
24061 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24062 r=`${PWD_COMMAND}`; export r; \
24063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24064 $(HOST_EXPORTS) \
24065 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24067 done; \
24068 echo "Doing clean in libiberty-linker-plugin" ; \
24069 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24072 "RANLIB=$${RANLIB}" \
24073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24074 clean) \
24075 || exit 1
24076
24077@endif libiberty-linker-plugin
24078
24079.PHONY: maybe-distclean-libiberty-linker-plugin distclean-libiberty-linker-plugin
24080maybe-distclean-libiberty-linker-plugin:
24081@if libiberty-linker-plugin
24082maybe-distclean-libiberty-linker-plugin: distclean-libiberty-linker-plugin
24083
24084distclean-libiberty-linker-plugin:
24085 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24086 r=`${PWD_COMMAND}`; export r; \
24087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24088 $(HOST_EXPORTS) \
24089 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24091 done; \
24092 echo "Doing distclean in libiberty-linker-plugin" ; \
24093 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24096 "RANLIB=$${RANLIB}" \
24097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24098 distclean) \
24099 || exit 1
24100
24101@endif libiberty-linker-plugin
24102
24103.PHONY: maybe-maintainer-clean-libiberty-linker-plugin maintainer-clean-libiberty-linker-plugin
24104maybe-maintainer-clean-libiberty-linker-plugin:
24105@if libiberty-linker-plugin
24106maybe-maintainer-clean-libiberty-linker-plugin: maintainer-clean-libiberty-linker-plugin
24107
24108maintainer-clean-libiberty-linker-plugin:
24109 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24110 r=`${PWD_COMMAND}`; export r; \
24111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24112 $(HOST_EXPORTS) \
24113 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24115 done; \
24116 echo "Doing maintainer-clean in libiberty-linker-plugin" ; \
24117 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24120 "RANLIB=$${RANLIB}" \
24121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24122 maintainer-clean) \
24123 || exit 1
24124
24125@endif libiberty-linker-plugin
24126
24127
24128
a90ef4bf
JM
24129.PHONY: configure-libiconv maybe-configure-libiconv
24130maybe-configure-libiconv:
4f0ef2d8 24131@if gcc-bootstrap
a90ef4bf 24132configure-libiconv: stage_current
4f0ef2d8 24133@endif gcc-bootstrap
a90ef4bf
JM
24134@if libiconv
24135maybe-configure-libiconv: configure-libiconv
24136configure-libiconv:
0aed8855 24137 @: $(MAKE); $(unstage)
c52c6897 24138 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
24140 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24141 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv ; \
1f53ca9a 24142 $(HOST_EXPORTS) \
a90ef4bf
JM
24143 echo Configuring in $(HOST_SUBDIR)/libiconv; \
24144 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
4fa63067 24145 case $(srcdir) in \
b00612cc 24146 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24147 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
b00612cc 24148 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24149 esac; \
1b6c0831
L
24150 module_srcdir=libiconv; \
24151 $(SHELL) \
24152 $$s/$$module_srcdir/configure \
24153 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24154 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24155 --target=${target_alias} --disable-shared \
2a4cbe27 24156 || exit 1
a90ef4bf 24157@endif libiconv
2a4cbe27 24158
a7254363
PB
24159
24160
d545f33b
PB
24161
24162
a90ef4bf
JM
24163.PHONY: all-libiconv maybe-all-libiconv
24164maybe-all-libiconv:
4f0ef2d8 24165@if gcc-bootstrap
a90ef4bf 24166all-libiconv: stage_current
4f0ef2d8 24167@endif gcc-bootstrap
a90ef4bf
JM
24168@if libiconv
24169TARGET-libiconv=all
24170maybe-all-libiconv: all-libiconv
24171all-libiconv: configure-libiconv
0aed8855 24172 @: $(MAKE); $(unstage)
4fa63067
NN
24173 @r=`${PWD_COMMAND}`; export r; \
24174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24175 $(HOST_EXPORTS) \
a90ef4bf 24176 (cd $(HOST_SUBDIR)/libiconv && \
b3676d82 24177 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24178 $(TARGET-libiconv))
24179@endif libiconv
2a4cbe27 24180
a7254363 24181
d545f33b
PB
24182
24183
a90ef4bf
JM
24184.PHONY: check-libiconv maybe-check-libiconv
24185maybe-check-libiconv:
24186@if libiconv
24187maybe-check-libiconv: check-libiconv
2a4cbe27 24188
a90ef4bf 24189check-libiconv:
0aed8855 24190 @: $(MAKE); $(unstage)
4fa63067 24191 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 24193 $(HOST_EXPORTS) \
a90ef4bf 24194 (cd $(HOST_SUBDIR)/libiconv && \
b00612cc 24195 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 24196
a90ef4bf 24197@endif libiconv
4fa63067 24198
a90ef4bf
JM
24199.PHONY: install-libiconv maybe-install-libiconv
24200maybe-install-libiconv:
24201@if libiconv
24202maybe-install-libiconv: install-libiconv
2a4cbe27 24203
a90ef4bf 24204install-libiconv:
2a4cbe27 24205
a90ef4bf 24206@endif libiconv
9b980aa1 24207
a90ef4bf
JM
24208.PHONY: install-strip-libiconv maybe-install-strip-libiconv
24209maybe-install-strip-libiconv:
24210@if libiconv
24211maybe-install-strip-libiconv: install-strip-libiconv
9b980aa1 24212
a90ef4bf
JM
24213install-strip-libiconv:
24214
24215@endif libiconv
9b980aa1 24216
56a8fe78 24217# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24218
a90ef4bf
JM
24219.PHONY: maybe-info-libiconv info-libiconv
24220maybe-info-libiconv:
24221@if libiconv
24222maybe-info-libiconv: info-libiconv
4fa63067 24223
a90ef4bf
JM
24224info-libiconv: \
24225 configure-libiconv
0aed8855 24226 @: $(MAKE); $(unstage)
a90ef4bf 24227 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24228 r=`${PWD_COMMAND}`; export r; \
24229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24230 $(HOST_EXPORTS) \
b813574b 24231 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24233 done; \
a90ef4bf
JM
24234 echo "Doing info in libiconv" ; \
24235 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24238 "RANLIB=$${RANLIB}" \
0c24b341 24239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24240 info) \
2a4cbe27
NN
24241 || exit 1
24242
a90ef4bf 24243@endif libiconv
2a4cbe27 24244
a90ef4bf
JM
24245.PHONY: maybe-dvi-libiconv dvi-libiconv
24246maybe-dvi-libiconv:
24247@if libiconv
24248maybe-dvi-libiconv: dvi-libiconv
2a4cbe27 24249
a90ef4bf
JM
24250dvi-libiconv: \
24251 configure-libiconv
0aed8855 24252 @: $(MAKE); $(unstage)
a90ef4bf 24253 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24254 r=`${PWD_COMMAND}`; export r; \
24255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24256 $(HOST_EXPORTS) \
b813574b 24257 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24259 done; \
a90ef4bf
JM
24260 echo "Doing dvi in libiconv" ; \
24261 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24264 "RANLIB=$${RANLIB}" \
0c24b341 24265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24266 dvi) \
2a4cbe27
NN
24267 || exit 1
24268
a90ef4bf 24269@endif libiconv
2a4cbe27 24270
a90ef4bf
JM
24271.PHONY: maybe-pdf-libiconv pdf-libiconv
24272maybe-pdf-libiconv:
24273@if libiconv
24274maybe-pdf-libiconv: pdf-libiconv
56a8fe78 24275
a90ef4bf
JM
24276pdf-libiconv: \
24277 configure-libiconv
56a8fe78 24278 @: $(MAKE); $(unstage)
a90ef4bf 24279 @[ -f ./libiconv/Makefile ] || exit 0; \
56a8fe78
DD
24280 r=`${PWD_COMMAND}`; export r; \
24281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24282 $(HOST_EXPORTS) \
24283 for flag in $(EXTRA_HOST_FLAGS) ; do \
24284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24285 done; \
a90ef4bf
JM
24286 echo "Doing pdf in libiconv" ; \
24287 (cd $(HOST_SUBDIR)/libiconv && \
56a8fe78
DD
24288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24290 "RANLIB=$${RANLIB}" \
0c24b341 24291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
24292 pdf) \
24293 || exit 1
24294
a90ef4bf 24295@endif libiconv
56a8fe78 24296
a90ef4bf
JM
24297.PHONY: maybe-html-libiconv html-libiconv
24298maybe-html-libiconv:
24299@if libiconv
24300maybe-html-libiconv: html-libiconv
6d389afc 24301
a90ef4bf
JM
24302html-libiconv: \
24303 configure-libiconv
0aed8855 24304 @: $(MAKE); $(unstage)
a90ef4bf 24305 @[ -f ./libiconv/Makefile ] || exit 0; \
6d389afc
MS
24306 r=`${PWD_COMMAND}`; export r; \
24307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
24308 $(HOST_EXPORTS) \
24309 for flag in $(EXTRA_HOST_FLAGS) ; do \
24310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24311 done; \
a90ef4bf
JM
24312 echo "Doing html in libiconv" ; \
24313 (cd $(HOST_SUBDIR)/libiconv && \
6d389afc
MS
24314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24316 "RANLIB=$${RANLIB}" \
0c24b341 24317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
24318 html) \
24319 || exit 1
24320
a90ef4bf 24321@endif libiconv
6d389afc 24322
a90ef4bf
JM
24323.PHONY: maybe-TAGS-libiconv TAGS-libiconv
24324maybe-TAGS-libiconv:
24325@if libiconv
24326maybe-TAGS-libiconv: TAGS-libiconv
2a4cbe27 24327
a90ef4bf
JM
24328TAGS-libiconv: \
24329 configure-libiconv
0aed8855 24330 @: $(MAKE); $(unstage)
a90ef4bf 24331 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24332 r=`${PWD_COMMAND}`; export r; \
24333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24334 $(HOST_EXPORTS) \
b813574b 24335 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24337 done; \
a90ef4bf
JM
24338 echo "Doing TAGS in libiconv" ; \
24339 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24342 "RANLIB=$${RANLIB}" \
0c24b341 24343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24344 TAGS) \
2a4cbe27
NN
24345 || exit 1
24346
a90ef4bf 24347@endif libiconv
2a4cbe27 24348
a90ef4bf
JM
24349.PHONY: maybe-install-info-libiconv install-info-libiconv
24350maybe-install-info-libiconv:
24351@if libiconv
24352maybe-install-info-libiconv: install-info-libiconv
2a4cbe27 24353
a90ef4bf
JM
24354# libiconv doesn't support install-info.
24355install-info-libiconv:
2a4cbe27 24356
a90ef4bf 24357@endif libiconv
2a4cbe27 24358
a90ef4bf
JM
24359.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
24360maybe-install-pdf-libiconv:
24361@if libiconv
24362maybe-install-pdf-libiconv: install-pdf-libiconv
a3ca38d2 24363
a90ef4bf
JM
24364# libiconv doesn't support install-pdf.
24365install-pdf-libiconv:
a3ca38d2 24366
a90ef4bf 24367@endif libiconv
a3ca38d2 24368
a90ef4bf
JM
24369.PHONY: maybe-install-html-libiconv install-html-libiconv
24370maybe-install-html-libiconv:
24371@if libiconv
24372maybe-install-html-libiconv: install-html-libiconv
108a6f8e 24373
a90ef4bf
JM
24374# libiconv doesn't support install-html.
24375install-html-libiconv:
108a6f8e 24376
a90ef4bf 24377@endif libiconv
108a6f8e 24378
a90ef4bf
JM
24379.PHONY: maybe-installcheck-libiconv installcheck-libiconv
24380maybe-installcheck-libiconv:
24381@if libiconv
24382maybe-installcheck-libiconv: installcheck-libiconv
2a4cbe27 24383
a90ef4bf
JM
24384installcheck-libiconv: \
24385 configure-libiconv
0aed8855 24386 @: $(MAKE); $(unstage)
a90ef4bf 24387 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24388 r=`${PWD_COMMAND}`; export r; \
24389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24390 $(HOST_EXPORTS) \
b813574b 24391 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24393 done; \
a90ef4bf
JM
24394 echo "Doing installcheck in libiconv" ; \
24395 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24398 "RANLIB=$${RANLIB}" \
0c24b341 24399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24400 installcheck) \
2a4cbe27
NN
24401 || exit 1
24402
a90ef4bf 24403@endif libiconv
2a4cbe27 24404
a90ef4bf
JM
24405.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
24406maybe-mostlyclean-libiconv:
24407@if libiconv
24408maybe-mostlyclean-libiconv: mostlyclean-libiconv
2a4cbe27 24409
a90ef4bf 24410mostlyclean-libiconv:
0aed8855 24411 @: $(MAKE); $(unstage)
a90ef4bf 24412 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24413 r=`${PWD_COMMAND}`; export r; \
24414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24415 $(HOST_EXPORTS) \
b813574b 24416 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24418 done; \
a90ef4bf
JM
24419 echo "Doing mostlyclean in libiconv" ; \
24420 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24423 "RANLIB=$${RANLIB}" \
0c24b341 24424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24425 mostlyclean) \
2a4cbe27
NN
24426 || exit 1
24427
a90ef4bf 24428@endif libiconv
2a4cbe27 24429
a90ef4bf
JM
24430.PHONY: maybe-clean-libiconv clean-libiconv
24431maybe-clean-libiconv:
24432@if libiconv
24433maybe-clean-libiconv: clean-libiconv
2a4cbe27 24434
a90ef4bf 24435clean-libiconv:
0aed8855 24436 @: $(MAKE); $(unstage)
a90ef4bf 24437 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24438 r=`${PWD_COMMAND}`; export r; \
24439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24440 $(HOST_EXPORTS) \
b813574b 24441 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24443 done; \
a90ef4bf
JM
24444 echo "Doing clean in libiconv" ; \
24445 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24448 "RANLIB=$${RANLIB}" \
0c24b341 24449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24450 clean) \
2a4cbe27
NN
24451 || exit 1
24452
a90ef4bf 24453@endif libiconv
2a4cbe27 24454
a90ef4bf
JM
24455.PHONY: maybe-distclean-libiconv distclean-libiconv
24456maybe-distclean-libiconv:
24457@if libiconv
24458maybe-distclean-libiconv: distclean-libiconv
2a4cbe27 24459
a90ef4bf 24460distclean-libiconv:
0aed8855 24461 @: $(MAKE); $(unstage)
a90ef4bf 24462 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24463 r=`${PWD_COMMAND}`; export r; \
24464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24465 $(HOST_EXPORTS) \
b813574b 24466 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24468 done; \
a90ef4bf
JM
24469 echo "Doing distclean in libiconv" ; \
24470 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24473 "RANLIB=$${RANLIB}" \
0c24b341 24474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24475 distclean) \
2a4cbe27
NN
24476 || exit 1
24477
a90ef4bf 24478@endif libiconv
2a4cbe27 24479
a90ef4bf
JM
24480.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
24481maybe-maintainer-clean-libiconv:
24482@if libiconv
24483maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
2a4cbe27 24484
a90ef4bf 24485maintainer-clean-libiconv:
0aed8855 24486 @: $(MAKE); $(unstage)
a90ef4bf 24487 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24488 r=`${PWD_COMMAND}`; export r; \
24489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24490 $(HOST_EXPORTS) \
b813574b 24491 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24493 done; \
a90ef4bf
JM
24494 echo "Doing maintainer-clean in libiconv" ; \
24495 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24498 "RANLIB=$${RANLIB}" \
0c24b341 24499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24500 maintainer-clean) \
2a4cbe27
NN
24501 || exit 1
24502
a90ef4bf 24503@endif libiconv
2a4cbe27 24504
2a4cbe27 24505
a7254363 24506
a90ef4bf
JM
24507.PHONY: configure-m4 maybe-configure-m4
24508maybe-configure-m4:
4f0ef2d8 24509@if gcc-bootstrap
a90ef4bf 24510configure-m4: stage_current
4f0ef2d8 24511@endif gcc-bootstrap
a90ef4bf
JM
24512@if m4
24513maybe-configure-m4: configure-m4
24514configure-m4:
0aed8855 24515 @: $(MAKE); $(unstage)
c52c6897 24516 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
24518 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
24519 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4 ; \
1f53ca9a 24520 $(HOST_EXPORTS) \
a90ef4bf
JM
24521 echo Configuring in $(HOST_SUBDIR)/m4; \
24522 cd "$(HOST_SUBDIR)/m4" || exit 1; \
4fa63067 24523 case $(srcdir) in \
b00612cc 24524 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24525 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
b00612cc 24526 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24527 esac; \
1b6c0831
L
24528 module_srcdir=m4; \
24529 $(SHELL) \
24530 $$s/$$module_srcdir/configure \
24531 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24532 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24533 --target=${target_alias} \
2a4cbe27 24534 || exit 1
a90ef4bf 24535@endif m4
2a4cbe27 24536
a7254363
PB
24537
24538
d545f33b
PB
24539
24540
a90ef4bf
JM
24541.PHONY: all-m4 maybe-all-m4
24542maybe-all-m4:
4f0ef2d8 24543@if gcc-bootstrap
a90ef4bf 24544all-m4: stage_current
4f0ef2d8 24545@endif gcc-bootstrap
a90ef4bf
JM
24546@if m4
24547TARGET-m4=all
24548maybe-all-m4: all-m4
24549all-m4: configure-m4
0aed8855 24550 @: $(MAKE); $(unstage)
4fa63067
NN
24551 @r=`${PWD_COMMAND}`; export r; \
24552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24553 $(HOST_EXPORTS) \
a90ef4bf 24554 (cd $(HOST_SUBDIR)/m4 && \
b3676d82 24555 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24556 $(TARGET-m4))
24557@endif m4
2a4cbe27 24558
a7254363 24559
d545f33b
PB
24560
24561
a90ef4bf
JM
24562.PHONY: check-m4 maybe-check-m4
24563maybe-check-m4:
24564@if m4
24565maybe-check-m4: check-m4
2a4cbe27 24566
a90ef4bf 24567check-m4:
0aed8855 24568 @: $(MAKE); $(unstage)
4fa63067 24569 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 24571 $(HOST_EXPORTS) \
a90ef4bf 24572 (cd $(HOST_SUBDIR)/m4 && \
b00612cc 24573 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 24574
a90ef4bf 24575@endif m4
2a4cbe27 24576
a90ef4bf
JM
24577.PHONY: install-m4 maybe-install-m4
24578maybe-install-m4:
24579@if m4
24580maybe-install-m4: install-m4
2a4cbe27 24581
a90ef4bf 24582install-m4: installdirs
0aed8855 24583 @: $(MAKE); $(unstage)
4fa63067 24584 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24586 $(HOST_EXPORTS) \
a90ef4bf 24587 (cd $(HOST_SUBDIR)/m4 && \
2da12f12 24588 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 24589
a90ef4bf 24590@endif m4
2a4cbe27 24591
a90ef4bf
JM
24592.PHONY: install-strip-m4 maybe-install-strip-m4
24593maybe-install-strip-m4:
24594@if m4
24595maybe-install-strip-m4: install-strip-m4
9b980aa1 24596
a90ef4bf 24597install-strip-m4: installdirs
9b980aa1
RW
24598 @: $(MAKE); $(unstage)
24599 @r=`${PWD_COMMAND}`; export r; \
24600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24601 $(HOST_EXPORTS) \
a90ef4bf 24602 (cd $(HOST_SUBDIR)/m4 && \
9b980aa1
RW
24603 $(MAKE) $(FLAGS_TO_PASS) install-strip)
24604
a90ef4bf 24605@endif m4
9b980aa1 24606
56a8fe78 24607# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24608
a90ef4bf
JM
24609.PHONY: maybe-info-m4 info-m4
24610maybe-info-m4:
24611@if m4
24612maybe-info-m4: info-m4
4fa63067 24613
a90ef4bf
JM
24614info-m4: \
24615 configure-m4
0aed8855 24616 @: $(MAKE); $(unstage)
a90ef4bf 24617 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24618 r=`${PWD_COMMAND}`; export r; \
24619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24620 $(HOST_EXPORTS) \
b813574b 24621 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24623 done; \
a90ef4bf
JM
24624 echo "Doing info in m4" ; \
24625 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24628 "RANLIB=$${RANLIB}" \
0c24b341 24629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24630 info) \
2a4cbe27
NN
24631 || exit 1
24632
a90ef4bf 24633@endif m4
2a4cbe27 24634
a90ef4bf
JM
24635.PHONY: maybe-dvi-m4 dvi-m4
24636maybe-dvi-m4:
24637@if m4
24638maybe-dvi-m4: dvi-m4
2a4cbe27 24639
a90ef4bf
JM
24640dvi-m4: \
24641 configure-m4
0aed8855 24642 @: $(MAKE); $(unstage)
a90ef4bf 24643 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24644 r=`${PWD_COMMAND}`; export r; \
24645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24646 $(HOST_EXPORTS) \
b813574b 24647 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24649 done; \
a90ef4bf
JM
24650 echo "Doing dvi in m4" ; \
24651 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24654 "RANLIB=$${RANLIB}" \
0c24b341 24655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24656 dvi) \
2a4cbe27
NN
24657 || exit 1
24658
a90ef4bf 24659@endif m4
2a4cbe27 24660
a90ef4bf
JM
24661.PHONY: maybe-pdf-m4 pdf-m4
24662maybe-pdf-m4:
24663@if m4
24664maybe-pdf-m4: pdf-m4
56a8fe78 24665
a90ef4bf
JM
24666pdf-m4: \
24667 configure-m4
56a8fe78 24668 @: $(MAKE); $(unstage)
a90ef4bf 24669 @[ -f ./m4/Makefile ] || exit 0; \
56a8fe78
DD
24670 r=`${PWD_COMMAND}`; export r; \
24671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24672 $(HOST_EXPORTS) \
24673 for flag in $(EXTRA_HOST_FLAGS) ; do \
24674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24675 done; \
a90ef4bf
JM
24676 echo "Doing pdf in m4" ; \
24677 (cd $(HOST_SUBDIR)/m4 && \
56a8fe78
DD
24678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24680 "RANLIB=$${RANLIB}" \
0c24b341 24681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
24682 pdf) \
24683 || exit 1
24684
a90ef4bf 24685@endif m4
56a8fe78 24686
a90ef4bf
JM
24687.PHONY: maybe-html-m4 html-m4
24688maybe-html-m4:
24689@if m4
24690maybe-html-m4: html-m4
6d389afc 24691
a90ef4bf
JM
24692html-m4: \
24693 configure-m4
0aed8855 24694 @: $(MAKE); $(unstage)
a90ef4bf 24695 @[ -f ./m4/Makefile ] || exit 0; \
6d389afc
MS
24696 r=`${PWD_COMMAND}`; export r; \
24697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
24698 $(HOST_EXPORTS) \
24699 for flag in $(EXTRA_HOST_FLAGS) ; do \
24700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24701 done; \
a90ef4bf
JM
24702 echo "Doing html in m4" ; \
24703 (cd $(HOST_SUBDIR)/m4 && \
6d389afc
MS
24704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24706 "RANLIB=$${RANLIB}" \
0c24b341 24707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
24708 html) \
24709 || exit 1
24710
a90ef4bf 24711@endif m4
6d389afc 24712
a90ef4bf
JM
24713.PHONY: maybe-TAGS-m4 TAGS-m4
24714maybe-TAGS-m4:
24715@if m4
24716maybe-TAGS-m4: TAGS-m4
2a4cbe27 24717
a90ef4bf
JM
24718TAGS-m4: \
24719 configure-m4
0aed8855 24720 @: $(MAKE); $(unstage)
a90ef4bf 24721 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24722 r=`${PWD_COMMAND}`; export r; \
24723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24724 $(HOST_EXPORTS) \
b813574b 24725 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24727 done; \
a90ef4bf
JM
24728 echo "Doing TAGS in m4" ; \
24729 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24732 "RANLIB=$${RANLIB}" \
0c24b341 24733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24734 TAGS) \
2a4cbe27
NN
24735 || exit 1
24736
a90ef4bf 24737@endif m4
2a4cbe27 24738
a90ef4bf
JM
24739.PHONY: maybe-install-info-m4 install-info-m4
24740maybe-install-info-m4:
24741@if m4
24742maybe-install-info-m4: install-info-m4
2a4cbe27 24743
a90ef4bf
JM
24744install-info-m4: \
24745 configure-m4 \
24746 info-m4
0aed8855 24747 @: $(MAKE); $(unstage)
a90ef4bf 24748 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24749 r=`${PWD_COMMAND}`; export r; \
24750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24751 $(HOST_EXPORTS) \
b813574b 24752 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24754 done; \
a90ef4bf
JM
24755 echo "Doing install-info in m4" ; \
24756 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24759 "RANLIB=$${RANLIB}" \
0c24b341 24760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24761 install-info) \
2a4cbe27
NN
24762 || exit 1
24763
a90ef4bf 24764@endif m4
2a4cbe27 24765
a90ef4bf
JM
24766.PHONY: maybe-install-pdf-m4 install-pdf-m4
24767maybe-install-pdf-m4:
24768@if m4
24769maybe-install-pdf-m4: install-pdf-m4
a3ca38d2 24770
a90ef4bf
JM
24771install-pdf-m4: \
24772 configure-m4 \
24773 pdf-m4
a3ca38d2 24774 @: $(MAKE); $(unstage)
a90ef4bf 24775 @[ -f ./m4/Makefile ] || exit 0; \
a3ca38d2
DD
24776 r=`${PWD_COMMAND}`; export r; \
24777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24778 $(HOST_EXPORTS) \
24779 for flag in $(EXTRA_HOST_FLAGS) ; do \
24780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24781 done; \
a90ef4bf
JM
24782 echo "Doing install-pdf in m4" ; \
24783 (cd $(HOST_SUBDIR)/m4 && \
a3ca38d2
DD
24784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24786 "RANLIB=$${RANLIB}" \
0c24b341 24787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
24788 install-pdf) \
24789 || exit 1
24790
a90ef4bf 24791@endif m4
a3ca38d2 24792
a90ef4bf
JM
24793.PHONY: maybe-install-html-m4 install-html-m4
24794maybe-install-html-m4:
24795@if m4
24796maybe-install-html-m4: install-html-m4
108a6f8e 24797
a90ef4bf
JM
24798install-html-m4: \
24799 configure-m4 \
24800 html-m4
108a6f8e 24801 @: $(MAKE); $(unstage)
a90ef4bf 24802 @[ -f ./m4/Makefile ] || exit 0; \
108a6f8e
CD
24803 r=`${PWD_COMMAND}`; export r; \
24804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24805 $(HOST_EXPORTS) \
24806 for flag in $(EXTRA_HOST_FLAGS) ; do \
24807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24808 done; \
a90ef4bf
JM
24809 echo "Doing install-html in m4" ; \
24810 (cd $(HOST_SUBDIR)/m4 && \
108a6f8e
CD
24811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24813 "RANLIB=$${RANLIB}" \
0c24b341 24814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
24815 install-html) \
24816 || exit 1
24817
a90ef4bf 24818@endif m4
108a6f8e 24819
a90ef4bf
JM
24820.PHONY: maybe-installcheck-m4 installcheck-m4
24821maybe-installcheck-m4:
24822@if m4
24823maybe-installcheck-m4: installcheck-m4
2a4cbe27 24824
a90ef4bf
JM
24825installcheck-m4: \
24826 configure-m4
0aed8855 24827 @: $(MAKE); $(unstage)
a90ef4bf 24828 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24829 r=`${PWD_COMMAND}`; export r; \
24830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24831 $(HOST_EXPORTS) \
b813574b 24832 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24834 done; \
a90ef4bf
JM
24835 echo "Doing installcheck in m4" ; \
24836 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24839 "RANLIB=$${RANLIB}" \
0c24b341 24840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24841 installcheck) \
2a4cbe27
NN
24842 || exit 1
24843
a90ef4bf 24844@endif m4
2a4cbe27 24845
a90ef4bf
JM
24846.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
24847maybe-mostlyclean-m4:
24848@if m4
24849maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 24850
a90ef4bf 24851mostlyclean-m4:
0aed8855 24852 @: $(MAKE); $(unstage)
a90ef4bf 24853 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24854 r=`${PWD_COMMAND}`; export r; \
24855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24856 $(HOST_EXPORTS) \
b813574b 24857 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24859 done; \
a90ef4bf
JM
24860 echo "Doing mostlyclean in m4" ; \
24861 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24864 "RANLIB=$${RANLIB}" \
0c24b341 24865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24866 mostlyclean) \
2a4cbe27
NN
24867 || exit 1
24868
a90ef4bf 24869@endif m4
2a4cbe27 24870
a90ef4bf
JM
24871.PHONY: maybe-clean-m4 clean-m4
24872maybe-clean-m4:
24873@if m4
24874maybe-clean-m4: clean-m4
2a4cbe27 24875
a90ef4bf 24876clean-m4:
0aed8855 24877 @: $(MAKE); $(unstage)
a90ef4bf 24878 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24879 r=`${PWD_COMMAND}`; export r; \
24880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24881 $(HOST_EXPORTS) \
b813574b 24882 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24884 done; \
a90ef4bf
JM
24885 echo "Doing clean in m4" ; \
24886 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24889 "RANLIB=$${RANLIB}" \
0c24b341 24890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24891 clean) \
2a4cbe27
NN
24892 || exit 1
24893
a90ef4bf 24894@endif m4
2a4cbe27 24895
a90ef4bf
JM
24896.PHONY: maybe-distclean-m4 distclean-m4
24897maybe-distclean-m4:
24898@if m4
24899maybe-distclean-m4: distclean-m4
2a4cbe27 24900
a90ef4bf 24901distclean-m4:
0aed8855 24902 @: $(MAKE); $(unstage)
a90ef4bf 24903 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24904 r=`${PWD_COMMAND}`; export r; \
24905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24906 $(HOST_EXPORTS) \
b813574b 24907 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24909 done; \
a90ef4bf
JM
24910 echo "Doing distclean in m4" ; \
24911 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24914 "RANLIB=$${RANLIB}" \
0c24b341 24915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24916 distclean) \
2a4cbe27
NN
24917 || exit 1
24918
a90ef4bf 24919@endif m4
2a4cbe27 24920
a90ef4bf
JM
24921.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
24922maybe-maintainer-clean-m4:
24923@if m4
24924maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 24925
a90ef4bf 24926maintainer-clean-m4:
0aed8855 24927 @: $(MAKE); $(unstage)
a90ef4bf 24928 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
24929 r=`${PWD_COMMAND}`; export r; \
24930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24931 $(HOST_EXPORTS) \
b813574b 24932 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24934 done; \
a90ef4bf
JM
24935 echo "Doing maintainer-clean in m4" ; \
24936 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
24937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24939 "RANLIB=$${RANLIB}" \
0c24b341 24940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24941 maintainer-clean) \
2a4cbe27
NN
24942 || exit 1
24943
a90ef4bf 24944@endif m4
2a4cbe27 24945
2a4cbe27 24946
a7254363 24947
a90ef4bf
JM
24948.PHONY: configure-readline maybe-configure-readline
24949maybe-configure-readline:
4f0ef2d8 24950@if gcc-bootstrap
a90ef4bf 24951configure-readline: stage_current
4f0ef2d8 24952@endif gcc-bootstrap
a90ef4bf
JM
24953@if readline
24954maybe-configure-readline: configure-readline
24955configure-readline:
0aed8855 24956 @: $(MAKE); $(unstage)
c52c6897 24957 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
24959 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
24960 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline ; \
1f53ca9a 24961 $(HOST_EXPORTS) \
a90ef4bf
JM
24962 echo Configuring in $(HOST_SUBDIR)/readline; \
24963 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4fa63067 24964 case $(srcdir) in \
b00612cc 24965 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24966 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
b00612cc 24967 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24968 esac; \
1b6c0831
L
24969 module_srcdir=readline; \
24970 $(SHELL) \
24971 $$s/$$module_srcdir/configure \
24972 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24973 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24974 --target=${target_alias} \
2a4cbe27 24975 || exit 1
a90ef4bf 24976@endif readline
2a4cbe27 24977
a7254363
PB
24978
24979
d545f33b
PB
24980
24981
a90ef4bf
JM
24982.PHONY: all-readline maybe-all-readline
24983maybe-all-readline:
4f0ef2d8 24984@if gcc-bootstrap
a90ef4bf 24985all-readline: stage_current
4f0ef2d8 24986@endif gcc-bootstrap
a90ef4bf
JM
24987@if readline
24988TARGET-readline=all
24989maybe-all-readline: all-readline
24990all-readline: configure-readline
0aed8855 24991 @: $(MAKE); $(unstage)
4fa63067
NN
24992 @r=`${PWD_COMMAND}`; export r; \
24993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24994 $(HOST_EXPORTS) \
a90ef4bf 24995 (cd $(HOST_SUBDIR)/readline && \
b3676d82 24996 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24997 $(TARGET-readline))
24998@endif readline
2a4cbe27 24999
a7254363 25000
d545f33b
PB
25001
25002
a90ef4bf
JM
25003.PHONY: check-readline maybe-check-readline
25004maybe-check-readline:
25005@if readline
25006maybe-check-readline: check-readline
2a4cbe27 25007
a90ef4bf 25008check-readline:
0aed8855 25009 @: $(MAKE); $(unstage)
4fa63067 25010 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25012 $(HOST_EXPORTS) \
a90ef4bf 25013 (cd $(HOST_SUBDIR)/readline && \
b00612cc 25014 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25015
a90ef4bf 25016@endif readline
2a4cbe27 25017
a90ef4bf
JM
25018.PHONY: install-readline maybe-install-readline
25019maybe-install-readline:
25020@if readline
25021maybe-install-readline: install-readline
2a4cbe27 25022
a90ef4bf 25023install-readline: installdirs
0aed8855 25024 @: $(MAKE); $(unstage)
4fa63067
NN
25025 @r=`${PWD_COMMAND}`; export r; \
25026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25027 $(HOST_EXPORTS) \
a90ef4bf 25028 (cd $(HOST_SUBDIR)/readline && \
2da12f12 25029 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 25030
a90ef4bf 25031@endif readline
9b980aa1 25032
a90ef4bf
JM
25033.PHONY: install-strip-readline maybe-install-strip-readline
25034maybe-install-strip-readline:
25035@if readline
25036maybe-install-strip-readline: install-strip-readline
25037
25038install-strip-readline: installdirs
9b980aa1
RW
25039 @: $(MAKE); $(unstage)
25040 @r=`${PWD_COMMAND}`; export r; \
25041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25042 $(HOST_EXPORTS) \
a90ef4bf 25043 (cd $(HOST_SUBDIR)/readline && \
9b980aa1
RW
25044 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25045
a90ef4bf 25046@endif readline
9b980aa1 25047
56a8fe78 25048# Other targets (info, dvi, pdf, etc.)
4fa63067 25049
a90ef4bf
JM
25050.PHONY: maybe-info-readline info-readline
25051maybe-info-readline:
25052@if readline
25053maybe-info-readline: info-readline
4fa63067 25054
a90ef4bf
JM
25055info-readline: \
25056 configure-readline
0aed8855 25057 @: $(MAKE); $(unstage)
a90ef4bf 25058 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25059 r=`${PWD_COMMAND}`; export r; \
25060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25061 $(HOST_EXPORTS) \
b813574b 25062 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25064 done; \
a90ef4bf
JM
25065 echo "Doing info in readline" ; \
25066 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25069 "RANLIB=$${RANLIB}" \
0c24b341 25070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25071 info) \
2a4cbe27
NN
25072 || exit 1
25073
a90ef4bf 25074@endif readline
2a4cbe27 25075
a90ef4bf
JM
25076.PHONY: maybe-dvi-readline dvi-readline
25077maybe-dvi-readline:
25078@if readline
25079maybe-dvi-readline: dvi-readline
2a4cbe27 25080
a90ef4bf
JM
25081dvi-readline: \
25082 configure-readline
0aed8855 25083 @: $(MAKE); $(unstage)
a90ef4bf 25084 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25085 r=`${PWD_COMMAND}`; export r; \
25086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25087 $(HOST_EXPORTS) \
b813574b 25088 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25090 done; \
a90ef4bf
JM
25091 echo "Doing dvi in readline" ; \
25092 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25095 "RANLIB=$${RANLIB}" \
0c24b341 25096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25097 dvi) \
2a4cbe27
NN
25098 || exit 1
25099
a90ef4bf 25100@endif readline
2a4cbe27 25101
a90ef4bf
JM
25102.PHONY: maybe-pdf-readline pdf-readline
25103maybe-pdf-readline:
25104@if readline
25105maybe-pdf-readline: pdf-readline
56a8fe78 25106
a90ef4bf
JM
25107pdf-readline: \
25108 configure-readline
56a8fe78 25109 @: $(MAKE); $(unstage)
a90ef4bf 25110 @[ -f ./readline/Makefile ] || exit 0; \
56a8fe78
DD
25111 r=`${PWD_COMMAND}`; export r; \
25112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25113 $(HOST_EXPORTS) \
25114 for flag in $(EXTRA_HOST_FLAGS) ; do \
25115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25116 done; \
a90ef4bf
JM
25117 echo "Doing pdf in readline" ; \
25118 (cd $(HOST_SUBDIR)/readline && \
56a8fe78
DD
25119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25121 "RANLIB=$${RANLIB}" \
0c24b341 25122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25123 pdf) \
25124 || exit 1
25125
a90ef4bf 25126@endif readline
56a8fe78 25127
a90ef4bf
JM
25128.PHONY: maybe-html-readline html-readline
25129maybe-html-readline:
25130@if readline
25131maybe-html-readline: html-readline
6d389afc 25132
a90ef4bf
JM
25133html-readline: \
25134 configure-readline
0aed8855 25135 @: $(MAKE); $(unstage)
a90ef4bf 25136 @[ -f ./readline/Makefile ] || exit 0; \
6d389afc
MS
25137 r=`${PWD_COMMAND}`; export r; \
25138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25139 $(HOST_EXPORTS) \
25140 for flag in $(EXTRA_HOST_FLAGS) ; do \
25141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25142 done; \
a90ef4bf
JM
25143 echo "Doing html in readline" ; \
25144 (cd $(HOST_SUBDIR)/readline && \
6d389afc
MS
25145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25147 "RANLIB=$${RANLIB}" \
0c24b341 25148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25149 html) \
25150 || exit 1
25151
a90ef4bf 25152@endif readline
6d389afc 25153
a90ef4bf
JM
25154.PHONY: maybe-TAGS-readline TAGS-readline
25155maybe-TAGS-readline:
25156@if readline
25157maybe-TAGS-readline: TAGS-readline
2a4cbe27 25158
a90ef4bf
JM
25159TAGS-readline: \
25160 configure-readline
0aed8855 25161 @: $(MAKE); $(unstage)
a90ef4bf 25162 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25163 r=`${PWD_COMMAND}`; export r; \
25164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25165 $(HOST_EXPORTS) \
b813574b 25166 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25168 done; \
a90ef4bf
JM
25169 echo "Doing TAGS in readline" ; \
25170 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25173 "RANLIB=$${RANLIB}" \
0c24b341 25174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25175 TAGS) \
2a4cbe27
NN
25176 || exit 1
25177
a90ef4bf 25178@endif readline
2a4cbe27 25179
a90ef4bf
JM
25180.PHONY: maybe-install-info-readline install-info-readline
25181maybe-install-info-readline:
25182@if readline
25183maybe-install-info-readline: install-info-readline
2a4cbe27 25184
a90ef4bf
JM
25185install-info-readline: \
25186 configure-readline \
25187 info-readline
0aed8855 25188 @: $(MAKE); $(unstage)
a90ef4bf 25189 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25190 r=`${PWD_COMMAND}`; export r; \
25191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25192 $(HOST_EXPORTS) \
b813574b 25193 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25195 done; \
a90ef4bf
JM
25196 echo "Doing install-info in readline" ; \
25197 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25200 "RANLIB=$${RANLIB}" \
0c24b341 25201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25202 install-info) \
2a4cbe27
NN
25203 || exit 1
25204
a90ef4bf 25205@endif readline
2a4cbe27 25206
a90ef4bf
JM
25207.PHONY: maybe-install-pdf-readline install-pdf-readline
25208maybe-install-pdf-readline:
25209@if readline
25210maybe-install-pdf-readline: install-pdf-readline
a3ca38d2 25211
a90ef4bf
JM
25212install-pdf-readline: \
25213 configure-readline \
25214 pdf-readline
a3ca38d2 25215 @: $(MAKE); $(unstage)
a90ef4bf 25216 @[ -f ./readline/Makefile ] || exit 0; \
a3ca38d2
DD
25217 r=`${PWD_COMMAND}`; export r; \
25218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25219 $(HOST_EXPORTS) \
25220 for flag in $(EXTRA_HOST_FLAGS) ; do \
25221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25222 done; \
a90ef4bf
JM
25223 echo "Doing install-pdf in readline" ; \
25224 (cd $(HOST_SUBDIR)/readline && \
a3ca38d2
DD
25225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25227 "RANLIB=$${RANLIB}" \
0c24b341 25228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25229 install-pdf) \
25230 || exit 1
25231
a90ef4bf 25232@endif readline
a3ca38d2 25233
a90ef4bf
JM
25234.PHONY: maybe-install-html-readline install-html-readline
25235maybe-install-html-readline:
25236@if readline
25237maybe-install-html-readline: install-html-readline
108a6f8e 25238
a90ef4bf
JM
25239install-html-readline: \
25240 configure-readline \
25241 html-readline
108a6f8e 25242 @: $(MAKE); $(unstage)
a90ef4bf 25243 @[ -f ./readline/Makefile ] || exit 0; \
108a6f8e
CD
25244 r=`${PWD_COMMAND}`; export r; \
25245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25246 $(HOST_EXPORTS) \
25247 for flag in $(EXTRA_HOST_FLAGS) ; do \
25248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25249 done; \
a90ef4bf
JM
25250 echo "Doing install-html in readline" ; \
25251 (cd $(HOST_SUBDIR)/readline && \
108a6f8e
CD
25252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25254 "RANLIB=$${RANLIB}" \
0c24b341 25255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25256 install-html) \
25257 || exit 1
25258
a90ef4bf 25259@endif readline
108a6f8e 25260
a90ef4bf
JM
25261.PHONY: maybe-installcheck-readline installcheck-readline
25262maybe-installcheck-readline:
25263@if readline
25264maybe-installcheck-readline: installcheck-readline
2a4cbe27 25265
a90ef4bf
JM
25266installcheck-readline: \
25267 configure-readline
0aed8855 25268 @: $(MAKE); $(unstage)
a90ef4bf 25269 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25270 r=`${PWD_COMMAND}`; export r; \
25271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25272 $(HOST_EXPORTS) \
b813574b 25273 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25275 done; \
a90ef4bf
JM
25276 echo "Doing installcheck in readline" ; \
25277 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25280 "RANLIB=$${RANLIB}" \
0c24b341 25281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25282 installcheck) \
2a4cbe27
NN
25283 || exit 1
25284
a90ef4bf 25285@endif readline
2a4cbe27 25286
a90ef4bf
JM
25287.PHONY: maybe-mostlyclean-readline mostlyclean-readline
25288maybe-mostlyclean-readline:
25289@if readline
25290maybe-mostlyclean-readline: mostlyclean-readline
2a4cbe27 25291
a90ef4bf 25292mostlyclean-readline:
0aed8855 25293 @: $(MAKE); $(unstage)
a90ef4bf 25294 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25295 r=`${PWD_COMMAND}`; export r; \
25296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25297 $(HOST_EXPORTS) \
b813574b 25298 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25299 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25300 done; \
a90ef4bf
JM
25301 echo "Doing mostlyclean in readline" ; \
25302 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25305 "RANLIB=$${RANLIB}" \
0c24b341 25306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25307 mostlyclean) \
2a4cbe27
NN
25308 || exit 1
25309
a90ef4bf 25310@endif readline
2a4cbe27 25311
a90ef4bf
JM
25312.PHONY: maybe-clean-readline clean-readline
25313maybe-clean-readline:
25314@if readline
25315maybe-clean-readline: clean-readline
2a4cbe27 25316
a90ef4bf 25317clean-readline:
0aed8855 25318 @: $(MAKE); $(unstage)
a90ef4bf 25319 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25320 r=`${PWD_COMMAND}`; export r; \
25321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25322 $(HOST_EXPORTS) \
b813574b 25323 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25325 done; \
a90ef4bf
JM
25326 echo "Doing clean in readline" ; \
25327 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25330 "RANLIB=$${RANLIB}" \
0c24b341 25331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25332 clean) \
2a4cbe27
NN
25333 || exit 1
25334
a90ef4bf 25335@endif readline
2a4cbe27 25336
a90ef4bf
JM
25337.PHONY: maybe-distclean-readline distclean-readline
25338maybe-distclean-readline:
25339@if readline
25340maybe-distclean-readline: distclean-readline
2a4cbe27 25341
a90ef4bf 25342distclean-readline:
0aed8855 25343 @: $(MAKE); $(unstage)
a90ef4bf 25344 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25345 r=`${PWD_COMMAND}`; export r; \
25346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25347 $(HOST_EXPORTS) \
b813574b 25348 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25350 done; \
a90ef4bf
JM
25351 echo "Doing distclean in readline" ; \
25352 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25355 "RANLIB=$${RANLIB}" \
0c24b341 25356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25357 distclean) \
2a4cbe27
NN
25358 || exit 1
25359
a90ef4bf 25360@endif readline
2a4cbe27 25361
a90ef4bf
JM
25362.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
25363maybe-maintainer-clean-readline:
25364@if readline
25365maybe-maintainer-clean-readline: maintainer-clean-readline
2a4cbe27 25366
a90ef4bf 25367maintainer-clean-readline:
0aed8855 25368 @: $(MAKE); $(unstage)
a90ef4bf 25369 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25370 r=`${PWD_COMMAND}`; export r; \
25371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25372 $(HOST_EXPORTS) \
b813574b 25373 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25375 done; \
a90ef4bf
JM
25376 echo "Doing maintainer-clean in readline" ; \
25377 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25380 "RANLIB=$${RANLIB}" \
0c24b341 25381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25382 maintainer-clean) \
2a4cbe27
NN
25383 || exit 1
25384
a90ef4bf 25385@endif readline
2a4cbe27 25386
2a4cbe27 25387
a7254363 25388
a90ef4bf
JM
25389.PHONY: configure-sid maybe-configure-sid
25390maybe-configure-sid:
4f0ef2d8 25391@if gcc-bootstrap
a90ef4bf 25392configure-sid: stage_current
4f0ef2d8 25393@endif gcc-bootstrap
a90ef4bf
JM
25394@if sid
25395maybe-configure-sid: configure-sid
25396configure-sid:
0aed8855 25397 @: $(MAKE); $(unstage)
c52c6897 25398 @r=`${PWD_COMMAND}`; export r; \
4fa63067 25399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
25400 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
25401 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid ; \
1f53ca9a 25402 $(HOST_EXPORTS) \
a90ef4bf
JM
25403 echo Configuring in $(HOST_SUBDIR)/sid; \
25404 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4fa63067 25405 case $(srcdir) in \
b00612cc 25406 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25407 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
b00612cc 25408 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25409 esac; \
1b6c0831
L
25410 module_srcdir=sid; \
25411 $(SHELL) \
25412 $$s/$$module_srcdir/configure \
25413 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25414 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25415 --target=${target_alias} \
4fa63067 25416 || exit 1
a90ef4bf 25417@endif sid
2a4cbe27 25418
a7254363
PB
25419
25420
d545f33b
PB
25421
25422
a90ef4bf
JM
25423.PHONY: all-sid maybe-all-sid
25424maybe-all-sid:
4f0ef2d8 25425@if gcc-bootstrap
a90ef4bf 25426all-sid: stage_current
4f0ef2d8 25427@endif gcc-bootstrap
a90ef4bf
JM
25428@if sid
25429TARGET-sid=all
25430maybe-all-sid: all-sid
25431all-sid: configure-sid
0aed8855 25432 @: $(MAKE); $(unstage)
4fa63067
NN
25433 @r=`${PWD_COMMAND}`; export r; \
25434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25435 $(HOST_EXPORTS) \
a90ef4bf 25436 (cd $(HOST_SUBDIR)/sid && \
b3676d82 25437 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25438 $(TARGET-sid))
25439@endif sid
2a4cbe27 25440
a7254363 25441
d545f33b
PB
25442
25443
a90ef4bf
JM
25444.PHONY: check-sid maybe-check-sid
25445maybe-check-sid:
25446@if sid
25447maybe-check-sid: check-sid
2a4cbe27 25448
a90ef4bf 25449check-sid:
0aed8855 25450 @: $(MAKE); $(unstage)
4fa63067 25451 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25453 $(HOST_EXPORTS) \
a90ef4bf 25454 (cd $(HOST_SUBDIR)/sid && \
b00612cc 25455 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25456
a90ef4bf 25457@endif sid
2a4cbe27 25458
a90ef4bf
JM
25459.PHONY: install-sid maybe-install-sid
25460maybe-install-sid:
25461@if sid
25462maybe-install-sid: install-sid
2a4cbe27 25463
a90ef4bf 25464install-sid: installdirs
0aed8855 25465 @: $(MAKE); $(unstage)
4fa63067 25466 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25468 $(HOST_EXPORTS) \
a90ef4bf 25469 (cd $(HOST_SUBDIR)/sid && \
2da12f12 25470 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25471
a90ef4bf 25472@endif sid
2a4cbe27 25473
a90ef4bf
JM
25474.PHONY: install-strip-sid maybe-install-strip-sid
25475maybe-install-strip-sid:
25476@if sid
25477maybe-install-strip-sid: install-strip-sid
9b980aa1 25478
a90ef4bf 25479install-strip-sid: installdirs
9b980aa1
RW
25480 @: $(MAKE); $(unstage)
25481 @r=`${PWD_COMMAND}`; export r; \
25482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25483 $(HOST_EXPORTS) \
a90ef4bf 25484 (cd $(HOST_SUBDIR)/sid && \
9b980aa1
RW
25485 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25486
a90ef4bf 25487@endif sid
9b980aa1 25488
56a8fe78 25489# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25490
a90ef4bf
JM
25491.PHONY: maybe-info-sid info-sid
25492maybe-info-sid:
25493@if sid
25494maybe-info-sid: info-sid
4fa63067 25495
a90ef4bf
JM
25496info-sid: \
25497 configure-sid
0aed8855 25498 @: $(MAKE); $(unstage)
a90ef4bf 25499 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25500 r=`${PWD_COMMAND}`; export r; \
25501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25502 $(HOST_EXPORTS) \
b813574b 25503 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25505 done; \
a90ef4bf
JM
25506 echo "Doing info in sid" ; \
25507 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25510 "RANLIB=$${RANLIB}" \
0c24b341 25511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25512 info) \
2a4cbe27
NN
25513 || exit 1
25514
a90ef4bf 25515@endif sid
2a4cbe27 25516
a90ef4bf
JM
25517.PHONY: maybe-dvi-sid dvi-sid
25518maybe-dvi-sid:
25519@if sid
25520maybe-dvi-sid: dvi-sid
2a4cbe27 25521
a90ef4bf
JM
25522dvi-sid: \
25523 configure-sid
0aed8855 25524 @: $(MAKE); $(unstage)
a90ef4bf 25525 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25526 r=`${PWD_COMMAND}`; export r; \
25527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25528 $(HOST_EXPORTS) \
b813574b 25529 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25531 done; \
a90ef4bf
JM
25532 echo "Doing dvi in sid" ; \
25533 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25536 "RANLIB=$${RANLIB}" \
0c24b341 25537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25538 dvi) \
2a4cbe27
NN
25539 || exit 1
25540
a90ef4bf 25541@endif sid
2a4cbe27 25542
a90ef4bf
JM
25543.PHONY: maybe-pdf-sid pdf-sid
25544maybe-pdf-sid:
25545@if sid
25546maybe-pdf-sid: pdf-sid
56a8fe78 25547
a90ef4bf
JM
25548pdf-sid: \
25549 configure-sid
56a8fe78 25550 @: $(MAKE); $(unstage)
a90ef4bf 25551 @[ -f ./sid/Makefile ] || exit 0; \
56a8fe78
DD
25552 r=`${PWD_COMMAND}`; export r; \
25553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25554 $(HOST_EXPORTS) \
25555 for flag in $(EXTRA_HOST_FLAGS) ; do \
25556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25557 done; \
a90ef4bf
JM
25558 echo "Doing pdf in sid" ; \
25559 (cd $(HOST_SUBDIR)/sid && \
56a8fe78
DD
25560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25562 "RANLIB=$${RANLIB}" \
0c24b341 25563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25564 pdf) \
25565 || exit 1
25566
a90ef4bf 25567@endif sid
56a8fe78 25568
a90ef4bf
JM
25569.PHONY: maybe-html-sid html-sid
25570maybe-html-sid:
25571@if sid
25572maybe-html-sid: html-sid
6d389afc 25573
a90ef4bf
JM
25574html-sid: \
25575 configure-sid
0aed8855 25576 @: $(MAKE); $(unstage)
a90ef4bf 25577 @[ -f ./sid/Makefile ] || exit 0; \
6d389afc
MS
25578 r=`${PWD_COMMAND}`; export r; \
25579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25580 $(HOST_EXPORTS) \
25581 for flag in $(EXTRA_HOST_FLAGS) ; do \
25582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25583 done; \
a90ef4bf
JM
25584 echo "Doing html in sid" ; \
25585 (cd $(HOST_SUBDIR)/sid && \
6d389afc
MS
25586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25588 "RANLIB=$${RANLIB}" \
0c24b341 25589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25590 html) \
25591 || exit 1
25592
a90ef4bf 25593@endif sid
6d389afc 25594
a90ef4bf
JM
25595.PHONY: maybe-TAGS-sid TAGS-sid
25596maybe-TAGS-sid:
25597@if sid
25598maybe-TAGS-sid: TAGS-sid
2a4cbe27 25599
a90ef4bf
JM
25600TAGS-sid: \
25601 configure-sid
0aed8855 25602 @: $(MAKE); $(unstage)
a90ef4bf 25603 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25604 r=`${PWD_COMMAND}`; export r; \
25605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25606 $(HOST_EXPORTS) \
b813574b 25607 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25609 done; \
a90ef4bf
JM
25610 echo "Doing TAGS in sid" ; \
25611 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25614 "RANLIB=$${RANLIB}" \
0c24b341 25615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25616 TAGS) \
2a4cbe27
NN
25617 || exit 1
25618
a90ef4bf 25619@endif sid
2a4cbe27 25620
a90ef4bf
JM
25621.PHONY: maybe-install-info-sid install-info-sid
25622maybe-install-info-sid:
25623@if sid
25624maybe-install-info-sid: install-info-sid
2a4cbe27 25625
a90ef4bf
JM
25626install-info-sid: \
25627 configure-sid \
25628 info-sid
0aed8855 25629 @: $(MAKE); $(unstage)
a90ef4bf 25630 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25631 r=`${PWD_COMMAND}`; export r; \
25632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25633 $(HOST_EXPORTS) \
b813574b 25634 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25636 done; \
a90ef4bf
JM
25637 echo "Doing install-info in sid" ; \
25638 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25641 "RANLIB=$${RANLIB}" \
0c24b341 25642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25643 install-info) \
2a4cbe27
NN
25644 || exit 1
25645
a90ef4bf 25646@endif sid
2a4cbe27 25647
a90ef4bf
JM
25648.PHONY: maybe-install-pdf-sid install-pdf-sid
25649maybe-install-pdf-sid:
25650@if sid
25651maybe-install-pdf-sid: install-pdf-sid
a3ca38d2 25652
a90ef4bf
JM
25653install-pdf-sid: \
25654 configure-sid \
25655 pdf-sid
a3ca38d2 25656 @: $(MAKE); $(unstage)
a90ef4bf 25657 @[ -f ./sid/Makefile ] || exit 0; \
a3ca38d2
DD
25658 r=`${PWD_COMMAND}`; export r; \
25659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25660 $(HOST_EXPORTS) \
25661 for flag in $(EXTRA_HOST_FLAGS) ; do \
25662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25663 done; \
a90ef4bf
JM
25664 echo "Doing install-pdf in sid" ; \
25665 (cd $(HOST_SUBDIR)/sid && \
a3ca38d2
DD
25666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25668 "RANLIB=$${RANLIB}" \
0c24b341 25669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25670 install-pdf) \
25671 || exit 1
25672
a90ef4bf 25673@endif sid
a3ca38d2 25674
a90ef4bf
JM
25675.PHONY: maybe-install-html-sid install-html-sid
25676maybe-install-html-sid:
25677@if sid
25678maybe-install-html-sid: install-html-sid
108a6f8e 25679
a90ef4bf
JM
25680install-html-sid: \
25681 configure-sid \
25682 html-sid
108a6f8e 25683 @: $(MAKE); $(unstage)
a90ef4bf 25684 @[ -f ./sid/Makefile ] || exit 0; \
108a6f8e
CD
25685 r=`${PWD_COMMAND}`; export r; \
25686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25687 $(HOST_EXPORTS) \
25688 for flag in $(EXTRA_HOST_FLAGS) ; do \
25689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25690 done; \
a90ef4bf
JM
25691 echo "Doing install-html in sid" ; \
25692 (cd $(HOST_SUBDIR)/sid && \
108a6f8e
CD
25693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25695 "RANLIB=$${RANLIB}" \
0c24b341 25696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25697 install-html) \
25698 || exit 1
25699
a90ef4bf 25700@endif sid
108a6f8e 25701
a90ef4bf
JM
25702.PHONY: maybe-installcheck-sid installcheck-sid
25703maybe-installcheck-sid:
25704@if sid
25705maybe-installcheck-sid: installcheck-sid
2a4cbe27 25706
a90ef4bf
JM
25707installcheck-sid: \
25708 configure-sid
0aed8855 25709 @: $(MAKE); $(unstage)
a90ef4bf 25710 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25711 r=`${PWD_COMMAND}`; export r; \
25712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25713 $(HOST_EXPORTS) \
b813574b 25714 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25716 done; \
a90ef4bf
JM
25717 echo "Doing installcheck in sid" ; \
25718 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25721 "RANLIB=$${RANLIB}" \
0c24b341 25722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25723 installcheck) \
2a4cbe27
NN
25724 || exit 1
25725
a90ef4bf 25726@endif sid
2a4cbe27 25727
a90ef4bf
JM
25728.PHONY: maybe-mostlyclean-sid mostlyclean-sid
25729maybe-mostlyclean-sid:
25730@if sid
25731maybe-mostlyclean-sid: mostlyclean-sid
2a4cbe27 25732
a90ef4bf 25733mostlyclean-sid:
0aed8855 25734 @: $(MAKE); $(unstage)
a90ef4bf 25735 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25736 r=`${PWD_COMMAND}`; export r; \
25737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25738 $(HOST_EXPORTS) \
b813574b 25739 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25741 done; \
a90ef4bf
JM
25742 echo "Doing mostlyclean in sid" ; \
25743 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25746 "RANLIB=$${RANLIB}" \
0c24b341 25747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25748 mostlyclean) \
2a4cbe27
NN
25749 || exit 1
25750
a90ef4bf 25751@endif sid
2a4cbe27 25752
a90ef4bf
JM
25753.PHONY: maybe-clean-sid clean-sid
25754maybe-clean-sid:
25755@if sid
25756maybe-clean-sid: clean-sid
2a4cbe27 25757
a90ef4bf 25758clean-sid:
0aed8855 25759 @: $(MAKE); $(unstage)
a90ef4bf 25760 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25761 r=`${PWD_COMMAND}`; export r; \
25762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25763 $(HOST_EXPORTS) \
b813574b 25764 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25766 done; \
a90ef4bf
JM
25767 echo "Doing clean in sid" ; \
25768 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25771 "RANLIB=$${RANLIB}" \
0c24b341 25772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25773 clean) \
2a4cbe27
NN
25774 || exit 1
25775
a90ef4bf 25776@endif sid
2a4cbe27 25777
a90ef4bf
JM
25778.PHONY: maybe-distclean-sid distclean-sid
25779maybe-distclean-sid:
25780@if sid
25781maybe-distclean-sid: distclean-sid
2a4cbe27 25782
a90ef4bf 25783distclean-sid:
0aed8855 25784 @: $(MAKE); $(unstage)
a90ef4bf 25785 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25786 r=`${PWD_COMMAND}`; export r; \
25787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25788 $(HOST_EXPORTS) \
b813574b 25789 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25791 done; \
a90ef4bf
JM
25792 echo "Doing distclean in sid" ; \
25793 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25796 "RANLIB=$${RANLIB}" \
0c24b341 25797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25798 distclean) \
2a4cbe27
NN
25799 || exit 1
25800
a90ef4bf 25801@endif sid
2a4cbe27 25802
a90ef4bf
JM
25803.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
25804maybe-maintainer-clean-sid:
25805@if sid
25806maybe-maintainer-clean-sid: maintainer-clean-sid
2a4cbe27 25807
a90ef4bf 25808maintainer-clean-sid:
0aed8855 25809 @: $(MAKE); $(unstage)
a90ef4bf 25810 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25811 r=`${PWD_COMMAND}`; export r; \
25812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25813 $(HOST_EXPORTS) \
b813574b 25814 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25816 done; \
a90ef4bf
JM
25817 echo "Doing maintainer-clean in sid" ; \
25818 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25821 "RANLIB=$${RANLIB}" \
0c24b341 25822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25823 maintainer-clean) \
2a4cbe27
NN
25824 || exit 1
25825
a90ef4bf 25826@endif sid
2a4cbe27 25827
a2592b1b 25828
a7254363 25829
a90ef4bf
JM
25830.PHONY: configure-sim maybe-configure-sim
25831maybe-configure-sim:
4f0ef2d8 25832@if gcc-bootstrap
a90ef4bf 25833configure-sim: stage_current
4f0ef2d8 25834@endif gcc-bootstrap
a90ef4bf
JM
25835@if sim
25836maybe-configure-sim: configure-sim
25837configure-sim:
25838 @: $(MAKE); $(unstage)
c52c6897
PB
25839 @r=`${PWD_COMMAND}`; export r; \
25840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
25841 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
25842 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim ; \
1f53ca9a 25843 $(HOST_EXPORTS) \
a90ef4bf
JM
25844 echo Configuring in $(HOST_SUBDIR)/sim; \
25845 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4fa63067 25846 case $(srcdir) in \
b00612cc 25847 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25848 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
b00612cc 25849 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25850 esac; \
1b6c0831
L
25851 module_srcdir=sim; \
25852 $(SHELL) \
25853 $$s/$$module_srcdir/configure \
25854 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25855 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25856 --target=${target_alias} \
a2592b1b 25857 || exit 1
a90ef4bf 25858@endif sim
a2592b1b 25859
a7254363
PB
25860
25861
a90ef4bf
JM
25862
25863
25864.PHONY: all-sim maybe-all-sim
25865maybe-all-sim:
25866@if gcc-bootstrap
25867all-sim: stage_current
25868@endif gcc-bootstrap
25869@if sim
25870TARGET-sim=all
25871maybe-all-sim: all-sim
25872all-sim: configure-sim
25873 @: $(MAKE); $(unstage)
c52c6897
PB
25874 @r=`${PWD_COMMAND}`; export r; \
25875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
25876 $(HOST_EXPORTS) \
25877 (cd $(HOST_SUBDIR)/sim && \
b3676d82 25878 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25879 $(TARGET-sim))
25880@endif sim
d545f33b 25881
a90ef4bf
JM
25882
25883
25884
25885.PHONY: check-sim maybe-check-sim
25886maybe-check-sim:
25887@if sim
25888maybe-check-sim: check-sim
25889
25890check-sim:
25891 @: $(MAKE); $(unstage)
c52c6897
PB
25892 @r=`${PWD_COMMAND}`; export r; \
25893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25894 $(HOST_EXPORTS) \
a90ef4bf
JM
25895 (cd $(HOST_SUBDIR)/sim && \
25896 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 25897
a90ef4bf
JM
25898@endif sim
25899
25900.PHONY: install-sim maybe-install-sim
25901maybe-install-sim:
25902@if sim
25903maybe-install-sim: install-sim
25904
25905install-sim: installdirs
25906 @: $(MAKE); $(unstage)
c52c6897
PB
25907 @r=`${PWD_COMMAND}`; export r; \
25908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 25909 $(HOST_EXPORTS) \
a90ef4bf
JM
25910 (cd $(HOST_SUBDIR)/sim && \
25911 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 25912
a90ef4bf
JM
25913@endif sim
25914
25915.PHONY: install-strip-sim maybe-install-strip-sim
25916maybe-install-strip-sim:
25917@if sim
25918maybe-install-strip-sim: install-strip-sim
25919
25920install-strip-sim: installdirs
25921 @: $(MAKE); $(unstage)
c52c6897
PB
25922 @r=`${PWD_COMMAND}`; export r; \
25923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 25924 $(HOST_EXPORTS) \
a90ef4bf
JM
25925 (cd $(HOST_SUBDIR)/sim && \
25926 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 25927
a90ef4bf 25928@endif sim
9b980aa1 25929
56a8fe78 25930# Other targets (info, dvi, pdf, etc.)
4fa63067 25931
a90ef4bf
JM
25932.PHONY: maybe-info-sim info-sim
25933maybe-info-sim:
25934@if sim
25935maybe-info-sim: info-sim
4fa63067 25936
a90ef4bf
JM
25937info-sim: \
25938 configure-sim
25939 @: $(MAKE); $(unstage)
25940 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
25941 r=`${PWD_COMMAND}`; export r; \
25942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25943 $(HOST_EXPORTS) \
b813574b 25944 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25946 done; \
a90ef4bf
JM
25947 echo "Doing info in sim" ; \
25948 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
25949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25951 "RANLIB=$${RANLIB}" \
0c24b341 25952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25953 info) \
2a4cbe27
NN
25954 || exit 1
25955
a90ef4bf 25956@endif sim
2a4cbe27 25957
a90ef4bf
JM
25958.PHONY: maybe-dvi-sim dvi-sim
25959maybe-dvi-sim:
25960@if sim
25961maybe-dvi-sim: dvi-sim
2a4cbe27 25962
a90ef4bf
JM
25963dvi-sim: \
25964 configure-sim
25965 @: $(MAKE); $(unstage)
25966 @[ -f ./sim/Makefile ] || exit 0; \
b813574b 25967 r=`${PWD_COMMAND}`; export r; \
b40e3958 25968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25969 $(HOST_EXPORTS) \
b813574b 25970 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25972 done; \
a90ef4bf
JM
25973 echo "Doing dvi in sim" ; \
25974 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
25975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25977 "RANLIB=$${RANLIB}" \
0c24b341 25978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25979 dvi) \
2a4cbe27
NN
25980 || exit 1
25981
a90ef4bf 25982@endif sim
2a4cbe27 25983
a90ef4bf
JM
25984.PHONY: maybe-pdf-sim pdf-sim
25985maybe-pdf-sim:
25986@if sim
25987maybe-pdf-sim: pdf-sim
56a8fe78 25988
a90ef4bf
JM
25989pdf-sim: \
25990 configure-sim
25991 @: $(MAKE); $(unstage)
25992 @[ -f ./sim/Makefile ] || exit 0; \
56a8fe78
DD
25993 r=`${PWD_COMMAND}`; export r; \
25994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25995 $(HOST_EXPORTS) \
25996 for flag in $(EXTRA_HOST_FLAGS) ; do \
25997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25998 done; \
a90ef4bf
JM
25999 echo "Doing pdf in sim" ; \
26000 (cd $(HOST_SUBDIR)/sim && \
56a8fe78
DD
26001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26003 "RANLIB=$${RANLIB}" \
0c24b341 26004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26005 pdf) \
26006 || exit 1
26007
a90ef4bf 26008@endif sim
56a8fe78 26009
a90ef4bf
JM
26010.PHONY: maybe-html-sim html-sim
26011maybe-html-sim:
26012@if sim
26013maybe-html-sim: html-sim
6d389afc 26014
a90ef4bf
JM
26015html-sim: \
26016 configure-sim
26017 @: $(MAKE); $(unstage)
26018 @[ -f ./sim/Makefile ] || exit 0; \
6d389afc
MS
26019 r=`${PWD_COMMAND}`; export r; \
26020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26021 $(HOST_EXPORTS) \
26022 for flag in $(EXTRA_HOST_FLAGS) ; do \
26023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26024 done; \
a90ef4bf
JM
26025 echo "Doing html in sim" ; \
26026 (cd $(HOST_SUBDIR)/sim && \
6d389afc
MS
26027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26029 "RANLIB=$${RANLIB}" \
0c24b341 26030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26031 html) \
26032 || exit 1
26033
a90ef4bf 26034@endif sim
6d389afc 26035
a90ef4bf
JM
26036.PHONY: maybe-TAGS-sim TAGS-sim
26037maybe-TAGS-sim:
26038@if sim
26039maybe-TAGS-sim: TAGS-sim
2a4cbe27 26040
a90ef4bf
JM
26041TAGS-sim: \
26042 configure-sim
26043 @: $(MAKE); $(unstage)
26044 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26045 r=`${PWD_COMMAND}`; export r; \
26046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26047 $(HOST_EXPORTS) \
b813574b 26048 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26050 done; \
a90ef4bf
JM
26051 echo "Doing TAGS in sim" ; \
26052 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26055 "RANLIB=$${RANLIB}" \
0c24b341 26056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26057 TAGS) \
2a4cbe27
NN
26058 || exit 1
26059
a90ef4bf 26060@endif sim
2a4cbe27 26061
a90ef4bf
JM
26062.PHONY: maybe-install-info-sim install-info-sim
26063maybe-install-info-sim:
26064@if sim
26065maybe-install-info-sim: install-info-sim
2a4cbe27 26066
a90ef4bf
JM
26067install-info-sim: \
26068 configure-sim \
26069 info-sim
26070 @: $(MAKE); $(unstage)
26071 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26072 r=`${PWD_COMMAND}`; export r; \
26073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26074 $(HOST_EXPORTS) \
b813574b 26075 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26077 done; \
a90ef4bf
JM
26078 echo "Doing install-info in sim" ; \
26079 (cd $(HOST_SUBDIR)/sim && \
26080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2a4cbe27
NN
26081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26082 "RANLIB=$${RANLIB}" \
0c24b341 26083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26084 install-info) \
2a4cbe27
NN
26085 || exit 1
26086
a90ef4bf 26087@endif sim
2a4cbe27 26088
a90ef4bf
JM
26089.PHONY: maybe-install-pdf-sim install-pdf-sim
26090maybe-install-pdf-sim:
26091@if sim
26092maybe-install-pdf-sim: install-pdf-sim
a3ca38d2 26093
a90ef4bf
JM
26094install-pdf-sim: \
26095 configure-sim \
26096 pdf-sim
26097 @: $(MAKE); $(unstage)
26098 @[ -f ./sim/Makefile ] || exit 0; \
a3ca38d2
DD
26099 r=`${PWD_COMMAND}`; export r; \
26100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26101 $(HOST_EXPORTS) \
26102 for flag in $(EXTRA_HOST_FLAGS) ; do \
26103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26104 done; \
a90ef4bf
JM
26105 echo "Doing install-pdf in sim" ; \
26106 (cd $(HOST_SUBDIR)/sim && \
a3ca38d2
DD
26107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26109 "RANLIB=$${RANLIB}" \
0c24b341 26110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26111 install-pdf) \
26112 || exit 1
26113
a90ef4bf 26114@endif sim
a3ca38d2 26115
a90ef4bf
JM
26116.PHONY: maybe-install-html-sim install-html-sim
26117maybe-install-html-sim:
26118@if sim
26119maybe-install-html-sim: install-html-sim
108a6f8e 26120
a90ef4bf
JM
26121install-html-sim: \
26122 configure-sim \
26123 html-sim
26124 @: $(MAKE); $(unstage)
26125 @[ -f ./sim/Makefile ] || exit 0; \
108a6f8e
CD
26126 r=`${PWD_COMMAND}`; export r; \
26127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26128 $(HOST_EXPORTS) \
26129 for flag in $(EXTRA_HOST_FLAGS) ; do \
26130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26131 done; \
a90ef4bf
JM
26132 echo "Doing install-html in sim" ; \
26133 (cd $(HOST_SUBDIR)/sim && \
108a6f8e
CD
26134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26136 "RANLIB=$${RANLIB}" \
0c24b341 26137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26138 install-html) \
26139 || exit 1
26140
a90ef4bf 26141@endif sim
108a6f8e 26142
a90ef4bf
JM
26143.PHONY: maybe-installcheck-sim installcheck-sim
26144maybe-installcheck-sim:
26145@if sim
26146maybe-installcheck-sim: installcheck-sim
2a4cbe27 26147
a90ef4bf
JM
26148installcheck-sim: \
26149 configure-sim
26150 @: $(MAKE); $(unstage)
26151 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26152 r=`${PWD_COMMAND}`; export r; \
26153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26154 $(HOST_EXPORTS) \
b813574b 26155 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26157 done; \
a90ef4bf
JM
26158 echo "Doing installcheck in sim" ; \
26159 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26162 "RANLIB=$${RANLIB}" \
0c24b341 26163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26164 installcheck) \
2a4cbe27
NN
26165 || exit 1
26166
a90ef4bf 26167@endif sim
2a4cbe27 26168
a90ef4bf
JM
26169.PHONY: maybe-mostlyclean-sim mostlyclean-sim
26170maybe-mostlyclean-sim:
26171@if sim
26172maybe-mostlyclean-sim: mostlyclean-sim
2a4cbe27 26173
a90ef4bf
JM
26174mostlyclean-sim:
26175 @: $(MAKE); $(unstage)
26176 @[ -f ./sim/Makefile ] || exit 0; \
b813574b
PB
26177 r=`${PWD_COMMAND}`; export r; \
26178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b
PB
26179 $(HOST_EXPORTS) \
26180 for flag in $(EXTRA_HOST_FLAGS) ; do \
26181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26182 done; \
a90ef4bf
JM
26183 echo "Doing mostlyclean in sim" ; \
26184 (cd $(HOST_SUBDIR)/sim && \
b813574b
PB
26185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26187 "RANLIB=$${RANLIB}" \
0c24b341 26188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b
PB
26189 mostlyclean) \
26190 || exit 1
4fa63067 26191
a90ef4bf 26192@endif sim
4fa63067 26193
a90ef4bf
JM
26194.PHONY: maybe-clean-sim clean-sim
26195maybe-clean-sim:
26196@if sim
26197maybe-clean-sim: clean-sim
4fa63067 26198
a90ef4bf
JM
26199clean-sim:
26200 @: $(MAKE); $(unstage)
26201 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26202 r=`${PWD_COMMAND}`; export r; \
26203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26204 $(HOST_EXPORTS) \
b813574b 26205 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26207 done; \
a90ef4bf
JM
26208 echo "Doing clean in sim" ; \
26209 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26212 "RANLIB=$${RANLIB}" \
0c24b341 26213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26214 clean) \
2a4cbe27
NN
26215 || exit 1
26216
a90ef4bf 26217@endif sim
2a4cbe27 26218
a90ef4bf
JM
26219.PHONY: maybe-distclean-sim distclean-sim
26220maybe-distclean-sim:
26221@if sim
26222maybe-distclean-sim: distclean-sim
2a4cbe27 26223
a90ef4bf
JM
26224distclean-sim:
26225 @: $(MAKE); $(unstage)
26226 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26227 r=`${PWD_COMMAND}`; export r; \
26228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26229 $(HOST_EXPORTS) \
b813574b 26230 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26232 done; \
a90ef4bf
JM
26233 echo "Doing distclean in sim" ; \
26234 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26237 "RANLIB=$${RANLIB}" \
0c24b341 26238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26239 distclean) \
2a4cbe27
NN
26240 || exit 1
26241
a90ef4bf 26242@endif sim
2a4cbe27 26243
a90ef4bf
JM
26244.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
26245maybe-maintainer-clean-sim:
26246@if sim
26247maybe-maintainer-clean-sim: maintainer-clean-sim
2a4cbe27 26248
a90ef4bf
JM
26249maintainer-clean-sim:
26250 @: $(MAKE); $(unstage)
26251 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26252 r=`${PWD_COMMAND}`; export r; \
26253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26254 $(HOST_EXPORTS) \
b813574b 26255 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26257 done; \
a90ef4bf
JM
26258 echo "Doing maintainer-clean in sim" ; \
26259 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26262 "RANLIB=$${RANLIB}" \
0c24b341 26263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26264 maintainer-clean) \
2a4cbe27
NN
26265 || exit 1
26266
a90ef4bf 26267@endif sim
2a4cbe27 26268
2a4cbe27 26269
a7254363 26270
a90ef4bf
JM
26271.PHONY: configure-texinfo maybe-configure-texinfo
26272maybe-configure-texinfo:
4f0ef2d8 26273@if gcc-bootstrap
a90ef4bf 26274configure-texinfo: stage_current
4f0ef2d8 26275@endif gcc-bootstrap
a90ef4bf
JM
26276@if texinfo
26277maybe-configure-texinfo: configure-texinfo
26278configure-texinfo:
0aed8855 26279 @: $(MAKE); $(unstage)
c52c6897 26280 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26282 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
26283 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo ; \
1f53ca9a 26284 $(HOST_EXPORTS) \
a90ef4bf
JM
26285 echo Configuring in $(HOST_SUBDIR)/texinfo; \
26286 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4fa63067 26287 case $(srcdir) in \
b00612cc 26288 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26289 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
b00612cc 26290 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26291 esac; \
1b6c0831
L
26292 module_srcdir=texinfo; \
26293 $(SHELL) \
26294 $$s/$$module_srcdir/configure \
26295 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26296 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26297 --target=${target_alias} \
2a4cbe27 26298 || exit 1
a90ef4bf 26299@endif texinfo
2a4cbe27 26300
a7254363
PB
26301
26302
d545f33b
PB
26303
26304
a90ef4bf
JM
26305.PHONY: all-texinfo maybe-all-texinfo
26306maybe-all-texinfo:
4f0ef2d8 26307@if gcc-bootstrap
a90ef4bf 26308all-texinfo: stage_current
4f0ef2d8 26309@endif gcc-bootstrap
a90ef4bf
JM
26310@if texinfo
26311TARGET-texinfo=all
26312maybe-all-texinfo: all-texinfo
26313all-texinfo: configure-texinfo
0aed8855 26314 @: $(MAKE); $(unstage)
4fa63067
NN
26315 @r=`${PWD_COMMAND}`; export r; \
26316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26317 $(HOST_EXPORTS) \
a90ef4bf 26318 (cd $(HOST_SUBDIR)/texinfo && \
b3676d82 26319 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26320 $(TARGET-texinfo))
26321@endif texinfo
4fa63067 26322
a7254363 26323
d545f33b
PB
26324
26325
a90ef4bf
JM
26326.PHONY: check-texinfo maybe-check-texinfo
26327maybe-check-texinfo:
26328@if texinfo
26329maybe-check-texinfo: check-texinfo
2a4cbe27 26330
a90ef4bf 26331check-texinfo:
0aed8855 26332 @: $(MAKE); $(unstage)
4fa63067
NN
26333 @r=`${PWD_COMMAND}`; export r; \
26334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26335 $(HOST_EXPORTS) \
a90ef4bf 26336 (cd $(HOST_SUBDIR)/texinfo && \
b00612cc 26337 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26338
a90ef4bf 26339@endif texinfo
4fa63067 26340
a90ef4bf
JM
26341.PHONY: install-texinfo maybe-install-texinfo
26342maybe-install-texinfo:
26343@if texinfo
26344maybe-install-texinfo: install-texinfo
4fa63067 26345
a90ef4bf 26346install-texinfo:
4fa63067 26347
a90ef4bf 26348@endif texinfo
4fa63067 26349
a90ef4bf
JM
26350.PHONY: install-strip-texinfo maybe-install-strip-texinfo
26351maybe-install-strip-texinfo:
26352@if texinfo
26353maybe-install-strip-texinfo: install-strip-texinfo
9b980aa1 26354
a90ef4bf 26355install-strip-texinfo:
9b980aa1 26356
a90ef4bf 26357@endif texinfo
9b980aa1 26358
56a8fe78 26359# Other targets (info, dvi, pdf, etc.)
4fa63067 26360
a90ef4bf
JM
26361.PHONY: maybe-info-texinfo info-texinfo
26362maybe-info-texinfo:
26363@if texinfo
26364maybe-info-texinfo: info-texinfo
4fa63067 26365
a90ef4bf
JM
26366info-texinfo: \
26367 configure-texinfo
0aed8855 26368 @: $(MAKE); $(unstage)
a90ef4bf 26369 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26370 r=`${PWD_COMMAND}`; export r; \
26371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26372 $(HOST_EXPORTS) \
b813574b 26373 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26375 done; \
a90ef4bf
JM
26376 echo "Doing info in texinfo" ; \
26377 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26380 "RANLIB=$${RANLIB}" \
0c24b341 26381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26382 info) \
2a4cbe27
NN
26383 || exit 1
26384
a90ef4bf 26385@endif texinfo
2a4cbe27 26386
a90ef4bf
JM
26387.PHONY: maybe-dvi-texinfo dvi-texinfo
26388maybe-dvi-texinfo:
26389@if texinfo
26390maybe-dvi-texinfo: dvi-texinfo
2a4cbe27 26391
a90ef4bf
JM
26392dvi-texinfo: \
26393 configure-texinfo
0aed8855 26394 @: $(MAKE); $(unstage)
a90ef4bf 26395 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26396 r=`${PWD_COMMAND}`; export r; \
26397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26398 $(HOST_EXPORTS) \
b813574b 26399 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26401 done; \
a90ef4bf
JM
26402 echo "Doing dvi in texinfo" ; \
26403 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26406 "RANLIB=$${RANLIB}" \
0c24b341 26407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26408 dvi) \
2a4cbe27
NN
26409 || exit 1
26410
a90ef4bf 26411@endif texinfo
2a4cbe27 26412
a90ef4bf
JM
26413.PHONY: maybe-pdf-texinfo pdf-texinfo
26414maybe-pdf-texinfo:
26415@if texinfo
26416maybe-pdf-texinfo: pdf-texinfo
56a8fe78 26417
a90ef4bf
JM
26418pdf-texinfo: \
26419 configure-texinfo
56a8fe78 26420 @: $(MAKE); $(unstage)
a90ef4bf 26421 @[ -f ./texinfo/Makefile ] || exit 0; \
56a8fe78
DD
26422 r=`${PWD_COMMAND}`; export r; \
26423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26424 $(HOST_EXPORTS) \
26425 for flag in $(EXTRA_HOST_FLAGS) ; do \
26426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26427 done; \
a90ef4bf
JM
26428 echo "Doing pdf in texinfo" ; \
26429 (cd $(HOST_SUBDIR)/texinfo && \
56a8fe78
DD
26430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26432 "RANLIB=$${RANLIB}" \
0c24b341 26433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26434 pdf) \
26435 || exit 1
26436
a90ef4bf 26437@endif texinfo
56a8fe78 26438
a90ef4bf
JM
26439.PHONY: maybe-html-texinfo html-texinfo
26440maybe-html-texinfo:
26441@if texinfo
26442maybe-html-texinfo: html-texinfo
6d389afc 26443
a90ef4bf
JM
26444html-texinfo: \
26445 configure-texinfo
0aed8855 26446 @: $(MAKE); $(unstage)
a90ef4bf 26447 @[ -f ./texinfo/Makefile ] || exit 0; \
6d389afc
MS
26448 r=`${PWD_COMMAND}`; export r; \
26449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26450 $(HOST_EXPORTS) \
26451 for flag in $(EXTRA_HOST_FLAGS) ; do \
26452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26453 done; \
a90ef4bf
JM
26454 echo "Doing html in texinfo" ; \
26455 (cd $(HOST_SUBDIR)/texinfo && \
6d389afc
MS
26456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26458 "RANLIB=$${RANLIB}" \
0c24b341 26459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26460 html) \
26461 || exit 1
26462
a90ef4bf 26463@endif texinfo
6d389afc 26464
a90ef4bf
JM
26465.PHONY: maybe-TAGS-texinfo TAGS-texinfo
26466maybe-TAGS-texinfo:
26467@if texinfo
26468maybe-TAGS-texinfo: TAGS-texinfo
2a4cbe27 26469
a90ef4bf
JM
26470TAGS-texinfo: \
26471 configure-texinfo
0aed8855 26472 @: $(MAKE); $(unstage)
a90ef4bf 26473 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26474 r=`${PWD_COMMAND}`; export r; \
26475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26476 $(HOST_EXPORTS) \
b813574b 26477 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26479 done; \
a90ef4bf
JM
26480 echo "Doing TAGS in texinfo" ; \
26481 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26484 "RANLIB=$${RANLIB}" \
0c24b341 26485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26486 TAGS) \
2a4cbe27
NN
26487 || exit 1
26488
a90ef4bf 26489@endif texinfo
2a4cbe27 26490
a90ef4bf
JM
26491.PHONY: maybe-install-info-texinfo install-info-texinfo
26492maybe-install-info-texinfo:
26493@if texinfo
26494maybe-install-info-texinfo: install-info-texinfo
2a4cbe27 26495
a90ef4bf
JM
26496install-info-texinfo: \
26497 configure-texinfo \
26498 info-texinfo
0aed8855 26499 @: $(MAKE); $(unstage)
a90ef4bf 26500 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26501 r=`${PWD_COMMAND}`; export r; \
26502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26503 $(HOST_EXPORTS) \
b813574b 26504 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26506 done; \
a90ef4bf
JM
26507 echo "Doing install-info in texinfo" ; \
26508 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26511 "RANLIB=$${RANLIB}" \
0c24b341 26512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26513 install-info) \
2a4cbe27
NN
26514 || exit 1
26515
a90ef4bf 26516@endif texinfo
2a4cbe27 26517
a90ef4bf
JM
26518.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
26519maybe-install-pdf-texinfo:
26520@if texinfo
26521maybe-install-pdf-texinfo: install-pdf-texinfo
a3ca38d2 26522
a90ef4bf
JM
26523install-pdf-texinfo: \
26524 configure-texinfo \
26525 pdf-texinfo
a3ca38d2 26526 @: $(MAKE); $(unstage)
a90ef4bf 26527 @[ -f ./texinfo/Makefile ] || exit 0; \
a3ca38d2
DD
26528 r=`${PWD_COMMAND}`; export r; \
26529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26530 $(HOST_EXPORTS) \
26531 for flag in $(EXTRA_HOST_FLAGS) ; do \
26532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26533 done; \
a90ef4bf
JM
26534 echo "Doing install-pdf in texinfo" ; \
26535 (cd $(HOST_SUBDIR)/texinfo && \
a3ca38d2
DD
26536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26538 "RANLIB=$${RANLIB}" \
0c24b341 26539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26540 install-pdf) \
26541 || exit 1
26542
a90ef4bf 26543@endif texinfo
a3ca38d2 26544
a90ef4bf
JM
26545.PHONY: maybe-install-html-texinfo install-html-texinfo
26546maybe-install-html-texinfo:
26547@if texinfo
26548maybe-install-html-texinfo: install-html-texinfo
108a6f8e 26549
a90ef4bf
JM
26550install-html-texinfo: \
26551 configure-texinfo \
26552 html-texinfo
108a6f8e 26553 @: $(MAKE); $(unstage)
a90ef4bf 26554 @[ -f ./texinfo/Makefile ] || exit 0; \
108a6f8e
CD
26555 r=`${PWD_COMMAND}`; export r; \
26556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26557 $(HOST_EXPORTS) \
26558 for flag in $(EXTRA_HOST_FLAGS) ; do \
26559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26560 done; \
a90ef4bf
JM
26561 echo "Doing install-html in texinfo" ; \
26562 (cd $(HOST_SUBDIR)/texinfo && \
108a6f8e
CD
26563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26565 "RANLIB=$${RANLIB}" \
0c24b341 26566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26567 install-html) \
26568 || exit 1
26569
a90ef4bf 26570@endif texinfo
108a6f8e 26571
a90ef4bf
JM
26572.PHONY: maybe-installcheck-texinfo installcheck-texinfo
26573maybe-installcheck-texinfo:
26574@if texinfo
26575maybe-installcheck-texinfo: installcheck-texinfo
2a4cbe27 26576
a90ef4bf
JM
26577installcheck-texinfo: \
26578 configure-texinfo
0aed8855 26579 @: $(MAKE); $(unstage)
a90ef4bf 26580 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26581 r=`${PWD_COMMAND}`; export r; \
26582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26583 $(HOST_EXPORTS) \
b813574b 26584 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26586 done; \
a90ef4bf
JM
26587 echo "Doing installcheck in texinfo" ; \
26588 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26591 "RANLIB=$${RANLIB}" \
0c24b341 26592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26593 installcheck) \
2a4cbe27
NN
26594 || exit 1
26595
a90ef4bf 26596@endif texinfo
2a4cbe27 26597
a90ef4bf
JM
26598.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
26599maybe-mostlyclean-texinfo:
26600@if texinfo
26601maybe-mostlyclean-texinfo: mostlyclean-texinfo
2a4cbe27 26602
a90ef4bf 26603mostlyclean-texinfo:
0aed8855 26604 @: $(MAKE); $(unstage)
a90ef4bf 26605 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26606 r=`${PWD_COMMAND}`; export r; \
26607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26608 $(HOST_EXPORTS) \
b813574b 26609 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26611 done; \
a90ef4bf
JM
26612 echo "Doing mostlyclean in texinfo" ; \
26613 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26616 "RANLIB=$${RANLIB}" \
0c24b341 26617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 26618 mostlyclean) \
2a4cbe27
NN
26619 || exit 1
26620
a90ef4bf 26621@endif texinfo
2a4cbe27 26622
a90ef4bf
JM
26623.PHONY: maybe-clean-texinfo clean-texinfo
26624maybe-clean-texinfo:
26625@if texinfo
26626maybe-clean-texinfo: clean-texinfo
2a4cbe27 26627
a90ef4bf 26628clean-texinfo:
0aed8855 26629 @: $(MAKE); $(unstage)
a90ef4bf 26630 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26631 r=`${PWD_COMMAND}`; export r; \
26632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26633 $(HOST_EXPORTS) \
b813574b 26634 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26636 done; \
a90ef4bf
JM
26637 echo "Doing clean in texinfo" ; \
26638 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26641 "RANLIB=$${RANLIB}" \
0c24b341 26642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 26643 clean) \
2a4cbe27
NN
26644 || exit 1
26645
a90ef4bf 26646@endif texinfo
2a4cbe27 26647
a90ef4bf
JM
26648.PHONY: maybe-distclean-texinfo distclean-texinfo
26649maybe-distclean-texinfo:
26650@if texinfo
26651maybe-distclean-texinfo: distclean-texinfo
2a4cbe27 26652
a90ef4bf 26653distclean-texinfo:
0aed8855 26654 @: $(MAKE); $(unstage)
a90ef4bf 26655 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26656 r=`${PWD_COMMAND}`; export r; \
26657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26658 $(HOST_EXPORTS) \
b813574b 26659 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26661 done; \
a90ef4bf
JM
26662 echo "Doing distclean in texinfo" ; \
26663 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26666 "RANLIB=$${RANLIB}" \
0c24b341 26667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 26668 distclean) \
2a4cbe27
NN
26669 || exit 1
26670
a90ef4bf 26671@endif texinfo
2a4cbe27 26672
a90ef4bf
JM
26673.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
26674maybe-maintainer-clean-texinfo:
26675@if texinfo
26676maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
a7254363 26677
a90ef4bf 26678maintainer-clean-texinfo:
0aed8855 26679 @: $(MAKE); $(unstage)
a90ef4bf 26680 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26681 r=`${PWD_COMMAND}`; export r; \
26682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26683 $(HOST_EXPORTS) \
b813574b 26684 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26686 done; \
a90ef4bf
JM
26687 echo "Doing maintainer-clean in texinfo" ; \
26688 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26691 "RANLIB=$${RANLIB}" \
0c24b341 26692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26693 maintainer-clean) \
2a4cbe27
NN
26694 || exit 1
26695
a90ef4bf 26696@endif texinfo
2a4cbe27 26697
2a4cbe27 26698
a7254363 26699
a90ef4bf
JM
26700.PHONY: configure-zlib maybe-configure-zlib
26701maybe-configure-zlib:
4f0ef2d8 26702@if gcc-bootstrap
a90ef4bf 26703configure-zlib: stage_current
4f0ef2d8 26704@endif gcc-bootstrap
a90ef4bf
JM
26705@if zlib
26706maybe-configure-zlib: configure-zlib
26707configure-zlib:
c52c6897
PB
26708 @r=`${PWD_COMMAND}`; export r; \
26709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26710 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
26711 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
1f53ca9a 26712 $(HOST_EXPORTS) \
a90ef4bf
JM
26713 echo Configuring in $(HOST_SUBDIR)/zlib; \
26714 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
04cf1b77 26715 case $(srcdir) in \
b00612cc 26716 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26717 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
b00612cc 26718 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
04cf1b77 26719 esac; \
1b6c0831
L
26720 module_srcdir=zlib; \
26721 $(SHELL) \
26722 $$s/$$module_srcdir/configure \
26723 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26724 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e81d5d05 26725 --target=${target_alias} @extra_host_zlib_configure_flags@ \
04cf1b77 26726 || exit 1
a90ef4bf 26727@endif zlib
04cf1b77 26728
a7254363
PB
26729
26730
a90ef4bf
JM
26731.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
26732maybe-configure-stage1-zlib:
26733@if zlib-bootstrap
26734maybe-configure-stage1-zlib: configure-stage1-zlib
26735configure-stage1-zlib:
c52c6897 26736 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 26737 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26738 @r=`${PWD_COMMAND}`; export r; \
26739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26740 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 26741 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
1b05fbbd 26742 $(HOST_EXPORTS) \
8ee82aff 26743 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26744 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
26745 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26746 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib ; \
26747 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26748 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26749 case $(srcdir) in \
26750 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26751 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26752 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26753 esac; \
1b6c0831
L
26754 module_srcdir=zlib; \
26755 $(SHELL) $$s/$$module_srcdir/configure \
26756 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26757 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26758 --target=${target_alias} \
26759 \
e81d5d05
L
26760 $(STAGE1_CONFIGURE_FLAGS) \
26761 @extra_host_zlib_configure_flags@
a90ef4bf 26762@endif zlib-bootstrap
d545f33b 26763
a90ef4bf
JM
26764.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
26765maybe-configure-stage2-zlib:
26766@if zlib-bootstrap
26767maybe-configure-stage2-zlib: configure-stage2-zlib
26768configure-stage2-zlib:
c52c6897 26769 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 26770 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26771 @r=`${PWD_COMMAND}`; export r; \
26772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26773 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 26774 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26775 $(HOST_EXPORTS) \
1b05fbbd 26776 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 26777 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26778 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
26779 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26780 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib ; \
26781 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26782 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26783 case $(srcdir) in \
26784 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26785 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26786 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26787 esac; \
1b6c0831
L
26788 module_srcdir=zlib; \
26789 $(SHELL) $$s/$$module_srcdir/configure \
26790 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26791 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26792 --target=${target_alias} \
26793 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
26794 $(STAGE2_CONFIGURE_FLAGS) \
26795 @extra_host_zlib_configure_flags@
a90ef4bf 26796@endif zlib-bootstrap
8520c408 26797
a90ef4bf
JM
26798.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
26799maybe-configure-stage3-zlib:
26800@if zlib-bootstrap
26801maybe-configure-stage3-zlib: configure-stage3-zlib
26802configure-stage3-zlib:
c52c6897 26803 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 26804 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26805 @r=`${PWD_COMMAND}`; export r; \
26806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26807 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 26808 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26809 $(HOST_EXPORTS) \
1b05fbbd 26810 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 26811 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26812 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
26813 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26814 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib ; \
26815 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26816 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26817 case $(srcdir) in \
26818 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26819 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26820 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26821 esac; \
1b6c0831
L
26822 module_srcdir=zlib; \
26823 $(SHELL) $$s/$$module_srcdir/configure \
26824 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26825 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26826 --target=${target_alias} \
26827 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
26828 $(STAGE3_CONFIGURE_FLAGS) \
26829 @extra_host_zlib_configure_flags@
a90ef4bf 26830@endif zlib-bootstrap
8520c408 26831
a90ef4bf
JM
26832.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
26833maybe-configure-stage4-zlib:
26834@if zlib-bootstrap
26835maybe-configure-stage4-zlib: configure-stage4-zlib
26836configure-stage4-zlib:
c52c6897 26837 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 26838 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26839 @r=`${PWD_COMMAND}`; export r; \
26840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26841 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 26842 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26843 $(HOST_EXPORTS) \
1b05fbbd 26844 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 26845 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26846 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
26847 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26848 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib ; \
26849 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26850 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26851 case $(srcdir) in \
26852 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26853 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26854 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26855 esac; \
1b6c0831
L
26856 module_srcdir=zlib; \
26857 $(SHELL) $$s/$$module_srcdir/configure \
26858 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26859 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26860 --target=${target_alias} \
26861 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
26862 $(STAGE4_CONFIGURE_FLAGS) \
26863 @extra_host_zlib_configure_flags@
a90ef4bf 26864@endif zlib-bootstrap
d545f33b 26865
a90ef4bf
JM
26866.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
26867maybe-configure-stageprofile-zlib:
26868@if zlib-bootstrap
26869maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
26870configure-stageprofile-zlib:
c52c6897 26871 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 26872 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26873 @r=`${PWD_COMMAND}`; export r; \
26874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26875 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 26876 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26877 $(HOST_EXPORTS) \
1b05fbbd
AO
26878 $(POSTSTAGE1_HOST_EXPORTS) \
26879 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26880 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
26881 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26882 echo Configuring stage profile in $(HOST_SUBDIR)/zlib ; \
26883 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26884 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26885 case $(srcdir) in \
26886 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26887 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26888 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26889 esac; \
1b6c0831
L
26890 module_srcdir=zlib; \
26891 $(SHELL) $$s/$$module_srcdir/configure \
26892 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26893 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26894 --target=${target_alias} \
26895 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
26896 $(STAGEprofile_CONFIGURE_FLAGS) \
26897 @extra_host_zlib_configure_flags@
a90ef4bf 26898@endif zlib-bootstrap
d545f33b 26899
a90ef4bf
JM
26900.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
26901maybe-configure-stagefeedback-zlib:
26902@if zlib-bootstrap
26903maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
26904configure-stagefeedback-zlib:
c52c6897 26905 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 26906 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
26907 @r=`${PWD_COMMAND}`; export r; \
26908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26909 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 26910 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 26911 $(HOST_EXPORTS) \
1b05fbbd
AO
26912 $(POSTSTAGE1_HOST_EXPORTS) \
26913 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26914 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
26915 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
a90ef4bf
JM
26916 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib ; \
26917 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
26918 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
26919 case $(srcdir) in \
26920 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26921 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
26922 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26923 esac; \
1b6c0831
L
26924 module_srcdir=zlib; \
26925 $(SHELL) $$s/$$module_srcdir/configure \
26926 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26927 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26928 --target=${target_alias} \
26929 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
26930 $(STAGEfeedback_CONFIGURE_FLAGS) \
26931 @extra_host_zlib_configure_flags@
a90ef4bf 26932@endif zlib-bootstrap
d545f33b
PB
26933
26934
26935
26936
26937
a90ef4bf
JM
26938.PHONY: all-zlib maybe-all-zlib
26939maybe-all-zlib:
4f0ef2d8 26940@if gcc-bootstrap
a90ef4bf 26941all-zlib: stage_current
4f0ef2d8 26942@endif gcc-bootstrap
a90ef4bf
JM
26943@if zlib
26944TARGET-zlib=all
26945maybe-all-zlib: all-zlib
26946all-zlib: configure-zlib
c52c6897 26947 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 26948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26949 $(HOST_EXPORTS) \
a90ef4bf 26950 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 26951 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26952 $(TARGET-zlib))
26953@endif zlib
04cf1b77 26954
a7254363 26955
d545f33b 26956
a90ef4bf
JM
26957.PHONY: all-stage1-zlib maybe-all-stage1-zlib
26958.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
26959maybe-all-stage1-zlib:
26960maybe-clean-stage1-zlib:
26961@if zlib-bootstrap
26962maybe-all-stage1-zlib: all-stage1-zlib
26963all-stage1: all-stage1-zlib
26964TARGET-stage1-zlib = $(TARGET-zlib)
26965all-stage1-zlib: configure-stage1-zlib
c52c6897 26966 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
26967 @r=`${PWD_COMMAND}`; export r; \
26968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26969 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 26970 $(HOST_EXPORTS) \
a90ef4bf 26971 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 26972 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 26973 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 26974 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
26975 LIBCFLAGS="$(LIBCFLAGS)" \
26976 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26977 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26978 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
26979 $(EXTRA_HOST_FLAGS) \
26980 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 26981 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 26982 $(TARGET-stage1-zlib)
d545f33b 26983
a90ef4bf
JM
26984maybe-clean-stage1-zlib: clean-stage1-zlib
26985clean-stage1: clean-stage1-zlib
26986clean-stage1-zlib:
9dbaa842 26987 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 26988 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 26989 else \
a90ef4bf 26990 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
26991 $(MAKE) stage1-start; \
26992 fi; \
a90ef4bf 26993 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 26994 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 26995 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 26996@endif zlib-bootstrap
d545f33b
PB
26997
26998
a90ef4bf
JM
26999.PHONY: all-stage2-zlib maybe-all-stage2-zlib
27000.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
27001maybe-all-stage2-zlib:
27002maybe-clean-stage2-zlib:
27003@if zlib-bootstrap
27004maybe-all-stage2-zlib: all-stage2-zlib
27005all-stage2: all-stage2-zlib
27006TARGET-stage2-zlib = $(TARGET-zlib)
27007all-stage2-zlib: configure-stage2-zlib
c52c6897 27008 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
27009 @r=`${PWD_COMMAND}`; export r; \
27010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27011 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 27012 $(HOST_EXPORTS) \
1f53ca9a 27013 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27014 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27015 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27016 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 27017 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
27018 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27019 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27020 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27021 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27022 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27023 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 27024 $(TARGET-stage2-zlib)
d545f33b 27025
a90ef4bf
JM
27026maybe-clean-stage2-zlib: clean-stage2-zlib
27027clean-stage2: clean-stage2-zlib
27028clean-stage2-zlib:
9dbaa842 27029 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 27030 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27031 else \
a90ef4bf 27032 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27033 $(MAKE) stage2-start; \
27034 fi; \
a90ef4bf 27035 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27036 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27037@endif zlib-bootstrap
d545f33b
PB
27038
27039
a90ef4bf
JM
27040.PHONY: all-stage3-zlib maybe-all-stage3-zlib
27041.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
27042maybe-all-stage3-zlib:
27043maybe-clean-stage3-zlib:
27044@if zlib-bootstrap
27045maybe-all-stage3-zlib: all-stage3-zlib
27046all-stage3: all-stage3-zlib
27047TARGET-stage3-zlib = $(TARGET-zlib)
27048all-stage3-zlib: configure-stage3-zlib
c52c6897 27049 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
27050 @r=`${PWD_COMMAND}`; export r; \
27051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27052 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 27053 $(HOST_EXPORTS) \
1f53ca9a 27054 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27055 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27056 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27057 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 27058 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
27059 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27060 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27061 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27062 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27063 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27064 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 27065 $(TARGET-stage3-zlib)
d545f33b 27066
a90ef4bf
JM
27067maybe-clean-stage3-zlib: clean-stage3-zlib
27068clean-stage3: clean-stage3-zlib
27069clean-stage3-zlib:
9dbaa842 27070 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 27071 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27072 else \
a90ef4bf 27073 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27074 $(MAKE) stage3-start; \
27075 fi; \
a90ef4bf 27076 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27077 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27078@endif zlib-bootstrap
d545f33b
PB
27079
27080
a90ef4bf
JM
27081.PHONY: all-stage4-zlib maybe-all-stage4-zlib
27082.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
27083maybe-all-stage4-zlib:
27084maybe-clean-stage4-zlib:
27085@if zlib-bootstrap
27086maybe-all-stage4-zlib: all-stage4-zlib
27087all-stage4: all-stage4-zlib
27088TARGET-stage4-zlib = $(TARGET-zlib)
27089all-stage4-zlib: configure-stage4-zlib
c52c6897 27090 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
27091 @r=`${PWD_COMMAND}`; export r; \
27092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27093 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 27094 $(HOST_EXPORTS) \
1f53ca9a 27095 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27096 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27097 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27098 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 27099 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 27100 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
27101 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27102 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27103 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27104 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27105 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 27106 $(TARGET-stage4-zlib)
d545f33b 27107
a90ef4bf
JM
27108maybe-clean-stage4-zlib: clean-stage4-zlib
27109clean-stage4: clean-stage4-zlib
27110clean-stage4-zlib:
9dbaa842 27111 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 27112 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27113 else \
a90ef4bf 27114 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27115 $(MAKE) stage4-start; \
27116 fi; \
a90ef4bf 27117 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27118 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27119@endif zlib-bootstrap
d545f33b
PB
27120
27121
a90ef4bf
JM
27122.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
27123.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
27124maybe-all-stageprofile-zlib:
27125maybe-clean-stageprofile-zlib:
27126@if zlib-bootstrap
27127maybe-all-stageprofile-zlib: all-stageprofile-zlib
27128all-stageprofile: all-stageprofile-zlib
27129TARGET-stageprofile-zlib = $(TARGET-zlib)
27130all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 27131 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
27132 @r=`${PWD_COMMAND}`; export r; \
27133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27134 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 27135 $(HOST_EXPORTS) \
1f53ca9a 27136 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27137 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27138 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27139 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 27140 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
27141 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27142 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27143 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27144 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27145 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27146 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 27147 $(TARGET-stageprofile-zlib)
d545f33b 27148
a90ef4bf
JM
27149maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
27150clean-stageprofile: clean-stageprofile-zlib
27151clean-stageprofile-zlib:
9dbaa842 27152 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 27153 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27154 else \
a90ef4bf 27155 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27156 $(MAKE) stageprofile-start; \
27157 fi; \
a90ef4bf 27158 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27159 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27160@endif zlib-bootstrap
d545f33b
PB
27161
27162
a90ef4bf
JM
27163.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
27164.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
27165maybe-all-stagefeedback-zlib:
27166maybe-clean-stagefeedback-zlib:
27167@if zlib-bootstrap
27168maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
27169all-stagefeedback: all-stagefeedback-zlib
27170TARGET-stagefeedback-zlib = $(TARGET-zlib)
27171all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 27172 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
27173 @r=`${PWD_COMMAND}`; export r; \
27174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27175 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 27176 $(HOST_EXPORTS) \
1f53ca9a 27177 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27178 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27179 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27180 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 27181 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
27182 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27183 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27184 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27185 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27186 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27187 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 27188 $(TARGET-stagefeedback-zlib)
d545f33b 27189
a90ef4bf
JM
27190maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
27191clean-stagefeedback: clean-stagefeedback-zlib
27192clean-stagefeedback-zlib:
9dbaa842 27193 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 27194 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27195 else \
a90ef4bf 27196 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27197 $(MAKE) stagefeedback-start; \
27198 fi; \
a90ef4bf 27199 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27200 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27201@endif zlib-bootstrap
d545f33b
PB
27202
27203
27204
27205
27206
a90ef4bf
JM
27207.PHONY: check-zlib maybe-check-zlib
27208maybe-check-zlib:
27209@if zlib
27210maybe-check-zlib: check-zlib
04cf1b77 27211
a90ef4bf 27212check-zlib:
04cf1b77 27213
a90ef4bf 27214@endif zlib
04cf1b77 27215
a90ef4bf
JM
27216.PHONY: install-zlib maybe-install-zlib
27217maybe-install-zlib:
27218@if zlib
27219maybe-install-zlib: install-zlib
04cf1b77 27220
a90ef4bf 27221install-zlib:
04cf1b77 27222
a90ef4bf 27223@endif zlib
04cf1b77 27224
a90ef4bf
JM
27225.PHONY: install-strip-zlib maybe-install-strip-zlib
27226maybe-install-strip-zlib:
27227@if zlib
27228maybe-install-strip-zlib: install-strip-zlib
9b980aa1 27229
a90ef4bf 27230install-strip-zlib:
9b980aa1 27231
a90ef4bf 27232@endif zlib
9b980aa1 27233
56a8fe78 27234# Other targets (info, dvi, pdf, etc.)
04cf1b77 27235
a90ef4bf
JM
27236.PHONY: maybe-info-zlib info-zlib
27237maybe-info-zlib:
27238@if zlib
27239maybe-info-zlib: info-zlib
04cf1b77 27240
a90ef4bf
JM
27241info-zlib: \
27242 configure-zlib
27243 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27244 r=`${PWD_COMMAND}`; export r; \
27245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27246 $(HOST_EXPORTS) \
b813574b 27247 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27249 done; \
a90ef4bf
JM
27250 echo "Doing info in zlib" ; \
27251 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27254 "RANLIB=$${RANLIB}" \
0c24b341 27255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27256 info) \
04cf1b77
PB
27257 || exit 1
27258
a90ef4bf 27259@endif zlib
04cf1b77 27260
a90ef4bf
JM
27261.PHONY: maybe-dvi-zlib dvi-zlib
27262maybe-dvi-zlib:
27263@if zlib
27264maybe-dvi-zlib: dvi-zlib
04cf1b77 27265
a90ef4bf
JM
27266dvi-zlib: \
27267 configure-zlib
27268 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27269 r=`${PWD_COMMAND}`; export r; \
27270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27271 $(HOST_EXPORTS) \
b813574b 27272 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27274 done; \
a90ef4bf
JM
27275 echo "Doing dvi in zlib" ; \
27276 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27279 "RANLIB=$${RANLIB}" \
0c24b341 27280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27281 dvi) \
04cf1b77
PB
27282 || exit 1
27283
a90ef4bf 27284@endif zlib
04cf1b77 27285
a90ef4bf
JM
27286.PHONY: maybe-pdf-zlib pdf-zlib
27287maybe-pdf-zlib:
27288@if zlib
27289maybe-pdf-zlib: pdf-zlib
56a8fe78 27290
a90ef4bf
JM
27291pdf-zlib: \
27292 configure-zlib
27293 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
27294 r=`${PWD_COMMAND}`; export r; \
27295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27296 $(HOST_EXPORTS) \
27297 for flag in $(EXTRA_HOST_FLAGS) ; do \
27298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27299 done; \
a90ef4bf
JM
27300 echo "Doing pdf in zlib" ; \
27301 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
27302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27304 "RANLIB=$${RANLIB}" \
0c24b341 27305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27306 pdf) \
27307 || exit 1
27308
a90ef4bf 27309@endif zlib
56a8fe78 27310
a90ef4bf
JM
27311.PHONY: maybe-html-zlib html-zlib
27312maybe-html-zlib:
27313@if zlib
27314maybe-html-zlib: html-zlib
6d389afc 27315
a90ef4bf
JM
27316html-zlib: \
27317 configure-zlib
27318 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
27319 r=`${PWD_COMMAND}`; export r; \
27320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27321 $(HOST_EXPORTS) \
27322 for flag in $(EXTRA_HOST_FLAGS) ; do \
27323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27324 done; \
a90ef4bf
JM
27325 echo "Doing html in zlib" ; \
27326 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
27327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27329 "RANLIB=$${RANLIB}" \
0c24b341 27330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27331 html) \
27332 || exit 1
27333
a90ef4bf 27334@endif zlib
6d389afc 27335
a90ef4bf
JM
27336.PHONY: maybe-TAGS-zlib TAGS-zlib
27337maybe-TAGS-zlib:
27338@if zlib
27339maybe-TAGS-zlib: TAGS-zlib
04cf1b77 27340
a90ef4bf
JM
27341TAGS-zlib: \
27342 configure-zlib
27343 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27344 r=`${PWD_COMMAND}`; export r; \
27345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27346 $(HOST_EXPORTS) \
b813574b 27347 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27349 done; \
a90ef4bf
JM
27350 echo "Doing TAGS in zlib" ; \
27351 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27354 "RANLIB=$${RANLIB}" \
0c24b341 27355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27356 TAGS) \
04cf1b77
PB
27357 || exit 1
27358
a90ef4bf 27359@endif zlib
04cf1b77 27360
a90ef4bf
JM
27361.PHONY: maybe-install-info-zlib install-info-zlib
27362maybe-install-info-zlib:
27363@if zlib
27364maybe-install-info-zlib: install-info-zlib
04cf1b77 27365
a90ef4bf
JM
27366install-info-zlib: \
27367 configure-zlib \
27368 info-zlib
27369 @[ -f ./zlib/Makefile ] || exit 0; \
27370 r=`${PWD_COMMAND}`; export r; \
27371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27372 $(HOST_EXPORTS) \
b813574b 27373 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27375 done; \
a90ef4bf
JM
27376 echo "Doing install-info in zlib" ; \
27377 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27380 "RANLIB=$${RANLIB}" \
0c24b341 27381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27382 install-info) \
04cf1b77
PB
27383 || exit 1
27384
a90ef4bf 27385@endif zlib
04cf1b77 27386
a90ef4bf
JM
27387.PHONY: maybe-install-pdf-zlib install-pdf-zlib
27388maybe-install-pdf-zlib:
27389@if zlib
27390maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 27391
a90ef4bf
JM
27392install-pdf-zlib: \
27393 configure-zlib \
27394 pdf-zlib
27395 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
27396 r=`${PWD_COMMAND}`; export r; \
27397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27398 $(HOST_EXPORTS) \
27399 for flag in $(EXTRA_HOST_FLAGS) ; do \
27400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27401 done; \
a90ef4bf
JM
27402 echo "Doing install-pdf in zlib" ; \
27403 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
27404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27406 "RANLIB=$${RANLIB}" \
0c24b341 27407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27408 install-pdf) \
27409 || exit 1
27410
a90ef4bf 27411@endif zlib
a3ca38d2 27412
a90ef4bf
JM
27413.PHONY: maybe-install-html-zlib install-html-zlib
27414maybe-install-html-zlib:
27415@if zlib
27416maybe-install-html-zlib: install-html-zlib
108a6f8e 27417
a90ef4bf
JM
27418install-html-zlib: \
27419 configure-zlib \
27420 html-zlib
27421 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
27422 r=`${PWD_COMMAND}`; export r; \
27423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27424 $(HOST_EXPORTS) \
27425 for flag in $(EXTRA_HOST_FLAGS) ; do \
27426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27427 done; \
a90ef4bf
JM
27428 echo "Doing install-html in zlib" ; \
27429 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
27430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27432 "RANLIB=$${RANLIB}" \
0c24b341 27433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27434 install-html) \
27435 || exit 1
27436
a90ef4bf 27437@endif zlib
108a6f8e 27438
a90ef4bf
JM
27439.PHONY: maybe-installcheck-zlib installcheck-zlib
27440maybe-installcheck-zlib:
27441@if zlib
27442maybe-installcheck-zlib: installcheck-zlib
04cf1b77 27443
a90ef4bf
JM
27444installcheck-zlib: \
27445 configure-zlib
27446 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27447 r=`${PWD_COMMAND}`; export r; \
27448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27449 $(HOST_EXPORTS) \
b813574b 27450 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27452 done; \
a90ef4bf
JM
27453 echo "Doing installcheck in zlib" ; \
27454 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27457 "RANLIB=$${RANLIB}" \
0c24b341 27458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27459 installcheck) \
04cf1b77
PB
27460 || exit 1
27461
a90ef4bf 27462@endif zlib
04cf1b77 27463
a90ef4bf
JM
27464.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
27465maybe-mostlyclean-zlib:
27466@if zlib
27467maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 27468
a90ef4bf
JM
27469mostlyclean-zlib:
27470 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27471 r=`${PWD_COMMAND}`; export r; \
27472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27473 $(HOST_EXPORTS) \
b813574b 27474 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27476 done; \
a90ef4bf
JM
27477 echo "Doing mostlyclean in zlib" ; \
27478 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27481 "RANLIB=$${RANLIB}" \
0c24b341 27482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27483 mostlyclean) \
04cf1b77
PB
27484 || exit 1
27485
a90ef4bf 27486@endif zlib
04cf1b77 27487
a90ef4bf
JM
27488.PHONY: maybe-clean-zlib clean-zlib
27489maybe-clean-zlib:
27490@if zlib
27491maybe-clean-zlib: clean-zlib
04cf1b77 27492
a90ef4bf
JM
27493clean-zlib:
27494 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27495 r=`${PWD_COMMAND}`; export r; \
27496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27497 $(HOST_EXPORTS) \
b813574b 27498 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27500 done; \
a90ef4bf
JM
27501 echo "Doing clean in zlib" ; \
27502 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27505 "RANLIB=$${RANLIB}" \
0c24b341 27506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27507 clean) \
04cf1b77
PB
27508 || exit 1
27509
a90ef4bf 27510@endif zlib
04cf1b77 27511
a90ef4bf
JM
27512.PHONY: maybe-distclean-zlib distclean-zlib
27513maybe-distclean-zlib:
27514@if zlib
27515maybe-distclean-zlib: distclean-zlib
04cf1b77 27516
a90ef4bf
JM
27517distclean-zlib:
27518 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27519 r=`${PWD_COMMAND}`; export r; \
27520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27521 $(HOST_EXPORTS) \
b813574b 27522 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27524 done; \
a90ef4bf
JM
27525 echo "Doing distclean in zlib" ; \
27526 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27529 "RANLIB=$${RANLIB}" \
0c24b341 27530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27531 distclean) \
04cf1b77
PB
27532 || exit 1
27533
a90ef4bf 27534@endif zlib
04cf1b77 27535
a90ef4bf
JM
27536.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
27537maybe-maintainer-clean-zlib:
27538@if zlib
27539maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 27540
a90ef4bf
JM
27541maintainer-clean-zlib:
27542 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27543 r=`${PWD_COMMAND}`; export r; \
27544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27545 $(HOST_EXPORTS) \
b813574b 27546 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27548 done; \
a90ef4bf
JM
27549 echo "Doing maintainer-clean in zlib" ; \
27550 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27553 "RANLIB=$${RANLIB}" \
0c24b341 27554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27555 maintainer-clean) \
04cf1b77
PB
27556 || exit 1
27557
a90ef4bf 27558@endif zlib
04cf1b77
PB
27559
27560
a7254363 27561
a90ef4bf
JM
27562.PHONY: configure-gdb maybe-configure-gdb
27563maybe-configure-gdb:
4f0ef2d8 27564@if gcc-bootstrap
a90ef4bf 27565configure-gdb: stage_current
4f0ef2d8 27566@endif gcc-bootstrap
a90ef4bf
JM
27567@if gdb
27568maybe-configure-gdb: configure-gdb
27569configure-gdb:
27570 @: $(MAKE); $(unstage)
c52c6897
PB
27571 @r=`${PWD_COMMAND}`; export r; \
27572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27573 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
27574 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb ; \
1f53ca9a 27575 $(HOST_EXPORTS) \
a90ef4bf
JM
27576 echo Configuring in $(HOST_SUBDIR)/gdb; \
27577 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 27578 case $(srcdir) in \
b00612cc 27579 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27580 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 27581 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 27582 esac; \
1b6c0831
L
27583 module_srcdir=gdb; \
27584 $(SHELL) \
27585 $$s/$$module_srcdir/configure \
27586 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27587 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27588 --target=${target_alias} \
4fa63067 27589 || exit 1
a90ef4bf 27590@endif gdb
4fa63067 27591
a7254363
PB
27592
27593
d545f33b 27594
8520c408 27595
a90ef4bf
JM
27596.PHONY: all-gdb maybe-all-gdb
27597maybe-all-gdb:
27598@if gcc-bootstrap
27599all-gdb: stage_current
27600@endif gcc-bootstrap
27601@if gdb
27602TARGET-gdb=all
27603maybe-all-gdb: all-gdb
27604all-gdb: configure-gdb
27605 @: $(MAKE); $(unstage)
c52c6897
PB
27606 @r=`${PWD_COMMAND}`; export r; \
27607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27608 $(HOST_EXPORTS) \
27609 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 27610 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27611 $(TARGET-gdb))
27612@endif gdb
8520c408 27613
a90ef4bf
JM
27614
27615
27616
27617.PHONY: check-gdb maybe-check-gdb
27618maybe-check-gdb:
27619@if gdb
27620maybe-check-gdb: check-gdb
27621
27622check-gdb:
27623 @: $(MAKE); $(unstage)
c52c6897
PB
27624 @r=`${PWD_COMMAND}`; export r; \
27625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 27626 $(HOST_EXPORTS) \
a90ef4bf
JM
27627 (cd $(HOST_SUBDIR)/gdb && \
27628 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 27629
a90ef4bf
JM
27630@endif gdb
27631
27632.PHONY: install-gdb maybe-install-gdb
27633maybe-install-gdb:
27634@if gdb
27635maybe-install-gdb: install-gdb
27636
27637install-gdb: installdirs
27638 @: $(MAKE); $(unstage)
c52c6897
PB
27639 @r=`${PWD_COMMAND}`; export r; \
27640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 27641 $(HOST_EXPORTS) \
a90ef4bf
JM
27642 (cd $(HOST_SUBDIR)/gdb && \
27643 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 27644
a90ef4bf
JM
27645@endif gdb
27646
27647.PHONY: install-strip-gdb maybe-install-strip-gdb
27648maybe-install-strip-gdb:
27649@if gdb
27650maybe-install-strip-gdb: install-strip-gdb
27651
27652install-strip-gdb: installdirs
27653 @: $(MAKE); $(unstage)
c52c6897
PB
27654 @r=`${PWD_COMMAND}`; export r; \
27655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 27656 $(HOST_EXPORTS) \
a90ef4bf
JM
27657 (cd $(HOST_SUBDIR)/gdb && \
27658 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 27659
a90ef4bf 27660@endif gdb
d545f33b 27661
a90ef4bf 27662# Other targets (info, dvi, pdf, etc.)
d545f33b 27663
a90ef4bf
JM
27664.PHONY: maybe-info-gdb info-gdb
27665maybe-info-gdb:
27666@if gdb
27667maybe-info-gdb: info-gdb
d545f33b 27668
a90ef4bf
JM
27669info-gdb: \
27670 configure-gdb
27671 @: $(MAKE); $(unstage)
27672 @[ -f ./gdb/Makefile ] || exit 0; \
27673 r=`${PWD_COMMAND}`; export r; \
4fa63067 27674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27675 $(HOST_EXPORTS) \
27676 for flag in $(EXTRA_HOST_FLAGS) ; do \
27677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27678 done; \
27679 echo "Doing info in gdb" ; \
27680 (cd $(HOST_SUBDIR)/gdb && \
27681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27683 "RANLIB=$${RANLIB}" \
27684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27685 info) \
27686 || exit 1
4fa63067 27687
a90ef4bf 27688@endif gdb
a7254363 27689
a90ef4bf
JM
27690.PHONY: maybe-dvi-gdb dvi-gdb
27691maybe-dvi-gdb:
27692@if gdb
27693maybe-dvi-gdb: dvi-gdb
d545f33b 27694
a90ef4bf
JM
27695dvi-gdb: \
27696 configure-gdb
27697 @: $(MAKE); $(unstage)
27698 @[ -f ./gdb/Makefile ] || exit 0; \
27699 r=`${PWD_COMMAND}`; export r; \
d545f33b 27700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
27701 $(HOST_EXPORTS) \
27702 for flag in $(EXTRA_HOST_FLAGS) ; do \
27703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27704 done; \
27705 echo "Doing dvi in gdb" ; \
27706 (cd $(HOST_SUBDIR)/gdb && \
27707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27709 "RANLIB=$${RANLIB}" \
27710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27711 dvi) \
27712 || exit 1
d545f33b 27713
a90ef4bf 27714@endif gdb
d545f33b 27715
a90ef4bf
JM
27716.PHONY: maybe-pdf-gdb pdf-gdb
27717maybe-pdf-gdb:
27718@if gdb
27719maybe-pdf-gdb: pdf-gdb
d545f33b 27720
a90ef4bf
JM
27721pdf-gdb: \
27722 configure-gdb
9b980aa1 27723 @: $(MAKE); $(unstage)
a90ef4bf 27724 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27725 r=`${PWD_COMMAND}`; export r; \
27726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27727 $(HOST_EXPORTS) \
b813574b 27728 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27730 done; \
a90ef4bf
JM
27731 echo "Doing pdf in gdb" ; \
27732 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27735 "RANLIB=$${RANLIB}" \
0c24b341 27736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27737 pdf) \
2a4cbe27
NN
27738 || exit 1
27739
a90ef4bf 27740@endif gdb
2a4cbe27 27741
a90ef4bf
JM
27742.PHONY: maybe-html-gdb html-gdb
27743maybe-html-gdb:
27744@if gdb
27745maybe-html-gdb: html-gdb
2a4cbe27 27746
a90ef4bf
JM
27747html-gdb: \
27748 configure-gdb
27749 @: $(MAKE); $(unstage)
27750 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27751 r=`${PWD_COMMAND}`; export r; \
27752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27753 $(HOST_EXPORTS) \
b813574b 27754 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27756 done; \
a90ef4bf
JM
27757 echo "Doing html in gdb" ; \
27758 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27761 "RANLIB=$${RANLIB}" \
0c24b341 27762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27763 html) \
2a4cbe27
NN
27764 || exit 1
27765
a90ef4bf 27766@endif gdb
2a4cbe27 27767
a90ef4bf
JM
27768.PHONY: maybe-TAGS-gdb TAGS-gdb
27769maybe-TAGS-gdb:
27770@if gdb
27771maybe-TAGS-gdb: TAGS-gdb
56a8fe78 27772
a90ef4bf
JM
27773TAGS-gdb: \
27774 configure-gdb
27775 @: $(MAKE); $(unstage)
27776 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
27777 r=`${PWD_COMMAND}`; export r; \
27778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27779 $(HOST_EXPORTS) \
27780 for flag in $(EXTRA_HOST_FLAGS) ; do \
27781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27782 done; \
a90ef4bf
JM
27783 echo "Doing TAGS in gdb" ; \
27784 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
27785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27787 "RANLIB=$${RANLIB}" \
0c24b341 27788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27789 TAGS) \
56a8fe78
DD
27790 || exit 1
27791
a90ef4bf 27792@endif gdb
56a8fe78 27793
a90ef4bf
JM
27794.PHONY: maybe-install-info-gdb install-info-gdb
27795maybe-install-info-gdb:
27796@if gdb
27797maybe-install-info-gdb: install-info-gdb
6d389afc 27798
a90ef4bf
JM
27799install-info-gdb: \
27800 configure-gdb \
27801 info-gdb
27802 @: $(MAKE); $(unstage)
27803 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
27804 r=`${PWD_COMMAND}`; export r; \
27805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27806 $(HOST_EXPORTS) \
27807 for flag in $(EXTRA_HOST_FLAGS) ; do \
27808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27809 done; \
a90ef4bf
JM
27810 echo "Doing install-info in gdb" ; \
27811 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
27812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27814 "RANLIB=$${RANLIB}" \
0c24b341 27815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27816 install-info) \
6d389afc
MS
27817 || exit 1
27818
a90ef4bf 27819@endif gdb
6d389afc 27820
a90ef4bf
JM
27821.PHONY: maybe-install-pdf-gdb install-pdf-gdb
27822maybe-install-pdf-gdb:
27823@if gdb
27824maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 27825
a90ef4bf
JM
27826install-pdf-gdb: \
27827 configure-gdb \
27828 pdf-gdb
27829 @: $(MAKE); $(unstage)
27830 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27831 r=`${PWD_COMMAND}`; export r; \
27832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27833 $(HOST_EXPORTS) \
b813574b 27834 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27836 done; \
a90ef4bf
JM
27837 echo "Doing install-pdf in gdb" ; \
27838 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27841 "RANLIB=$${RANLIB}" \
0c24b341 27842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27843 install-pdf) \
2a4cbe27
NN
27844 || exit 1
27845
a90ef4bf 27846@endif gdb
2a4cbe27 27847
a90ef4bf
JM
27848.PHONY: maybe-install-html-gdb install-html-gdb
27849maybe-install-html-gdb:
27850@if gdb
27851maybe-install-html-gdb: install-html-gdb
2a4cbe27 27852
a90ef4bf
JM
27853install-html-gdb: \
27854 configure-gdb \
27855 html-gdb
27856 @: $(MAKE); $(unstage)
27857 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27858 r=`${PWD_COMMAND}`; export r; \
27859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27860 $(HOST_EXPORTS) \
b813574b 27861 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27863 done; \
a90ef4bf
JM
27864 echo "Doing install-html in gdb" ; \
27865 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27868 "RANLIB=$${RANLIB}" \
0c24b341 27869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27870 install-html) \
2a4cbe27
NN
27871 || exit 1
27872
a90ef4bf 27873@endif gdb
2a4cbe27 27874
a90ef4bf
JM
27875.PHONY: maybe-installcheck-gdb installcheck-gdb
27876maybe-installcheck-gdb:
27877@if gdb
27878maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 27879
a90ef4bf
JM
27880installcheck-gdb: \
27881 configure-gdb
27882 @: $(MAKE); $(unstage)
27883 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
27884 r=`${PWD_COMMAND}`; export r; \
27885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27886 $(HOST_EXPORTS) \
27887 for flag in $(EXTRA_HOST_FLAGS) ; do \
27888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27889 done; \
a90ef4bf
JM
27890 echo "Doing installcheck in gdb" ; \
27891 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
27892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27894 "RANLIB=$${RANLIB}" \
0c24b341 27895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27896 installcheck) \
a3ca38d2
DD
27897 || exit 1
27898
a90ef4bf 27899@endif gdb
a3ca38d2 27900
a90ef4bf
JM
27901.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
27902maybe-mostlyclean-gdb:
27903@if gdb
27904maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 27905
a90ef4bf
JM
27906mostlyclean-gdb:
27907 @: $(MAKE); $(unstage)
27908 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
27909 r=`${PWD_COMMAND}`; export r; \
27910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27911 $(HOST_EXPORTS) \
27912 for flag in $(EXTRA_HOST_FLAGS) ; do \
27913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27914 done; \
a90ef4bf
JM
27915 echo "Doing mostlyclean in gdb" ; \
27916 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
27917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27919 "RANLIB=$${RANLIB}" \
0c24b341 27920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27921 mostlyclean) \
108a6f8e
CD
27922 || exit 1
27923
a90ef4bf 27924@endif gdb
108a6f8e 27925
a90ef4bf
JM
27926.PHONY: maybe-clean-gdb clean-gdb
27927maybe-clean-gdb:
27928@if gdb
27929maybe-clean-gdb: clean-gdb
2a4cbe27 27930
a90ef4bf
JM
27931clean-gdb:
27932 @: $(MAKE); $(unstage)
27933 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27934 r=`${PWD_COMMAND}`; export r; \
27935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27936 $(HOST_EXPORTS) \
b813574b 27937 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27939 done; \
a90ef4bf
JM
27940 echo "Doing clean in gdb" ; \
27941 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27944 "RANLIB=$${RANLIB}" \
0c24b341 27945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27946 clean) \
2a4cbe27
NN
27947 || exit 1
27948
a90ef4bf 27949@endif gdb
2a4cbe27 27950
a90ef4bf
JM
27951.PHONY: maybe-distclean-gdb distclean-gdb
27952maybe-distclean-gdb:
27953@if gdb
27954maybe-distclean-gdb: distclean-gdb
2a4cbe27 27955
a90ef4bf
JM
27956distclean-gdb:
27957 @: $(MAKE); $(unstage)
27958 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27959 r=`${PWD_COMMAND}`; export r; \
27960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27961 $(HOST_EXPORTS) \
b813574b 27962 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27964 done; \
a90ef4bf
JM
27965 echo "Doing distclean in gdb" ; \
27966 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27969 "RANLIB=$${RANLIB}" \
0c24b341 27970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27971 distclean) \
2a4cbe27
NN
27972 || exit 1
27973
a90ef4bf 27974@endif gdb
2a4cbe27 27975
a90ef4bf
JM
27976.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
27977maybe-maintainer-clean-gdb:
27978@if gdb
27979maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 27980
a90ef4bf
JM
27981maintainer-clean-gdb:
27982 @: $(MAKE); $(unstage)
27983 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
27984 r=`${PWD_COMMAND}`; export r; \
27985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27986 $(HOST_EXPORTS) \
b813574b 27987 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27989 done; \
a90ef4bf
JM
27990 echo "Doing maintainer-clean in gdb" ; \
27991 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
27992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27994 "RANLIB=$${RANLIB}" \
0c24b341 27995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27996 maintainer-clean) \
2a4cbe27
NN
27997 || exit 1
27998
a90ef4bf 27999@endif gdb
2a4cbe27 28000
2a4cbe27 28001
a7254363 28002
a90ef4bf
JM
28003.PHONY: configure-expect maybe-configure-expect
28004maybe-configure-expect:
4f0ef2d8 28005@if gcc-bootstrap
a90ef4bf 28006configure-expect: stage_current
4f0ef2d8 28007@endif gcc-bootstrap
a90ef4bf
JM
28008@if expect
28009maybe-configure-expect: configure-expect
28010configure-expect:
28011 @: $(MAKE); $(unstage)
c52c6897
PB
28012 @r=`${PWD_COMMAND}`; export r; \
28013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28014 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
28015 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect ; \
1f53ca9a 28016 $(HOST_EXPORTS) \
a90ef4bf
JM
28017 echo Configuring in $(HOST_SUBDIR)/expect; \
28018 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
28019 case $(srcdir) in \
28020 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28021 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
28022 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28023 esac; \
1b6c0831
L
28024 module_srcdir=expect; \
28025 $(SHELL) \
28026 $$s/$$module_srcdir/configure \
28027 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28028 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28029 --target=${target_alias} \
be01d343 28030 || exit 1
a90ef4bf 28031@endif expect
be01d343
PB
28032
28033
28034
be01d343 28035
8520c408 28036
a90ef4bf
JM
28037.PHONY: all-expect maybe-all-expect
28038maybe-all-expect:
28039@if gcc-bootstrap
28040all-expect: stage_current
28041@endif gcc-bootstrap
28042@if expect
28043TARGET-expect=all
28044maybe-all-expect: all-expect
28045all-expect: configure-expect
28046 @: $(MAKE); $(unstage)
c52c6897
PB
28047 @r=`${PWD_COMMAND}`; export r; \
28048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28049 $(HOST_EXPORTS) \
28050 (cd $(HOST_SUBDIR)/expect && \
b3676d82 28051 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28052 $(TARGET-expect))
28053@endif expect
8520c408 28054
a90ef4bf
JM
28055
28056
28057
28058.PHONY: check-expect maybe-check-expect
28059maybe-check-expect:
28060@if expect
28061maybe-check-expect: check-expect
28062
28063check-expect:
28064 @: $(MAKE); $(unstage)
c52c6897
PB
28065 @r=`${PWD_COMMAND}`; export r; \
28066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28067 $(HOST_EXPORTS) \
a90ef4bf
JM
28068 (cd $(HOST_SUBDIR)/expect && \
28069 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 28070
a90ef4bf
JM
28071@endif expect
28072
28073.PHONY: install-expect maybe-install-expect
28074maybe-install-expect:
28075@if expect
28076maybe-install-expect: install-expect
28077
28078install-expect: installdirs
28079 @: $(MAKE); $(unstage)
c52c6897
PB
28080 @r=`${PWD_COMMAND}`; export r; \
28081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28082 $(HOST_EXPORTS) \
a90ef4bf
JM
28083 (cd $(HOST_SUBDIR)/expect && \
28084 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 28085
a90ef4bf
JM
28086@endif expect
28087
28088.PHONY: install-strip-expect maybe-install-strip-expect
28089maybe-install-strip-expect:
28090@if expect
28091maybe-install-strip-expect: install-strip-expect
28092
28093install-strip-expect: installdirs
28094 @: $(MAKE); $(unstage)
c52c6897
PB
28095 @r=`${PWD_COMMAND}`; export r; \
28096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28097 $(HOST_EXPORTS) \
a90ef4bf
JM
28098 (cd $(HOST_SUBDIR)/expect && \
28099 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 28100
a90ef4bf 28101@endif expect
be01d343 28102
a90ef4bf 28103# Other targets (info, dvi, pdf, etc.)
be01d343 28104
a90ef4bf
JM
28105.PHONY: maybe-info-expect info-expect
28106maybe-info-expect:
28107@if expect
28108maybe-info-expect: info-expect
be01d343 28109
a90ef4bf
JM
28110info-expect: \
28111 configure-expect
28112 @: $(MAKE); $(unstage)
28113 @[ -f ./expect/Makefile ] || exit 0; \
28114 r=`${PWD_COMMAND}`; export r; \
be01d343 28115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28116 $(HOST_EXPORTS) \
28117 for flag in $(EXTRA_HOST_FLAGS) ; do \
28118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28119 done; \
28120 echo "Doing info in expect" ; \
28121 (cd $(HOST_SUBDIR)/expect && \
28122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28124 "RANLIB=$${RANLIB}" \
28125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28126 info) \
28127 || exit 1
be01d343 28128
a90ef4bf 28129@endif expect
be01d343 28130
a90ef4bf
JM
28131.PHONY: maybe-dvi-expect dvi-expect
28132maybe-dvi-expect:
28133@if expect
28134maybe-dvi-expect: dvi-expect
be01d343 28135
a90ef4bf
JM
28136dvi-expect: \
28137 configure-expect
28138 @: $(MAKE); $(unstage)
28139 @[ -f ./expect/Makefile ] || exit 0; \
28140 r=`${PWD_COMMAND}`; export r; \
be01d343 28141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28142 $(HOST_EXPORTS) \
28143 for flag in $(EXTRA_HOST_FLAGS) ; do \
28144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28145 done; \
28146 echo "Doing dvi in expect" ; \
28147 (cd $(HOST_SUBDIR)/expect && \
28148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28150 "RANLIB=$${RANLIB}" \
28151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28152 dvi) \
28153 || exit 1
be01d343 28154
a90ef4bf 28155@endif expect
be01d343 28156
a90ef4bf
JM
28157.PHONY: maybe-pdf-expect pdf-expect
28158maybe-pdf-expect:
28159@if expect
28160maybe-pdf-expect: pdf-expect
be01d343 28161
a90ef4bf
JM
28162pdf-expect: \
28163 configure-expect
28164 @: $(MAKE); $(unstage)
28165 @[ -f ./expect/Makefile ] || exit 0; \
28166 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28168 $(HOST_EXPORTS) \
a90ef4bf
JM
28169 for flag in $(EXTRA_HOST_FLAGS) ; do \
28170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28171 done; \
28172 echo "Doing pdf in expect" ; \
28173 (cd $(HOST_SUBDIR)/expect && \
28174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28176 "RANLIB=$${RANLIB}" \
28177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28178 pdf) \
28179 || exit 1
be01d343 28180
a90ef4bf 28181@endif expect
be01d343 28182
a90ef4bf
JM
28183.PHONY: maybe-html-expect html-expect
28184maybe-html-expect:
28185@if expect
28186maybe-html-expect: html-expect
be01d343 28187
a90ef4bf
JM
28188html-expect: \
28189 configure-expect
28190 @: $(MAKE); $(unstage)
28191 @[ -f ./expect/Makefile ] || exit 0; \
28192 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28194 $(HOST_EXPORTS) \
a90ef4bf
JM
28195 for flag in $(EXTRA_HOST_FLAGS) ; do \
28196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28197 done; \
28198 echo "Doing html in expect" ; \
28199 (cd $(HOST_SUBDIR)/expect && \
28200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28202 "RANLIB=$${RANLIB}" \
28203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28204 html) \
28205 || exit 1
be01d343 28206
a90ef4bf 28207@endif expect
be01d343 28208
a90ef4bf
JM
28209.PHONY: maybe-TAGS-expect TAGS-expect
28210maybe-TAGS-expect:
28211@if expect
28212maybe-TAGS-expect: TAGS-expect
9b980aa1 28213
a90ef4bf
JM
28214TAGS-expect: \
28215 configure-expect
9b980aa1 28216 @: $(MAKE); $(unstage)
a90ef4bf 28217 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28218 r=`${PWD_COMMAND}`; export r; \
28219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28220 $(HOST_EXPORTS) \
28221 for flag in $(EXTRA_HOST_FLAGS) ; do \
28222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28223 done; \
a90ef4bf
JM
28224 echo "Doing TAGS in expect" ; \
28225 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28228 "RANLIB=$${RANLIB}" \
0c24b341 28229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28230 TAGS) \
28231 || exit 1
28232
a90ef4bf 28233@endif expect
be01d343 28234
a90ef4bf
JM
28235.PHONY: maybe-install-info-expect install-info-expect
28236maybe-install-info-expect:
28237@if expect
28238maybe-install-info-expect: install-info-expect
be01d343 28239
a90ef4bf
JM
28240install-info-expect: \
28241 configure-expect \
28242 info-expect
28243 @: $(MAKE); $(unstage)
28244 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28245 r=`${PWD_COMMAND}`; export r; \
28246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28247 $(HOST_EXPORTS) \
28248 for flag in $(EXTRA_HOST_FLAGS) ; do \
28249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28250 done; \
a90ef4bf
JM
28251 echo "Doing install-info in expect" ; \
28252 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28255 "RANLIB=$${RANLIB}" \
0c24b341 28256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28257 install-info) \
28258 || exit 1
28259
a90ef4bf 28260@endif expect
be01d343 28261
a90ef4bf
JM
28262.PHONY: maybe-install-pdf-expect install-pdf-expect
28263maybe-install-pdf-expect:
28264@if expect
28265maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 28266
a90ef4bf
JM
28267install-pdf-expect: \
28268 configure-expect \
28269 pdf-expect
28270 @: $(MAKE); $(unstage)
28271 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
28272 r=`${PWD_COMMAND}`; export r; \
28273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28274 $(HOST_EXPORTS) \
28275 for flag in $(EXTRA_HOST_FLAGS) ; do \
28276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28277 done; \
a90ef4bf
JM
28278 echo "Doing install-pdf in expect" ; \
28279 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
28280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28282 "RANLIB=$${RANLIB}" \
0c24b341 28283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
28284 install-pdf) \
28285 || exit 1
28286
a90ef4bf 28287@endif expect
a3ca38d2 28288
a90ef4bf
JM
28289.PHONY: maybe-install-html-expect install-html-expect
28290maybe-install-html-expect:
28291@if expect
28292maybe-install-html-expect: install-html-expect
108a6f8e 28293
a90ef4bf
JM
28294install-html-expect: \
28295 configure-expect \
28296 html-expect
28297 @: $(MAKE); $(unstage)
28298 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
28299 r=`${PWD_COMMAND}`; export r; \
28300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28301 $(HOST_EXPORTS) \
28302 for flag in $(EXTRA_HOST_FLAGS) ; do \
28303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28304 done; \
a90ef4bf
JM
28305 echo "Doing install-html in expect" ; \
28306 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
28307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28309 "RANLIB=$${RANLIB}" \
0c24b341 28310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
28311 install-html) \
28312 || exit 1
28313
a90ef4bf 28314@endif expect
108a6f8e 28315
a90ef4bf
JM
28316.PHONY: maybe-installcheck-expect installcheck-expect
28317maybe-installcheck-expect:
28318@if expect
28319maybe-installcheck-expect: installcheck-expect
be01d343 28320
a90ef4bf
JM
28321installcheck-expect: \
28322 configure-expect
28323 @: $(MAKE); $(unstage)
28324 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28325 r=`${PWD_COMMAND}`; export r; \
28326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28327 $(HOST_EXPORTS) \
28328 for flag in $(EXTRA_HOST_FLAGS) ; do \
28329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28330 done; \
a90ef4bf
JM
28331 echo "Doing installcheck in expect" ; \
28332 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28335 "RANLIB=$${RANLIB}" \
0c24b341 28336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28337 installcheck) \
28338 || exit 1
28339
a90ef4bf 28340@endif expect
be01d343 28341
a90ef4bf
JM
28342.PHONY: maybe-mostlyclean-expect mostlyclean-expect
28343maybe-mostlyclean-expect:
28344@if expect
28345maybe-mostlyclean-expect: mostlyclean-expect
be01d343 28346
a90ef4bf
JM
28347mostlyclean-expect:
28348 @: $(MAKE); $(unstage)
28349 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28350 r=`${PWD_COMMAND}`; export r; \
28351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28352 $(HOST_EXPORTS) \
28353 for flag in $(EXTRA_HOST_FLAGS) ; do \
28354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28355 done; \
a90ef4bf
JM
28356 echo "Doing mostlyclean in expect" ; \
28357 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28360 "RANLIB=$${RANLIB}" \
0c24b341 28361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28362 mostlyclean) \
28363 || exit 1
28364
a90ef4bf 28365@endif expect
be01d343 28366
a90ef4bf
JM
28367.PHONY: maybe-clean-expect clean-expect
28368maybe-clean-expect:
28369@if expect
28370maybe-clean-expect: clean-expect
be01d343 28371
a90ef4bf
JM
28372clean-expect:
28373 @: $(MAKE); $(unstage)
28374 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28375 r=`${PWD_COMMAND}`; export r; \
28376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28377 $(HOST_EXPORTS) \
28378 for flag in $(EXTRA_HOST_FLAGS) ; do \
28379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28380 done; \
a90ef4bf
JM
28381 echo "Doing clean in expect" ; \
28382 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28385 "RANLIB=$${RANLIB}" \
0c24b341 28386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28387 clean) \
28388 || exit 1
28389
a90ef4bf 28390@endif expect
be01d343 28391
a90ef4bf
JM
28392.PHONY: maybe-distclean-expect distclean-expect
28393maybe-distclean-expect:
28394@if expect
28395maybe-distclean-expect: distclean-expect
be01d343 28396
a90ef4bf
JM
28397distclean-expect:
28398 @: $(MAKE); $(unstage)
28399 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28400 r=`${PWD_COMMAND}`; export r; \
28401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28402 $(HOST_EXPORTS) \
28403 for flag in $(EXTRA_HOST_FLAGS) ; do \
28404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28405 done; \
a90ef4bf
JM
28406 echo "Doing distclean in expect" ; \
28407 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28410 "RANLIB=$${RANLIB}" \
0c24b341 28411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28412 distclean) \
28413 || exit 1
28414
a90ef4bf 28415@endif expect
be01d343 28416
a90ef4bf
JM
28417.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
28418maybe-maintainer-clean-expect:
28419@if expect
28420maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 28421
a90ef4bf
JM
28422maintainer-clean-expect:
28423 @: $(MAKE); $(unstage)
28424 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28425 r=`${PWD_COMMAND}`; export r; \
28426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28427 $(HOST_EXPORTS) \
28428 for flag in $(EXTRA_HOST_FLAGS) ; do \
28429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28430 done; \
a90ef4bf
JM
28431 echo "Doing maintainer-clean in expect" ; \
28432 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28435 "RANLIB=$${RANLIB}" \
0c24b341 28436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28437 maintainer-clean) \
28438 || exit 1
28439
a90ef4bf 28440@endif expect
be01d343
PB
28441
28442
28443
a90ef4bf
JM
28444.PHONY: configure-guile maybe-configure-guile
28445maybe-configure-guile:
4f0ef2d8 28446@if gcc-bootstrap
a90ef4bf 28447configure-guile: stage_current
4f0ef2d8 28448@endif gcc-bootstrap
a90ef4bf
JM
28449@if guile
28450maybe-configure-guile: configure-guile
28451configure-guile:
0aed8855 28452 @: $(MAKE); $(unstage)
c52c6897 28453 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 28454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28455 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
28456 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile ; \
1f53ca9a 28457 $(HOST_EXPORTS) \
a90ef4bf
JM
28458 echo Configuring in $(HOST_SUBDIR)/guile; \
28459 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 28460 case $(srcdir) in \
b00612cc 28461 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28462 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 28463 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 28464 esac; \
1b6c0831
L
28465 module_srcdir=guile; \
28466 $(SHELL) \
28467 $$s/$$module_srcdir/configure \
28468 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28469 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28470 --target=${target_alias} \
4b1cb4fe 28471 || exit 1
a90ef4bf 28472@endif guile
4b1cb4fe 28473
a7254363
PB
28474
28475
d545f33b
PB
28476
28477
a90ef4bf
JM
28478.PHONY: all-guile maybe-all-guile
28479maybe-all-guile:
4f0ef2d8 28480@if gcc-bootstrap
a90ef4bf 28481all-guile: stage_current
4f0ef2d8 28482@endif gcc-bootstrap
a90ef4bf
JM
28483@if guile
28484TARGET-guile=all
28485maybe-all-guile: all-guile
28486all-guile: configure-guile
28487 @: $(MAKE); $(unstage)
4b1cb4fe
DD
28488 @r=`${PWD_COMMAND}`; export r; \
28489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 28490 $(HOST_EXPORTS) \
a90ef4bf 28491 (cd $(HOST_SUBDIR)/guile && \
b3676d82 28492 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28493 $(TARGET-guile))
28494@endif guile
4b1cb4fe 28495
a7254363 28496
d545f33b
PB
28497
28498
a90ef4bf
JM
28499.PHONY: check-guile maybe-check-guile
28500maybe-check-guile:
28501@if guile
28502maybe-check-guile: check-guile
4b1cb4fe 28503
a90ef4bf 28504check-guile:
0aed8855 28505 @: $(MAKE); $(unstage)
4b1cb4fe
DD
28506 @r=`${PWD_COMMAND}`; export r; \
28507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28508 $(HOST_EXPORTS) \
a90ef4bf 28509 (cd $(HOST_SUBDIR)/guile && \
b00612cc 28510 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 28511
a90ef4bf 28512@endif guile
4b1cb4fe 28513
a90ef4bf
JM
28514.PHONY: install-guile maybe-install-guile
28515maybe-install-guile:
28516@if guile
28517maybe-install-guile: install-guile
4b1cb4fe 28518
a90ef4bf 28519install-guile: installdirs
0aed8855 28520 @: $(MAKE); $(unstage)
b813574b
PB
28521 @r=`${PWD_COMMAND}`; export r; \
28522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 28523 $(HOST_EXPORTS) \
a90ef4bf 28524 (cd $(HOST_SUBDIR)/guile && \
2da12f12 28525 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 28526
a90ef4bf 28527@endif guile
4b1cb4fe 28528
a90ef4bf
JM
28529.PHONY: install-strip-guile maybe-install-strip-guile
28530maybe-install-strip-guile:
28531@if guile
28532maybe-install-strip-guile: install-strip-guile
9b980aa1 28533
a90ef4bf 28534install-strip-guile: installdirs
9b980aa1
RW
28535 @: $(MAKE); $(unstage)
28536 @r=`${PWD_COMMAND}`; export r; \
28537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28538 $(HOST_EXPORTS) \
a90ef4bf 28539 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
28540 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28541
a90ef4bf 28542@endif guile
9b980aa1 28543
56a8fe78 28544# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 28545
a90ef4bf
JM
28546.PHONY: maybe-info-guile info-guile
28547maybe-info-guile:
28548@if guile
28549maybe-info-guile: info-guile
4b1cb4fe 28550
a90ef4bf
JM
28551info-guile: \
28552 configure-guile
0aed8855 28553 @: $(MAKE); $(unstage)
a90ef4bf 28554 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28555 r=`${PWD_COMMAND}`; export r; \
28556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28557 $(HOST_EXPORTS) \
b813574b 28558 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28560 done; \
a90ef4bf
JM
28561 echo "Doing info in guile" ; \
28562 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28565 "RANLIB=$${RANLIB}" \
0c24b341 28566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28567 info) \
4b1cb4fe
DD
28568 || exit 1
28569
a90ef4bf 28570@endif guile
4b1cb4fe 28571
a90ef4bf
JM
28572.PHONY: maybe-dvi-guile dvi-guile
28573maybe-dvi-guile:
28574@if guile
28575maybe-dvi-guile: dvi-guile
4b1cb4fe 28576
a90ef4bf
JM
28577dvi-guile: \
28578 configure-guile
0aed8855 28579 @: $(MAKE); $(unstage)
a90ef4bf 28580 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28581 r=`${PWD_COMMAND}`; export r; \
28582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28583 $(HOST_EXPORTS) \
b813574b 28584 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28586 done; \
a90ef4bf
JM
28587 echo "Doing dvi in guile" ; \
28588 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28591 "RANLIB=$${RANLIB}" \
0c24b341 28592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28593 dvi) \
4b1cb4fe
DD
28594 || exit 1
28595
a90ef4bf 28596@endif guile
4b1cb4fe 28597
a90ef4bf
JM
28598.PHONY: maybe-pdf-guile pdf-guile
28599maybe-pdf-guile:
28600@if guile
28601maybe-pdf-guile: pdf-guile
56a8fe78 28602
a90ef4bf
JM
28603pdf-guile: \
28604 configure-guile
56a8fe78 28605 @: $(MAKE); $(unstage)
a90ef4bf 28606 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
28607 r=`${PWD_COMMAND}`; export r; \
28608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28609 $(HOST_EXPORTS) \
28610 for flag in $(EXTRA_HOST_FLAGS) ; do \
28611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28612 done; \
a90ef4bf
JM
28613 echo "Doing pdf in guile" ; \
28614 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
28615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28617 "RANLIB=$${RANLIB}" \
0c24b341 28618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
28619 pdf) \
28620 || exit 1
28621
a90ef4bf 28622@endif guile
56a8fe78 28623
a90ef4bf
JM
28624.PHONY: maybe-html-guile html-guile
28625maybe-html-guile:
28626@if guile
28627maybe-html-guile: html-guile
6d389afc 28628
a90ef4bf
JM
28629html-guile: \
28630 configure-guile
0aed8855 28631 @: $(MAKE); $(unstage)
a90ef4bf 28632 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
28633 r=`${PWD_COMMAND}`; export r; \
28634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
28635 $(HOST_EXPORTS) \
28636 for flag in $(EXTRA_HOST_FLAGS) ; do \
28637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28638 done; \
a90ef4bf
JM
28639 echo "Doing html in guile" ; \
28640 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
28641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28643 "RANLIB=$${RANLIB}" \
0c24b341 28644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
28645 html) \
28646 || exit 1
28647
a90ef4bf 28648@endif guile
6d389afc 28649
a90ef4bf
JM
28650.PHONY: maybe-TAGS-guile TAGS-guile
28651maybe-TAGS-guile:
28652@if guile
28653maybe-TAGS-guile: TAGS-guile
4b1cb4fe 28654
a90ef4bf
JM
28655TAGS-guile: \
28656 configure-guile
0aed8855 28657 @: $(MAKE); $(unstage)
a90ef4bf 28658 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28659 r=`${PWD_COMMAND}`; export r; \
28660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28661 $(HOST_EXPORTS) \
b813574b 28662 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28664 done; \
a90ef4bf
JM
28665 echo "Doing TAGS in guile" ; \
28666 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28669 "RANLIB=$${RANLIB}" \
0c24b341 28670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28671 TAGS) \
4b1cb4fe
DD
28672 || exit 1
28673
a90ef4bf 28674@endif guile
4b1cb4fe 28675
a90ef4bf
JM
28676.PHONY: maybe-install-info-guile install-info-guile
28677maybe-install-info-guile:
28678@if guile
28679maybe-install-info-guile: install-info-guile
4b1cb4fe 28680
a90ef4bf
JM
28681install-info-guile: \
28682 configure-guile \
28683 info-guile
0aed8855 28684 @: $(MAKE); $(unstage)
a90ef4bf 28685 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28686 r=`${PWD_COMMAND}`; export r; \
28687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28688 $(HOST_EXPORTS) \
b813574b 28689 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28691 done; \
a90ef4bf
JM
28692 echo "Doing install-info in guile" ; \
28693 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28696 "RANLIB=$${RANLIB}" \
0c24b341 28697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28698 install-info) \
4b1cb4fe
DD
28699 || exit 1
28700
a90ef4bf 28701@endif guile
4b1cb4fe 28702
a90ef4bf
JM
28703.PHONY: maybe-install-pdf-guile install-pdf-guile
28704maybe-install-pdf-guile:
28705@if guile
28706maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 28707
a90ef4bf
JM
28708install-pdf-guile: \
28709 configure-guile \
28710 pdf-guile
a3ca38d2 28711 @: $(MAKE); $(unstage)
a90ef4bf 28712 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
28713 r=`${PWD_COMMAND}`; export r; \
28714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28715 $(HOST_EXPORTS) \
28716 for flag in $(EXTRA_HOST_FLAGS) ; do \
28717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28718 done; \
a90ef4bf
JM
28719 echo "Doing install-pdf in guile" ; \
28720 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
28721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28723 "RANLIB=$${RANLIB}" \
0c24b341 28724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
28725 install-pdf) \
28726 || exit 1
28727
a90ef4bf 28728@endif guile
a3ca38d2 28729
a90ef4bf
JM
28730.PHONY: maybe-install-html-guile install-html-guile
28731maybe-install-html-guile:
28732@if guile
28733maybe-install-html-guile: install-html-guile
108a6f8e 28734
a90ef4bf
JM
28735install-html-guile: \
28736 configure-guile \
28737 html-guile
108a6f8e 28738 @: $(MAKE); $(unstage)
a90ef4bf 28739 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
28740 r=`${PWD_COMMAND}`; export r; \
28741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28742 $(HOST_EXPORTS) \
28743 for flag in $(EXTRA_HOST_FLAGS) ; do \
28744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28745 done; \
a90ef4bf
JM
28746 echo "Doing install-html in guile" ; \
28747 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
28748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28750 "RANLIB=$${RANLIB}" \
0c24b341 28751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
28752 install-html) \
28753 || exit 1
28754
a90ef4bf 28755@endif guile
108a6f8e 28756
a90ef4bf
JM
28757.PHONY: maybe-installcheck-guile installcheck-guile
28758maybe-installcheck-guile:
28759@if guile
28760maybe-installcheck-guile: installcheck-guile
4b1cb4fe 28761
a90ef4bf
JM
28762installcheck-guile: \
28763 configure-guile
0aed8855 28764 @: $(MAKE); $(unstage)
a90ef4bf 28765 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28766 r=`${PWD_COMMAND}`; export r; \
28767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28768 $(HOST_EXPORTS) \
b813574b 28769 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28771 done; \
a90ef4bf
JM
28772 echo "Doing installcheck in guile" ; \
28773 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28776 "RANLIB=$${RANLIB}" \
0c24b341 28777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28778 installcheck) \
4b1cb4fe
DD
28779 || exit 1
28780
a90ef4bf 28781@endif guile
4b1cb4fe 28782
a90ef4bf
JM
28783.PHONY: maybe-mostlyclean-guile mostlyclean-guile
28784maybe-mostlyclean-guile:
28785@if guile
28786maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 28787
a90ef4bf 28788mostlyclean-guile:
0aed8855 28789 @: $(MAKE); $(unstage)
a90ef4bf 28790 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28791 r=`${PWD_COMMAND}`; export r; \
28792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28793 $(HOST_EXPORTS) \
b813574b 28794 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28796 done; \
a90ef4bf
JM
28797 echo "Doing mostlyclean in guile" ; \
28798 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28801 "RANLIB=$${RANLIB}" \
0c24b341 28802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28803 mostlyclean) \
4b1cb4fe
DD
28804 || exit 1
28805
a90ef4bf 28806@endif guile
4b1cb4fe 28807
a90ef4bf
JM
28808.PHONY: maybe-clean-guile clean-guile
28809maybe-clean-guile:
28810@if guile
28811maybe-clean-guile: clean-guile
4b1cb4fe 28812
a90ef4bf 28813clean-guile:
0aed8855 28814 @: $(MAKE); $(unstage)
a90ef4bf 28815 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28816 r=`${PWD_COMMAND}`; export r; \
28817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28818 $(HOST_EXPORTS) \
b813574b 28819 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28821 done; \
a90ef4bf
JM
28822 echo "Doing clean in guile" ; \
28823 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28826 "RANLIB=$${RANLIB}" \
0c24b341 28827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28828 clean) \
4b1cb4fe
DD
28829 || exit 1
28830
a90ef4bf 28831@endif guile
4b1cb4fe 28832
a90ef4bf
JM
28833.PHONY: maybe-distclean-guile distclean-guile
28834maybe-distclean-guile:
28835@if guile
28836maybe-distclean-guile: distclean-guile
4b1cb4fe 28837
a90ef4bf 28838distclean-guile:
0aed8855 28839 @: $(MAKE); $(unstage)
a90ef4bf 28840 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28841 r=`${PWD_COMMAND}`; export r; \
28842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28843 $(HOST_EXPORTS) \
b813574b 28844 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28846 done; \
a90ef4bf
JM
28847 echo "Doing distclean in guile" ; \
28848 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28851 "RANLIB=$${RANLIB}" \
0c24b341 28852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28853 distclean) \
4b1cb4fe
DD
28854 || exit 1
28855
a90ef4bf 28856@endif guile
4b1cb4fe 28857
a90ef4bf
JM
28858.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
28859maybe-maintainer-clean-guile:
28860@if guile
28861maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 28862
a90ef4bf 28863maintainer-clean-guile:
0aed8855 28864 @: $(MAKE); $(unstage)
a90ef4bf 28865 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28866 r=`${PWD_COMMAND}`; export r; \
28867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28868 $(HOST_EXPORTS) \
b813574b 28869 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28871 done; \
a90ef4bf
JM
28872 echo "Doing maintainer-clean in guile" ; \
28873 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28876 "RANLIB=$${RANLIB}" \
0c24b341 28877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28878 maintainer-clean) \
4b1cb4fe
DD
28879 || exit 1
28880
a90ef4bf 28881@endif guile
4b1cb4fe
DD
28882
28883
a7254363 28884
a90ef4bf
JM
28885.PHONY: configure-tk maybe-configure-tk
28886maybe-configure-tk:
4f0ef2d8 28887@if gcc-bootstrap
a90ef4bf 28888configure-tk: stage_current
4f0ef2d8 28889@endif gcc-bootstrap
a90ef4bf
JM
28890@if tk
28891maybe-configure-tk: configure-tk
28892configure-tk:
28893 @: $(MAKE); $(unstage)
c52c6897
PB
28894 @r=`${PWD_COMMAND}`; export r; \
28895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28896 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
28897 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk ; \
1f53ca9a 28898 $(HOST_EXPORTS) \
a90ef4bf
JM
28899 echo Configuring in $(HOST_SUBDIR)/tk; \
28900 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 28901 case $(srcdir) in \
b00612cc 28902 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28903 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 28904 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 28905 esac; \
1b6c0831
L
28906 module_srcdir=tk; \
28907 $(SHELL) \
28908 $$s/$$module_srcdir/configure \
28909 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28910 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28911 --target=${target_alias} \
2a4cbe27 28912 || exit 1
a90ef4bf 28913@endif tk
2a4cbe27 28914
a7254363
PB
28915
28916
a90ef4bf
JM
28917
28918
28919.PHONY: all-tk maybe-all-tk
28920maybe-all-tk:
28921@if gcc-bootstrap
28922all-tk: stage_current
28923@endif gcc-bootstrap
28924@if tk
28925TARGET-tk=all
28926maybe-all-tk: all-tk
28927all-tk: configure-tk
28928 @: $(MAKE); $(unstage)
c52c6897
PB
28929 @r=`${PWD_COMMAND}`; export r; \
28930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28931 $(HOST_EXPORTS) \
28932 (cd $(HOST_SUBDIR)/tk && \
b3676d82 28933 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28934 $(TARGET-tk))
28935@endif tk
d545f33b 28936
a90ef4bf
JM
28937
28938
28939
28940.PHONY: check-tk maybe-check-tk
28941maybe-check-tk:
28942@if tk
28943maybe-check-tk: check-tk
28944
28945check-tk:
28946 @: $(MAKE); $(unstage)
c52c6897
PB
28947 @r=`${PWD_COMMAND}`; export r; \
28948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28949 $(HOST_EXPORTS) \
a90ef4bf
JM
28950 (cd $(HOST_SUBDIR)/tk && \
28951 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 28952
a90ef4bf
JM
28953@endif tk
28954
28955.PHONY: install-tk maybe-install-tk
28956maybe-install-tk:
28957@if tk
28958maybe-install-tk: install-tk
28959
28960install-tk: installdirs
28961 @: $(MAKE); $(unstage)
c52c6897
PB
28962 @r=`${PWD_COMMAND}`; export r; \
28963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28964 $(HOST_EXPORTS) \
a90ef4bf
JM
28965 (cd $(HOST_SUBDIR)/tk && \
28966 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 28967
a90ef4bf
JM
28968@endif tk
28969
28970.PHONY: install-strip-tk maybe-install-strip-tk
28971maybe-install-strip-tk:
28972@if tk
28973maybe-install-strip-tk: install-strip-tk
28974
28975install-strip-tk: installdirs
28976 @: $(MAKE); $(unstage)
c52c6897
PB
28977 @r=`${PWD_COMMAND}`; export r; \
28978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28979 $(HOST_EXPORTS) \
a90ef4bf
JM
28980 (cd $(HOST_SUBDIR)/tk && \
28981 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 28982
a90ef4bf 28983@endif tk
9b980aa1 28984
56a8fe78 28985# Other targets (info, dvi, pdf, etc.)
2a4cbe27 28986
a90ef4bf
JM
28987.PHONY: maybe-info-tk info-tk
28988maybe-info-tk:
28989@if tk
28990maybe-info-tk: info-tk
4fa63067 28991
a90ef4bf
JM
28992info-tk: \
28993 configure-tk
28994 @: $(MAKE); $(unstage)
28995 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
28996 r=`${PWD_COMMAND}`; export r; \
28997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28998 $(HOST_EXPORTS) \
b813574b 28999 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29001 done; \
a90ef4bf
JM
29002 echo "Doing info in tk" ; \
29003 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
29004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29006 "RANLIB=$${RANLIB}" \
0c24b341 29007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29008 info) \
29009 || exit 1
29010
a90ef4bf 29011@endif tk
6d389afc 29012
a90ef4bf
JM
29013.PHONY: maybe-dvi-tk dvi-tk
29014maybe-dvi-tk:
29015@if tk
29016maybe-dvi-tk: dvi-tk
6d389afc 29017
a90ef4bf
JM
29018dvi-tk: \
29019 configure-tk
29020 @: $(MAKE); $(unstage)
29021 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
29022 r=`${PWD_COMMAND}`; export r; \
29023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29024 $(HOST_EXPORTS) \
29025 for flag in $(EXTRA_HOST_FLAGS) ; do \
29026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29027 done; \
a90ef4bf
JM
29028 echo "Doing dvi in tk" ; \
29029 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29032 "RANLIB=$${RANLIB}" \
0c24b341 29033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29034 dvi) \
2a4cbe27
NN
29035 || exit 1
29036
a90ef4bf 29037@endif tk
2a4cbe27 29038
a90ef4bf
JM
29039.PHONY: maybe-pdf-tk pdf-tk
29040maybe-pdf-tk:
29041@if tk
29042maybe-pdf-tk: pdf-tk
56a8fe78 29043
a90ef4bf
JM
29044pdf-tk: \
29045 configure-tk
29046 @: $(MAKE); $(unstage)
29047 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
29048 r=`${PWD_COMMAND}`; export r; \
29049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29050 $(HOST_EXPORTS) \
29051 for flag in $(EXTRA_HOST_FLAGS) ; do \
29052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29053 done; \
a90ef4bf
JM
29054 echo "Doing pdf in tk" ; \
29055 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
29056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29058 "RANLIB=$${RANLIB}" \
0c24b341 29059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29060 pdf) \
29061 || exit 1
29062
a90ef4bf 29063@endif tk
56a8fe78 29064
a90ef4bf
JM
29065.PHONY: maybe-html-tk html-tk
29066maybe-html-tk:
29067@if tk
29068maybe-html-tk: html-tk
2a4cbe27 29069
a90ef4bf
JM
29070html-tk: \
29071 configure-tk
29072 @: $(MAKE); $(unstage)
29073 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29074 r=`${PWD_COMMAND}`; export r; \
29075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29076 $(HOST_EXPORTS) \
b813574b 29077 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29079 done; \
a90ef4bf
JM
29080 echo "Doing html in tk" ; \
29081 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29084 "RANLIB=$${RANLIB}" \
0c24b341 29085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29086 html) \
2a4cbe27
NN
29087 || exit 1
29088
a90ef4bf 29089@endif tk
2a4cbe27 29090
a90ef4bf
JM
29091.PHONY: maybe-TAGS-tk TAGS-tk
29092maybe-TAGS-tk:
29093@if tk
29094maybe-TAGS-tk: TAGS-tk
2a4cbe27 29095
a90ef4bf
JM
29096TAGS-tk: \
29097 configure-tk
29098 @: $(MAKE); $(unstage)
29099 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29100 r=`${PWD_COMMAND}`; export r; \
29101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29102 $(HOST_EXPORTS) \
b813574b 29103 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29105 done; \
a90ef4bf
JM
29106 echo "Doing TAGS in tk" ; \
29107 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29110 "RANLIB=$${RANLIB}" \
0c24b341 29111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29112 TAGS) \
2a4cbe27
NN
29113 || exit 1
29114
a90ef4bf 29115@endif tk
2a4cbe27 29116
a90ef4bf
JM
29117.PHONY: maybe-install-info-tk install-info-tk
29118maybe-install-info-tk:
29119@if tk
29120maybe-install-info-tk: install-info-tk
2a4cbe27 29121
a90ef4bf
JM
29122install-info-tk: \
29123 configure-tk \
29124 info-tk
29125 @: $(MAKE); $(unstage)
29126 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29127 r=`${PWD_COMMAND}`; export r; \
29128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29129 $(HOST_EXPORTS) \
b813574b 29130 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29132 done; \
a90ef4bf
JM
29133 echo "Doing install-info in tk" ; \
29134 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29137 "RANLIB=$${RANLIB}" \
0c24b341 29138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29139 install-info) \
2a4cbe27
NN
29140 || exit 1
29141
a90ef4bf 29142@endif tk
2a4cbe27 29143
a90ef4bf
JM
29144.PHONY: maybe-install-pdf-tk install-pdf-tk
29145maybe-install-pdf-tk:
29146@if tk
29147maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 29148
a90ef4bf
JM
29149install-pdf-tk: \
29150 configure-tk \
29151 pdf-tk
29152 @: $(MAKE); $(unstage)
29153 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
29154 r=`${PWD_COMMAND}`; export r; \
29155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29156 $(HOST_EXPORTS) \
29157 for flag in $(EXTRA_HOST_FLAGS) ; do \
29158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29159 done; \
a90ef4bf
JM
29160 echo "Doing install-pdf in tk" ; \
29161 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
29162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29164 "RANLIB=$${RANLIB}" \
0c24b341 29165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29166 install-pdf) \
29167 || exit 1
29168
a90ef4bf 29169@endif tk
a3ca38d2 29170
a90ef4bf
JM
29171.PHONY: maybe-install-html-tk install-html-tk
29172maybe-install-html-tk:
29173@if tk
29174maybe-install-html-tk: install-html-tk
108a6f8e 29175
a90ef4bf
JM
29176install-html-tk: \
29177 configure-tk \
29178 html-tk
29179 @: $(MAKE); $(unstage)
29180 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
29181 r=`${PWD_COMMAND}`; export r; \
29182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29183 $(HOST_EXPORTS) \
29184 for flag in $(EXTRA_HOST_FLAGS) ; do \
29185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29186 done; \
a90ef4bf
JM
29187 echo "Doing install-html in tk" ; \
29188 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
29189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29191 "RANLIB=$${RANLIB}" \
0c24b341 29192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29193 install-html) \
29194 || exit 1
29195
a90ef4bf 29196@endif tk
108a6f8e 29197
a90ef4bf
JM
29198.PHONY: maybe-installcheck-tk installcheck-tk
29199maybe-installcheck-tk:
29200@if tk
29201maybe-installcheck-tk: installcheck-tk
2a4cbe27 29202
a90ef4bf
JM
29203installcheck-tk: \
29204 configure-tk
29205 @: $(MAKE); $(unstage)
29206 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29207 r=`${PWD_COMMAND}`; export r; \
29208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29209 $(HOST_EXPORTS) \
b813574b 29210 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29212 done; \
a90ef4bf
JM
29213 echo "Doing installcheck in tk" ; \
29214 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29217 "RANLIB=$${RANLIB}" \
0c24b341 29218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29219 installcheck) \
2a4cbe27
NN
29220 || exit 1
29221
a90ef4bf 29222@endif tk
2a4cbe27 29223
a90ef4bf
JM
29224.PHONY: maybe-mostlyclean-tk mostlyclean-tk
29225maybe-mostlyclean-tk:
29226@if tk
29227maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 29228
a90ef4bf
JM
29229mostlyclean-tk:
29230 @: $(MAKE); $(unstage)
29231 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29232 r=`${PWD_COMMAND}`; export r; \
29233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29234 $(HOST_EXPORTS) \
b813574b 29235 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29237 done; \
a90ef4bf
JM
29238 echo "Doing mostlyclean in tk" ; \
29239 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29242 "RANLIB=$${RANLIB}" \
0c24b341 29243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29244 mostlyclean) \
2a4cbe27
NN
29245 || exit 1
29246
a90ef4bf 29247@endif tk
2a4cbe27 29248
a90ef4bf
JM
29249.PHONY: maybe-clean-tk clean-tk
29250maybe-clean-tk:
29251@if tk
29252maybe-clean-tk: clean-tk
2a4cbe27 29253
a90ef4bf
JM
29254clean-tk:
29255 @: $(MAKE); $(unstage)
29256 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29257 r=`${PWD_COMMAND}`; export r; \
29258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29259 $(HOST_EXPORTS) \
b813574b 29260 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29262 done; \
a90ef4bf
JM
29263 echo "Doing clean in tk" ; \
29264 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29267 "RANLIB=$${RANLIB}" \
0c24b341 29268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29269 clean) \
2a4cbe27
NN
29270 || exit 1
29271
a90ef4bf 29272@endif tk
2a4cbe27 29273
a90ef4bf
JM
29274.PHONY: maybe-distclean-tk distclean-tk
29275maybe-distclean-tk:
29276@if tk
29277maybe-distclean-tk: distclean-tk
2a4cbe27 29278
a90ef4bf
JM
29279distclean-tk:
29280 @: $(MAKE); $(unstage)
29281 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29282 r=`${PWD_COMMAND}`; export r; \
29283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29284 $(HOST_EXPORTS) \
b813574b 29285 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29287 done; \
a90ef4bf
JM
29288 echo "Doing distclean in tk" ; \
29289 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29292 "RANLIB=$${RANLIB}" \
0c24b341 29293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29294 distclean) \
2a4cbe27
NN
29295 || exit 1
29296
a90ef4bf 29297@endif tk
2a4cbe27 29298
a90ef4bf
JM
29299.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
29300maybe-maintainer-clean-tk:
29301@if tk
29302maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 29303
a90ef4bf
JM
29304maintainer-clean-tk:
29305 @: $(MAKE); $(unstage)
29306 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29307 r=`${PWD_COMMAND}`; export r; \
29308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29309 $(HOST_EXPORTS) \
b813574b 29310 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29312 done; \
a90ef4bf
JM
29313 echo "Doing maintainer-clean in tk" ; \
29314 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29317 "RANLIB=$${RANLIB}" \
0c24b341 29318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29319 maintainer-clean) \
2a4cbe27
NN
29320 || exit 1
29321
a90ef4bf 29322@endif tk
2a4cbe27 29323
2a4cbe27 29324
a7254363 29325
a90ef4bf
JM
29326.PHONY: configure-libtermcap maybe-configure-libtermcap
29327maybe-configure-libtermcap:
dc448a7b 29328@if gcc-bootstrap
a90ef4bf 29329configure-libtermcap: stage_current
dc448a7b 29330@endif gcc-bootstrap
a90ef4bf
JM
29331@if libtermcap
29332maybe-configure-libtermcap: configure-libtermcap
29333configure-libtermcap:
dc448a7b
TT
29334 @: $(MAKE); $(unstage)
29335 @r=`${PWD_COMMAND}`; export r; \
29336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29337 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
29338 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap ; \
1f53ca9a 29339 $(HOST_EXPORTS) \
a90ef4bf
JM
29340 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
29341 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
29342 case $(srcdir) in \
29343 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29344 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
29345 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29346 esac; \
1b6c0831
L
29347 module_srcdir=libtermcap; \
29348 $(SHELL) \
29349 $$s/$$module_srcdir/configure \
29350 --srcdir=$${topdir}/$$module_srcdir \
dc448a7b 29351 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29352 --target=${target_alias} \
dc448a7b 29353 || exit 1
a90ef4bf 29354@endif libtermcap
dc448a7b
TT
29355
29356
29357
29358
29359
a90ef4bf
JM
29360.PHONY: all-libtermcap maybe-all-libtermcap
29361maybe-all-libtermcap:
dc448a7b 29362@if gcc-bootstrap
a90ef4bf 29363all-libtermcap: stage_current
dc448a7b 29364@endif gcc-bootstrap
a90ef4bf
JM
29365@if libtermcap
29366TARGET-libtermcap=all
29367maybe-all-libtermcap: all-libtermcap
29368all-libtermcap: configure-libtermcap
dc448a7b
TT
29369 @: $(MAKE); $(unstage)
29370 @r=`${PWD_COMMAND}`; export r; \
29371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29372 $(HOST_EXPORTS) \
a90ef4bf 29373 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 29374 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29375 $(TARGET-libtermcap))
29376@endif libtermcap
dc448a7b
TT
29377
29378
29379
29380
a90ef4bf
JM
29381.PHONY: check-libtermcap maybe-check-libtermcap
29382maybe-check-libtermcap:
29383@if libtermcap
29384maybe-check-libtermcap: check-libtermcap
dc448a7b 29385
a90ef4bf
JM
29386check-libtermcap:
29387
29388@endif libtermcap
29389
29390.PHONY: install-libtermcap maybe-install-libtermcap
29391maybe-install-libtermcap:
29392@if libtermcap
29393maybe-install-libtermcap: install-libtermcap
29394
29395install-libtermcap: installdirs
dc448a7b
TT
29396 @: $(MAKE); $(unstage)
29397 @r=`${PWD_COMMAND}`; export r; \
29398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29399 $(HOST_EXPORTS) \
a90ef4bf
JM
29400 (cd $(HOST_SUBDIR)/libtermcap && \
29401 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 29402
a90ef4bf 29403@endif libtermcap
dc448a7b 29404
a90ef4bf
JM
29405.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
29406maybe-install-strip-libtermcap:
29407@if libtermcap
29408maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 29409
a90ef4bf
JM
29410install-strip-libtermcap: installdirs
29411 @: $(MAKE); $(unstage)
29412 @r=`${PWD_COMMAND}`; export r; \
29413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29414 $(HOST_EXPORTS) \
29415 (cd $(HOST_SUBDIR)/libtermcap && \
29416 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 29417
a90ef4bf 29418@endif libtermcap
9b980aa1 29419
dc448a7b
TT
29420# Other targets (info, dvi, pdf, etc.)
29421
a90ef4bf
JM
29422.PHONY: maybe-info-libtermcap info-libtermcap
29423maybe-info-libtermcap:
29424@if libtermcap
29425maybe-info-libtermcap: info-libtermcap
dc448a7b 29426
a90ef4bf
JM
29427info-libtermcap: \
29428 configure-libtermcap
dc448a7b 29429 @: $(MAKE); $(unstage)
a90ef4bf 29430 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29431 r=`${PWD_COMMAND}`; export r; \
29432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29433 $(HOST_EXPORTS) \
29434 for flag in $(EXTRA_HOST_FLAGS) ; do \
29435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29436 done; \
a90ef4bf
JM
29437 echo "Doing info in libtermcap" ; \
29438 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29441 "RANLIB=$${RANLIB}" \
29442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29443 info) \
29444 || exit 1
29445
a90ef4bf 29446@endif libtermcap
dc448a7b 29447
a90ef4bf
JM
29448.PHONY: maybe-dvi-libtermcap dvi-libtermcap
29449maybe-dvi-libtermcap:
29450@if libtermcap
29451maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 29452
a90ef4bf
JM
29453dvi-libtermcap: \
29454 configure-libtermcap
dc448a7b 29455 @: $(MAKE); $(unstage)
a90ef4bf 29456 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29457 r=`${PWD_COMMAND}`; export r; \
29458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29459 $(HOST_EXPORTS) \
29460 for flag in $(EXTRA_HOST_FLAGS) ; do \
29461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29462 done; \
a90ef4bf
JM
29463 echo "Doing dvi in libtermcap" ; \
29464 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29467 "RANLIB=$${RANLIB}" \
29468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29469 dvi) \
29470 || exit 1
29471
a90ef4bf 29472@endif libtermcap
dc448a7b 29473
a90ef4bf
JM
29474.PHONY: maybe-pdf-libtermcap pdf-libtermcap
29475maybe-pdf-libtermcap:
29476@if libtermcap
29477maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 29478
a90ef4bf
JM
29479pdf-libtermcap: \
29480 configure-libtermcap
dc448a7b 29481 @: $(MAKE); $(unstage)
a90ef4bf 29482 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29483 r=`${PWD_COMMAND}`; export r; \
29484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29485 $(HOST_EXPORTS) \
29486 for flag in $(EXTRA_HOST_FLAGS) ; do \
29487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29488 done; \
a90ef4bf
JM
29489 echo "Doing pdf in libtermcap" ; \
29490 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29493 "RANLIB=$${RANLIB}" \
29494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29495 pdf) \
29496 || exit 1
29497
a90ef4bf 29498@endif libtermcap
dc448a7b 29499
a90ef4bf
JM
29500.PHONY: maybe-html-libtermcap html-libtermcap
29501maybe-html-libtermcap:
29502@if libtermcap
29503maybe-html-libtermcap: html-libtermcap
dc448a7b 29504
a90ef4bf
JM
29505html-libtermcap: \
29506 configure-libtermcap
dc448a7b 29507 @: $(MAKE); $(unstage)
a90ef4bf 29508 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29509 r=`${PWD_COMMAND}`; export r; \
29510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29511 $(HOST_EXPORTS) \
29512 for flag in $(EXTRA_HOST_FLAGS) ; do \
29513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29514 done; \
a90ef4bf
JM
29515 echo "Doing html in libtermcap" ; \
29516 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29519 "RANLIB=$${RANLIB}" \
29520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29521 html) \
29522 || exit 1
29523
a90ef4bf 29524@endif libtermcap
dc448a7b 29525
a90ef4bf
JM
29526.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
29527maybe-TAGS-libtermcap:
29528@if libtermcap
29529maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 29530
a90ef4bf
JM
29531TAGS-libtermcap: \
29532 configure-libtermcap
dc448a7b 29533 @: $(MAKE); $(unstage)
a90ef4bf 29534 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29535 r=`${PWD_COMMAND}`; export r; \
29536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29537 $(HOST_EXPORTS) \
29538 for flag in $(EXTRA_HOST_FLAGS) ; do \
29539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29540 done; \
a90ef4bf
JM
29541 echo "Doing TAGS in libtermcap" ; \
29542 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29545 "RANLIB=$${RANLIB}" \
29546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29547 TAGS) \
29548 || exit 1
29549
a90ef4bf 29550@endif libtermcap
dc448a7b 29551
a90ef4bf
JM
29552.PHONY: maybe-install-info-libtermcap install-info-libtermcap
29553maybe-install-info-libtermcap:
29554@if libtermcap
29555maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 29556
a90ef4bf
JM
29557install-info-libtermcap: \
29558 configure-libtermcap \
29559 info-libtermcap
dc448a7b 29560 @: $(MAKE); $(unstage)
a90ef4bf 29561 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29562 r=`${PWD_COMMAND}`; export r; \
29563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29564 $(HOST_EXPORTS) \
29565 for flag in $(EXTRA_HOST_FLAGS) ; do \
29566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29567 done; \
a90ef4bf
JM
29568 echo "Doing install-info in libtermcap" ; \
29569 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29572 "RANLIB=$${RANLIB}" \
29573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29574 install-info) \
dc448a7b
TT
29575 || exit 1
29576
a90ef4bf 29577@endif libtermcap
dc448a7b 29578
a90ef4bf
JM
29579.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
29580maybe-install-pdf-libtermcap:
29581@if libtermcap
29582maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 29583
a90ef4bf
JM
29584install-pdf-libtermcap: \
29585 configure-libtermcap \
29586 pdf-libtermcap
dc448a7b 29587 @: $(MAKE); $(unstage)
a90ef4bf 29588 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29589 r=`${PWD_COMMAND}`; export r; \
29590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29591 $(HOST_EXPORTS) \
29592 for flag in $(EXTRA_HOST_FLAGS) ; do \
29593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29594 done; \
a90ef4bf
JM
29595 echo "Doing install-pdf in libtermcap" ; \
29596 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29599 "RANLIB=$${RANLIB}" \
29600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29601 install-pdf) \
dc448a7b
TT
29602 || exit 1
29603
a90ef4bf 29604@endif libtermcap
dc448a7b 29605
a90ef4bf
JM
29606.PHONY: maybe-install-html-libtermcap install-html-libtermcap
29607maybe-install-html-libtermcap:
29608@if libtermcap
29609maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 29610
a90ef4bf
JM
29611install-html-libtermcap: \
29612 configure-libtermcap \
29613 html-libtermcap
dc448a7b 29614 @: $(MAKE); $(unstage)
a90ef4bf 29615 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29616 r=`${PWD_COMMAND}`; export r; \
29617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29618 $(HOST_EXPORTS) \
29619 for flag in $(EXTRA_HOST_FLAGS) ; do \
29620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29621 done; \
a90ef4bf
JM
29622 echo "Doing install-html in libtermcap" ; \
29623 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29626 "RANLIB=$${RANLIB}" \
29627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29628 install-html) \
dc448a7b
TT
29629 || exit 1
29630
a90ef4bf 29631@endif libtermcap
dc448a7b 29632
a90ef4bf
JM
29633.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
29634maybe-installcheck-libtermcap:
29635@if libtermcap
29636maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 29637
a90ef4bf
JM
29638installcheck-libtermcap: \
29639 configure-libtermcap
dc448a7b 29640 @: $(MAKE); $(unstage)
a90ef4bf 29641 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29642 r=`${PWD_COMMAND}`; export r; \
29643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29644 $(HOST_EXPORTS) \
29645 for flag in $(EXTRA_HOST_FLAGS) ; do \
29646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29647 done; \
a90ef4bf
JM
29648 echo "Doing installcheck in libtermcap" ; \
29649 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29652 "RANLIB=$${RANLIB}" \
29653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29654 installcheck) \
dc448a7b
TT
29655 || exit 1
29656
a90ef4bf 29657@endif libtermcap
dc448a7b 29658
a90ef4bf
JM
29659.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
29660maybe-mostlyclean-libtermcap:
29661@if libtermcap
29662maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 29663
a90ef4bf
JM
29664# libtermcap doesn't support mostlyclean.
29665mostlyclean-libtermcap:
dc448a7b 29666
a90ef4bf 29667@endif libtermcap
dc448a7b 29668
a90ef4bf
JM
29669.PHONY: maybe-clean-libtermcap clean-libtermcap
29670maybe-clean-libtermcap:
29671@if libtermcap
29672maybe-clean-libtermcap: clean-libtermcap
dc448a7b 29673
a90ef4bf
JM
29674# libtermcap doesn't support clean.
29675clean-libtermcap:
dc448a7b 29676
a90ef4bf
JM
29677@endif libtermcap
29678
29679.PHONY: maybe-distclean-libtermcap distclean-libtermcap
29680maybe-distclean-libtermcap:
29681@if libtermcap
29682maybe-distclean-libtermcap: distclean-libtermcap
29683
29684# libtermcap doesn't support distclean.
29685distclean-libtermcap:
29686
29687@endif libtermcap
29688
29689.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
29690maybe-maintainer-clean-libtermcap:
29691@if libtermcap
29692maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
29693
29694# libtermcap doesn't support maintainer-clean.
29695maintainer-clean-libtermcap:
29696
29697@endif libtermcap
29698
29699
29700
29701.PHONY: configure-utils maybe-configure-utils
29702maybe-configure-utils:
29703@if gcc-bootstrap
29704configure-utils: stage_current
29705@endif gcc-bootstrap
29706@if utils
29707maybe-configure-utils: configure-utils
29708configure-utils:
29709 @: $(MAKE); $(unstage)
c52c6897 29710 @r=`${PWD_COMMAND}`; export r; \
b40e3958 29711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29712 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
29713 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils ; \
1f53ca9a 29714 $(HOST_EXPORTS) \
a90ef4bf
JM
29715 echo Configuring in $(HOST_SUBDIR)/utils; \
29716 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 29717 case $(srcdir) in \
b00612cc 29718 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29719 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 29720 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29721 esac; \
1b6c0831
L
29722 module_srcdir=utils; \
29723 $(SHELL) \
29724 $$s/$$module_srcdir/configure \
29725 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29726 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29727 --target=${target_alias} \
2a4cbe27 29728 || exit 1
a90ef4bf 29729@endif utils
2a4cbe27 29730
a7254363
PB
29731
29732
d545f33b
PB
29733
29734
a90ef4bf
JM
29735.PHONY: all-utils maybe-all-utils
29736maybe-all-utils:
4f0ef2d8 29737@if gcc-bootstrap
a90ef4bf 29738all-utils: stage_current
4f0ef2d8 29739@endif gcc-bootstrap
a90ef4bf
JM
29740@if utils
29741TARGET-utils=all
29742maybe-all-utils: all-utils
29743all-utils: configure-utils
0aed8855 29744 @: $(MAKE); $(unstage)
4fa63067
NN
29745 @r=`${PWD_COMMAND}`; export r; \
29746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29747 $(HOST_EXPORTS) \
a90ef4bf 29748 (cd $(HOST_SUBDIR)/utils && \
b3676d82 29749 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29750 $(TARGET-utils))
29751@endif utils
2a4cbe27 29752
a7254363 29753
d545f33b
PB
29754
29755
a90ef4bf
JM
29756.PHONY: check-utils maybe-check-utils
29757maybe-check-utils:
29758@if utils
29759maybe-check-utils: check-utils
2a4cbe27 29760
a90ef4bf 29761check-utils:
2a4cbe27 29762
a90ef4bf 29763@endif utils
2a4cbe27 29764
a90ef4bf
JM
29765.PHONY: install-utils maybe-install-utils
29766maybe-install-utils:
29767@if utils
29768maybe-install-utils: install-utils
2a4cbe27 29769
a90ef4bf 29770install-utils: installdirs
0aed8855 29771 @: $(MAKE); $(unstage)
4fa63067 29772 @r=`${PWD_COMMAND}`; export r; \
b40e3958 29773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29774 $(HOST_EXPORTS) \
a90ef4bf 29775 (cd $(HOST_SUBDIR)/utils && \
2da12f12 29776 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 29777
a90ef4bf 29778@endif utils
2a4cbe27 29779
a90ef4bf
JM
29780.PHONY: install-strip-utils maybe-install-strip-utils
29781maybe-install-strip-utils:
29782@if utils
29783maybe-install-strip-utils: install-strip-utils
9b980aa1 29784
a90ef4bf 29785install-strip-utils: installdirs
9b980aa1
RW
29786 @: $(MAKE); $(unstage)
29787 @r=`${PWD_COMMAND}`; export r; \
29788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29789 $(HOST_EXPORTS) \
a90ef4bf 29790 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
29791 $(MAKE) $(FLAGS_TO_PASS) install-strip)
29792
a90ef4bf 29793@endif utils
9b980aa1 29794
56a8fe78 29795# Other targets (info, dvi, pdf, etc.)
2a4cbe27 29796
a90ef4bf
JM
29797.PHONY: maybe-info-utils info-utils
29798maybe-info-utils:
29799@if utils
29800maybe-info-utils: info-utils
4fa63067 29801
a90ef4bf
JM
29802info-utils: \
29803 configure-utils
0aed8855 29804 @: $(MAKE); $(unstage)
a90ef4bf 29805 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29806 r=`${PWD_COMMAND}`; export r; \
29807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29808 $(HOST_EXPORTS) \
b813574b 29809 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29811 done; \
a90ef4bf
JM
29812 echo "Doing info in utils" ; \
29813 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29816 "RANLIB=$${RANLIB}" \
0c24b341 29817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29818 info) \
2a4cbe27
NN
29819 || exit 1
29820
a90ef4bf 29821@endif utils
2a4cbe27 29822
a90ef4bf
JM
29823.PHONY: maybe-dvi-utils dvi-utils
29824maybe-dvi-utils:
29825@if utils
29826maybe-dvi-utils: dvi-utils
2a4cbe27 29827
a90ef4bf
JM
29828dvi-utils: \
29829 configure-utils
0aed8855 29830 @: $(MAKE); $(unstage)
a90ef4bf 29831 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29832 r=`${PWD_COMMAND}`; export r; \
29833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29834 $(HOST_EXPORTS) \
b813574b 29835 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29837 done; \
a90ef4bf
JM
29838 echo "Doing dvi in utils" ; \
29839 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29842 "RANLIB=$${RANLIB}" \
0c24b341 29843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29844 dvi) \
2a4cbe27
NN
29845 || exit 1
29846
a90ef4bf 29847@endif utils
2a4cbe27 29848
a90ef4bf
JM
29849.PHONY: maybe-pdf-utils pdf-utils
29850maybe-pdf-utils:
29851@if utils
29852maybe-pdf-utils: pdf-utils
56a8fe78 29853
a90ef4bf
JM
29854pdf-utils: \
29855 configure-utils
56a8fe78 29856 @: $(MAKE); $(unstage)
a90ef4bf 29857 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
29858 r=`${PWD_COMMAND}`; export r; \
29859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29860 $(HOST_EXPORTS) \
29861 for flag in $(EXTRA_HOST_FLAGS) ; do \
29862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29863 done; \
a90ef4bf
JM
29864 echo "Doing pdf in utils" ; \
29865 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
29866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29868 "RANLIB=$${RANLIB}" \
0c24b341 29869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29870 pdf) \
29871 || exit 1
29872
a90ef4bf 29873@endif utils
56a8fe78 29874
a90ef4bf
JM
29875.PHONY: maybe-html-utils html-utils
29876maybe-html-utils:
29877@if utils
29878maybe-html-utils: html-utils
6d389afc 29879
a90ef4bf
JM
29880html-utils: \
29881 configure-utils
0aed8855 29882 @: $(MAKE); $(unstage)
a90ef4bf 29883 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
29884 r=`${PWD_COMMAND}`; export r; \
29885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29886 $(HOST_EXPORTS) \
29887 for flag in $(EXTRA_HOST_FLAGS) ; do \
29888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29889 done; \
a90ef4bf
JM
29890 echo "Doing html in utils" ; \
29891 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
29892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29894 "RANLIB=$${RANLIB}" \
0c24b341 29895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29896 html) \
29897 || exit 1
29898
a90ef4bf 29899@endif utils
6d389afc 29900
a90ef4bf
JM
29901.PHONY: maybe-TAGS-utils TAGS-utils
29902maybe-TAGS-utils:
29903@if utils
29904maybe-TAGS-utils: TAGS-utils
2a4cbe27 29905
a90ef4bf
JM
29906TAGS-utils: \
29907 configure-utils
0aed8855 29908 @: $(MAKE); $(unstage)
a90ef4bf 29909 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29910 r=`${PWD_COMMAND}`; export r; \
29911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29912 $(HOST_EXPORTS) \
b813574b 29913 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29915 done; \
a90ef4bf
JM
29916 echo "Doing TAGS in utils" ; \
29917 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29920 "RANLIB=$${RANLIB}" \
0c24b341 29921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29922 TAGS) \
2a4cbe27
NN
29923 || exit 1
29924
a90ef4bf 29925@endif utils
2a4cbe27 29926
a90ef4bf
JM
29927.PHONY: maybe-install-info-utils install-info-utils
29928maybe-install-info-utils:
29929@if utils
29930maybe-install-info-utils: install-info-utils
2a4cbe27 29931
a90ef4bf
JM
29932install-info-utils: \
29933 configure-utils \
29934 info-utils
0aed8855 29935 @: $(MAKE); $(unstage)
a90ef4bf 29936 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
29937 r=`${PWD_COMMAND}`; export r; \
29938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29939 $(HOST_EXPORTS) \
b813574b 29940 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29942 done; \
a90ef4bf
JM
29943 echo "Doing install-info in utils" ; \
29944 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
29945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29947 "RANLIB=$${RANLIB}" \
0c24b341 29948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29949 install-info) \
2a4cbe27
NN
29950 || exit 1
29951
a90ef4bf 29952@endif utils
2a4cbe27 29953
a90ef4bf
JM
29954.PHONY: maybe-install-pdf-utils install-pdf-utils
29955maybe-install-pdf-utils:
29956@if utils
29957maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 29958
a90ef4bf
JM
29959install-pdf-utils: \
29960 configure-utils \
29961 pdf-utils
a3ca38d2 29962 @: $(MAKE); $(unstage)
a90ef4bf 29963 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
29964 r=`${PWD_COMMAND}`; export r; \
29965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29966 $(HOST_EXPORTS) \
29967 for flag in $(EXTRA_HOST_FLAGS) ; do \
29968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29969 done; \
a90ef4bf
JM
29970 echo "Doing install-pdf in utils" ; \
29971 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
29972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29974 "RANLIB=$${RANLIB}" \
0c24b341 29975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29976 install-pdf) \
29977 || exit 1
29978
a90ef4bf 29979@endif utils
a3ca38d2 29980
a90ef4bf
JM
29981.PHONY: maybe-install-html-utils install-html-utils
29982maybe-install-html-utils:
29983@if utils
29984maybe-install-html-utils: install-html-utils
108a6f8e 29985
a90ef4bf
JM
29986install-html-utils: \
29987 configure-utils \
29988 html-utils
108a6f8e 29989 @: $(MAKE); $(unstage)
a90ef4bf 29990 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
29991 r=`${PWD_COMMAND}`; export r; \
29992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29993 $(HOST_EXPORTS) \
29994 for flag in $(EXTRA_HOST_FLAGS) ; do \
29995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29996 done; \
a90ef4bf
JM
29997 echo "Doing install-html in utils" ; \
29998 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
29999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30001 "RANLIB=$${RANLIB}" \
0c24b341 30002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30003 install-html) \
30004 || exit 1
30005
a90ef4bf 30006@endif utils
108a6f8e 30007
a90ef4bf
JM
30008.PHONY: maybe-installcheck-utils installcheck-utils
30009maybe-installcheck-utils:
30010@if utils
30011maybe-installcheck-utils: installcheck-utils
2a4cbe27 30012
a90ef4bf
JM
30013installcheck-utils: \
30014 configure-utils
0aed8855 30015 @: $(MAKE); $(unstage)
a90ef4bf 30016 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30017 r=`${PWD_COMMAND}`; export r; \
30018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30019 $(HOST_EXPORTS) \
b813574b 30020 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30022 done; \
a90ef4bf
JM
30023 echo "Doing installcheck in utils" ; \
30024 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30027 "RANLIB=$${RANLIB}" \
0c24b341 30028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30029 installcheck) \
2a4cbe27
NN
30030 || exit 1
30031
a90ef4bf 30032@endif utils
2a4cbe27 30033
a90ef4bf
JM
30034.PHONY: maybe-mostlyclean-utils mostlyclean-utils
30035maybe-mostlyclean-utils:
30036@if utils
30037maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 30038
a90ef4bf 30039mostlyclean-utils:
0aed8855 30040 @: $(MAKE); $(unstage)
a90ef4bf 30041 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30042 r=`${PWD_COMMAND}`; export r; \
30043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30044 $(HOST_EXPORTS) \
b813574b 30045 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30047 done; \
a90ef4bf
JM
30048 echo "Doing mostlyclean in utils" ; \
30049 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30052 "RANLIB=$${RANLIB}" \
0c24b341 30053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30054 mostlyclean) \
2a4cbe27
NN
30055 || exit 1
30056
a90ef4bf 30057@endif utils
2a4cbe27 30058
a90ef4bf
JM
30059.PHONY: maybe-clean-utils clean-utils
30060maybe-clean-utils:
30061@if utils
30062maybe-clean-utils: clean-utils
2a4cbe27 30063
a90ef4bf 30064clean-utils:
0aed8855 30065 @: $(MAKE); $(unstage)
a90ef4bf 30066 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30067 r=`${PWD_COMMAND}`; export r; \
30068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30069 $(HOST_EXPORTS) \
b813574b 30070 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30072 done; \
a90ef4bf
JM
30073 echo "Doing clean in utils" ; \
30074 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30077 "RANLIB=$${RANLIB}" \
0c24b341 30078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30079 clean) \
2a4cbe27
NN
30080 || exit 1
30081
a90ef4bf 30082@endif utils
2a4cbe27 30083
a90ef4bf
JM
30084.PHONY: maybe-distclean-utils distclean-utils
30085maybe-distclean-utils:
30086@if utils
30087maybe-distclean-utils: distclean-utils
2a4cbe27 30088
a90ef4bf 30089distclean-utils:
0aed8855 30090 @: $(MAKE); $(unstage)
a90ef4bf 30091 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30092 r=`${PWD_COMMAND}`; export r; \
30093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30094 $(HOST_EXPORTS) \
b813574b 30095 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30097 done; \
a90ef4bf
JM
30098 echo "Doing distclean in utils" ; \
30099 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30102 "RANLIB=$${RANLIB}" \
0c24b341 30103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30104 distclean) \
2a4cbe27
NN
30105 || exit 1
30106
a90ef4bf 30107@endif utils
2a4cbe27 30108
a90ef4bf
JM
30109.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
30110maybe-maintainer-clean-utils:
30111@if utils
30112maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 30113
a90ef4bf 30114maintainer-clean-utils:
0aed8855 30115 @: $(MAKE); $(unstage)
a90ef4bf 30116 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30117 r=`${PWD_COMMAND}`; export r; \
30118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30119 $(HOST_EXPORTS) \
b813574b 30120 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30122 done; \
a90ef4bf
JM
30123 echo "Doing maintainer-clean in utils" ; \
30124 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30127 "RANLIB=$${RANLIB}" \
0c24b341 30128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30129 maintainer-clean) \
2a4cbe27
NN
30130 || exit 1
30131
a90ef4bf 30132@endif utils
2a4cbe27 30133
2a4cbe27 30134
a7254363 30135
a90ef4bf
JM
30136.PHONY: configure-gnattools maybe-configure-gnattools
30137maybe-configure-gnattools:
4f0ef2d8 30138@if gcc-bootstrap
a90ef4bf 30139configure-gnattools: stage_current
4f0ef2d8 30140@endif gcc-bootstrap
a90ef4bf
JM
30141@if gnattools
30142maybe-configure-gnattools: configure-gnattools
30143configure-gnattools:
0aed8855 30144 @: $(MAKE); $(unstage)
c52c6897 30145 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30147 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
30148 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools ; \
1f53ca9a 30149 $(HOST_EXPORTS) \
a90ef4bf
JM
30150 echo Configuring in $(HOST_SUBDIR)/gnattools; \
30151 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 30152 case $(srcdir) in \
b00612cc 30153 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30154 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 30155 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30156 esac; \
1b6c0831
L
30157 module_srcdir=gnattools; \
30158 $(SHELL) \
30159 $$s/$$module_srcdir/configure \
30160 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30161 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30162 --target=${target_alias} \
2a4cbe27 30163 || exit 1
a90ef4bf 30164@endif gnattools
2a4cbe27 30165
a7254363
PB
30166
30167
d545f33b
PB
30168
30169
a90ef4bf
JM
30170.PHONY: all-gnattools maybe-all-gnattools
30171maybe-all-gnattools:
4f0ef2d8 30172@if gcc-bootstrap
a90ef4bf 30173all-gnattools: stage_current
4f0ef2d8 30174@endif gcc-bootstrap
a90ef4bf
JM
30175@if gnattools
30176TARGET-gnattools=all
30177maybe-all-gnattools: all-gnattools
30178all-gnattools: configure-gnattools
0aed8855 30179 @: $(MAKE); $(unstage)
4fa63067
NN
30180 @r=`${PWD_COMMAND}`; export r; \
30181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30182 $(HOST_EXPORTS) \
a90ef4bf 30183 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 30184 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30185 $(TARGET-gnattools))
30186@endif gnattools
4fa63067 30187
a7254363 30188
d545f33b
PB
30189
30190
a90ef4bf
JM
30191.PHONY: check-gnattools maybe-check-gnattools
30192maybe-check-gnattools:
30193@if gnattools
30194maybe-check-gnattools: check-gnattools
2a4cbe27 30195
a90ef4bf 30196check-gnattools:
0aed8855 30197 @: $(MAKE); $(unstage)
4fa63067
NN
30198 @r=`${PWD_COMMAND}`; export r; \
30199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 30200 $(HOST_EXPORTS) \
a90ef4bf 30201 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 30202 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 30203
a90ef4bf 30204@endif gnattools
4fa63067 30205
a90ef4bf
JM
30206.PHONY: install-gnattools maybe-install-gnattools
30207maybe-install-gnattools:
30208@if gnattools
30209maybe-install-gnattools: install-gnattools
4fa63067 30210
a90ef4bf 30211install-gnattools: installdirs
0aed8855 30212 @: $(MAKE); $(unstage)
4fa63067
NN
30213 @r=`${PWD_COMMAND}`; export r; \
30214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30215 $(HOST_EXPORTS) \
a90ef4bf 30216 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 30217 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 30218
a90ef4bf 30219@endif gnattools
4fa63067 30220
a90ef4bf
JM
30221.PHONY: install-strip-gnattools maybe-install-strip-gnattools
30222maybe-install-strip-gnattools:
30223@if gnattools
30224maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 30225
a90ef4bf 30226install-strip-gnattools: installdirs
9b980aa1
RW
30227 @: $(MAKE); $(unstage)
30228 @r=`${PWD_COMMAND}`; export r; \
30229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30230 $(HOST_EXPORTS) \
a90ef4bf 30231 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
30232 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30233
a90ef4bf 30234@endif gnattools
9b980aa1 30235
56a8fe78 30236# Other targets (info, dvi, pdf, etc.)
4fa63067 30237
a90ef4bf
JM
30238.PHONY: maybe-info-gnattools info-gnattools
30239maybe-info-gnattools:
30240@if gnattools
30241maybe-info-gnattools: info-gnattools
4fa63067 30242
a90ef4bf
JM
30243info-gnattools: \
30244 configure-gnattools
0aed8855 30245 @: $(MAKE); $(unstage)
a90ef4bf 30246 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30247 r=`${PWD_COMMAND}`; export r; \
30248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30249 $(HOST_EXPORTS) \
b813574b 30250 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30252 done; \
a90ef4bf
JM
30253 echo "Doing info in gnattools" ; \
30254 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30257 "RANLIB=$${RANLIB}" \
0c24b341 30258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30259 info) \
2a4cbe27
NN
30260 || exit 1
30261
a90ef4bf 30262@endif gnattools
2a4cbe27 30263
a90ef4bf
JM
30264.PHONY: maybe-dvi-gnattools dvi-gnattools
30265maybe-dvi-gnattools:
30266@if gnattools
30267maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 30268
a90ef4bf
JM
30269dvi-gnattools: \
30270 configure-gnattools
0aed8855 30271 @: $(MAKE); $(unstage)
a90ef4bf 30272 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30273 r=`${PWD_COMMAND}`; export r; \
30274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30275 $(HOST_EXPORTS) \
b813574b 30276 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30278 done; \
a90ef4bf
JM
30279 echo "Doing dvi in gnattools" ; \
30280 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30283 "RANLIB=$${RANLIB}" \
0c24b341 30284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30285 dvi) \
2a4cbe27
NN
30286 || exit 1
30287
a90ef4bf 30288@endif gnattools
2a4cbe27 30289
a90ef4bf
JM
30290.PHONY: maybe-pdf-gnattools pdf-gnattools
30291maybe-pdf-gnattools:
30292@if gnattools
30293maybe-pdf-gnattools: pdf-gnattools
56a8fe78 30294
a90ef4bf
JM
30295pdf-gnattools: \
30296 configure-gnattools
56a8fe78 30297 @: $(MAKE); $(unstage)
a90ef4bf 30298 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
30299 r=`${PWD_COMMAND}`; export r; \
30300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30301 $(HOST_EXPORTS) \
30302 for flag in $(EXTRA_HOST_FLAGS) ; do \
30303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30304 done; \
a90ef4bf
JM
30305 echo "Doing pdf in gnattools" ; \
30306 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
30307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30309 "RANLIB=$${RANLIB}" \
0c24b341 30310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30311 pdf) \
30312 || exit 1
30313
a90ef4bf 30314@endif gnattools
56a8fe78 30315
a90ef4bf
JM
30316.PHONY: maybe-html-gnattools html-gnattools
30317maybe-html-gnattools:
30318@if gnattools
30319maybe-html-gnattools: html-gnattools
6d389afc 30320
a90ef4bf
JM
30321html-gnattools: \
30322 configure-gnattools
0aed8855 30323 @: $(MAKE); $(unstage)
a90ef4bf 30324 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
30325 r=`${PWD_COMMAND}`; export r; \
30326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30327 $(HOST_EXPORTS) \
30328 for flag in $(EXTRA_HOST_FLAGS) ; do \
30329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30330 done; \
a90ef4bf
JM
30331 echo "Doing html in gnattools" ; \
30332 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
30333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30335 "RANLIB=$${RANLIB}" \
0c24b341 30336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30337 html) \
30338 || exit 1
30339
a90ef4bf 30340@endif gnattools
6d389afc 30341
a90ef4bf
JM
30342.PHONY: maybe-TAGS-gnattools TAGS-gnattools
30343maybe-TAGS-gnattools:
30344@if gnattools
30345maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 30346
a90ef4bf
JM
30347TAGS-gnattools: \
30348 configure-gnattools
0aed8855 30349 @: $(MAKE); $(unstage)
a90ef4bf 30350 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30351 r=`${PWD_COMMAND}`; export r; \
30352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30353 $(HOST_EXPORTS) \
b813574b 30354 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30356 done; \
a90ef4bf
JM
30357 echo "Doing TAGS in gnattools" ; \
30358 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30361 "RANLIB=$${RANLIB}" \
0c24b341 30362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30363 TAGS) \
2a4cbe27
NN
30364 || exit 1
30365
a90ef4bf 30366@endif gnattools
2a4cbe27 30367
a90ef4bf
JM
30368.PHONY: maybe-install-info-gnattools install-info-gnattools
30369maybe-install-info-gnattools:
30370@if gnattools
30371maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 30372
a90ef4bf
JM
30373install-info-gnattools: \
30374 configure-gnattools \
30375 info-gnattools
0aed8855 30376 @: $(MAKE); $(unstage)
a90ef4bf 30377 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30378 r=`${PWD_COMMAND}`; export r; \
30379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30380 $(HOST_EXPORTS) \
b813574b 30381 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30383 done; \
a90ef4bf
JM
30384 echo "Doing install-info in gnattools" ; \
30385 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30388 "RANLIB=$${RANLIB}" \
0c24b341 30389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30390 install-info) \
2a4cbe27
NN
30391 || exit 1
30392
a90ef4bf 30393@endif gnattools
2a4cbe27 30394
a90ef4bf
JM
30395.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
30396maybe-install-pdf-gnattools:
30397@if gnattools
30398maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 30399
a90ef4bf
JM
30400install-pdf-gnattools: \
30401 configure-gnattools \
30402 pdf-gnattools
a3ca38d2 30403 @: $(MAKE); $(unstage)
a90ef4bf 30404 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
30405 r=`${PWD_COMMAND}`; export r; \
30406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30407 $(HOST_EXPORTS) \
30408 for flag in $(EXTRA_HOST_FLAGS) ; do \
30409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30410 done; \
a90ef4bf
JM
30411 echo "Doing install-pdf in gnattools" ; \
30412 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
30413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30415 "RANLIB=$${RANLIB}" \
0c24b341 30416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30417 install-pdf) \
30418 || exit 1
30419
a90ef4bf 30420@endif gnattools
a3ca38d2 30421
a90ef4bf
JM
30422.PHONY: maybe-install-html-gnattools install-html-gnattools
30423maybe-install-html-gnattools:
30424@if gnattools
30425maybe-install-html-gnattools: install-html-gnattools
108a6f8e 30426
a90ef4bf
JM
30427install-html-gnattools: \
30428 configure-gnattools \
30429 html-gnattools
108a6f8e 30430 @: $(MAKE); $(unstage)
a90ef4bf 30431 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
30432 r=`${PWD_COMMAND}`; export r; \
30433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30434 $(HOST_EXPORTS) \
30435 for flag in $(EXTRA_HOST_FLAGS) ; do \
30436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30437 done; \
a90ef4bf
JM
30438 echo "Doing install-html in gnattools" ; \
30439 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
30440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30442 "RANLIB=$${RANLIB}" \
0c24b341 30443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30444 install-html) \
30445 || exit 1
30446
a90ef4bf 30447@endif gnattools
108a6f8e 30448
a90ef4bf
JM
30449.PHONY: maybe-installcheck-gnattools installcheck-gnattools
30450maybe-installcheck-gnattools:
30451@if gnattools
30452maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 30453
a90ef4bf
JM
30454installcheck-gnattools: \
30455 configure-gnattools
0aed8855 30456 @: $(MAKE); $(unstage)
a90ef4bf 30457 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30458 r=`${PWD_COMMAND}`; export r; \
30459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30460 $(HOST_EXPORTS) \
b813574b 30461 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30463 done; \
a90ef4bf
JM
30464 echo "Doing installcheck in gnattools" ; \
30465 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30468 "RANLIB=$${RANLIB}" \
0c24b341 30469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30470 installcheck) \
2a4cbe27
NN
30471 || exit 1
30472
a90ef4bf 30473@endif gnattools
2a4cbe27 30474
a90ef4bf
JM
30475.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
30476maybe-mostlyclean-gnattools:
30477@if gnattools
30478maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 30479
a90ef4bf 30480mostlyclean-gnattools:
0aed8855 30481 @: $(MAKE); $(unstage)
a90ef4bf 30482 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30483 r=`${PWD_COMMAND}`; export r; \
30484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30485 $(HOST_EXPORTS) \
b813574b 30486 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30488 done; \
a90ef4bf
JM
30489 echo "Doing mostlyclean in gnattools" ; \
30490 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30493 "RANLIB=$${RANLIB}" \
0c24b341 30494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30495 mostlyclean) \
2a4cbe27
NN
30496 || exit 1
30497
a90ef4bf 30498@endif gnattools
2a4cbe27 30499
a90ef4bf
JM
30500.PHONY: maybe-clean-gnattools clean-gnattools
30501maybe-clean-gnattools:
30502@if gnattools
30503maybe-clean-gnattools: clean-gnattools
2a4cbe27 30504
a90ef4bf 30505clean-gnattools:
0aed8855 30506 @: $(MAKE); $(unstage)
a90ef4bf 30507 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30508 r=`${PWD_COMMAND}`; export r; \
30509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30510 $(HOST_EXPORTS) \
b813574b 30511 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30513 done; \
a90ef4bf
JM
30514 echo "Doing clean in gnattools" ; \
30515 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30518 "RANLIB=$${RANLIB}" \
0c24b341 30519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30520 clean) \
2a4cbe27
NN
30521 || exit 1
30522
a90ef4bf 30523@endif gnattools
2a4cbe27 30524
a90ef4bf
JM
30525.PHONY: maybe-distclean-gnattools distclean-gnattools
30526maybe-distclean-gnattools:
30527@if gnattools
30528maybe-distclean-gnattools: distclean-gnattools
a2592b1b 30529
a90ef4bf 30530distclean-gnattools:
0aed8855 30531 @: $(MAKE); $(unstage)
a90ef4bf 30532 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
30533 r=`${PWD_COMMAND}`; export r; \
30534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30535 $(HOST_EXPORTS) \
b813574b 30536 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
30537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30538 done; \
a90ef4bf
JM
30539 echo "Doing distclean in gnattools" ; \
30540 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
30541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30543 "RANLIB=$${RANLIB}" \
0c24b341 30544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30545 distclean) \
a2592b1b
DD
30546 || exit 1
30547
a90ef4bf 30548@endif gnattools
a2592b1b 30549
a90ef4bf
JM
30550.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
30551maybe-maintainer-clean-gnattools:
30552@if gnattools
30553maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 30554
a90ef4bf 30555maintainer-clean-gnattools:
0aed8855 30556 @: $(MAKE); $(unstage)
a90ef4bf 30557 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 30558 r=`${PWD_COMMAND}`; export r; \
b40e3958 30559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30560 $(HOST_EXPORTS) \
b813574b 30561 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30563 done; \
a90ef4bf
JM
30564 echo "Doing maintainer-clean in gnattools" ; \
30565 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
30566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30568 "RANLIB=$${RANLIB}" \
0c24b341 30569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30570 maintainer-clean) \
4fa63067 30571 || exit 1
252b5132 30572
a90ef4bf 30573@endif gnattools
252b5132 30574
252b5132 30575
a7254363 30576
a90ef4bf
JM
30577.PHONY: configure-lto-plugin maybe-configure-lto-plugin
30578maybe-configure-lto-plugin:
4f0ef2d8 30579@if gcc-bootstrap
a90ef4bf 30580configure-lto-plugin: stage_current
4f0ef2d8 30581@endif gcc-bootstrap
a90ef4bf
JM
30582@if lto-plugin
30583maybe-configure-lto-plugin: configure-lto-plugin
30584configure-lto-plugin:
c52c6897 30585 @r=`${PWD_COMMAND}`; export r; \
b813574b 30586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30587 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
30588 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
1f53ca9a 30589 $(HOST_EXPORTS) \
a90ef4bf
JM
30590 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
30591 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 30592 case $(srcdir) in \
b00612cc 30593 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30594 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 30595 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30596 esac; \
1b6c0831
L
30597 module_srcdir=lto-plugin; \
30598 $(SHELL) \
30599 $$s/$$module_srcdir/configure \
30600 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30601 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30602 --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
4fa63067 30603 || exit 1
a90ef4bf 30604@endif lto-plugin
a7254363 30605
d545f33b
PB
30606
30607
a90ef4bf
JM
30608.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
30609maybe-configure-stage1-lto-plugin:
30610@if lto-plugin-bootstrap
30611maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
30612configure-stage1-lto-plugin:
30613 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
30614 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
30615 @r=`${PWD_COMMAND}`; export r; \
30616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30617 TFLAGS="$(STAGE1_TFLAGS)"; \
30618 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
30619 $(HOST_EXPORTS) \
30620 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
30621 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
30622 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
30623 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin ; \
30624 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30625 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30626 case $(srcdir) in \
30627 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30628 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30629 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30630 esac; \
1b6c0831
L
30631 module_srcdir=lto-plugin; \
30632 $(SHELL) $$s/$$module_srcdir/configure \
30633 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30634 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30635 --target=${target_alias} \
30636 \
a90ef4bf 30637 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 30638 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30639@endif lto-plugin-bootstrap
252b5132 30640
a90ef4bf
JM
30641.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
30642maybe-configure-stage2-lto-plugin:
30643@if lto-plugin-bootstrap
30644maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
30645configure-stage2-lto-plugin:
30646 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
30647 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
30648 @r=`${PWD_COMMAND}`; export r; \
30649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30650 TFLAGS="$(STAGE2_TFLAGS)"; \
30651 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 30652 $(HOST_EXPORTS) \
a90ef4bf
JM
30653 $(POSTSTAGE1_HOST_EXPORTS) \
30654 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
30655 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
30656 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
30657 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin ; \
30658 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30659 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30660 case $(srcdir) in \
30661 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30662 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30663 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30664 esac; \
1b6c0831
L
30665 module_srcdir=lto-plugin; \
30666 $(SHELL) $$s/$$module_srcdir/configure \
30667 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30668 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30669 --target=${target_alias} \
30670 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30671 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 30672 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30673@endif lto-plugin-bootstrap
4fa63067 30674
a90ef4bf
JM
30675.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
30676maybe-configure-stage3-lto-plugin:
30677@if lto-plugin-bootstrap
30678maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
30679configure-stage3-lto-plugin:
30680 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
30681 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
30682 @r=`${PWD_COMMAND}`; export r; \
30683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30684 TFLAGS="$(STAGE3_TFLAGS)"; \
30685 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 30686 $(HOST_EXPORTS) \
a90ef4bf
JM
30687 $(POSTSTAGE1_HOST_EXPORTS) \
30688 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
30689 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
30690 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
30691 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin ; \
30692 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30693 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30694 case $(srcdir) in \
30695 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30696 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30697 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30698 esac; \
1b6c0831
L
30699 module_srcdir=lto-plugin; \
30700 $(SHELL) $$s/$$module_srcdir/configure \
30701 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30702 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30703 --target=${target_alias} \
30704 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30705 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 30706 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30707@endif lto-plugin-bootstrap
9b980aa1 30708
a90ef4bf
JM
30709.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
30710maybe-configure-stage4-lto-plugin:
30711@if lto-plugin-bootstrap
30712maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
30713configure-stage4-lto-plugin:
30714 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
30715 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
30716 @r=`${PWD_COMMAND}`; export r; \
30717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30718 TFLAGS="$(STAGE4_TFLAGS)"; \
30719 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 30720 $(HOST_EXPORTS) \
a90ef4bf
JM
30721 $(POSTSTAGE1_HOST_EXPORTS) \
30722 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
30723 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
30724 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
30725 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin ; \
30726 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30727 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30728 case $(srcdir) in \
30729 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30730 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30731 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30732 esac; \
1b6c0831
L
30733 module_srcdir=lto-plugin; \
30734 $(SHELL) $$s/$$module_srcdir/configure \
30735 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30736 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30737 --target=${target_alias} \
30738 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30739 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 30740 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30741@endif lto-plugin-bootstrap
4fa63067 30742
a90ef4bf
JM
30743.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
30744maybe-configure-stageprofile-lto-plugin:
30745@if lto-plugin-bootstrap
30746maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
30747configure-stageprofile-lto-plugin:
30748 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
30749 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
30750 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30752 TFLAGS="$(STAGEprofile_TFLAGS)"; \
30753 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 30754 $(HOST_EXPORTS) \
a90ef4bf
JM
30755 $(POSTSTAGE1_HOST_EXPORTS) \
30756 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
30757 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
30758 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
30759 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin ; \
30760 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30761 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30762 case $(srcdir) in \
30763 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30764 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30765 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30766 esac; \
1b6c0831
L
30767 module_srcdir=lto-plugin; \
30768 $(SHELL) $$s/$$module_srcdir/configure \
30769 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30770 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30771 --target=${target_alias} \
30772 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30773 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 30774 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30775@endif lto-plugin-bootstrap
4fa63067 30776
a90ef4bf
JM
30777.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
30778maybe-configure-stagefeedback-lto-plugin:
30779@if lto-plugin-bootstrap
30780maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
30781configure-stagefeedback-lto-plugin:
30782 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
30783 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
30784 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30786 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
30787 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 30788 $(HOST_EXPORTS) \
a90ef4bf
JM
30789 $(POSTSTAGE1_HOST_EXPORTS) \
30790 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
30791 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
30792 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
30793 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin ; \
30794 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
30795 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
30796 case $(srcdir) in \
30797 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30798 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
30799 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30800 esac; \
1b6c0831
L
30801 module_srcdir=lto-plugin; \
30802 $(SHELL) $$s/$$module_srcdir/configure \
30803 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 30804 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
30805 --target=${target_alias} \
30806 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 30807 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 30808 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 30809@endif lto-plugin-bootstrap
252b5132 30810
56a8fe78 30811
56a8fe78 30812
56a8fe78 30813
6d389afc 30814
a90ef4bf
JM
30815.PHONY: all-lto-plugin maybe-all-lto-plugin
30816maybe-all-lto-plugin:
30817@if gcc-bootstrap
30818all-lto-plugin: stage_current
30819@endif gcc-bootstrap
30820@if lto-plugin
30821TARGET-lto-plugin=all
30822maybe-all-lto-plugin: all-lto-plugin
30823all-lto-plugin: configure-lto-plugin
30824 @r=`${PWD_COMMAND}`; export r; \
6d389afc 30825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30826 $(HOST_EXPORTS) \
30827 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 30828 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30829 $(TARGET-lto-plugin))
30830@endif lto-plugin
6d389afc 30831
6d389afc 30832
252b5132 30833
a90ef4bf
JM
30834.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
30835.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
30836maybe-all-stage1-lto-plugin:
30837maybe-clean-stage1-lto-plugin:
30838@if lto-plugin-bootstrap
30839maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
30840all-stage1: all-stage1-lto-plugin
30841TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
30842all-stage1-lto-plugin: configure-stage1-lto-plugin
30843 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
30844 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30846 TFLAGS="$(STAGE1_TFLAGS)"; \
30847 $(HOST_EXPORTS) \
30848 cd $(HOST_SUBDIR)/lto-plugin && \
30849 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30850 CFLAGS="$(STAGE1_CFLAGS)" \
30851 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
30852 LIBCFLAGS="$(LIBCFLAGS)" \
30853 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30854 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30855 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 30856 $(EXTRA_HOST_FLAGS) \
1b6c0831 30857 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30858 TFLAGS="$(STAGE1_TFLAGS)" \
30859 $(TARGET-stage1-lto-plugin)
3866be5d 30860
a90ef4bf
JM
30861maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
30862clean-stage1: clean-stage1-lto-plugin
30863clean-stage1-lto-plugin:
30864 @if [ $(current_stage) = stage1 ]; then \
30865 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30866 else \
30867 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
30868 $(MAKE) stage1-start; \
30869 fi; \
30870 cd $(HOST_SUBDIR)/lto-plugin && \
30871 $(MAKE) $(EXTRA_HOST_FLAGS) \
1b6c0831 30872 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 30873@endif lto-plugin-bootstrap
3866be5d 30874
3866be5d 30875
a90ef4bf
JM
30876.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
30877.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
30878maybe-all-stage2-lto-plugin:
30879maybe-clean-stage2-lto-plugin:
30880@if lto-plugin-bootstrap
30881maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
30882all-stage2: all-stage2-lto-plugin
30883TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
30884all-stage2-lto-plugin: configure-stage2-lto-plugin
30885 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
30886 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30888 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 30889 $(HOST_EXPORTS) \
a90ef4bf
JM
30890 $(POSTSTAGE1_HOST_EXPORTS) \
30891 cd $(HOST_SUBDIR)/lto-plugin && \
30892 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30893 CFLAGS="$(STAGE2_CFLAGS)" \
30894 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
30895 LIBCFLAGS="$(STAGE2_CFLAGS)" \
30896 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30897 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30898 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 30899 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30900 TFLAGS="$(STAGE2_TFLAGS)" \
30901 $(TARGET-stage2-lto-plugin)
3866be5d 30902
a90ef4bf
JM
30903maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
30904clean-stage2: clean-stage2-lto-plugin
30905clean-stage2-lto-plugin:
30906 @if [ $(current_stage) = stage2 ]; then \
30907 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30908 else \
30909 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
30910 $(MAKE) stage2-start; \
30911 fi; \
30912 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 30913 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 30914@endif lto-plugin-bootstrap
3866be5d 30915
a3ca38d2 30916
a90ef4bf
JM
30917.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
30918.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
30919maybe-all-stage3-lto-plugin:
30920maybe-clean-stage3-lto-plugin:
30921@if lto-plugin-bootstrap
30922maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
30923all-stage3: all-stage3-lto-plugin
30924TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
30925all-stage3-lto-plugin: configure-stage3-lto-plugin
30926 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
30927 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 30928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30929 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 30930 $(HOST_EXPORTS) \
a90ef4bf
JM
30931 $(POSTSTAGE1_HOST_EXPORTS) \
30932 cd $(HOST_SUBDIR)/lto-plugin && \
30933 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30934 CFLAGS="$(STAGE3_CFLAGS)" \
30935 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
30936 LIBCFLAGS="$(STAGE3_CFLAGS)" \
30937 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30938 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30939 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 30940 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30941 TFLAGS="$(STAGE3_TFLAGS)" \
30942 $(TARGET-stage3-lto-plugin)
a3ca38d2 30943
a90ef4bf
JM
30944maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
30945clean-stage3: clean-stage3-lto-plugin
30946clean-stage3-lto-plugin:
30947 @if [ $(current_stage) = stage3 ]; then \
30948 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30949 else \
30950 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
30951 $(MAKE) stage3-start; \
30952 fi; \
30953 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 30954 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 30955@endif lto-plugin-bootstrap
a3ca38d2 30956
108a6f8e 30957
a90ef4bf
JM
30958.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
30959.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
30960maybe-all-stage4-lto-plugin:
30961maybe-clean-stage4-lto-plugin:
30962@if lto-plugin-bootstrap
30963maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
30964all-stage4: all-stage4-lto-plugin
30965TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
30966all-stage4-lto-plugin: configure-stage4-lto-plugin
30967 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
30968 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 30969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30970 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 30971 $(HOST_EXPORTS) \
a90ef4bf
JM
30972 $(POSTSTAGE1_HOST_EXPORTS) \
30973 cd $(HOST_SUBDIR)/lto-plugin && \
30974 $(MAKE) $(BASE_FLAGS_TO_PASS) \
30975 CFLAGS="$(STAGE4_CFLAGS)" \
30976 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
30977 LIBCFLAGS="$(STAGE4_CFLAGS)" \
30978 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
30979 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
30980 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 30981 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
30982 TFLAGS="$(STAGE4_TFLAGS)" \
30983 $(TARGET-stage4-lto-plugin)
108a6f8e 30984
a90ef4bf
JM
30985maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
30986clean-stage4: clean-stage4-lto-plugin
30987clean-stage4-lto-plugin:
30988 @if [ $(current_stage) = stage4 ]; then \
30989 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
30990 else \
30991 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
30992 $(MAKE) stage4-start; \
30993 fi; \
30994 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 30995 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 30996@endif lto-plugin-bootstrap
4fa63067 30997
4fa63067 30998
a90ef4bf
JM
30999.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
31000.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
31001maybe-all-stageprofile-lto-plugin:
31002maybe-clean-stageprofile-lto-plugin:
31003@if lto-plugin-bootstrap
31004maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
31005all-stageprofile: all-stageprofile-lto-plugin
31006TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
31007all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31008 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31009 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31011 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 31012 $(HOST_EXPORTS) \
a90ef4bf
JM
31013 $(POSTSTAGE1_HOST_EXPORTS) \
31014 cd $(HOST_SUBDIR)/lto-plugin && \
31015 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31016 CFLAGS="$(STAGEprofile_CFLAGS)" \
31017 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
31018 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
31019 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31020 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31021 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31022 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31023 TFLAGS="$(STAGEprofile_TFLAGS)" \
31024 $(TARGET-stageprofile-lto-plugin)
4fa63067 31025
a90ef4bf
JM
31026maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
31027clean-stageprofile: clean-stageprofile-lto-plugin
31028clean-stageprofile-lto-plugin:
31029 @if [ $(current_stage) = stageprofile ]; then \
31030 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31031 else \
31032 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
31033 $(MAKE) stageprofile-start; \
31034 fi; \
31035 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31036 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31037@endif lto-plugin-bootstrap
4fa63067 31038
4fa63067 31039
a90ef4bf
JM
31040.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
31041.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
31042maybe-all-stagefeedback-lto-plugin:
31043maybe-clean-stagefeedback-lto-plugin:
31044@if lto-plugin-bootstrap
31045maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
31046all-stagefeedback: all-stagefeedback-lto-plugin
31047TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
31048all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31049 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31050 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31052 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 31053 $(HOST_EXPORTS) \
a90ef4bf
JM
31054 $(POSTSTAGE1_HOST_EXPORTS) \
31055 cd $(HOST_SUBDIR)/lto-plugin && \
31056 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31057 CFLAGS="$(STAGEfeedback_CFLAGS)" \
31058 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
31059 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
31060 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31061 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31062 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31063 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31064 TFLAGS="$(STAGEfeedback_TFLAGS)" \
31065 $(TARGET-stagefeedback-lto-plugin)
3866be5d 31066
a90ef4bf
JM
31067maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
31068clean-stagefeedback: clean-stagefeedback-lto-plugin
31069clean-stagefeedback-lto-plugin:
31070 @if [ $(current_stage) = stagefeedback ]; then \
31071 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31072 else \
31073 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
31074 $(MAKE) stagefeedback-start; \
31075 fi; \
31076 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31077 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31078@endif lto-plugin-bootstrap
a7254363 31079
e2b9e2dc 31080
a7254363
PB
31081
31082
d545f33b 31083
a90ef4bf
JM
31084.PHONY: check-lto-plugin maybe-check-lto-plugin
31085maybe-check-lto-plugin:
31086@if lto-plugin
31087maybe-check-lto-plugin: check-lto-plugin
d545f33b 31088
a90ef4bf 31089check-lto-plugin:
0aed8855 31090 @: $(MAKE); $(unstage)
b40e3958
L
31091 @r=`${PWD_COMMAND}`; export r; \
31092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31093 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 31094 (cd $(HOST_SUBDIR)/lto-plugin && \
f91ca6bc 31095 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
3866be5d 31096
a90ef4bf 31097@endif lto-plugin
3866be5d 31098
a90ef4bf
JM
31099.PHONY: install-lto-plugin maybe-install-lto-plugin
31100maybe-install-lto-plugin:
31101@if lto-plugin
31102maybe-install-lto-plugin: install-lto-plugin
4fa63067 31103
a90ef4bf 31104install-lto-plugin: installdirs
0aed8855 31105 @: $(MAKE); $(unstage)
4fa63067
NN
31106 @r=`${PWD_COMMAND}`; export r; \
31107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31108 $(HOST_EXPORTS) \
a90ef4bf 31109 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31110 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
4fa63067 31111
a90ef4bf 31112@endif lto-plugin
4fa63067 31113
a90ef4bf
JM
31114.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
31115maybe-install-strip-lto-plugin:
31116@if lto-plugin
31117maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 31118
a90ef4bf 31119install-strip-lto-plugin: installdirs
9b980aa1
RW
31120 @: $(MAKE); $(unstage)
31121 @r=`${PWD_COMMAND}`; export r; \
31122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31123 $(HOST_EXPORTS) \
a90ef4bf 31124 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31125 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
9b980aa1 31126
a90ef4bf 31127@endif lto-plugin
9b980aa1 31128
56a8fe78 31129# Other targets (info, dvi, pdf, etc.)
4fa63067 31130
a90ef4bf
JM
31131.PHONY: maybe-info-lto-plugin info-lto-plugin
31132maybe-info-lto-plugin:
31133@if lto-plugin
31134maybe-info-lto-plugin: info-lto-plugin
4fa63067 31135
a90ef4bf
JM
31136info-lto-plugin: \
31137 configure-lto-plugin
31138 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31139 r=`${PWD_COMMAND}`; export r; \
31140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31141 $(HOST_EXPORTS) \
1b6c0831 31142 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31144 done; \
a90ef4bf
JM
31145 echo "Doing info in lto-plugin" ; \
31146 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31149 "RANLIB=$${RANLIB}" \
0c24b341 31150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31151 info) \
4fa63067
NN
31152 || exit 1
31153
a90ef4bf 31154@endif lto-plugin
4fa63067 31155
a90ef4bf
JM
31156.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
31157maybe-dvi-lto-plugin:
31158@if lto-plugin
31159maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 31160
a90ef4bf
JM
31161dvi-lto-plugin: \
31162 configure-lto-plugin
31163 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31164 r=`${PWD_COMMAND}`; export r; \
31165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31166 $(HOST_EXPORTS) \
1b6c0831 31167 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31169 done; \
a90ef4bf
JM
31170 echo "Doing dvi in lto-plugin" ; \
31171 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31174 "RANLIB=$${RANLIB}" \
0c24b341 31175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31176 dvi) \
4fa63067
NN
31177 || exit 1
31178
a90ef4bf 31179@endif lto-plugin
4fa63067 31180
a90ef4bf
JM
31181.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
31182maybe-pdf-lto-plugin:
31183@if lto-plugin
31184maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 31185
a90ef4bf
JM
31186pdf-lto-plugin: \
31187 configure-lto-plugin
31188 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
31189 r=`${PWD_COMMAND}`; export r; \
31190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31191 $(HOST_EXPORTS) \
1b6c0831 31192 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
56a8fe78
DD
31193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31194 done; \
a90ef4bf
JM
31195 echo "Doing pdf in lto-plugin" ; \
31196 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
31197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31199 "RANLIB=$${RANLIB}" \
0c24b341 31200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31201 pdf) \
31202 || exit 1
31203
a90ef4bf 31204@endif lto-plugin
56a8fe78 31205
a90ef4bf
JM
31206.PHONY: maybe-html-lto-plugin html-lto-plugin
31207maybe-html-lto-plugin:
31208@if lto-plugin
31209maybe-html-lto-plugin: html-lto-plugin
6d389afc 31210
a90ef4bf
JM
31211html-lto-plugin: \
31212 configure-lto-plugin
31213 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
31214 r=`${PWD_COMMAND}`; export r; \
31215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 31216 $(HOST_EXPORTS) \
1b6c0831 31217 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
6d389afc
MS
31218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31219 done; \
a90ef4bf
JM
31220 echo "Doing html in lto-plugin" ; \
31221 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
31222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31224 "RANLIB=$${RANLIB}" \
0c24b341 31225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31226 html) \
31227 || exit 1
31228
a90ef4bf 31229@endif lto-plugin
6d389afc 31230
a90ef4bf
JM
31231.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
31232maybe-TAGS-lto-plugin:
31233@if lto-plugin
31234maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 31235
a90ef4bf
JM
31236TAGS-lto-plugin: \
31237 configure-lto-plugin
31238 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31239 r=`${PWD_COMMAND}`; export r; \
31240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31241 $(HOST_EXPORTS) \
1b6c0831 31242 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31244 done; \
a90ef4bf
JM
31245 echo "Doing TAGS in lto-plugin" ; \
31246 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31249 "RANLIB=$${RANLIB}" \
0c24b341 31250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31251 TAGS) \
4fa63067
NN
31252 || exit 1
31253
a90ef4bf 31254@endif lto-plugin
4fa63067 31255
a90ef4bf
JM
31256.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
31257maybe-install-info-lto-plugin:
31258@if lto-plugin
31259maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 31260
a90ef4bf
JM
31261install-info-lto-plugin: \
31262 configure-lto-plugin \
31263 info-lto-plugin
31264 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31265 r=`${PWD_COMMAND}`; export r; \
31266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31267 $(HOST_EXPORTS) \
1b6c0831 31268 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31270 done; \
a90ef4bf
JM
31271 echo "Doing install-info in lto-plugin" ; \
31272 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31275 "RANLIB=$${RANLIB}" \
0c24b341 31276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31277 install-info) \
4fa63067
NN
31278 || exit 1
31279
a90ef4bf 31280@endif lto-plugin
4fa63067 31281
a90ef4bf
JM
31282.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
31283maybe-install-pdf-lto-plugin:
31284@if lto-plugin
31285maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 31286
a90ef4bf
JM
31287install-pdf-lto-plugin: \
31288 configure-lto-plugin \
31289 pdf-lto-plugin
31290 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
31291 r=`${PWD_COMMAND}`; export r; \
31292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31293 $(HOST_EXPORTS) \
1b6c0831 31294 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
a3ca38d2
DD
31295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31296 done; \
a90ef4bf
JM
31297 echo "Doing install-pdf in lto-plugin" ; \
31298 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
31299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31301 "RANLIB=$${RANLIB}" \
0c24b341 31302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31303 install-pdf) \
31304 || exit 1
31305
a90ef4bf 31306@endif lto-plugin
a3ca38d2 31307
a90ef4bf
JM
31308.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
31309maybe-install-html-lto-plugin:
31310@if lto-plugin
31311maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 31312
a90ef4bf
JM
31313install-html-lto-plugin: \
31314 configure-lto-plugin \
31315 html-lto-plugin
31316 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
31317 r=`${PWD_COMMAND}`; export r; \
31318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31319 $(HOST_EXPORTS) \
1b6c0831 31320 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
108a6f8e
CD
31321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31322 done; \
a90ef4bf
JM
31323 echo "Doing install-html in lto-plugin" ; \
31324 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
31325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31327 "RANLIB=$${RANLIB}" \
0c24b341 31328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31329 install-html) \
31330 || exit 1
31331
a90ef4bf 31332@endif lto-plugin
108a6f8e 31333
a90ef4bf
JM
31334.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
31335maybe-installcheck-lto-plugin:
31336@if lto-plugin
31337maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 31338
a90ef4bf
JM
31339installcheck-lto-plugin: \
31340 configure-lto-plugin
31341 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31342 r=`${PWD_COMMAND}`; export r; \
31343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31344 $(HOST_EXPORTS) \
1b6c0831 31345 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31347 done; \
a90ef4bf
JM
31348 echo "Doing installcheck in lto-plugin" ; \
31349 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31352 "RANLIB=$${RANLIB}" \
0c24b341 31353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31354 installcheck) \
4fa63067
NN
31355 || exit 1
31356
a90ef4bf 31357@endif lto-plugin
4fa63067 31358
a90ef4bf
JM
31359.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
31360maybe-mostlyclean-lto-plugin:
31361@if lto-plugin
31362maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 31363
a90ef4bf
JM
31364mostlyclean-lto-plugin:
31365 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31366 r=`${PWD_COMMAND}`; export r; \
31367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31368 $(HOST_EXPORTS) \
1b6c0831 31369 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31371 done; \
a90ef4bf
JM
31372 echo "Doing mostlyclean in lto-plugin" ; \
31373 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31376 "RANLIB=$${RANLIB}" \
0c24b341 31377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31378 mostlyclean) \
4fa63067
NN
31379 || exit 1
31380
a90ef4bf 31381@endif lto-plugin
4fa63067 31382
a90ef4bf
JM
31383.PHONY: maybe-clean-lto-plugin clean-lto-plugin
31384maybe-clean-lto-plugin:
31385@if lto-plugin
31386maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 31387
a90ef4bf
JM
31388clean-lto-plugin:
31389 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31390 r=`${PWD_COMMAND}`; export r; \
31391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31392 $(HOST_EXPORTS) \
1b6c0831 31393 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31395 done; \
a90ef4bf
JM
31396 echo "Doing clean in lto-plugin" ; \
31397 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31400 "RANLIB=$${RANLIB}" \
0c24b341 31401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31402 clean) \
4fa63067
NN
31403 || exit 1
31404
a90ef4bf 31405@endif lto-plugin
4fa63067 31406
a90ef4bf
JM
31407.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
31408maybe-distclean-lto-plugin:
31409@if lto-plugin
31410maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 31411
a90ef4bf
JM
31412distclean-lto-plugin:
31413 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31414 r=`${PWD_COMMAND}`; export r; \
31415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31416 $(HOST_EXPORTS) \
1b6c0831 31417 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31419 done; \
a90ef4bf
JM
31420 echo "Doing distclean in lto-plugin" ; \
31421 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31424 "RANLIB=$${RANLIB}" \
0c24b341 31425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31426 distclean) \
4fa63067
NN
31427 || exit 1
31428
a90ef4bf 31429@endif lto-plugin
4fa63067 31430
a90ef4bf
JM
31431.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
31432maybe-maintainer-clean-lto-plugin:
31433@if lto-plugin
31434maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 31435
a90ef4bf
JM
31436maintainer-clean-lto-plugin:
31437 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31438 r=`${PWD_COMMAND}`; export r; \
31439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31440 $(HOST_EXPORTS) \
1b6c0831 31441 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31443 done; \
a90ef4bf
JM
31444 echo "Doing maintainer-clean in lto-plugin" ; \
31445 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31448 "RANLIB=$${RANLIB}" \
0c24b341 31449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31450 maintainer-clean) \
4fa63067 31451 || exit 1
16ae0395 31452
a90ef4bf
JM
31453@endif lto-plugin
31454
31455
31456
1b6c0831
L
31457.PHONY: configure-libcc1 maybe-configure-libcc1
31458maybe-configure-libcc1:
4f0ef2d8 31459@if gcc-bootstrap
1b6c0831 31460configure-libcc1: stage_current
4f0ef2d8 31461@endif gcc-bootstrap
1b6c0831
L
31462@if libcc1
31463maybe-configure-libcc1: configure-libcc1
31464configure-libcc1:
31465 @: $(MAKE); $(unstage)
c52c6897 31466 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31468 test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
31469 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1 ; \
31470 $(HOST_EXPORTS) \
31471 echo Configuring in $(HOST_SUBDIR)/libcc1; \
31472 cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
e2b9e2dc 31473 case $(srcdir) in \
b00612cc 31474 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 31475 *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \
b00612cc 31476 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 31477 esac; \
1b6c0831
L
31478 module_srcdir=libcc1; \
31479 $(SHELL) \
31480 $$s/$$module_srcdir/configure \
31481 --srcdir=$${topdir}/$$module_srcdir \
31482 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
31483 --target=${target_alias} --enable-shared \
e2b9e2dc 31484 || exit 1
1b6c0831 31485@endif libcc1
d545f33b
PB
31486
31487
3866be5d 31488
16ae0395 31489
9b980aa1 31490
1b6c0831
L
31491.PHONY: all-libcc1 maybe-all-libcc1
31492maybe-all-libcc1:
31493@if gcc-bootstrap
31494all-libcc1: stage_current
31495@endif gcc-bootstrap
31496@if libcc1
31497TARGET-libcc1=all
31498maybe-all-libcc1: all-libcc1
31499all-libcc1: configure-libcc1
31500 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31501 @r=`${PWD_COMMAND}`; export r; \
31502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31503 $(HOST_EXPORTS) \
31504 (cd $(HOST_SUBDIR)/libcc1 && \
31505 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
31506 $(TARGET-libcc1))
31507@endif libcc1
e8a5fa9c 31508
1b6c0831
L
31509
31510
31511
31512.PHONY: check-libcc1 maybe-check-libcc1
31513maybe-check-libcc1:
31514@if libcc1
31515maybe-check-libcc1: check-libcc1
31516
31517check-libcc1:
31518 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31519 @r=`${PWD_COMMAND}`; export r; \
31520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31521 $(HOST_EXPORTS) \
1b6c0831
L
31522 (cd $(HOST_SUBDIR)/libcc1 && \
31523 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 31524
1b6c0831
L
31525@endif libcc1
31526
31527.PHONY: install-libcc1 maybe-install-libcc1
31528maybe-install-libcc1:
31529@if libcc1
31530maybe-install-libcc1: install-libcc1
31531
31532install-libcc1: installdirs
31533 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31534 @r=`${PWD_COMMAND}`; export r; \
31535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31536 $(HOST_EXPORTS) \
31537 (cd $(HOST_SUBDIR)/libcc1 && \
31538 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 31539
1b6c0831
L
31540@endif libcc1
31541
31542.PHONY: install-strip-libcc1 maybe-install-strip-libcc1
31543maybe-install-strip-libcc1:
31544@if libcc1
31545maybe-install-strip-libcc1: install-strip-libcc1
31546
31547install-strip-libcc1: installdirs
31548 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31549 @r=`${PWD_COMMAND}`; export r; \
31550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31551 $(HOST_EXPORTS) \
31552 (cd $(HOST_SUBDIR)/libcc1 && \
31553 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 31554
1b6c0831 31555@endif libcc1
e8a5fa9c 31556
1b6c0831 31557# Other targets (info, dvi, pdf, etc.)
d545f33b 31558
1b6c0831
L
31559.PHONY: maybe-info-libcc1 info-libcc1
31560maybe-info-libcc1:
31561@if libcc1
31562maybe-info-libcc1: info-libcc1
d545f33b 31563
1b6c0831
L
31564info-libcc1: \
31565 configure-libcc1
31566 @: $(MAKE); $(unstage)
31567 @[ -f ./libcc1/Makefile ] || exit 0; \
31568 r=`${PWD_COMMAND}`; export r; \
b40e3958 31569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31570 $(HOST_EXPORTS) \
31571 for flag in $(EXTRA_HOST_FLAGS) ; do \
31572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31573 done; \
31574 echo "Doing info in libcc1" ; \
31575 (cd $(HOST_SUBDIR)/libcc1 && \
31576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31578 "RANLIB=$${RANLIB}" \
31579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31580 info) \
31581 || exit 1
3866be5d 31582
1b6c0831 31583@endif libcc1
a7254363 31584
1b6c0831
L
31585.PHONY: maybe-dvi-libcc1 dvi-libcc1
31586maybe-dvi-libcc1:
31587@if libcc1
31588maybe-dvi-libcc1: dvi-libcc1
a7254363 31589
1b6c0831
L
31590dvi-libcc1: \
31591 configure-libcc1
31592 @: $(MAKE); $(unstage)
31593 @[ -f ./libcc1/Makefile ] || exit 0; \
31594 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 31595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31596 $(HOST_EXPORTS) \
31597 for flag in $(EXTRA_HOST_FLAGS) ; do \
31598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31599 done; \
31600 echo "Doing dvi in libcc1" ; \
31601 (cd $(HOST_SUBDIR)/libcc1 && \
31602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31604 "RANLIB=$${RANLIB}" \
31605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31606 dvi) \
31607 || exit 1
e8a5fa9c 31608
1b6c0831 31609@endif libcc1
e8a5fa9c 31610
1b6c0831
L
31611.PHONY: maybe-pdf-libcc1 pdf-libcc1
31612maybe-pdf-libcc1:
31613@if libcc1
31614maybe-pdf-libcc1: pdf-libcc1
e8a5fa9c 31615
1b6c0831
L
31616pdf-libcc1: \
31617 configure-libcc1
31618 @: $(MAKE); $(unstage)
31619 @[ -f ./libcc1/Makefile ] || exit 0; \
31620 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 31621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31622 $(HOST_EXPORTS) \
31623 for flag in $(EXTRA_HOST_FLAGS) ; do \
31624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31625 done; \
31626 echo "Doing pdf in libcc1" ; \
31627 (cd $(HOST_SUBDIR)/libcc1 && \
31628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31630 "RANLIB=$${RANLIB}" \
31631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31632 pdf) \
31633 || exit 1
e8a5fa9c 31634
1b6c0831 31635@endif libcc1
e8a5fa9c 31636
1b6c0831
L
31637.PHONY: maybe-html-libcc1 html-libcc1
31638maybe-html-libcc1:
31639@if libcc1
31640maybe-html-libcc1: html-libcc1
e8a5fa9c 31641
1b6c0831
L
31642html-libcc1: \
31643 configure-libcc1
31644 @: $(MAKE); $(unstage)
31645 @[ -f ./libcc1/Makefile ] || exit 0; \
31646 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 31647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31648 $(HOST_EXPORTS) \
31649 for flag in $(EXTRA_HOST_FLAGS) ; do \
31650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31651 done; \
31652 echo "Doing html in libcc1" ; \
31653 (cd $(HOST_SUBDIR)/libcc1 && \
31654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31656 "RANLIB=$${RANLIB}" \
31657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31658 html) \
31659 || exit 1
e8a5fa9c 31660
1b6c0831 31661@endif libcc1
e8a5fa9c 31662
1b6c0831
L
31663.PHONY: maybe-TAGS-libcc1 TAGS-libcc1
31664maybe-TAGS-libcc1:
31665@if libcc1
31666maybe-TAGS-libcc1: TAGS-libcc1
e8a5fa9c 31667
1b6c0831
L
31668TAGS-libcc1: \
31669 configure-libcc1
31670 @: $(MAKE); $(unstage)
31671 @[ -f ./libcc1/Makefile ] || exit 0; \
31672 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 31673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31674 $(HOST_EXPORTS) \
31675 for flag in $(EXTRA_HOST_FLAGS) ; do \
31676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31677 done; \
31678 echo "Doing TAGS in libcc1" ; \
31679 (cd $(HOST_SUBDIR)/libcc1 && \
31680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31682 "RANLIB=$${RANLIB}" \
31683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31684 TAGS) \
31685 || exit 1
31686
31687@endif libcc1
31688
31689.PHONY: maybe-install-info-libcc1 install-info-libcc1
31690maybe-install-info-libcc1:
31691@if libcc1
31692maybe-install-info-libcc1: install-info-libcc1
31693
31694install-info-libcc1: \
31695 configure-libcc1 \
31696 info-libcc1
31697 @: $(MAKE); $(unstage)
31698 @[ -f ./libcc1/Makefile ] || exit 0; \
31699 r=`${PWD_COMMAND}`; export r; \
31700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31701 $(HOST_EXPORTS) \
31702 for flag in $(EXTRA_HOST_FLAGS) ; do \
31703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31704 done; \
31705 echo "Doing install-info in libcc1" ; \
31706 (cd $(HOST_SUBDIR)/libcc1 && \
31707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31709 "RANLIB=$${RANLIB}" \
31710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31711 install-info) \
31712 || exit 1
31713
31714@endif libcc1
31715
31716.PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1
31717maybe-install-pdf-libcc1:
31718@if libcc1
31719maybe-install-pdf-libcc1: install-pdf-libcc1
31720
31721install-pdf-libcc1: \
31722 configure-libcc1 \
31723 pdf-libcc1
31724 @: $(MAKE); $(unstage)
31725 @[ -f ./libcc1/Makefile ] || exit 0; \
31726 r=`${PWD_COMMAND}`; export r; \
31727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31728 $(HOST_EXPORTS) \
31729 for flag in $(EXTRA_HOST_FLAGS) ; do \
31730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31731 done; \
31732 echo "Doing install-pdf in libcc1" ; \
31733 (cd $(HOST_SUBDIR)/libcc1 && \
31734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31736 "RANLIB=$${RANLIB}" \
31737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31738 install-pdf) \
31739 || exit 1
31740
31741@endif libcc1
31742
31743.PHONY: maybe-install-html-libcc1 install-html-libcc1
31744maybe-install-html-libcc1:
31745@if libcc1
31746maybe-install-html-libcc1: install-html-libcc1
31747
31748install-html-libcc1: \
31749 configure-libcc1 \
31750 html-libcc1
31751 @: $(MAKE); $(unstage)
31752 @[ -f ./libcc1/Makefile ] || exit 0; \
31753 r=`${PWD_COMMAND}`; export r; \
31754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31755 $(HOST_EXPORTS) \
31756 for flag in $(EXTRA_HOST_FLAGS) ; do \
31757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31758 done; \
31759 echo "Doing install-html in libcc1" ; \
31760 (cd $(HOST_SUBDIR)/libcc1 && \
31761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31763 "RANLIB=$${RANLIB}" \
31764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31765 install-html) \
31766 || exit 1
31767
31768@endif libcc1
31769
31770.PHONY: maybe-installcheck-libcc1 installcheck-libcc1
31771maybe-installcheck-libcc1:
31772@if libcc1
31773maybe-installcheck-libcc1: installcheck-libcc1
31774
31775installcheck-libcc1: \
31776 configure-libcc1
31777 @: $(MAKE); $(unstage)
31778 @[ -f ./libcc1/Makefile ] || exit 0; \
31779 r=`${PWD_COMMAND}`; export r; \
31780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31781 $(HOST_EXPORTS) \
31782 for flag in $(EXTRA_HOST_FLAGS) ; do \
31783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31784 done; \
31785 echo "Doing installcheck in libcc1" ; \
31786 (cd $(HOST_SUBDIR)/libcc1 && \
31787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31789 "RANLIB=$${RANLIB}" \
31790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31791 installcheck) \
31792 || exit 1
31793
31794@endif libcc1
31795
31796.PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1
31797maybe-mostlyclean-libcc1:
31798@if libcc1
31799maybe-mostlyclean-libcc1: mostlyclean-libcc1
31800
31801mostlyclean-libcc1:
31802 @: $(MAKE); $(unstage)
31803 @[ -f ./libcc1/Makefile ] || exit 0; \
31804 r=`${PWD_COMMAND}`; export r; \
31805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31806 $(HOST_EXPORTS) \
31807 for flag in $(EXTRA_HOST_FLAGS) ; do \
31808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31809 done; \
31810 echo "Doing mostlyclean in libcc1" ; \
31811 (cd $(HOST_SUBDIR)/libcc1 && \
31812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31814 "RANLIB=$${RANLIB}" \
31815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31816 mostlyclean) \
31817 || exit 1
31818
31819@endif libcc1
31820
31821.PHONY: maybe-clean-libcc1 clean-libcc1
31822maybe-clean-libcc1:
31823@if libcc1
31824maybe-clean-libcc1: clean-libcc1
31825
31826clean-libcc1:
31827 @: $(MAKE); $(unstage)
31828 @[ -f ./libcc1/Makefile ] || exit 0; \
31829 r=`${PWD_COMMAND}`; export r; \
31830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31831 $(HOST_EXPORTS) \
31832 for flag in $(EXTRA_HOST_FLAGS) ; do \
31833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31834 done; \
31835 echo "Doing clean in libcc1" ; \
31836 (cd $(HOST_SUBDIR)/libcc1 && \
31837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31839 "RANLIB=$${RANLIB}" \
31840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31841 clean) \
31842 || exit 1
31843
31844@endif libcc1
31845
31846.PHONY: maybe-distclean-libcc1 distclean-libcc1
31847maybe-distclean-libcc1:
31848@if libcc1
31849maybe-distclean-libcc1: distclean-libcc1
31850
31851distclean-libcc1:
31852 @: $(MAKE); $(unstage)
31853 @[ -f ./libcc1/Makefile ] || exit 0; \
31854 r=`${PWD_COMMAND}`; export r; \
31855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31856 $(HOST_EXPORTS) \
31857 for flag in $(EXTRA_HOST_FLAGS) ; do \
31858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31859 done; \
31860 echo "Doing distclean in libcc1" ; \
31861 (cd $(HOST_SUBDIR)/libcc1 && \
31862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31864 "RANLIB=$${RANLIB}" \
31865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31866 distclean) \
31867 || exit 1
31868
31869@endif libcc1
31870
31871.PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1
31872maybe-maintainer-clean-libcc1:
31873@if libcc1
31874maybe-maintainer-clean-libcc1: maintainer-clean-libcc1
31875
31876maintainer-clean-libcc1:
31877 @: $(MAKE); $(unstage)
31878 @[ -f ./libcc1/Makefile ] || exit 0; \
31879 r=`${PWD_COMMAND}`; export r; \
31880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31881 $(HOST_EXPORTS) \
31882 for flag in $(EXTRA_HOST_FLAGS) ; do \
31883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31884 done; \
31885 echo "Doing maintainer-clean in libcc1" ; \
31886 (cd $(HOST_SUBDIR)/libcc1 && \
31887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31889 "RANLIB=$${RANLIB}" \
31890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31891 maintainer-clean) \
31892 || exit 1
31893
31894@endif libcc1
31895
31896
31897
31898.PHONY: configure-gotools maybe-configure-gotools
31899maybe-configure-gotools:
31900@if gcc-bootstrap
31901configure-gotools: stage_current
31902@endif gcc-bootstrap
31903@if gotools
31904maybe-configure-gotools: configure-gotools
31905configure-gotools:
31906 @: $(MAKE); $(unstage)
31907 @r=`${PWD_COMMAND}`; export r; \
31908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31909 test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \
31910 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools ; \
31911 $(HOST_EXPORTS) \
31912 echo Configuring in $(HOST_SUBDIR)/gotools; \
31913 cd "$(HOST_SUBDIR)/gotools" || exit 1; \
31914 case $(srcdir) in \
31915 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31916 *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \
31917 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31918 esac; \
31919 module_srcdir=gotools; \
31920 $(SHELL) \
31921 $$s/$$module_srcdir/configure \
31922 --srcdir=$${topdir}/$$module_srcdir \
31923 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
31924 --target=${target_alias} \
31925 || exit 1
31926@endif gotools
31927
31928
31929
31930
31931
31932.PHONY: all-gotools maybe-all-gotools
31933maybe-all-gotools:
31934@if gcc-bootstrap
31935all-gotools: stage_current
31936@endif gcc-bootstrap
31937@if gotools
31938TARGET-gotools=all
31939maybe-all-gotools: all-gotools
31940all-gotools: configure-gotools
31941 @: $(MAKE); $(unstage)
31942 @r=`${PWD_COMMAND}`; export r; \
31943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31944 $(HOST_EXPORTS) \
31945 (cd $(HOST_SUBDIR)/gotools && \
31946 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
31947 $(TARGET-gotools))
31948@endif gotools
31949
31950
31951
31952
31953.PHONY: check-gotools maybe-check-gotools
31954maybe-check-gotools:
31955@if gotools
31956maybe-check-gotools: check-gotools
31957
31958check-gotools:
31959 @: $(MAKE); $(unstage)
31960 @r=`${PWD_COMMAND}`; export r; \
31961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31962 $(HOST_EXPORTS) \
1b6c0831
L
31963 (cd $(HOST_SUBDIR)/gotools && \
31964 $(MAKE) $(FLAGS_TO_PASS) check)
31965
31966@endif gotools
31967
31968.PHONY: install-gotools maybe-install-gotools
31969maybe-install-gotools:
31970@if gotools
31971maybe-install-gotools: install-gotools
31972
31973install-gotools: installdirs
31974 @: $(MAKE); $(unstage)
31975 @r=`${PWD_COMMAND}`; export r; \
31976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31977 $(HOST_EXPORTS) \
31978 (cd $(HOST_SUBDIR)/gotools && \
31979 $(MAKE) $(FLAGS_TO_PASS) install)
31980
31981@endif gotools
31982
31983.PHONY: install-strip-gotools maybe-install-strip-gotools
31984maybe-install-strip-gotools:
31985@if gotools
31986maybe-install-strip-gotools: install-strip-gotools
31987
31988install-strip-gotools: installdirs
31989 @: $(MAKE); $(unstage)
31990 @r=`${PWD_COMMAND}`; export r; \
31991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31992 $(HOST_EXPORTS) \
31993 (cd $(HOST_SUBDIR)/gotools && \
31994 $(MAKE) $(FLAGS_TO_PASS) install-strip)
31995
31996@endif gotools
31997
31998# Other targets (info, dvi, pdf, etc.)
31999
32000.PHONY: maybe-info-gotools info-gotools
32001maybe-info-gotools:
32002@if gotools
32003maybe-info-gotools: info-gotools
32004
32005info-gotools: \
32006 configure-gotools
32007 @: $(MAKE); $(unstage)
32008 @[ -f ./gotools/Makefile ] || exit 0; \
32009 r=`${PWD_COMMAND}`; export r; \
32010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32011 $(HOST_EXPORTS) \
32012 for flag in $(EXTRA_HOST_FLAGS) ; do \
32013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32014 done; \
32015 echo "Doing info in gotools" ; \
32016 (cd $(HOST_SUBDIR)/gotools && \
32017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32019 "RANLIB=$${RANLIB}" \
32020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32021 info) \
32022 || exit 1
32023
32024@endif gotools
32025
32026.PHONY: maybe-dvi-gotools dvi-gotools
32027maybe-dvi-gotools:
32028@if gotools
32029maybe-dvi-gotools: dvi-gotools
32030
32031dvi-gotools: \
32032 configure-gotools
32033 @: $(MAKE); $(unstage)
32034 @[ -f ./gotools/Makefile ] || exit 0; \
32035 r=`${PWD_COMMAND}`; export r; \
32036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32037 $(HOST_EXPORTS) \
32038 for flag in $(EXTRA_HOST_FLAGS) ; do \
32039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32040 done; \
32041 echo "Doing dvi in gotools" ; \
32042 (cd $(HOST_SUBDIR)/gotools && \
32043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32045 "RANLIB=$${RANLIB}" \
32046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32047 dvi) \
32048 || exit 1
32049
32050@endif gotools
32051
32052.PHONY: maybe-pdf-gotools pdf-gotools
32053maybe-pdf-gotools:
32054@if gotools
32055maybe-pdf-gotools: pdf-gotools
32056
32057pdf-gotools: \
32058 configure-gotools
32059 @: $(MAKE); $(unstage)
32060 @[ -f ./gotools/Makefile ] || exit 0; \
32061 r=`${PWD_COMMAND}`; export r; \
32062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32063 $(HOST_EXPORTS) \
32064 for flag in $(EXTRA_HOST_FLAGS) ; do \
32065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32066 done; \
32067 echo "Doing pdf in gotools" ; \
32068 (cd $(HOST_SUBDIR)/gotools && \
32069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32071 "RANLIB=$${RANLIB}" \
32072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32073 pdf) \
32074 || exit 1
32075
32076@endif gotools
32077
32078.PHONY: maybe-html-gotools html-gotools
32079maybe-html-gotools:
32080@if gotools
32081maybe-html-gotools: html-gotools
32082
32083html-gotools: \
32084 configure-gotools
32085 @: $(MAKE); $(unstage)
32086 @[ -f ./gotools/Makefile ] || exit 0; \
32087 r=`${PWD_COMMAND}`; export r; \
32088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32089 $(HOST_EXPORTS) \
32090 for flag in $(EXTRA_HOST_FLAGS) ; do \
32091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32092 done; \
32093 echo "Doing html in gotools" ; \
32094 (cd $(HOST_SUBDIR)/gotools && \
32095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32097 "RANLIB=$${RANLIB}" \
32098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32099 html) \
32100 || exit 1
32101
32102@endif gotools
32103
32104.PHONY: maybe-TAGS-gotools TAGS-gotools
32105maybe-TAGS-gotools:
32106@if gotools
32107maybe-TAGS-gotools: TAGS-gotools
32108
32109TAGS-gotools: \
32110 configure-gotools
32111 @: $(MAKE); $(unstage)
32112 @[ -f ./gotools/Makefile ] || exit 0; \
32113 r=`${PWD_COMMAND}`; export r; \
32114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32115 $(HOST_EXPORTS) \
32116 for flag in $(EXTRA_HOST_FLAGS) ; do \
32117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32118 done; \
32119 echo "Doing TAGS in gotools" ; \
32120 (cd $(HOST_SUBDIR)/gotools && \
32121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32123 "RANLIB=$${RANLIB}" \
32124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32125 TAGS) \
32126 || exit 1
32127
32128@endif gotools
32129
32130.PHONY: maybe-install-info-gotools install-info-gotools
32131maybe-install-info-gotools:
32132@if gotools
32133maybe-install-info-gotools: install-info-gotools
32134
32135install-info-gotools: \
32136 configure-gotools \
32137 info-gotools
32138 @: $(MAKE); $(unstage)
32139 @[ -f ./gotools/Makefile ] || exit 0; \
32140 r=`${PWD_COMMAND}`; export r; \
32141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32142 $(HOST_EXPORTS) \
32143 for flag in $(EXTRA_HOST_FLAGS) ; do \
32144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32145 done; \
32146 echo "Doing install-info in gotools" ; \
32147 (cd $(HOST_SUBDIR)/gotools && \
32148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32150 "RANLIB=$${RANLIB}" \
32151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32152 install-info) \
32153 || exit 1
32154
32155@endif gotools
32156
32157.PHONY: maybe-install-pdf-gotools install-pdf-gotools
32158maybe-install-pdf-gotools:
32159@if gotools
32160maybe-install-pdf-gotools: install-pdf-gotools
32161
32162install-pdf-gotools: \
32163 configure-gotools \
32164 pdf-gotools
32165 @: $(MAKE); $(unstage)
32166 @[ -f ./gotools/Makefile ] || exit 0; \
32167 r=`${PWD_COMMAND}`; export r; \
32168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32169 $(HOST_EXPORTS) \
32170 for flag in $(EXTRA_HOST_FLAGS) ; do \
32171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32172 done; \
32173 echo "Doing install-pdf in gotools" ; \
32174 (cd $(HOST_SUBDIR)/gotools && \
32175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32177 "RANLIB=$${RANLIB}" \
32178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32179 install-pdf) \
32180 || exit 1
32181
32182@endif gotools
32183
32184.PHONY: maybe-install-html-gotools install-html-gotools
32185maybe-install-html-gotools:
32186@if gotools
32187maybe-install-html-gotools: install-html-gotools
32188
32189install-html-gotools: \
32190 configure-gotools \
32191 html-gotools
32192 @: $(MAKE); $(unstage)
32193 @[ -f ./gotools/Makefile ] || exit 0; \
32194 r=`${PWD_COMMAND}`; export r; \
32195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32196 $(HOST_EXPORTS) \
32197 for flag in $(EXTRA_HOST_FLAGS) ; do \
32198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32199 done; \
32200 echo "Doing install-html in gotools" ; \
32201 (cd $(HOST_SUBDIR)/gotools && \
32202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32204 "RANLIB=$${RANLIB}" \
32205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32206 install-html) \
32207 || exit 1
32208
32209@endif gotools
32210
32211.PHONY: maybe-installcheck-gotools installcheck-gotools
32212maybe-installcheck-gotools:
32213@if gotools
32214maybe-installcheck-gotools: installcheck-gotools
32215
32216installcheck-gotools: \
32217 configure-gotools
32218 @: $(MAKE); $(unstage)
32219 @[ -f ./gotools/Makefile ] || exit 0; \
32220 r=`${PWD_COMMAND}`; export r; \
32221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32222 $(HOST_EXPORTS) \
32223 for flag in $(EXTRA_HOST_FLAGS) ; do \
32224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32225 done; \
32226 echo "Doing installcheck in gotools" ; \
32227 (cd $(HOST_SUBDIR)/gotools && \
32228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32230 "RANLIB=$${RANLIB}" \
32231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32232 installcheck) \
32233 || exit 1
32234
32235@endif gotools
32236
32237.PHONY: maybe-mostlyclean-gotools mostlyclean-gotools
32238maybe-mostlyclean-gotools:
32239@if gotools
32240maybe-mostlyclean-gotools: mostlyclean-gotools
32241
32242mostlyclean-gotools:
32243 @: $(MAKE); $(unstage)
32244 @[ -f ./gotools/Makefile ] || exit 0; \
32245 r=`${PWD_COMMAND}`; export r; \
32246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32247 $(HOST_EXPORTS) \
32248 for flag in $(EXTRA_HOST_FLAGS) ; do \
32249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32250 done; \
32251 echo "Doing mostlyclean in gotools" ; \
32252 (cd $(HOST_SUBDIR)/gotools && \
32253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32255 "RANLIB=$${RANLIB}" \
32256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32257 mostlyclean) \
32258 || exit 1
32259
32260@endif gotools
32261
32262.PHONY: maybe-clean-gotools clean-gotools
32263maybe-clean-gotools:
32264@if gotools
32265maybe-clean-gotools: clean-gotools
32266
32267clean-gotools:
32268 @: $(MAKE); $(unstage)
32269 @[ -f ./gotools/Makefile ] || exit 0; \
32270 r=`${PWD_COMMAND}`; export r; \
32271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32272 $(HOST_EXPORTS) \
32273 for flag in $(EXTRA_HOST_FLAGS) ; do \
32274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32275 done; \
32276 echo "Doing clean in gotools" ; \
32277 (cd $(HOST_SUBDIR)/gotools && \
32278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32280 "RANLIB=$${RANLIB}" \
32281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32282 clean) \
32283 || exit 1
32284
32285@endif gotools
32286
32287.PHONY: maybe-distclean-gotools distclean-gotools
32288maybe-distclean-gotools:
32289@if gotools
32290maybe-distclean-gotools: distclean-gotools
32291
32292distclean-gotools:
32293 @: $(MAKE); $(unstage)
32294 @[ -f ./gotools/Makefile ] || exit 0; \
32295 r=`${PWD_COMMAND}`; export r; \
32296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32297 $(HOST_EXPORTS) \
32298 for flag in $(EXTRA_HOST_FLAGS) ; do \
32299 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32300 done; \
32301 echo "Doing distclean in gotools" ; \
32302 (cd $(HOST_SUBDIR)/gotools && \
32303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32305 "RANLIB=$${RANLIB}" \
32306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32307 distclean) \
32308 || exit 1
32309
32310@endif gotools
32311
32312.PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools
32313maybe-maintainer-clean-gotools:
32314@if gotools
32315maybe-maintainer-clean-gotools: maintainer-clean-gotools
32316
32317maintainer-clean-gotools:
32318 @: $(MAKE); $(unstage)
32319 @[ -f ./gotools/Makefile ] || exit 0; \
32320 r=`${PWD_COMMAND}`; export r; \
32321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32322 $(HOST_EXPORTS) \
32323 for flag in $(EXTRA_HOST_FLAGS) ; do \
32324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32325 done; \
32326 echo "Doing maintainer-clean in gotools" ; \
32327 (cd $(HOST_SUBDIR)/gotools && \
32328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32330 "RANLIB=$${RANLIB}" \
32331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32332 maintainer-clean) \
32333 || exit 1
32334
32335@endif gotools
32336
32337
32338
32339# ---------------------------------------
32340# Modules which run on the target machine
32341# ---------------------------------------
32342
32343
32344
32345
32346.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
32347maybe-configure-target-libstdc++-v3:
32348@if gcc-bootstrap
32349configure-target-libstdc++-v3: stage_current
32350@endif gcc-bootstrap
32351@if target-libstdc++-v3
32352maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
32353configure-target-libstdc++-v3:
32354 @r=`${PWD_COMMAND}`; export r; \
32355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32356 echo "Checking multilib configuration for libstdc++-v3..."; \
32357 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32358 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32359 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32360 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32361 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32362 else \
32363 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32364 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32365 fi; \
32366 else \
32367 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32368 fi; \
32369 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32370 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32371 $(RAW_CXX_TARGET_EXPORTS) \
32372 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
32373 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
32374 case $(srcdir) in \
32375 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32376 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32377 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32378 esac; \
32379 module_srcdir=libstdc++-v3; \
32380 rm -f no-such-file || : ; \
32381 CONFIG_SITE=no-such-file $(SHELL) \
32382 $$s/$$module_srcdir/configure \
32383 --srcdir=$${topdir}/$$module_srcdir \
32384 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32385 --target=${target_alias} \
32386 || exit 1
32387@endif target-libstdc++-v3
32388
32389
32390
32391.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
32392maybe-configure-stage1-target-libstdc++-v3:
32393@if target-libstdc++-v3-bootstrap
32394maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
32395configure-stage1-target-libstdc++-v3:
32396 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32397 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32398 @r=`${PWD_COMMAND}`; export r; \
32399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32400 TFLAGS="$(STAGE1_TFLAGS)"; \
32401 echo "Checking multilib configuration for libstdc++-v3..."; \
32402 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32403 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32404 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32405 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32406 else \
32407 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32408 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32409 fi; \
32410 else \
32411 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32412 fi; \
32413 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32414 $(RAW_CXX_TARGET_EXPORTS) \
32415 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32416 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32417 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32418 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32419 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32420 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32421 case $(srcdir) in \
32422 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32423 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32424 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32425 esac; \
32426 module_srcdir=libstdc++-v3; \
32427 $(SHELL) $$s/$$module_srcdir/configure \
32428 --srcdir=$${topdir}/$$module_srcdir \
32429 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32430 --target=${target_alias} \
32431 \
32432 $(STAGE1_CONFIGURE_FLAGS)
32433@endif target-libstdc++-v3-bootstrap
32434
32435.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
32436maybe-configure-stage2-target-libstdc++-v3:
32437@if target-libstdc++-v3-bootstrap
32438maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
32439configure-stage2-target-libstdc++-v3:
32440 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32441 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32442 @r=`${PWD_COMMAND}`; export r; \
32443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32444 TFLAGS="$(STAGE2_TFLAGS)"; \
32445 echo "Checking multilib configuration for libstdc++-v3..."; \
32446 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32447 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32448 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32449 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32450 else \
32451 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32452 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32453 fi; \
32454 else \
32455 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32456 fi; \
32457 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32458 $(RAW_CXX_TARGET_EXPORTS) \
32459 \
32460 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32461 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32462 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32463 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32464 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32465 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32466 case $(srcdir) in \
32467 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32468 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32469 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32470 esac; \
32471 module_srcdir=libstdc++-v3; \
32472 $(SHELL) $$s/$$module_srcdir/configure \
32473 --srcdir=$${topdir}/$$module_srcdir \
32474 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32475 --target=${target_alias} \
32476 --with-build-libsubdir=$(HOST_SUBDIR) \
32477 $(STAGE2_CONFIGURE_FLAGS)
32478@endif target-libstdc++-v3-bootstrap
32479
32480.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
32481maybe-configure-stage3-target-libstdc++-v3:
32482@if target-libstdc++-v3-bootstrap
32483maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
32484configure-stage3-target-libstdc++-v3:
32485 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32486 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32487 @r=`${PWD_COMMAND}`; export r; \
32488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32489 TFLAGS="$(STAGE3_TFLAGS)"; \
32490 echo "Checking multilib configuration for libstdc++-v3..."; \
32491 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32492 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32493 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32494 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32495 else \
32496 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32497 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32498 fi; \
32499 else \
32500 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32501 fi; \
32502 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32503 $(RAW_CXX_TARGET_EXPORTS) \
32504 \
32505 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32506 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32507 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32508 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32509 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32510 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32511 case $(srcdir) in \
32512 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32513 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32514 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32515 esac; \
32516 module_srcdir=libstdc++-v3; \
32517 $(SHELL) $$s/$$module_srcdir/configure \
32518 --srcdir=$${topdir}/$$module_srcdir \
32519 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32520 --target=${target_alias} \
32521 --with-build-libsubdir=$(HOST_SUBDIR) \
32522 $(STAGE3_CONFIGURE_FLAGS)
32523@endif target-libstdc++-v3-bootstrap
32524
32525.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
32526maybe-configure-stage4-target-libstdc++-v3:
32527@if target-libstdc++-v3-bootstrap
32528maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
32529configure-stage4-target-libstdc++-v3:
32530 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32531 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32532 @r=`${PWD_COMMAND}`; export r; \
32533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32534 TFLAGS="$(STAGE4_TFLAGS)"; \
32535 echo "Checking multilib configuration for libstdc++-v3..."; \
32536 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32537 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32538 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32539 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32540 else \
32541 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32542 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32543 fi; \
32544 else \
32545 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32546 fi; \
32547 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32548 $(RAW_CXX_TARGET_EXPORTS) \
32549 \
32550 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32551 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32552 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32553 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32554 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32555 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32556 case $(srcdir) in \
32557 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32558 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32559 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32560 esac; \
32561 module_srcdir=libstdc++-v3; \
32562 $(SHELL) $$s/$$module_srcdir/configure \
32563 --srcdir=$${topdir}/$$module_srcdir \
32564 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32565 --target=${target_alias} \
32566 --with-build-libsubdir=$(HOST_SUBDIR) \
32567 $(STAGE4_CONFIGURE_FLAGS)
32568@endif target-libstdc++-v3-bootstrap
32569
32570.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
32571maybe-configure-stageprofile-target-libstdc++-v3:
32572@if target-libstdc++-v3-bootstrap
32573maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
32574configure-stageprofile-target-libstdc++-v3:
32575 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32576 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32577 @r=`${PWD_COMMAND}`; export r; \
32578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32579 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32580 echo "Checking multilib configuration for libstdc++-v3..."; \
32581 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32582 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32583 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32584 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32585 else \
32586 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32587 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32588 fi; \
32589 else \
32590 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32591 fi; \
32592 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32593 $(RAW_CXX_TARGET_EXPORTS) \
32594 \
32595 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32596 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32597 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32598 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32599 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32600 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32601 case $(srcdir) in \
32602 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32603 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32604 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32605 esac; \
32606 module_srcdir=libstdc++-v3; \
32607 $(SHELL) $$s/$$module_srcdir/configure \
32608 --srcdir=$${topdir}/$$module_srcdir \
32609 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32610 --target=${target_alias} \
32611 --with-build-libsubdir=$(HOST_SUBDIR) \
32612 $(STAGEprofile_CONFIGURE_FLAGS)
32613@endif target-libstdc++-v3-bootstrap
32614
32615.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
32616maybe-configure-stagefeedback-target-libstdc++-v3:
32617@if target-libstdc++-v3-bootstrap
32618maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
32619configure-stagefeedback-target-libstdc++-v3:
32620 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32621 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32622 @r=`${PWD_COMMAND}`; export r; \
32623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32624 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
32625 echo "Checking multilib configuration for libstdc++-v3..."; \
32626 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
32627 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32628 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32629 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32630 else \
32631 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32632 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32633 fi; \
32634 else \
32635 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32636 fi; \
32637 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32638 $(RAW_CXX_TARGET_EXPORTS) \
32639 \
32640 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32641 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32642 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
32643 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3 ; \
32644 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
32645 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32646 case $(srcdir) in \
32647 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32648 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32649 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32650 esac; \
32651 module_srcdir=libstdc++-v3; \
32652 $(SHELL) $$s/$$module_srcdir/configure \
32653 --srcdir=$${topdir}/$$module_srcdir \
32654 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32655 --target=${target_alias} \
32656 --with-build-libsubdir=$(HOST_SUBDIR) \
32657 $(STAGEfeedback_CONFIGURE_FLAGS)
32658@endif target-libstdc++-v3-bootstrap
32659
32660
32661
32662
32663
32664.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
32665maybe-all-target-libstdc++-v3:
32666@if gcc-bootstrap
32667all-target-libstdc++-v3: stage_current
32668@endif gcc-bootstrap
32669@if target-libstdc++-v3
32670TARGET-target-libstdc++-v3=all
32671maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
32672all-target-libstdc++-v3: configure-target-libstdc++-v3
32673 @r=`${PWD_COMMAND}`; export r; \
32674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32675 $(RAW_CXX_TARGET_EXPORTS) \
32676 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32677 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32678 $(TARGET-target-libstdc++-v3))
32679@endif target-libstdc++-v3
32680
32681
32682
32683.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
32684.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
32685maybe-all-stage1-target-libstdc++-v3:
32686maybe-clean-stage1-target-libstdc++-v3:
32687@if target-libstdc++-v3-bootstrap
32688maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
32689all-stage1: all-stage1-target-libstdc++-v3
32690TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32691all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
32692 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32693 @r=`${PWD_COMMAND}`; export r; \
32694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32695 TFLAGS="$(STAGE1_TFLAGS)"; \
32696 $(RAW_CXX_TARGET_EXPORTS) \
32697 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32698 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32699 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32700 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32701 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32702 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32703 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32704 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32705 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32706 \
32707 TFLAGS="$(STAGE1_TFLAGS)" \
32708 $(TARGET-stage1-target-libstdc++-v3)
32709
32710maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
32711clean-stage1: clean-stage1-target-libstdc++-v3
32712clean-stage1-target-libstdc++-v3:
32713 @if [ $(current_stage) = stage1 ]; then \
32714 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32715 else \
32716 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
32717 $(MAKE) stage1-start; \
32718 fi; \
32719 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32720 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32721 clean
32722@endif target-libstdc++-v3-bootstrap
32723
32724
32725.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
32726.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
32727maybe-all-stage2-target-libstdc++-v3:
32728maybe-clean-stage2-target-libstdc++-v3:
32729@if target-libstdc++-v3-bootstrap
32730maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
32731all-stage2: all-stage2-target-libstdc++-v3
32732TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32733all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
32734 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32735 @r=`${PWD_COMMAND}`; export r; \
32736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32737 TFLAGS="$(STAGE2_TFLAGS)"; \
32738 $(RAW_CXX_TARGET_EXPORTS) \
32739 \
32740 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32741 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32742 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32743 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32744 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32745 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32746 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32747 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32748 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32749 TFLAGS="$(STAGE2_TFLAGS)" \
32750 $(TARGET-stage2-target-libstdc++-v3)
32751
32752maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
32753clean-stage2: clean-stage2-target-libstdc++-v3
32754clean-stage2-target-libstdc++-v3:
32755 @if [ $(current_stage) = stage2 ]; then \
32756 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32757 else \
32758 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
32759 $(MAKE) stage2-start; \
32760 fi; \
32761 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32762 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32763@endif target-libstdc++-v3-bootstrap
32764
32765
32766.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
32767.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
32768maybe-all-stage3-target-libstdc++-v3:
32769maybe-clean-stage3-target-libstdc++-v3:
32770@if target-libstdc++-v3-bootstrap
32771maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
32772all-stage3: all-stage3-target-libstdc++-v3
32773TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32774all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
32775 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32776 @r=`${PWD_COMMAND}`; export r; \
32777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32778 TFLAGS="$(STAGE3_TFLAGS)"; \
32779 $(RAW_CXX_TARGET_EXPORTS) \
32780 \
32781 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32782 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32783 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32784 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32785 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32786 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32787 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32788 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32789 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32790 TFLAGS="$(STAGE3_TFLAGS)" \
32791 $(TARGET-stage3-target-libstdc++-v3)
32792
32793maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
32794clean-stage3: clean-stage3-target-libstdc++-v3
32795clean-stage3-target-libstdc++-v3:
32796 @if [ $(current_stage) = stage3 ]; then \
32797 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32798 else \
32799 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
32800 $(MAKE) stage3-start; \
32801 fi; \
32802 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32803 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32804@endif target-libstdc++-v3-bootstrap
32805
32806
32807.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
32808.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
32809maybe-all-stage4-target-libstdc++-v3:
32810maybe-clean-stage4-target-libstdc++-v3:
32811@if target-libstdc++-v3-bootstrap
32812maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
32813all-stage4: all-stage4-target-libstdc++-v3
32814TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32815all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
32816 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32817 @r=`${PWD_COMMAND}`; export r; \
32818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32819 TFLAGS="$(STAGE4_TFLAGS)"; \
32820 $(RAW_CXX_TARGET_EXPORTS) \
32821 \
32822 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32823 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32824 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32825 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32826 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32827 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32828 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32829 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32830 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32831 TFLAGS="$(STAGE4_TFLAGS)" \
32832 $(TARGET-stage4-target-libstdc++-v3)
32833
32834maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
32835clean-stage4: clean-stage4-target-libstdc++-v3
32836clean-stage4-target-libstdc++-v3:
32837 @if [ $(current_stage) = stage4 ]; then \
32838 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32839 else \
32840 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
32841 $(MAKE) stage4-start; \
32842 fi; \
32843 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32844 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32845@endif target-libstdc++-v3-bootstrap
32846
32847
32848.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
32849.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
32850maybe-all-stageprofile-target-libstdc++-v3:
32851maybe-clean-stageprofile-target-libstdc++-v3:
32852@if target-libstdc++-v3-bootstrap
32853maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
32854all-stageprofile: all-stageprofile-target-libstdc++-v3
32855TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32856all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
32857 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32858 @r=`${PWD_COMMAND}`; export r; \
32859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32860 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32861 $(RAW_CXX_TARGET_EXPORTS) \
32862 \
32863 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32864 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32865 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32866 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32867 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32868 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32869 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32870 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32871 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32872 TFLAGS="$(STAGEprofile_TFLAGS)" \
32873 $(TARGET-stageprofile-target-libstdc++-v3)
32874
32875maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
32876clean-stageprofile: clean-stageprofile-target-libstdc++-v3
32877clean-stageprofile-target-libstdc++-v3:
32878 @if [ $(current_stage) = stageprofile ]; then \
32879 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32880 else \
32881 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
32882 $(MAKE) stageprofile-start; \
32883 fi; \
32884 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32885 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32886@endif target-libstdc++-v3-bootstrap
32887
32888
32889.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
32890.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
32891maybe-all-stagefeedback-target-libstdc++-v3:
32892maybe-clean-stagefeedback-target-libstdc++-v3:
32893@if target-libstdc++-v3-bootstrap
32894maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
32895all-stagefeedback: all-stagefeedback-target-libstdc++-v3
32896TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
32897all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
32898 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32899 @r=`${PWD_COMMAND}`; export r; \
32900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32901 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
32902 $(RAW_CXX_TARGET_EXPORTS) \
32903 \
32904 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32905 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32906 CFLAGS="$(CFLAGS_FOR_TARGET)" \
32907 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
32908 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
32909 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32910 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32911 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32912 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
32913 TFLAGS="$(STAGEfeedback_TFLAGS)" \
32914 $(TARGET-stagefeedback-target-libstdc++-v3)
32915
32916maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
32917clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
32918clean-stagefeedback-target-libstdc++-v3:
32919 @if [ $(current_stage) = stagefeedback ]; then \
32920 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
32921 else \
32922 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
32923 $(MAKE) stagefeedback-start; \
32924 fi; \
32925 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32926 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
32927@endif target-libstdc++-v3-bootstrap
32928
32929
32930
32931
32932
32933
32934.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
32935maybe-check-target-libstdc++-v3:
32936@if target-libstdc++-v3
32937maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
32938
32939check-target-libstdc++-v3:
32940 @: $(MAKE); $(unstage)
32941 @r=`${PWD_COMMAND}`; export r; \
32942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32943 $(RAW_CXX_TARGET_EXPORTS) \
32944 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32945 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
32946
32947@endif target-libstdc++-v3
32948
32949.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
32950maybe-install-target-libstdc++-v3:
32951@if target-libstdc++-v3
32952maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
32953
32954install-target-libstdc++-v3: installdirs
32955 @: $(MAKE); $(unstage)
32956 @r=`${PWD_COMMAND}`; export r; \
32957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32958 $(RAW_CXX_TARGET_EXPORTS) \
32959 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32960 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
32961
32962@endif target-libstdc++-v3
32963
32964.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
32965maybe-install-strip-target-libstdc++-v3:
32966@if target-libstdc++-v3
32967maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
32968
32969install-strip-target-libstdc++-v3: installdirs
32970 @: $(MAKE); $(unstage)
32971 @r=`${PWD_COMMAND}`; export r; \
32972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32973 $(RAW_CXX_TARGET_EXPORTS) \
32974 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32975 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
32976
32977@endif target-libstdc++-v3
32978
32979# Other targets (info, dvi, pdf, etc.)
32980
32981.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
32982maybe-info-target-libstdc++-v3:
32983@if target-libstdc++-v3
32984maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
32985
32986info-target-libstdc++-v3: \
32987 configure-target-libstdc++-v3
32988 @: $(MAKE); $(unstage)
32989 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
32990 r=`${PWD_COMMAND}`; export r; \
32991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32992 $(RAW_CXX_TARGET_EXPORTS) \
32993 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
32994 for flag in $(EXTRA_TARGET_FLAGS); do \
32995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32996 done; \
32997 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
32998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33000 "RANLIB=$${RANLIB}" \
33001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33002 info) \
33003 || exit 1
33004
33005@endif target-libstdc++-v3
33006
33007.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
33008maybe-dvi-target-libstdc++-v3:
33009@if target-libstdc++-v3
33010maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
33011
33012dvi-target-libstdc++-v3: \
33013 configure-target-libstdc++-v3
33014 @: $(MAKE); $(unstage)
33015 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33016 r=`${PWD_COMMAND}`; export r; \
33017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33018 $(RAW_CXX_TARGET_EXPORTS) \
33019 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33020 for flag in $(EXTRA_TARGET_FLAGS); do \
33021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33022 done; \
33023 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33026 "RANLIB=$${RANLIB}" \
33027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33028 dvi) \
33029 || exit 1
33030
33031@endif target-libstdc++-v3
33032
33033.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
33034maybe-pdf-target-libstdc++-v3:
33035@if target-libstdc++-v3
33036maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
33037
33038pdf-target-libstdc++-v3: \
33039 configure-target-libstdc++-v3
33040 @: $(MAKE); $(unstage)
33041 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33042 r=`${PWD_COMMAND}`; export r; \
33043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33044 $(RAW_CXX_TARGET_EXPORTS) \
33045 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33046 for flag in $(EXTRA_TARGET_FLAGS); do \
33047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33048 done; \
33049 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33052 "RANLIB=$${RANLIB}" \
33053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33054 pdf) \
33055 || exit 1
33056
33057@endif target-libstdc++-v3
33058
33059.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
33060maybe-html-target-libstdc++-v3:
33061@if target-libstdc++-v3
33062maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
33063
33064html-target-libstdc++-v3: \
33065 configure-target-libstdc++-v3
33066 @: $(MAKE); $(unstage)
33067 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33068 r=`${PWD_COMMAND}`; export r; \
33069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33070 $(RAW_CXX_TARGET_EXPORTS) \
33071 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33072 for flag in $(EXTRA_TARGET_FLAGS); do \
33073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33074 done; \
33075 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33078 "RANLIB=$${RANLIB}" \
33079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33080 html) \
33081 || exit 1
33082
33083@endif target-libstdc++-v3
33084
33085.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
33086maybe-TAGS-target-libstdc++-v3:
33087@if target-libstdc++-v3
33088maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
33089
33090TAGS-target-libstdc++-v3: \
33091 configure-target-libstdc++-v3
33092 @: $(MAKE); $(unstage)
33093 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33094 r=`${PWD_COMMAND}`; export r; \
33095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33096 $(RAW_CXX_TARGET_EXPORTS) \
33097 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33098 for flag in $(EXTRA_TARGET_FLAGS); do \
33099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33100 done; \
33101 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33104 "RANLIB=$${RANLIB}" \
33105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33106 TAGS) \
33107 || exit 1
33108
33109@endif target-libstdc++-v3
33110
33111.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
33112maybe-install-info-target-libstdc++-v3:
33113@if target-libstdc++-v3
33114maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
33115
33116install-info-target-libstdc++-v3: \
33117 configure-target-libstdc++-v3 \
33118 info-target-libstdc++-v3
33119 @: $(MAKE); $(unstage)
33120 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33121 r=`${PWD_COMMAND}`; export r; \
33122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33123 $(RAW_CXX_TARGET_EXPORTS) \
33124 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33125 for flag in $(EXTRA_TARGET_FLAGS); do \
33126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33127 done; \
33128 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33131 "RANLIB=$${RANLIB}" \
33132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33133 install-info) \
33134 || exit 1
33135
33136@endif target-libstdc++-v3
33137
33138.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
33139maybe-install-pdf-target-libstdc++-v3:
33140@if target-libstdc++-v3
33141maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
33142
33143install-pdf-target-libstdc++-v3: \
33144 configure-target-libstdc++-v3 \
33145 pdf-target-libstdc++-v3
33146 @: $(MAKE); $(unstage)
33147 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33148 r=`${PWD_COMMAND}`; export r; \
33149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33150 $(RAW_CXX_TARGET_EXPORTS) \
33151 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33152 for flag in $(EXTRA_TARGET_FLAGS); do \
33153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33154 done; \
33155 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33158 "RANLIB=$${RANLIB}" \
33159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33160 install-pdf) \
33161 || exit 1
33162
33163@endif target-libstdc++-v3
33164
33165.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
33166maybe-install-html-target-libstdc++-v3:
33167@if target-libstdc++-v3
33168maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
33169
33170install-html-target-libstdc++-v3: \
33171 configure-target-libstdc++-v3 \
33172 html-target-libstdc++-v3
33173 @: $(MAKE); $(unstage)
33174 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33175 r=`${PWD_COMMAND}`; export r; \
33176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33177 $(RAW_CXX_TARGET_EXPORTS) \
33178 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33179 for flag in $(EXTRA_TARGET_FLAGS); do \
33180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33181 done; \
33182 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33185 "RANLIB=$${RANLIB}" \
33186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33187 install-html) \
33188 || exit 1
33189
33190@endif target-libstdc++-v3
33191
33192.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
33193maybe-installcheck-target-libstdc++-v3:
33194@if target-libstdc++-v3
33195maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
33196
33197installcheck-target-libstdc++-v3: \
33198 configure-target-libstdc++-v3
33199 @: $(MAKE); $(unstage)
33200 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33201 r=`${PWD_COMMAND}`; export r; \
33202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33203 $(RAW_CXX_TARGET_EXPORTS) \
33204 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33205 for flag in $(EXTRA_TARGET_FLAGS); do \
33206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33207 done; \
33208 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33211 "RANLIB=$${RANLIB}" \
33212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33213 installcheck) \
33214 || exit 1
33215
33216@endif target-libstdc++-v3
33217
33218.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
33219maybe-mostlyclean-target-libstdc++-v3:
33220@if target-libstdc++-v3
33221maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
33222
33223mostlyclean-target-libstdc++-v3:
33224 @: $(MAKE); $(unstage)
33225 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33226 r=`${PWD_COMMAND}`; export r; \
33227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33228 $(RAW_CXX_TARGET_EXPORTS) \
33229 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33230 for flag in $(EXTRA_TARGET_FLAGS); do \
33231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33232 done; \
33233 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33236 "RANLIB=$${RANLIB}" \
33237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33238 mostlyclean) \
33239 || exit 1
33240
33241@endif target-libstdc++-v3
33242
33243.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
33244maybe-clean-target-libstdc++-v3:
33245@if target-libstdc++-v3
33246maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
33247
33248clean-target-libstdc++-v3:
33249 @: $(MAKE); $(unstage)
33250 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33251 r=`${PWD_COMMAND}`; export r; \
33252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33253 $(RAW_CXX_TARGET_EXPORTS) \
33254 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33255 for flag in $(EXTRA_TARGET_FLAGS); do \
33256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33257 done; \
33258 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33261 "RANLIB=$${RANLIB}" \
33262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33263 clean) \
33264 || exit 1
33265
33266@endif target-libstdc++-v3
33267
33268.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
33269maybe-distclean-target-libstdc++-v3:
33270@if target-libstdc++-v3
33271maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
33272
33273distclean-target-libstdc++-v3:
33274 @: $(MAKE); $(unstage)
33275 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33276 r=`${PWD_COMMAND}`; export r; \
33277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33278 $(RAW_CXX_TARGET_EXPORTS) \
33279 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33280 for flag in $(EXTRA_TARGET_FLAGS); do \
33281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33282 done; \
33283 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33286 "RANLIB=$${RANLIB}" \
33287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33288 distclean) \
33289 || exit 1
33290
33291@endif target-libstdc++-v3
33292
33293.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
33294maybe-maintainer-clean-target-libstdc++-v3:
33295@if target-libstdc++-v3
33296maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
33297
33298maintainer-clean-target-libstdc++-v3:
33299 @: $(MAKE); $(unstage)
33300 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33301 r=`${PWD_COMMAND}`; export r; \
33302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33303 $(RAW_CXX_TARGET_EXPORTS) \
33304 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33305 for flag in $(EXTRA_TARGET_FLAGS); do \
33306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33307 done; \
33308 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33311 "RANLIB=$${RANLIB}" \
33312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33313 maintainer-clean) \
33314 || exit 1
33315
33316@endif target-libstdc++-v3
33317
33318
33319
33320
33321
33322.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
33323maybe-configure-target-libsanitizer:
33324@if gcc-bootstrap
33325configure-target-libsanitizer: stage_current
33326@endif gcc-bootstrap
33327@if target-libsanitizer
33328maybe-configure-target-libsanitizer: configure-target-libsanitizer
33329configure-target-libsanitizer:
33330 @r=`${PWD_COMMAND}`; export r; \
33331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33332 echo "Checking multilib configuration for libsanitizer..."; \
33333 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33334 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33335 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33336 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33337 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33338 else \
33339 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33340 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33341 fi; \
33342 else \
33343 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33344 fi; \
33345 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33346 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33347 $(RAW_CXX_TARGET_EXPORTS) \
33348 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
33349 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
33350 case $(srcdir) in \
33351 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33352 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33353 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33354 esac; \
33355 module_srcdir=libsanitizer; \
33356 rm -f no-such-file || : ; \
33357 CONFIG_SITE=no-such-file $(SHELL) \
33358 $$s/$$module_srcdir/configure \
33359 --srcdir=$${topdir}/$$module_srcdir \
33360 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33361 --target=${target_alias} \
33362 || exit 1
33363@endif target-libsanitizer
33364
33365
33366
33367.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
33368maybe-configure-stage1-target-libsanitizer:
33369@if target-libsanitizer-bootstrap
33370maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
33371configure-stage1-target-libsanitizer:
33372 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33373 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33374 @r=`${PWD_COMMAND}`; export r; \
33375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33376 TFLAGS="$(STAGE1_TFLAGS)"; \
33377 echo "Checking multilib configuration for libsanitizer..."; \
33378 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33379 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33380 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33381 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33382 else \
33383 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33384 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33385 fi; \
33386 else \
33387 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33388 fi; \
33389 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33390 $(RAW_CXX_TARGET_EXPORTS) \
33391 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33392 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33393 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33394 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer ; \
33395 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33396 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33397 case $(srcdir) in \
33398 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33399 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33400 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33401 esac; \
33402 module_srcdir=libsanitizer; \
33403 $(SHELL) $$s/$$module_srcdir/configure \
33404 --srcdir=$${topdir}/$$module_srcdir \
33405 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33406 --target=${target_alias} \
33407 \
33408 $(STAGE1_CONFIGURE_FLAGS)
33409@endif target-libsanitizer-bootstrap
33410
33411.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
33412maybe-configure-stage2-target-libsanitizer:
33413@if target-libsanitizer-bootstrap
33414maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
33415configure-stage2-target-libsanitizer:
33416 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33417 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33418 @r=`${PWD_COMMAND}`; export r; \
33419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33420 TFLAGS="$(STAGE2_TFLAGS)"; \
33421 echo "Checking multilib configuration for libsanitizer..."; \
33422 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33423 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33424 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33425 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33426 else \
33427 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33428 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33429 fi; \
33430 else \
33431 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33432 fi; \
33433 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33434 $(RAW_CXX_TARGET_EXPORTS) \
33435 \
33436 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33437 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33438 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33439 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer ; \
33440 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33441 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33442 case $(srcdir) in \
33443 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33444 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33445 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33446 esac; \
33447 module_srcdir=libsanitizer; \
33448 $(SHELL) $$s/$$module_srcdir/configure \
33449 --srcdir=$${topdir}/$$module_srcdir \
33450 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33451 --target=${target_alias} \
33452 --with-build-libsubdir=$(HOST_SUBDIR) \
33453 $(STAGE2_CONFIGURE_FLAGS)
33454@endif target-libsanitizer-bootstrap
33455
33456.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
33457maybe-configure-stage3-target-libsanitizer:
33458@if target-libsanitizer-bootstrap
33459maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
33460configure-stage3-target-libsanitizer:
33461 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33462 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33463 @r=`${PWD_COMMAND}`; export r; \
33464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33465 TFLAGS="$(STAGE3_TFLAGS)"; \
33466 echo "Checking multilib configuration for libsanitizer..."; \
33467 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33468 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33469 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33470 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33471 else \
33472 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33473 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33474 fi; \
33475 else \
33476 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33477 fi; \
33478 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33479 $(RAW_CXX_TARGET_EXPORTS) \
33480 \
33481 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33482 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33483 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33484 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer ; \
33485 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33486 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33487 case $(srcdir) in \
33488 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33489 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33490 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33491 esac; \
33492 module_srcdir=libsanitizer; \
33493 $(SHELL) $$s/$$module_srcdir/configure \
33494 --srcdir=$${topdir}/$$module_srcdir \
33495 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33496 --target=${target_alias} \
33497 --with-build-libsubdir=$(HOST_SUBDIR) \
33498 $(STAGE3_CONFIGURE_FLAGS)
33499@endif target-libsanitizer-bootstrap
33500
33501.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
33502maybe-configure-stage4-target-libsanitizer:
33503@if target-libsanitizer-bootstrap
33504maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
33505configure-stage4-target-libsanitizer:
33506 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33507 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33508 @r=`${PWD_COMMAND}`; export r; \
33509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33510 TFLAGS="$(STAGE4_TFLAGS)"; \
33511 echo "Checking multilib configuration for libsanitizer..."; \
33512 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33513 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33514 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33515 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33516 else \
33517 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33518 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33519 fi; \
33520 else \
33521 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33522 fi; \
33523 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33524 $(RAW_CXX_TARGET_EXPORTS) \
33525 \
33526 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33527 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33528 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33529 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer ; \
33530 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33531 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33532 case $(srcdir) in \
33533 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33534 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33535 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33536 esac; \
33537 module_srcdir=libsanitizer; \
33538 $(SHELL) $$s/$$module_srcdir/configure \
33539 --srcdir=$${topdir}/$$module_srcdir \
33540 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33541 --target=${target_alias} \
33542 --with-build-libsubdir=$(HOST_SUBDIR) \
33543 $(STAGE4_CONFIGURE_FLAGS)
33544@endif target-libsanitizer-bootstrap
33545
33546.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
33547maybe-configure-stageprofile-target-libsanitizer:
33548@if target-libsanitizer-bootstrap
33549maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
33550configure-stageprofile-target-libsanitizer:
33551 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33552 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33553 @r=`${PWD_COMMAND}`; export r; \
33554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33555 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33556 echo "Checking multilib configuration for libsanitizer..."; \
33557 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33558 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33559 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33560 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33561 else \
33562 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33563 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33564 fi; \
33565 else \
33566 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33567 fi; \
33568 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33569 $(RAW_CXX_TARGET_EXPORTS) \
33570 \
33571 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33572 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33573 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33574 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer ; \
33575 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33576 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33577 case $(srcdir) in \
33578 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33579 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33580 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33581 esac; \
33582 module_srcdir=libsanitizer; \
33583 $(SHELL) $$s/$$module_srcdir/configure \
33584 --srcdir=$${topdir}/$$module_srcdir \
33585 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33586 --target=${target_alias} \
33587 --with-build-libsubdir=$(HOST_SUBDIR) \
33588 $(STAGEprofile_CONFIGURE_FLAGS)
33589@endif target-libsanitizer-bootstrap
33590
33591.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
33592maybe-configure-stagefeedback-target-libsanitizer:
33593@if target-libsanitizer-bootstrap
33594maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
33595configure-stagefeedback-target-libsanitizer:
33596 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33597 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33598 @r=`${PWD_COMMAND}`; export r; \
33599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33600 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33601 echo "Checking multilib configuration for libsanitizer..."; \
33602 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null ; \
33603 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33604 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33605 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33606 else \
33607 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33608 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33609 fi; \
33610 else \
33611 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33612 fi; \
33613 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33614 $(RAW_CXX_TARGET_EXPORTS) \
33615 \
33616 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33617 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33618 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
33619 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer ; \
33620 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer ; \
33621 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33622 case $(srcdir) in \
33623 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33624 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33625 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33626 esac; \
33627 module_srcdir=libsanitizer; \
33628 $(SHELL) $$s/$$module_srcdir/configure \
33629 --srcdir=$${topdir}/$$module_srcdir \
33630 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33631 --target=${target_alias} \
33632 --with-build-libsubdir=$(HOST_SUBDIR) \
33633 $(STAGEfeedback_CONFIGURE_FLAGS)
33634@endif target-libsanitizer-bootstrap
33635
33636
33637
33638
33639
33640.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
33641maybe-all-target-libsanitizer:
33642@if gcc-bootstrap
33643all-target-libsanitizer: stage_current
33644@endif gcc-bootstrap
33645@if target-libsanitizer
33646TARGET-target-libsanitizer=all
33647maybe-all-target-libsanitizer: all-target-libsanitizer
33648all-target-libsanitizer: configure-target-libsanitizer
33649 @r=`${PWD_COMMAND}`; export r; \
33650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33651 $(RAW_CXX_TARGET_EXPORTS) \
33652 (cd $(TARGET_SUBDIR)/libsanitizer && \
33653 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33654 $(TARGET-target-libsanitizer))
33655@endif target-libsanitizer
33656
33657
33658
33659.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
33660.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
33661maybe-all-stage1-target-libsanitizer:
33662maybe-clean-stage1-target-libsanitizer:
33663@if target-libsanitizer-bootstrap
33664maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
33665all-stage1: all-stage1-target-libsanitizer
33666TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
33667all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
33668 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33669 @r=`${PWD_COMMAND}`; export r; \
33670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33671 TFLAGS="$(STAGE1_TFLAGS)"; \
33672 $(RAW_CXX_TARGET_EXPORTS) \
33673 cd $(TARGET_SUBDIR)/libsanitizer && \
33674 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33675 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33676 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33677 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33678 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33679 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33680 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33681 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33682 \
33683 TFLAGS="$(STAGE1_TFLAGS)" \
33684 $(TARGET-stage1-target-libsanitizer)
33685
33686maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
33687clean-stage1: clean-stage1-target-libsanitizer
33688clean-stage1-target-libsanitizer:
33689 @if [ $(current_stage) = stage1 ]; then \
33690 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
33691 else \
33692 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
33693 $(MAKE) stage1-start; \
33694 fi; \
33695 cd $(TARGET_SUBDIR)/libsanitizer && \
33696 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33697 clean
33698@endif target-libsanitizer-bootstrap
33699
33700
33701.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
33702.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
33703maybe-all-stage2-target-libsanitizer:
33704maybe-clean-stage2-target-libsanitizer:
33705@if target-libsanitizer-bootstrap
33706maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
33707all-stage2: all-stage2-target-libsanitizer
33708TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
33709all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
33710 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33711 @r=`${PWD_COMMAND}`; export r; \
33712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33713 TFLAGS="$(STAGE2_TFLAGS)"; \
33714 $(RAW_CXX_TARGET_EXPORTS) \
33715 \
33716 cd $(TARGET_SUBDIR)/libsanitizer && \
33717 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33718 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33719 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33720 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33721 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33722 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33723 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33724 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33725 TFLAGS="$(STAGE2_TFLAGS)" \
33726 $(TARGET-stage2-target-libsanitizer)
33727
33728maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
33729clean-stage2: clean-stage2-target-libsanitizer
33730clean-stage2-target-libsanitizer:
33731 @if [ $(current_stage) = stage2 ]; then \
33732 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
33733 else \
33734 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
33735 $(MAKE) stage2-start; \
33736 fi; \
33737 cd $(TARGET_SUBDIR)/libsanitizer && \
33738 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33739@endif target-libsanitizer-bootstrap
33740
33741
33742.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
33743.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
33744maybe-all-stage3-target-libsanitizer:
33745maybe-clean-stage3-target-libsanitizer:
33746@if target-libsanitizer-bootstrap
33747maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
33748all-stage3: all-stage3-target-libsanitizer
33749TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
33750all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
33751 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33752 @r=`${PWD_COMMAND}`; export r; \
33753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33754 TFLAGS="$(STAGE3_TFLAGS)"; \
33755 $(RAW_CXX_TARGET_EXPORTS) \
33756 \
33757 cd $(TARGET_SUBDIR)/libsanitizer && \
33758 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33759 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33760 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33761 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33762 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33763 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33764 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33765 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33766 TFLAGS="$(STAGE3_TFLAGS)" \
33767 $(TARGET-stage3-target-libsanitizer)
33768
33769maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
33770clean-stage3: clean-stage3-target-libsanitizer
33771clean-stage3-target-libsanitizer:
33772 @if [ $(current_stage) = stage3 ]; then \
33773 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
33774 else \
33775 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
33776 $(MAKE) stage3-start; \
33777 fi; \
33778 cd $(TARGET_SUBDIR)/libsanitizer && \
33779 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33780@endif target-libsanitizer-bootstrap
33781
33782
33783.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
33784.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
33785maybe-all-stage4-target-libsanitizer:
33786maybe-clean-stage4-target-libsanitizer:
33787@if target-libsanitizer-bootstrap
33788maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
33789all-stage4: all-stage4-target-libsanitizer
33790TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
33791all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
33792 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33793 @r=`${PWD_COMMAND}`; export r; \
33794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33795 TFLAGS="$(STAGE4_TFLAGS)"; \
33796 $(RAW_CXX_TARGET_EXPORTS) \
33797 \
33798 cd $(TARGET_SUBDIR)/libsanitizer && \
33799 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33800 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33801 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33802 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
33803 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33804 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33805 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33806 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33807 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 33808 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 33809
1b6c0831
L
33810maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
33811clean-stage4: clean-stage4-target-libsanitizer
33812clean-stage4-target-libsanitizer:
e8a5fa9c 33813 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 33814 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 33815 else \
1b6c0831 33816 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
33817 $(MAKE) stage4-start; \
33818 fi; \
1b6c0831 33819 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 33820 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 33821@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
33822
33823
1b6c0831
L
33824.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
33825.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
33826maybe-all-stageprofile-target-libsanitizer:
33827maybe-clean-stageprofile-target-libsanitizer:
33828@if target-libsanitizer-bootstrap
33829maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
33830all-stageprofile: all-stageprofile-target-libsanitizer
33831TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
33832all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
33833 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33834 @r=`${PWD_COMMAND}`; export r; \
33835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33836 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33837 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 33838 \
1b6c0831 33839 cd $(TARGET_SUBDIR)/libsanitizer && \
e8a5fa9c
RW
33840 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33841 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33842 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33843 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33844 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33845 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33846 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33847 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33848 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 33849 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 33850
1b6c0831
L
33851maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
33852clean-stageprofile: clean-stageprofile-target-libsanitizer
33853clean-stageprofile-target-libsanitizer:
e8a5fa9c 33854 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 33855 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 33856 else \
1b6c0831 33857 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
33858 $(MAKE) stageprofile-start; \
33859 fi; \
1b6c0831 33860 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 33861 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 33862@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
33863
33864
1b6c0831
L
33865.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
33866.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
33867maybe-all-stagefeedback-target-libsanitizer:
33868maybe-clean-stagefeedback-target-libsanitizer:
33869@if target-libsanitizer-bootstrap
33870maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
33871all-stagefeedback: all-stagefeedback-target-libsanitizer
33872TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
33873all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
33874 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33875 @r=`${PWD_COMMAND}`; export r; \
33876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33877 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33878 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 33879 \
1b6c0831 33880 cd $(TARGET_SUBDIR)/libsanitizer && \
e8a5fa9c
RW
33881 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33882 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33883 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33884 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33885 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33886 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33887 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33888 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33889 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 33890 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 33891
1b6c0831
L
33892maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
33893clean-stagefeedback: clean-stagefeedback-target-libsanitizer
33894clean-stagefeedback-target-libsanitizer:
e8a5fa9c 33895 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 33896 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 33897 else \
1b6c0831 33898 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
33899 $(MAKE) stagefeedback-start; \
33900 fi; \
1b6c0831 33901 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 33902 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 33903@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
33904
33905
33906
33907
d545f33b
PB
33908
33909
1b6c0831
L
33910.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
33911maybe-check-target-libsanitizer:
33912@if target-libsanitizer
33913maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 33914
1b6c0831 33915check-target-libsanitizer:
0aed8855 33916 @: $(MAKE); $(unstage)
b40e3958
L
33917 @r=`${PWD_COMMAND}`; export r; \
33918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33919 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33920 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 33921 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 33922
1b6c0831 33923@endif target-libsanitizer
3866be5d 33924
1b6c0831
L
33925.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
33926maybe-install-target-libsanitizer:
33927@if target-libsanitizer
33928maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 33929
1b6c0831 33930install-target-libsanitizer: installdirs
0aed8855 33931 @: $(MAKE); $(unstage)
b40e3958
L
33932 @r=`${PWD_COMMAND}`; export r; \
33933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33934 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33935 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 33936 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 33937
1b6c0831 33938@endif target-libsanitizer
e2b9e2dc 33939
1b6c0831
L
33940.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
33941maybe-install-strip-target-libsanitizer:
33942@if target-libsanitizer
33943maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 33944
1b6c0831 33945install-strip-target-libsanitizer: installdirs
9b980aa1
RW
33946 @: $(MAKE); $(unstage)
33947 @r=`${PWD_COMMAND}`; export r; \
33948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33949 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33950 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
33951 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
33952
1b6c0831 33953@endif target-libsanitizer
9b980aa1 33954
56a8fe78 33955# Other targets (info, dvi, pdf, etc.)
3866be5d 33956
1b6c0831
L
33957.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
33958maybe-info-target-libsanitizer:
33959@if target-libsanitizer
33960maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 33961
1b6c0831
L
33962info-target-libsanitizer: \
33963 configure-target-libsanitizer
0aed8855 33964 @: $(MAKE); $(unstage)
1b6c0831 33965 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 33966 r=`${PWD_COMMAND}`; export r; \
b40e3958 33967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33968 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33969 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
33970 for flag in $(EXTRA_TARGET_FLAGS); do \
33971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33972 done; \
1b6c0831 33973 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
33974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33976 "RANLIB=$${RANLIB}" \
0c24b341 33977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 33978 info) \
4fa63067 33979 || exit 1
3866be5d 33980
1b6c0831 33981@endif target-libsanitizer
3866be5d 33982
1b6c0831
L
33983.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
33984maybe-dvi-target-libsanitizer:
33985@if target-libsanitizer
33986maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 33987
1b6c0831
L
33988dvi-target-libsanitizer: \
33989 configure-target-libsanitizer
0aed8855 33990 @: $(MAKE); $(unstage)
1b6c0831 33991 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 33992 r=`${PWD_COMMAND}`; export r; \
b40e3958 33993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33994 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 33995 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
33996 for flag in $(EXTRA_TARGET_FLAGS); do \
33997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33998 done; \
1b6c0831 33999 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34002 "RANLIB=$${RANLIB}" \
0c24b341 34003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34004 dvi) \
4fa63067 34005 || exit 1
3866be5d 34006
1b6c0831 34007@endif target-libsanitizer
3866be5d 34008
1b6c0831
L
34009.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
34010maybe-pdf-target-libsanitizer:
34011@if target-libsanitizer
34012maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 34013
1b6c0831
L
34014pdf-target-libsanitizer: \
34015 configure-target-libsanitizer
56a8fe78 34016 @: $(MAKE); $(unstage)
1b6c0831 34017 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
56a8fe78
DD
34018 r=`${PWD_COMMAND}`; export r; \
34019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34020 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34021 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer" ; \
56a8fe78
DD
34022 for flag in $(EXTRA_TARGET_FLAGS); do \
34023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34024 done; \
1b6c0831 34025 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
34026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34028 "RANLIB=$${RANLIB}" \
0c24b341 34029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
34030 pdf) \
34031 || exit 1
34032
1b6c0831 34033@endif target-libsanitizer
56a8fe78 34034
1b6c0831
L
34035.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
34036maybe-html-target-libsanitizer:
34037@if target-libsanitizer
34038maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 34039
1b6c0831
L
34040html-target-libsanitizer: \
34041 configure-target-libsanitizer
0aed8855 34042 @: $(MAKE); $(unstage)
1b6c0831 34043 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
6d389afc
MS
34044 r=`${PWD_COMMAND}`; export r; \
34045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 34046 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34047 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer" ; \
6d389afc
MS
34048 for flag in $(EXTRA_TARGET_FLAGS); do \
34049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34050 done; \
1b6c0831 34051 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
34052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34054 "RANLIB=$${RANLIB}" \
0c24b341 34055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
34056 html) \
34057 || exit 1
34058
1b6c0831 34059@endif target-libsanitizer
6d389afc 34060
1b6c0831
L
34061.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
34062maybe-TAGS-target-libsanitizer:
34063@if target-libsanitizer
34064maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 34065
1b6c0831
L
34066TAGS-target-libsanitizer: \
34067 configure-target-libsanitizer
0aed8855 34068 @: $(MAKE); $(unstage)
1b6c0831 34069 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
b40e3958
L
34070 r=`${PWD_COMMAND}`; export r; \
34071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34072 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34073 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34074 for flag in $(EXTRA_TARGET_FLAGS); do \
34075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34076 done; \
1b6c0831 34077 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34080 "RANLIB=$${RANLIB}" \
0c24b341 34081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34082 TAGS) \
e2b9e2dc
NN
34083 || exit 1
34084
1b6c0831 34085@endif target-libsanitizer
3866be5d 34086
1b6c0831
L
34087.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
34088maybe-install-info-target-libsanitizer:
34089@if target-libsanitizer
34090maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 34091
1b6c0831
L
34092install-info-target-libsanitizer: \
34093 configure-target-libsanitizer \
34094 info-target-libsanitizer
0aed8855 34095 @: $(MAKE); $(unstage)
1b6c0831 34096 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34097 r=`${PWD_COMMAND}`; export r; \
b40e3958 34098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34099 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34100 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34101 for flag in $(EXTRA_TARGET_FLAGS); do \
34102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34103 done; \
1b6c0831 34104 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34107 "RANLIB=$${RANLIB}" \
0c24b341 34108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34109 install-info) \
4fa63067 34110 || exit 1
3866be5d 34111
1b6c0831 34112@endif target-libsanitizer
3866be5d 34113
1b6c0831
L
34114.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
34115maybe-install-pdf-target-libsanitizer:
34116@if target-libsanitizer
34117maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 34118
1b6c0831
L
34119install-pdf-target-libsanitizer: \
34120 configure-target-libsanitizer \
34121 pdf-target-libsanitizer
a3ca38d2 34122 @: $(MAKE); $(unstage)
1b6c0831 34123 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
a3ca38d2
DD
34124 r=`${PWD_COMMAND}`; export r; \
34125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34126 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34127 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer" ; \
a3ca38d2
DD
34128 for flag in $(EXTRA_TARGET_FLAGS); do \
34129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34130 done; \
1b6c0831 34131 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
34132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34134 "RANLIB=$${RANLIB}" \
0c24b341 34135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
34136 install-pdf) \
34137 || exit 1
34138
1b6c0831 34139@endif target-libsanitizer
a3ca38d2 34140
1b6c0831
L
34141.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
34142maybe-install-html-target-libsanitizer:
34143@if target-libsanitizer
34144maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 34145
1b6c0831
L
34146install-html-target-libsanitizer: \
34147 configure-target-libsanitizer \
34148 html-target-libsanitizer
108a6f8e 34149 @: $(MAKE); $(unstage)
1b6c0831 34150 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
108a6f8e
CD
34151 r=`${PWD_COMMAND}`; export r; \
34152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34153 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34154 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer" ; \
108a6f8e
CD
34155 for flag in $(EXTRA_TARGET_FLAGS); do \
34156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34157 done; \
1b6c0831 34158 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
34159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34161 "RANLIB=$${RANLIB}" \
0c24b341 34162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
34163 install-html) \
34164 || exit 1
34165
1b6c0831 34166@endif target-libsanitizer
108a6f8e 34167
1b6c0831
L
34168.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
34169maybe-installcheck-target-libsanitizer:
34170@if target-libsanitizer
34171maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 34172
1b6c0831
L
34173installcheck-target-libsanitizer: \
34174 configure-target-libsanitizer
0aed8855 34175 @: $(MAKE); $(unstage)
1b6c0831 34176 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34177 r=`${PWD_COMMAND}`; export r; \
b40e3958 34178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34179 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34180 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34181 for flag in $(EXTRA_TARGET_FLAGS); do \
34182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34183 done; \
1b6c0831 34184 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34187 "RANLIB=$${RANLIB}" \
0c24b341 34188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34189 installcheck) \
4fa63067 34190 || exit 1
3866be5d 34191
1b6c0831 34192@endif target-libsanitizer
3866be5d 34193
1b6c0831
L
34194.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
34195maybe-mostlyclean-target-libsanitizer:
34196@if target-libsanitizer
34197maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 34198
1b6c0831 34199mostlyclean-target-libsanitizer:
0aed8855 34200 @: $(MAKE); $(unstage)
1b6c0831 34201 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
b40e3958
L
34202 r=`${PWD_COMMAND}`; export r; \
34203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34204 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34205 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34206 for flag in $(EXTRA_TARGET_FLAGS); do \
34207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34208 done; \
1b6c0831 34209 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34212 "RANLIB=$${RANLIB}" \
0c24b341 34213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34214 mostlyclean) \
e2b9e2dc
NN
34215 || exit 1
34216
1b6c0831 34217@endif target-libsanitizer
4fa63067 34218
1b6c0831
L
34219.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
34220maybe-clean-target-libsanitizer:
34221@if target-libsanitizer
34222maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 34223
1b6c0831 34224clean-target-libsanitizer:
0aed8855 34225 @: $(MAKE); $(unstage)
1b6c0831 34226 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34227 r=`${PWD_COMMAND}`; export r; \
b40e3958 34228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34229 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34230 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34231 for flag in $(EXTRA_TARGET_FLAGS); do \
34232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34233 done; \
1b6c0831 34234 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34237 "RANLIB=$${RANLIB}" \
0c24b341 34238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34239 clean) \
4fa63067 34240 || exit 1
3866be5d 34241
1b6c0831 34242@endif target-libsanitizer
3866be5d 34243
1b6c0831
L
34244.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
34245maybe-distclean-target-libsanitizer:
34246@if target-libsanitizer
34247maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 34248
1b6c0831 34249distclean-target-libsanitizer:
0aed8855 34250 @: $(MAKE); $(unstage)
1b6c0831 34251 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34252 r=`${PWD_COMMAND}`; export r; \
b40e3958 34253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34254 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34255 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34256 for flag in $(EXTRA_TARGET_FLAGS); do \
34257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34258 done; \
1b6c0831 34259 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34262 "RANLIB=$${RANLIB}" \
0c24b341 34263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34264 distclean) \
4fa63067 34265 || exit 1
3866be5d 34266
1b6c0831 34267@endif target-libsanitizer
3866be5d 34268
1b6c0831
L
34269.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
34270maybe-maintainer-clean-target-libsanitizer:
34271@if target-libsanitizer
34272maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 34273
1b6c0831 34274maintainer-clean-target-libsanitizer:
0aed8855 34275 @: $(MAKE); $(unstage)
1b6c0831 34276 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0 ; \
4fa63067 34277 r=`${PWD_COMMAND}`; export r; \
b40e3958 34278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34279 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34280 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer" ; \
4fa63067
NN
34281 for flag in $(EXTRA_TARGET_FLAGS); do \
34282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34283 done; \
1b6c0831 34284 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34287 "RANLIB=$${RANLIB}" \
0c24b341 34288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34289 maintainer-clean) \
4fa63067 34290 || exit 1
3866be5d 34291
1b6c0831 34292@endif target-libsanitizer
3866be5d 34293
4fa63067 34294
4fa63067 34295
a7254363
PB
34296
34297
1b6c0831
L
34298.PHONY: configure-target-libmpx maybe-configure-target-libmpx
34299maybe-configure-target-libmpx:
5286fdef 34300@if gcc-bootstrap
1b6c0831 34301configure-target-libmpx: stage_current
5286fdef 34302@endif gcc-bootstrap
1b6c0831
L
34303@if target-libmpx
34304maybe-configure-target-libmpx: configure-target-libmpx
34305configure-target-libmpx:
5286fdef
L
34306 @r=`${PWD_COMMAND}`; export r; \
34307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34308 echo "Checking multilib configuration for libmpx..."; \
34309 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34310 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34311 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34312 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34313 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 34314 else \
1b6c0831
L
34315 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34316 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
34317 fi; \
34318 else \
1b6c0831 34319 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 34320 fi; \
1b6c0831
L
34321 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34322 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34323 $(NORMAL_TARGET_EXPORTS) \
34324 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
34325 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
34326 case $(srcdir) in \
34327 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34328 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
34329 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34330 esac; \
1b6c0831 34331 module_srcdir=libmpx; \
5286fdef 34332 rm -f no-such-file || : ; \
1b6c0831
L
34333 CONFIG_SITE=no-such-file $(SHELL) \
34334 $$s/$$module_srcdir/configure \
34335 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 34336 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34337 --target=${target_alias} \
5286fdef 34338 || exit 1
1b6c0831 34339@endif target-libmpx
5286fdef
L
34340
34341
34342
1b6c0831
L
34343.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
34344maybe-configure-stage1-target-libmpx:
34345@if target-libmpx-bootstrap
34346maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
34347configure-stage1-target-libmpx:
5eb08693 34348 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 34349 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34350 @r=`${PWD_COMMAND}`; export r; \
34351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34352 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
34353 echo "Checking multilib configuration for libmpx..."; \
34354 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34355 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34356 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34357 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34358 else \
1b6c0831
L
34359 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34360 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34361 fi; \
34362 else \
1b6c0831 34363 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34364 fi; \
1b6c0831
L
34365 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34366 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34367 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34368 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34369 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34370 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx ; \
34371 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34372 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34373 case $(srcdir) in \
34374 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34375 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34376 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34377 esac; \
1b6c0831
L
34378 module_srcdir=libmpx; \
34379 $(SHELL) $$s/$$module_srcdir/configure \
34380 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34381 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34382 --target=${target_alias} \
34383 \
5eb08693 34384 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 34385@endif target-libmpx-bootstrap
5eb08693 34386
1b6c0831
L
34387.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
34388maybe-configure-stage2-target-libmpx:
34389@if target-libmpx-bootstrap
34390maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
34391configure-stage2-target-libmpx:
5eb08693 34392 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 34393 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34394 @r=`${PWD_COMMAND}`; export r; \
34395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34396 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831
L
34397 echo "Checking multilib configuration for libmpx..."; \
34398 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34399 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34400 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34401 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34402 else \
1b6c0831
L
34403 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34404 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34405 fi; \
34406 else \
1b6c0831 34407 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34408 fi; \
1b6c0831
L
34409 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34410 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34411 \
34412 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34413 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34414 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34415 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx ; \
34416 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34417 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34418 case $(srcdir) in \
34419 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34420 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34421 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34422 esac; \
1b6c0831
L
34423 module_srcdir=libmpx; \
34424 $(SHELL) $$s/$$module_srcdir/configure \
34425 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34426 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34427 --target=${target_alias} \
34428 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34429 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 34430@endif target-libmpx-bootstrap
5eb08693 34431
1b6c0831
L
34432.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
34433maybe-configure-stage3-target-libmpx:
34434@if target-libmpx-bootstrap
34435maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
34436configure-stage3-target-libmpx:
5eb08693 34437 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 34438 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34439 @r=`${PWD_COMMAND}`; export r; \
34440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34441 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831
L
34442 echo "Checking multilib configuration for libmpx..."; \
34443 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34444 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34445 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34446 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34447 else \
1b6c0831
L
34448 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34449 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34450 fi; \
34451 else \
1b6c0831 34452 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34453 fi; \
1b6c0831
L
34454 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34455 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34456 \
34457 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34458 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34459 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34460 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx ; \
34461 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34462 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34463 case $(srcdir) in \
34464 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34465 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34466 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34467 esac; \
1b6c0831
L
34468 module_srcdir=libmpx; \
34469 $(SHELL) $$s/$$module_srcdir/configure \
34470 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34471 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34472 --target=${target_alias} \
34473 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34474 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 34475@endif target-libmpx-bootstrap
5eb08693 34476
1b6c0831
L
34477.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
34478maybe-configure-stage4-target-libmpx:
34479@if target-libmpx-bootstrap
34480maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
34481configure-stage4-target-libmpx:
5eb08693 34482 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 34483 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34484 @r=`${PWD_COMMAND}`; export r; \
34485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34486 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831
L
34487 echo "Checking multilib configuration for libmpx..."; \
34488 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34489 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34490 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34491 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34492 else \
1b6c0831
L
34493 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34494 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34495 fi; \
34496 else \
1b6c0831 34497 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34498 fi; \
1b6c0831
L
34499 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34500 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34501 \
34502 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34503 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34504 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34505 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx ; \
34506 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34507 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34508 case $(srcdir) in \
34509 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34510 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34511 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34512 esac; \
1b6c0831
L
34513 module_srcdir=libmpx; \
34514 $(SHELL) $$s/$$module_srcdir/configure \
34515 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34516 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34517 --target=${target_alias} \
34518 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34519 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 34520@endif target-libmpx-bootstrap
5eb08693 34521
1b6c0831
L
34522.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
34523maybe-configure-stageprofile-target-libmpx:
34524@if target-libmpx-bootstrap
34525maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
34526configure-stageprofile-target-libmpx:
5eb08693 34527 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 34528 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34529 @r=`${PWD_COMMAND}`; export r; \
34530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34531 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831
L
34532 echo "Checking multilib configuration for libmpx..."; \
34533 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34534 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34535 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34536 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34537 else \
1b6c0831
L
34538 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34539 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34540 fi; \
34541 else \
1b6c0831 34542 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34543 fi; \
1b6c0831
L
34544 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34545 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34546 \
34547 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34548 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34549 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34550 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx ; \
34551 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34552 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34553 case $(srcdir) in \
34554 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34555 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34556 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34557 esac; \
1b6c0831
L
34558 module_srcdir=libmpx; \
34559 $(SHELL) $$s/$$module_srcdir/configure \
34560 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34561 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34562 --target=${target_alias} \
34563 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34564 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 34565@endif target-libmpx-bootstrap
5eb08693 34566
1b6c0831
L
34567.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
34568maybe-configure-stagefeedback-target-libmpx:
34569@if target-libmpx-bootstrap
34570maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
34571configure-stagefeedback-target-libmpx:
5eb08693 34572 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 34573 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34574 @r=`${PWD_COMMAND}`; export r; \
34575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34576 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831
L
34577 echo "Checking multilib configuration for libmpx..."; \
34578 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null ; \
34579 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34580 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34581 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34582 else \
1b6c0831
L
34583 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34584 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34585 fi; \
34586 else \
1b6c0831 34587 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34588 fi; \
1b6c0831
L
34589 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34590 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34591 \
34592 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34593 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34594 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
1b6c0831
L
34595 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx ; \
34596 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx ; \
34597 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34598 case $(srcdir) in \
34599 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34600 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34601 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34602 esac; \
1b6c0831
L
34603 module_srcdir=libmpx; \
34604 $(SHELL) $$s/$$module_srcdir/configure \
34605 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34606 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34607 --target=${target_alias} \
34608 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34609 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 34610@endif target-libmpx-bootstrap
5eb08693
L
34611
34612
34613
5286fdef
L
34614
34615
1b6c0831
L
34616.PHONY: all-target-libmpx maybe-all-target-libmpx
34617maybe-all-target-libmpx:
5286fdef 34618@if gcc-bootstrap
1b6c0831 34619all-target-libmpx: stage_current
5286fdef 34620@endif gcc-bootstrap
1b6c0831
L
34621@if target-libmpx
34622TARGET-target-libmpx=all
34623maybe-all-target-libmpx: all-target-libmpx
34624all-target-libmpx: configure-target-libmpx
5286fdef
L
34625 @r=`${PWD_COMMAND}`; export r; \
34626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34627 $(NORMAL_TARGET_EXPORTS) \
34628 (cd $(TARGET_SUBDIR)/libmpx && \
34629 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
34630 $(TARGET-target-libmpx))
34631@endif target-libmpx
5286fdef
L
34632
34633
34634
1b6c0831
L
34635.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
34636.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
34637maybe-all-stage1-target-libmpx:
34638maybe-clean-stage1-target-libmpx:
34639@if target-libmpx-bootstrap
34640maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
34641all-stage1: all-stage1-target-libmpx
34642TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
34643all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
34644 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34645 @r=`${PWD_COMMAND}`; export r; \
34646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34647 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
34648 $(NORMAL_TARGET_EXPORTS) \
34649 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34650 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34651 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34652 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34653 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34654 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34655 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34656 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34657 $(EXTRA_TARGET_FLAGS) \
5eb08693
L
34658 \
34659 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 34660 $(TARGET-stage1-target-libmpx)
5eb08693 34661
1b6c0831
L
34662maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
34663clean-stage1: clean-stage1-target-libmpx
34664clean-stage1-target-libmpx:
5eb08693 34665 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 34666 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34667 else \
1b6c0831 34668 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
34669 $(MAKE) stage1-start; \
34670 fi; \
1b6c0831
L
34671 cd $(TARGET_SUBDIR)/libmpx && \
34672 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 34673 clean
1b6c0831
L
34674@endif target-libmpx-bootstrap
34675
34676
34677.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
34678.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
34679maybe-all-stage2-target-libmpx:
34680maybe-clean-stage2-target-libmpx:
34681@if target-libmpx-bootstrap
34682maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
34683all-stage2: all-stage2-target-libmpx
34684TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
34685all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
34686 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34687 @r=`${PWD_COMMAND}`; export r; \
34688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34689 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 34690 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34691 \
1b6c0831 34692 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34693 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34694 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34695 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34696 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34697 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34698 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34699 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34700 $(EXTRA_TARGET_FLAGS) \
5eb08693 34701 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 34702 $(TARGET-stage2-target-libmpx)
5eb08693 34703
1b6c0831
L
34704maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
34705clean-stage2: clean-stage2-target-libmpx
34706clean-stage2-target-libmpx:
5eb08693 34707 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 34708 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34709 else \
1b6c0831 34710 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
34711 $(MAKE) stage2-start; \
34712 fi; \
1b6c0831
L
34713 cd $(TARGET_SUBDIR)/libmpx && \
34714 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34715@endif target-libmpx-bootstrap
34716
34717
34718.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
34719.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
34720maybe-all-stage3-target-libmpx:
34721maybe-clean-stage3-target-libmpx:
34722@if target-libmpx-bootstrap
34723maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
34724all-stage3: all-stage3-target-libmpx
34725TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
34726all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
34727 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34728 @r=`${PWD_COMMAND}`; export r; \
34729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34730 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 34731 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34732 \
1b6c0831 34733 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34734 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34735 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34736 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34737 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34738 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34739 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34740 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34741 $(EXTRA_TARGET_FLAGS) \
5eb08693 34742 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 34743 $(TARGET-stage3-target-libmpx)
5eb08693 34744
1b6c0831
L
34745maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
34746clean-stage3: clean-stage3-target-libmpx
34747clean-stage3-target-libmpx:
5eb08693 34748 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 34749 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34750 else \
1b6c0831 34751 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
34752 $(MAKE) stage3-start; \
34753 fi; \
1b6c0831
L
34754 cd $(TARGET_SUBDIR)/libmpx && \
34755 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34756@endif target-libmpx-bootstrap
34757
34758
34759.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
34760.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
34761maybe-all-stage4-target-libmpx:
34762maybe-clean-stage4-target-libmpx:
34763@if target-libmpx-bootstrap
34764maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
34765all-stage4: all-stage4-target-libmpx
34766TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
34767all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
34768 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34769 @r=`${PWD_COMMAND}`; export r; \
34770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34771 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 34772 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34773 \
1b6c0831 34774 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34775 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34776 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34777 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34778 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34779 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34780 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34781 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34782 $(EXTRA_TARGET_FLAGS) \
5eb08693 34783 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 34784 $(TARGET-stage4-target-libmpx)
5eb08693 34785
1b6c0831
L
34786maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
34787clean-stage4: clean-stage4-target-libmpx
34788clean-stage4-target-libmpx:
5eb08693 34789 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 34790 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34791 else \
1b6c0831 34792 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
34793 $(MAKE) stage4-start; \
34794 fi; \
1b6c0831
L
34795 cd $(TARGET_SUBDIR)/libmpx && \
34796 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34797@endif target-libmpx-bootstrap
34798
34799
34800.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
34801.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
34802maybe-all-stageprofile-target-libmpx:
34803maybe-clean-stageprofile-target-libmpx:
34804@if target-libmpx-bootstrap
34805maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
34806all-stageprofile: all-stageprofile-target-libmpx
34807TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
34808all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
34809 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34810 @r=`${PWD_COMMAND}`; export r; \
34811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34812 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 34813 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34814 \
1b6c0831 34815 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34816 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34817 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34818 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34819 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34820 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34821 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34822 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34823 $(EXTRA_TARGET_FLAGS) \
5eb08693 34824 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 34825 $(TARGET-stageprofile-target-libmpx)
5eb08693 34826
1b6c0831
L
34827maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
34828clean-stageprofile: clean-stageprofile-target-libmpx
34829clean-stageprofile-target-libmpx:
5eb08693 34830 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 34831 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34832 else \
1b6c0831 34833 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
34834 $(MAKE) stageprofile-start; \
34835 fi; \
1b6c0831
L
34836 cd $(TARGET_SUBDIR)/libmpx && \
34837 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34838@endif target-libmpx-bootstrap
34839
34840
34841.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
34842.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
34843maybe-all-stagefeedback-target-libmpx:
34844maybe-clean-stagefeedback-target-libmpx:
34845@if target-libmpx-bootstrap
34846maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
34847all-stagefeedback: all-stagefeedback-target-libmpx
34848TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
34849all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
34850 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34851 @r=`${PWD_COMMAND}`; export r; \
34852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34853 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 34854 $(NORMAL_TARGET_EXPORTS) \
5eb08693 34855 \
1b6c0831 34856 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
34857 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34858 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34859 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34860 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34861 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34862 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34863 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 34864 $(EXTRA_TARGET_FLAGS) \
5eb08693 34865 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 34866 $(TARGET-stagefeedback-target-libmpx)
5eb08693 34867
1b6c0831
L
34868maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
34869clean-stagefeedback: clean-stagefeedback-target-libmpx
34870clean-stagefeedback-target-libmpx:
5eb08693 34871 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 34872 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 34873 else \
1b6c0831 34874 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
34875 $(MAKE) stagefeedback-start; \
34876 fi; \
1b6c0831
L
34877 cd $(TARGET_SUBDIR)/libmpx && \
34878 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
34879@endif target-libmpx-bootstrap
5eb08693
L
34880
34881
34882
34883
5286fdef
L
34884
34885
1b6c0831
L
34886.PHONY: check-target-libmpx maybe-check-target-libmpx
34887maybe-check-target-libmpx:
34888@if target-libmpx
34889maybe-check-target-libmpx: check-target-libmpx
5286fdef 34890
1b6c0831 34891check-target-libmpx:
5286fdef
L
34892 @: $(MAKE); $(unstage)
34893 @r=`${PWD_COMMAND}`; export r; \
34894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34895 $(NORMAL_TARGET_EXPORTS) \
34896 (cd $(TARGET_SUBDIR)/libmpx && \
34897 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 34898
1b6c0831 34899@endif target-libmpx
5286fdef 34900
1b6c0831
L
34901.PHONY: install-target-libmpx maybe-install-target-libmpx
34902maybe-install-target-libmpx:
34903@if target-libmpx
34904maybe-install-target-libmpx: install-target-libmpx
5286fdef 34905
1b6c0831 34906install-target-libmpx: installdirs
5286fdef
L
34907 @: $(MAKE); $(unstage)
34908 @r=`${PWD_COMMAND}`; export r; \
34909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34910 $(NORMAL_TARGET_EXPORTS) \
34911 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
34912 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
34913
1b6c0831 34914@endif target-libmpx
5286fdef 34915
1b6c0831
L
34916.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
34917maybe-install-strip-target-libmpx:
34918@if target-libmpx
34919maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 34920
1b6c0831 34921install-strip-target-libmpx: installdirs
5286fdef
L
34922 @: $(MAKE); $(unstage)
34923 @r=`${PWD_COMMAND}`; export r; \
34924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34925 $(NORMAL_TARGET_EXPORTS) \
34926 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
34927 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
34928
1b6c0831 34929@endif target-libmpx
5286fdef
L
34930
34931# Other targets (info, dvi, pdf, etc.)
34932
1b6c0831
L
34933.PHONY: maybe-info-target-libmpx info-target-libmpx
34934maybe-info-target-libmpx:
34935@if target-libmpx
34936maybe-info-target-libmpx: info-target-libmpx
5286fdef 34937
1b6c0831
L
34938info-target-libmpx: \
34939 configure-target-libmpx
5286fdef 34940 @: $(MAKE); $(unstage)
1b6c0831 34941 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
34942 r=`${PWD_COMMAND}`; export r; \
34943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34944 $(NORMAL_TARGET_EXPORTS) \
34945 echo "Doing info in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
34946 for flag in $(EXTRA_TARGET_FLAGS); do \
34947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34948 done; \
1b6c0831 34949 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
34950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34952 "RANLIB=$${RANLIB}" \
34953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34954 info) \
34955 || exit 1
34956
1b6c0831 34957@endif target-libmpx
5286fdef 34958
1b6c0831
L
34959.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
34960maybe-dvi-target-libmpx:
34961@if target-libmpx
34962maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 34963
1b6c0831
L
34964dvi-target-libmpx: \
34965 configure-target-libmpx
5286fdef 34966 @: $(MAKE); $(unstage)
1b6c0831 34967 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
34968 r=`${PWD_COMMAND}`; export r; \
34969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34970 $(NORMAL_TARGET_EXPORTS) \
34971 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
34972 for flag in $(EXTRA_TARGET_FLAGS); do \
34973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34974 done; \
1b6c0831 34975 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
34976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34978 "RANLIB=$${RANLIB}" \
34979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34980 dvi) \
34981 || exit 1
34982
1b6c0831 34983@endif target-libmpx
5286fdef 34984
1b6c0831
L
34985.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
34986maybe-pdf-target-libmpx:
34987@if target-libmpx
34988maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 34989
1b6c0831
L
34990pdf-target-libmpx: \
34991 configure-target-libmpx
5286fdef 34992 @: $(MAKE); $(unstage)
1b6c0831 34993 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
34994 r=`${PWD_COMMAND}`; export r; \
34995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
34996 $(NORMAL_TARGET_EXPORTS) \
34997 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
34998 for flag in $(EXTRA_TARGET_FLAGS); do \
34999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35000 done; \
1b6c0831 35001 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35004 "RANLIB=$${RANLIB}" \
35005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35006 pdf) \
35007 || exit 1
35008
1b6c0831 35009@endif target-libmpx
5286fdef 35010
1b6c0831
L
35011.PHONY: maybe-html-target-libmpx html-target-libmpx
35012maybe-html-target-libmpx:
35013@if target-libmpx
35014maybe-html-target-libmpx: html-target-libmpx
5286fdef 35015
1b6c0831
L
35016html-target-libmpx: \
35017 configure-target-libmpx
5286fdef 35018 @: $(MAKE); $(unstage)
1b6c0831 35019 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35020 r=`${PWD_COMMAND}`; export r; \
35021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35022 $(NORMAL_TARGET_EXPORTS) \
35023 echo "Doing html in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35024 for flag in $(EXTRA_TARGET_FLAGS); do \
35025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35026 done; \
1b6c0831 35027 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35030 "RANLIB=$${RANLIB}" \
35031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35032 html) \
35033 || exit 1
35034
1b6c0831 35035@endif target-libmpx
5286fdef 35036
1b6c0831
L
35037.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
35038maybe-TAGS-target-libmpx:
35039@if target-libmpx
35040maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 35041
1b6c0831
L
35042TAGS-target-libmpx: \
35043 configure-target-libmpx
5286fdef 35044 @: $(MAKE); $(unstage)
1b6c0831 35045 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35046 r=`${PWD_COMMAND}`; export r; \
35047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35048 $(NORMAL_TARGET_EXPORTS) \
35049 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35050 for flag in $(EXTRA_TARGET_FLAGS); do \
35051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35052 done; \
1b6c0831 35053 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35056 "RANLIB=$${RANLIB}" \
35057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35058 TAGS) \
35059 || exit 1
35060
1b6c0831 35061@endif target-libmpx
5286fdef 35062
1b6c0831
L
35063.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
35064maybe-install-info-target-libmpx:
35065@if target-libmpx
35066maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 35067
1b6c0831
L
35068install-info-target-libmpx: \
35069 configure-target-libmpx \
35070 info-target-libmpx
5286fdef 35071 @: $(MAKE); $(unstage)
1b6c0831 35072 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35073 r=`${PWD_COMMAND}`; export r; \
35074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35075 $(NORMAL_TARGET_EXPORTS) \
35076 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35077 for flag in $(EXTRA_TARGET_FLAGS); do \
35078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35079 done; \
1b6c0831 35080 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35083 "RANLIB=$${RANLIB}" \
35084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35085 install-info) \
35086 || exit 1
35087
1b6c0831 35088@endif target-libmpx
5286fdef 35089
1b6c0831
L
35090.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
35091maybe-install-pdf-target-libmpx:
35092@if target-libmpx
35093maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 35094
1b6c0831
L
35095install-pdf-target-libmpx: \
35096 configure-target-libmpx \
35097 pdf-target-libmpx
5286fdef 35098 @: $(MAKE); $(unstage)
1b6c0831 35099 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35100 r=`${PWD_COMMAND}`; export r; \
35101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35102 $(NORMAL_TARGET_EXPORTS) \
35103 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35104 for flag in $(EXTRA_TARGET_FLAGS); do \
35105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35106 done; \
1b6c0831 35107 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35110 "RANLIB=$${RANLIB}" \
35111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35112 install-pdf) \
35113 || exit 1
35114
1b6c0831 35115@endif target-libmpx
5286fdef 35116
1b6c0831
L
35117.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
35118maybe-install-html-target-libmpx:
35119@if target-libmpx
35120maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 35121
1b6c0831
L
35122install-html-target-libmpx: \
35123 configure-target-libmpx \
35124 html-target-libmpx
5286fdef 35125 @: $(MAKE); $(unstage)
1b6c0831 35126 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35127 r=`${PWD_COMMAND}`; export r; \
35128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35129 $(NORMAL_TARGET_EXPORTS) \
35130 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35131 for flag in $(EXTRA_TARGET_FLAGS); do \
35132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35133 done; \
1b6c0831 35134 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35137 "RANLIB=$${RANLIB}" \
35138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35139 install-html) \
35140 || exit 1
35141
1b6c0831 35142@endif target-libmpx
5286fdef 35143
1b6c0831
L
35144.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
35145maybe-installcheck-target-libmpx:
35146@if target-libmpx
35147maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 35148
1b6c0831
L
35149installcheck-target-libmpx: \
35150 configure-target-libmpx
5286fdef 35151 @: $(MAKE); $(unstage)
1b6c0831 35152 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35153 r=`${PWD_COMMAND}`; export r; \
35154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35155 $(NORMAL_TARGET_EXPORTS) \
35156 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35157 for flag in $(EXTRA_TARGET_FLAGS); do \
35158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35159 done; \
1b6c0831 35160 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35163 "RANLIB=$${RANLIB}" \
35164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35165 installcheck) \
35166 || exit 1
35167
1b6c0831 35168@endif target-libmpx
5286fdef 35169
1b6c0831
L
35170.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
35171maybe-mostlyclean-target-libmpx:
35172@if target-libmpx
35173maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 35174
1b6c0831 35175mostlyclean-target-libmpx:
5286fdef 35176 @: $(MAKE); $(unstage)
1b6c0831 35177 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35178 r=`${PWD_COMMAND}`; export r; \
35179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35180 $(NORMAL_TARGET_EXPORTS) \
35181 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35182 for flag in $(EXTRA_TARGET_FLAGS); do \
35183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35184 done; \
1b6c0831 35185 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35188 "RANLIB=$${RANLIB}" \
35189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35190 mostlyclean) \
35191 || exit 1
35192
1b6c0831 35193@endif target-libmpx
5286fdef 35194
1b6c0831
L
35195.PHONY: maybe-clean-target-libmpx clean-target-libmpx
35196maybe-clean-target-libmpx:
35197@if target-libmpx
35198maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 35199
1b6c0831 35200clean-target-libmpx:
5286fdef 35201 @: $(MAKE); $(unstage)
1b6c0831 35202 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35203 r=`${PWD_COMMAND}`; export r; \
35204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35205 $(NORMAL_TARGET_EXPORTS) \
35206 echo "Doing clean in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35207 for flag in $(EXTRA_TARGET_FLAGS); do \
35208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35209 done; \
1b6c0831 35210 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35213 "RANLIB=$${RANLIB}" \
35214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35215 clean) \
35216 || exit 1
35217
1b6c0831 35218@endif target-libmpx
5286fdef 35219
1b6c0831
L
35220.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
35221maybe-distclean-target-libmpx:
35222@if target-libmpx
35223maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 35224
1b6c0831 35225distclean-target-libmpx:
5286fdef 35226 @: $(MAKE); $(unstage)
1b6c0831 35227 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35228 r=`${PWD_COMMAND}`; export r; \
35229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35230 $(NORMAL_TARGET_EXPORTS) \
35231 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35232 for flag in $(EXTRA_TARGET_FLAGS); do \
35233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35234 done; \
1b6c0831 35235 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35238 "RANLIB=$${RANLIB}" \
35239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35240 distclean) \
35241 || exit 1
35242
1b6c0831 35243@endif target-libmpx
5286fdef 35244
1b6c0831
L
35245.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
35246maybe-maintainer-clean-target-libmpx:
35247@if target-libmpx
35248maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 35249
1b6c0831 35250maintainer-clean-target-libmpx:
5286fdef 35251 @: $(MAKE); $(unstage)
1b6c0831 35252 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0 ; \
5286fdef
L
35253 r=`${PWD_COMMAND}`; export r; \
35254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35255 $(NORMAL_TARGET_EXPORTS) \
35256 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx" ; \
5286fdef
L
35257 for flag in $(EXTRA_TARGET_FLAGS); do \
35258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35259 done; \
1b6c0831 35260 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35263 "RANLIB=$${RANLIB}" \
35264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35265 maintainer-clean) \
35266 || exit 1
35267
1b6c0831 35268@endif target-libmpx
5286fdef
L
35269
35270
35271
35272
35273
95e43135
JBG
35274.PHONY: configure-target-libvtv maybe-configure-target-libvtv
35275maybe-configure-target-libvtv:
35276@if gcc-bootstrap
35277configure-target-libvtv: stage_current
35278@endif gcc-bootstrap
35279@if target-libvtv
35280maybe-configure-target-libvtv: configure-target-libvtv
35281configure-target-libvtv:
35282 @r=`${PWD_COMMAND}`; export r; \
35283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35284 echo "Checking multilib configuration for libvtv..."; \
35285 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35286 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35287 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35288 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35289 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35290 else \
35291 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35292 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35293 fi; \
35294 else \
35295 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35296 fi; \
35297 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35298 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35299 $(RAW_CXX_TARGET_EXPORTS) \
35300 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
35301 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
35302 case $(srcdir) in \
35303 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35304 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35305 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35306 esac; \
1b6c0831 35307 module_srcdir=libvtv; \
95e43135 35308 rm -f no-such-file || : ; \
1b6c0831
L
35309 CONFIG_SITE=no-such-file $(SHELL) \
35310 $$s/$$module_srcdir/configure \
35311 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35312 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35313 --target=${target_alias} \
95e43135
JBG
35314 || exit 1
35315@endif target-libvtv
35316
35317
35318
35319.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
35320maybe-configure-stage1-target-libvtv:
35321@if target-libvtv-bootstrap
35322maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
35323configure-stage1-target-libvtv:
35324 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35325 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35326 @r=`${PWD_COMMAND}`; export r; \
35327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35328 TFLAGS="$(STAGE1_TFLAGS)"; \
35329 echo "Checking multilib configuration for libvtv..."; \
35330 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35331 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35332 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35333 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35334 else \
35335 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35336 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35337 fi; \
35338 else \
35339 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35340 fi; \
35341 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35342 $(RAW_CXX_TARGET_EXPORTS) \
35343 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35344 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35345 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35346 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv ; \
35347 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35348 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35349 case $(srcdir) in \
35350 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35351 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35352 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35353 esac; \
1b6c0831
L
35354 module_srcdir=libvtv; \
35355 $(SHELL) $$s/$$module_srcdir/configure \
35356 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35357 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35358 --target=${target_alias} \
35359 \
95e43135
JBG
35360 $(STAGE1_CONFIGURE_FLAGS)
35361@endif target-libvtv-bootstrap
35362
35363.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
35364maybe-configure-stage2-target-libvtv:
35365@if target-libvtv-bootstrap
35366maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
35367configure-stage2-target-libvtv:
35368 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35369 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35370 @r=`${PWD_COMMAND}`; export r; \
35371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35372 TFLAGS="$(STAGE2_TFLAGS)"; \
35373 echo "Checking multilib configuration for libvtv..."; \
35374 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35375 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35376 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35377 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35378 else \
35379 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35380 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35381 fi; \
35382 else \
35383 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35384 fi; \
35385 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35386 $(RAW_CXX_TARGET_EXPORTS) \
35387 \
35388 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35389 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35390 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35391 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv ; \
35392 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35393 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35394 case $(srcdir) in \
35395 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35396 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35397 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35398 esac; \
1b6c0831
L
35399 module_srcdir=libvtv; \
35400 $(SHELL) $$s/$$module_srcdir/configure \
35401 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35402 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35403 --target=${target_alias} \
35404 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35405 $(STAGE2_CONFIGURE_FLAGS)
35406@endif target-libvtv-bootstrap
35407
35408.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
35409maybe-configure-stage3-target-libvtv:
35410@if target-libvtv-bootstrap
35411maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
35412configure-stage3-target-libvtv:
35413 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35414 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35415 @r=`${PWD_COMMAND}`; export r; \
35416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35417 TFLAGS="$(STAGE3_TFLAGS)"; \
35418 echo "Checking multilib configuration for libvtv..."; \
35419 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35420 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35421 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35422 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35423 else \
35424 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35425 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35426 fi; \
35427 else \
35428 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35429 fi; \
35430 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35431 $(RAW_CXX_TARGET_EXPORTS) \
35432 \
35433 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35434 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35435 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35436 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv ; \
35437 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35438 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35439 case $(srcdir) in \
35440 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35441 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35442 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35443 esac; \
1b6c0831
L
35444 module_srcdir=libvtv; \
35445 $(SHELL) $$s/$$module_srcdir/configure \
35446 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35447 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35448 --target=${target_alias} \
35449 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35450 $(STAGE3_CONFIGURE_FLAGS)
35451@endif target-libvtv-bootstrap
35452
35453.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
35454maybe-configure-stage4-target-libvtv:
35455@if target-libvtv-bootstrap
35456maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
35457configure-stage4-target-libvtv:
35458 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35459 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35460 @r=`${PWD_COMMAND}`; export r; \
35461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35462 TFLAGS="$(STAGE4_TFLAGS)"; \
35463 echo "Checking multilib configuration for libvtv..."; \
35464 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35465 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35466 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35467 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35468 else \
35469 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35470 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35471 fi; \
35472 else \
35473 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35474 fi; \
35475 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35476 $(RAW_CXX_TARGET_EXPORTS) \
35477 \
35478 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35479 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35480 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35481 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv ; \
35482 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35483 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35484 case $(srcdir) in \
35485 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35486 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35487 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35488 esac; \
1b6c0831
L
35489 module_srcdir=libvtv; \
35490 $(SHELL) $$s/$$module_srcdir/configure \
35491 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35492 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35493 --target=${target_alias} \
35494 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35495 $(STAGE4_CONFIGURE_FLAGS)
35496@endif target-libvtv-bootstrap
35497
35498.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
35499maybe-configure-stageprofile-target-libvtv:
35500@if target-libvtv-bootstrap
35501maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
35502configure-stageprofile-target-libvtv:
35503 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35504 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35505 @r=`${PWD_COMMAND}`; export r; \
35506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35507 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35508 echo "Checking multilib configuration for libvtv..."; \
35509 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35510 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35511 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35512 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35513 else \
35514 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35515 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35516 fi; \
35517 else \
35518 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35519 fi; \
35520 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35521 $(RAW_CXX_TARGET_EXPORTS) \
35522 \
35523 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35524 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35525 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35526 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv ; \
35527 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35528 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35529 case $(srcdir) in \
35530 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35531 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35532 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35533 esac; \
1b6c0831
L
35534 module_srcdir=libvtv; \
35535 $(SHELL) $$s/$$module_srcdir/configure \
35536 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35537 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35538 --target=${target_alias} \
35539 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35540 $(STAGEprofile_CONFIGURE_FLAGS)
35541@endif target-libvtv-bootstrap
35542
35543.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
35544maybe-configure-stagefeedback-target-libvtv:
35545@if target-libvtv-bootstrap
35546maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
35547configure-stagefeedback-target-libvtv:
35548 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35549 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35550 @r=`${PWD_COMMAND}`; export r; \
35551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35552 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35553 echo "Checking multilib configuration for libvtv..."; \
35554 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null ; \
35555 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35556 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35557 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35558 else \
35559 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35560 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35561 fi; \
35562 else \
35563 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35564 fi; \
35565 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35566 $(RAW_CXX_TARGET_EXPORTS) \
35567 \
35568 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35569 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35570 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
35571 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv ; \
35572 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv ; \
35573 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35574 case $(srcdir) in \
35575 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35576 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35577 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35578 esac; \
1b6c0831
L
35579 module_srcdir=libvtv; \
35580 $(SHELL) $$s/$$module_srcdir/configure \
35581 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35582 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35583 --target=${target_alias} \
35584 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35585 $(STAGEfeedback_CONFIGURE_FLAGS)
35586@endif target-libvtv-bootstrap
35587
35588
35589
35590
35591
35592.PHONY: all-target-libvtv maybe-all-target-libvtv
35593maybe-all-target-libvtv:
35594@if gcc-bootstrap
35595all-target-libvtv: stage_current
35596@endif gcc-bootstrap
35597@if target-libvtv
35598TARGET-target-libvtv=all
35599maybe-all-target-libvtv: all-target-libvtv
35600all-target-libvtv: configure-target-libvtv
35601 @r=`${PWD_COMMAND}`; export r; \
35602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35603 $(RAW_CXX_TARGET_EXPORTS) \
35604 (cd $(TARGET_SUBDIR)/libvtv && \
35605 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35606 $(TARGET-target-libvtv))
35607@endif target-libvtv
35608
35609
35610
35611.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
35612.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
35613maybe-all-stage1-target-libvtv:
35614maybe-clean-stage1-target-libvtv:
35615@if target-libvtv-bootstrap
35616maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
35617all-stage1: all-stage1-target-libvtv
35618TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
35619all-stage1-target-libvtv: configure-stage1-target-libvtv
35620 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35621 @r=`${PWD_COMMAND}`; export r; \
35622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35623 TFLAGS="$(STAGE1_TFLAGS)"; \
35624 $(RAW_CXX_TARGET_EXPORTS) \
35625 cd $(TARGET_SUBDIR)/libvtv && \
35626 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35627 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35628 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35629 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35630 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35631 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35632 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35633 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35634 \
35635 TFLAGS="$(STAGE1_TFLAGS)" \
35636 $(TARGET-stage1-target-libvtv)
35637
35638maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
35639clean-stage1: clean-stage1-target-libvtv
35640clean-stage1-target-libvtv:
35641 @if [ $(current_stage) = stage1 ]; then \
35642 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35643 else \
35644 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
35645 $(MAKE) stage1-start; \
35646 fi; \
35647 cd $(TARGET_SUBDIR)/libvtv && \
35648 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35649 clean
35650@endif target-libvtv-bootstrap
35651
35652
35653.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
35654.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
35655maybe-all-stage2-target-libvtv:
35656maybe-clean-stage2-target-libvtv:
35657@if target-libvtv-bootstrap
35658maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
35659all-stage2: all-stage2-target-libvtv
35660TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
35661all-stage2-target-libvtv: configure-stage2-target-libvtv
35662 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35663 @r=`${PWD_COMMAND}`; export r; \
35664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35665 TFLAGS="$(STAGE2_TFLAGS)"; \
35666 $(RAW_CXX_TARGET_EXPORTS) \
35667 \
35668 cd $(TARGET_SUBDIR)/libvtv && \
35669 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35670 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35671 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35672 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35673 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35674 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35675 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35676 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35677 TFLAGS="$(STAGE2_TFLAGS)" \
35678 $(TARGET-stage2-target-libvtv)
35679
35680maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
35681clean-stage2: clean-stage2-target-libvtv
35682clean-stage2-target-libvtv:
35683 @if [ $(current_stage) = stage2 ]; then \
35684 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35685 else \
35686 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
35687 $(MAKE) stage2-start; \
35688 fi; \
35689 cd $(TARGET_SUBDIR)/libvtv && \
35690 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35691@endif target-libvtv-bootstrap
35692
35693
35694.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
35695.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
35696maybe-all-stage3-target-libvtv:
35697maybe-clean-stage3-target-libvtv:
35698@if target-libvtv-bootstrap
35699maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
35700all-stage3: all-stage3-target-libvtv
35701TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
35702all-stage3-target-libvtv: configure-stage3-target-libvtv
35703 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35704 @r=`${PWD_COMMAND}`; export r; \
35705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35706 TFLAGS="$(STAGE3_TFLAGS)"; \
35707 $(RAW_CXX_TARGET_EXPORTS) \
35708 \
35709 cd $(TARGET_SUBDIR)/libvtv && \
35710 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35711 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35712 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35713 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35714 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35715 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35716 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35717 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35718 TFLAGS="$(STAGE3_TFLAGS)" \
35719 $(TARGET-stage3-target-libvtv)
35720
35721maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
35722clean-stage3: clean-stage3-target-libvtv
35723clean-stage3-target-libvtv:
35724 @if [ $(current_stage) = stage3 ]; then \
35725 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35726 else \
35727 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
35728 $(MAKE) stage3-start; \
35729 fi; \
35730 cd $(TARGET_SUBDIR)/libvtv && \
35731 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35732@endif target-libvtv-bootstrap
35733
35734
35735.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
35736.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
35737maybe-all-stage4-target-libvtv:
35738maybe-clean-stage4-target-libvtv:
35739@if target-libvtv-bootstrap
35740maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
35741all-stage4: all-stage4-target-libvtv
35742TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
35743all-stage4-target-libvtv: configure-stage4-target-libvtv
35744 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35745 @r=`${PWD_COMMAND}`; export r; \
35746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35747 TFLAGS="$(STAGE4_TFLAGS)"; \
35748 $(RAW_CXX_TARGET_EXPORTS) \
35749 \
35750 cd $(TARGET_SUBDIR)/libvtv && \
35751 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35752 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35753 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35754 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35755 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35756 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35757 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35758 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35759 TFLAGS="$(STAGE4_TFLAGS)" \
35760 $(TARGET-stage4-target-libvtv)
35761
35762maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
35763clean-stage4: clean-stage4-target-libvtv
35764clean-stage4-target-libvtv:
35765 @if [ $(current_stage) = stage4 ]; then \
35766 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35767 else \
35768 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
35769 $(MAKE) stage4-start; \
35770 fi; \
35771 cd $(TARGET_SUBDIR)/libvtv && \
35772 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35773@endif target-libvtv-bootstrap
35774
35775
35776.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
35777.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
35778maybe-all-stageprofile-target-libvtv:
35779maybe-clean-stageprofile-target-libvtv:
35780@if target-libvtv-bootstrap
35781maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
35782all-stageprofile: all-stageprofile-target-libvtv
35783TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
35784all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
35785 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35786 @r=`${PWD_COMMAND}`; export r; \
35787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35788 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35789 $(RAW_CXX_TARGET_EXPORTS) \
35790 \
35791 cd $(TARGET_SUBDIR)/libvtv && \
35792 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35793 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35794 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35795 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35796 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35797 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35798 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35799 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35800 TFLAGS="$(STAGEprofile_TFLAGS)" \
35801 $(TARGET-stageprofile-target-libvtv)
35802
35803maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
35804clean-stageprofile: clean-stageprofile-target-libvtv
35805clean-stageprofile-target-libvtv:
35806 @if [ $(current_stage) = stageprofile ]; then \
35807 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35808 else \
35809 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
35810 $(MAKE) stageprofile-start; \
35811 fi; \
35812 cd $(TARGET_SUBDIR)/libvtv && \
35813 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35814@endif target-libvtv-bootstrap
35815
35816
35817.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
35818.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
35819maybe-all-stagefeedback-target-libvtv:
35820maybe-clean-stagefeedback-target-libvtv:
35821@if target-libvtv-bootstrap
35822maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
35823all-stagefeedback: all-stagefeedback-target-libvtv
35824TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
35825all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
35826 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35827 @r=`${PWD_COMMAND}`; export r; \
35828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35829 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35830 $(RAW_CXX_TARGET_EXPORTS) \
35831 \
35832 cd $(TARGET_SUBDIR)/libvtv && \
35833 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35834 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35835 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35836 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35837 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35838 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35839 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35840 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35841 TFLAGS="$(STAGEfeedback_TFLAGS)" \
35842 $(TARGET-stagefeedback-target-libvtv)
35843
35844maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
35845clean-stagefeedback: clean-stagefeedback-target-libvtv
35846clean-stagefeedback-target-libvtv:
35847 @if [ $(current_stage) = stagefeedback ]; then \
35848 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
35849 else \
35850 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
35851 $(MAKE) stagefeedback-start; \
35852 fi; \
35853 cd $(TARGET_SUBDIR)/libvtv && \
35854 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35855@endif target-libvtv-bootstrap
35856
35857
35858
35859
35860
35861
35862.PHONY: check-target-libvtv maybe-check-target-libvtv
35863maybe-check-target-libvtv:
35864@if target-libvtv
35865maybe-check-target-libvtv: check-target-libvtv
35866
35867check-target-libvtv:
35868 @: $(MAKE); $(unstage)
35869 @r=`${PWD_COMMAND}`; export r; \
35870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35871 $(RAW_CXX_TARGET_EXPORTS) \
35872 (cd $(TARGET_SUBDIR)/libvtv && \
35873 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
35874
35875@endif target-libvtv
35876
35877.PHONY: install-target-libvtv maybe-install-target-libvtv
35878maybe-install-target-libvtv:
35879@if target-libvtv
35880maybe-install-target-libvtv: install-target-libvtv
35881
35882install-target-libvtv: installdirs
35883 @: $(MAKE); $(unstage)
35884 @r=`${PWD_COMMAND}`; export r; \
35885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35886 $(RAW_CXX_TARGET_EXPORTS) \
35887 (cd $(TARGET_SUBDIR)/libvtv && \
35888 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
35889
35890@endif target-libvtv
35891
35892.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
35893maybe-install-strip-target-libvtv:
35894@if target-libvtv
35895maybe-install-strip-target-libvtv: install-strip-target-libvtv
35896
35897install-strip-target-libvtv: installdirs
35898 @: $(MAKE); $(unstage)
35899 @r=`${PWD_COMMAND}`; export r; \
35900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35901 $(RAW_CXX_TARGET_EXPORTS) \
35902 (cd $(TARGET_SUBDIR)/libvtv && \
35903 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35904
35905@endif target-libvtv
35906
35907# Other targets (info, dvi, pdf, etc.)
35908
35909.PHONY: maybe-info-target-libvtv info-target-libvtv
35910maybe-info-target-libvtv:
35911@if target-libvtv
35912maybe-info-target-libvtv: info-target-libvtv
35913
35914info-target-libvtv: \
35915 configure-target-libvtv
35916 @: $(MAKE); $(unstage)
35917 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
35918 r=`${PWD_COMMAND}`; export r; \
35919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35920 $(RAW_CXX_TARGET_EXPORTS) \
35921 echo "Doing info in $(TARGET_SUBDIR)/libvtv" ; \
35922 for flag in $(EXTRA_TARGET_FLAGS); do \
35923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35924 done; \
35925 (cd $(TARGET_SUBDIR)/libvtv && \
35926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35928 "RANLIB=$${RANLIB}" \
35929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35930 info) \
35931 || exit 1
35932
35933@endif target-libvtv
35934
35935.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
35936maybe-dvi-target-libvtv:
35937@if target-libvtv
35938maybe-dvi-target-libvtv: dvi-target-libvtv
35939
35940dvi-target-libvtv: \
35941 configure-target-libvtv
35942 @: $(MAKE); $(unstage)
35943 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
35944 r=`${PWD_COMMAND}`; export r; \
35945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35946 $(RAW_CXX_TARGET_EXPORTS) \
35947 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv" ; \
35948 for flag in $(EXTRA_TARGET_FLAGS); do \
35949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35950 done; \
35951 (cd $(TARGET_SUBDIR)/libvtv && \
35952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35954 "RANLIB=$${RANLIB}" \
35955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35956 dvi) \
35957 || exit 1
35958
35959@endif target-libvtv
35960
35961.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
35962maybe-pdf-target-libvtv:
35963@if target-libvtv
35964maybe-pdf-target-libvtv: pdf-target-libvtv
35965
35966pdf-target-libvtv: \
35967 configure-target-libvtv
35968 @: $(MAKE); $(unstage)
35969 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
35970 r=`${PWD_COMMAND}`; export r; \
35971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35972 $(RAW_CXX_TARGET_EXPORTS) \
35973 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv" ; \
35974 for flag in $(EXTRA_TARGET_FLAGS); do \
35975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35976 done; \
35977 (cd $(TARGET_SUBDIR)/libvtv && \
35978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35980 "RANLIB=$${RANLIB}" \
35981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35982 pdf) \
35983 || exit 1
35984
35985@endif target-libvtv
35986
35987.PHONY: maybe-html-target-libvtv html-target-libvtv
35988maybe-html-target-libvtv:
35989@if target-libvtv
35990maybe-html-target-libvtv: html-target-libvtv
35991
35992html-target-libvtv: \
35993 configure-target-libvtv
35994 @: $(MAKE); $(unstage)
35995 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
35996 r=`${PWD_COMMAND}`; export r; \
35997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35998 $(RAW_CXX_TARGET_EXPORTS) \
35999 echo "Doing html in $(TARGET_SUBDIR)/libvtv" ; \
36000 for flag in $(EXTRA_TARGET_FLAGS); do \
36001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36002 done; \
36003 (cd $(TARGET_SUBDIR)/libvtv && \
36004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36006 "RANLIB=$${RANLIB}" \
36007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36008 html) \
36009 || exit 1
36010
36011@endif target-libvtv
36012
36013.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
36014maybe-TAGS-target-libvtv:
36015@if target-libvtv
36016maybe-TAGS-target-libvtv: TAGS-target-libvtv
36017
36018TAGS-target-libvtv: \
36019 configure-target-libvtv
36020 @: $(MAKE); $(unstage)
36021 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36022 r=`${PWD_COMMAND}`; export r; \
36023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36024 $(RAW_CXX_TARGET_EXPORTS) \
36025 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv" ; \
36026 for flag in $(EXTRA_TARGET_FLAGS); do \
36027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36028 done; \
36029 (cd $(TARGET_SUBDIR)/libvtv && \
36030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36032 "RANLIB=$${RANLIB}" \
36033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36034 TAGS) \
36035 || exit 1
36036
36037@endif target-libvtv
36038
36039.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
36040maybe-install-info-target-libvtv:
36041@if target-libvtv
36042maybe-install-info-target-libvtv: install-info-target-libvtv
36043
36044install-info-target-libvtv: \
36045 configure-target-libvtv \
36046 info-target-libvtv
36047 @: $(MAKE); $(unstage)
36048 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36049 r=`${PWD_COMMAND}`; export r; \
36050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36051 $(RAW_CXX_TARGET_EXPORTS) \
36052 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv" ; \
36053 for flag in $(EXTRA_TARGET_FLAGS); do \
36054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36055 done; \
36056 (cd $(TARGET_SUBDIR)/libvtv && \
36057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36059 "RANLIB=$${RANLIB}" \
36060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36061 install-info) \
36062 || exit 1
36063
36064@endif target-libvtv
36065
36066.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
36067maybe-install-pdf-target-libvtv:
36068@if target-libvtv
36069maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
36070
36071install-pdf-target-libvtv: \
36072 configure-target-libvtv \
36073 pdf-target-libvtv
36074 @: $(MAKE); $(unstage)
36075 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36076 r=`${PWD_COMMAND}`; export r; \
36077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36078 $(RAW_CXX_TARGET_EXPORTS) \
36079 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv" ; \
36080 for flag in $(EXTRA_TARGET_FLAGS); do \
36081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36082 done; \
36083 (cd $(TARGET_SUBDIR)/libvtv && \
36084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36086 "RANLIB=$${RANLIB}" \
36087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36088 install-pdf) \
36089 || exit 1
36090
36091@endif target-libvtv
36092
36093.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
36094maybe-install-html-target-libvtv:
36095@if target-libvtv
36096maybe-install-html-target-libvtv: install-html-target-libvtv
36097
36098install-html-target-libvtv: \
36099 configure-target-libvtv \
36100 html-target-libvtv
36101 @: $(MAKE); $(unstage)
36102 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36103 r=`${PWD_COMMAND}`; export r; \
36104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36105 $(RAW_CXX_TARGET_EXPORTS) \
36106 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv" ; \
36107 for flag in $(EXTRA_TARGET_FLAGS); do \
36108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36109 done; \
36110 (cd $(TARGET_SUBDIR)/libvtv && \
36111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36113 "RANLIB=$${RANLIB}" \
36114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36115 install-html) \
36116 || exit 1
36117
36118@endif target-libvtv
36119
36120.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
36121maybe-installcheck-target-libvtv:
36122@if target-libvtv
36123maybe-installcheck-target-libvtv: installcheck-target-libvtv
36124
36125installcheck-target-libvtv: \
36126 configure-target-libvtv
36127 @: $(MAKE); $(unstage)
36128 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36129 r=`${PWD_COMMAND}`; export r; \
36130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36131 $(RAW_CXX_TARGET_EXPORTS) \
36132 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv" ; \
36133 for flag in $(EXTRA_TARGET_FLAGS); do \
36134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36135 done; \
36136 (cd $(TARGET_SUBDIR)/libvtv && \
36137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36139 "RANLIB=$${RANLIB}" \
36140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36141 installcheck) \
36142 || exit 1
36143
36144@endif target-libvtv
36145
36146.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
36147maybe-mostlyclean-target-libvtv:
36148@if target-libvtv
36149maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
36150
36151mostlyclean-target-libvtv:
36152 @: $(MAKE); $(unstage)
36153 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36154 r=`${PWD_COMMAND}`; export r; \
36155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36156 $(RAW_CXX_TARGET_EXPORTS) \
36157 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv" ; \
36158 for flag in $(EXTRA_TARGET_FLAGS); do \
36159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36160 done; \
36161 (cd $(TARGET_SUBDIR)/libvtv && \
36162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36164 "RANLIB=$${RANLIB}" \
36165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36166 mostlyclean) \
36167 || exit 1
36168
36169@endif target-libvtv
36170
36171.PHONY: maybe-clean-target-libvtv clean-target-libvtv
36172maybe-clean-target-libvtv:
36173@if target-libvtv
36174maybe-clean-target-libvtv: clean-target-libvtv
36175
36176clean-target-libvtv:
36177 @: $(MAKE); $(unstage)
36178 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36179 r=`${PWD_COMMAND}`; export r; \
36180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36181 $(RAW_CXX_TARGET_EXPORTS) \
36182 echo "Doing clean in $(TARGET_SUBDIR)/libvtv" ; \
36183 for flag in $(EXTRA_TARGET_FLAGS); do \
36184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36185 done; \
36186 (cd $(TARGET_SUBDIR)/libvtv && \
36187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36189 "RANLIB=$${RANLIB}" \
36190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36191 clean) \
36192 || exit 1
36193
36194@endif target-libvtv
36195
36196.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
36197maybe-distclean-target-libvtv:
36198@if target-libvtv
36199maybe-distclean-target-libvtv: distclean-target-libvtv
36200
36201distclean-target-libvtv:
36202 @: $(MAKE); $(unstage)
36203 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36204 r=`${PWD_COMMAND}`; export r; \
36205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36206 $(RAW_CXX_TARGET_EXPORTS) \
36207 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv" ; \
36208 for flag in $(EXTRA_TARGET_FLAGS); do \
36209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36210 done; \
36211 (cd $(TARGET_SUBDIR)/libvtv && \
36212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36214 "RANLIB=$${RANLIB}" \
36215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36216 distclean) \
36217 || exit 1
36218
36219@endif target-libvtv
36220
36221.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
36222maybe-maintainer-clean-target-libvtv:
36223@if target-libvtv
36224maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
36225
36226maintainer-clean-target-libvtv:
36227 @: $(MAKE); $(unstage)
36228 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0 ; \
36229 r=`${PWD_COMMAND}`; export r; \
36230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36231 $(RAW_CXX_TARGET_EXPORTS) \
36232 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv" ; \
36233 for flag in $(EXTRA_TARGET_FLAGS); do \
36234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36235 done; \
36236 (cd $(TARGET_SUBDIR)/libvtv && \
36237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36239 "RANLIB=$${RANLIB}" \
36240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36241 maintainer-clean) \
36242 || exit 1
36243
36244@endif target-libvtv
36245
36246
36247
36248
36249
e78e02e6 36250.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
36251maybe-configure-target-libcilkrts:
36252@if gcc-bootstrap
36253configure-target-libcilkrts: stage_current
36254@endif gcc-bootstrap
36255@if target-libcilkrts
36256maybe-configure-target-libcilkrts: configure-target-libcilkrts
36257configure-target-libcilkrts:
36258 @: $(MAKE); $(unstage)
36259 @r=`${PWD_COMMAND}`; export r; \
36260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36261 echo "Checking multilib configuration for libcilkrts..."; \
36262 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts ; \
36263 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null ; \
36264 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
36265 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
36266 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
36267 else \
36268 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
36269 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
36270 fi; \
36271 else \
36272 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
36273 fi; \
36274 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
36275 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts ; \
36276 $(NORMAL_TARGET_EXPORTS) \
36277 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
36278 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
36279 case $(srcdir) in \
36280 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36281 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
36282 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36283 esac; \
1b6c0831 36284 module_srcdir=libcilkrts; \
e78e02e6 36285 rm -f no-such-file || : ; \
1b6c0831
L
36286 CONFIG_SITE=no-such-file $(SHELL) \
36287 $$s/$$module_srcdir/configure \
36288 --srcdir=$${topdir}/$$module_srcdir \
e78e02e6 36289 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36290 --target=${target_alias} \
e78e02e6 36291 || exit 1
36292@endif target-libcilkrts
36293
36294
36295
36296
36297
36298.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
36299maybe-all-target-libcilkrts:
36300@if gcc-bootstrap
36301all-target-libcilkrts: stage_current
36302@endif gcc-bootstrap
36303@if target-libcilkrts
36304TARGET-target-libcilkrts=all
36305maybe-all-target-libcilkrts: all-target-libcilkrts
36306all-target-libcilkrts: configure-target-libcilkrts
36307 @: $(MAKE); $(unstage)
36308 @r=`${PWD_COMMAND}`; export r; \
36309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36310 $(NORMAL_TARGET_EXPORTS) \
36311 (cd $(TARGET_SUBDIR)/libcilkrts && \
36312 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36313 $(TARGET-target-libcilkrts))
36314@endif target-libcilkrts
36315
36316
36317
36318
36319
36320.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
36321maybe-check-target-libcilkrts:
36322@if target-libcilkrts
36323maybe-check-target-libcilkrts: check-target-libcilkrts
36324
36325check-target-libcilkrts:
36326 @: $(MAKE); $(unstage)
36327 @r=`${PWD_COMMAND}`; export r; \
36328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36329 $(NORMAL_TARGET_EXPORTS) \
36330 (cd $(TARGET_SUBDIR)/libcilkrts && \
36331 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
36332
36333@endif target-libcilkrts
36334
36335.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
36336maybe-install-target-libcilkrts:
36337@if target-libcilkrts
36338maybe-install-target-libcilkrts: install-target-libcilkrts
36339
36340install-target-libcilkrts: installdirs
36341 @: $(MAKE); $(unstage)
36342 @r=`${PWD_COMMAND}`; export r; \
36343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36344 $(NORMAL_TARGET_EXPORTS) \
36345 (cd $(TARGET_SUBDIR)/libcilkrts && \
36346 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36347
36348@endif target-libcilkrts
36349
36350.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
36351maybe-install-strip-target-libcilkrts:
36352@if target-libcilkrts
36353maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
36354
36355install-strip-target-libcilkrts: installdirs
36356 @: $(MAKE); $(unstage)
36357 @r=`${PWD_COMMAND}`; export r; \
36358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36359 $(NORMAL_TARGET_EXPORTS) \
36360 (cd $(TARGET_SUBDIR)/libcilkrts && \
36361 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36362
36363@endif target-libcilkrts
36364
36365# Other targets (info, dvi, pdf, etc.)
36366
36367.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
36368maybe-info-target-libcilkrts:
36369@if target-libcilkrts
36370maybe-info-target-libcilkrts: info-target-libcilkrts
36371
36372info-target-libcilkrts: \
36373 configure-target-libcilkrts
36374 @: $(MAKE); $(unstage)
36375 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36376 r=`${PWD_COMMAND}`; export r; \
36377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36378 $(NORMAL_TARGET_EXPORTS) \
36379 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts" ; \
36380 for flag in $(EXTRA_TARGET_FLAGS); do \
36381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36382 done; \
36383 (cd $(TARGET_SUBDIR)/libcilkrts && \
36384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36386 "RANLIB=$${RANLIB}" \
36387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36388 info) \
36389 || exit 1
36390
36391@endif target-libcilkrts
36392
36393.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
36394maybe-dvi-target-libcilkrts:
36395@if target-libcilkrts
36396maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
36397
36398dvi-target-libcilkrts: \
36399 configure-target-libcilkrts
36400 @: $(MAKE); $(unstage)
36401 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36402 r=`${PWD_COMMAND}`; export r; \
36403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36404 $(NORMAL_TARGET_EXPORTS) \
36405 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts" ; \
36406 for flag in $(EXTRA_TARGET_FLAGS); do \
36407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36408 done; \
36409 (cd $(TARGET_SUBDIR)/libcilkrts && \
36410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36412 "RANLIB=$${RANLIB}" \
36413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36414 dvi) \
36415 || exit 1
36416
36417@endif target-libcilkrts
36418
36419.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
36420maybe-pdf-target-libcilkrts:
36421@if target-libcilkrts
36422maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
36423
36424pdf-target-libcilkrts: \
36425 configure-target-libcilkrts
36426 @: $(MAKE); $(unstage)
36427 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36428 r=`${PWD_COMMAND}`; export r; \
36429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36430 $(NORMAL_TARGET_EXPORTS) \
36431 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts" ; \
36432 for flag in $(EXTRA_TARGET_FLAGS); do \
36433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36434 done; \
36435 (cd $(TARGET_SUBDIR)/libcilkrts && \
36436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36438 "RANLIB=$${RANLIB}" \
36439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36440 pdf) \
36441 || exit 1
36442
36443@endif target-libcilkrts
36444
36445.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
36446maybe-html-target-libcilkrts:
36447@if target-libcilkrts
36448maybe-html-target-libcilkrts: html-target-libcilkrts
36449
36450html-target-libcilkrts: \
36451 configure-target-libcilkrts
36452 @: $(MAKE); $(unstage)
36453 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36454 r=`${PWD_COMMAND}`; export r; \
36455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36456 $(NORMAL_TARGET_EXPORTS) \
36457 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts" ; \
36458 for flag in $(EXTRA_TARGET_FLAGS); do \
36459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36460 done; \
36461 (cd $(TARGET_SUBDIR)/libcilkrts && \
36462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36464 "RANLIB=$${RANLIB}" \
36465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36466 html) \
36467 || exit 1
36468
36469@endif target-libcilkrts
36470
36471.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
36472maybe-TAGS-target-libcilkrts:
36473@if target-libcilkrts
36474maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
36475
36476TAGS-target-libcilkrts: \
36477 configure-target-libcilkrts
36478 @: $(MAKE); $(unstage)
36479 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36480 r=`${PWD_COMMAND}`; export r; \
36481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36482 $(NORMAL_TARGET_EXPORTS) \
36483 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts" ; \
36484 for flag in $(EXTRA_TARGET_FLAGS); do \
36485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36486 done; \
36487 (cd $(TARGET_SUBDIR)/libcilkrts && \
36488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36490 "RANLIB=$${RANLIB}" \
36491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36492 TAGS) \
36493 || exit 1
36494
36495@endif target-libcilkrts
36496
36497.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
36498maybe-install-info-target-libcilkrts:
36499@if target-libcilkrts
36500maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
36501
36502install-info-target-libcilkrts: \
36503 configure-target-libcilkrts \
36504 info-target-libcilkrts
36505 @: $(MAKE); $(unstage)
36506 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36507 r=`${PWD_COMMAND}`; export r; \
36508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36509 $(NORMAL_TARGET_EXPORTS) \
36510 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts" ; \
36511 for flag in $(EXTRA_TARGET_FLAGS); do \
36512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36513 done; \
36514 (cd $(TARGET_SUBDIR)/libcilkrts && \
36515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36517 "RANLIB=$${RANLIB}" \
36518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36519 install-info) \
36520 || exit 1
36521
36522@endif target-libcilkrts
36523
36524.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
36525maybe-install-pdf-target-libcilkrts:
36526@if target-libcilkrts
36527maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
36528
36529install-pdf-target-libcilkrts: \
36530 configure-target-libcilkrts \
36531 pdf-target-libcilkrts
36532 @: $(MAKE); $(unstage)
36533 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36534 r=`${PWD_COMMAND}`; export r; \
36535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36536 $(NORMAL_TARGET_EXPORTS) \
36537 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts" ; \
36538 for flag in $(EXTRA_TARGET_FLAGS); do \
36539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36540 done; \
36541 (cd $(TARGET_SUBDIR)/libcilkrts && \
36542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36544 "RANLIB=$${RANLIB}" \
36545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36546 install-pdf) \
36547 || exit 1
36548
36549@endif target-libcilkrts
36550
36551.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
36552maybe-install-html-target-libcilkrts:
36553@if target-libcilkrts
36554maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
36555
36556install-html-target-libcilkrts: \
36557 configure-target-libcilkrts \
36558 html-target-libcilkrts
36559 @: $(MAKE); $(unstage)
36560 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36561 r=`${PWD_COMMAND}`; export r; \
36562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36563 $(NORMAL_TARGET_EXPORTS) \
36564 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts" ; \
36565 for flag in $(EXTRA_TARGET_FLAGS); do \
36566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36567 done; \
36568 (cd $(TARGET_SUBDIR)/libcilkrts && \
36569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36571 "RANLIB=$${RANLIB}" \
36572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36573 install-html) \
36574 || exit 1
36575
36576@endif target-libcilkrts
36577
36578.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
36579maybe-installcheck-target-libcilkrts:
36580@if target-libcilkrts
36581maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
36582
36583installcheck-target-libcilkrts: \
36584 configure-target-libcilkrts
36585 @: $(MAKE); $(unstage)
36586 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36587 r=`${PWD_COMMAND}`; export r; \
36588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36589 $(NORMAL_TARGET_EXPORTS) \
36590 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts" ; \
36591 for flag in $(EXTRA_TARGET_FLAGS); do \
36592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36593 done; \
36594 (cd $(TARGET_SUBDIR)/libcilkrts && \
36595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36597 "RANLIB=$${RANLIB}" \
36598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36599 installcheck) \
36600 || exit 1
36601
36602@endif target-libcilkrts
36603
36604.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
36605maybe-mostlyclean-target-libcilkrts:
36606@if target-libcilkrts
36607maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
36608
36609mostlyclean-target-libcilkrts:
36610 @: $(MAKE); $(unstage)
36611 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36612 r=`${PWD_COMMAND}`; export r; \
36613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36614 $(NORMAL_TARGET_EXPORTS) \
36615 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts" ; \
36616 for flag in $(EXTRA_TARGET_FLAGS); do \
36617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36618 done; \
36619 (cd $(TARGET_SUBDIR)/libcilkrts && \
36620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36622 "RANLIB=$${RANLIB}" \
36623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36624 mostlyclean) \
36625 || exit 1
36626
36627@endif target-libcilkrts
36628
36629.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
36630maybe-clean-target-libcilkrts:
36631@if target-libcilkrts
36632maybe-clean-target-libcilkrts: clean-target-libcilkrts
36633
36634clean-target-libcilkrts:
36635 @: $(MAKE); $(unstage)
36636 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36637 r=`${PWD_COMMAND}`; export r; \
36638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36639 $(NORMAL_TARGET_EXPORTS) \
36640 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts" ; \
36641 for flag in $(EXTRA_TARGET_FLAGS); do \
36642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36643 done; \
36644 (cd $(TARGET_SUBDIR)/libcilkrts && \
36645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36647 "RANLIB=$${RANLIB}" \
36648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36649 clean) \
36650 || exit 1
36651
36652@endif target-libcilkrts
36653
36654.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
36655maybe-distclean-target-libcilkrts:
36656@if target-libcilkrts
36657maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
36658
36659distclean-target-libcilkrts:
36660 @: $(MAKE); $(unstage)
36661 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36662 r=`${PWD_COMMAND}`; export r; \
36663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36664 $(NORMAL_TARGET_EXPORTS) \
36665 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts" ; \
36666 for flag in $(EXTRA_TARGET_FLAGS); do \
36667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36668 done; \
36669 (cd $(TARGET_SUBDIR)/libcilkrts && \
36670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36672 "RANLIB=$${RANLIB}" \
36673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36674 distclean) \
36675 || exit 1
36676
36677@endif target-libcilkrts
36678
36679.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
36680maybe-maintainer-clean-target-libcilkrts:
36681@if target-libcilkrts
36682maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
36683
36684maintainer-clean-target-libcilkrts:
36685 @: $(MAKE); $(unstage)
36686 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0 ; \
36687 r=`${PWD_COMMAND}`; export r; \
36688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36689 $(NORMAL_TARGET_EXPORTS) \
36690 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts" ; \
36691 for flag in $(EXTRA_TARGET_FLAGS); do \
36692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36693 done; \
36694 (cd $(TARGET_SUBDIR)/libcilkrts && \
36695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36697 "RANLIB=$${RANLIB}" \
36698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36699 maintainer-clean) \
36700 || exit 1
36701
36702@endif target-libcilkrts
36703
36704
36705
36706
36707
1b6c0831
L
36708.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
36709maybe-configure-target-liboffloadmic:
36710@if gcc-bootstrap
36711configure-target-liboffloadmic: stage_current
36712@endif gcc-bootstrap
36713@if target-liboffloadmic
36714maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
36715configure-target-liboffloadmic:
36716 @: $(MAKE); $(unstage)
36717 @r=`${PWD_COMMAND}`; export r; \
36718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36719 echo "Checking multilib configuration for liboffloadmic..."; \
36720 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic ; \
36721 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null ; \
36722 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
36723 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
36724 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
36725 else \
36726 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
36727 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
36728 fi; \
36729 else \
36730 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
36731 fi; \
36732 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
36733 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic ; \
36734 $(NORMAL_TARGET_EXPORTS) \
36735 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
36736 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
36737 case $(srcdir) in \
36738 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36739 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
36740 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36741 esac; \
36742 module_srcdir=liboffloadmic; \
36743 rm -f no-such-file || : ; \
36744 CONFIG_SITE=no-such-file $(SHELL) \
36745 $$s/$$module_srcdir/configure \
36746 --srcdir=$${topdir}/$$module_srcdir \
36747 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36748 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
36749 || exit 1
36750@endif target-liboffloadmic
36751
36752
36753
36754
36755
36756.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
36757maybe-all-target-liboffloadmic:
36758@if gcc-bootstrap
36759all-target-liboffloadmic: stage_current
36760@endif gcc-bootstrap
36761@if target-liboffloadmic
36762TARGET-target-liboffloadmic=all
36763maybe-all-target-liboffloadmic: all-target-liboffloadmic
36764all-target-liboffloadmic: configure-target-liboffloadmic
36765 @: $(MAKE); $(unstage)
36766 @r=`${PWD_COMMAND}`; export r; \
36767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36768 $(NORMAL_TARGET_EXPORTS) \
36769 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36770 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36771 $(TARGET-target-liboffloadmic))
36772@endif target-liboffloadmic
36773
36774
36775
36776
36777
36778.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
36779maybe-check-target-liboffloadmic:
36780@if target-liboffloadmic
36781maybe-check-target-liboffloadmic: check-target-liboffloadmic
36782
36783check-target-liboffloadmic:
36784 @: $(MAKE); $(unstage)
36785 @r=`${PWD_COMMAND}`; export r; \
36786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36787 $(NORMAL_TARGET_EXPORTS) \
36788 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36789 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
36790
36791@endif target-liboffloadmic
36792
36793.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
36794maybe-install-target-liboffloadmic:
36795@if target-liboffloadmic
36796maybe-install-target-liboffloadmic: install-target-liboffloadmic
36797
36798install-target-liboffloadmic: installdirs
36799 @: $(MAKE); $(unstage)
36800 @r=`${PWD_COMMAND}`; export r; \
36801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36802 $(NORMAL_TARGET_EXPORTS) \
36803 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36804 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36805
36806@endif target-liboffloadmic
36807
36808.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
36809maybe-install-strip-target-liboffloadmic:
36810@if target-liboffloadmic
36811maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
36812
36813install-strip-target-liboffloadmic: installdirs
36814 @: $(MAKE); $(unstage)
36815 @r=`${PWD_COMMAND}`; export r; \
36816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36817 $(NORMAL_TARGET_EXPORTS) \
36818 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36819 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36820
36821@endif target-liboffloadmic
36822
36823# Other targets (info, dvi, pdf, etc.)
36824
36825.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
36826maybe-info-target-liboffloadmic:
36827@if target-liboffloadmic
36828maybe-info-target-liboffloadmic: info-target-liboffloadmic
36829
36830info-target-liboffloadmic: \
36831 configure-target-liboffloadmic
36832 @: $(MAKE); $(unstage)
36833 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36834 r=`${PWD_COMMAND}`; export r; \
36835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36836 $(NORMAL_TARGET_EXPORTS) \
36837 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic" ; \
36838 for flag in $(EXTRA_TARGET_FLAGS); do \
36839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36840 done; \
36841 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36844 "RANLIB=$${RANLIB}" \
36845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36846 info) \
36847 || exit 1
36848
36849@endif target-liboffloadmic
36850
36851.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
36852maybe-dvi-target-liboffloadmic:
36853@if target-liboffloadmic
36854maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
36855
36856dvi-target-liboffloadmic: \
36857 configure-target-liboffloadmic
36858 @: $(MAKE); $(unstage)
36859 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36860 r=`${PWD_COMMAND}`; export r; \
36861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36862 $(NORMAL_TARGET_EXPORTS) \
36863 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic" ; \
36864 for flag in $(EXTRA_TARGET_FLAGS); do \
36865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36866 done; \
36867 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36870 "RANLIB=$${RANLIB}" \
36871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36872 dvi) \
36873 || exit 1
36874
36875@endif target-liboffloadmic
36876
36877.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
36878maybe-pdf-target-liboffloadmic:
36879@if target-liboffloadmic
36880maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
36881
36882pdf-target-liboffloadmic: \
36883 configure-target-liboffloadmic
36884 @: $(MAKE); $(unstage)
36885 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36886 r=`${PWD_COMMAND}`; export r; \
36887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36888 $(NORMAL_TARGET_EXPORTS) \
36889 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic" ; \
36890 for flag in $(EXTRA_TARGET_FLAGS); do \
36891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36892 done; \
36893 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36896 "RANLIB=$${RANLIB}" \
36897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36898 pdf) \
36899 || exit 1
36900
36901@endif target-liboffloadmic
36902
36903.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
36904maybe-html-target-liboffloadmic:
36905@if target-liboffloadmic
36906maybe-html-target-liboffloadmic: html-target-liboffloadmic
36907
36908html-target-liboffloadmic: \
36909 configure-target-liboffloadmic
36910 @: $(MAKE); $(unstage)
36911 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36912 r=`${PWD_COMMAND}`; export r; \
36913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36914 $(NORMAL_TARGET_EXPORTS) \
36915 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic" ; \
36916 for flag in $(EXTRA_TARGET_FLAGS); do \
36917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36918 done; \
36919 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36922 "RANLIB=$${RANLIB}" \
36923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36924 html) \
36925 || exit 1
36926
36927@endif target-liboffloadmic
36928
36929.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
36930maybe-TAGS-target-liboffloadmic:
36931@if target-liboffloadmic
36932maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
36933
36934TAGS-target-liboffloadmic: \
36935 configure-target-liboffloadmic
36936 @: $(MAKE); $(unstage)
36937 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36938 r=`${PWD_COMMAND}`; export r; \
36939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36940 $(NORMAL_TARGET_EXPORTS) \
36941 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic" ; \
36942 for flag in $(EXTRA_TARGET_FLAGS); do \
36943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36944 done; \
36945 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36948 "RANLIB=$${RANLIB}" \
36949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36950 TAGS) \
36951 || exit 1
36952
36953@endif target-liboffloadmic
36954
36955.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
36956maybe-install-info-target-liboffloadmic:
36957@if target-liboffloadmic
36958maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
36959
36960install-info-target-liboffloadmic: \
36961 configure-target-liboffloadmic \
36962 info-target-liboffloadmic
36963 @: $(MAKE); $(unstage)
36964 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36965 r=`${PWD_COMMAND}`; export r; \
36966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36967 $(NORMAL_TARGET_EXPORTS) \
36968 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic" ; \
36969 for flag in $(EXTRA_TARGET_FLAGS); do \
36970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36971 done; \
36972 (cd $(TARGET_SUBDIR)/liboffloadmic && \
36973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36975 "RANLIB=$${RANLIB}" \
36976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36977 install-info) \
36978 || exit 1
36979
36980@endif target-liboffloadmic
36981
36982.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
36983maybe-install-pdf-target-liboffloadmic:
36984@if target-liboffloadmic
36985maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
36986
36987install-pdf-target-liboffloadmic: \
36988 configure-target-liboffloadmic \
36989 pdf-target-liboffloadmic
36990 @: $(MAKE); $(unstage)
36991 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
36992 r=`${PWD_COMMAND}`; export r; \
36993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36994 $(NORMAL_TARGET_EXPORTS) \
36995 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic" ; \
36996 for flag in $(EXTRA_TARGET_FLAGS); do \
36997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36998 done; \
36999 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37002 "RANLIB=$${RANLIB}" \
37003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37004 install-pdf) \
37005 || exit 1
37006
37007@endif target-liboffloadmic
37008
37009.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
37010maybe-install-html-target-liboffloadmic:
37011@if target-liboffloadmic
37012maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
37013
37014install-html-target-liboffloadmic: \
37015 configure-target-liboffloadmic \
37016 html-target-liboffloadmic
37017 @: $(MAKE); $(unstage)
37018 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37019 r=`${PWD_COMMAND}`; export r; \
37020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37021 $(NORMAL_TARGET_EXPORTS) \
37022 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic" ; \
37023 for flag in $(EXTRA_TARGET_FLAGS); do \
37024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37025 done; \
37026 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37029 "RANLIB=$${RANLIB}" \
37030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37031 install-html) \
37032 || exit 1
37033
37034@endif target-liboffloadmic
37035
37036.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
37037maybe-installcheck-target-liboffloadmic:
37038@if target-liboffloadmic
37039maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
37040
37041installcheck-target-liboffloadmic: \
37042 configure-target-liboffloadmic
37043 @: $(MAKE); $(unstage)
37044 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37045 r=`${PWD_COMMAND}`; export r; \
37046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37047 $(NORMAL_TARGET_EXPORTS) \
37048 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic" ; \
37049 for flag in $(EXTRA_TARGET_FLAGS); do \
37050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37051 done; \
37052 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37055 "RANLIB=$${RANLIB}" \
37056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37057 installcheck) \
37058 || exit 1
37059
37060@endif target-liboffloadmic
37061
37062.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
37063maybe-mostlyclean-target-liboffloadmic:
37064@if target-liboffloadmic
37065maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
37066
37067mostlyclean-target-liboffloadmic:
37068 @: $(MAKE); $(unstage)
37069 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37070 r=`${PWD_COMMAND}`; export r; \
37071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37072 $(NORMAL_TARGET_EXPORTS) \
37073 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic" ; \
37074 for flag in $(EXTRA_TARGET_FLAGS); do \
37075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37076 done; \
37077 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37080 "RANLIB=$${RANLIB}" \
37081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37082 mostlyclean) \
37083 || exit 1
37084
37085@endif target-liboffloadmic
37086
37087.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
37088maybe-clean-target-liboffloadmic:
37089@if target-liboffloadmic
37090maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
37091
37092clean-target-liboffloadmic:
37093 @: $(MAKE); $(unstage)
37094 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37095 r=`${PWD_COMMAND}`; export r; \
37096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37097 $(NORMAL_TARGET_EXPORTS) \
37098 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic" ; \
37099 for flag in $(EXTRA_TARGET_FLAGS); do \
37100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37101 done; \
37102 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37105 "RANLIB=$${RANLIB}" \
37106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37107 clean) \
37108 || exit 1
37109
37110@endif target-liboffloadmic
37111
37112.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
37113maybe-distclean-target-liboffloadmic:
37114@if target-liboffloadmic
37115maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
37116
37117distclean-target-liboffloadmic:
37118 @: $(MAKE); $(unstage)
37119 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37120 r=`${PWD_COMMAND}`; export r; \
37121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37122 $(NORMAL_TARGET_EXPORTS) \
37123 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic" ; \
37124 for flag in $(EXTRA_TARGET_FLAGS); do \
37125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37126 done; \
37127 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37130 "RANLIB=$${RANLIB}" \
37131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37132 distclean) \
37133 || exit 1
37134
37135@endif target-liboffloadmic
37136
37137.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
37138maybe-maintainer-clean-target-liboffloadmic:
37139@if target-liboffloadmic
37140maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
37141
37142maintainer-clean-target-liboffloadmic:
37143 @: $(MAKE); $(unstage)
37144 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0 ; \
37145 r=`${PWD_COMMAND}`; export r; \
37146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37147 $(NORMAL_TARGET_EXPORTS) \
37148 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic" ; \
37149 for flag in $(EXTRA_TARGET_FLAGS); do \
37150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37151 done; \
37152 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37155 "RANLIB=$${RANLIB}" \
37156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37157 maintainer-clean) \
37158 || exit 1
37159
37160@endif target-liboffloadmic
37161
37162
37163
37164
37165
a90ef4bf
JM
37166.PHONY: configure-target-libssp maybe-configure-target-libssp
37167maybe-configure-target-libssp:
4f0ef2d8 37168@if gcc-bootstrap
a90ef4bf 37169configure-target-libssp: stage_current
4f0ef2d8 37170@endif gcc-bootstrap
a90ef4bf
JM
37171@if target-libssp
37172maybe-configure-target-libssp: configure-target-libssp
37173configure-target-libssp:
0aed8855
PB
37174 @: $(MAKE); $(unstage)
37175 @r=`${PWD_COMMAND}`; export r; \
37176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
37177 echo "Checking multilib configuration for libssp..."; \
37178 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
37179 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null ; \
37180 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
37181 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
37182 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 37183 else \
a90ef4bf
JM
37184 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
37185 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
37186 fi; \
37187 else \
a90ef4bf 37188 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 37189 fi; \
a90ef4bf
JM
37190 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
37191 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
1f53ca9a 37192 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37193 echo Configuring in $(TARGET_SUBDIR)/libssp; \
37194 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 37195 case $(srcdir) in \
b00612cc 37196 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 37197 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 37198 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 37199 esac; \
1b6c0831 37200 module_srcdir=libssp; \
4b1cb4fe 37201 rm -f no-such-file || : ; \
1b6c0831
L
37202 CONFIG_SITE=no-such-file $(SHELL) \
37203 $$s/$$module_srcdir/configure \
37204 --srcdir=$${topdir}/$$module_srcdir \
4b900473 37205 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37206 --target=${target_alias} \
4b1cb4fe 37207 || exit 1
a90ef4bf 37208@endif target-libssp
4b1cb4fe 37209
a7254363
PB
37210
37211
d545f33b
PB
37212
37213
a90ef4bf
JM
37214.PHONY: all-target-libssp maybe-all-target-libssp
37215maybe-all-target-libssp:
4f0ef2d8 37216@if gcc-bootstrap
a90ef4bf 37217all-target-libssp: stage_current
4f0ef2d8 37218@endif gcc-bootstrap
a90ef4bf
JM
37219@if target-libssp
37220TARGET-target-libssp=all
37221maybe-all-target-libssp: all-target-libssp
37222all-target-libssp: configure-target-libssp
0aed8855 37223 @: $(MAKE); $(unstage)
4b1cb4fe
DD
37224 @r=`${PWD_COMMAND}`; export r; \
37225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 37226 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37227 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 37228 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
37229 $(TARGET-target-libssp))
37230@endif target-libssp
4b1cb4fe 37231
a7254363
PB
37232
37233
d545f33b
PB
37234
37235
a90ef4bf
JM
37236.PHONY: check-target-libssp maybe-check-target-libssp
37237maybe-check-target-libssp:
37238@if target-libssp
37239maybe-check-target-libssp: check-target-libssp
4b1cb4fe 37240
a90ef4bf 37241check-target-libssp:
0aed8855 37242 @: $(MAKE); $(unstage)
b40e3958
L
37243 @r=`${PWD_COMMAND}`; export r; \
37244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37245 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37246 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 37247 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 37248
a90ef4bf 37249@endif target-libssp
3866be5d 37250
a90ef4bf
JM
37251.PHONY: install-target-libssp maybe-install-target-libssp
37252maybe-install-target-libssp:
37253@if target-libssp
37254maybe-install-target-libssp: install-target-libssp
e2b9e2dc 37255
a90ef4bf 37256install-target-libssp: installdirs
0aed8855 37257 @: $(MAKE); $(unstage)
b40e3958
L
37258 @r=`${PWD_COMMAND}`; export r; \
37259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37260 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37261 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 37262 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 37263
a90ef4bf 37264@endif target-libssp
3866be5d 37265
a90ef4bf
JM
37266.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
37267maybe-install-strip-target-libssp:
37268@if target-libssp
37269maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 37270
a90ef4bf 37271install-strip-target-libssp: installdirs
9b980aa1
RW
37272 @: $(MAKE); $(unstage)
37273 @r=`${PWD_COMMAND}`; export r; \
37274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37275 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37276 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
37277 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37278
a90ef4bf 37279@endif target-libssp
9b980aa1 37280
56a8fe78 37281# Other targets (info, dvi, pdf, etc.)
3866be5d 37282
a90ef4bf
JM
37283.PHONY: maybe-info-target-libssp info-target-libssp
37284maybe-info-target-libssp:
37285@if target-libssp
37286maybe-info-target-libssp: info-target-libssp
3866be5d 37287
a90ef4bf
JM
37288info-target-libssp: \
37289 configure-target-libssp
0aed8855 37290 @: $(MAKE); $(unstage)
a90ef4bf 37291 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067
NN
37292 r=`${PWD_COMMAND}`; export r; \
37293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37294 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37295 echo "Doing info in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37296 for flag in $(EXTRA_TARGET_FLAGS); do \
37297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37298 done; \
a90ef4bf 37299 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37302 "RANLIB=$${RANLIB}" \
0c24b341 37303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37304 info) \
4fa63067 37305 || exit 1
16ae0395 37306
a90ef4bf 37307@endif target-libssp
3866be5d 37308
a90ef4bf
JM
37309.PHONY: maybe-dvi-target-libssp dvi-target-libssp
37310maybe-dvi-target-libssp:
37311@if target-libssp
37312maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 37313
a90ef4bf
JM
37314dvi-target-libssp: \
37315 configure-target-libssp
0aed8855 37316 @: $(MAKE); $(unstage)
a90ef4bf 37317 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
b40e3958
L
37318 r=`${PWD_COMMAND}`; export r; \
37319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37320 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37321 echo "Doing dvi in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37322 for flag in $(EXTRA_TARGET_FLAGS); do \
37323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37324 done; \
a90ef4bf 37325 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37328 "RANLIB=$${RANLIB}" \
0c24b341 37329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37330 dvi) \
e2b9e2dc
NN
37331 || exit 1
37332
a90ef4bf 37333@endif target-libssp
3866be5d 37334
a90ef4bf
JM
37335.PHONY: maybe-pdf-target-libssp pdf-target-libssp
37336maybe-pdf-target-libssp:
37337@if target-libssp
37338maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 37339
a90ef4bf
JM
37340pdf-target-libssp: \
37341 configure-target-libssp
56a8fe78 37342 @: $(MAKE); $(unstage)
a90ef4bf 37343 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
56a8fe78
DD
37344 r=`${PWD_COMMAND}`; export r; \
37345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37346 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37347 echo "Doing pdf in $(TARGET_SUBDIR)/libssp" ; \
56a8fe78
DD
37348 for flag in $(EXTRA_TARGET_FLAGS); do \
37349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37350 done; \
a90ef4bf 37351 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
37352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37354 "RANLIB=$${RANLIB}" \
0c24b341 37355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
37356 pdf) \
37357 || exit 1
37358
a90ef4bf 37359@endif target-libssp
a3ca38d2 37360
a90ef4bf
JM
37361.PHONY: maybe-html-target-libssp html-target-libssp
37362maybe-html-target-libssp:
37363@if target-libssp
37364maybe-html-target-libssp: html-target-libssp
108a6f8e 37365
a90ef4bf
JM
37366html-target-libssp: \
37367 configure-target-libssp
108a6f8e 37368 @: $(MAKE); $(unstage)
a90ef4bf 37369 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
108a6f8e
CD
37370 r=`${PWD_COMMAND}`; export r; \
37371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37372 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37373 echo "Doing html in $(TARGET_SUBDIR)/libssp" ; \
108a6f8e
CD
37374 for flag in $(EXTRA_TARGET_FLAGS); do \
37375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37376 done; \
a90ef4bf 37377 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
37378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37380 "RANLIB=$${RANLIB}" \
0c24b341 37381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37382 html) \
108a6f8e
CD
37383 || exit 1
37384
a90ef4bf 37385@endif target-libssp
108a6f8e 37386
a90ef4bf
JM
37387.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
37388maybe-TAGS-target-libssp:
37389@if target-libssp
37390maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 37391
a90ef4bf
JM
37392TAGS-target-libssp: \
37393 configure-target-libssp
0aed8855 37394 @: $(MAKE); $(unstage)
a90ef4bf 37395 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
b40e3958
L
37396 r=`${PWD_COMMAND}`; export r; \
37397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37398 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37399 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37400 for flag in $(EXTRA_TARGET_FLAGS); do \
37401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37402 done; \
a90ef4bf 37403 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37406 "RANLIB=$${RANLIB}" \
0c24b341 37407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37408 TAGS) \
e2b9e2dc
NN
37409 || exit 1
37410
a90ef4bf 37411@endif target-libssp
3866be5d 37412
a90ef4bf
JM
37413.PHONY: maybe-install-info-target-libssp install-info-target-libssp
37414maybe-install-info-target-libssp:
37415@if target-libssp
37416maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 37417
a90ef4bf
JM
37418install-info-target-libssp: \
37419 configure-target-libssp \
37420 info-target-libssp
0aed8855 37421 @: $(MAKE); $(unstage)
a90ef4bf 37422 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067 37423 r=`${PWD_COMMAND}`; export r; \
b40e3958 37424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37425 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37426 echo "Doing install-info in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37427 for flag in $(EXTRA_TARGET_FLAGS); do \
37428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37429 done; \
a90ef4bf 37430 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37433 "RANLIB=$${RANLIB}" \
0c24b341 37434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37435 install-info) \
4fa63067 37436 || exit 1
3866be5d 37437
a90ef4bf 37438@endif target-libssp
3866be5d 37439
a90ef4bf
JM
37440.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
37441maybe-install-pdf-target-libssp:
37442@if target-libssp
37443maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 37444
a90ef4bf
JM
37445install-pdf-target-libssp: \
37446 configure-target-libssp \
37447 pdf-target-libssp
0aed8855 37448 @: $(MAKE); $(unstage)
a90ef4bf 37449 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067 37450 r=`${PWD_COMMAND}`; export r; \
b40e3958 37451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37452 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37453 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37454 for flag in $(EXTRA_TARGET_FLAGS); do \
37455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37456 done; \
a90ef4bf 37457 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37460 "RANLIB=$${RANLIB}" \
0c24b341 37461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37462 install-pdf) \
4fa63067 37463 || exit 1
3866be5d 37464
a90ef4bf 37465@endif target-libssp
3866be5d 37466
a90ef4bf
JM
37467.PHONY: maybe-install-html-target-libssp install-html-target-libssp
37468maybe-install-html-target-libssp:
37469@if target-libssp
37470maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 37471
a90ef4bf
JM
37472install-html-target-libssp: \
37473 configure-target-libssp \
37474 html-target-libssp
0aed8855 37475 @: $(MAKE); $(unstage)
a90ef4bf 37476 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
b40e3958
L
37477 r=`${PWD_COMMAND}`; export r; \
37478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37479 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37480 echo "Doing install-html in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37481 for flag in $(EXTRA_TARGET_FLAGS); do \
37482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37483 done; \
a90ef4bf 37484 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37487 "RANLIB=$${RANLIB}" \
0c24b341 37488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37489 install-html) \
e2b9e2dc
NN
37490 || exit 1
37491
a90ef4bf 37492@endif target-libssp
3866be5d 37493
a90ef4bf
JM
37494.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
37495maybe-installcheck-target-libssp:
37496@if target-libssp
37497maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 37498
a90ef4bf
JM
37499installcheck-target-libssp: \
37500 configure-target-libssp
0aed8855 37501 @: $(MAKE); $(unstage)
a90ef4bf 37502 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
4fa63067 37503 r=`${PWD_COMMAND}`; export r; \
b40e3958 37504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37505 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37506 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp" ; \
4fa63067
NN
37507 for flag in $(EXTRA_TARGET_FLAGS); do \
37508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37509 done; \
a90ef4bf 37510 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37513 "RANLIB=$${RANLIB}" \
0c24b341 37514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37515 installcheck) \
6aa8ef82 37516 || exit 1
6aa8ef82 37517
a90ef4bf 37518@endif target-libssp
6aa8ef82 37519
a90ef4bf
JM
37520.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
37521maybe-mostlyclean-target-libssp:
37522@if target-libssp
37523maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 37524
a90ef4bf
JM
37525mostlyclean-target-libssp:
37526 @: $(MAKE); $(unstage)
37527 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
37528 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37530 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37531 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp" ; \
37532 for flag in $(EXTRA_TARGET_FLAGS); do \
37533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37534 done; \
37535 (cd $(TARGET_SUBDIR)/libssp && \
37536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37538 "RANLIB=$${RANLIB}" \
37539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37540 mostlyclean) \
37541 || exit 1
6aa8ef82 37542
a90ef4bf 37543@endif target-libssp
6aa8ef82 37544
a90ef4bf
JM
37545.PHONY: maybe-clean-target-libssp clean-target-libssp
37546maybe-clean-target-libssp:
37547@if target-libssp
37548maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 37549
a90ef4bf
JM
37550clean-target-libssp:
37551 @: $(MAKE); $(unstage)
37552 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
37553 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37555 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37556 echo "Doing clean in $(TARGET_SUBDIR)/libssp" ; \
37557 for flag in $(EXTRA_TARGET_FLAGS); do \
37558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37559 done; \
37560 (cd $(TARGET_SUBDIR)/libssp && \
37561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37563 "RANLIB=$${RANLIB}" \
37564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37565 clean) \
37566 || exit 1
6aa8ef82 37567
a90ef4bf 37568@endif target-libssp
6aa8ef82 37569
a90ef4bf
JM
37570.PHONY: maybe-distclean-target-libssp distclean-target-libssp
37571maybe-distclean-target-libssp:
37572@if target-libssp
37573maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 37574
a90ef4bf
JM
37575distclean-target-libssp:
37576 @: $(MAKE); $(unstage)
37577 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
37578 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37580 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37581 echo "Doing distclean in $(TARGET_SUBDIR)/libssp" ; \
37582 for flag in $(EXTRA_TARGET_FLAGS); do \
37583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37584 done; \
37585 (cd $(TARGET_SUBDIR)/libssp && \
37586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37588 "RANLIB=$${RANLIB}" \
37589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37590 distclean) \
37591 || exit 1
6aa8ef82 37592
a90ef4bf 37593@endif target-libssp
6aa8ef82 37594
a90ef4bf
JM
37595.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
37596maybe-maintainer-clean-target-libssp:
37597@if target-libssp
37598maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 37599
a90ef4bf
JM
37600maintainer-clean-target-libssp:
37601 @: $(MAKE); $(unstage)
37602 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
37603 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37605 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37606 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp" ; \
37607 for flag in $(EXTRA_TARGET_FLAGS); do \
37608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37609 done; \
37610 (cd $(TARGET_SUBDIR)/libssp && \
37611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37613 "RANLIB=$${RANLIB}" \
37614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37615 maintainer-clean) \
37616 || exit 1
6aa8ef82 37617
a90ef4bf 37618@endif target-libssp
6aa8ef82
DJ
37619
37620
a90ef4bf
JM
37621
37622
37623
37624.PHONY: configure-target-newlib maybe-configure-target-newlib
37625maybe-configure-target-newlib:
37626@if gcc-bootstrap
37627configure-target-newlib: stage_current
37628@endif gcc-bootstrap
37629@if target-newlib
37630maybe-configure-target-newlib: configure-target-newlib
37631configure-target-newlib:
37632 @: $(MAKE); $(unstage)
6aa8ef82
DJ
37633 @r=`${PWD_COMMAND}`; export r; \
37634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
37635 echo "Checking multilib configuration for newlib..."; \
37636 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
37637 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null ; \
37638 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
37639 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
37640 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
37641 else \
37642 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
37643 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
37644 fi; \
6aa8ef82 37645 else \
a90ef4bf 37646 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 37647 fi; \
a90ef4bf
JM
37648 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
37649 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
37650 $(NORMAL_TARGET_EXPORTS) \
37651 echo Configuring in $(TARGET_SUBDIR)/newlib; \
37652 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
37653 case $(srcdir) in \
37654 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37655 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
37656 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37657 esac; \
1b6c0831 37658 module_srcdir=newlib; \
a90ef4bf 37659 rm -f no-such-file || : ; \
1b6c0831
L
37660 CONFIG_SITE=no-such-file $(SHELL) \
37661 $$s/$$module_srcdir/configure \
37662 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 37663 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37664 --target=${target_alias} \
a90ef4bf
JM
37665 || exit 1
37666@endif target-newlib
6aa8ef82
DJ
37667
37668
37669
37670
37671
a90ef4bf
JM
37672.PHONY: all-target-newlib maybe-all-target-newlib
37673maybe-all-target-newlib:
37674@if gcc-bootstrap
37675all-target-newlib: stage_current
37676@endif gcc-bootstrap
37677@if target-newlib
37678TARGET-target-newlib=all
37679maybe-all-target-newlib: all-target-newlib
37680all-target-newlib: configure-target-newlib
37681 @: $(MAKE); $(unstage)
37682 @r=`${PWD_COMMAND}`; export r; \
37683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37684 $(NORMAL_TARGET_EXPORTS) \
37685 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 37686 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
37687 $(TARGET-target-newlib))
37688@endif target-newlib
6aa8ef82 37689
6aa8ef82 37690
6aa8ef82 37691
6aa8ef82 37692
6aa8ef82 37693
a90ef4bf
JM
37694.PHONY: check-target-newlib maybe-check-target-newlib
37695maybe-check-target-newlib:
37696@if target-newlib
37697maybe-check-target-newlib: check-target-newlib
37698
37699check-target-newlib:
6aa8ef82
DJ
37700 @: $(MAKE); $(unstage)
37701 @r=`${PWD_COMMAND}`; export r; \
37702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37703 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37704 (cd $(TARGET_SUBDIR)/newlib && \
37705 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
37706
37707@endif target-newlib
37708
37709.PHONY: install-target-newlib maybe-install-target-newlib
37710maybe-install-target-newlib:
37711@if target-newlib
37712maybe-install-target-newlib: install-target-newlib
37713
37714install-target-newlib: installdirs
37715 @: $(MAKE); $(unstage)
37716 @r=`${PWD_COMMAND}`; export r; \
37717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37718 $(NORMAL_TARGET_EXPORTS) \
37719 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37720 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37721
a90ef4bf 37722@endif target-newlib
6aa8ef82 37723
a90ef4bf
JM
37724.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
37725maybe-install-strip-target-newlib:
37726@if target-newlib
37727maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 37728
a90ef4bf 37729install-strip-target-newlib: installdirs
9b980aa1
RW
37730 @: $(MAKE); $(unstage)
37731 @r=`${PWD_COMMAND}`; export r; \
37732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37733 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37734 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
37735 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37736
a90ef4bf 37737@endif target-newlib
9b980aa1 37738
6aa8ef82
DJ
37739# Other targets (info, dvi, pdf, etc.)
37740
a90ef4bf
JM
37741.PHONY: maybe-info-target-newlib info-target-newlib
37742maybe-info-target-newlib:
37743@if target-newlib
37744maybe-info-target-newlib: info-target-newlib
6aa8ef82 37745
a90ef4bf
JM
37746info-target-newlib: \
37747 configure-target-newlib
6aa8ef82 37748 @: $(MAKE); $(unstage)
a90ef4bf 37749 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37750 r=`${PWD_COMMAND}`; export r; \
37751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37752 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37753 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37754 for flag in $(EXTRA_TARGET_FLAGS); do \
37755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37756 done; \
a90ef4bf 37757 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37760 "RANLIB=$${RANLIB}" \
0c24b341 37761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37762 info) \
37763 || exit 1
37764
a90ef4bf 37765@endif target-newlib
6aa8ef82 37766
a90ef4bf
JM
37767.PHONY: maybe-dvi-target-newlib dvi-target-newlib
37768maybe-dvi-target-newlib:
37769@if target-newlib
37770maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 37771
a90ef4bf
JM
37772dvi-target-newlib: \
37773 configure-target-newlib
6aa8ef82 37774 @: $(MAKE); $(unstage)
a90ef4bf 37775 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37776 r=`${PWD_COMMAND}`; export r; \
37777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37778 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37779 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37780 for flag in $(EXTRA_TARGET_FLAGS); do \
37781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37782 done; \
a90ef4bf 37783 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37786 "RANLIB=$${RANLIB}" \
0c24b341 37787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37788 dvi) \
37789 || exit 1
37790
a90ef4bf 37791@endif target-newlib
6aa8ef82 37792
a90ef4bf
JM
37793.PHONY: maybe-pdf-target-newlib pdf-target-newlib
37794maybe-pdf-target-newlib:
37795@if target-newlib
37796maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 37797
a90ef4bf
JM
37798pdf-target-newlib: \
37799 configure-target-newlib
6aa8ef82 37800 @: $(MAKE); $(unstage)
a90ef4bf 37801 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37802 r=`${PWD_COMMAND}`; export r; \
37803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37804 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37805 echo "Doing pdf in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37806 for flag in $(EXTRA_TARGET_FLAGS); do \
37807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37808 done; \
a90ef4bf 37809 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37812 "RANLIB=$${RANLIB}" \
0c24b341 37813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37814 pdf) \
37815 || exit 1
37816
a90ef4bf 37817@endif target-newlib
6aa8ef82 37818
a90ef4bf
JM
37819.PHONY: maybe-html-target-newlib html-target-newlib
37820maybe-html-target-newlib:
37821@if target-newlib
37822maybe-html-target-newlib: html-target-newlib
6aa8ef82 37823
a90ef4bf
JM
37824html-target-newlib: \
37825 configure-target-newlib
6aa8ef82 37826 @: $(MAKE); $(unstage)
a90ef4bf 37827 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37828 r=`${PWD_COMMAND}`; export r; \
37829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37830 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37831 echo "Doing html in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37832 for flag in $(EXTRA_TARGET_FLAGS); do \
37833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37834 done; \
a90ef4bf 37835 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37838 "RANLIB=$${RANLIB}" \
0c24b341 37839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37840 html) \
37841 || exit 1
37842
a90ef4bf 37843@endif target-newlib
6aa8ef82 37844
a90ef4bf
JM
37845.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
37846maybe-TAGS-target-newlib:
37847@if target-newlib
37848maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 37849
a90ef4bf
JM
37850TAGS-target-newlib: \
37851 configure-target-newlib
6aa8ef82 37852 @: $(MAKE); $(unstage)
a90ef4bf 37853 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37854 r=`${PWD_COMMAND}`; export r; \
37855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37856 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37857 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37858 for flag in $(EXTRA_TARGET_FLAGS); do \
37859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37860 done; \
a90ef4bf 37861 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37864 "RANLIB=$${RANLIB}" \
0c24b341 37865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37866 TAGS) \
37867 || exit 1
37868
a90ef4bf 37869@endif target-newlib
6aa8ef82 37870
a90ef4bf
JM
37871.PHONY: maybe-install-info-target-newlib install-info-target-newlib
37872maybe-install-info-target-newlib:
37873@if target-newlib
37874maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 37875
a90ef4bf
JM
37876install-info-target-newlib: \
37877 configure-target-newlib \
37878 info-target-newlib
6aa8ef82 37879 @: $(MAKE); $(unstage)
a90ef4bf 37880 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37881 r=`${PWD_COMMAND}`; export r; \
37882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37883 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37884 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37885 for flag in $(EXTRA_TARGET_FLAGS); do \
37886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37887 done; \
a90ef4bf 37888 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37891 "RANLIB=$${RANLIB}" \
0c24b341 37892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37893 install-info) \
37894 || exit 1
37895
a90ef4bf 37896@endif target-newlib
6aa8ef82 37897
a90ef4bf
JM
37898.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
37899maybe-install-pdf-target-newlib:
37900@if target-newlib
37901maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 37902
a90ef4bf
JM
37903install-pdf-target-newlib: \
37904 configure-target-newlib \
37905 pdf-target-newlib
a3ca38d2 37906 @: $(MAKE); $(unstage)
a90ef4bf 37907 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
a3ca38d2
DD
37908 r=`${PWD_COMMAND}`; export r; \
37909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37910 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37911 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib" ; \
a3ca38d2
DD
37912 for flag in $(EXTRA_TARGET_FLAGS); do \
37913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37914 done; \
a90ef4bf 37915 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
37916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37918 "RANLIB=$${RANLIB}" \
0c24b341 37919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
37920 install-pdf) \
37921 || exit 1
37922
a90ef4bf 37923@endif target-newlib
a3ca38d2 37924
a90ef4bf
JM
37925.PHONY: maybe-install-html-target-newlib install-html-target-newlib
37926maybe-install-html-target-newlib:
37927@if target-newlib
37928maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 37929
a90ef4bf
JM
37930install-html-target-newlib: \
37931 configure-target-newlib \
37932 html-target-newlib
6aa8ef82 37933 @: $(MAKE); $(unstage)
a90ef4bf 37934 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37935 r=`${PWD_COMMAND}`; export r; \
37936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37937 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37938 echo "Doing install-html in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37939 for flag in $(EXTRA_TARGET_FLAGS); do \
37940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37941 done; \
a90ef4bf 37942 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37945 "RANLIB=$${RANLIB}" \
0c24b341 37946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37947 install-html) \
37948 || exit 1
37949
a90ef4bf 37950@endif target-newlib
6aa8ef82 37951
a90ef4bf
JM
37952.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
37953maybe-installcheck-target-newlib:
37954@if target-newlib
37955maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 37956
a90ef4bf
JM
37957installcheck-target-newlib: \
37958 configure-target-newlib
6aa8ef82 37959 @: $(MAKE); $(unstage)
a90ef4bf 37960 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37961 r=`${PWD_COMMAND}`; export r; \
37962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37963 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37964 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37965 for flag in $(EXTRA_TARGET_FLAGS); do \
37966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37967 done; \
a90ef4bf 37968 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37971 "RANLIB=$${RANLIB}" \
0c24b341 37972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37973 installcheck) \
37974 || exit 1
37975
a90ef4bf 37976@endif target-newlib
6aa8ef82 37977
a90ef4bf
JM
37978.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
37979maybe-mostlyclean-target-newlib:
37980@if target-newlib
37981maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 37982
a90ef4bf 37983mostlyclean-target-newlib:
6aa8ef82 37984 @: $(MAKE); $(unstage)
a90ef4bf 37985 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
37986 r=`${PWD_COMMAND}`; export r; \
37987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37988 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37989 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
37990 for flag in $(EXTRA_TARGET_FLAGS); do \
37991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37992 done; \
a90ef4bf 37993 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
37994 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37995 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37996 "RANLIB=$${RANLIB}" \
0c24b341 37997 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
37998 mostlyclean) \
37999 || exit 1
38000
a90ef4bf 38001@endif target-newlib
6aa8ef82 38002
a90ef4bf
JM
38003.PHONY: maybe-clean-target-newlib clean-target-newlib
38004maybe-clean-target-newlib:
38005@if target-newlib
38006maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 38007
a90ef4bf 38008clean-target-newlib:
6aa8ef82 38009 @: $(MAKE); $(unstage)
a90ef4bf 38010 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
38011 r=`${PWD_COMMAND}`; export r; \
38012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38013 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38014 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
38015 for flag in $(EXTRA_TARGET_FLAGS); do \
38016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38017 done; \
a90ef4bf 38018 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38021 "RANLIB=$${RANLIB}" \
0c24b341 38022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38023 clean) \
38024 || exit 1
38025
a90ef4bf 38026@endif target-newlib
6aa8ef82 38027
a90ef4bf
JM
38028.PHONY: maybe-distclean-target-newlib distclean-target-newlib
38029maybe-distclean-target-newlib:
38030@if target-newlib
38031maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 38032
a90ef4bf 38033distclean-target-newlib:
6aa8ef82 38034 @: $(MAKE); $(unstage)
a90ef4bf 38035 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
38036 r=`${PWD_COMMAND}`; export r; \
38037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38038 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38039 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
38040 for flag in $(EXTRA_TARGET_FLAGS); do \
38041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38042 done; \
a90ef4bf 38043 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38046 "RANLIB=$${RANLIB}" \
0c24b341 38047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38048 distclean) \
38049 || exit 1
38050
a90ef4bf 38051@endif target-newlib
6aa8ef82 38052
a90ef4bf
JM
38053.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
38054maybe-maintainer-clean-target-newlib:
38055@if target-newlib
38056maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 38057
a90ef4bf 38058maintainer-clean-target-newlib:
6aa8ef82 38059 @: $(MAKE); $(unstage)
a90ef4bf 38060 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
6aa8ef82
DJ
38061 r=`${PWD_COMMAND}`; export r; \
38062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38063 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38064 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
6aa8ef82
DJ
38065 for flag in $(EXTRA_TARGET_FLAGS); do \
38066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38067 done; \
a90ef4bf 38068 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38071 "RANLIB=$${RANLIB}" \
0c24b341 38072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38073 maintainer-clean) \
38074 || exit 1
38075
a90ef4bf 38076@endif target-newlib
6aa8ef82
DJ
38077
38078
38079
38080
38081
a90ef4bf
JM
38082.PHONY: configure-target-libgcc maybe-configure-target-libgcc
38083maybe-configure-target-libgcc:
e552509b 38084@if gcc-bootstrap
a90ef4bf 38085configure-target-libgcc: stage_current
e552509b 38086@endif gcc-bootstrap
a90ef4bf
JM
38087@if target-libgcc
38088maybe-configure-target-libgcc: configure-target-libgcc
38089configure-target-libgcc:
e552509b
ILT
38090 @r=`${PWD_COMMAND}`; export r; \
38091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38092 echo "Checking multilib configuration for libgcc..."; \
38093 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38094 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38095 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38096 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38097 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 38098 else \
a90ef4bf
JM
38099 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38100 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
38101 fi; \
38102 else \
a90ef4bf 38103 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 38104 fi; \
a90ef4bf
JM
38105 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
38106 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
e552509b 38107 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38108 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
38109 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
38110 case $(srcdir) in \
38111 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 38112 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
38113 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38114 esac; \
1b6c0831 38115 module_srcdir=libgcc; \
e552509b 38116 rm -f no-such-file || : ; \
1b6c0831
L
38117 CONFIG_SITE=no-such-file $(SHELL) \
38118 $$s/$$module_srcdir/configure \
38119 --srcdir=$${topdir}/$$module_srcdir \
e552509b 38120 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38121 --target=${target_alias} \
e552509b 38122 || exit 1
a90ef4bf 38123@endif target-libgcc
e552509b
ILT
38124
38125
e552509b 38126
a90ef4bf
JM
38127.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
38128maybe-configure-stage1-target-libgcc:
38129@if target-libgcc-bootstrap
38130maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
38131configure-stage1-target-libgcc:
38132 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38133 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
38134 @r=`${PWD_COMMAND}`; export r; \
38135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38136 TFLAGS="$(STAGE1_TFLAGS)"; \
38137 echo "Checking multilib configuration for libgcc..."; \
38138 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38139 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38140 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38141 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38142 else \
38143 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38144 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38145 fi; \
38146 else \
38147 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38148 fi; \
38149 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38150 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38151 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38152 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38153 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38154 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc ; \
38155 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38156 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38157 case $(srcdir) in \
38158 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38159 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38160 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38161 esac; \
1b6c0831
L
38162 module_srcdir=libgcc; \
38163 $(SHELL) $$s/$$module_srcdir/configure \
38164 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38165 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38166 --target=${target_alias} \
38167 \
a90ef4bf
JM
38168 $(STAGE1_CONFIGURE_FLAGS)
38169@endif target-libgcc-bootstrap
e552509b 38170
a90ef4bf
JM
38171.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
38172maybe-configure-stage2-target-libgcc:
38173@if target-libgcc-bootstrap
38174maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
38175configure-stage2-target-libgcc:
38176 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38177 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
38178 @r=`${PWD_COMMAND}`; export r; \
38179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38180 TFLAGS="$(STAGE2_TFLAGS)"; \
38181 echo "Checking multilib configuration for libgcc..."; \
38182 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38183 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38184 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38185 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38186 else \
38187 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38188 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38189 fi; \
38190 else \
38191 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38192 fi; \
38193 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38194 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38195 \
38196 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38197 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38198 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38199 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc ; \
38200 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38201 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38202 case $(srcdir) in \
38203 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38204 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38205 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38206 esac; \
1b6c0831
L
38207 module_srcdir=libgcc; \
38208 $(SHELL) $$s/$$module_srcdir/configure \
38209 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38210 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38211 --target=${target_alias} \
38212 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38213 $(STAGE2_CONFIGURE_FLAGS)
38214@endif target-libgcc-bootstrap
9b980aa1 38215
a90ef4bf
JM
38216.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
38217maybe-configure-stage3-target-libgcc:
38218@if target-libgcc-bootstrap
38219maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
38220configure-stage3-target-libgcc:
38221 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38222 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
38223 @r=`${PWD_COMMAND}`; export r; \
38224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38225 TFLAGS="$(STAGE3_TFLAGS)"; \
38226 echo "Checking multilib configuration for libgcc..."; \
38227 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38228 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38229 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38230 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38231 else \
38232 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38233 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38234 fi; \
38235 else \
38236 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38237 fi; \
38238 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 38239 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38240 \
38241 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38242 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38243 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38244 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc ; \
38245 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38246 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38247 case $(srcdir) in \
38248 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38249 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38250 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38251 esac; \
1b6c0831
L
38252 module_srcdir=libgcc; \
38253 $(SHELL) $$s/$$module_srcdir/configure \
38254 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38255 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38256 --target=${target_alias} \
38257 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38258 $(STAGE3_CONFIGURE_FLAGS)
38259@endif target-libgcc-bootstrap
e552509b 38260
a90ef4bf
JM
38261.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
38262maybe-configure-stage4-target-libgcc:
38263@if target-libgcc-bootstrap
38264maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
38265configure-stage4-target-libgcc:
38266 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38267 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38268 @r=`${PWD_COMMAND}`; export r; \
e552509b 38269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38270 TFLAGS="$(STAGE4_TFLAGS)"; \
38271 echo "Checking multilib configuration for libgcc..."; \
38272 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38273 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38274 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38275 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38276 else \
38277 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38278 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38279 fi; \
38280 else \
38281 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38282 fi; \
38283 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38284 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38285 \
38286 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38287 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38288 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38289 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc ; \
38290 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38291 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38292 case $(srcdir) in \
38293 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38294 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38295 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38296 esac; \
1b6c0831
L
38297 module_srcdir=libgcc; \
38298 $(SHELL) $$s/$$module_srcdir/configure \
38299 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38300 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38301 --target=${target_alias} \
38302 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38303 $(STAGE4_CONFIGURE_FLAGS)
38304@endif target-libgcc-bootstrap
38305
38306.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
38307maybe-configure-stageprofile-target-libgcc:
38308@if target-libgcc-bootstrap
38309maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
38310configure-stageprofile-target-libgcc:
38311 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38312 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38313 @r=`${PWD_COMMAND}`; export r; \
e552509b 38314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38315 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38316 echo "Checking multilib configuration for libgcc..."; \
38317 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38318 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38319 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38320 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38321 else \
38322 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38323 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38324 fi; \
38325 else \
38326 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38327 fi; \
38328 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38329 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38330 \
38331 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38332 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38333 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38334 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc ; \
38335 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38336 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38337 case $(srcdir) in \
38338 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38339 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38340 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38341 esac; \
1b6c0831
L
38342 module_srcdir=libgcc; \
38343 $(SHELL) $$s/$$module_srcdir/configure \
38344 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38345 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38346 --target=${target_alias} \
38347 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38348 $(STAGEprofile_CONFIGURE_FLAGS)
38349@endif target-libgcc-bootstrap
e552509b 38350
a90ef4bf
JM
38351.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
38352maybe-configure-stagefeedback-target-libgcc:
38353@if target-libgcc-bootstrap
38354maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
38355configure-stagefeedback-target-libgcc:
38356 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38357 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38358 @r=`${PWD_COMMAND}`; export r; \
e552509b 38359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38360 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38361 echo "Checking multilib configuration for libgcc..."; \
38362 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null ; \
38363 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38364 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38365 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38366 else \
38367 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38368 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38369 fi; \
38370 else \
38371 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38372 fi; \
38373 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38374 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38375 \
38376 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38377 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38378 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
38379 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc ; \
38380 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc ; \
38381 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38382 case $(srcdir) in \
38383 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38384 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38385 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38386 esac; \
1b6c0831
L
38387 module_srcdir=libgcc; \
38388 $(SHELL) $$s/$$module_srcdir/configure \
38389 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38390 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38391 --target=${target_alias} \
38392 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38393 $(STAGEfeedback_CONFIGURE_FLAGS)
38394@endif target-libgcc-bootstrap
e552509b 38395
e552509b 38396
e552509b 38397
e552509b 38398
e552509b 38399
a90ef4bf
JM
38400.PHONY: all-target-libgcc maybe-all-target-libgcc
38401maybe-all-target-libgcc:
38402@if gcc-bootstrap
38403all-target-libgcc: stage_current
38404@endif gcc-bootstrap
38405@if target-libgcc
38406TARGET-target-libgcc=all
38407maybe-all-target-libgcc: all-target-libgcc
38408all-target-libgcc: configure-target-libgcc
38409 @r=`${PWD_COMMAND}`; export r; \
e552509b 38410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38411 $(NORMAL_TARGET_EXPORTS) \
38412 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38413 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
38414 $(TARGET-target-libgcc))
38415@endif target-libgcc
e552509b 38416
e552509b 38417
e552509b 38418
a90ef4bf
JM
38419.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
38420.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
38421maybe-all-stage1-target-libgcc:
38422maybe-clean-stage1-target-libgcc:
38423@if target-libgcc-bootstrap
38424maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
38425all-stage1: all-stage1-target-libgcc
38426TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
38427all-stage1-target-libgcc: configure-stage1-target-libgcc
38428 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38429 @r=`${PWD_COMMAND}`; export r; \
e552509b 38430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38431 TFLAGS="$(STAGE1_TFLAGS)"; \
38432 $(NORMAL_TARGET_EXPORTS) \
38433 cd $(TARGET_SUBDIR)/libgcc && \
38434 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38435 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38436 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38437 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38438 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38439 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38440 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
38441 $(EXTRA_TARGET_FLAGS) \
38442 \
a90ef4bf
JM
38443 TFLAGS="$(STAGE1_TFLAGS)" \
38444 $(TARGET-stage1-target-libgcc)
e552509b 38445
a90ef4bf
JM
38446maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
38447clean-stage1: clean-stage1-target-libgcc
38448clean-stage1-target-libgcc:
38449 @if [ $(current_stage) = stage1 ]; then \
38450 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38451 else \
38452 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
38453 $(MAKE) stage1-start; \
38454 fi; \
38455 cd $(TARGET_SUBDIR)/libgcc && \
38456 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 38457 clean
a90ef4bf 38458@endif target-libgcc-bootstrap
e552509b 38459
e552509b 38460
a90ef4bf
JM
38461.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
38462.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
38463maybe-all-stage2-target-libgcc:
38464maybe-clean-stage2-target-libgcc:
38465@if target-libgcc-bootstrap
38466maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
38467all-stage2: all-stage2-target-libgcc
38468TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
38469all-stage2-target-libgcc: configure-stage2-target-libgcc
38470 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38471 @r=`${PWD_COMMAND}`; export r; \
e552509b 38472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38473 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 38474 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38475 \
38476 cd $(TARGET_SUBDIR)/libgcc && \
38477 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38478 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38479 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38480 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38481 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38482 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38483 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38484 $(EXTRA_TARGET_FLAGS) \
38485 TFLAGS="$(STAGE2_TFLAGS)" \
38486 $(TARGET-stage2-target-libgcc)
e552509b 38487
a90ef4bf
JM
38488maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
38489clean-stage2: clean-stage2-target-libgcc
38490clean-stage2-target-libgcc:
38491 @if [ $(current_stage) = stage2 ]; then \
38492 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38493 else \
38494 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
38495 $(MAKE) stage2-start; \
38496 fi; \
38497 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38498 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38499@endif target-libgcc-bootstrap
e552509b 38500
e552509b 38501
a90ef4bf
JM
38502.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
38503.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
38504maybe-all-stage3-target-libgcc:
38505maybe-clean-stage3-target-libgcc:
38506@if target-libgcc-bootstrap
38507maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
38508all-stage3: all-stage3-target-libgcc
38509TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
38510all-stage3-target-libgcc: configure-stage3-target-libgcc
38511 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38512 @r=`${PWD_COMMAND}`; export r; \
e552509b 38513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38514 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 38515 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38516 \
38517 cd $(TARGET_SUBDIR)/libgcc && \
38518 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38519 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38520 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38521 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38522 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38523 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38524 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38525 $(EXTRA_TARGET_FLAGS) \
38526 TFLAGS="$(STAGE3_TFLAGS)" \
38527 $(TARGET-stage3-target-libgcc)
e552509b 38528
a90ef4bf
JM
38529maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
38530clean-stage3: clean-stage3-target-libgcc
38531clean-stage3-target-libgcc:
38532 @if [ $(current_stage) = stage3 ]; then \
38533 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38534 else \
38535 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
38536 $(MAKE) stage3-start; \
38537 fi; \
38538 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38539 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38540@endif target-libgcc-bootstrap
e552509b 38541
e552509b 38542
a90ef4bf
JM
38543.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
38544.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
38545maybe-all-stage4-target-libgcc:
38546maybe-clean-stage4-target-libgcc:
38547@if target-libgcc-bootstrap
38548maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
38549all-stage4: all-stage4-target-libgcc
38550TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
38551all-stage4-target-libgcc: configure-stage4-target-libgcc
38552 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38553 @r=`${PWD_COMMAND}`; export r; \
e552509b 38554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38555 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 38556 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38557 \
38558 cd $(TARGET_SUBDIR)/libgcc && \
38559 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38560 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38561 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38562 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38563 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38564 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38565 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38566 $(EXTRA_TARGET_FLAGS) \
38567 TFLAGS="$(STAGE4_TFLAGS)" \
38568 $(TARGET-stage4-target-libgcc)
e552509b 38569
a90ef4bf
JM
38570maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
38571clean-stage4: clean-stage4-target-libgcc
38572clean-stage4-target-libgcc:
38573 @if [ $(current_stage) = stage4 ]; then \
38574 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38575 else \
38576 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
38577 $(MAKE) stage4-start; \
38578 fi; \
38579 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38580 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38581@endif target-libgcc-bootstrap
e552509b
ILT
38582
38583
a90ef4bf
JM
38584.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
38585.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
38586maybe-all-stageprofile-target-libgcc:
38587maybe-clean-stageprofile-target-libgcc:
38588@if target-libgcc-bootstrap
38589maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
38590all-stageprofile: all-stageprofile-target-libgcc
38591TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
38592all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
38593 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
38594 @r=`${PWD_COMMAND}`; export r; \
38595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38596 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38597 $(NORMAL_TARGET_EXPORTS) \
38598 \
38599 cd $(TARGET_SUBDIR)/libgcc && \
38600 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38601 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38602 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38603 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38604 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38605 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38606 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38607 $(EXTRA_TARGET_FLAGS) \
38608 TFLAGS="$(STAGEprofile_TFLAGS)" \
38609 $(TARGET-stageprofile-target-libgcc)
38610
38611maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
38612clean-stageprofile: clean-stageprofile-target-libgcc
38613clean-stageprofile-target-libgcc:
38614 @if [ $(current_stage) = stageprofile ]; then \
38615 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 38616 else \
a90ef4bf
JM
38617 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
38618 $(MAKE) stageprofile-start; \
c52c6897 38619 fi; \
a90ef4bf 38620 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38621 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38622@endif target-libgcc-bootstrap
d545f33b
PB
38623
38624
a90ef4bf
JM
38625.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
38626.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
38627maybe-all-stagefeedback-target-libgcc:
38628maybe-clean-stagefeedback-target-libgcc:
38629@if target-libgcc-bootstrap
38630maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
38631all-stagefeedback: all-stagefeedback-target-libgcc
38632TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
38633all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
38634 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
38635 @r=`${PWD_COMMAND}`; export r; \
38636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38637 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38638 $(NORMAL_TARGET_EXPORTS) \
38639 \
38640 cd $(TARGET_SUBDIR)/libgcc && \
38641 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38642 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38643 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38644 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38645 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38646 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38647 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38648 $(EXTRA_TARGET_FLAGS) \
38649 TFLAGS="$(STAGEfeedback_TFLAGS)" \
38650 $(TARGET-stagefeedback-target-libgcc)
38651
38652maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
38653clean-stagefeedback: clean-stagefeedback-target-libgcc
38654clean-stagefeedback-target-libgcc:
38655 @if [ $(current_stage) = stagefeedback ]; then \
38656 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38657 else \
38658 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
38659 $(MAKE) stagefeedback-start; \
38660 fi; \
38661 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38662 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38663@endif target-libgcc-bootstrap
4b1cb4fe 38664
a7254363
PB
38665
38666
d545f33b
PB
38667
38668
4b1cb4fe 38669
a90ef4bf
JM
38670.PHONY: check-target-libgcc maybe-check-target-libgcc
38671maybe-check-target-libgcc:
38672@if target-libgcc
38673maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 38674
a90ef4bf
JM
38675# Dummy target for uncheckable module.
38676check-target-libgcc:
4b1cb4fe 38677
a90ef4bf 38678@endif target-libgcc
4b1cb4fe 38679
a90ef4bf
JM
38680.PHONY: install-target-libgcc maybe-install-target-libgcc
38681maybe-install-target-libgcc:
38682@if target-libgcc
38683maybe-install-target-libgcc: install-target-libgcc
38684
38685install-target-libgcc: installdirs
0aed8855 38686 @: $(MAKE); $(unstage)
4b1cb4fe
DD
38687 @r=`${PWD_COMMAND}`; export r; \
38688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38689 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38690 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 38691 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 38692
a90ef4bf 38693@endif target-libgcc
4b1cb4fe 38694
a90ef4bf
JM
38695.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
38696maybe-install-strip-target-libgcc:
38697@if target-libgcc
38698maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 38699
a90ef4bf 38700install-strip-target-libgcc: installdirs
9b980aa1
RW
38701 @: $(MAKE); $(unstage)
38702 @r=`${PWD_COMMAND}`; export r; \
38703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38704 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38705 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
38706 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38707
a90ef4bf 38708@endif target-libgcc
9b980aa1 38709
56a8fe78 38710# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 38711
a90ef4bf
JM
38712.PHONY: maybe-info-target-libgcc info-target-libgcc
38713maybe-info-target-libgcc:
38714@if target-libgcc
38715maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 38716
a90ef4bf
JM
38717info-target-libgcc: \
38718 configure-target-libgcc
0aed8855 38719 @: $(MAKE); $(unstage)
a90ef4bf 38720 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38721 r=`${PWD_COMMAND}`; export r; \
38722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38723 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38724 echo "Doing info in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38725 for flag in $(EXTRA_TARGET_FLAGS); do \
38726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38727 done; \
a90ef4bf 38728 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38731 "RANLIB=$${RANLIB}" \
0c24b341 38732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38733 info) \
4b1cb4fe
DD
38734 || exit 1
38735
a90ef4bf 38736@endif target-libgcc
4b1cb4fe 38737
a90ef4bf
JM
38738.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
38739maybe-dvi-target-libgcc:
38740@if target-libgcc
38741maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 38742
a90ef4bf
JM
38743dvi-target-libgcc: \
38744 configure-target-libgcc
0aed8855 38745 @: $(MAKE); $(unstage)
a90ef4bf 38746 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38747 r=`${PWD_COMMAND}`; export r; \
38748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38749 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38750 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38751 for flag in $(EXTRA_TARGET_FLAGS); do \
38752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38753 done; \
a90ef4bf 38754 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38757 "RANLIB=$${RANLIB}" \
0c24b341 38758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38759 dvi) \
4b1cb4fe
DD
38760 || exit 1
38761
a90ef4bf 38762@endif target-libgcc
4b1cb4fe 38763
a90ef4bf
JM
38764.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
38765maybe-pdf-target-libgcc:
38766@if target-libgcc
38767maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 38768
a90ef4bf
JM
38769pdf-target-libgcc: \
38770 configure-target-libgcc
56a8fe78 38771 @: $(MAKE); $(unstage)
a90ef4bf 38772 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
56a8fe78
DD
38773 r=`${PWD_COMMAND}`; export r; \
38774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38775 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38776 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc" ; \
56a8fe78
DD
38777 for flag in $(EXTRA_TARGET_FLAGS); do \
38778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38779 done; \
a90ef4bf 38780 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
38781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38783 "RANLIB=$${RANLIB}" \
0c24b341 38784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
38785 pdf) \
38786 || exit 1
38787
a90ef4bf 38788@endif target-libgcc
56a8fe78 38789
a90ef4bf
JM
38790.PHONY: maybe-html-target-libgcc html-target-libgcc
38791maybe-html-target-libgcc:
38792@if target-libgcc
38793maybe-html-target-libgcc: html-target-libgcc
6d389afc 38794
a90ef4bf
JM
38795html-target-libgcc: \
38796 configure-target-libgcc
0aed8855 38797 @: $(MAKE); $(unstage)
a90ef4bf 38798 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
6d389afc
MS
38799 r=`${PWD_COMMAND}`; export r; \
38800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 38801 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38802 echo "Doing html in $(TARGET_SUBDIR)/libgcc" ; \
6d389afc
MS
38803 for flag in $(EXTRA_TARGET_FLAGS); do \
38804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38805 done; \
a90ef4bf 38806 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
38807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38809 "RANLIB=$${RANLIB}" \
0c24b341 38810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
38811 html) \
38812 || exit 1
38813
a90ef4bf 38814@endif target-libgcc
6d389afc 38815
a90ef4bf
JM
38816.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
38817maybe-TAGS-target-libgcc:
38818@if target-libgcc
38819maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 38820
a90ef4bf
JM
38821TAGS-target-libgcc: \
38822 configure-target-libgcc
0aed8855 38823 @: $(MAKE); $(unstage)
a90ef4bf 38824 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38825 r=`${PWD_COMMAND}`; export r; \
38826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38827 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38828 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38829 for flag in $(EXTRA_TARGET_FLAGS); do \
38830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38831 done; \
a90ef4bf 38832 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38835 "RANLIB=$${RANLIB}" \
0c24b341 38836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38837 TAGS) \
4b1cb4fe
DD
38838 || exit 1
38839
a90ef4bf 38840@endif target-libgcc
4b1cb4fe 38841
a90ef4bf
JM
38842.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
38843maybe-install-info-target-libgcc:
38844@if target-libgcc
38845maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 38846
a90ef4bf
JM
38847install-info-target-libgcc: \
38848 configure-target-libgcc \
38849 info-target-libgcc
0aed8855 38850 @: $(MAKE); $(unstage)
a90ef4bf 38851 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38852 r=`${PWD_COMMAND}`; export r; \
38853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38854 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38855 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38856 for flag in $(EXTRA_TARGET_FLAGS); do \
38857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38858 done; \
a90ef4bf 38859 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38862 "RANLIB=$${RANLIB}" \
0c24b341 38863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38864 install-info) \
4b1cb4fe
DD
38865 || exit 1
38866
a90ef4bf 38867@endif target-libgcc
4b1cb4fe 38868
a90ef4bf
JM
38869.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
38870maybe-install-pdf-target-libgcc:
38871@if target-libgcc
38872maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 38873
a90ef4bf
JM
38874install-pdf-target-libgcc: \
38875 configure-target-libgcc \
38876 pdf-target-libgcc
a3ca38d2 38877 @: $(MAKE); $(unstage)
a90ef4bf 38878 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
a3ca38d2
DD
38879 r=`${PWD_COMMAND}`; export r; \
38880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38881 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38882 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc" ; \
a3ca38d2
DD
38883 for flag in $(EXTRA_TARGET_FLAGS); do \
38884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38885 done; \
a90ef4bf 38886 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
38887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38889 "RANLIB=$${RANLIB}" \
0c24b341 38890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
38891 install-pdf) \
38892 || exit 1
38893
a90ef4bf 38894@endif target-libgcc
a3ca38d2 38895
a90ef4bf
JM
38896.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
38897maybe-install-html-target-libgcc:
38898@if target-libgcc
38899maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 38900
a90ef4bf
JM
38901install-html-target-libgcc: \
38902 configure-target-libgcc \
38903 html-target-libgcc
108a6f8e 38904 @: $(MAKE); $(unstage)
a90ef4bf 38905 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
108a6f8e
CD
38906 r=`${PWD_COMMAND}`; export r; \
38907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38908 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38909 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc" ; \
108a6f8e
CD
38910 for flag in $(EXTRA_TARGET_FLAGS); do \
38911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38912 done; \
a90ef4bf 38913 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
38914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38916 "RANLIB=$${RANLIB}" \
0c24b341 38917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
38918 install-html) \
38919 || exit 1
38920
a90ef4bf 38921@endif target-libgcc
108a6f8e 38922
a90ef4bf
JM
38923.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
38924maybe-installcheck-target-libgcc:
38925@if target-libgcc
38926maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 38927
a90ef4bf
JM
38928installcheck-target-libgcc: \
38929 configure-target-libgcc
0aed8855 38930 @: $(MAKE); $(unstage)
a90ef4bf 38931 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38932 r=`${PWD_COMMAND}`; export r; \
38933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38934 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38935 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38936 for flag in $(EXTRA_TARGET_FLAGS); do \
38937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38938 done; \
a90ef4bf 38939 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38942 "RANLIB=$${RANLIB}" \
0c24b341 38943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38944 installcheck) \
4b1cb4fe
DD
38945 || exit 1
38946
a90ef4bf 38947@endif target-libgcc
4b1cb4fe 38948
a90ef4bf
JM
38949.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
38950maybe-mostlyclean-target-libgcc:
38951@if target-libgcc
38952maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 38953
a90ef4bf 38954mostlyclean-target-libgcc:
0aed8855 38955 @: $(MAKE); $(unstage)
a90ef4bf 38956 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38957 r=`${PWD_COMMAND}`; export r; \
38958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38959 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38960 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38961 for flag in $(EXTRA_TARGET_FLAGS); do \
38962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38963 done; \
a90ef4bf 38964 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38967 "RANLIB=$${RANLIB}" \
0c24b341 38968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38969 mostlyclean) \
4b1cb4fe
DD
38970 || exit 1
38971
a90ef4bf 38972@endif target-libgcc
4b1cb4fe 38973
a90ef4bf
JM
38974.PHONY: maybe-clean-target-libgcc clean-target-libgcc
38975maybe-clean-target-libgcc:
38976@if target-libgcc
38977maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 38978
a90ef4bf 38979clean-target-libgcc:
0aed8855 38980 @: $(MAKE); $(unstage)
a90ef4bf 38981 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
38982 r=`${PWD_COMMAND}`; export r; \
38983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38984 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38985 echo "Doing clean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
38986 for flag in $(EXTRA_TARGET_FLAGS); do \
38987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38988 done; \
a90ef4bf 38989 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
38990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38992 "RANLIB=$${RANLIB}" \
0c24b341 38993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38994 clean) \
4b1cb4fe
DD
38995 || exit 1
38996
a90ef4bf 38997@endif target-libgcc
4b1cb4fe 38998
a90ef4bf
JM
38999.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
39000maybe-distclean-target-libgcc:
39001@if target-libgcc
39002maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 39003
a90ef4bf 39004distclean-target-libgcc:
0aed8855 39005 @: $(MAKE); $(unstage)
a90ef4bf 39006 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
39007 r=`${PWD_COMMAND}`; export r; \
39008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39009 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39010 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
39011 for flag in $(EXTRA_TARGET_FLAGS); do \
39012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39013 done; \
a90ef4bf 39014 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39017 "RANLIB=$${RANLIB}" \
0c24b341 39018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39019 distclean) \
4b1cb4fe
DD
39020 || exit 1
39021
a90ef4bf 39022@endif target-libgcc
4b1cb4fe 39023
a90ef4bf
JM
39024.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
39025maybe-maintainer-clean-target-libgcc:
39026@if target-libgcc
39027maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 39028
a90ef4bf 39029maintainer-clean-target-libgcc:
0aed8855 39030 @: $(MAKE); $(unstage)
a90ef4bf 39031 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0 ; \
4b1cb4fe
DD
39032 r=`${PWD_COMMAND}`; export r; \
39033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39034 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39035 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc" ; \
4b1cb4fe
DD
39036 for flag in $(EXTRA_TARGET_FLAGS); do \
39037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39038 done; \
a90ef4bf 39039 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39042 "RANLIB=$${RANLIB}" \
0c24b341 39043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39044 maintainer-clean) \
4b1cb4fe
DD
39045 || exit 1
39046
a90ef4bf 39047@endif target-libgcc
4b1cb4fe
DD
39048
39049
3866be5d 39050
a7254363 39051
e90269c8 39052
2bf680c4
ILT
39053.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
39054maybe-configure-target-libbacktrace:
39055@if gcc-bootstrap
39056configure-target-libbacktrace: stage_current
39057@endif gcc-bootstrap
39058@if target-libbacktrace
39059maybe-configure-target-libbacktrace: configure-target-libbacktrace
39060configure-target-libbacktrace:
39061 @: $(MAKE); $(unstage)
39062 @r=`${PWD_COMMAND}`; export r; \
39063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39064 echo "Checking multilib configuration for libbacktrace..."; \
39065 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace ; \
39066 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null ; \
39067 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
39068 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
39069 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
39070 else \
39071 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
39072 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
39073 fi; \
39074 else \
39075 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
39076 fi; \
39077 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
39078 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace ; \
39079 $(NORMAL_TARGET_EXPORTS) \
39080 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
39081 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
39082 case $(srcdir) in \
39083 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39084 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
39085 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39086 esac; \
1b6c0831 39087 module_srcdir=libbacktrace; \
2bf680c4 39088 rm -f no-such-file || : ; \
1b6c0831
L
39089 CONFIG_SITE=no-such-file $(SHELL) \
39090 $$s/$$module_srcdir/configure \
39091 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 39092 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39093 --target=${target_alias} \
2bf680c4
ILT
39094 || exit 1
39095@endif target-libbacktrace
39096
39097
39098
39099
39100
39101.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
39102maybe-all-target-libbacktrace:
39103@if gcc-bootstrap
39104all-target-libbacktrace: stage_current
39105@endif gcc-bootstrap
39106@if target-libbacktrace
39107TARGET-target-libbacktrace=all
39108maybe-all-target-libbacktrace: all-target-libbacktrace
39109all-target-libbacktrace: configure-target-libbacktrace
39110 @: $(MAKE); $(unstage)
39111 @r=`${PWD_COMMAND}`; export r; \
39112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39113 $(NORMAL_TARGET_EXPORTS) \
39114 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 39115 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
39116 $(TARGET-target-libbacktrace))
39117@endif target-libbacktrace
39118
39119
39120
39121
39122
39123.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
39124maybe-check-target-libbacktrace:
39125@if target-libbacktrace
39126maybe-check-target-libbacktrace: check-target-libbacktrace
39127
39128check-target-libbacktrace:
39129 @: $(MAKE); $(unstage)
39130 @r=`${PWD_COMMAND}`; export r; \
39131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39132 $(NORMAL_TARGET_EXPORTS) \
39133 (cd $(TARGET_SUBDIR)/libbacktrace && \
39134 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39135
39136@endif target-libbacktrace
39137
39138.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
39139maybe-install-target-libbacktrace:
39140@if target-libbacktrace
39141maybe-install-target-libbacktrace: install-target-libbacktrace
39142
39143install-target-libbacktrace: installdirs
39144 @: $(MAKE); $(unstage)
39145 @r=`${PWD_COMMAND}`; export r; \
39146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39147 $(NORMAL_TARGET_EXPORTS) \
39148 (cd $(TARGET_SUBDIR)/libbacktrace && \
39149 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39150
39151@endif target-libbacktrace
39152
39153.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
39154maybe-install-strip-target-libbacktrace:
39155@if target-libbacktrace
39156maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
39157
39158install-strip-target-libbacktrace: installdirs
39159 @: $(MAKE); $(unstage)
39160 @r=`${PWD_COMMAND}`; export r; \
39161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39162 $(NORMAL_TARGET_EXPORTS) \
39163 (cd $(TARGET_SUBDIR)/libbacktrace && \
39164 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39165
39166@endif target-libbacktrace
39167
39168# Other targets (info, dvi, pdf, etc.)
39169
39170.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
39171maybe-info-target-libbacktrace:
39172@if target-libbacktrace
39173maybe-info-target-libbacktrace: info-target-libbacktrace
39174
39175info-target-libbacktrace: \
39176 configure-target-libbacktrace
39177 @: $(MAKE); $(unstage)
39178 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39179 r=`${PWD_COMMAND}`; export r; \
39180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39181 $(NORMAL_TARGET_EXPORTS) \
39182 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace" ; \
39183 for flag in $(EXTRA_TARGET_FLAGS); do \
39184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39185 done; \
39186 (cd $(TARGET_SUBDIR)/libbacktrace && \
39187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39189 "RANLIB=$${RANLIB}" \
39190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39191 info) \
39192 || exit 1
39193
39194@endif target-libbacktrace
39195
39196.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
39197maybe-dvi-target-libbacktrace:
39198@if target-libbacktrace
39199maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
39200
39201dvi-target-libbacktrace: \
39202 configure-target-libbacktrace
39203 @: $(MAKE); $(unstage)
39204 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39205 r=`${PWD_COMMAND}`; export r; \
39206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39207 $(NORMAL_TARGET_EXPORTS) \
39208 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace" ; \
39209 for flag in $(EXTRA_TARGET_FLAGS); do \
39210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39211 done; \
39212 (cd $(TARGET_SUBDIR)/libbacktrace && \
39213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39215 "RANLIB=$${RANLIB}" \
39216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39217 dvi) \
39218 || exit 1
39219
39220@endif target-libbacktrace
39221
39222.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
39223maybe-pdf-target-libbacktrace:
39224@if target-libbacktrace
39225maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
39226
39227pdf-target-libbacktrace: \
39228 configure-target-libbacktrace
39229 @: $(MAKE); $(unstage)
39230 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39231 r=`${PWD_COMMAND}`; export r; \
39232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39233 $(NORMAL_TARGET_EXPORTS) \
39234 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace" ; \
39235 for flag in $(EXTRA_TARGET_FLAGS); do \
39236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39237 done; \
39238 (cd $(TARGET_SUBDIR)/libbacktrace && \
39239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39241 "RANLIB=$${RANLIB}" \
39242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39243 pdf) \
39244 || exit 1
39245
39246@endif target-libbacktrace
39247
39248.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
39249maybe-html-target-libbacktrace:
39250@if target-libbacktrace
39251maybe-html-target-libbacktrace: html-target-libbacktrace
39252
39253html-target-libbacktrace: \
39254 configure-target-libbacktrace
39255 @: $(MAKE); $(unstage)
39256 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39257 r=`${PWD_COMMAND}`; export r; \
39258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39259 $(NORMAL_TARGET_EXPORTS) \
39260 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace" ; \
39261 for flag in $(EXTRA_TARGET_FLAGS); do \
39262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39263 done; \
39264 (cd $(TARGET_SUBDIR)/libbacktrace && \
39265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39267 "RANLIB=$${RANLIB}" \
39268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39269 html) \
39270 || exit 1
39271
39272@endif target-libbacktrace
39273
39274.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
39275maybe-TAGS-target-libbacktrace:
39276@if target-libbacktrace
39277maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
39278
39279TAGS-target-libbacktrace: \
39280 configure-target-libbacktrace
39281 @: $(MAKE); $(unstage)
39282 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39283 r=`${PWD_COMMAND}`; export r; \
39284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39285 $(NORMAL_TARGET_EXPORTS) \
39286 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace" ; \
39287 for flag in $(EXTRA_TARGET_FLAGS); do \
39288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39289 done; \
39290 (cd $(TARGET_SUBDIR)/libbacktrace && \
39291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39293 "RANLIB=$${RANLIB}" \
39294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39295 TAGS) \
39296 || exit 1
39297
39298@endif target-libbacktrace
39299
39300.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
39301maybe-install-info-target-libbacktrace:
39302@if target-libbacktrace
39303maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
39304
39305install-info-target-libbacktrace: \
39306 configure-target-libbacktrace \
39307 info-target-libbacktrace
39308 @: $(MAKE); $(unstage)
39309 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39310 r=`${PWD_COMMAND}`; export r; \
39311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39312 $(NORMAL_TARGET_EXPORTS) \
39313 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace" ; \
39314 for flag in $(EXTRA_TARGET_FLAGS); do \
39315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39316 done; \
39317 (cd $(TARGET_SUBDIR)/libbacktrace && \
39318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39320 "RANLIB=$${RANLIB}" \
39321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39322 install-info) \
39323 || exit 1
39324
39325@endif target-libbacktrace
39326
39327.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
39328maybe-install-pdf-target-libbacktrace:
39329@if target-libbacktrace
39330maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
39331
39332install-pdf-target-libbacktrace: \
39333 configure-target-libbacktrace \
39334 pdf-target-libbacktrace
39335 @: $(MAKE); $(unstage)
39336 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39337 r=`${PWD_COMMAND}`; export r; \
39338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39339 $(NORMAL_TARGET_EXPORTS) \
39340 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace" ; \
39341 for flag in $(EXTRA_TARGET_FLAGS); do \
39342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39343 done; \
39344 (cd $(TARGET_SUBDIR)/libbacktrace && \
39345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39347 "RANLIB=$${RANLIB}" \
39348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39349 install-pdf) \
39350 || exit 1
39351
39352@endif target-libbacktrace
39353
39354.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
39355maybe-install-html-target-libbacktrace:
39356@if target-libbacktrace
39357maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
39358
39359install-html-target-libbacktrace: \
39360 configure-target-libbacktrace \
39361 html-target-libbacktrace
39362 @: $(MAKE); $(unstage)
39363 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39364 r=`${PWD_COMMAND}`; export r; \
39365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39366 $(NORMAL_TARGET_EXPORTS) \
39367 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace" ; \
39368 for flag in $(EXTRA_TARGET_FLAGS); do \
39369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39370 done; \
39371 (cd $(TARGET_SUBDIR)/libbacktrace && \
39372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39374 "RANLIB=$${RANLIB}" \
39375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39376 install-html) \
39377 || exit 1
39378
39379@endif target-libbacktrace
39380
39381.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
39382maybe-installcheck-target-libbacktrace:
39383@if target-libbacktrace
39384maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
39385
39386installcheck-target-libbacktrace: \
39387 configure-target-libbacktrace
39388 @: $(MAKE); $(unstage)
39389 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39390 r=`${PWD_COMMAND}`; export r; \
39391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39392 $(NORMAL_TARGET_EXPORTS) \
39393 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace" ; \
39394 for flag in $(EXTRA_TARGET_FLAGS); do \
39395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39396 done; \
39397 (cd $(TARGET_SUBDIR)/libbacktrace && \
39398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39400 "RANLIB=$${RANLIB}" \
39401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39402 installcheck) \
39403 || exit 1
39404
39405@endif target-libbacktrace
39406
39407.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
39408maybe-mostlyclean-target-libbacktrace:
39409@if target-libbacktrace
39410maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
39411
39412mostlyclean-target-libbacktrace:
39413 @: $(MAKE); $(unstage)
39414 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39415 r=`${PWD_COMMAND}`; export r; \
39416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39417 $(NORMAL_TARGET_EXPORTS) \
39418 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace" ; \
39419 for flag in $(EXTRA_TARGET_FLAGS); do \
39420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39421 done; \
39422 (cd $(TARGET_SUBDIR)/libbacktrace && \
39423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39425 "RANLIB=$${RANLIB}" \
39426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39427 mostlyclean) \
39428 || exit 1
39429
39430@endif target-libbacktrace
39431
39432.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
39433maybe-clean-target-libbacktrace:
39434@if target-libbacktrace
39435maybe-clean-target-libbacktrace: clean-target-libbacktrace
39436
39437clean-target-libbacktrace:
39438 @: $(MAKE); $(unstage)
39439 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39440 r=`${PWD_COMMAND}`; export r; \
39441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39442 $(NORMAL_TARGET_EXPORTS) \
39443 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace" ; \
39444 for flag in $(EXTRA_TARGET_FLAGS); do \
39445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39446 done; \
39447 (cd $(TARGET_SUBDIR)/libbacktrace && \
39448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39450 "RANLIB=$${RANLIB}" \
39451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39452 clean) \
39453 || exit 1
39454
39455@endif target-libbacktrace
39456
39457.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
39458maybe-distclean-target-libbacktrace:
39459@if target-libbacktrace
39460maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
39461
39462distclean-target-libbacktrace:
39463 @: $(MAKE); $(unstage)
39464 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39465 r=`${PWD_COMMAND}`; export r; \
39466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39467 $(NORMAL_TARGET_EXPORTS) \
39468 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace" ; \
39469 for flag in $(EXTRA_TARGET_FLAGS); do \
39470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39471 done; \
39472 (cd $(TARGET_SUBDIR)/libbacktrace && \
39473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39475 "RANLIB=$${RANLIB}" \
39476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39477 distclean) \
39478 || exit 1
39479
39480@endif target-libbacktrace
39481
39482.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
39483maybe-maintainer-clean-target-libbacktrace:
39484@if target-libbacktrace
39485maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
39486
39487maintainer-clean-target-libbacktrace:
39488 @: $(MAKE); $(unstage)
39489 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0 ; \
39490 r=`${PWD_COMMAND}`; export r; \
39491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39492 $(NORMAL_TARGET_EXPORTS) \
39493 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace" ; \
39494 for flag in $(EXTRA_TARGET_FLAGS); do \
39495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39496 done; \
39497 (cd $(TARGET_SUBDIR)/libbacktrace && \
39498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39500 "RANLIB=$${RANLIB}" \
39501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39502 maintainer-clean) \
39503 || exit 1
39504
39505@endif target-libbacktrace
39506
39507
39508
39509
39510
a90ef4bf
JM
39511.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
39512maybe-configure-target-libquadmath:
4f0ef2d8 39513@if gcc-bootstrap
a90ef4bf 39514configure-target-libquadmath: stage_current
4f0ef2d8 39515@endif gcc-bootstrap
a90ef4bf
JM
39516@if target-libquadmath
39517maybe-configure-target-libquadmath: configure-target-libquadmath
39518configure-target-libquadmath:
0aed8855
PB
39519 @: $(MAKE); $(unstage)
39520 @r=`${PWD_COMMAND}`; export r; \
39521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39522 echo "Checking multilib configuration for libquadmath..."; \
39523 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath ; \
39524 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null ; \
39525 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
39526 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
39527 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 39528 else \
a90ef4bf
JM
39529 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
39530 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
39531 fi; \
39532 else \
a90ef4bf 39533 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 39534 fi; \
a90ef4bf
JM
39535 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
39536 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath ; \
1f53ca9a 39537 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39538 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
39539 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 39540 case $(srcdir) in \
b00612cc 39541 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 39542 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 39543 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 39544 esac; \
1b6c0831 39545 module_srcdir=libquadmath; \
4fa63067 39546 rm -f no-such-file || : ; \
1b6c0831
L
39547 CONFIG_SITE=no-such-file $(SHELL) \
39548 $$s/$$module_srcdir/configure \
39549 --srcdir=$${topdir}/$$module_srcdir \
4b900473 39550 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39551 --target=${target_alias} \
e2b9e2dc 39552 || exit 1
a90ef4bf 39553@endif target-libquadmath
e2b9e2dc 39554
a7254363
PB
39555
39556
d545f33b
PB
39557
39558
a90ef4bf
JM
39559.PHONY: all-target-libquadmath maybe-all-target-libquadmath
39560maybe-all-target-libquadmath:
4f0ef2d8 39561@if gcc-bootstrap
a90ef4bf 39562all-target-libquadmath: stage_current
4f0ef2d8 39563@endif gcc-bootstrap
a90ef4bf
JM
39564@if target-libquadmath
39565TARGET-target-libquadmath=all
39566maybe-all-target-libquadmath: all-target-libquadmath
39567all-target-libquadmath: configure-target-libquadmath
0aed8855 39568 @: $(MAKE); $(unstage)
b40e3958
L
39569 @r=`${PWD_COMMAND}`; export r; \
39570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 39571 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39572 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 39573 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
39574 $(TARGET-target-libquadmath))
39575@endif target-libquadmath
3866be5d 39576
a7254363
PB
39577
39578
d545f33b
PB
39579
39580
a90ef4bf
JM
39581.PHONY: check-target-libquadmath maybe-check-target-libquadmath
39582maybe-check-target-libquadmath:
39583@if target-libquadmath
39584maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 39585
a90ef4bf 39586check-target-libquadmath:
0aed8855 39587 @: $(MAKE); $(unstage)
b40e3958
L
39588 @r=`${PWD_COMMAND}`; export r; \
39589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39590 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39591 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 39592 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 39593
a90ef4bf 39594@endif target-libquadmath
3866be5d 39595
a90ef4bf
JM
39596.PHONY: install-target-libquadmath maybe-install-target-libquadmath
39597maybe-install-target-libquadmath:
39598@if target-libquadmath
39599maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 39600
a90ef4bf 39601install-target-libquadmath: installdirs
0aed8855 39602 @: $(MAKE); $(unstage)
b40e3958
L
39603 @r=`${PWD_COMMAND}`; export r; \
39604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39605 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39606 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 39607 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 39608
a90ef4bf 39609@endif target-libquadmath
3866be5d 39610
a90ef4bf
JM
39611.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
39612maybe-install-strip-target-libquadmath:
39613@if target-libquadmath
39614maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 39615
a90ef4bf 39616install-strip-target-libquadmath: installdirs
9b980aa1
RW
39617 @: $(MAKE); $(unstage)
39618 @r=`${PWD_COMMAND}`; export r; \
39619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39620 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39621 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
39622 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39623
a90ef4bf 39624@endif target-libquadmath
9b980aa1 39625
56a8fe78 39626# Other targets (info, dvi, pdf, etc.)
4fa63067 39627
a90ef4bf
JM
39628.PHONY: maybe-info-target-libquadmath info-target-libquadmath
39629maybe-info-target-libquadmath:
39630@if target-libquadmath
39631maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 39632
a90ef4bf
JM
39633info-target-libquadmath: \
39634 configure-target-libquadmath
0aed8855 39635 @: $(MAKE); $(unstage)
a90ef4bf 39636 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39637 r=`${PWD_COMMAND}`; export r; \
b40e3958 39638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39639 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39640 echo "Doing info in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39641 for flag in $(EXTRA_TARGET_FLAGS); do \
39642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39643 done; \
a90ef4bf 39644 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39647 "RANLIB=$${RANLIB}" \
0c24b341 39648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39649 info) \
4fa63067 39650 || exit 1
3866be5d 39651
a90ef4bf 39652@endif target-libquadmath
3866be5d 39653
a90ef4bf
JM
39654.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
39655maybe-dvi-target-libquadmath:
39656@if target-libquadmath
39657maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 39658
a90ef4bf
JM
39659dvi-target-libquadmath: \
39660 configure-target-libquadmath
0aed8855 39661 @: $(MAKE); $(unstage)
a90ef4bf 39662 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39663 r=`${PWD_COMMAND}`; export r; \
b40e3958 39664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39665 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39666 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39667 for flag in $(EXTRA_TARGET_FLAGS); do \
39668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39669 done; \
a90ef4bf 39670 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39673 "RANLIB=$${RANLIB}" \
0c24b341 39674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39675 dvi) \
4fa63067 39676 || exit 1
3866be5d 39677
a90ef4bf 39678@endif target-libquadmath
3866be5d 39679
a90ef4bf
JM
39680.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
39681maybe-pdf-target-libquadmath:
39682@if target-libquadmath
39683maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 39684
a90ef4bf
JM
39685pdf-target-libquadmath: \
39686 configure-target-libquadmath
56a8fe78 39687 @: $(MAKE); $(unstage)
a90ef4bf 39688 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
56a8fe78
DD
39689 r=`${PWD_COMMAND}`; export r; \
39690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39691 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39692 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath" ; \
56a8fe78
DD
39693 for flag in $(EXTRA_TARGET_FLAGS); do \
39694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39695 done; \
a90ef4bf 39696 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
39697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39699 "RANLIB=$${RANLIB}" \
0c24b341 39700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
39701 pdf) \
39702 || exit 1
39703
a90ef4bf 39704@endif target-libquadmath
56a8fe78 39705
a90ef4bf
JM
39706.PHONY: maybe-html-target-libquadmath html-target-libquadmath
39707maybe-html-target-libquadmath:
39708@if target-libquadmath
39709maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 39710
a90ef4bf
JM
39711html-target-libquadmath: \
39712 configure-target-libquadmath
0aed8855 39713 @: $(MAKE); $(unstage)
a90ef4bf 39714 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
6d389afc
MS
39715 r=`${PWD_COMMAND}`; export r; \
39716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 39717 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39718 echo "Doing html in $(TARGET_SUBDIR)/libquadmath" ; \
6d389afc
MS
39719 for flag in $(EXTRA_TARGET_FLAGS); do \
39720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39721 done; \
a90ef4bf 39722 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
39723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39725 "RANLIB=$${RANLIB}" \
0c24b341 39726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
39727 html) \
39728 || exit 1
39729
a90ef4bf 39730@endif target-libquadmath
6d389afc 39731
a90ef4bf
JM
39732.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
39733maybe-TAGS-target-libquadmath:
39734@if target-libquadmath
39735maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 39736
a90ef4bf
JM
39737TAGS-target-libquadmath: \
39738 configure-target-libquadmath
0aed8855 39739 @: $(MAKE); $(unstage)
a90ef4bf 39740 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
b40e3958
L
39741 r=`${PWD_COMMAND}`; export r; \
39742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39743 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39744 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39745 for flag in $(EXTRA_TARGET_FLAGS); do \
39746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39747 done; \
a90ef4bf 39748 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39751 "RANLIB=$${RANLIB}" \
0c24b341 39752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39753 TAGS) \
e2b9e2dc
NN
39754 || exit 1
39755
a90ef4bf 39756@endif target-libquadmath
4fa63067 39757
a90ef4bf
JM
39758.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
39759maybe-install-info-target-libquadmath:
39760@if target-libquadmath
39761maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 39762
a90ef4bf
JM
39763install-info-target-libquadmath: \
39764 configure-target-libquadmath \
39765 info-target-libquadmath
0aed8855 39766 @: $(MAKE); $(unstage)
a90ef4bf 39767 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39768 r=`${PWD_COMMAND}`; export r; \
b40e3958 39769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39770 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39771 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39772 for flag in $(EXTRA_TARGET_FLAGS); do \
39773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39774 done; \
a90ef4bf 39775 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39778 "RANLIB=$${RANLIB}" \
0c24b341 39779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39780 install-info) \
4fa63067 39781 || exit 1
3866be5d 39782
a90ef4bf 39783@endif target-libquadmath
3866be5d 39784
a90ef4bf
JM
39785.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
39786maybe-install-pdf-target-libquadmath:
39787@if target-libquadmath
39788maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 39789
a90ef4bf
JM
39790install-pdf-target-libquadmath: \
39791 configure-target-libquadmath \
39792 pdf-target-libquadmath
a3ca38d2 39793 @: $(MAKE); $(unstage)
a90ef4bf 39794 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
a3ca38d2
DD
39795 r=`${PWD_COMMAND}`; export r; \
39796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39797 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39798 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath" ; \
a3ca38d2
DD
39799 for flag in $(EXTRA_TARGET_FLAGS); do \
39800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39801 done; \
a90ef4bf 39802 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
39803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39805 "RANLIB=$${RANLIB}" \
0c24b341 39806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
39807 install-pdf) \
39808 || exit 1
39809
a90ef4bf 39810@endif target-libquadmath
a3ca38d2 39811
a90ef4bf
JM
39812.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
39813maybe-install-html-target-libquadmath:
39814@if target-libquadmath
39815maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 39816
a90ef4bf
JM
39817install-html-target-libquadmath: \
39818 configure-target-libquadmath \
39819 html-target-libquadmath
108a6f8e 39820 @: $(MAKE); $(unstage)
a90ef4bf 39821 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
108a6f8e
CD
39822 r=`${PWD_COMMAND}`; export r; \
39823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39824 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39825 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath" ; \
108a6f8e
CD
39826 for flag in $(EXTRA_TARGET_FLAGS); do \
39827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39828 done; \
a90ef4bf 39829 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
39830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39832 "RANLIB=$${RANLIB}" \
0c24b341 39833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
39834 install-html) \
39835 || exit 1
39836
a90ef4bf 39837@endif target-libquadmath
108a6f8e 39838
a90ef4bf
JM
39839.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
39840maybe-installcheck-target-libquadmath:
39841@if target-libquadmath
39842maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 39843
a90ef4bf
JM
39844installcheck-target-libquadmath: \
39845 configure-target-libquadmath
0aed8855 39846 @: $(MAKE); $(unstage)
a90ef4bf 39847 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39848 r=`${PWD_COMMAND}`; export r; \
b40e3958 39849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39850 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39851 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39852 for flag in $(EXTRA_TARGET_FLAGS); do \
39853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39854 done; \
a90ef4bf 39855 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39858 "RANLIB=$${RANLIB}" \
0c24b341 39859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39860 installcheck) \
4fa63067 39861 || exit 1
3866be5d 39862
a90ef4bf 39863@endif target-libquadmath
3866be5d 39864
a90ef4bf
JM
39865.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
39866maybe-mostlyclean-target-libquadmath:
39867@if target-libquadmath
39868maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 39869
a90ef4bf 39870mostlyclean-target-libquadmath:
0aed8855 39871 @: $(MAKE); $(unstage)
a90ef4bf 39872 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39873 r=`${PWD_COMMAND}`; export r; \
b40e3958 39874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39875 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39876 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39877 for flag in $(EXTRA_TARGET_FLAGS); do \
39878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39879 done; \
a90ef4bf 39880 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39883 "RANLIB=$${RANLIB}" \
0c24b341 39884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39885 mostlyclean) \
4fa63067 39886 || exit 1
3866be5d 39887
a90ef4bf 39888@endif target-libquadmath
3866be5d 39889
a90ef4bf
JM
39890.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
39891maybe-clean-target-libquadmath:
39892@if target-libquadmath
39893maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 39894
a90ef4bf 39895clean-target-libquadmath:
0aed8855 39896 @: $(MAKE); $(unstage)
a90ef4bf 39897 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
b40e3958
L
39898 r=`${PWD_COMMAND}`; export r; \
39899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39900 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39901 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39902 for flag in $(EXTRA_TARGET_FLAGS); do \
39903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39904 done; \
a90ef4bf 39905 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39908 "RANLIB=$${RANLIB}" \
0c24b341 39909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39910 clean) \
e2b9e2dc
NN
39911 || exit 1
39912
a90ef4bf 39913@endif target-libquadmath
3866be5d 39914
a90ef4bf
JM
39915.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
39916maybe-distclean-target-libquadmath:
39917@if target-libquadmath
39918maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 39919
a90ef4bf 39920distclean-target-libquadmath:
0aed8855 39921 @: $(MAKE); $(unstage)
a90ef4bf 39922 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39923 r=`${PWD_COMMAND}`; export r; \
b40e3958 39924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39925 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39926 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39927 for flag in $(EXTRA_TARGET_FLAGS); do \
39928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39929 done; \
a90ef4bf 39930 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39933 "RANLIB=$${RANLIB}" \
0c24b341 39934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39935 distclean) \
4fa63067 39936 || exit 1
3866be5d 39937
a90ef4bf 39938@endif target-libquadmath
3866be5d 39939
a90ef4bf
JM
39940.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
39941maybe-maintainer-clean-target-libquadmath:
39942@if target-libquadmath
39943maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 39944
a90ef4bf 39945maintainer-clean-target-libquadmath:
0aed8855 39946 @: $(MAKE); $(unstage)
a90ef4bf 39947 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0 ; \
4fa63067 39948 r=`${PWD_COMMAND}`; export r; \
b40e3958 39949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39950 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39951 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath" ; \
4fa63067
NN
39952 for flag in $(EXTRA_TARGET_FLAGS); do \
39953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39954 done; \
a90ef4bf 39955 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
39956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39958 "RANLIB=$${RANLIB}" \
0c24b341 39959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39960 maintainer-clean) \
4fa63067 39961 || exit 1
3866be5d 39962
a90ef4bf 39963@endif target-libquadmath
3866be5d 39964
4fa63067 39965
4fa63067 39966
a7254363 39967
e90269c8 39968
a90ef4bf
JM
39969.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
39970maybe-configure-target-libgfortran:
e552509b 39971@if gcc-bootstrap
a90ef4bf 39972configure-target-libgfortran: stage_current
e552509b 39973@endif gcc-bootstrap
a90ef4bf
JM
39974@if target-libgfortran
39975maybe-configure-target-libgfortran: configure-target-libgfortran
39976configure-target-libgfortran:
e552509b
ILT
39977 @: $(MAKE); $(unstage)
39978 @r=`${PWD_COMMAND}`; export r; \
39979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39980 echo "Checking multilib configuration for libgfortran..."; \
39981 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
39982 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null ; \
39983 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
39984 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
39985 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 39986 else \
a90ef4bf
JM
39987 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
39988 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
39989 fi; \
39990 else \
a90ef4bf 39991 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 39992 fi; \
a90ef4bf
JM
39993 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
39994 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
e552509b 39995 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39996 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
39997 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
39998 case $(srcdir) in \
39999 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40000 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
40001 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40002 esac; \
1b6c0831 40003 module_srcdir=libgfortran; \
e552509b 40004 rm -f no-such-file || : ; \
1b6c0831
L
40005 CONFIG_SITE=no-such-file $(SHELL) \
40006 $$s/$$module_srcdir/configure \
40007 --srcdir=$${topdir}/$$module_srcdir \
e552509b 40008 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40009 --target=${target_alias} \
e552509b 40010 || exit 1
a90ef4bf 40011@endif target-libgfortran
e552509b
ILT
40012
40013
40014
40015
40016
a90ef4bf
JM
40017.PHONY: all-target-libgfortran maybe-all-target-libgfortran
40018maybe-all-target-libgfortran:
e552509b 40019@if gcc-bootstrap
a90ef4bf 40020all-target-libgfortran: stage_current
e552509b 40021@endif gcc-bootstrap
a90ef4bf
JM
40022@if target-libgfortran
40023TARGET-target-libgfortran=all
40024maybe-all-target-libgfortran: all-target-libgfortran
40025all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
40026 @: $(MAKE); $(unstage)
40027 @r=`${PWD_COMMAND}`; export r; \
40028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40029 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40030 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 40031 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40032 $(TARGET-target-libgfortran))
40033@endif target-libgfortran
e552509b
ILT
40034
40035
40036
40037
40038
a90ef4bf
JM
40039.PHONY: check-target-libgfortran maybe-check-target-libgfortran
40040maybe-check-target-libgfortran:
40041@if target-libgfortran
40042maybe-check-target-libgfortran: check-target-libgfortran
e552509b 40043
a90ef4bf 40044check-target-libgfortran:
e552509b
ILT
40045 @: $(MAKE); $(unstage)
40046 @r=`${PWD_COMMAND}`; export r; \
40047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40048 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40049 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40050 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
40051
a90ef4bf 40052@endif target-libgfortran
e552509b 40053
a90ef4bf
JM
40054.PHONY: install-target-libgfortran maybe-install-target-libgfortran
40055maybe-install-target-libgfortran:
40056@if target-libgfortran
40057maybe-install-target-libgfortran: install-target-libgfortran
e552509b 40058
a90ef4bf 40059install-target-libgfortran: installdirs
e552509b
ILT
40060 @: $(MAKE); $(unstage)
40061 @r=`${PWD_COMMAND}`; export r; \
40062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40063 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40064 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40065 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
40066
a90ef4bf 40067@endif target-libgfortran
e552509b 40068
a90ef4bf
JM
40069.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
40070maybe-install-strip-target-libgfortran:
40071@if target-libgfortran
40072maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 40073
a90ef4bf 40074install-strip-target-libgfortran: installdirs
9b980aa1
RW
40075 @: $(MAKE); $(unstage)
40076 @r=`${PWD_COMMAND}`; export r; \
40077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40078 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40079 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
40080 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40081
a90ef4bf 40082@endif target-libgfortran
9b980aa1 40083
e552509b
ILT
40084# Other targets (info, dvi, pdf, etc.)
40085
a90ef4bf
JM
40086.PHONY: maybe-info-target-libgfortran info-target-libgfortran
40087maybe-info-target-libgfortran:
40088@if target-libgfortran
40089maybe-info-target-libgfortran: info-target-libgfortran
e552509b 40090
a90ef4bf
JM
40091info-target-libgfortran: \
40092 configure-target-libgfortran
e552509b 40093 @: $(MAKE); $(unstage)
a90ef4bf 40094 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40095 r=`${PWD_COMMAND}`; export r; \
40096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40097 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40098 echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40099 for flag in $(EXTRA_TARGET_FLAGS); do \
40100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40101 done; \
a90ef4bf 40102 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40105 "RANLIB=$${RANLIB}" \
40106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40107 info) \
40108 || exit 1
40109
a90ef4bf 40110@endif target-libgfortran
e552509b 40111
a90ef4bf
JM
40112.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
40113maybe-dvi-target-libgfortran:
40114@if target-libgfortran
40115maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 40116
a90ef4bf
JM
40117dvi-target-libgfortran: \
40118 configure-target-libgfortran
e552509b 40119 @: $(MAKE); $(unstage)
a90ef4bf 40120 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40121 r=`${PWD_COMMAND}`; export r; \
40122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40123 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40124 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40125 for flag in $(EXTRA_TARGET_FLAGS); do \
40126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40127 done; \
a90ef4bf 40128 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40131 "RANLIB=$${RANLIB}" \
40132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40133 dvi) \
40134 || exit 1
40135
a90ef4bf 40136@endif target-libgfortran
e552509b 40137
a90ef4bf
JM
40138.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
40139maybe-pdf-target-libgfortran:
40140@if target-libgfortran
40141maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 40142
a90ef4bf
JM
40143pdf-target-libgfortran: \
40144 configure-target-libgfortran
e552509b 40145 @: $(MAKE); $(unstage)
a90ef4bf 40146 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40147 r=`${PWD_COMMAND}`; export r; \
40148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40149 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40150 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40151 for flag in $(EXTRA_TARGET_FLAGS); do \
40152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40153 done; \
a90ef4bf 40154 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40157 "RANLIB=$${RANLIB}" \
40158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40159 pdf) \
40160 || exit 1
40161
a90ef4bf 40162@endif target-libgfortran
e552509b 40163
a90ef4bf
JM
40164.PHONY: maybe-html-target-libgfortran html-target-libgfortran
40165maybe-html-target-libgfortran:
40166@if target-libgfortran
40167maybe-html-target-libgfortran: html-target-libgfortran
e552509b 40168
a90ef4bf
JM
40169html-target-libgfortran: \
40170 configure-target-libgfortran
e552509b 40171 @: $(MAKE); $(unstage)
a90ef4bf 40172 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40173 r=`${PWD_COMMAND}`; export r; \
40174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40175 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40176 echo "Doing html in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40177 for flag in $(EXTRA_TARGET_FLAGS); do \
40178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40179 done; \
a90ef4bf 40180 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40183 "RANLIB=$${RANLIB}" \
40184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40185 html) \
40186 || exit 1
40187
a90ef4bf 40188@endif target-libgfortran
e552509b 40189
a90ef4bf
JM
40190.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
40191maybe-TAGS-target-libgfortran:
40192@if target-libgfortran
40193maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 40194
a90ef4bf
JM
40195TAGS-target-libgfortran: \
40196 configure-target-libgfortran
e552509b 40197 @: $(MAKE); $(unstage)
a90ef4bf 40198 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40199 r=`${PWD_COMMAND}`; export r; \
40200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40201 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40202 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40203 for flag in $(EXTRA_TARGET_FLAGS); do \
40204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40205 done; \
a90ef4bf 40206 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40209 "RANLIB=$${RANLIB}" \
40210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40211 TAGS) \
40212 || exit 1
40213
a90ef4bf 40214@endif target-libgfortran
e552509b 40215
a90ef4bf
JM
40216.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
40217maybe-install-info-target-libgfortran:
40218@if target-libgfortran
40219maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 40220
a90ef4bf
JM
40221install-info-target-libgfortran: \
40222 configure-target-libgfortran \
40223 info-target-libgfortran
e552509b 40224 @: $(MAKE); $(unstage)
a90ef4bf 40225 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40226 r=`${PWD_COMMAND}`; export r; \
40227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40228 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40229 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40230 for flag in $(EXTRA_TARGET_FLAGS); do \
40231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40232 done; \
a90ef4bf 40233 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40236 "RANLIB=$${RANLIB}" \
40237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40238 install-info) \
40239 || exit 1
40240
a90ef4bf 40241@endif target-libgfortran
e552509b 40242
a90ef4bf
JM
40243.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
40244maybe-install-pdf-target-libgfortran:
40245@if target-libgfortran
40246maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 40247
a90ef4bf
JM
40248install-pdf-target-libgfortran: \
40249 configure-target-libgfortran \
40250 pdf-target-libgfortran
e552509b 40251 @: $(MAKE); $(unstage)
a90ef4bf 40252 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40253 r=`${PWD_COMMAND}`; export r; \
40254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40255 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40256 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40257 for flag in $(EXTRA_TARGET_FLAGS); do \
40258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40259 done; \
a90ef4bf 40260 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40263 "RANLIB=$${RANLIB}" \
40264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40265 install-pdf) \
40266 || exit 1
40267
a90ef4bf 40268@endif target-libgfortran
e552509b 40269
a90ef4bf
JM
40270.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
40271maybe-install-html-target-libgfortran:
40272@if target-libgfortran
40273maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 40274
a90ef4bf
JM
40275install-html-target-libgfortran: \
40276 configure-target-libgfortran \
40277 html-target-libgfortran
e552509b 40278 @: $(MAKE); $(unstage)
a90ef4bf 40279 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40280 r=`${PWD_COMMAND}`; export r; \
40281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40282 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40283 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40284 for flag in $(EXTRA_TARGET_FLAGS); do \
40285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40286 done; \
a90ef4bf 40287 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40290 "RANLIB=$${RANLIB}" \
40291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40292 install-html) \
40293 || exit 1
40294
a90ef4bf 40295@endif target-libgfortran
e552509b 40296
a90ef4bf
JM
40297.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
40298maybe-installcheck-target-libgfortran:
40299@if target-libgfortran
40300maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 40301
a90ef4bf
JM
40302installcheck-target-libgfortran: \
40303 configure-target-libgfortran
e552509b 40304 @: $(MAKE); $(unstage)
a90ef4bf 40305 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40306 r=`${PWD_COMMAND}`; export r; \
40307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40308 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40309 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40310 for flag in $(EXTRA_TARGET_FLAGS); do \
40311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40312 done; \
a90ef4bf 40313 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40316 "RANLIB=$${RANLIB}" \
40317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40318 installcheck) \
40319 || exit 1
40320
a90ef4bf 40321@endif target-libgfortran
e552509b 40322
a90ef4bf
JM
40323.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
40324maybe-mostlyclean-target-libgfortran:
40325@if target-libgfortran
40326maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 40327
a90ef4bf 40328mostlyclean-target-libgfortran:
e552509b 40329 @: $(MAKE); $(unstage)
a90ef4bf 40330 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40331 r=`${PWD_COMMAND}`; export r; \
40332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40333 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40334 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40335 for flag in $(EXTRA_TARGET_FLAGS); do \
40336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40337 done; \
a90ef4bf 40338 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40341 "RANLIB=$${RANLIB}" \
40342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40343 mostlyclean) \
40344 || exit 1
40345
a90ef4bf 40346@endif target-libgfortran
e552509b 40347
a90ef4bf
JM
40348.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
40349maybe-clean-target-libgfortran:
40350@if target-libgfortran
40351maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 40352
a90ef4bf 40353clean-target-libgfortran:
e552509b 40354 @: $(MAKE); $(unstage)
a90ef4bf 40355 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40356 r=`${PWD_COMMAND}`; export r; \
40357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40358 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40359 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40360 for flag in $(EXTRA_TARGET_FLAGS); do \
40361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40362 done; \
a90ef4bf 40363 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40366 "RANLIB=$${RANLIB}" \
40367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40368 clean) \
40369 || exit 1
40370
a90ef4bf 40371@endif target-libgfortran
e552509b 40372
a90ef4bf
JM
40373.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
40374maybe-distclean-target-libgfortran:
40375@if target-libgfortran
40376maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 40377
a90ef4bf 40378distclean-target-libgfortran:
e552509b 40379 @: $(MAKE); $(unstage)
a90ef4bf 40380 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40381 r=`${PWD_COMMAND}`; export r; \
40382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40383 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40384 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40385 for flag in $(EXTRA_TARGET_FLAGS); do \
40386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40387 done; \
a90ef4bf 40388 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40391 "RANLIB=$${RANLIB}" \
40392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40393 distclean) \
40394 || exit 1
40395
a90ef4bf 40396@endif target-libgfortran
e552509b 40397
a90ef4bf
JM
40398.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
40399maybe-maintainer-clean-target-libgfortran:
40400@if target-libgfortran
40401maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 40402
a90ef4bf 40403maintainer-clean-target-libgfortran:
e552509b 40404 @: $(MAKE); $(unstage)
a90ef4bf 40405 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
e552509b
ILT
40406 r=`${PWD_COMMAND}`; export r; \
40407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40408 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40409 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \
e552509b
ILT
40410 for flag in $(EXTRA_TARGET_FLAGS); do \
40411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40412 done; \
a90ef4bf 40413 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40416 "RANLIB=$${RANLIB}" \
40417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40418 maintainer-clean) \
40419 || exit 1
40420
a90ef4bf 40421@endif target-libgfortran
e552509b
ILT
40422
40423
40424
40425
40426
a90ef4bf
JM
40427.PHONY: configure-target-libobjc maybe-configure-target-libobjc
40428maybe-configure-target-libobjc:
4f0ef2d8 40429@if gcc-bootstrap
a90ef4bf 40430configure-target-libobjc: stage_current
4f0ef2d8 40431@endif gcc-bootstrap
a90ef4bf
JM
40432@if target-libobjc
40433maybe-configure-target-libobjc: configure-target-libobjc
40434configure-target-libobjc:
0aed8855
PB
40435 @: $(MAKE); $(unstage)
40436 @r=`${PWD_COMMAND}`; export r; \
40437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40438 echo "Checking multilib configuration for libobjc..."; \
40439 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
40440 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null ; \
40441 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
40442 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
40443 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 40444 else \
a90ef4bf
JM
40445 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
40446 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
40447 fi; \
40448 else \
a90ef4bf 40449 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 40450 fi; \
a90ef4bf
JM
40451 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
40452 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
1f53ca9a 40453 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40454 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
40455 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 40456 case $(srcdir) in \
b00612cc 40457 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40458 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 40459 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 40460 esac; \
1b6c0831 40461 module_srcdir=libobjc; \
4fa63067 40462 rm -f no-such-file || : ; \
1b6c0831
L
40463 CONFIG_SITE=no-such-file $(SHELL) \
40464 $$s/$$module_srcdir/configure \
40465 --srcdir=$${topdir}/$$module_srcdir \
4b900473 40466 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40467 --target=${target_alias} \
e2b9e2dc 40468 || exit 1
a90ef4bf 40469@endif target-libobjc
e2b9e2dc 40470
a7254363
PB
40471
40472
d545f33b
PB
40473
40474
a90ef4bf
JM
40475.PHONY: all-target-libobjc maybe-all-target-libobjc
40476maybe-all-target-libobjc:
4f0ef2d8 40477@if gcc-bootstrap
a90ef4bf 40478all-target-libobjc: stage_current
4f0ef2d8 40479@endif gcc-bootstrap
a90ef4bf
JM
40480@if target-libobjc
40481TARGET-target-libobjc=all
40482maybe-all-target-libobjc: all-target-libobjc
40483all-target-libobjc: configure-target-libobjc
0aed8855 40484 @: $(MAKE); $(unstage)
b40e3958
L
40485 @r=`${PWD_COMMAND}`; export r; \
40486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40487 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40488 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 40489 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40490 $(TARGET-target-libobjc))
40491@endif target-libobjc
3866be5d 40492
a7254363
PB
40493
40494
d545f33b
PB
40495
40496
a90ef4bf
JM
40497.PHONY: check-target-libobjc maybe-check-target-libobjc
40498maybe-check-target-libobjc:
40499@if target-libobjc
40500maybe-check-target-libobjc: check-target-libobjc
3866be5d 40501
a90ef4bf
JM
40502check-target-libobjc:
40503 @: $(MAKE); $(unstage)
40504 @r=`${PWD_COMMAND}`; export r; \
40505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40506 $(NORMAL_TARGET_EXPORTS) \
40507 (cd $(TARGET_SUBDIR)/libobjc && \
40508 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 40509
a90ef4bf 40510@endif target-libobjc
4fa63067 40511
a90ef4bf
JM
40512.PHONY: install-target-libobjc maybe-install-target-libobjc
40513maybe-install-target-libobjc:
40514@if target-libobjc
40515maybe-install-target-libobjc: install-target-libobjc
4fa63067 40516
a90ef4bf 40517install-target-libobjc: installdirs
0aed8855 40518 @: $(MAKE); $(unstage)
b40e3958
L
40519 @r=`${PWD_COMMAND}`; export r; \
40520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40521 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40522 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 40523 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40524
a90ef4bf 40525@endif target-libobjc
3866be5d 40526
a90ef4bf
JM
40527.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
40528maybe-install-strip-target-libobjc:
40529@if target-libobjc
40530maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 40531
a90ef4bf 40532install-strip-target-libobjc: installdirs
9b980aa1
RW
40533 @: $(MAKE); $(unstage)
40534 @r=`${PWD_COMMAND}`; export r; \
40535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40536 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40537 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
40538 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40539
a90ef4bf 40540@endif target-libobjc
9b980aa1 40541
56a8fe78 40542# Other targets (info, dvi, pdf, etc.)
16ae0395 40543
a90ef4bf
JM
40544.PHONY: maybe-info-target-libobjc info-target-libobjc
40545maybe-info-target-libobjc:
40546@if target-libobjc
40547maybe-info-target-libobjc: info-target-libobjc
6d389afc 40548
a90ef4bf
JM
40549info-target-libobjc: \
40550 configure-target-libobjc
0aed8855 40551 @: $(MAKE); $(unstage)
a90ef4bf 40552 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
6d389afc
MS
40553 r=`${PWD_COMMAND}`; export r; \
40554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 40555 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40556 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
6d389afc
MS
40557 for flag in $(EXTRA_TARGET_FLAGS); do \
40558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40559 done; \
a90ef4bf 40560 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
40561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40563 "RANLIB=$${RANLIB}" \
0c24b341 40564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40565 info) \
40566 || exit 1
40567
a90ef4bf 40568@endif target-libobjc
6d389afc 40569
a90ef4bf
JM
40570.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
40571maybe-dvi-target-libobjc:
40572@if target-libobjc
40573maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 40574
a90ef4bf
JM
40575dvi-target-libobjc: \
40576 configure-target-libobjc
0aed8855 40577 @: $(MAKE); $(unstage)
a90ef4bf 40578 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067 40579 r=`${PWD_COMMAND}`; export r; \
b40e3958 40580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40581 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40582 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40583 for flag in $(EXTRA_TARGET_FLAGS); do \
40584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40585 done; \
a90ef4bf 40586 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40589 "RANLIB=$${RANLIB}" \
0c24b341 40590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 40591 dvi) \
4fa63067 40592 || exit 1
3866be5d 40593
a90ef4bf 40594@endif target-libobjc
3866be5d 40595
a90ef4bf
JM
40596.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
40597maybe-pdf-target-libobjc:
40598@if target-libobjc
40599maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 40600
a90ef4bf
JM
40601pdf-target-libobjc: \
40602 configure-target-libobjc
56a8fe78 40603 @: $(MAKE); $(unstage)
a90ef4bf 40604 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
56a8fe78
DD
40605 r=`${PWD_COMMAND}`; export r; \
40606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40607 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40608 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc" ; \
56a8fe78
DD
40609 for flag in $(EXTRA_TARGET_FLAGS); do \
40610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40611 done; \
a90ef4bf 40612 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
40613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40615 "RANLIB=$${RANLIB}" \
0c24b341 40616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40617 pdf) \
40618 || exit 1
40619
a90ef4bf 40620@endif target-libobjc
56a8fe78 40621
a90ef4bf
JM
40622.PHONY: maybe-html-target-libobjc html-target-libobjc
40623maybe-html-target-libobjc:
40624@if target-libobjc
40625maybe-html-target-libobjc: html-target-libobjc
4fa63067 40626
a90ef4bf
JM
40627html-target-libobjc: \
40628 configure-target-libobjc
0aed8855 40629 @: $(MAKE); $(unstage)
a90ef4bf 40630 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
b40e3958
L
40631 r=`${PWD_COMMAND}`; export r; \
40632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40633 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40634 echo "Doing html in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40635 for flag in $(EXTRA_TARGET_FLAGS); do \
40636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40637 done; \
a90ef4bf 40638 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40641 "RANLIB=$${RANLIB}" \
0c24b341 40642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 40643 html) \
e2b9e2dc
NN
40644 || exit 1
40645
a90ef4bf 40646@endif target-libobjc
4fa63067 40647
a90ef4bf
JM
40648.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
40649maybe-TAGS-target-libobjc:
40650@if target-libobjc
40651maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 40652
a90ef4bf
JM
40653TAGS-target-libobjc: \
40654 configure-target-libobjc
0aed8855 40655 @: $(MAKE); $(unstage)
a90ef4bf 40656 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067 40657 r=`${PWD_COMMAND}`; export r; \
b40e3958 40658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40659 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40660 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40661 for flag in $(EXTRA_TARGET_FLAGS); do \
40662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40663 done; \
a90ef4bf 40664 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40667 "RANLIB=$${RANLIB}" \
0c24b341 40668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40669 TAGS) \
4fa63067 40670 || exit 1
3866be5d 40671
a90ef4bf 40672@endif target-libobjc
3866be5d 40673
a90ef4bf
JM
40674.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
40675maybe-install-info-target-libobjc:
40676@if target-libobjc
40677maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 40678
a90ef4bf
JM
40679install-info-target-libobjc: \
40680 configure-target-libobjc \
40681 info-target-libobjc
0aed8855 40682 @: $(MAKE); $(unstage)
a90ef4bf 40683 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067
NN
40684 r=`${PWD_COMMAND}`; export r; \
40685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40686 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40687 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40688 for flag in $(EXTRA_TARGET_FLAGS); do \
40689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40690 done; \
a90ef4bf 40691 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40694 "RANLIB=$${RANLIB}" \
0c24b341 40695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40696 install-info) \
4fa63067 40697 || exit 1
3866be5d 40698
a90ef4bf 40699@endif target-libobjc
16ae0395 40700
a90ef4bf
JM
40701.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
40702maybe-install-pdf-target-libobjc:
40703@if target-libobjc
40704maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 40705
a90ef4bf
JM
40706install-pdf-target-libobjc: \
40707 configure-target-libobjc \
40708 pdf-target-libobjc
a3ca38d2 40709 @: $(MAKE); $(unstage)
a90ef4bf 40710 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
a3ca38d2
DD
40711 r=`${PWD_COMMAND}`; export r; \
40712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40713 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40714 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc" ; \
a3ca38d2
DD
40715 for flag in $(EXTRA_TARGET_FLAGS); do \
40716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40717 done; \
a90ef4bf 40718 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
40719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40721 "RANLIB=$${RANLIB}" \
0c24b341 40722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40723 install-pdf) \
40724 || exit 1
40725
a90ef4bf 40726@endif target-libobjc
a3ca38d2 40727
a90ef4bf
JM
40728.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
40729maybe-install-html-target-libobjc:
40730@if target-libobjc
40731maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 40732
a90ef4bf
JM
40733install-html-target-libobjc: \
40734 configure-target-libobjc \
40735 html-target-libobjc
108a6f8e 40736 @: $(MAKE); $(unstage)
a90ef4bf 40737 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
108a6f8e
CD
40738 r=`${PWD_COMMAND}`; export r; \
40739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40740 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40741 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc" ; \
108a6f8e
CD
40742 for flag in $(EXTRA_TARGET_FLAGS); do \
40743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40744 done; \
a90ef4bf 40745 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
40746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40748 "RANLIB=$${RANLIB}" \
0c24b341 40749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
40750 install-html) \
40751 || exit 1
40752
a90ef4bf 40753@endif target-libobjc
108a6f8e 40754
a90ef4bf
JM
40755.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
40756maybe-installcheck-target-libobjc:
40757@if target-libobjc
40758maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 40759
a90ef4bf
JM
40760installcheck-target-libobjc: \
40761 configure-target-libobjc
0aed8855 40762 @: $(MAKE); $(unstage)
a90ef4bf 40763 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
4fa63067 40764 r=`${PWD_COMMAND}`; export r; \
b40e3958 40765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40766 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40767 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
4fa63067
NN
40768 for flag in $(EXTRA_TARGET_FLAGS); do \
40769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40770 done; \
a90ef4bf 40771 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40774 "RANLIB=$${RANLIB}" \
0c24b341 40775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40776 installcheck) \
4fa63067 40777 || exit 1
3866be5d 40778
a90ef4bf 40779@endif target-libobjc
3866be5d 40780
a90ef4bf
JM
40781.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
40782maybe-mostlyclean-target-libobjc:
40783@if target-libobjc
40784maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 40785
a90ef4bf
JM
40786mostlyclean-target-libobjc:
40787 @: $(MAKE); $(unstage)
40788 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
40789 r=`${PWD_COMMAND}`; export r; \
40790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40791 $(NORMAL_TARGET_EXPORTS) \
40792 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
40793 for flag in $(EXTRA_TARGET_FLAGS); do \
40794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40795 done; \
40796 (cd $(TARGET_SUBDIR)/libobjc && \
40797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40799 "RANLIB=$${RANLIB}" \
40800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40801 mostlyclean) \
40802 || exit 1
4fa63067 40803
a90ef4bf 40804@endif target-libobjc
4fa63067 40805
a90ef4bf
JM
40806.PHONY: maybe-clean-target-libobjc clean-target-libobjc
40807maybe-clean-target-libobjc:
40808@if target-libobjc
40809maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 40810
a90ef4bf
JM
40811clean-target-libobjc:
40812 @: $(MAKE); $(unstage)
40813 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
40814 r=`${PWD_COMMAND}`; export r; \
40815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40816 $(NORMAL_TARGET_EXPORTS) \
40817 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
40818 for flag in $(EXTRA_TARGET_FLAGS); do \
40819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40820 done; \
40821 (cd $(TARGET_SUBDIR)/libobjc && \
40822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40824 "RANLIB=$${RANLIB}" \
40825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40826 clean) \
40827 || exit 1
4fa63067 40828
a90ef4bf 40829@endif target-libobjc
4fa63067 40830
a90ef4bf
JM
40831.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
40832maybe-distclean-target-libobjc:
40833@if target-libobjc
40834maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 40835
a90ef4bf
JM
40836distclean-target-libobjc:
40837 @: $(MAKE); $(unstage)
40838 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
40839 r=`${PWD_COMMAND}`; export r; \
40840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40841 $(NORMAL_TARGET_EXPORTS) \
40842 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
40843 for flag in $(EXTRA_TARGET_FLAGS); do \
40844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40845 done; \
40846 (cd $(TARGET_SUBDIR)/libobjc && \
40847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40849 "RANLIB=$${RANLIB}" \
40850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40851 distclean) \
40852 || exit 1
4fa63067 40853
a90ef4bf 40854@endif target-libobjc
4fa63067 40855
a90ef4bf
JM
40856.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
40857maybe-maintainer-clean-target-libobjc:
40858@if target-libobjc
40859maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 40860
a90ef4bf
JM
40861maintainer-clean-target-libobjc:
40862 @: $(MAKE); $(unstage)
40863 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
40864 r=`${PWD_COMMAND}`; export r; \
40865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40866 $(NORMAL_TARGET_EXPORTS) \
40867 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
40868 for flag in $(EXTRA_TARGET_FLAGS); do \
40869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40870 done; \
40871 (cd $(TARGET_SUBDIR)/libobjc && \
40872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40874 "RANLIB=$${RANLIB}" \
40875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40876 maintainer-clean) \
40877 || exit 1
4fa63067 40878
a90ef4bf 40879@endif target-libobjc
4fa63067
NN
40880
40881
4fa63067 40882
4fa63067 40883
a7254363 40884
a90ef4bf
JM
40885.PHONY: configure-target-libgo maybe-configure-target-libgo
40886maybe-configure-target-libgo:
4f0ef2d8 40887@if gcc-bootstrap
a90ef4bf 40888configure-target-libgo: stage_current
4f0ef2d8 40889@endif gcc-bootstrap
a90ef4bf
JM
40890@if target-libgo
40891maybe-configure-target-libgo: configure-target-libgo
40892configure-target-libgo:
0aed8855
PB
40893 @: $(MAKE); $(unstage)
40894 @r=`${PWD_COMMAND}`; export r; \
40895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40896 echo "Checking multilib configuration for libgo..."; \
40897 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo ; \
40898 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null ; \
40899 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
40900 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
40901 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 40902 else \
a90ef4bf
JM
40903 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
40904 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
40905 fi; \
40906 else \
a90ef4bf 40907 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 40908 fi; \
a90ef4bf
JM
40909 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
40910 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo ; \
1f53ca9a 40911 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40912 echo Configuring in $(TARGET_SUBDIR)/libgo; \
40913 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 40914 case $(srcdir) in \
b00612cc 40915 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40916 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 40917 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 40918 esac; \
1b6c0831 40919 module_srcdir=libgo; \
4fa63067 40920 rm -f no-such-file || : ; \
1b6c0831
L
40921 CONFIG_SITE=no-such-file $(SHELL) \
40922 $$s/$$module_srcdir/configure \
40923 --srcdir=$${topdir}/$$module_srcdir \
4b900473 40924 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40925 --target=${target_alias} \
e2b9e2dc 40926 || exit 1
a90ef4bf 40927@endif target-libgo
e2b9e2dc 40928
a7254363
PB
40929
40930
d545f33b
PB
40931
40932
a90ef4bf
JM
40933.PHONY: all-target-libgo maybe-all-target-libgo
40934maybe-all-target-libgo:
4f0ef2d8 40935@if gcc-bootstrap
a90ef4bf 40936all-target-libgo: stage_current
4f0ef2d8 40937@endif gcc-bootstrap
a90ef4bf
JM
40938@if target-libgo
40939TARGET-target-libgo=all
40940maybe-all-target-libgo: all-target-libgo
40941all-target-libgo: configure-target-libgo
0aed8855 40942 @: $(MAKE); $(unstage)
b40e3958
L
40943 @r=`${PWD_COMMAND}`; export r; \
40944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40945 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40946 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 40947 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40948 $(TARGET-target-libgo))
40949@endif target-libgo
3866be5d 40950
a7254363
PB
40951
40952
d545f33b
PB
40953
40954
a90ef4bf
JM
40955.PHONY: check-target-libgo maybe-check-target-libgo
40956maybe-check-target-libgo:
40957@if target-libgo
40958maybe-check-target-libgo: check-target-libgo
3866be5d 40959
a90ef4bf 40960check-target-libgo:
0aed8855 40961 @: $(MAKE); $(unstage)
4fa63067
NN
40962 @r=`${PWD_COMMAND}`; export r; \
40963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40964 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40965 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 40966 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 40967
a90ef4bf 40968@endif target-libgo
3866be5d 40969
a90ef4bf
JM
40970.PHONY: install-target-libgo maybe-install-target-libgo
40971maybe-install-target-libgo:
40972@if target-libgo
40973maybe-install-target-libgo: install-target-libgo
16ae0395 40974
a90ef4bf 40975install-target-libgo: installdirs
0aed8855 40976 @: $(MAKE); $(unstage)
4fa63067
NN
40977 @r=`${PWD_COMMAND}`; export r; \
40978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40979 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40980 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 40981 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40982
a90ef4bf 40983@endif target-libgo
3866be5d 40984
a90ef4bf
JM
40985.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
40986maybe-install-strip-target-libgo:
40987@if target-libgo
40988maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 40989
a90ef4bf 40990install-strip-target-libgo: installdirs
9b980aa1
RW
40991 @: $(MAKE); $(unstage)
40992 @r=`${PWD_COMMAND}`; export r; \
40993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40994 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40995 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
40996 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40997
a90ef4bf 40998@endif target-libgo
9b980aa1 40999
56a8fe78 41000# Other targets (info, dvi, pdf, etc.)
4fa63067 41001
a90ef4bf
JM
41002.PHONY: maybe-info-target-libgo info-target-libgo
41003maybe-info-target-libgo:
41004@if target-libgo
41005maybe-info-target-libgo: info-target-libgo
4fa63067 41006
a90ef4bf
JM
41007info-target-libgo: \
41008 configure-target-libgo
0aed8855 41009 @: $(MAKE); $(unstage)
a90ef4bf 41010 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
b40e3958
L
41011 r=`${PWD_COMMAND}`; export r; \
41012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41013 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41014 echo "Doing info in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41015 for flag in $(EXTRA_TARGET_FLAGS); do \
41016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41017 done; \
a90ef4bf 41018 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41021 "RANLIB=$${RANLIB}" \
0c24b341 41022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41023 info) \
e2b9e2dc
NN
41024 || exit 1
41025
a90ef4bf 41026@endif target-libgo
3866be5d 41027
a90ef4bf
JM
41028.PHONY: maybe-dvi-target-libgo dvi-target-libgo
41029maybe-dvi-target-libgo:
41030@if target-libgo
41031maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 41032
a90ef4bf
JM
41033dvi-target-libgo: \
41034 configure-target-libgo
0aed8855 41035 @: $(MAKE); $(unstage)
a90ef4bf 41036 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41037 r=`${PWD_COMMAND}`; export r; \
b40e3958 41038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41039 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41040 echo "Doing dvi in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41041 for flag in $(EXTRA_TARGET_FLAGS); do \
41042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41043 done; \
a90ef4bf 41044 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41047 "RANLIB=$${RANLIB}" \
0c24b341 41048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41049 dvi) \
4fa63067 41050 || exit 1
3866be5d 41051
a90ef4bf 41052@endif target-libgo
3866be5d 41053
a90ef4bf
JM
41054.PHONY: maybe-pdf-target-libgo pdf-target-libgo
41055maybe-pdf-target-libgo:
41056@if target-libgo
41057maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 41058
a90ef4bf
JM
41059pdf-target-libgo: \
41060 configure-target-libgo
56a8fe78 41061 @: $(MAKE); $(unstage)
a90ef4bf 41062 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
56a8fe78
DD
41063 r=`${PWD_COMMAND}`; export r; \
41064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41065 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41066 echo "Doing pdf in $(TARGET_SUBDIR)/libgo" ; \
56a8fe78
DD
41067 for flag in $(EXTRA_TARGET_FLAGS); do \
41068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41069 done; \
a90ef4bf 41070 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
41071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41073 "RANLIB=$${RANLIB}" \
0c24b341 41074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41075 pdf) \
41076 || exit 1
41077
a90ef4bf 41078@endif target-libgo
56a8fe78 41079
a90ef4bf
JM
41080.PHONY: maybe-html-target-libgo html-target-libgo
41081maybe-html-target-libgo:
41082@if target-libgo
41083maybe-html-target-libgo: html-target-libgo
6d389afc 41084
a90ef4bf
JM
41085html-target-libgo: \
41086 configure-target-libgo
0aed8855 41087 @: $(MAKE); $(unstage)
a90ef4bf 41088 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
6d389afc
MS
41089 r=`${PWD_COMMAND}`; export r; \
41090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41091 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41092 echo "Doing html in $(TARGET_SUBDIR)/libgo" ; \
6d389afc
MS
41093 for flag in $(EXTRA_TARGET_FLAGS); do \
41094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41095 done; \
a90ef4bf 41096 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
41097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41099 "RANLIB=$${RANLIB}" \
0c24b341 41100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41101 html) \
41102 || exit 1
41103
a90ef4bf 41104@endif target-libgo
6d389afc 41105
a90ef4bf
JM
41106.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
41107maybe-TAGS-target-libgo:
41108@if target-libgo
41109maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 41110
a90ef4bf
JM
41111TAGS-target-libgo: \
41112 configure-target-libgo
0aed8855 41113 @: $(MAKE); $(unstage)
a90ef4bf 41114 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41115 r=`${PWD_COMMAND}`; export r; \
b40e3958 41116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41117 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41118 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41119 for flag in $(EXTRA_TARGET_FLAGS); do \
41120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41121 done; \
a90ef4bf 41122 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41125 "RANLIB=$${RANLIB}" \
0c24b341 41126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41127 TAGS) \
4fa63067 41128 || exit 1
3866be5d 41129
a90ef4bf 41130@endif target-libgo
3866be5d 41131
a90ef4bf
JM
41132.PHONY: maybe-install-info-target-libgo install-info-target-libgo
41133maybe-install-info-target-libgo:
41134@if target-libgo
41135maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 41136
a90ef4bf
JM
41137install-info-target-libgo: \
41138 configure-target-libgo \
41139 info-target-libgo
0aed8855 41140 @: $(MAKE); $(unstage)
a90ef4bf 41141 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
b40e3958
L
41142 r=`${PWD_COMMAND}`; export r; \
41143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41144 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41145 echo "Doing install-info in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41146 for flag in $(EXTRA_TARGET_FLAGS); do \
41147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41148 done; \
a90ef4bf 41149 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41152 "RANLIB=$${RANLIB}" \
0c24b341 41153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41154 install-info) \
e2b9e2dc
NN
41155 || exit 1
41156
a90ef4bf 41157@endif target-libgo
4fa63067 41158
a90ef4bf
JM
41159.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
41160maybe-install-pdf-target-libgo:
41161@if target-libgo
41162maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 41163
a90ef4bf
JM
41164install-pdf-target-libgo: \
41165 configure-target-libgo \
41166 pdf-target-libgo
a3ca38d2 41167 @: $(MAKE); $(unstage)
a90ef4bf 41168 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
a3ca38d2
DD
41169 r=`${PWD_COMMAND}`; export r; \
41170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41171 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41172 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo" ; \
a3ca38d2
DD
41173 for flag in $(EXTRA_TARGET_FLAGS); do \
41174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41175 done; \
a90ef4bf 41176 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
41177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41179 "RANLIB=$${RANLIB}" \
0c24b341 41180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41181 install-pdf) \
41182 || exit 1
41183
a90ef4bf 41184@endif target-libgo
a3ca38d2 41185
a90ef4bf
JM
41186.PHONY: maybe-install-html-target-libgo install-html-target-libgo
41187maybe-install-html-target-libgo:
41188@if target-libgo
41189maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 41190
a90ef4bf
JM
41191install-html-target-libgo: \
41192 configure-target-libgo \
41193 html-target-libgo
108a6f8e 41194 @: $(MAKE); $(unstage)
a90ef4bf 41195 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
108a6f8e
CD
41196 r=`${PWD_COMMAND}`; export r; \
41197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41198 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41199 echo "Doing install-html in $(TARGET_SUBDIR)/libgo" ; \
108a6f8e
CD
41200 for flag in $(EXTRA_TARGET_FLAGS); do \
41201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41202 done; \
a90ef4bf 41203 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
41204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41206 "RANLIB=$${RANLIB}" \
0c24b341 41207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41208 install-html) \
41209 || exit 1
41210
a90ef4bf 41211@endif target-libgo
108a6f8e 41212
a90ef4bf
JM
41213.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
41214maybe-installcheck-target-libgo:
41215@if target-libgo
41216maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 41217
a90ef4bf
JM
41218installcheck-target-libgo: \
41219 configure-target-libgo
0aed8855 41220 @: $(MAKE); $(unstage)
a90ef4bf 41221 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41222 r=`${PWD_COMMAND}`; export r; \
b40e3958 41223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41224 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41225 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41226 for flag in $(EXTRA_TARGET_FLAGS); do \
41227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41228 done; \
a90ef4bf 41229 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41232 "RANLIB=$${RANLIB}" \
0c24b341 41233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41234 installcheck) \
4fa63067 41235 || exit 1
3866be5d 41236
a90ef4bf 41237@endif target-libgo
3866be5d 41238
a90ef4bf
JM
41239.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
41240maybe-mostlyclean-target-libgo:
41241@if target-libgo
41242maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 41243
a90ef4bf 41244mostlyclean-target-libgo:
0aed8855 41245 @: $(MAKE); $(unstage)
a90ef4bf 41246 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41247 r=`${PWD_COMMAND}`; export r; \
b40e3958 41248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41249 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41250 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41251 for flag in $(EXTRA_TARGET_FLAGS); do \
41252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41253 done; \
a90ef4bf 41254 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41257 "RANLIB=$${RANLIB}" \
0c24b341 41258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41259 mostlyclean) \
4fa63067 41260 || exit 1
3866be5d 41261
a90ef4bf 41262@endif target-libgo
3866be5d 41263
a90ef4bf
JM
41264.PHONY: maybe-clean-target-libgo clean-target-libgo
41265maybe-clean-target-libgo:
41266@if target-libgo
41267maybe-clean-target-libgo: clean-target-libgo
16ae0395 41268
a90ef4bf 41269clean-target-libgo:
0aed8855 41270 @: $(MAKE); $(unstage)
a90ef4bf 41271 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41272 r=`${PWD_COMMAND}`; export r; \
b40e3958 41273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41274 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41275 echo "Doing clean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41276 for flag in $(EXTRA_TARGET_FLAGS); do \
41277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41278 done; \
a90ef4bf 41279 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41282 "RANLIB=$${RANLIB}" \
0c24b341 41283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41284 clean) \
4fa63067 41285 || exit 1
3866be5d 41286
a90ef4bf 41287@endif target-libgo
3866be5d 41288
a90ef4bf
JM
41289.PHONY: maybe-distclean-target-libgo distclean-target-libgo
41290maybe-distclean-target-libgo:
41291@if target-libgo
41292maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 41293
a90ef4bf 41294distclean-target-libgo:
0aed8855 41295 @: $(MAKE); $(unstage)
a90ef4bf 41296 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
b40e3958
L
41297 r=`${PWD_COMMAND}`; export r; \
41298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41299 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41300 echo "Doing distclean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41301 for flag in $(EXTRA_TARGET_FLAGS); do \
41302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41303 done; \
a90ef4bf 41304 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41307 "RANLIB=$${RANLIB}" \
0c24b341 41308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41309 distclean) \
e2b9e2dc
NN
41310 || exit 1
41311
a90ef4bf 41312@endif target-libgo
3866be5d 41313
a90ef4bf
JM
41314.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
41315maybe-maintainer-clean-target-libgo:
41316@if target-libgo
41317maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 41318
a90ef4bf 41319maintainer-clean-target-libgo:
0aed8855 41320 @: $(MAKE); $(unstage)
a90ef4bf 41321 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0 ; \
4fa63067 41322 r=`${PWD_COMMAND}`; export r; \
b40e3958 41323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41324 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41325 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo" ; \
4fa63067
NN
41326 for flag in $(EXTRA_TARGET_FLAGS); do \
41327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41328 done; \
a90ef4bf 41329 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41332 "RANLIB=$${RANLIB}" \
0c24b341 41333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41334 maintainer-clean) \
4fa63067 41335 || exit 1
3866be5d 41336
a90ef4bf 41337@endif target-libgo
3866be5d 41338
16ae0395 41339
3866be5d 41340
e90269c8 41341
a7254363 41342
a90ef4bf
JM
41343.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
41344maybe-configure-target-libtermcap:
4f0ef2d8 41345@if gcc-bootstrap
a90ef4bf 41346configure-target-libtermcap: stage_current
4f0ef2d8 41347@endif gcc-bootstrap
a90ef4bf
JM
41348@if target-libtermcap
41349maybe-configure-target-libtermcap: configure-target-libtermcap
41350configure-target-libtermcap:
0aed8855
PB
41351 @: $(MAKE); $(unstage)
41352 @r=`${PWD_COMMAND}`; export r; \
41353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41354 echo "Checking multilib configuration for libtermcap..."; \
41355 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
41356 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null ; \
41357 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
41358 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
41359 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 41360 else \
a90ef4bf
JM
41361 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
41362 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
41363 fi; \
41364 else \
a90ef4bf 41365 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 41366 fi; \
a90ef4bf
JM
41367 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
41368 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
1f53ca9a 41369 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41370 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
41371 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 41372 case $(srcdir) in \
b00612cc 41373 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41374 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 41375 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 41376 esac; \
1b6c0831 41377 module_srcdir=libtermcap; \
4fa63067 41378 rm -f no-such-file || : ; \
1b6c0831
L
41379 CONFIG_SITE=no-such-file $(SHELL) \
41380 $$s/$$module_srcdir/configure \
41381 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41382 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41383 --target=${target_alias} \
e2b9e2dc 41384 || exit 1
a90ef4bf 41385@endif target-libtermcap
e2b9e2dc 41386
a7254363
PB
41387
41388
d545f33b
PB
41389
41390
a90ef4bf
JM
41391.PHONY: all-target-libtermcap maybe-all-target-libtermcap
41392maybe-all-target-libtermcap:
4f0ef2d8 41393@if gcc-bootstrap
a90ef4bf 41394all-target-libtermcap: stage_current
4f0ef2d8 41395@endif gcc-bootstrap
a90ef4bf
JM
41396@if target-libtermcap
41397TARGET-target-libtermcap=all
41398maybe-all-target-libtermcap: all-target-libtermcap
41399all-target-libtermcap: configure-target-libtermcap
0aed8855 41400 @: $(MAKE); $(unstage)
b40e3958
L
41401 @r=`${PWD_COMMAND}`; export r; \
41402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41403 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41404 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 41405 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41406 $(TARGET-target-libtermcap))
41407@endif target-libtermcap
e393202e 41408
a7254363
PB
41409
41410
d545f33b
PB
41411
41412
a90ef4bf
JM
41413.PHONY: check-target-libtermcap maybe-check-target-libtermcap
41414maybe-check-target-libtermcap:
41415@if target-libtermcap
41416maybe-check-target-libtermcap: check-target-libtermcap
e393202e 41417
4fa63067 41418# Dummy target for uncheckable module.
a90ef4bf 41419check-target-libtermcap:
e393202e 41420
a90ef4bf 41421@endif target-libtermcap
e393202e 41422
a90ef4bf
JM
41423.PHONY: install-target-libtermcap maybe-install-target-libtermcap
41424maybe-install-target-libtermcap:
41425@if target-libtermcap
41426maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 41427
a90ef4bf 41428install-target-libtermcap: installdirs
0aed8855 41429 @: $(MAKE); $(unstage)
b40e3958
L
41430 @r=`${PWD_COMMAND}`; export r; \
41431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41432 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41433 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 41434 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 41435
a90ef4bf 41436@endif target-libtermcap
56a8fe78 41437
a90ef4bf
JM
41438.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
41439maybe-install-strip-target-libtermcap:
41440@if target-libtermcap
41441maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 41442
a90ef4bf 41443install-strip-target-libtermcap: installdirs
0aed8855 41444 @: $(MAKE); $(unstage)
a90ef4bf 41445 @r=`${PWD_COMMAND}`; export r; \
6d389afc 41446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41447 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41448 (cd $(TARGET_SUBDIR)/libtermcap && \
41449 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 41450
a90ef4bf 41451@endif target-libtermcap
6d389afc 41452
a90ef4bf 41453# Other targets (info, dvi, pdf, etc.)
16ae0395 41454
a90ef4bf
JM
41455.PHONY: maybe-info-target-libtermcap info-target-libtermcap
41456maybe-info-target-libtermcap:
41457@if target-libtermcap
41458maybe-info-target-libtermcap: info-target-libtermcap
41459
41460info-target-libtermcap: \
41461 configure-target-libtermcap
0aed8855 41462 @: $(MAKE); $(unstage)
a90ef4bf 41463 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067 41464 r=`${PWD_COMMAND}`; export r; \
b40e3958 41465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41466 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41467 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41468 for flag in $(EXTRA_TARGET_FLAGS); do \
41469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41470 done; \
a90ef4bf 41471 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41474 "RANLIB=$${RANLIB}" \
0c24b341 41475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41476 info) \
4fa63067 41477 || exit 1
ce5b542e 41478
a90ef4bf 41479@endif target-libtermcap
ce5b542e 41480
a90ef4bf
JM
41481.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
41482maybe-dvi-target-libtermcap:
41483@if target-libtermcap
41484maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 41485
a90ef4bf
JM
41486dvi-target-libtermcap: \
41487 configure-target-libtermcap
0aed8855 41488 @: $(MAKE); $(unstage)
a90ef4bf 41489 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
b40e3958
L
41490 r=`${PWD_COMMAND}`; export r; \
41491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41492 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41493 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41494 for flag in $(EXTRA_TARGET_FLAGS); do \
41495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41496 done; \
a90ef4bf 41497 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41500 "RANLIB=$${RANLIB}" \
0c24b341 41501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41502 dvi) \
e2b9e2dc
NN
41503 || exit 1
41504
a90ef4bf 41505@endif target-libtermcap
e393202e 41506
a90ef4bf
JM
41507.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
41508maybe-pdf-target-libtermcap:
41509@if target-libtermcap
41510maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 41511
a90ef4bf
JM
41512pdf-target-libtermcap: \
41513 configure-target-libtermcap
a3ca38d2 41514 @: $(MAKE); $(unstage)
a90ef4bf 41515 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
a3ca38d2
DD
41516 r=`${PWD_COMMAND}`; export r; \
41517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41518 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41519 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap" ; \
a3ca38d2
DD
41520 for flag in $(EXTRA_TARGET_FLAGS); do \
41521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41522 done; \
a90ef4bf 41523 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
41524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41526 "RANLIB=$${RANLIB}" \
0c24b341 41527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41528 pdf) \
a3ca38d2
DD
41529 || exit 1
41530
a90ef4bf 41531@endif target-libtermcap
a3ca38d2 41532
a90ef4bf
JM
41533.PHONY: maybe-html-target-libtermcap html-target-libtermcap
41534maybe-html-target-libtermcap:
41535@if target-libtermcap
41536maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 41537
a90ef4bf
JM
41538html-target-libtermcap: \
41539 configure-target-libtermcap
108a6f8e 41540 @: $(MAKE); $(unstage)
a90ef4bf 41541 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
108a6f8e
CD
41542 r=`${PWD_COMMAND}`; export r; \
41543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41544 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41545 echo "Doing html in $(TARGET_SUBDIR)/libtermcap" ; \
108a6f8e
CD
41546 for flag in $(EXTRA_TARGET_FLAGS); do \
41547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41548 done; \
a90ef4bf 41549 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
41550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41552 "RANLIB=$${RANLIB}" \
0c24b341 41553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41554 html) \
108a6f8e
CD
41555 || exit 1
41556
a90ef4bf 41557@endif target-libtermcap
108a6f8e 41558
a90ef4bf
JM
41559.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
41560maybe-TAGS-target-libtermcap:
41561@if target-libtermcap
41562maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 41563
a90ef4bf
JM
41564TAGS-target-libtermcap: \
41565 configure-target-libtermcap
0aed8855 41566 @: $(MAKE); $(unstage)
a90ef4bf 41567 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067
NN
41568 r=`${PWD_COMMAND}`; export r; \
41569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41570 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41571 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41572 for flag in $(EXTRA_TARGET_FLAGS); do \
41573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41574 done; \
a90ef4bf 41575 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41578 "RANLIB=$${RANLIB}" \
0c24b341 41579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41580 TAGS) \
4fa63067 41581 || exit 1
3866be5d 41582
a90ef4bf 41583@endif target-libtermcap
3866be5d 41584
a90ef4bf
JM
41585.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
41586maybe-install-info-target-libtermcap:
41587@if target-libtermcap
41588maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 41589
a90ef4bf
JM
41590install-info-target-libtermcap: \
41591 configure-target-libtermcap \
41592 info-target-libtermcap
0aed8855 41593 @: $(MAKE); $(unstage)
a90ef4bf 41594 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067 41595 r=`${PWD_COMMAND}`; export r; \
b40e3958 41596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41597 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41598 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41599 for flag in $(EXTRA_TARGET_FLAGS); do \
41600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41601 done; \
a90ef4bf 41602 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41605 "RANLIB=$${RANLIB}" \
0c24b341 41606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41607 install-info) \
4fa63067 41608 || exit 1
e393202e 41609
a90ef4bf 41610@endif target-libtermcap
3866be5d 41611
a90ef4bf
JM
41612.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
41613maybe-install-pdf-target-libtermcap:
41614@if target-libtermcap
41615maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 41616
a90ef4bf
JM
41617install-pdf-target-libtermcap: \
41618 configure-target-libtermcap \
41619 pdf-target-libtermcap
0aed8855 41620 @: $(MAKE); $(unstage)
a90ef4bf 41621 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
b40e3958
L
41622 r=`${PWD_COMMAND}`; export r; \
41623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41624 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41625 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41626 for flag in $(EXTRA_TARGET_FLAGS); do \
41627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41628 done; \
a90ef4bf 41629 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41632 "RANLIB=$${RANLIB}" \
0c24b341 41633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41634 install-pdf) \
e2b9e2dc
NN
41635 || exit 1
41636
a90ef4bf 41637@endif target-libtermcap
e393202e 41638
a90ef4bf
JM
41639.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
41640maybe-install-html-target-libtermcap:
41641@if target-libtermcap
41642maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 41643
a90ef4bf
JM
41644install-html-target-libtermcap: \
41645 configure-target-libtermcap \
41646 html-target-libtermcap
0aed8855 41647 @: $(MAKE); $(unstage)
a90ef4bf 41648 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067
NN
41649 r=`${PWD_COMMAND}`; export r; \
41650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41651 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41652 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41653 for flag in $(EXTRA_TARGET_FLAGS); do \
41654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41655 done; \
a90ef4bf 41656 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41659 "RANLIB=$${RANLIB}" \
0c24b341 41660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41661 install-html) \
4fa63067 41662 || exit 1
3866be5d 41663
a90ef4bf 41664@endif target-libtermcap
3866be5d 41665
a90ef4bf
JM
41666.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
41667maybe-installcheck-target-libtermcap:
41668@if target-libtermcap
41669maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 41670
a90ef4bf
JM
41671installcheck-target-libtermcap: \
41672 configure-target-libtermcap
0aed8855 41673 @: $(MAKE); $(unstage)
a90ef4bf 41674 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
4fa63067 41675 r=`${PWD_COMMAND}`; export r; \
b40e3958 41676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41677 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41678 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
4fa63067
NN
41679 for flag in $(EXTRA_TARGET_FLAGS); do \
41680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41681 done; \
a90ef4bf 41682 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41685 "RANLIB=$${RANLIB}" \
0c24b341 41686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41687 installcheck) \
4fa63067 41688 || exit 1
3866be5d 41689
a90ef4bf
JM
41690@endif target-libtermcap
41691
41692.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
41693maybe-mostlyclean-target-libtermcap:
41694@if target-libtermcap
41695maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
41696
41697# libtermcap doesn't support mostlyclean.
41698mostlyclean-target-libtermcap:
41699
41700@endif target-libtermcap
3866be5d 41701
a90ef4bf
JM
41702.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
41703maybe-clean-target-libtermcap:
41704@if target-libtermcap
41705maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 41706
a90ef4bf
JM
41707# libtermcap doesn't support clean.
41708clean-target-libtermcap:
15723a45 41709
a90ef4bf 41710@endif target-libtermcap
e90269c8 41711
a90ef4bf
JM
41712.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
41713maybe-distclean-target-libtermcap:
41714@if target-libtermcap
41715maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 41716
a90ef4bf
JM
41717# libtermcap doesn't support distclean.
41718distclean-target-libtermcap:
41719
41720@endif target-libtermcap
41721
41722.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
41723maybe-maintainer-clean-target-libtermcap:
41724@if target-libtermcap
41725maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
41726
41727# libtermcap doesn't support maintainer-clean.
41728maintainer-clean-target-libtermcap:
41729
41730@endif target-libtermcap
41731
41732
41733
41734
41735
41736.PHONY: configure-target-winsup maybe-configure-target-winsup
41737maybe-configure-target-winsup:
4f0ef2d8 41738@if gcc-bootstrap
a90ef4bf 41739configure-target-winsup: stage_current
4f0ef2d8 41740@endif gcc-bootstrap
a90ef4bf
JM
41741@if target-winsup
41742maybe-configure-target-winsup: configure-target-winsup
41743configure-target-winsup:
0aed8855
PB
41744 @: $(MAKE); $(unstage)
41745 @r=`${PWD_COMMAND}`; export r; \
41746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41747 echo "Checking multilib configuration for winsup..."; \
41748 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
41749 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null ; \
41750 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
41751 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
41752 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 41753 else \
a90ef4bf
JM
41754 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
41755 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
41756 fi; \
41757 else \
a90ef4bf 41758 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 41759 fi; \
a90ef4bf
JM
41760 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
41761 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
1f53ca9a 41762 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41763 echo Configuring in $(TARGET_SUBDIR)/winsup; \
41764 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 41765 case $(srcdir) in \
b00612cc 41766 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41767 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 41768 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 41769 esac; \
1b6c0831 41770 module_srcdir=winsup; \
bba45b8b 41771 rm -f no-such-file || : ; \
1b6c0831
L
41772 CONFIG_SITE=no-such-file $(SHELL) \
41773 $$s/$$module_srcdir/configure \
41774 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41775 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41776 --target=${target_alias} \
bba45b8b 41777 || exit 1
a90ef4bf 41778@endif target-winsup
e393202e 41779
a7254363
PB
41780
41781
d545f33b
PB
41782
41783
a90ef4bf
JM
41784.PHONY: all-target-winsup maybe-all-target-winsup
41785maybe-all-target-winsup:
4f0ef2d8 41786@if gcc-bootstrap
a90ef4bf 41787all-target-winsup: stage_current
4f0ef2d8 41788@endif gcc-bootstrap
a90ef4bf
JM
41789@if target-winsup
41790TARGET-target-winsup=all
41791maybe-all-target-winsup: all-target-winsup
41792all-target-winsup: configure-target-winsup
0aed8855 41793 @: $(MAKE); $(unstage)
b40e3958
L
41794 @r=`${PWD_COMMAND}`; export r; \
41795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41796 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41797 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 41798 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41799 $(TARGET-target-winsup))
41800@endif target-winsup
e393202e 41801
a7254363
PB
41802
41803
d545f33b
PB
41804
41805
a90ef4bf
JM
41806.PHONY: check-target-winsup maybe-check-target-winsup
41807maybe-check-target-winsup:
41808@if target-winsup
41809maybe-check-target-winsup: check-target-winsup
16ae0395 41810
a90ef4bf 41811check-target-winsup:
0aed8855 41812 @: $(MAKE); $(unstage)
b40e3958
L
41813 @r=`${PWD_COMMAND}`; export r; \
41814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41815 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41816 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 41817 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 41818
a90ef4bf 41819@endif target-winsup
e393202e 41820
a90ef4bf
JM
41821.PHONY: install-target-winsup maybe-install-target-winsup
41822maybe-install-target-winsup:
41823@if target-winsup
41824maybe-install-target-winsup: install-target-winsup
4fa63067 41825
a90ef4bf 41826install-target-winsup: installdirs
0aed8855 41827 @: $(MAKE); $(unstage)
4fa63067
NN
41828 @r=`${PWD_COMMAND}`; export r; \
41829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41830 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41831 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 41832 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 41833
a90ef4bf 41834@endif target-winsup
4fa63067 41835
a90ef4bf
JM
41836.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
41837maybe-install-strip-target-winsup:
41838@if target-winsup
41839maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 41840
a90ef4bf 41841install-strip-target-winsup: installdirs
9b980aa1
RW
41842 @: $(MAKE); $(unstage)
41843 @r=`${PWD_COMMAND}`; export r; \
41844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41845 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41846 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
41847 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41848
a90ef4bf 41849@endif target-winsup
9b980aa1 41850
56a8fe78 41851# Other targets (info, dvi, pdf, etc.)
4fa63067 41852
a90ef4bf
JM
41853.PHONY: maybe-info-target-winsup info-target-winsup
41854maybe-info-target-winsup:
41855@if target-winsup
41856maybe-info-target-winsup: info-target-winsup
4fa63067 41857
a90ef4bf
JM
41858info-target-winsup: \
41859 configure-target-winsup
0aed8855 41860 @: $(MAKE); $(unstage)
a90ef4bf 41861 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
41862 r=`${PWD_COMMAND}`; export r; \
41863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41864 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41865 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
41866 for flag in $(EXTRA_TARGET_FLAGS); do \
41867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41868 done; \
a90ef4bf 41869 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
41870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41872 "RANLIB=$${RANLIB}" \
0c24b341 41873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41874 info) \
4fa63067
NN
41875 || exit 1
41876
a90ef4bf 41877@endif target-winsup
4fa63067 41878
a90ef4bf
JM
41879.PHONY: maybe-dvi-target-winsup dvi-target-winsup
41880maybe-dvi-target-winsup:
41881@if target-winsup
41882maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 41883
a90ef4bf
JM
41884dvi-target-winsup: \
41885 configure-target-winsup
0aed8855 41886 @: $(MAKE); $(unstage)
a90ef4bf 41887 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
41888 r=`${PWD_COMMAND}`; export r; \
41889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41890 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41891 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
41892 for flag in $(EXTRA_TARGET_FLAGS); do \
41893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41894 done; \
a90ef4bf 41895 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
41896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41898 "RANLIB=$${RANLIB}" \
0c24b341 41899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41900 dvi) \
4fa63067
NN
41901 || exit 1
41902
a90ef4bf 41903@endif target-winsup
4fa63067 41904
a90ef4bf
JM
41905.PHONY: maybe-pdf-target-winsup pdf-target-winsup
41906maybe-pdf-target-winsup:
41907@if target-winsup
41908maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 41909
a90ef4bf
JM
41910pdf-target-winsup: \
41911 configure-target-winsup
56a8fe78 41912 @: $(MAKE); $(unstage)
a90ef4bf 41913 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
56a8fe78
DD
41914 r=`${PWD_COMMAND}`; export r; \
41915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41916 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41917 echo "Doing pdf in $(TARGET_SUBDIR)/winsup" ; \
56a8fe78
DD
41918 for flag in $(EXTRA_TARGET_FLAGS); do \
41919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41920 done; \
a90ef4bf 41921 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
41922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41924 "RANLIB=$${RANLIB}" \
0c24b341 41925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41926 pdf) \
41927 || exit 1
41928
a90ef4bf 41929@endif target-winsup
56a8fe78 41930
a90ef4bf
JM
41931.PHONY: maybe-html-target-winsup html-target-winsup
41932maybe-html-target-winsup:
41933@if target-winsup
41934maybe-html-target-winsup: html-target-winsup
6d389afc 41935
a90ef4bf
JM
41936html-target-winsup: \
41937 configure-target-winsup
0aed8855 41938 @: $(MAKE); $(unstage)
a90ef4bf 41939 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
6d389afc
MS
41940 r=`${PWD_COMMAND}`; export r; \
41941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41942 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41943 echo "Doing html in $(TARGET_SUBDIR)/winsup" ; \
6d389afc
MS
41944 for flag in $(EXTRA_TARGET_FLAGS); do \
41945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41946 done; \
a90ef4bf 41947 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
41948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41950 "RANLIB=$${RANLIB}" \
0c24b341 41951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41952 html) \
41953 || exit 1
41954
a90ef4bf 41955@endif target-winsup
6d389afc 41956
a90ef4bf
JM
41957.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
41958maybe-TAGS-target-winsup:
41959@if target-winsup
41960maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 41961
a90ef4bf
JM
41962TAGS-target-winsup: \
41963 configure-target-winsup
0aed8855 41964 @: $(MAKE); $(unstage)
a90ef4bf 41965 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
41966 r=`${PWD_COMMAND}`; export r; \
41967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41968 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41969 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
41970 for flag in $(EXTRA_TARGET_FLAGS); do \
41971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41972 done; \
a90ef4bf 41973 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
41974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41976 "RANLIB=$${RANLIB}" \
0c24b341 41977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41978 TAGS) \
4fa63067
NN
41979 || exit 1
41980
a90ef4bf 41981@endif target-winsup
4fa63067 41982
a90ef4bf
JM
41983.PHONY: maybe-install-info-target-winsup install-info-target-winsup
41984maybe-install-info-target-winsup:
41985@if target-winsup
41986maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 41987
a90ef4bf
JM
41988install-info-target-winsup: \
41989 configure-target-winsup \
41990 info-target-winsup
0aed8855 41991 @: $(MAKE); $(unstage)
a90ef4bf 41992 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
41993 r=`${PWD_COMMAND}`; export r; \
41994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41995 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41996 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
41997 for flag in $(EXTRA_TARGET_FLAGS); do \
41998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41999 done; \
a90ef4bf 42000 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42003 "RANLIB=$${RANLIB}" \
0c24b341 42004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42005 install-info) \
4fa63067
NN
42006 || exit 1
42007
a90ef4bf 42008@endif target-winsup
4fa63067 42009
a90ef4bf
JM
42010.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
42011maybe-install-pdf-target-winsup:
42012@if target-winsup
42013maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 42014
a90ef4bf
JM
42015install-pdf-target-winsup: \
42016 configure-target-winsup \
42017 pdf-target-winsup
a3ca38d2 42018 @: $(MAKE); $(unstage)
a90ef4bf 42019 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
a3ca38d2
DD
42020 r=`${PWD_COMMAND}`; export r; \
42021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42022 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42023 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup" ; \
a3ca38d2
DD
42024 for flag in $(EXTRA_TARGET_FLAGS); do \
42025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42026 done; \
a90ef4bf 42027 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
42028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42030 "RANLIB=$${RANLIB}" \
0c24b341 42031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42032 install-pdf) \
42033 || exit 1
42034
a90ef4bf 42035@endif target-winsup
a3ca38d2 42036
a90ef4bf
JM
42037.PHONY: maybe-install-html-target-winsup install-html-target-winsup
42038maybe-install-html-target-winsup:
42039@if target-winsup
42040maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 42041
a90ef4bf
JM
42042install-html-target-winsup: \
42043 configure-target-winsup \
42044 html-target-winsup
108a6f8e 42045 @: $(MAKE); $(unstage)
a90ef4bf 42046 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
108a6f8e
CD
42047 r=`${PWD_COMMAND}`; export r; \
42048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42049 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42050 echo "Doing install-html in $(TARGET_SUBDIR)/winsup" ; \
108a6f8e
CD
42051 for flag in $(EXTRA_TARGET_FLAGS); do \
42052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42053 done; \
a90ef4bf 42054 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
42055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42057 "RANLIB=$${RANLIB}" \
0c24b341 42058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42059 install-html) \
42060 || exit 1
42061
a90ef4bf 42062@endif target-winsup
108a6f8e 42063
a90ef4bf
JM
42064.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
42065maybe-installcheck-target-winsup:
42066@if target-winsup
42067maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 42068
a90ef4bf
JM
42069installcheck-target-winsup: \
42070 configure-target-winsup
0aed8855 42071 @: $(MAKE); $(unstage)
a90ef4bf 42072 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42073 r=`${PWD_COMMAND}`; export r; \
42074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42075 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42076 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42077 for flag in $(EXTRA_TARGET_FLAGS); do \
42078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42079 done; \
a90ef4bf 42080 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42083 "RANLIB=$${RANLIB}" \
0c24b341 42084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42085 installcheck) \
4fa63067
NN
42086 || exit 1
42087
a90ef4bf 42088@endif target-winsup
4fa63067 42089
a90ef4bf
JM
42090.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
42091maybe-mostlyclean-target-winsup:
42092@if target-winsup
42093maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 42094
a90ef4bf 42095mostlyclean-target-winsup:
0aed8855 42096 @: $(MAKE); $(unstage)
a90ef4bf 42097 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42098 r=`${PWD_COMMAND}`; export r; \
42099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42100 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42101 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42102 for flag in $(EXTRA_TARGET_FLAGS); do \
42103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42104 done; \
a90ef4bf 42105 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42108 "RANLIB=$${RANLIB}" \
0c24b341 42109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42110 mostlyclean) \
4fa63067
NN
42111 || exit 1
42112
a90ef4bf 42113@endif target-winsup
4fa63067 42114
a90ef4bf
JM
42115.PHONY: maybe-clean-target-winsup clean-target-winsup
42116maybe-clean-target-winsup:
42117@if target-winsup
42118maybe-clean-target-winsup: clean-target-winsup
4fa63067 42119
a90ef4bf 42120clean-target-winsup:
0aed8855 42121 @: $(MAKE); $(unstage)
a90ef4bf 42122 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42123 r=`${PWD_COMMAND}`; export r; \
42124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42125 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42126 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42127 for flag in $(EXTRA_TARGET_FLAGS); do \
42128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42129 done; \
a90ef4bf 42130 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42133 "RANLIB=$${RANLIB}" \
0c24b341 42134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42135 clean) \
4fa63067
NN
42136 || exit 1
42137
a90ef4bf 42138@endif target-winsup
4fa63067 42139
a90ef4bf
JM
42140.PHONY: maybe-distclean-target-winsup distclean-target-winsup
42141maybe-distclean-target-winsup:
42142@if target-winsup
42143maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 42144
a90ef4bf 42145distclean-target-winsup:
0aed8855 42146 @: $(MAKE); $(unstage)
a90ef4bf 42147 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42148 r=`${PWD_COMMAND}`; export r; \
42149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42150 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42151 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42152 for flag in $(EXTRA_TARGET_FLAGS); do \
42153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42154 done; \
a90ef4bf 42155 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42158 "RANLIB=$${RANLIB}" \
0c24b341 42159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42160 distclean) \
4fa63067
NN
42161 || exit 1
42162
a90ef4bf 42163@endif target-winsup
4fa63067 42164
a90ef4bf
JM
42165.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
42166maybe-maintainer-clean-target-winsup:
42167@if target-winsup
42168maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 42169
a90ef4bf 42170maintainer-clean-target-winsup:
0aed8855 42171 @: $(MAKE); $(unstage)
a90ef4bf 42172 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
4fa63067
NN
42173 r=`${PWD_COMMAND}`; export r; \
42174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42175 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42176 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
4fa63067
NN
42177 for flag in $(EXTRA_TARGET_FLAGS); do \
42178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42179 done; \
a90ef4bf 42180 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42183 "RANLIB=$${RANLIB}" \
0c24b341 42184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42185 maintainer-clean) \
4fa63067 42186 || exit 1
16ae0395 42187
a90ef4bf 42188@endif target-winsup
e393202e
NN
42189
42190
15723a45 42191
e90269c8 42192
a7254363 42193
a90ef4bf
JM
42194.PHONY: configure-target-libgloss maybe-configure-target-libgloss
42195maybe-configure-target-libgloss:
4f0ef2d8 42196@if gcc-bootstrap
a90ef4bf 42197configure-target-libgloss: stage_current
4f0ef2d8 42198@endif gcc-bootstrap
a90ef4bf
JM
42199@if target-libgloss
42200maybe-configure-target-libgloss: configure-target-libgloss
42201configure-target-libgloss:
0aed8855
PB
42202 @: $(MAKE); $(unstage)
42203 @r=`${PWD_COMMAND}`; export r; \
42204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
42205 echo "Checking multilib configuration for libgloss..."; \
42206 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
42207 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null ; \
42208 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
42209 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
42210 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 42211 else \
a90ef4bf
JM
42212 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
42213 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
42214 fi; \
42215 else \
a90ef4bf 42216 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 42217 fi; \
a90ef4bf
JM
42218 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
42219 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
1f53ca9a 42220 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42221 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
42222 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 42223 case $(srcdir) in \
b00612cc 42224 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42225 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 42226 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 42227 esac; \
1b6c0831 42228 module_srcdir=libgloss; \
bba45b8b 42229 rm -f no-such-file || : ; \
1b6c0831
L
42230 CONFIG_SITE=no-such-file $(SHELL) \
42231 $$s/$$module_srcdir/configure \
42232 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42233 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42234 --target=${target_alias} \
bba45b8b 42235 || exit 1
a90ef4bf 42236@endif target-libgloss
e393202e 42237
a7254363
PB
42238
42239
d545f33b
PB
42240
42241
a90ef4bf
JM
42242.PHONY: all-target-libgloss maybe-all-target-libgloss
42243maybe-all-target-libgloss:
4f0ef2d8 42244@if gcc-bootstrap
a90ef4bf 42245all-target-libgloss: stage_current
4f0ef2d8 42246@endif gcc-bootstrap
a90ef4bf
JM
42247@if target-libgloss
42248TARGET-target-libgloss=all
42249maybe-all-target-libgloss: all-target-libgloss
42250all-target-libgloss: configure-target-libgloss
0aed8855 42251 @: $(MAKE); $(unstage)
b40e3958
L
42252 @r=`${PWD_COMMAND}`; export r; \
42253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42254 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42255 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 42256 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42257 $(TARGET-target-libgloss))
42258@endif target-libgloss
e393202e 42259
a7254363
PB
42260
42261
d545f33b
PB
42262
42263
a90ef4bf
JM
42264.PHONY: check-target-libgloss maybe-check-target-libgloss
42265maybe-check-target-libgloss:
42266@if target-libgloss
42267maybe-check-target-libgloss: check-target-libgloss
16ae0395 42268
a90ef4bf
JM
42269# Dummy target for uncheckable module.
42270check-target-libgloss:
930314a4 42271
a90ef4bf 42272@endif target-libgloss
e393202e 42273
a90ef4bf
JM
42274.PHONY: install-target-libgloss maybe-install-target-libgloss
42275maybe-install-target-libgloss:
42276@if target-libgloss
42277maybe-install-target-libgloss: install-target-libgloss
4fa63067 42278
a90ef4bf 42279install-target-libgloss: installdirs
0aed8855 42280 @: $(MAKE); $(unstage)
4fa63067
NN
42281 @r=`${PWD_COMMAND}`; export r; \
42282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42283 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42284 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 42285 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 42286
a90ef4bf 42287@endif target-libgloss
4fa63067 42288
a90ef4bf
JM
42289.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
42290maybe-install-strip-target-libgloss:
42291@if target-libgloss
42292maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 42293
a90ef4bf 42294install-strip-target-libgloss: installdirs
9b980aa1
RW
42295 @: $(MAKE); $(unstage)
42296 @r=`${PWD_COMMAND}`; export r; \
42297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42298 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42299 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
42300 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42301
a90ef4bf 42302@endif target-libgloss
9b980aa1 42303
56a8fe78 42304# Other targets (info, dvi, pdf, etc.)
4fa63067 42305
a90ef4bf
JM
42306.PHONY: maybe-info-target-libgloss info-target-libgloss
42307maybe-info-target-libgloss:
42308@if target-libgloss
42309maybe-info-target-libgloss: info-target-libgloss
4fa63067 42310
a90ef4bf
JM
42311info-target-libgloss: \
42312 configure-target-libgloss
0aed8855 42313 @: $(MAKE); $(unstage)
a90ef4bf 42314 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42315 r=`${PWD_COMMAND}`; export r; \
42316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42317 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42318 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42319 for flag in $(EXTRA_TARGET_FLAGS); do \
42320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42321 done; \
a90ef4bf 42322 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42325 "RANLIB=$${RANLIB}" \
0c24b341 42326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42327 info) \
4fa63067
NN
42328 || exit 1
42329
a90ef4bf 42330@endif target-libgloss
4fa63067 42331
a90ef4bf
JM
42332.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
42333maybe-dvi-target-libgloss:
42334@if target-libgloss
42335maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 42336
a90ef4bf
JM
42337dvi-target-libgloss: \
42338 configure-target-libgloss
0aed8855 42339 @: $(MAKE); $(unstage)
a90ef4bf 42340 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42341 r=`${PWD_COMMAND}`; export r; \
42342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42343 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42344 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42345 for flag in $(EXTRA_TARGET_FLAGS); do \
42346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42347 done; \
a90ef4bf 42348 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42351 "RANLIB=$${RANLIB}" \
0c24b341 42352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42353 dvi) \
4fa63067
NN
42354 || exit 1
42355
a90ef4bf 42356@endif target-libgloss
4fa63067 42357
a90ef4bf
JM
42358.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
42359maybe-pdf-target-libgloss:
42360@if target-libgloss
42361maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 42362
a90ef4bf
JM
42363pdf-target-libgloss: \
42364 configure-target-libgloss
56a8fe78 42365 @: $(MAKE); $(unstage)
a90ef4bf 42366 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
56a8fe78
DD
42367 r=`${PWD_COMMAND}`; export r; \
42368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42369 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42370 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss" ; \
56a8fe78
DD
42371 for flag in $(EXTRA_TARGET_FLAGS); do \
42372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42373 done; \
a90ef4bf 42374 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
42375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42377 "RANLIB=$${RANLIB}" \
0c24b341 42378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42379 pdf) \
42380 || exit 1
42381
a90ef4bf 42382@endif target-libgloss
56a8fe78 42383
a90ef4bf
JM
42384.PHONY: maybe-html-target-libgloss html-target-libgloss
42385maybe-html-target-libgloss:
42386@if target-libgloss
42387maybe-html-target-libgloss: html-target-libgloss
6d389afc 42388
a90ef4bf
JM
42389html-target-libgloss: \
42390 configure-target-libgloss
0aed8855 42391 @: $(MAKE); $(unstage)
a90ef4bf 42392 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
6d389afc
MS
42393 r=`${PWD_COMMAND}`; export r; \
42394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42395 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42396 echo "Doing html in $(TARGET_SUBDIR)/libgloss" ; \
6d389afc
MS
42397 for flag in $(EXTRA_TARGET_FLAGS); do \
42398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42399 done; \
a90ef4bf 42400 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
42401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42403 "RANLIB=$${RANLIB}" \
0c24b341 42404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42405 html) \
42406 || exit 1
42407
a90ef4bf 42408@endif target-libgloss
6d389afc 42409
a90ef4bf
JM
42410.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
42411maybe-TAGS-target-libgloss:
42412@if target-libgloss
42413maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 42414
a90ef4bf
JM
42415TAGS-target-libgloss: \
42416 configure-target-libgloss
0aed8855 42417 @: $(MAKE); $(unstage)
a90ef4bf 42418 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42419 r=`${PWD_COMMAND}`; export r; \
42420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42421 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42422 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42423 for flag in $(EXTRA_TARGET_FLAGS); do \
42424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42425 done; \
a90ef4bf 42426 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42429 "RANLIB=$${RANLIB}" \
0c24b341 42430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42431 TAGS) \
4fa63067
NN
42432 || exit 1
42433
a90ef4bf 42434@endif target-libgloss
4fa63067 42435
a90ef4bf
JM
42436.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
42437maybe-install-info-target-libgloss:
42438@if target-libgloss
42439maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 42440
a90ef4bf
JM
42441install-info-target-libgloss: \
42442 configure-target-libgloss \
42443 info-target-libgloss
0aed8855 42444 @: $(MAKE); $(unstage)
a90ef4bf 42445 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42446 r=`${PWD_COMMAND}`; export r; \
42447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42448 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42449 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42450 for flag in $(EXTRA_TARGET_FLAGS); do \
42451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42452 done; \
a90ef4bf 42453 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42456 "RANLIB=$${RANLIB}" \
0c24b341 42457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42458 install-info) \
4fa63067
NN
42459 || exit 1
42460
a90ef4bf 42461@endif target-libgloss
4fa63067 42462
a90ef4bf
JM
42463.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
42464maybe-install-pdf-target-libgloss:
42465@if target-libgloss
42466maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 42467
a90ef4bf
JM
42468install-pdf-target-libgloss: \
42469 configure-target-libgloss \
42470 pdf-target-libgloss
a3ca38d2 42471 @: $(MAKE); $(unstage)
a90ef4bf 42472 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
a3ca38d2
DD
42473 r=`${PWD_COMMAND}`; export r; \
42474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42475 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42476 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss" ; \
a3ca38d2
DD
42477 for flag in $(EXTRA_TARGET_FLAGS); do \
42478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42479 done; \
a90ef4bf 42480 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
42481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42483 "RANLIB=$${RANLIB}" \
0c24b341 42484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42485 install-pdf) \
42486 || exit 1
42487
a90ef4bf 42488@endif target-libgloss
a3ca38d2 42489
a90ef4bf
JM
42490.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
42491maybe-install-html-target-libgloss:
42492@if target-libgloss
42493maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 42494
a90ef4bf
JM
42495install-html-target-libgloss: \
42496 configure-target-libgloss \
42497 html-target-libgloss
108a6f8e 42498 @: $(MAKE); $(unstage)
a90ef4bf 42499 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
108a6f8e
CD
42500 r=`${PWD_COMMAND}`; export r; \
42501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42502 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42503 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss" ; \
108a6f8e
CD
42504 for flag in $(EXTRA_TARGET_FLAGS); do \
42505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42506 done; \
a90ef4bf 42507 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
42508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42510 "RANLIB=$${RANLIB}" \
0c24b341 42511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42512 install-html) \
42513 || exit 1
42514
a90ef4bf 42515@endif target-libgloss
108a6f8e 42516
a90ef4bf
JM
42517.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
42518maybe-installcheck-target-libgloss:
42519@if target-libgloss
42520maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 42521
a90ef4bf
JM
42522installcheck-target-libgloss: \
42523 configure-target-libgloss
0aed8855 42524 @: $(MAKE); $(unstage)
a90ef4bf 42525 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42526 r=`${PWD_COMMAND}`; export r; \
42527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42528 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42529 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42530 for flag in $(EXTRA_TARGET_FLAGS); do \
42531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42532 done; \
a90ef4bf 42533 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42536 "RANLIB=$${RANLIB}" \
0c24b341 42537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42538 installcheck) \
4fa63067
NN
42539 || exit 1
42540
a90ef4bf 42541@endif target-libgloss
4fa63067 42542
a90ef4bf
JM
42543.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
42544maybe-mostlyclean-target-libgloss:
42545@if target-libgloss
42546maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 42547
a90ef4bf 42548mostlyclean-target-libgloss:
0aed8855 42549 @: $(MAKE); $(unstage)
a90ef4bf 42550 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42551 r=`${PWD_COMMAND}`; export r; \
42552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42553 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42554 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42555 for flag in $(EXTRA_TARGET_FLAGS); do \
42556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42557 done; \
a90ef4bf 42558 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42561 "RANLIB=$${RANLIB}" \
0c24b341 42562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42563 mostlyclean) \
4fa63067
NN
42564 || exit 1
42565
a90ef4bf 42566@endif target-libgloss
4fa63067 42567
a90ef4bf
JM
42568.PHONY: maybe-clean-target-libgloss clean-target-libgloss
42569maybe-clean-target-libgloss:
42570@if target-libgloss
42571maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 42572
a90ef4bf 42573clean-target-libgloss:
0aed8855 42574 @: $(MAKE); $(unstage)
a90ef4bf 42575 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42576 r=`${PWD_COMMAND}`; export r; \
42577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42578 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42579 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42580 for flag in $(EXTRA_TARGET_FLAGS); do \
42581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42582 done; \
a90ef4bf 42583 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42586 "RANLIB=$${RANLIB}" \
0c24b341 42587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42588 clean) \
4fa63067
NN
42589 || exit 1
42590
a90ef4bf 42591@endif target-libgloss
4fa63067 42592
a90ef4bf
JM
42593.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
42594maybe-distclean-target-libgloss:
42595@if target-libgloss
42596maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 42597
a90ef4bf 42598distclean-target-libgloss:
0aed8855 42599 @: $(MAKE); $(unstage)
a90ef4bf 42600 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42601 r=`${PWD_COMMAND}`; export r; \
42602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42603 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42604 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42605 for flag in $(EXTRA_TARGET_FLAGS); do \
42606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42607 done; \
a90ef4bf 42608 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42611 "RANLIB=$${RANLIB}" \
0c24b341 42612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42613 distclean) \
4fa63067
NN
42614 || exit 1
42615
a90ef4bf 42616@endif target-libgloss
4fa63067 42617
a90ef4bf
JM
42618.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
42619maybe-maintainer-clean-target-libgloss:
42620@if target-libgloss
42621maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 42622
a90ef4bf 42623maintainer-clean-target-libgloss:
0aed8855 42624 @: $(MAKE); $(unstage)
a90ef4bf 42625 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
4fa63067
NN
42626 r=`${PWD_COMMAND}`; export r; \
42627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42628 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42629 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
4fa63067
NN
42630 for flag in $(EXTRA_TARGET_FLAGS); do \
42631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42632 done; \
a90ef4bf 42633 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42636 "RANLIB=$${RANLIB}" \
0c24b341 42637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42638 maintainer-clean) \
4fa63067 42639 || exit 1
16ae0395 42640
a90ef4bf 42641@endif target-libgloss
e393202e
NN
42642
42643
15723a45 42644
a7254363
PB
42645
42646
a7254363
PB
42647.PHONY: configure-target-libffi maybe-configure-target-libffi
42648maybe-configure-target-libffi:
4f0ef2d8
CD
42649@if gcc-bootstrap
42650configure-target-libffi: stage_current
42651@endif gcc-bootstrap
a7254363
PB
42652@if target-libffi
42653maybe-configure-target-libffi: configure-target-libffi
c52c6897 42654configure-target-libffi:
0aed8855
PB
42655 @: $(MAKE); $(unstage)
42656 @r=`${PWD_COMMAND}`; export r; \
42657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42658 echo "Checking multilib configuration for libffi..."; \
42659 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
42660 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null ; \
42661 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
42662 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
42663 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
42664 else \
42665 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
42666 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
42667 fi; \
42668 else \
42669 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
42670 fi; \
42671 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
4fa63067 42672 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
1f53ca9a 42673 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42674 echo Configuring in $(TARGET_SUBDIR)/libffi; \
42675 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 42676 case $(srcdir) in \
b00612cc
PB
42677 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42678 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
42679 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 42680 esac; \
1b6c0831 42681 module_srcdir=libffi; \
bba45b8b 42682 rm -f no-such-file || : ; \
1b6c0831
L
42683 CONFIG_SITE=no-such-file $(SHELL) \
42684 $$s/$$module_srcdir/configure \
42685 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42686 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42687 --target=${target_alias} \
bba45b8b 42688 || exit 1
6bd3dfaa 42689@endif target-libffi
e393202e 42690
a7254363
PB
42691
42692
d545f33b
PB
42693
42694
4fa63067
NN
42695.PHONY: all-target-libffi maybe-all-target-libffi
42696maybe-all-target-libffi:
4f0ef2d8
CD
42697@if gcc-bootstrap
42698all-target-libffi: stage_current
42699@endif gcc-bootstrap
6bd3dfaa 42700@if target-libffi
72b2455a 42701TARGET-target-libffi=all
6bd3dfaa 42702maybe-all-target-libffi: all-target-libffi
4fa63067 42703all-target-libffi: configure-target-libffi
0aed8855 42704 @: $(MAKE); $(unstage)
b40e3958
L
42705 @r=`${PWD_COMMAND}`; export r; \
42706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42707 $(NORMAL_TARGET_EXPORTS) \
4fa63067 42708 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 42709 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 42710 $(TARGET-target-libffi))
6bd3dfaa 42711@endif target-libffi
e393202e 42712
a7254363
PB
42713
42714
d545f33b
PB
42715
42716
4fa63067
NN
42717.PHONY: check-target-libffi maybe-check-target-libffi
42718maybe-check-target-libffi:
6bd3dfaa
PB
42719@if target-libffi
42720maybe-check-target-libffi: check-target-libffi
16ae0395 42721
4fa63067 42722check-target-libffi:
0aed8855 42723 @: $(MAKE); $(unstage)
b40e3958
L
42724 @r=`${PWD_COMMAND}`; export r; \
42725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42726 $(NORMAL_TARGET_EXPORTS) \
4fa63067 42727 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 42728 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 42729
6bd3dfaa 42730@endif target-libffi
e393202e 42731
4fa63067
NN
42732.PHONY: install-target-libffi maybe-install-target-libffi
42733maybe-install-target-libffi:
6bd3dfaa
PB
42734@if target-libffi
42735maybe-install-target-libffi: install-target-libffi
16ae0395 42736
b836cb18
JBG
42737# Dummy target for uninstallable.
42738install-target-libffi:
e393202e 42739
6bd3dfaa 42740@endif target-libffi
e393202e 42741
9b980aa1
RW
42742.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
42743maybe-install-strip-target-libffi:
42744@if target-libffi
42745maybe-install-strip-target-libffi: install-strip-target-libffi
42746
b836cb18
JBG
42747# Dummy target for uninstallable.
42748install-strip-target-libffi:
9b980aa1
RW
42749
42750@endif target-libffi
42751
56a8fe78 42752# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
42753
42754.PHONY: maybe-info-target-libffi info-target-libffi
42755maybe-info-target-libffi:
6bd3dfaa
PB
42756@if target-libffi
42757maybe-info-target-libffi: info-target-libffi
4fa63067
NN
42758
42759info-target-libffi: \
42760 configure-target-libffi
0aed8855 42761 @: $(MAKE); $(unstage)
4fa63067
NN
42762 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42763 r=`${PWD_COMMAND}`; export r; \
42764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42765 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42766 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
42767 for flag in $(EXTRA_TARGET_FLAGS); do \
42768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42769 done; \
42770 (cd $(TARGET_SUBDIR)/libffi && \
42771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42773 "RANLIB=$${RANLIB}" \
0c24b341 42774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42775 info) \
4fa63067
NN
42776 || exit 1
42777
6bd3dfaa 42778@endif target-libffi
4fa63067
NN
42779
42780.PHONY: maybe-dvi-target-libffi dvi-target-libffi
42781maybe-dvi-target-libffi:
6bd3dfaa
PB
42782@if target-libffi
42783maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
42784
42785dvi-target-libffi: \
42786 configure-target-libffi
0aed8855 42787 @: $(MAKE); $(unstage)
4fa63067
NN
42788 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42789 r=`${PWD_COMMAND}`; export r; \
42790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42791 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42792 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
42793 for flag in $(EXTRA_TARGET_FLAGS); do \
42794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42795 done; \
42796 (cd $(TARGET_SUBDIR)/libffi && \
42797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42799 "RANLIB=$${RANLIB}" \
0c24b341 42800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42801 dvi) \
4fa63067
NN
42802 || exit 1
42803
6bd3dfaa 42804@endif target-libffi
4fa63067 42805
56a8fe78
DD
42806.PHONY: maybe-pdf-target-libffi pdf-target-libffi
42807maybe-pdf-target-libffi:
42808@if target-libffi
42809maybe-pdf-target-libffi: pdf-target-libffi
42810
42811pdf-target-libffi: \
42812 configure-target-libffi
42813 @: $(MAKE); $(unstage)
42814 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42815 r=`${PWD_COMMAND}`; export r; \
42816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42817 $(NORMAL_TARGET_EXPORTS) \
42818 echo "Doing pdf in $(TARGET_SUBDIR)/libffi" ; \
42819 for flag in $(EXTRA_TARGET_FLAGS); do \
42820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42821 done; \
42822 (cd $(TARGET_SUBDIR)/libffi && \
42823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42825 "RANLIB=$${RANLIB}" \
0c24b341 42826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42827 pdf) \
42828 || exit 1
42829
42830@endif target-libffi
42831
6d389afc
MS
42832.PHONY: maybe-html-target-libffi html-target-libffi
42833maybe-html-target-libffi:
42834@if target-libffi
42835maybe-html-target-libffi: html-target-libffi
42836
42837html-target-libffi: \
42838 configure-target-libffi
0aed8855 42839 @: $(MAKE); $(unstage)
6d389afc
MS
42840 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42841 r=`${PWD_COMMAND}`; export r; \
42842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
42843 $(NORMAL_TARGET_EXPORTS) \
42844 echo "Doing html in $(TARGET_SUBDIR)/libffi" ; \
42845 for flag in $(EXTRA_TARGET_FLAGS); do \
42846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42847 done; \
42848 (cd $(TARGET_SUBDIR)/libffi && \
42849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42851 "RANLIB=$${RANLIB}" \
0c24b341 42852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42853 html) \
42854 || exit 1
42855
42856@endif target-libffi
42857
4fa63067
NN
42858.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
42859maybe-TAGS-target-libffi:
6bd3dfaa
PB
42860@if target-libffi
42861maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
42862
42863TAGS-target-libffi: \
42864 configure-target-libffi
0aed8855 42865 @: $(MAKE); $(unstage)
4fa63067
NN
42866 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42867 r=`${PWD_COMMAND}`; export r; \
42868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42869 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42870 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
42871 for flag in $(EXTRA_TARGET_FLAGS); do \
42872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42873 done; \
42874 (cd $(TARGET_SUBDIR)/libffi && \
42875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42877 "RANLIB=$${RANLIB}" \
0c24b341 42878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42879 TAGS) \
4fa63067
NN
42880 || exit 1
42881
6bd3dfaa 42882@endif target-libffi
4fa63067
NN
42883
42884.PHONY: maybe-install-info-target-libffi install-info-target-libffi
42885maybe-install-info-target-libffi:
6bd3dfaa
PB
42886@if target-libffi
42887maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
42888
42889install-info-target-libffi: \
42890 configure-target-libffi \
42891 info-target-libffi
0aed8855 42892 @: $(MAKE); $(unstage)
4fa63067
NN
42893 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42894 r=`${PWD_COMMAND}`; export r; \
42895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42896 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42897 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
42898 for flag in $(EXTRA_TARGET_FLAGS); do \
42899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42900 done; \
42901 (cd $(TARGET_SUBDIR)/libffi && \
42902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42904 "RANLIB=$${RANLIB}" \
0c24b341 42905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42906 install-info) \
4fa63067
NN
42907 || exit 1
42908
6bd3dfaa 42909@endif target-libffi
4fa63067 42910
a3ca38d2
DD
42911.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
42912maybe-install-pdf-target-libffi:
42913@if target-libffi
42914maybe-install-pdf-target-libffi: install-pdf-target-libffi
42915
42916install-pdf-target-libffi: \
42917 configure-target-libffi \
42918 pdf-target-libffi
42919 @: $(MAKE); $(unstage)
42920 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42921 r=`${PWD_COMMAND}`; export r; \
42922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42923 $(NORMAL_TARGET_EXPORTS) \
42924 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi" ; \
42925 for flag in $(EXTRA_TARGET_FLAGS); do \
42926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42927 done; \
42928 (cd $(TARGET_SUBDIR)/libffi && \
42929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42931 "RANLIB=$${RANLIB}" \
0c24b341 42932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42933 install-pdf) \
42934 || exit 1
42935
42936@endif target-libffi
42937
108a6f8e
CD
42938.PHONY: maybe-install-html-target-libffi install-html-target-libffi
42939maybe-install-html-target-libffi:
42940@if target-libffi
42941maybe-install-html-target-libffi: install-html-target-libffi
42942
42943install-html-target-libffi: \
42944 configure-target-libffi \
42945 html-target-libffi
42946 @: $(MAKE); $(unstage)
42947 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42948 r=`${PWD_COMMAND}`; export r; \
42949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42950 $(NORMAL_TARGET_EXPORTS) \
42951 echo "Doing install-html in $(TARGET_SUBDIR)/libffi" ; \
42952 for flag in $(EXTRA_TARGET_FLAGS); do \
42953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42954 done; \
42955 (cd $(TARGET_SUBDIR)/libffi && \
42956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42958 "RANLIB=$${RANLIB}" \
0c24b341 42959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42960 install-html) \
42961 || exit 1
42962
42963@endif target-libffi
42964
4fa63067
NN
42965.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
42966maybe-installcheck-target-libffi:
6bd3dfaa
PB
42967@if target-libffi
42968maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
42969
42970installcheck-target-libffi: \
42971 configure-target-libffi
0aed8855 42972 @: $(MAKE); $(unstage)
4fa63067
NN
42973 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42974 r=`${PWD_COMMAND}`; export r; \
42975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42976 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
42977 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
42978 for flag in $(EXTRA_TARGET_FLAGS); do \
42979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42980 done; \
42981 (cd $(TARGET_SUBDIR)/libffi && \
42982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42984 "RANLIB=$${RANLIB}" \
0c24b341 42985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42986 installcheck) \
4fa63067
NN
42987 || exit 1
42988
6bd3dfaa 42989@endif target-libffi
4fa63067
NN
42990
42991.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
42992maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
42993@if target-libffi
42994maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
42995
42996mostlyclean-target-libffi:
0aed8855 42997 @: $(MAKE); $(unstage)
4fa63067
NN
42998 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
42999 r=`${PWD_COMMAND}`; export r; \
43000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43001 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43002 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
43003 for flag in $(EXTRA_TARGET_FLAGS); do \
43004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43005 done; \
43006 (cd $(TARGET_SUBDIR)/libffi && \
43007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43009 "RANLIB=$${RANLIB}" \
0c24b341 43010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43011 mostlyclean) \
4fa63067
NN
43012 || exit 1
43013
6bd3dfaa 43014@endif target-libffi
4fa63067
NN
43015
43016.PHONY: maybe-clean-target-libffi clean-target-libffi
43017maybe-clean-target-libffi:
6bd3dfaa
PB
43018@if target-libffi
43019maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
43020
43021clean-target-libffi:
0aed8855 43022 @: $(MAKE); $(unstage)
4fa63067
NN
43023 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
43024 r=`${PWD_COMMAND}`; export r; \
43025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43026 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43027 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
43028 for flag in $(EXTRA_TARGET_FLAGS); do \
43029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43030 done; \
43031 (cd $(TARGET_SUBDIR)/libffi && \
43032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43034 "RANLIB=$${RANLIB}" \
0c24b341 43035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43036 clean) \
4fa63067
NN
43037 || exit 1
43038
6bd3dfaa 43039@endif target-libffi
4fa63067
NN
43040
43041.PHONY: maybe-distclean-target-libffi distclean-target-libffi
43042maybe-distclean-target-libffi:
6bd3dfaa
PB
43043@if target-libffi
43044maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
43045
43046distclean-target-libffi:
0aed8855 43047 @: $(MAKE); $(unstage)
4fa63067
NN
43048 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
43049 r=`${PWD_COMMAND}`; export r; \
43050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43051 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43052 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
43053 for flag in $(EXTRA_TARGET_FLAGS); do \
43054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43055 done; \
43056 (cd $(TARGET_SUBDIR)/libffi && \
43057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43059 "RANLIB=$${RANLIB}" \
0c24b341 43060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43061 distclean) \
4fa63067
NN
43062 || exit 1
43063
6bd3dfaa 43064@endif target-libffi
4fa63067
NN
43065
43066.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
43067maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
43068@if target-libffi
43069maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
43070
43071maintainer-clean-target-libffi:
0aed8855 43072 @: $(MAKE); $(unstage)
4fa63067
NN
43073 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
43074 r=`${PWD_COMMAND}`; export r; \
43075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43076 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43077 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
43078 for flag in $(EXTRA_TARGET_FLAGS); do \
43079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43080 done; \
43081 (cd $(TARGET_SUBDIR)/libffi && \
43082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43084 "RANLIB=$${RANLIB}" \
0c24b341 43085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43086 maintainer-clean) \
4fa63067
NN
43087 || exit 1
43088
6bd3dfaa 43089@endif target-libffi
4fa63067
NN
43090
43091
15723a45 43092
a7254363 43093
15723a45 43094
a7254363
PB
43095.PHONY: configure-target-libjava maybe-configure-target-libjava
43096maybe-configure-target-libjava:
4f0ef2d8
CD
43097@if gcc-bootstrap
43098configure-target-libjava: stage_current
43099@endif gcc-bootstrap
a7254363
PB
43100@if target-libjava
43101maybe-configure-target-libjava: configure-target-libjava
c52c6897 43102configure-target-libjava:
0aed8855
PB
43103 @: $(MAKE); $(unstage)
43104 @r=`${PWD_COMMAND}`; export r; \
43105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43106 echo "Checking multilib configuration for libjava..."; \
43107 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
43108 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null ; \
43109 if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \
43110 if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \
43111 rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \
43112 else \
43113 rm -f $(TARGET_SUBDIR)/libjava/Makefile; \
43114 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
43115 fi; \
43116 else \
43117 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
c52c6897
PB
43118 fi; \
43119 test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
4fa63067 43120 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
1f53ca9a 43121 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43122 echo Configuring in $(TARGET_SUBDIR)/libjava; \
43123 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
bba45b8b 43124 case $(srcdir) in \
b00612cc
PB
43125 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43126 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
43127 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43128 esac; \
1b6c0831 43129 module_srcdir=libjava; \
bba45b8b 43130 rm -f no-such-file || : ; \
1b6c0831
L
43131 CONFIG_SITE=no-such-file $(SHELL) \
43132 $$s/$$module_srcdir/configure \
43133 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43134 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43135 --target=${target_alias} $(EXTRA_CONFIGARGS_LIBJAVA) \
bba45b8b 43136 || exit 1
6bd3dfaa 43137@endif target-libjava
e393202e 43138
a7254363
PB
43139
43140
d545f33b
PB
43141
43142
4fa63067
NN
43143.PHONY: all-target-libjava maybe-all-target-libjava
43144maybe-all-target-libjava:
4f0ef2d8
CD
43145@if gcc-bootstrap
43146all-target-libjava: stage_current
43147@endif gcc-bootstrap
6bd3dfaa 43148@if target-libjava
72b2455a 43149TARGET-target-libjava=all
6bd3dfaa 43150maybe-all-target-libjava: all-target-libjava
4fa63067 43151all-target-libjava: configure-target-libjava
0aed8855 43152 @: $(MAKE); $(unstage)
b40e3958
L
43153 @r=`${PWD_COMMAND}`; export r; \
43154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43155 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43156 (cd $(TARGET_SUBDIR)/libjava && \
b3676d82 43157 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
7f6ef0c0 43158 $(TARGET-target-libjava))
6bd3dfaa 43159@endif target-libjava
e393202e 43160
a7254363
PB
43161
43162
d545f33b
PB
43163
43164
4fa63067
NN
43165.PHONY: check-target-libjava maybe-check-target-libjava
43166maybe-check-target-libjava:
6bd3dfaa
PB
43167@if target-libjava
43168maybe-check-target-libjava: check-target-libjava
16ae0395 43169
4fa63067 43170check-target-libjava:
0aed8855 43171 @: $(MAKE); $(unstage)
4fa63067
NN
43172 @r=`${PWD_COMMAND}`; export r; \
43173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43174 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43175 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 43176 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 43177
6bd3dfaa 43178@endif target-libjava
930314a4 43179
4fa63067
NN
43180.PHONY: install-target-libjava maybe-install-target-libjava
43181maybe-install-target-libjava:
6bd3dfaa
PB
43182@if target-libjava
43183maybe-install-target-libjava: install-target-libjava
16ae0395 43184
4fa63067 43185install-target-libjava: installdirs
0aed8855 43186 @: $(MAKE); $(unstage)
b40e3958
L
43187 @r=`${PWD_COMMAND}`; export r; \
43188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43189 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43190 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 43191 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 43192
6bd3dfaa 43193@endif target-libjava
e393202e 43194
9b980aa1
RW
43195.PHONY: install-strip-target-libjava maybe-install-strip-target-libjava
43196maybe-install-strip-target-libjava:
43197@if target-libjava
43198maybe-install-strip-target-libjava: install-strip-target-libjava
43199
43200install-strip-target-libjava: installdirs
43201 @: $(MAKE); $(unstage)
43202 @r=`${PWD_COMMAND}`; export r; \
43203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43204 $(RAW_CXX_TARGET_EXPORTS) \
43205 (cd $(TARGET_SUBDIR)/libjava && \
43206 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43207
43208@endif target-libjava
43209
56a8fe78 43210# Other targets (info, dvi, pdf, etc.)
15723a45 43211
4fa63067
NN
43212.PHONY: maybe-info-target-libjava info-target-libjava
43213maybe-info-target-libjava:
6bd3dfaa
PB
43214@if target-libjava
43215maybe-info-target-libjava: info-target-libjava
15723a45 43216
4fa63067
NN
43217info-target-libjava: \
43218 configure-target-libjava
0aed8855 43219 @: $(MAKE); $(unstage)
4fa63067 43220 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
b40e3958
L
43221 r=`${PWD_COMMAND}`; export r; \
43222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43223 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43224 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
43225 for flag in $(EXTRA_TARGET_FLAGS); do \
43226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43227 done; \
43228 (cd $(TARGET_SUBDIR)/libjava && \
43229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43231 "RANLIB=$${RANLIB}" \
0c24b341 43232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43233 info) \
bba45b8b 43234 || exit 1
e393202e 43235
6bd3dfaa 43236@endif target-libjava
4fa63067
NN
43237
43238.PHONY: maybe-dvi-target-libjava dvi-target-libjava
43239maybe-dvi-target-libjava:
6bd3dfaa
PB
43240@if target-libjava
43241maybe-dvi-target-libjava: dvi-target-libjava
4fa63067
NN
43242
43243dvi-target-libjava: \
43244 configure-target-libjava
0aed8855 43245 @: $(MAKE); $(unstage)
4fa63067
NN
43246 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43247 r=`${PWD_COMMAND}`; export r; \
b40e3958 43248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43249 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43250 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
43251 for flag in $(EXTRA_TARGET_FLAGS); do \
43252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43253 done; \
43254 (cd $(TARGET_SUBDIR)/libjava && \
43255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43257 "RANLIB=$${RANLIB}" \
0c24b341 43258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43259 dvi) \
4fa63067 43260 || exit 1
e393202e 43261
6bd3dfaa 43262@endif target-libjava
16ae0395 43263
56a8fe78
DD
43264.PHONY: maybe-pdf-target-libjava pdf-target-libjava
43265maybe-pdf-target-libjava:
43266@if target-libjava
43267maybe-pdf-target-libjava: pdf-target-libjava
43268
43269pdf-target-libjava: \
43270 configure-target-libjava
43271 @: $(MAKE); $(unstage)
43272 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43273 r=`${PWD_COMMAND}`; export r; \
43274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43275 $(RAW_CXX_TARGET_EXPORTS) \
43276 echo "Doing pdf in $(TARGET_SUBDIR)/libjava" ; \
43277 for flag in $(EXTRA_TARGET_FLAGS); do \
43278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43279 done; \
43280 (cd $(TARGET_SUBDIR)/libjava && \
43281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43283 "RANLIB=$${RANLIB}" \
0c24b341 43284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43285 pdf) \
43286 || exit 1
43287
43288@endif target-libjava
43289
6d389afc
MS
43290.PHONY: maybe-html-target-libjava html-target-libjava
43291maybe-html-target-libjava:
43292@if target-libjava
43293maybe-html-target-libjava: html-target-libjava
43294
43295html-target-libjava: \
43296 configure-target-libjava
0aed8855 43297 @: $(MAKE); $(unstage)
6d389afc
MS
43298 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43299 r=`${PWD_COMMAND}`; export r; \
43300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
43301 $(RAW_CXX_TARGET_EXPORTS) \
43302 echo "Doing html in $(TARGET_SUBDIR)/libjava" ; \
43303 for flag in $(EXTRA_TARGET_FLAGS); do \
43304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43305 done; \
43306 (cd $(TARGET_SUBDIR)/libjava && \
43307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43309 "RANLIB=$${RANLIB}" \
0c24b341 43310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43311 html) \
43312 || exit 1
43313
43314@endif target-libjava
43315
4fa63067
NN
43316.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
43317maybe-TAGS-target-libjava:
6bd3dfaa
PB
43318@if target-libjava
43319maybe-TAGS-target-libjava: TAGS-target-libjava
4fa63067
NN
43320
43321TAGS-target-libjava: \
43322 configure-target-libjava
0aed8855 43323 @: $(MAKE); $(unstage)
4fa63067
NN
43324 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43325 r=`${PWD_COMMAND}`; export r; \
b40e3958 43326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43327 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43328 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
43329 for flag in $(EXTRA_TARGET_FLAGS); do \
43330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43331 done; \
43332 (cd $(TARGET_SUBDIR)/libjava && \
43333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43335 "RANLIB=$${RANLIB}" \
0c24b341 43336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43337 TAGS) \
4fa63067 43338 || exit 1
e393202e 43339
6bd3dfaa 43340@endif target-libjava
930314a4 43341
4fa63067
NN
43342.PHONY: maybe-install-info-target-libjava install-info-target-libjava
43343maybe-install-info-target-libjava:
6bd3dfaa
PB
43344@if target-libjava
43345maybe-install-info-target-libjava: install-info-target-libjava
16ae0395 43346
4fa63067
NN
43347install-info-target-libjava: \
43348 configure-target-libjava \
43349 info-target-libjava
0aed8855 43350 @: $(MAKE); $(unstage)
4fa63067
NN
43351 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43352 r=`${PWD_COMMAND}`; export r; \
b40e3958 43353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43354 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43355 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
43356 for flag in $(EXTRA_TARGET_FLAGS); do \
43357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43358 done; \
43359 (cd $(TARGET_SUBDIR)/libjava && \
43360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43362 "RANLIB=$${RANLIB}" \
0c24b341 43363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43364 install-info) \
4fa63067 43365 || exit 1
e393202e 43366
6bd3dfaa 43367@endif target-libjava
e393202e 43368
a3ca38d2
DD
43369.PHONY: maybe-install-pdf-target-libjava install-pdf-target-libjava
43370maybe-install-pdf-target-libjava:
43371@if target-libjava
43372maybe-install-pdf-target-libjava: install-pdf-target-libjava
43373
43374install-pdf-target-libjava: \
43375 configure-target-libjava \
43376 pdf-target-libjava
43377 @: $(MAKE); $(unstage)
43378 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43379 r=`${PWD_COMMAND}`; export r; \
43380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43381 $(RAW_CXX_TARGET_EXPORTS) \
43382 echo "Doing install-pdf in $(TARGET_SUBDIR)/libjava" ; \
43383 for flag in $(EXTRA_TARGET_FLAGS); do \
43384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43385 done; \
43386 (cd $(TARGET_SUBDIR)/libjava && \
43387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43389 "RANLIB=$${RANLIB}" \
0c24b341 43390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43391 install-pdf) \
43392 || exit 1
43393
43394@endif target-libjava
43395
108a6f8e
CD
43396.PHONY: maybe-install-html-target-libjava install-html-target-libjava
43397maybe-install-html-target-libjava:
43398@if target-libjava
43399maybe-install-html-target-libjava: install-html-target-libjava
43400
43401install-html-target-libjava: \
43402 configure-target-libjava \
43403 html-target-libjava
43404 @: $(MAKE); $(unstage)
43405 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43406 r=`${PWD_COMMAND}`; export r; \
43407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43408 $(RAW_CXX_TARGET_EXPORTS) \
43409 echo "Doing install-html in $(TARGET_SUBDIR)/libjava" ; \
43410 for flag in $(EXTRA_TARGET_FLAGS); do \
43411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43412 done; \
43413 (cd $(TARGET_SUBDIR)/libjava && \
43414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43416 "RANLIB=$${RANLIB}" \
0c24b341 43417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43418 install-html) \
43419 || exit 1
43420
43421@endif target-libjava
43422
4fa63067
NN
43423.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
43424maybe-installcheck-target-libjava:
6bd3dfaa
PB
43425@if target-libjava
43426maybe-installcheck-target-libjava: installcheck-target-libjava
15723a45 43427
4fa63067
NN
43428installcheck-target-libjava: \
43429 configure-target-libjava
0aed8855 43430 @: $(MAKE); $(unstage)
4fa63067
NN
43431 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43432 r=`${PWD_COMMAND}`; export r; \
43433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43434 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43435 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
43436 for flag in $(EXTRA_TARGET_FLAGS); do \
43437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43438 done; \
43439 (cd $(TARGET_SUBDIR)/libjava && \
43440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43442 "RANLIB=$${RANLIB}" \
0c24b341 43443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43444 installcheck) \
4fa63067 43445 || exit 1
15723a45 43446
6bd3dfaa 43447@endif target-libjava
4fa63067
NN
43448
43449.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
43450maybe-mostlyclean-target-libjava:
6bd3dfaa
PB
43451@if target-libjava
43452maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
4fa63067
NN
43453
43454mostlyclean-target-libjava:
0aed8855 43455 @: $(MAKE); $(unstage)
4fa63067
NN
43456 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43457 r=`${PWD_COMMAND}`; export r; \
43458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43459 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43460 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
43461 for flag in $(EXTRA_TARGET_FLAGS); do \
43462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43463 done; \
43464 (cd $(TARGET_SUBDIR)/libjava && \
43465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43467 "RANLIB=$${RANLIB}" \
0c24b341 43468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43469 mostlyclean) \
4fa63067
NN
43470 || exit 1
43471
6bd3dfaa 43472@endif target-libjava
4fa63067
NN
43473
43474.PHONY: maybe-clean-target-libjava clean-target-libjava
43475maybe-clean-target-libjava:
6bd3dfaa
PB
43476@if target-libjava
43477maybe-clean-target-libjava: clean-target-libjava
4fa63067
NN
43478
43479clean-target-libjava:
0aed8855 43480 @: $(MAKE); $(unstage)
4fa63067 43481 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
b40e3958
L
43482 r=`${PWD_COMMAND}`; export r; \
43483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43484 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43485 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
43486 for flag in $(EXTRA_TARGET_FLAGS); do \
43487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43488 done; \
43489 (cd $(TARGET_SUBDIR)/libjava && \
43490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43492 "RANLIB=$${RANLIB}" \
0c24b341 43493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43494 clean) \
bba45b8b 43495 || exit 1
e393202e 43496
6bd3dfaa 43497@endif target-libjava
e393202e 43498
4fa63067
NN
43499.PHONY: maybe-distclean-target-libjava distclean-target-libjava
43500maybe-distclean-target-libjava:
6bd3dfaa
PB
43501@if target-libjava
43502maybe-distclean-target-libjava: distclean-target-libjava
16ae0395 43503
4fa63067 43504distclean-target-libjava:
0aed8855 43505 @: $(MAKE); $(unstage)
4fa63067
NN
43506 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43507 r=`${PWD_COMMAND}`; export r; \
43508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43509 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43510 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
43511 for flag in $(EXTRA_TARGET_FLAGS); do \
43512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43513 done; \
43514 (cd $(TARGET_SUBDIR)/libjava && \
43515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43517 "RANLIB=$${RANLIB}" \
0c24b341 43518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43519 distclean) \
4fa63067 43520 || exit 1
3866be5d 43521
6bd3dfaa 43522@endif target-libjava
930314a4 43523
4fa63067
NN
43524.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
43525maybe-maintainer-clean-target-libjava:
6bd3dfaa
PB
43526@if target-libjava
43527maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
16ae0395 43528
4fa63067 43529maintainer-clean-target-libjava:
0aed8855 43530 @: $(MAKE); $(unstage)
4fa63067
NN
43531 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
43532 r=`${PWD_COMMAND}`; export r; \
b40e3958 43533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43534 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43535 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
43536 for flag in $(EXTRA_TARGET_FLAGS); do \
43537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43538 done; \
43539 (cd $(TARGET_SUBDIR)/libjava && \
43540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43542 "RANLIB=$${RANLIB}" \
0c24b341 43543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43544 maintainer-clean) \
4fa63067 43545 || exit 1
e393202e 43546
6bd3dfaa 43547@endif target-libjava
e393202e 43548
4fa63067 43549
15723a45 43550
a7254363 43551
e90269c8 43552
a7254363
PB
43553.PHONY: configure-target-zlib maybe-configure-target-zlib
43554maybe-configure-target-zlib:
4f0ef2d8
CD
43555@if gcc-bootstrap
43556configure-target-zlib: stage_current
43557@endif gcc-bootstrap
a7254363
PB
43558@if target-zlib
43559maybe-configure-target-zlib: configure-target-zlib
c52c6897 43560configure-target-zlib:
0aed8855
PB
43561 @: $(MAKE); $(unstage)
43562 @r=`${PWD_COMMAND}`; export r; \
43563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43564 echo "Checking multilib configuration for zlib..."; \
43565 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
43566 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null ; \
43567 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
43568 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
43569 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
43570 else \
43571 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
43572 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
43573 fi; \
43574 else \
43575 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
43576 fi; \
43577 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
4fa63067 43578 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
1f53ca9a 43579 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43580 echo Configuring in $(TARGET_SUBDIR)/zlib; \
43581 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 43582 case $(srcdir) in \
b00612cc
PB
43583 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43584 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
43585 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43586 esac; \
1b6c0831 43587 module_srcdir=zlib; \
bba45b8b 43588 rm -f no-such-file || : ; \
1b6c0831
L
43589 CONFIG_SITE=no-such-file $(SHELL) \
43590 $$s/$$module_srcdir/configure \
43591 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43592 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43593 --target=${target_alias} \
bba45b8b 43594 || exit 1
6bd3dfaa 43595@endif target-zlib
e393202e 43596
a7254363
PB
43597
43598
d545f33b
PB
43599
43600
4fa63067
NN
43601.PHONY: all-target-zlib maybe-all-target-zlib
43602maybe-all-target-zlib:
4f0ef2d8
CD
43603@if gcc-bootstrap
43604all-target-zlib: stage_current
43605@endif gcc-bootstrap
6bd3dfaa 43606@if target-zlib
72b2455a 43607TARGET-target-zlib=all
6bd3dfaa 43608maybe-all-target-zlib: all-target-zlib
4fa63067 43609all-target-zlib: configure-target-zlib
0aed8855 43610 @: $(MAKE); $(unstage)
b40e3958
L
43611 @r=`${PWD_COMMAND}`; export r; \
43612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43613 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43614 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 43615 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 43616 $(TARGET-target-zlib))
6bd3dfaa 43617@endif target-zlib
e393202e 43618
a7254363
PB
43619
43620
d545f33b
PB
43621
43622
4fa63067
NN
43623.PHONY: check-target-zlib maybe-check-target-zlib
43624maybe-check-target-zlib:
6bd3dfaa
PB
43625@if target-zlib
43626maybe-check-target-zlib: check-target-zlib
16ae0395 43627
4fa63067 43628check-target-zlib:
0aed8855 43629 @: $(MAKE); $(unstage)
b40e3958
L
43630 @r=`${PWD_COMMAND}`; export r; \
43631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43632 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43633 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 43634 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 43635
6bd3dfaa 43636@endif target-zlib
930314a4 43637
4fa63067
NN
43638.PHONY: install-target-zlib maybe-install-target-zlib
43639maybe-install-target-zlib:
6bd3dfaa
PB
43640@if target-zlib
43641maybe-install-target-zlib: install-target-zlib
16ae0395 43642
4fa63067 43643install-target-zlib: installdirs
0aed8855 43644 @: $(MAKE); $(unstage)
b40e3958
L
43645 @r=`${PWD_COMMAND}`; export r; \
43646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43647 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43648 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 43649 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 43650
6bd3dfaa 43651@endif target-zlib
e393202e 43652
9b980aa1
RW
43653.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
43654maybe-install-strip-target-zlib:
43655@if target-zlib
43656maybe-install-strip-target-zlib: install-strip-target-zlib
43657
43658install-strip-target-zlib: installdirs
43659 @: $(MAKE); $(unstage)
43660 @r=`${PWD_COMMAND}`; export r; \
43661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43662 $(NORMAL_TARGET_EXPORTS) \
43663 (cd $(TARGET_SUBDIR)/zlib && \
43664 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43665
43666@endif target-zlib
43667
56a8fe78 43668# Other targets (info, dvi, pdf, etc.)
15723a45 43669
4fa63067
NN
43670.PHONY: maybe-info-target-zlib info-target-zlib
43671maybe-info-target-zlib:
6bd3dfaa
PB
43672@if target-zlib
43673maybe-info-target-zlib: info-target-zlib
15723a45 43674
4fa63067
NN
43675info-target-zlib: \
43676 configure-target-zlib
0aed8855 43677 @: $(MAKE); $(unstage)
4fa63067 43678 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
43679 r=`${PWD_COMMAND}`; export r; \
43680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43681 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43682 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
43683 for flag in $(EXTRA_TARGET_FLAGS); do \
43684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43685 done; \
43686 (cd $(TARGET_SUBDIR)/zlib && \
43687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43689 "RANLIB=$${RANLIB}" \
0c24b341 43690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43691 info) \
bba45b8b 43692 || exit 1
e393202e 43693
6bd3dfaa 43694@endif target-zlib
e393202e 43695
4fa63067
NN
43696.PHONY: maybe-dvi-target-zlib dvi-target-zlib
43697maybe-dvi-target-zlib:
6bd3dfaa
PB
43698@if target-zlib
43699maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 43700
4fa63067
NN
43701dvi-target-zlib: \
43702 configure-target-zlib
0aed8855 43703 @: $(MAKE); $(unstage)
4fa63067
NN
43704 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43705 r=`${PWD_COMMAND}`; export r; \
b40e3958 43706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43707 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43708 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
43709 for flag in $(EXTRA_TARGET_FLAGS); do \
43710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43711 done; \
43712 (cd $(TARGET_SUBDIR)/zlib && \
43713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43715 "RANLIB=$${RANLIB}" \
0c24b341 43716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43717 dvi) \
4fa63067 43718 || exit 1
e393202e 43719
6bd3dfaa 43720@endif target-zlib
930314a4 43721
56a8fe78
DD
43722.PHONY: maybe-pdf-target-zlib pdf-target-zlib
43723maybe-pdf-target-zlib:
43724@if target-zlib
43725maybe-pdf-target-zlib: pdf-target-zlib
43726
43727pdf-target-zlib: \
43728 configure-target-zlib
43729 @: $(MAKE); $(unstage)
43730 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43731 r=`${PWD_COMMAND}`; export r; \
43732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43733 $(NORMAL_TARGET_EXPORTS) \
43734 echo "Doing pdf in $(TARGET_SUBDIR)/zlib" ; \
43735 for flag in $(EXTRA_TARGET_FLAGS); do \
43736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43737 done; \
43738 (cd $(TARGET_SUBDIR)/zlib && \
43739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43741 "RANLIB=$${RANLIB}" \
0c24b341 43742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43743 pdf) \
43744 || exit 1
43745
43746@endif target-zlib
43747
6d389afc
MS
43748.PHONY: maybe-html-target-zlib html-target-zlib
43749maybe-html-target-zlib:
43750@if target-zlib
43751maybe-html-target-zlib: html-target-zlib
43752
43753html-target-zlib: \
43754 configure-target-zlib
0aed8855 43755 @: $(MAKE); $(unstage)
6d389afc
MS
43756 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43757 r=`${PWD_COMMAND}`; export r; \
43758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
43759 $(NORMAL_TARGET_EXPORTS) \
43760 echo "Doing html in $(TARGET_SUBDIR)/zlib" ; \
43761 for flag in $(EXTRA_TARGET_FLAGS); do \
43762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43763 done; \
43764 (cd $(TARGET_SUBDIR)/zlib && \
43765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43767 "RANLIB=$${RANLIB}" \
0c24b341 43768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43769 html) \
43770 || exit 1
43771
43772@endif target-zlib
43773
4fa63067
NN
43774.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
43775maybe-TAGS-target-zlib:
6bd3dfaa
PB
43776@if target-zlib
43777maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 43778
4fa63067
NN
43779TAGS-target-zlib: \
43780 configure-target-zlib
0aed8855 43781 @: $(MAKE); $(unstage)
4fa63067
NN
43782 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43783 r=`${PWD_COMMAND}`; export r; \
b40e3958 43784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43785 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43786 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
43787 for flag in $(EXTRA_TARGET_FLAGS); do \
43788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43789 done; \
43790 (cd $(TARGET_SUBDIR)/zlib && \
43791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43793 "RANLIB=$${RANLIB}" \
0c24b341 43794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43795 TAGS) \
4fa63067 43796 || exit 1
e393202e 43797
6bd3dfaa 43798@endif target-zlib
15723a45 43799
4fa63067
NN
43800.PHONY: maybe-install-info-target-zlib install-info-target-zlib
43801maybe-install-info-target-zlib:
6bd3dfaa
PB
43802@if target-zlib
43803maybe-install-info-target-zlib: install-info-target-zlib
15723a45 43804
4fa63067
NN
43805install-info-target-zlib: \
43806 configure-target-zlib \
43807 info-target-zlib
0aed8855 43808 @: $(MAKE); $(unstage)
4fa63067 43809 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
43810 r=`${PWD_COMMAND}`; export r; \
43811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43812 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43813 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
43814 for flag in $(EXTRA_TARGET_FLAGS); do \
43815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43816 done; \
43817 (cd $(TARGET_SUBDIR)/zlib && \
43818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43820 "RANLIB=$${RANLIB}" \
0c24b341 43821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43822 install-info) \
bba45b8b 43823 || exit 1
e393202e 43824
6bd3dfaa 43825@endif target-zlib
16ae0395 43826
a3ca38d2
DD
43827.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
43828maybe-install-pdf-target-zlib:
43829@if target-zlib
43830maybe-install-pdf-target-zlib: install-pdf-target-zlib
43831
43832install-pdf-target-zlib: \
43833 configure-target-zlib \
43834 pdf-target-zlib
43835 @: $(MAKE); $(unstage)
43836 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43837 r=`${PWD_COMMAND}`; export r; \
43838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43839 $(NORMAL_TARGET_EXPORTS) \
43840 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib" ; \
43841 for flag in $(EXTRA_TARGET_FLAGS); do \
43842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43843 done; \
43844 (cd $(TARGET_SUBDIR)/zlib && \
43845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43847 "RANLIB=$${RANLIB}" \
0c24b341 43848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43849 install-pdf) \
43850 || exit 1
43851
43852@endif target-zlib
43853
108a6f8e
CD
43854.PHONY: maybe-install-html-target-zlib install-html-target-zlib
43855maybe-install-html-target-zlib:
43856@if target-zlib
43857maybe-install-html-target-zlib: install-html-target-zlib
43858
43859install-html-target-zlib: \
43860 configure-target-zlib \
43861 html-target-zlib
43862 @: $(MAKE); $(unstage)
43863 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43864 r=`${PWD_COMMAND}`; export r; \
43865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43866 $(NORMAL_TARGET_EXPORTS) \
43867 echo "Doing install-html in $(TARGET_SUBDIR)/zlib" ; \
43868 for flag in $(EXTRA_TARGET_FLAGS); do \
43869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43870 done; \
43871 (cd $(TARGET_SUBDIR)/zlib && \
43872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43874 "RANLIB=$${RANLIB}" \
0c24b341 43875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43876 install-html) \
43877 || exit 1
43878
43879@endif target-zlib
43880
4fa63067
NN
43881.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
43882maybe-installcheck-target-zlib:
6bd3dfaa
PB
43883@if target-zlib
43884maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 43885
4fa63067
NN
43886installcheck-target-zlib: \
43887 configure-target-zlib
0aed8855 43888 @: $(MAKE); $(unstage)
4fa63067
NN
43889 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43890 r=`${PWD_COMMAND}`; export r; \
43891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43892 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43893 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
43894 for flag in $(EXTRA_TARGET_FLAGS); do \
43895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43896 done; \
43897 (cd $(TARGET_SUBDIR)/zlib && \
43898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43900 "RANLIB=$${RANLIB}" \
0c24b341 43901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43902 installcheck) \
4fa63067 43903 || exit 1
e393202e 43904
6bd3dfaa 43905@endif target-zlib
16ae0395 43906
4fa63067
NN
43907.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
43908maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
43909@if target-zlib
43910maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 43911
4fa63067 43912mostlyclean-target-zlib:
0aed8855 43913 @: $(MAKE); $(unstage)
4fa63067
NN
43914 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43915 r=`${PWD_COMMAND}`; export r; \
43916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43917 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43918 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
43919 for flag in $(EXTRA_TARGET_FLAGS); do \
43920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43921 done; \
43922 (cd $(TARGET_SUBDIR)/zlib && \
43923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43925 "RANLIB=$${RANLIB}" \
0c24b341 43926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43927 mostlyclean) \
4fa63067 43928 || exit 1
e393202e 43929
6bd3dfaa 43930@endif target-zlib
15723a45 43931
4fa63067
NN
43932.PHONY: maybe-clean-target-zlib clean-target-zlib
43933maybe-clean-target-zlib:
6bd3dfaa
PB
43934@if target-zlib
43935maybe-clean-target-zlib: clean-target-zlib
15723a45 43936
4fa63067 43937clean-target-zlib:
0aed8855 43938 @: $(MAKE); $(unstage)
4fa63067 43939 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
b40e3958
L
43940 r=`${PWD_COMMAND}`; export r; \
43941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43942 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43943 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
43944 for flag in $(EXTRA_TARGET_FLAGS); do \
43945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43946 done; \
43947 (cd $(TARGET_SUBDIR)/zlib && \
43948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43950 "RANLIB=$${RANLIB}" \
0c24b341 43951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43952 clean) \
bba45b8b 43953 || exit 1
e393202e 43954
6bd3dfaa 43955@endif target-zlib
e393202e 43956
4fa63067
NN
43957.PHONY: maybe-distclean-target-zlib distclean-target-zlib
43958maybe-distclean-target-zlib:
6bd3dfaa
PB
43959@if target-zlib
43960maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 43961
4fa63067 43962distclean-target-zlib:
0aed8855 43963 @: $(MAKE); $(unstage)
4fa63067
NN
43964 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43965 r=`${PWD_COMMAND}`; export r; \
b40e3958 43966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43967 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43968 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
43969 for flag in $(EXTRA_TARGET_FLAGS); do \
43970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43971 done; \
43972 (cd $(TARGET_SUBDIR)/zlib && \
43973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43975 "RANLIB=$${RANLIB}" \
0c24b341 43976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43977 distclean) \
4fa63067 43978 || exit 1
e393202e 43979
6bd3dfaa 43980@endif target-zlib
e393202e 43981
4fa63067
NN
43982.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
43983maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
43984@if target-zlib
43985maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 43986
4fa63067 43987maintainer-clean-target-zlib:
0aed8855 43988 @: $(MAKE); $(unstage)
4fa63067
NN
43989 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
43990 r=`${PWD_COMMAND}`; export r; \
b40e3958 43991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43992 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43993 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
43994 for flag in $(EXTRA_TARGET_FLAGS); do \
43995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43996 done; \
43997 (cd $(TARGET_SUBDIR)/zlib && \
43998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44000 "RANLIB=$${RANLIB}" \
0c24b341 44001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44002 maintainer-clean) \
4fa63067 44003 || exit 1
e393202e 44004
6bd3dfaa 44005@endif target-zlib
930314a4 44006
4fa63067 44007
15723a45 44008
a7254363 44009
e90269c8 44010
a7254363
PB
44011.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
44012maybe-configure-target-boehm-gc:
4f0ef2d8
CD
44013@if gcc-bootstrap
44014configure-target-boehm-gc: stage_current
44015@endif gcc-bootstrap
a7254363
PB
44016@if target-boehm-gc
44017maybe-configure-target-boehm-gc: configure-target-boehm-gc
c52c6897 44018configure-target-boehm-gc:
0aed8855
PB
44019 @: $(MAKE); $(unstage)
44020 @r=`${PWD_COMMAND}`; export r; \
44021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44022 echo "Checking multilib configuration for boehm-gc..."; \
44023 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
44024 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null ; \
44025 if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
44026 if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
44027 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \
44028 else \
44029 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \
44030 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
44031 fi; \
44032 else \
44033 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
c52c6897
PB
44034 fi; \
44035 test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
4fa63067 44036 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
1f53ca9a 44037 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44038 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
44039 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
bba45b8b 44040 case $(srcdir) in \
b00612cc
PB
44041 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44042 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
44043 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44044 esac; \
1b6c0831 44045 module_srcdir=boehm-gc; \
bba45b8b 44046 rm -f no-such-file || : ; \
1b6c0831
L
44047 CONFIG_SITE=no-such-file $(SHELL) \
44048 $$s/$$module_srcdir/configure \
44049 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44050 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44051 --target=${target_alias} \
bba45b8b 44052 || exit 1
6bd3dfaa 44053@endif target-boehm-gc
e393202e 44054
a7254363
PB
44055
44056
d545f33b
PB
44057
44058
4fa63067
NN
44059.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
44060maybe-all-target-boehm-gc:
4f0ef2d8
CD
44061@if gcc-bootstrap
44062all-target-boehm-gc: stage_current
44063@endif gcc-bootstrap
6bd3dfaa 44064@if target-boehm-gc
72b2455a 44065TARGET-target-boehm-gc=all
6bd3dfaa 44066maybe-all-target-boehm-gc: all-target-boehm-gc
4fa63067 44067all-target-boehm-gc: configure-target-boehm-gc
0aed8855 44068 @: $(MAKE); $(unstage)
b40e3958
L
44069 @r=`${PWD_COMMAND}`; export r; \
44070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44071 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44072 (cd $(TARGET_SUBDIR)/boehm-gc && \
b3676d82 44073 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44074 $(TARGET-target-boehm-gc))
6bd3dfaa 44075@endif target-boehm-gc
e393202e 44076
a7254363
PB
44077
44078
d545f33b
PB
44079
44080
4fa63067
NN
44081.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
44082maybe-check-target-boehm-gc:
6bd3dfaa
PB
44083@if target-boehm-gc
44084maybe-check-target-boehm-gc: check-target-boehm-gc
16ae0395 44085
4fa63067 44086check-target-boehm-gc:
0aed8855 44087 @: $(MAKE); $(unstage)
b40e3958
L
44088 @r=`${PWD_COMMAND}`; export r; \
44089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44090 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44091 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 44092 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 44093
6bd3dfaa 44094@endif target-boehm-gc
930314a4 44095
4fa63067
NN
44096.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
44097maybe-install-target-boehm-gc:
6bd3dfaa
PB
44098@if target-boehm-gc
44099maybe-install-target-boehm-gc: install-target-boehm-gc
16ae0395 44100
4fa63067 44101install-target-boehm-gc: installdirs
0aed8855 44102 @: $(MAKE); $(unstage)
b40e3958
L
44103 @r=`${PWD_COMMAND}`; export r; \
44104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44105 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44106 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 44107 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44108
6bd3dfaa 44109@endif target-boehm-gc
e393202e 44110
9b980aa1
RW
44111.PHONY: install-strip-target-boehm-gc maybe-install-strip-target-boehm-gc
44112maybe-install-strip-target-boehm-gc:
44113@if target-boehm-gc
44114maybe-install-strip-target-boehm-gc: install-strip-target-boehm-gc
44115
44116install-strip-target-boehm-gc: installdirs
44117 @: $(MAKE); $(unstage)
44118 @r=`${PWD_COMMAND}`; export r; \
44119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44120 $(NORMAL_TARGET_EXPORTS) \
44121 (cd $(TARGET_SUBDIR)/boehm-gc && \
44122 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44123
44124@endif target-boehm-gc
44125
56a8fe78 44126# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
44127
44128.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
44129maybe-info-target-boehm-gc:
6bd3dfaa
PB
44130@if target-boehm-gc
44131maybe-info-target-boehm-gc: info-target-boehm-gc
4fa63067
NN
44132
44133info-target-boehm-gc: \
44134 configure-target-boehm-gc
0aed8855 44135 @: $(MAKE); $(unstage)
4fa63067
NN
44136 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44137 r=`${PWD_COMMAND}`; export r; \
44138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44139 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44140 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
44141 for flag in $(EXTRA_TARGET_FLAGS); do \
44142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44143 done; \
44144 (cd $(TARGET_SUBDIR)/boehm-gc && \
44145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44147 "RANLIB=$${RANLIB}" \
0c24b341 44148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44149 info) \
4fa63067
NN
44150 || exit 1
44151
6bd3dfaa 44152@endif target-boehm-gc
4fa63067
NN
44153
44154.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
44155maybe-dvi-target-boehm-gc:
6bd3dfaa
PB
44156@if target-boehm-gc
44157maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
4fa63067
NN
44158
44159dvi-target-boehm-gc: \
44160 configure-target-boehm-gc
0aed8855 44161 @: $(MAKE); $(unstage)
4fa63067
NN
44162 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44163 r=`${PWD_COMMAND}`; export r; \
44164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44165 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44166 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
44167 for flag in $(EXTRA_TARGET_FLAGS); do \
44168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44169 done; \
44170 (cd $(TARGET_SUBDIR)/boehm-gc && \
44171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44173 "RANLIB=$${RANLIB}" \
0c24b341 44174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44175 dvi) \
4fa63067
NN
44176 || exit 1
44177
6bd3dfaa 44178@endif target-boehm-gc
4fa63067 44179
56a8fe78
DD
44180.PHONY: maybe-pdf-target-boehm-gc pdf-target-boehm-gc
44181maybe-pdf-target-boehm-gc:
44182@if target-boehm-gc
44183maybe-pdf-target-boehm-gc: pdf-target-boehm-gc
44184
44185pdf-target-boehm-gc: \
44186 configure-target-boehm-gc
44187 @: $(MAKE); $(unstage)
44188 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44189 r=`${PWD_COMMAND}`; export r; \
44190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44191 $(NORMAL_TARGET_EXPORTS) \
44192 echo "Doing pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
44193 for flag in $(EXTRA_TARGET_FLAGS); do \
44194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44195 done; \
44196 (cd $(TARGET_SUBDIR)/boehm-gc && \
44197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44199 "RANLIB=$${RANLIB}" \
0c24b341 44200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44201 pdf) \
44202 || exit 1
44203
44204@endif target-boehm-gc
44205
6d389afc
MS
44206.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
44207maybe-html-target-boehm-gc:
44208@if target-boehm-gc
44209maybe-html-target-boehm-gc: html-target-boehm-gc
44210
44211html-target-boehm-gc: \
44212 configure-target-boehm-gc
0aed8855 44213 @: $(MAKE); $(unstage)
6d389afc
MS
44214 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44215 r=`${PWD_COMMAND}`; export r; \
44216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
44217 $(NORMAL_TARGET_EXPORTS) \
44218 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc" ; \
44219 for flag in $(EXTRA_TARGET_FLAGS); do \
44220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44221 done; \
44222 (cd $(TARGET_SUBDIR)/boehm-gc && \
44223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44225 "RANLIB=$${RANLIB}" \
0c24b341 44226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44227 html) \
44228 || exit 1
44229
44230@endif target-boehm-gc
44231
4fa63067
NN
44232.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
44233maybe-TAGS-target-boehm-gc:
6bd3dfaa
PB
44234@if target-boehm-gc
44235maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
4fa63067
NN
44236
44237TAGS-target-boehm-gc: \
44238 configure-target-boehm-gc
0aed8855 44239 @: $(MAKE); $(unstage)
4fa63067
NN
44240 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44241 r=`${PWD_COMMAND}`; export r; \
44242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44243 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44244 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
44245 for flag in $(EXTRA_TARGET_FLAGS); do \
44246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44247 done; \
44248 (cd $(TARGET_SUBDIR)/boehm-gc && \
44249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44251 "RANLIB=$${RANLIB}" \
0c24b341 44252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44253 TAGS) \
4fa63067
NN
44254 || exit 1
44255
6bd3dfaa 44256@endif target-boehm-gc
4fa63067
NN
44257
44258.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
44259maybe-install-info-target-boehm-gc:
6bd3dfaa
PB
44260@if target-boehm-gc
44261maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
4fa63067
NN
44262
44263install-info-target-boehm-gc: \
44264 configure-target-boehm-gc \
44265 info-target-boehm-gc
0aed8855 44266 @: $(MAKE); $(unstage)
4fa63067
NN
44267 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44268 r=`${PWD_COMMAND}`; export r; \
44269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44270 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44271 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
44272 for flag in $(EXTRA_TARGET_FLAGS); do \
44273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44274 done; \
44275 (cd $(TARGET_SUBDIR)/boehm-gc && \
44276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44278 "RANLIB=$${RANLIB}" \
0c24b341 44279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44280 install-info) \
4fa63067
NN
44281 || exit 1
44282
6bd3dfaa 44283@endif target-boehm-gc
4fa63067 44284
a3ca38d2
DD
44285.PHONY: maybe-install-pdf-target-boehm-gc install-pdf-target-boehm-gc
44286maybe-install-pdf-target-boehm-gc:
44287@if target-boehm-gc
44288maybe-install-pdf-target-boehm-gc: install-pdf-target-boehm-gc
44289
44290install-pdf-target-boehm-gc: \
44291 configure-target-boehm-gc \
44292 pdf-target-boehm-gc
44293 @: $(MAKE); $(unstage)
44294 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44295 r=`${PWD_COMMAND}`; export r; \
44296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44297 $(NORMAL_TARGET_EXPORTS) \
44298 echo "Doing install-pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
44299 for flag in $(EXTRA_TARGET_FLAGS); do \
44300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44301 done; \
44302 (cd $(TARGET_SUBDIR)/boehm-gc && \
44303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44305 "RANLIB=$${RANLIB}" \
0c24b341 44306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44307 install-pdf) \
44308 || exit 1
44309
44310@endif target-boehm-gc
44311
108a6f8e
CD
44312.PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc
44313maybe-install-html-target-boehm-gc:
44314@if target-boehm-gc
44315maybe-install-html-target-boehm-gc: install-html-target-boehm-gc
44316
44317install-html-target-boehm-gc: \
44318 configure-target-boehm-gc \
44319 html-target-boehm-gc
44320 @: $(MAKE); $(unstage)
44321 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44322 r=`${PWD_COMMAND}`; export r; \
44323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44324 $(NORMAL_TARGET_EXPORTS) \
44325 echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc" ; \
44326 for flag in $(EXTRA_TARGET_FLAGS); do \
44327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44328 done; \
44329 (cd $(TARGET_SUBDIR)/boehm-gc && \
44330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44332 "RANLIB=$${RANLIB}" \
0c24b341 44333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44334 install-html) \
44335 || exit 1
44336
44337@endif target-boehm-gc
44338
4fa63067
NN
44339.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
44340maybe-installcheck-target-boehm-gc:
6bd3dfaa
PB
44341@if target-boehm-gc
44342maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
4fa63067
NN
44343
44344installcheck-target-boehm-gc: \
44345 configure-target-boehm-gc
0aed8855 44346 @: $(MAKE); $(unstage)
4fa63067
NN
44347 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44348 r=`${PWD_COMMAND}`; export r; \
44349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44350 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44351 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
44352 for flag in $(EXTRA_TARGET_FLAGS); do \
44353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44354 done; \
44355 (cd $(TARGET_SUBDIR)/boehm-gc && \
44356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44358 "RANLIB=$${RANLIB}" \
0c24b341 44359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44360 installcheck) \
4fa63067
NN
44361 || exit 1
44362
6bd3dfaa 44363@endif target-boehm-gc
4fa63067
NN
44364
44365.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
44366maybe-mostlyclean-target-boehm-gc:
6bd3dfaa
PB
44367@if target-boehm-gc
44368maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
4fa63067
NN
44369
44370mostlyclean-target-boehm-gc:
0aed8855 44371 @: $(MAKE); $(unstage)
4fa63067
NN
44372 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44373 r=`${PWD_COMMAND}`; export r; \
44374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44375 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44376 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
44377 for flag in $(EXTRA_TARGET_FLAGS); do \
44378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44379 done; \
44380 (cd $(TARGET_SUBDIR)/boehm-gc && \
44381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44383 "RANLIB=$${RANLIB}" \
0c24b341 44384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44385 mostlyclean) \
4fa63067
NN
44386 || exit 1
44387
6bd3dfaa 44388@endif target-boehm-gc
4fa63067
NN
44389
44390.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
44391maybe-clean-target-boehm-gc:
6bd3dfaa
PB
44392@if target-boehm-gc
44393maybe-clean-target-boehm-gc: clean-target-boehm-gc
4fa63067
NN
44394
44395clean-target-boehm-gc:
0aed8855 44396 @: $(MAKE); $(unstage)
4fa63067
NN
44397 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44398 r=`${PWD_COMMAND}`; export r; \
44399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44400 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44401 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
44402 for flag in $(EXTRA_TARGET_FLAGS); do \
44403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44404 done; \
44405 (cd $(TARGET_SUBDIR)/boehm-gc && \
44406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44408 "RANLIB=$${RANLIB}" \
0c24b341 44409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44410 clean) \
4fa63067
NN
44411 || exit 1
44412
6bd3dfaa 44413@endif target-boehm-gc
4fa63067
NN
44414
44415.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
44416maybe-distclean-target-boehm-gc:
6bd3dfaa
PB
44417@if target-boehm-gc
44418maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
4fa63067
NN
44419
44420distclean-target-boehm-gc:
0aed8855 44421 @: $(MAKE); $(unstage)
4fa63067
NN
44422 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44423 r=`${PWD_COMMAND}`; export r; \
44424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44425 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44426 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
44427 for flag in $(EXTRA_TARGET_FLAGS); do \
44428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44429 done; \
44430 (cd $(TARGET_SUBDIR)/boehm-gc && \
44431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44433 "RANLIB=$${RANLIB}" \
0c24b341 44434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44435 distclean) \
4fa63067
NN
44436 || exit 1
44437
6bd3dfaa 44438@endif target-boehm-gc
4fa63067
NN
44439
44440.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
44441maybe-maintainer-clean-target-boehm-gc:
6bd3dfaa
PB
44442@if target-boehm-gc
44443maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
4fa63067
NN
44444
44445maintainer-clean-target-boehm-gc:
0aed8855 44446 @: $(MAKE); $(unstage)
4fa63067
NN
44447 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
44448 r=`${PWD_COMMAND}`; export r; \
44449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44450 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44451 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
44452 for flag in $(EXTRA_TARGET_FLAGS); do \
44453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44454 done; \
44455 (cd $(TARGET_SUBDIR)/boehm-gc && \
44456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44458 "RANLIB=$${RANLIB}" \
0c24b341 44459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44460 maintainer-clean) \
4fa63067
NN
44461 || exit 1
44462
6bd3dfaa 44463@endif target-boehm-gc
4fa63067
NN
44464
44465
15723a45 44466
15723a45 44467
a7254363 44468
a7254363
PB
44469.PHONY: configure-target-rda maybe-configure-target-rda
44470maybe-configure-target-rda:
4f0ef2d8
CD
44471@if gcc-bootstrap
44472configure-target-rda: stage_current
44473@endif gcc-bootstrap
a7254363
PB
44474@if target-rda
44475maybe-configure-target-rda: configure-target-rda
c52c6897 44476configure-target-rda:
0aed8855
PB
44477 @: $(MAKE); $(unstage)
44478 @r=`${PWD_COMMAND}`; export r; \
44479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44480 echo "Checking multilib configuration for rda..."; \
44481 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
44482 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null ; \
44483 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
44484 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
44485 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
44486 else \
44487 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
44488 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
44489 fi; \
44490 else \
44491 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
44492 fi; \
44493 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
4fa63067 44494 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
1f53ca9a 44495 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44496 echo Configuring in $(TARGET_SUBDIR)/rda; \
44497 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 44498 case $(srcdir) in \
b00612cc
PB
44499 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44500 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
44501 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44502 esac; \
1b6c0831 44503 module_srcdir=rda; \
bba45b8b 44504 rm -f no-such-file || : ; \
1b6c0831
L
44505 CONFIG_SITE=no-such-file $(SHELL) \
44506 $$s/$$module_srcdir/configure \
44507 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44508 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44509 --target=${target_alias} \
bba45b8b 44510 || exit 1
6bd3dfaa 44511@endif target-rda
49b7683b 44512
a7254363
PB
44513
44514
d545f33b
PB
44515
44516
4fa63067
NN
44517.PHONY: all-target-rda maybe-all-target-rda
44518maybe-all-target-rda:
4f0ef2d8
CD
44519@if gcc-bootstrap
44520all-target-rda: stage_current
44521@endif gcc-bootstrap
6bd3dfaa 44522@if target-rda
72b2455a 44523TARGET-target-rda=all
6bd3dfaa 44524maybe-all-target-rda: all-target-rda
4fa63067 44525all-target-rda: configure-target-rda
0aed8855 44526 @: $(MAKE); $(unstage)
b40e3958
L
44527 @r=`${PWD_COMMAND}`; export r; \
44528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44529 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44530 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 44531 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44532 $(TARGET-target-rda))
6bd3dfaa 44533@endif target-rda
252b5132 44534
a7254363
PB
44535
44536
d545f33b
PB
44537
44538
4fa63067
NN
44539.PHONY: check-target-rda maybe-check-target-rda
44540maybe-check-target-rda:
6bd3dfaa
PB
44541@if target-rda
44542maybe-check-target-rda: check-target-rda
16ae0395 44543
4fa63067 44544check-target-rda:
0aed8855 44545 @: $(MAKE); $(unstage)
b40e3958
L
44546 @r=`${PWD_COMMAND}`; export r; \
44547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44548 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44549 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 44550 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 44551
6bd3dfaa 44552@endif target-rda
930314a4 44553
4fa63067
NN
44554.PHONY: install-target-rda maybe-install-target-rda
44555maybe-install-target-rda:
6bd3dfaa
PB
44556@if target-rda
44557maybe-install-target-rda: install-target-rda
16ae0395 44558
4fa63067 44559install-target-rda: installdirs
0aed8855 44560 @: $(MAKE); $(unstage)
b40e3958
L
44561 @r=`${PWD_COMMAND}`; export r; \
44562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44563 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44564 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 44565 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44566
6bd3dfaa 44567@endif target-rda
e393202e 44568
9b980aa1
RW
44569.PHONY: install-strip-target-rda maybe-install-strip-target-rda
44570maybe-install-strip-target-rda:
44571@if target-rda
44572maybe-install-strip-target-rda: install-strip-target-rda
44573
44574install-strip-target-rda: installdirs
44575 @: $(MAKE); $(unstage)
44576 @r=`${PWD_COMMAND}`; export r; \
44577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44578 $(NORMAL_TARGET_EXPORTS) \
44579 (cd $(TARGET_SUBDIR)/rda && \
44580 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44581
44582@endif target-rda
44583
56a8fe78 44584# Other targets (info, dvi, pdf, etc.)
15723a45 44585
4fa63067
NN
44586.PHONY: maybe-info-target-rda info-target-rda
44587maybe-info-target-rda:
6bd3dfaa
PB
44588@if target-rda
44589maybe-info-target-rda: info-target-rda
15723a45 44590
4fa63067
NN
44591info-target-rda: \
44592 configure-target-rda
0aed8855 44593 @: $(MAKE); $(unstage)
4fa63067 44594 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
b40e3958
L
44595 r=`${PWD_COMMAND}`; export r; \
44596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44597 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44598 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
44599 for flag in $(EXTRA_TARGET_FLAGS); do \
44600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44601 done; \
44602 (cd $(TARGET_SUBDIR)/rda && \
44603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44605 "RANLIB=$${RANLIB}" \
0c24b341 44606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44607 info) \
bba45b8b 44608 || exit 1
252b5132 44609
6bd3dfaa 44610@endif target-rda
4fa63067
NN
44611
44612.PHONY: maybe-dvi-target-rda dvi-target-rda
44613maybe-dvi-target-rda:
6bd3dfaa
PB
44614@if target-rda
44615maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
44616
44617dvi-target-rda: \
44618 configure-target-rda
0aed8855 44619 @: $(MAKE); $(unstage)
4fa63067
NN
44620 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44621 r=`${PWD_COMMAND}`; export r; \
b40e3958 44622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44623 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44624 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
44625 for flag in $(EXTRA_TARGET_FLAGS); do \
44626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44627 done; \
44628 (cd $(TARGET_SUBDIR)/rda && \
44629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44631 "RANLIB=$${RANLIB}" \
0c24b341 44632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44633 dvi) \
4fa63067 44634 || exit 1
252b5132 44635
6bd3dfaa 44636@endif target-rda
16ae0395 44637
56a8fe78
DD
44638.PHONY: maybe-pdf-target-rda pdf-target-rda
44639maybe-pdf-target-rda:
44640@if target-rda
44641maybe-pdf-target-rda: pdf-target-rda
44642
44643pdf-target-rda: \
44644 configure-target-rda
44645 @: $(MAKE); $(unstage)
44646 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44647 r=`${PWD_COMMAND}`; export r; \
44648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44649 $(NORMAL_TARGET_EXPORTS) \
44650 echo "Doing pdf in $(TARGET_SUBDIR)/rda" ; \
44651 for flag in $(EXTRA_TARGET_FLAGS); do \
44652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44653 done; \
44654 (cd $(TARGET_SUBDIR)/rda && \
44655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44657 "RANLIB=$${RANLIB}" \
0c24b341 44658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44659 pdf) \
44660 || exit 1
44661
44662@endif target-rda
44663
6d389afc
MS
44664.PHONY: maybe-html-target-rda html-target-rda
44665maybe-html-target-rda:
44666@if target-rda
44667maybe-html-target-rda: html-target-rda
44668
44669html-target-rda: \
44670 configure-target-rda
0aed8855 44671 @: $(MAKE); $(unstage)
6d389afc
MS
44672 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44673 r=`${PWD_COMMAND}`; export r; \
44674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
44675 $(NORMAL_TARGET_EXPORTS) \
44676 echo "Doing html in $(TARGET_SUBDIR)/rda" ; \
44677 for flag in $(EXTRA_TARGET_FLAGS); do \
44678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44679 done; \
44680 (cd $(TARGET_SUBDIR)/rda && \
44681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44683 "RANLIB=$${RANLIB}" \
0c24b341 44684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44685 html) \
44686 || exit 1
44687
44688@endif target-rda
44689
4fa63067
NN
44690.PHONY: maybe-TAGS-target-rda TAGS-target-rda
44691maybe-TAGS-target-rda:
6bd3dfaa
PB
44692@if target-rda
44693maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
44694
44695TAGS-target-rda: \
44696 configure-target-rda
0aed8855 44697 @: $(MAKE); $(unstage)
4fa63067
NN
44698 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44699 r=`${PWD_COMMAND}`; export r; \
b40e3958 44700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44701 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44702 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
44703 for flag in $(EXTRA_TARGET_FLAGS); do \
44704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44705 done; \
44706 (cd $(TARGET_SUBDIR)/rda && \
44707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44709 "RANLIB=$${RANLIB}" \
0c24b341 44710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44711 TAGS) \
4fa63067 44712 || exit 1
e393202e 44713
6bd3dfaa 44714@endif target-rda
930314a4 44715
4fa63067
NN
44716.PHONY: maybe-install-info-target-rda install-info-target-rda
44717maybe-install-info-target-rda:
6bd3dfaa
PB
44718@if target-rda
44719maybe-install-info-target-rda: install-info-target-rda
16ae0395 44720
4fa63067
NN
44721install-info-target-rda: \
44722 configure-target-rda \
44723 info-target-rda
0aed8855 44724 @: $(MAKE); $(unstage)
4fa63067
NN
44725 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44726 r=`${PWD_COMMAND}`; export r; \
b40e3958 44727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44728 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44729 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
44730 for flag in $(EXTRA_TARGET_FLAGS); do \
44731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44732 done; \
44733 (cd $(TARGET_SUBDIR)/rda && \
44734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44736 "RANLIB=$${RANLIB}" \
0c24b341 44737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44738 install-info) \
4fa63067 44739 || exit 1
252b5132 44740
6bd3dfaa 44741@endif target-rda
e393202e 44742
a3ca38d2
DD
44743.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
44744maybe-install-pdf-target-rda:
44745@if target-rda
44746maybe-install-pdf-target-rda: install-pdf-target-rda
44747
44748install-pdf-target-rda: \
44749 configure-target-rda \
44750 pdf-target-rda
44751 @: $(MAKE); $(unstage)
44752 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44753 r=`${PWD_COMMAND}`; export r; \
44754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44755 $(NORMAL_TARGET_EXPORTS) \
44756 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda" ; \
44757 for flag in $(EXTRA_TARGET_FLAGS); do \
44758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44759 done; \
44760 (cd $(TARGET_SUBDIR)/rda && \
44761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44763 "RANLIB=$${RANLIB}" \
0c24b341 44764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44765 install-pdf) \
44766 || exit 1
44767
44768@endif target-rda
44769
108a6f8e
CD
44770.PHONY: maybe-install-html-target-rda install-html-target-rda
44771maybe-install-html-target-rda:
44772@if target-rda
44773maybe-install-html-target-rda: install-html-target-rda
44774
44775install-html-target-rda: \
44776 configure-target-rda \
44777 html-target-rda
44778 @: $(MAKE); $(unstage)
44779 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44780 r=`${PWD_COMMAND}`; export r; \
44781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44782 $(NORMAL_TARGET_EXPORTS) \
44783 echo "Doing install-html in $(TARGET_SUBDIR)/rda" ; \
44784 for flag in $(EXTRA_TARGET_FLAGS); do \
44785 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44786 done; \
44787 (cd $(TARGET_SUBDIR)/rda && \
44788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44790 "RANLIB=$${RANLIB}" \
0c24b341 44791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44792 install-html) \
44793 || exit 1
44794
44795@endif target-rda
44796
4fa63067
NN
44797.PHONY: maybe-installcheck-target-rda installcheck-target-rda
44798maybe-installcheck-target-rda:
6bd3dfaa
PB
44799@if target-rda
44800maybe-installcheck-target-rda: installcheck-target-rda
15723a45 44801
4fa63067
NN
44802installcheck-target-rda: \
44803 configure-target-rda
0aed8855 44804 @: $(MAKE); $(unstage)
4fa63067
NN
44805 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44806 r=`${PWD_COMMAND}`; export r; \
44807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44808 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44809 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
44810 for flag in $(EXTRA_TARGET_FLAGS); do \
44811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44812 done; \
44813 (cd $(TARGET_SUBDIR)/rda && \
44814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44816 "RANLIB=$${RANLIB}" \
0c24b341 44817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44818 installcheck) \
4fa63067 44819 || exit 1
15723a45 44820
6bd3dfaa 44821@endif target-rda
4fa63067
NN
44822
44823.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
44824maybe-mostlyclean-target-rda:
6bd3dfaa
PB
44825@if target-rda
44826maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
44827
44828mostlyclean-target-rda:
0aed8855 44829 @: $(MAKE); $(unstage)
4fa63067 44830 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
b40e3958
L
44831 r=`${PWD_COMMAND}`; export r; \
44832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44833 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44834 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
44835 for flag in $(EXTRA_TARGET_FLAGS); do \
44836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44837 done; \
44838 (cd $(TARGET_SUBDIR)/rda && \
44839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44841 "RANLIB=$${RANLIB}" \
0c24b341 44842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44843 mostlyclean) \
bba45b8b 44844 || exit 1
252b5132 44845
6bd3dfaa 44846@endif target-rda
4fa63067
NN
44847
44848.PHONY: maybe-clean-target-rda clean-target-rda
44849maybe-clean-target-rda:
6bd3dfaa
PB
44850@if target-rda
44851maybe-clean-target-rda: clean-target-rda
4fa63067
NN
44852
44853clean-target-rda:
0aed8855 44854 @: $(MAKE); $(unstage)
4fa63067
NN
44855 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44856 r=`${PWD_COMMAND}`; export r; \
b40e3958 44857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44858 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44859 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
44860 for flag in $(EXTRA_TARGET_FLAGS); do \
44861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44862 done; \
bba45b8b 44863 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
44864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44866 "RANLIB=$${RANLIB}" \
0c24b341 44867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44868 clean) \
4fa63067 44869 || exit 1
252b5132 44870
6bd3dfaa 44871@endif target-rda
16ae0395 44872
4fa63067
NN
44873.PHONY: maybe-distclean-target-rda distclean-target-rda
44874maybe-distclean-target-rda:
6bd3dfaa
PB
44875@if target-rda
44876maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
44877
44878distclean-target-rda:
0aed8855 44879 @: $(MAKE); $(unstage)
4fa63067
NN
44880 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44881 r=`${PWD_COMMAND}`; export r; \
b40e3958 44882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44883 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44884 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
44885 for flag in $(EXTRA_TARGET_FLAGS); do \
44886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44887 done; \
bba45b8b 44888 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
44889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44891 "RANLIB=$${RANLIB}" \
0c24b341 44892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44893 distclean) \
4fa63067 44894 || exit 1
252b5132 44895
6bd3dfaa 44896@endif target-rda
930314a4 44897
4fa63067
NN
44898.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
44899maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
44900@if target-rda
44901maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 44902
4fa63067 44903maintainer-clean-target-rda:
0aed8855 44904 @: $(MAKE); $(unstage)
4fa63067
NN
44905 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
44906 r=`${PWD_COMMAND}`; export r; \
b40e3958 44907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44908 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44909 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
44910 for flag in $(EXTRA_TARGET_FLAGS); do \
44911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44912 done; \
bba45b8b 44913 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
44914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44916 "RANLIB=$${RANLIB}" \
0c24b341 44917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44918 maintainer-clean) \
4fa63067
NN
44919 || exit 1
44920
6bd3dfaa 44921@endif target-rda
252b5132 44922
e393202e 44923
a2592b1b 44924
a7254363
PB
44925
44926
44927.PHONY: configure-target-libada maybe-configure-target-libada
44928maybe-configure-target-libada:
4f0ef2d8
CD
44929@if gcc-bootstrap
44930configure-target-libada: stage_current
44931@endif gcc-bootstrap
a7254363
PB
44932@if target-libada
44933maybe-configure-target-libada: configure-target-libada
c52c6897 44934configure-target-libada:
0aed8855
PB
44935 @: $(MAKE); $(unstage)
44936 @r=`${PWD_COMMAND}`; export r; \
44937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44938 echo "Checking multilib configuration for libada..."; \
44939 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
44940 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null ; \
44941 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
44942 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
44943 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
44944 else \
44945 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
44946 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
44947 fi; \
44948 else \
44949 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
44950 fi; \
44951 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
a2592b1b 44952 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
1f53ca9a 44953 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
44954 echo Configuring in $(TARGET_SUBDIR)/libada; \
44955 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
44956 case $(srcdir) in \
b00612cc
PB
44957 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44958 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
44959 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 44960 esac; \
1b6c0831 44961 module_srcdir=libada; \
a2592b1b 44962 rm -f no-such-file || : ; \
1b6c0831
L
44963 CONFIG_SITE=no-such-file $(SHELL) \
44964 $$s/$$module_srcdir/configure \
44965 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44966 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44967 --target=${target_alias} \
a2592b1b 44968 || exit 1
6bd3dfaa 44969@endif target-libada
a2592b1b 44970
a7254363
PB
44971
44972
d545f33b
PB
44973
44974
4fa63067
NN
44975.PHONY: all-target-libada maybe-all-target-libada
44976maybe-all-target-libada:
4f0ef2d8
CD
44977@if gcc-bootstrap
44978all-target-libada: stage_current
44979@endif gcc-bootstrap
6bd3dfaa 44980@if target-libada
72b2455a 44981TARGET-target-libada=all
6bd3dfaa 44982maybe-all-target-libada: all-target-libada
4fa63067 44983all-target-libada: configure-target-libada
0aed8855 44984 @: $(MAKE); $(unstage)
4fa63067
NN
44985 @r=`${PWD_COMMAND}`; export r; \
44986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44987 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44988 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 44989 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44990 $(TARGET-target-libada))
6bd3dfaa 44991@endif target-libada
4fa63067 44992
a7254363
PB
44993
44994
d545f33b
PB
44995
44996
4fa63067
NN
44997.PHONY: check-target-libada maybe-check-target-libada
44998maybe-check-target-libada:
6bd3dfaa
PB
44999@if target-libada
45000maybe-check-target-libada: check-target-libada
4fa63067
NN
45001
45002check-target-libada:
0aed8855 45003 @: $(MAKE); $(unstage)
4fa63067
NN
45004 @r=`${PWD_COMMAND}`; export r; \
45005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45006 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45007 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45008 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 45009
6bd3dfaa 45010@endif target-libada
4fa63067
NN
45011
45012.PHONY: install-target-libada maybe-install-target-libada
45013maybe-install-target-libada:
6bd3dfaa
PB
45014@if target-libada
45015maybe-install-target-libada: install-target-libada
4fa63067
NN
45016
45017install-target-libada: installdirs
0aed8855 45018 @: $(MAKE); $(unstage)
4fa63067
NN
45019 @r=`${PWD_COMMAND}`; export r; \
45020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45021 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45022 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45023 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 45024
6bd3dfaa 45025@endif target-libada
4fa63067 45026
9b980aa1
RW
45027.PHONY: install-strip-target-libada maybe-install-strip-target-libada
45028maybe-install-strip-target-libada:
45029@if target-libada
45030maybe-install-strip-target-libada: install-strip-target-libada
45031
45032install-strip-target-libada: installdirs
45033 @: $(MAKE); $(unstage)
45034 @r=`${PWD_COMMAND}`; export r; \
45035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45036 $(NORMAL_TARGET_EXPORTS) \
45037 (cd $(TARGET_SUBDIR)/libada && \
45038 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45039
45040@endif target-libada
45041
56a8fe78 45042# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
45043
45044.PHONY: maybe-info-target-libada info-target-libada
45045maybe-info-target-libada:
6bd3dfaa
PB
45046@if target-libada
45047maybe-info-target-libada: info-target-libada
4fa63067
NN
45048
45049info-target-libada: \
45050 configure-target-libada
0aed8855 45051 @: $(MAKE); $(unstage)
4fa63067
NN
45052 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45053 r=`${PWD_COMMAND}`; export r; \
45054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45055 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45056 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
45057 for flag in $(EXTRA_TARGET_FLAGS); do \
45058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45059 done; \
45060 (cd $(TARGET_SUBDIR)/libada && \
45061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45063 "RANLIB=$${RANLIB}" \
0c24b341 45064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45065 info) \
4fa63067
NN
45066 || exit 1
45067
6bd3dfaa 45068@endif target-libada
4fa63067
NN
45069
45070.PHONY: maybe-dvi-target-libada dvi-target-libada
45071maybe-dvi-target-libada:
6bd3dfaa
PB
45072@if target-libada
45073maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
45074
45075dvi-target-libada: \
45076 configure-target-libada
0aed8855 45077 @: $(MAKE); $(unstage)
4fa63067
NN
45078 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45079 r=`${PWD_COMMAND}`; export r; \
45080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45081 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45082 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
45083 for flag in $(EXTRA_TARGET_FLAGS); do \
45084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45085 done; \
45086 (cd $(TARGET_SUBDIR)/libada && \
45087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45089 "RANLIB=$${RANLIB}" \
0c24b341 45090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45091 dvi) \
4fa63067
NN
45092 || exit 1
45093
6bd3dfaa 45094@endif target-libada
4fa63067 45095
56a8fe78
DD
45096.PHONY: maybe-pdf-target-libada pdf-target-libada
45097maybe-pdf-target-libada:
45098@if target-libada
45099maybe-pdf-target-libada: pdf-target-libada
45100
45101pdf-target-libada: \
45102 configure-target-libada
45103 @: $(MAKE); $(unstage)
45104 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45105 r=`${PWD_COMMAND}`; export r; \
45106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45107 $(NORMAL_TARGET_EXPORTS) \
45108 echo "Doing pdf in $(TARGET_SUBDIR)/libada" ; \
45109 for flag in $(EXTRA_TARGET_FLAGS); do \
45110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45111 done; \
45112 (cd $(TARGET_SUBDIR)/libada && \
45113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45115 "RANLIB=$${RANLIB}" \
0c24b341 45116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45117 pdf) \
45118 || exit 1
45119
45120@endif target-libada
45121
6d389afc
MS
45122.PHONY: maybe-html-target-libada html-target-libada
45123maybe-html-target-libada:
45124@if target-libada
45125maybe-html-target-libada: html-target-libada
45126
45127html-target-libada: \
45128 configure-target-libada
0aed8855 45129 @: $(MAKE); $(unstage)
6d389afc
MS
45130 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45131 r=`${PWD_COMMAND}`; export r; \
45132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
45133 $(NORMAL_TARGET_EXPORTS) \
45134 echo "Doing html in $(TARGET_SUBDIR)/libada" ; \
45135 for flag in $(EXTRA_TARGET_FLAGS); do \
45136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45137 done; \
45138 (cd $(TARGET_SUBDIR)/libada && \
45139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45141 "RANLIB=$${RANLIB}" \
0c24b341 45142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45143 html) \
45144 || exit 1
45145
45146@endif target-libada
45147
4fa63067
NN
45148.PHONY: maybe-TAGS-target-libada TAGS-target-libada
45149maybe-TAGS-target-libada:
6bd3dfaa
PB
45150@if target-libada
45151maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
45152
45153TAGS-target-libada: \
45154 configure-target-libada
0aed8855 45155 @: $(MAKE); $(unstage)
4fa63067
NN
45156 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45157 r=`${PWD_COMMAND}`; export r; \
45158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45159 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45160 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
45161 for flag in $(EXTRA_TARGET_FLAGS); do \
45162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45163 done; \
45164 (cd $(TARGET_SUBDIR)/libada && \
45165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45167 "RANLIB=$${RANLIB}" \
0c24b341 45168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45169 TAGS) \
4fa63067
NN
45170 || exit 1
45171
6bd3dfaa 45172@endif target-libada
4fa63067
NN
45173
45174.PHONY: maybe-install-info-target-libada install-info-target-libada
45175maybe-install-info-target-libada:
6bd3dfaa
PB
45176@if target-libada
45177maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
45178
45179install-info-target-libada: \
45180 configure-target-libada \
45181 info-target-libada
0aed8855 45182 @: $(MAKE); $(unstage)
4fa63067
NN
45183 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45184 r=`${PWD_COMMAND}`; export r; \
45185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45186 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45187 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
45188 for flag in $(EXTRA_TARGET_FLAGS); do \
45189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45190 done; \
45191 (cd $(TARGET_SUBDIR)/libada && \
45192 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45193 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45194 "RANLIB=$${RANLIB}" \
0c24b341 45195 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45196 install-info) \
4fa63067
NN
45197 || exit 1
45198
6bd3dfaa 45199@endif target-libada
4fa63067 45200
a3ca38d2
DD
45201.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
45202maybe-install-pdf-target-libada:
45203@if target-libada
45204maybe-install-pdf-target-libada: install-pdf-target-libada
45205
45206install-pdf-target-libada: \
45207 configure-target-libada \
45208 pdf-target-libada
45209 @: $(MAKE); $(unstage)
45210 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45211 r=`${PWD_COMMAND}`; export r; \
45212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45213 $(NORMAL_TARGET_EXPORTS) \
45214 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada" ; \
45215 for flag in $(EXTRA_TARGET_FLAGS); do \
45216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45217 done; \
45218 (cd $(TARGET_SUBDIR)/libada && \
45219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45221 "RANLIB=$${RANLIB}" \
0c24b341 45222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45223 install-pdf) \
45224 || exit 1
45225
45226@endif target-libada
45227
108a6f8e
CD
45228.PHONY: maybe-install-html-target-libada install-html-target-libada
45229maybe-install-html-target-libada:
45230@if target-libada
45231maybe-install-html-target-libada: install-html-target-libada
45232
45233install-html-target-libada: \
45234 configure-target-libada \
45235 html-target-libada
45236 @: $(MAKE); $(unstage)
45237 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45238 r=`${PWD_COMMAND}`; export r; \
45239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45240 $(NORMAL_TARGET_EXPORTS) \
45241 echo "Doing install-html in $(TARGET_SUBDIR)/libada" ; \
45242 for flag in $(EXTRA_TARGET_FLAGS); do \
45243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45244 done; \
45245 (cd $(TARGET_SUBDIR)/libada && \
45246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45248 "RANLIB=$${RANLIB}" \
0c24b341 45249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45250 install-html) \
45251 || exit 1
45252
45253@endif target-libada
45254
4fa63067
NN
45255.PHONY: maybe-installcheck-target-libada installcheck-target-libada
45256maybe-installcheck-target-libada:
6bd3dfaa
PB
45257@if target-libada
45258maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
45259
45260installcheck-target-libada: \
45261 configure-target-libada
0aed8855 45262 @: $(MAKE); $(unstage)
4fa63067
NN
45263 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45264 r=`${PWD_COMMAND}`; export r; \
45265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45266 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45267 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
45268 for flag in $(EXTRA_TARGET_FLAGS); do \
45269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45270 done; \
45271 (cd $(TARGET_SUBDIR)/libada && \
45272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45274 "RANLIB=$${RANLIB}" \
0c24b341 45275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45276 installcheck) \
4fa63067
NN
45277 || exit 1
45278
6bd3dfaa 45279@endif target-libada
4fa63067
NN
45280
45281.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
45282maybe-mostlyclean-target-libada:
6bd3dfaa
PB
45283@if target-libada
45284maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
45285
45286mostlyclean-target-libada:
0aed8855 45287 @: $(MAKE); $(unstage)
4fa63067
NN
45288 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45289 r=`${PWD_COMMAND}`; export r; \
45290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45291 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45292 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
45293 for flag in $(EXTRA_TARGET_FLAGS); do \
45294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45295 done; \
45296 (cd $(TARGET_SUBDIR)/libada && \
45297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45299 "RANLIB=$${RANLIB}" \
0c24b341 45300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45301 mostlyclean) \
4fa63067
NN
45302 || exit 1
45303
6bd3dfaa 45304@endif target-libada
4fa63067
NN
45305
45306.PHONY: maybe-clean-target-libada clean-target-libada
45307maybe-clean-target-libada:
6bd3dfaa
PB
45308@if target-libada
45309maybe-clean-target-libada: clean-target-libada
4fa63067
NN
45310
45311clean-target-libada:
0aed8855 45312 @: $(MAKE); $(unstage)
4fa63067
NN
45313 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45314 r=`${PWD_COMMAND}`; export r; \
45315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45316 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45317 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
45318 for flag in $(EXTRA_TARGET_FLAGS); do \
45319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45320 done; \
45321 (cd $(TARGET_SUBDIR)/libada && \
45322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45324 "RANLIB=$${RANLIB}" \
0c24b341 45325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45326 clean) \
4fa63067
NN
45327 || exit 1
45328
6bd3dfaa 45329@endif target-libada
a2592b1b 45330
4fa63067
NN
45331.PHONY: maybe-distclean-target-libada distclean-target-libada
45332maybe-distclean-target-libada:
6bd3dfaa
PB
45333@if target-libada
45334maybe-distclean-target-libada: distclean-target-libada
a2592b1b 45335
4fa63067 45336distclean-target-libada:
0aed8855 45337 @: $(MAKE); $(unstage)
4fa63067
NN
45338 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45339 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45341 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45342 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
45343 for flag in $(EXTRA_TARGET_FLAGS); do \
45344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45345 done; \
a2592b1b 45346 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45349 "RANLIB=$${RANLIB}" \
0c24b341 45350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45351 distclean) \
4fa63067 45352 || exit 1
a2592b1b 45353
6bd3dfaa 45354@endif target-libada
a2592b1b 45355
4fa63067
NN
45356.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
45357maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
45358@if target-libada
45359maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 45360
4fa63067 45361maintainer-clean-target-libada:
0aed8855 45362 @: $(MAKE); $(unstage)
4fa63067
NN
45363 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
45364 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45366 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45367 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
45368 for flag in $(EXTRA_TARGET_FLAGS); do \
45369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45370 done; \
a2592b1b 45371 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45374 "RANLIB=$${RANLIB}" \
0c24b341 45375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45376 maintainer-clean) \
4fa63067
NN
45377 || exit 1
45378
6bd3dfaa 45379@endif target-libada
a2592b1b
DD
45380
45381
e393202e 45382
b3ded179
PB
45383
45384
45385.PHONY: configure-target-libgomp maybe-configure-target-libgomp
45386maybe-configure-target-libgomp:
4f0ef2d8
CD
45387@if gcc-bootstrap
45388configure-target-libgomp: stage_current
45389@endif gcc-bootstrap
b3ded179
PB
45390@if target-libgomp
45391maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 45392configure-target-libgomp:
b3ded179
PB
45393 @r=`${PWD_COMMAND}`; export r; \
45394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45395 echo "Checking multilib configuration for libgomp..."; \
45396 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45397 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45398 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45399 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45400 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45401 else \
45402 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45403 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45404 fi; \
45405 else \
45406 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
45407 fi; \
45408 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
b3ded179 45409 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
1f53ca9a 45410 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
45411 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
45412 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
45413 case $(srcdir) in \
45414 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45415 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45416 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45417 esac; \
1b6c0831 45418 module_srcdir=libgomp; \
b3ded179 45419 rm -f no-such-file || : ; \
1b6c0831
L
45420 CONFIG_SITE=no-such-file $(SHELL) \
45421 $$s/$$module_srcdir/configure \
45422 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45423 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45424 --target=${target_alias} \
b3ded179
PB
45425 || exit 1
45426@endif target-libgomp
45427
45428
45429
911e63d0
JR
45430.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
45431maybe-configure-stage1-target-libgomp:
45432@if target-libgomp-bootstrap
45433maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
45434configure-stage1-target-libgomp:
45435 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
45436 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45437 @r=`${PWD_COMMAND}`; export r; \
45438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45439 TFLAGS="$(STAGE1_TFLAGS)"; \
45440 echo "Checking multilib configuration for libgomp..."; \
45441 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45442 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45443 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45444 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45445 else \
45446 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45447 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45448 fi; \
45449 else \
45450 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45451 fi; \
45452 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45453 $(NORMAL_TARGET_EXPORTS) \
45454 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45455 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45456 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45457 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp ; \
45458 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45459 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45460 case $(srcdir) in \
45461 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45462 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45463 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45464 esac; \
1b6c0831
L
45465 module_srcdir=libgomp; \
45466 $(SHELL) $$s/$$module_srcdir/configure \
45467 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45468 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45469 --target=${target_alias} \
45470 \
911e63d0
JR
45471 $(STAGE1_CONFIGURE_FLAGS)
45472@endif target-libgomp-bootstrap
45473
45474.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
45475maybe-configure-stage2-target-libgomp:
45476@if target-libgomp-bootstrap
45477maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
45478configure-stage2-target-libgomp:
45479 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
45480 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45481 @r=`${PWD_COMMAND}`; export r; \
45482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45483 TFLAGS="$(STAGE2_TFLAGS)"; \
45484 echo "Checking multilib configuration for libgomp..."; \
45485 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45486 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45487 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45488 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45489 else \
45490 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45491 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45492 fi; \
45493 else \
45494 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45495 fi; \
45496 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45497 $(NORMAL_TARGET_EXPORTS) \
45498 \
45499 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45500 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45501 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45502 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp ; \
45503 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45504 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45505 case $(srcdir) in \
45506 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45507 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45508 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45509 esac; \
1b6c0831
L
45510 module_srcdir=libgomp; \
45511 $(SHELL) $$s/$$module_srcdir/configure \
45512 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45513 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45514 --target=${target_alias} \
45515 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45516 $(STAGE2_CONFIGURE_FLAGS)
45517@endif target-libgomp-bootstrap
45518
45519.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
45520maybe-configure-stage3-target-libgomp:
45521@if target-libgomp-bootstrap
45522maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
45523configure-stage3-target-libgomp:
45524 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
45525 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45526 @r=`${PWD_COMMAND}`; export r; \
45527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45528 TFLAGS="$(STAGE3_TFLAGS)"; \
45529 echo "Checking multilib configuration for libgomp..."; \
45530 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45531 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45532 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45533 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45534 else \
45535 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45536 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45537 fi; \
45538 else \
45539 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45540 fi; \
45541 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45542 $(NORMAL_TARGET_EXPORTS) \
45543 \
45544 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45545 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45546 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45547 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp ; \
45548 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45549 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45550 case $(srcdir) in \
45551 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45552 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45553 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45554 esac; \
1b6c0831
L
45555 module_srcdir=libgomp; \
45556 $(SHELL) $$s/$$module_srcdir/configure \
45557 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45558 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45559 --target=${target_alias} \
45560 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45561 $(STAGE3_CONFIGURE_FLAGS)
45562@endif target-libgomp-bootstrap
45563
45564.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
45565maybe-configure-stage4-target-libgomp:
45566@if target-libgomp-bootstrap
45567maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
45568configure-stage4-target-libgomp:
45569 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
45570 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45571 @r=`${PWD_COMMAND}`; export r; \
45572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45573 TFLAGS="$(STAGE4_TFLAGS)"; \
45574 echo "Checking multilib configuration for libgomp..."; \
45575 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45576 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45577 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45578 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45579 else \
45580 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45581 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45582 fi; \
45583 else \
45584 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45585 fi; \
45586 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45587 $(NORMAL_TARGET_EXPORTS) \
45588 \
45589 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45590 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45591 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45592 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp ; \
45593 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45594 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45595 case $(srcdir) in \
45596 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45597 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45598 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45599 esac; \
1b6c0831
L
45600 module_srcdir=libgomp; \
45601 $(SHELL) $$s/$$module_srcdir/configure \
45602 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45603 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45604 --target=${target_alias} \
45605 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45606 $(STAGE4_CONFIGURE_FLAGS)
45607@endif target-libgomp-bootstrap
45608
45609.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
45610maybe-configure-stageprofile-target-libgomp:
45611@if target-libgomp-bootstrap
45612maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
45613configure-stageprofile-target-libgomp:
45614 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
45615 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45616 @r=`${PWD_COMMAND}`; export r; \
45617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45618 TFLAGS="$(STAGEprofile_TFLAGS)"; \
45619 echo "Checking multilib configuration for libgomp..."; \
45620 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45621 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45622 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45623 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45624 else \
45625 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45626 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45627 fi; \
45628 else \
45629 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45630 fi; \
45631 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45632 $(NORMAL_TARGET_EXPORTS) \
45633 \
45634 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45635 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45636 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45637 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp ; \
45638 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45639 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45640 case $(srcdir) in \
45641 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45642 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45643 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45644 esac; \
1b6c0831
L
45645 module_srcdir=libgomp; \
45646 $(SHELL) $$s/$$module_srcdir/configure \
45647 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45648 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45649 --target=${target_alias} \
45650 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45651 $(STAGEprofile_CONFIGURE_FLAGS)
45652@endif target-libgomp-bootstrap
45653
45654.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
45655maybe-configure-stagefeedback-target-libgomp:
45656@if target-libgomp-bootstrap
45657maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
45658configure-stagefeedback-target-libgomp:
45659 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
45660 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45661 @r=`${PWD_COMMAND}`; export r; \
45662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45663 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
45664 echo "Checking multilib configuration for libgomp..."; \
45665 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
45666 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45667 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45668 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45669 else \
45670 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45671 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45672 fi; \
45673 else \
45674 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45675 fi; \
45676 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45677 $(NORMAL_TARGET_EXPORTS) \
45678 \
45679 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45680 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45681 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45682 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp ; \
45683 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
45684 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45685 case $(srcdir) in \
45686 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45687 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45688 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45689 esac; \
1b6c0831
L
45690 module_srcdir=libgomp; \
45691 $(SHELL) $$s/$$module_srcdir/configure \
45692 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45693 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45694 --target=${target_alias} \
45695 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45696 $(STAGEfeedback_CONFIGURE_FLAGS)
45697@endif target-libgomp-bootstrap
45698
45699
45700
b3ded179
PB
45701
45702
45703.PHONY: all-target-libgomp maybe-all-target-libgomp
45704maybe-all-target-libgomp:
4f0ef2d8
CD
45705@if gcc-bootstrap
45706all-target-libgomp: stage_current
45707@endif gcc-bootstrap
b3ded179
PB
45708@if target-libgomp
45709TARGET-target-libgomp=all
45710maybe-all-target-libgomp: all-target-libgomp
45711all-target-libgomp: configure-target-libgomp
b3ded179
PB
45712 @r=`${PWD_COMMAND}`; export r; \
45713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45714 $(NORMAL_TARGET_EXPORTS) \
b3ded179 45715 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45716 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45717 $(TARGET-target-libgomp))
b3ded179
PB
45718@endif target-libgomp
45719
45720
45721
911e63d0
JR
45722.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
45723.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
45724maybe-all-stage1-target-libgomp:
45725maybe-clean-stage1-target-libgomp:
45726@if target-libgomp-bootstrap
45727maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
45728all-stage1: all-stage1-target-libgomp
45729TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
45730all-stage1-target-libgomp: configure-stage1-target-libgomp
45731 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
45732 @r=`${PWD_COMMAND}`; export r; \
45733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45734 TFLAGS="$(STAGE1_TFLAGS)"; \
45735 $(NORMAL_TARGET_EXPORTS) \
45736 cd $(TARGET_SUBDIR)/libgomp && \
45737 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45738 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45739 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45740 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45741 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45742 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45743 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
45744 $(EXTRA_TARGET_FLAGS) \
45745 \
911e63d0
JR
45746 TFLAGS="$(STAGE1_TFLAGS)" \
45747 $(TARGET-stage1-target-libgomp)
45748
45749maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
45750clean-stage1: clean-stage1-target-libgomp
45751clean-stage1-target-libgomp:
45752 @if [ $(current_stage) = stage1 ]; then \
45753 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45754 else \
45755 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
45756 $(MAKE) stage1-start; \
45757 fi; \
45758 cd $(TARGET_SUBDIR)/libgomp && \
45759 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 45760 clean
911e63d0
JR
45761@endif target-libgomp-bootstrap
45762
45763
45764.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
45765.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
45766maybe-all-stage2-target-libgomp:
45767maybe-clean-stage2-target-libgomp:
45768@if target-libgomp-bootstrap
45769maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
45770all-stage2: all-stage2-target-libgomp
45771TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
45772all-stage2-target-libgomp: configure-stage2-target-libgomp
45773 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
45774 @r=`${PWD_COMMAND}`; export r; \
45775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45776 TFLAGS="$(STAGE2_TFLAGS)"; \
45777 $(NORMAL_TARGET_EXPORTS) \
45778 \
45779 cd $(TARGET_SUBDIR)/libgomp && \
45780 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45781 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45782 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45783 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45784 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45785 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45786 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45787 $(EXTRA_TARGET_FLAGS) \
45788 TFLAGS="$(STAGE2_TFLAGS)" \
45789 $(TARGET-stage2-target-libgomp)
45790
45791maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
45792clean-stage2: clean-stage2-target-libgomp
45793clean-stage2-target-libgomp:
45794 @if [ $(current_stage) = stage2 ]; then \
45795 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45796 else \
45797 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
45798 $(MAKE) stage2-start; \
45799 fi; \
45800 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45801 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45802@endif target-libgomp-bootstrap
45803
45804
45805.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
45806.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
45807maybe-all-stage3-target-libgomp:
45808maybe-clean-stage3-target-libgomp:
45809@if target-libgomp-bootstrap
45810maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
45811all-stage3: all-stage3-target-libgomp
45812TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
45813all-stage3-target-libgomp: configure-stage3-target-libgomp
45814 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
45815 @r=`${PWD_COMMAND}`; export r; \
45816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45817 TFLAGS="$(STAGE3_TFLAGS)"; \
45818 $(NORMAL_TARGET_EXPORTS) \
45819 \
45820 cd $(TARGET_SUBDIR)/libgomp && \
45821 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45822 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45823 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45824 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45825 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45826 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45827 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45828 $(EXTRA_TARGET_FLAGS) \
45829 TFLAGS="$(STAGE3_TFLAGS)" \
45830 $(TARGET-stage3-target-libgomp)
45831
45832maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
45833clean-stage3: clean-stage3-target-libgomp
45834clean-stage3-target-libgomp:
45835 @if [ $(current_stage) = stage3 ]; then \
45836 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45837 else \
45838 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
45839 $(MAKE) stage3-start; \
45840 fi; \
45841 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45842 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45843@endif target-libgomp-bootstrap
45844
45845
45846.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
45847.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
45848maybe-all-stage4-target-libgomp:
45849maybe-clean-stage4-target-libgomp:
45850@if target-libgomp-bootstrap
45851maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
45852all-stage4: all-stage4-target-libgomp
45853TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
45854all-stage4-target-libgomp: configure-stage4-target-libgomp
45855 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
45856 @r=`${PWD_COMMAND}`; export r; \
45857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45858 TFLAGS="$(STAGE4_TFLAGS)"; \
45859 $(NORMAL_TARGET_EXPORTS) \
45860 \
45861 cd $(TARGET_SUBDIR)/libgomp && \
45862 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45863 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45864 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45865 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45866 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45867 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45868 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45869 $(EXTRA_TARGET_FLAGS) \
45870 TFLAGS="$(STAGE4_TFLAGS)" \
45871 $(TARGET-stage4-target-libgomp)
45872
45873maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
45874clean-stage4: clean-stage4-target-libgomp
45875clean-stage4-target-libgomp:
45876 @if [ $(current_stage) = stage4 ]; then \
45877 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45878 else \
45879 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
45880 $(MAKE) stage4-start; \
45881 fi; \
45882 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45883 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45884@endif target-libgomp-bootstrap
45885
45886
45887.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
45888.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
45889maybe-all-stageprofile-target-libgomp:
45890maybe-clean-stageprofile-target-libgomp:
45891@if target-libgomp-bootstrap
45892maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
45893all-stageprofile: all-stageprofile-target-libgomp
45894TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
45895all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
45896 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
45897 @r=`${PWD_COMMAND}`; export r; \
45898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45899 TFLAGS="$(STAGEprofile_TFLAGS)"; \
45900 $(NORMAL_TARGET_EXPORTS) \
45901 \
45902 cd $(TARGET_SUBDIR)/libgomp && \
45903 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45904 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45905 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45906 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45907 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45908 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45909 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45910 $(EXTRA_TARGET_FLAGS) \
45911 TFLAGS="$(STAGEprofile_TFLAGS)" \
45912 $(TARGET-stageprofile-target-libgomp)
45913
45914maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
45915clean-stageprofile: clean-stageprofile-target-libgomp
45916clean-stageprofile-target-libgomp:
45917 @if [ $(current_stage) = stageprofile ]; then \
45918 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45919 else \
45920 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
45921 $(MAKE) stageprofile-start; \
45922 fi; \
45923 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45924 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45925@endif target-libgomp-bootstrap
45926
45927
45928.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
45929.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
45930maybe-all-stagefeedback-target-libgomp:
45931maybe-clean-stagefeedback-target-libgomp:
45932@if target-libgomp-bootstrap
45933maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
45934all-stagefeedback: all-stagefeedback-target-libgomp
45935TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
45936all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
45937 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
45938 @r=`${PWD_COMMAND}`; export r; \
45939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45940 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
45941 $(NORMAL_TARGET_EXPORTS) \
45942 \
45943 cd $(TARGET_SUBDIR)/libgomp && \
45944 $(MAKE) $(BASE_FLAGS_TO_PASS) \
45945 CFLAGS="$(CFLAGS_FOR_TARGET)" \
45946 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
45947 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
45948 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
45949 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
45950 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
45951 $(EXTRA_TARGET_FLAGS) \
45952 TFLAGS="$(STAGEfeedback_TFLAGS)" \
45953 $(TARGET-stagefeedback-target-libgomp)
45954
45955maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
45956clean-stagefeedback: clean-stagefeedback-target-libgomp
45957clean-stagefeedback-target-libgomp:
45958 @if [ $(current_stage) = stagefeedback ]; then \
45959 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
45960 else \
45961 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
45962 $(MAKE) stagefeedback-start; \
45963 fi; \
45964 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 45965 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
45966@endif target-libgomp-bootstrap
45967
45968
45969
45970
b3ded179
PB
45971
45972
45973.PHONY: check-target-libgomp maybe-check-target-libgomp
45974maybe-check-target-libgomp:
45975@if target-libgomp
45976maybe-check-target-libgomp: check-target-libgomp
45977
45978check-target-libgomp:
45979 @: $(MAKE); $(unstage)
45980 @r=`${PWD_COMMAND}`; export r; \
45981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45982 $(NORMAL_TARGET_EXPORTS) \
45983 (cd $(TARGET_SUBDIR)/libgomp && \
45984 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
45985
45986@endif target-libgomp
45987
45988.PHONY: install-target-libgomp maybe-install-target-libgomp
45989maybe-install-target-libgomp:
45990@if target-libgomp
45991maybe-install-target-libgomp: install-target-libgomp
45992
45993install-target-libgomp: installdirs
45994 @: $(MAKE); $(unstage)
45995 @r=`${PWD_COMMAND}`; export r; \
45996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45997 $(NORMAL_TARGET_EXPORTS) \
45998 (cd $(TARGET_SUBDIR)/libgomp && \
45999 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46000
46001@endif target-libgomp
46002
9b980aa1
RW
46003.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
46004maybe-install-strip-target-libgomp:
46005@if target-libgomp
46006maybe-install-strip-target-libgomp: install-strip-target-libgomp
46007
46008install-strip-target-libgomp: installdirs
46009 @: $(MAKE); $(unstage)
46010 @r=`${PWD_COMMAND}`; export r; \
46011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46012 $(NORMAL_TARGET_EXPORTS) \
46013 (cd $(TARGET_SUBDIR)/libgomp && \
46014 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46015
46016@endif target-libgomp
46017
56a8fe78 46018# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
46019
46020.PHONY: maybe-info-target-libgomp info-target-libgomp
46021maybe-info-target-libgomp:
46022@if target-libgomp
46023maybe-info-target-libgomp: info-target-libgomp
46024
46025info-target-libgomp: \
46026 configure-target-libgomp
46027 @: $(MAKE); $(unstage)
46028 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46029 r=`${PWD_COMMAND}`; export r; \
46030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46031 $(NORMAL_TARGET_EXPORTS) \
46032 echo "Doing info in $(TARGET_SUBDIR)/libgomp" ; \
46033 for flag in $(EXTRA_TARGET_FLAGS); do \
46034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46035 done; \
46036 (cd $(TARGET_SUBDIR)/libgomp && \
46037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46039 "RANLIB=$${RANLIB}" \
0c24b341 46040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46041 info) \
46042 || exit 1
46043
46044@endif target-libgomp
46045
46046.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
46047maybe-dvi-target-libgomp:
46048@if target-libgomp
46049maybe-dvi-target-libgomp: dvi-target-libgomp
46050
46051dvi-target-libgomp: \
46052 configure-target-libgomp
46053 @: $(MAKE); $(unstage)
46054 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46055 r=`${PWD_COMMAND}`; export r; \
46056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46057 $(NORMAL_TARGET_EXPORTS) \
46058 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp" ; \
46059 for flag in $(EXTRA_TARGET_FLAGS); do \
46060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46061 done; \
46062 (cd $(TARGET_SUBDIR)/libgomp && \
46063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46065 "RANLIB=$${RANLIB}" \
0c24b341 46066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46067 dvi) \
46068 || exit 1
46069
46070@endif target-libgomp
46071
56a8fe78
DD
46072.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
46073maybe-pdf-target-libgomp:
46074@if target-libgomp
46075maybe-pdf-target-libgomp: pdf-target-libgomp
46076
46077pdf-target-libgomp: \
46078 configure-target-libgomp
46079 @: $(MAKE); $(unstage)
46080 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46081 r=`${PWD_COMMAND}`; export r; \
46082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46083 $(NORMAL_TARGET_EXPORTS) \
46084 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp" ; \
46085 for flag in $(EXTRA_TARGET_FLAGS); do \
46086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46087 done; \
46088 (cd $(TARGET_SUBDIR)/libgomp && \
46089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46091 "RANLIB=$${RANLIB}" \
0c24b341 46092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46093 pdf) \
46094 || exit 1
46095
46096@endif target-libgomp
46097
b3ded179
PB
46098.PHONY: maybe-html-target-libgomp html-target-libgomp
46099maybe-html-target-libgomp:
46100@if target-libgomp
46101maybe-html-target-libgomp: html-target-libgomp
46102
46103html-target-libgomp: \
46104 configure-target-libgomp
46105 @: $(MAKE); $(unstage)
46106 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46107 r=`${PWD_COMMAND}`; export r; \
46108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46109 $(NORMAL_TARGET_EXPORTS) \
46110 echo "Doing html in $(TARGET_SUBDIR)/libgomp" ; \
46111 for flag in $(EXTRA_TARGET_FLAGS); do \
46112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46113 done; \
46114 (cd $(TARGET_SUBDIR)/libgomp && \
46115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46117 "RANLIB=$${RANLIB}" \
0c24b341 46118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46119 html) \
46120 || exit 1
46121
46122@endif target-libgomp
46123
46124.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
46125maybe-TAGS-target-libgomp:
46126@if target-libgomp
46127maybe-TAGS-target-libgomp: TAGS-target-libgomp
46128
46129TAGS-target-libgomp: \
46130 configure-target-libgomp
46131 @: $(MAKE); $(unstage)
46132 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46133 r=`${PWD_COMMAND}`; export r; \
46134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46135 $(NORMAL_TARGET_EXPORTS) \
46136 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp" ; \
46137 for flag in $(EXTRA_TARGET_FLAGS); do \
46138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46139 done; \
46140 (cd $(TARGET_SUBDIR)/libgomp && \
46141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46143 "RANLIB=$${RANLIB}" \
0c24b341 46144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46145 TAGS) \
46146 || exit 1
46147
46148@endif target-libgomp
46149
46150.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
46151maybe-install-info-target-libgomp:
46152@if target-libgomp
46153maybe-install-info-target-libgomp: install-info-target-libgomp
46154
46155install-info-target-libgomp: \
46156 configure-target-libgomp \
46157 info-target-libgomp
46158 @: $(MAKE); $(unstage)
46159 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46160 r=`${PWD_COMMAND}`; export r; \
46161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46162 $(NORMAL_TARGET_EXPORTS) \
46163 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp" ; \
46164 for flag in $(EXTRA_TARGET_FLAGS); do \
46165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46166 done; \
46167 (cd $(TARGET_SUBDIR)/libgomp && \
46168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46170 "RANLIB=$${RANLIB}" \
0c24b341 46171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46172 install-info) \
46173 || exit 1
46174
46175@endif target-libgomp
46176
a3ca38d2
DD
46177.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
46178maybe-install-pdf-target-libgomp:
46179@if target-libgomp
46180maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
46181
46182install-pdf-target-libgomp: \
46183 configure-target-libgomp \
46184 pdf-target-libgomp
46185 @: $(MAKE); $(unstage)
46186 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46187 r=`${PWD_COMMAND}`; export r; \
46188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46189 $(NORMAL_TARGET_EXPORTS) \
46190 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp" ; \
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)/libgomp && \
46195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46197 "RANLIB=$${RANLIB}" \
0c24b341 46198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46199 install-pdf) \
46200 || exit 1
46201
46202@endif target-libgomp
46203
108a6f8e
CD
46204.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
46205maybe-install-html-target-libgomp:
46206@if target-libgomp
46207maybe-install-html-target-libgomp: install-html-target-libgomp
46208
46209install-html-target-libgomp: \
46210 configure-target-libgomp \
46211 html-target-libgomp
46212 @: $(MAKE); $(unstage)
46213 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46214 r=`${PWD_COMMAND}`; export r; \
46215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46216 $(NORMAL_TARGET_EXPORTS) \
46217 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp" ; \
46218 for flag in $(EXTRA_TARGET_FLAGS); do \
46219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46220 done; \
46221 (cd $(TARGET_SUBDIR)/libgomp && \
46222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46224 "RANLIB=$${RANLIB}" \
0c24b341 46225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46226 install-html) \
46227 || exit 1
46228
46229@endif target-libgomp
46230
b3ded179
PB
46231.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
46232maybe-installcheck-target-libgomp:
46233@if target-libgomp
46234maybe-installcheck-target-libgomp: installcheck-target-libgomp
46235
46236installcheck-target-libgomp: \
46237 configure-target-libgomp
46238 @: $(MAKE); $(unstage)
46239 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46240 r=`${PWD_COMMAND}`; export r; \
46241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46242 $(NORMAL_TARGET_EXPORTS) \
46243 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp" ; \
46244 for flag in $(EXTRA_TARGET_FLAGS); do \
46245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46246 done; \
46247 (cd $(TARGET_SUBDIR)/libgomp && \
46248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46250 "RANLIB=$${RANLIB}" \
0c24b341 46251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46252 installcheck) \
46253 || exit 1
46254
46255@endif target-libgomp
46256
46257.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
46258maybe-mostlyclean-target-libgomp:
46259@if target-libgomp
46260maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
46261
46262mostlyclean-target-libgomp:
46263 @: $(MAKE); $(unstage)
46264 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46265 r=`${PWD_COMMAND}`; export r; \
46266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46267 $(NORMAL_TARGET_EXPORTS) \
46268 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp" ; \
46269 for flag in $(EXTRA_TARGET_FLAGS); do \
46270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46271 done; \
46272 (cd $(TARGET_SUBDIR)/libgomp && \
46273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46275 "RANLIB=$${RANLIB}" \
0c24b341 46276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46277 mostlyclean) \
46278 || exit 1
46279
46280@endif target-libgomp
46281
46282.PHONY: maybe-clean-target-libgomp clean-target-libgomp
46283maybe-clean-target-libgomp:
46284@if target-libgomp
46285maybe-clean-target-libgomp: clean-target-libgomp
46286
46287clean-target-libgomp:
46288 @: $(MAKE); $(unstage)
46289 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46290 r=`${PWD_COMMAND}`; export r; \
46291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46292 $(NORMAL_TARGET_EXPORTS) \
46293 echo "Doing clean in $(TARGET_SUBDIR)/libgomp" ; \
46294 for flag in $(EXTRA_TARGET_FLAGS); do \
46295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46296 done; \
46297 (cd $(TARGET_SUBDIR)/libgomp && \
46298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46300 "RANLIB=$${RANLIB}" \
0c24b341 46301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46302 clean) \
46303 || exit 1
46304
46305@endif target-libgomp
46306
46307.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
46308maybe-distclean-target-libgomp:
46309@if target-libgomp
46310maybe-distclean-target-libgomp: distclean-target-libgomp
46311
46312distclean-target-libgomp:
46313 @: $(MAKE); $(unstage)
46314 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46315 r=`${PWD_COMMAND}`; export r; \
46316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46317 $(NORMAL_TARGET_EXPORTS) \
46318 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp" ; \
46319 for flag in $(EXTRA_TARGET_FLAGS); do \
46320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46321 done; \
46322 (cd $(TARGET_SUBDIR)/libgomp && \
46323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46325 "RANLIB=$${RANLIB}" \
0c24b341 46326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46327 distclean) \
46328 || exit 1
46329
46330@endif target-libgomp
46331
46332.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
46333maybe-maintainer-clean-target-libgomp:
46334@if target-libgomp
46335maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
46336
46337maintainer-clean-target-libgomp:
46338 @: $(MAKE); $(unstage)
46339 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
46340 r=`${PWD_COMMAND}`; export r; \
46341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46342 $(NORMAL_TARGET_EXPORTS) \
46343 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp" ; \
46344 for flag in $(EXTRA_TARGET_FLAGS); do \
46345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46346 done; \
46347 (cd $(TARGET_SUBDIR)/libgomp && \
46348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46350 "RANLIB=$${RANLIB}" \
0c24b341 46351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46352 maintainer-clean) \
46353 || exit 1
46354
46355@endif target-libgomp
46356
46357
46358
7ec59b9e
L
46359
46360
46361.PHONY: configure-target-libitm maybe-configure-target-libitm
46362maybe-configure-target-libitm:
46363@if gcc-bootstrap
46364configure-target-libitm: stage_current
46365@endif gcc-bootstrap
46366@if target-libitm
46367maybe-configure-target-libitm: configure-target-libitm
46368configure-target-libitm:
46369 @: $(MAKE); $(unstage)
46370 @r=`${PWD_COMMAND}`; export r; \
46371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46372 echo "Checking multilib configuration for libitm..."; \
46373 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm ; \
46374 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null ; \
46375 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
46376 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
46377 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
46378 else \
46379 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
46380 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46381 fi; \
46382 else \
46383 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46384 fi; \
46385 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
46386 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm ; \
46387 $(NORMAL_TARGET_EXPORTS) \
46388 echo Configuring in $(TARGET_SUBDIR)/libitm; \
46389 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
46390 case $(srcdir) in \
46391 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46392 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
46393 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46394 esac; \
1b6c0831 46395 module_srcdir=libitm; \
7ec59b9e 46396 rm -f no-such-file || : ; \
1b6c0831
L
46397 CONFIG_SITE=no-such-file $(SHELL) \
46398 $$s/$$module_srcdir/configure \
46399 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 46400 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46401 --target=${target_alias} \
7ec59b9e
L
46402 || exit 1
46403@endif target-libitm
46404
46405
46406
46407
46408
46409.PHONY: all-target-libitm maybe-all-target-libitm
46410maybe-all-target-libitm:
46411@if gcc-bootstrap
46412all-target-libitm: stage_current
46413@endif gcc-bootstrap
46414@if target-libitm
46415TARGET-target-libitm=all
46416maybe-all-target-libitm: all-target-libitm
46417all-target-libitm: configure-target-libitm
46418 @: $(MAKE); $(unstage)
46419 @r=`${PWD_COMMAND}`; export r; \
46420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46421 $(NORMAL_TARGET_EXPORTS) \
46422 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 46423 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
46424 $(TARGET-target-libitm))
46425@endif target-libitm
46426
46427
46428
46429
46430
46431.PHONY: check-target-libitm maybe-check-target-libitm
46432maybe-check-target-libitm:
46433@if target-libitm
46434maybe-check-target-libitm: check-target-libitm
46435
46436check-target-libitm:
46437 @: $(MAKE); $(unstage)
46438 @r=`${PWD_COMMAND}`; export r; \
46439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46440 $(NORMAL_TARGET_EXPORTS) \
46441 (cd $(TARGET_SUBDIR)/libitm && \
46442 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46443
46444@endif target-libitm
46445
46446.PHONY: install-target-libitm maybe-install-target-libitm
46447maybe-install-target-libitm:
46448@if target-libitm
46449maybe-install-target-libitm: install-target-libitm
46450
46451install-target-libitm: installdirs
46452 @: $(MAKE); $(unstage)
46453 @r=`${PWD_COMMAND}`; export r; \
46454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46455 $(NORMAL_TARGET_EXPORTS) \
46456 (cd $(TARGET_SUBDIR)/libitm && \
46457 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46458
46459@endif target-libitm
46460
46461.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
46462maybe-install-strip-target-libitm:
46463@if target-libitm
46464maybe-install-strip-target-libitm: install-strip-target-libitm
46465
46466install-strip-target-libitm: installdirs
46467 @: $(MAKE); $(unstage)
46468 @r=`${PWD_COMMAND}`; export r; \
46469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46470 $(NORMAL_TARGET_EXPORTS) \
46471 (cd $(TARGET_SUBDIR)/libitm && \
46472 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46473
46474@endif target-libitm
46475
46476# Other targets (info, dvi, pdf, etc.)
46477
46478.PHONY: maybe-info-target-libitm info-target-libitm
46479maybe-info-target-libitm:
46480@if target-libitm
46481maybe-info-target-libitm: info-target-libitm
46482
46483info-target-libitm: \
46484 configure-target-libitm
46485 @: $(MAKE); $(unstage)
46486 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46487 r=`${PWD_COMMAND}`; export r; \
46488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46489 $(NORMAL_TARGET_EXPORTS) \
46490 echo "Doing info in $(TARGET_SUBDIR)/libitm" ; \
46491 for flag in $(EXTRA_TARGET_FLAGS); do \
46492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46493 done; \
46494 (cd $(TARGET_SUBDIR)/libitm && \
46495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46497 "RANLIB=$${RANLIB}" \
46498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46499 info) \
46500 || exit 1
46501
46502@endif target-libitm
46503
46504.PHONY: maybe-dvi-target-libitm dvi-target-libitm
46505maybe-dvi-target-libitm:
46506@if target-libitm
46507maybe-dvi-target-libitm: dvi-target-libitm
46508
46509dvi-target-libitm: \
46510 configure-target-libitm
46511 @: $(MAKE); $(unstage)
46512 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46513 r=`${PWD_COMMAND}`; export r; \
46514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46515 $(NORMAL_TARGET_EXPORTS) \
46516 echo "Doing dvi in $(TARGET_SUBDIR)/libitm" ; \
46517 for flag in $(EXTRA_TARGET_FLAGS); do \
46518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46519 done; \
46520 (cd $(TARGET_SUBDIR)/libitm && \
46521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46523 "RANLIB=$${RANLIB}" \
46524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46525 dvi) \
46526 || exit 1
46527
46528@endif target-libitm
46529
46530.PHONY: maybe-pdf-target-libitm pdf-target-libitm
46531maybe-pdf-target-libitm:
46532@if target-libitm
46533maybe-pdf-target-libitm: pdf-target-libitm
46534
46535pdf-target-libitm: \
46536 configure-target-libitm
46537 @: $(MAKE); $(unstage)
46538 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46539 r=`${PWD_COMMAND}`; export r; \
46540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46541 $(NORMAL_TARGET_EXPORTS) \
46542 echo "Doing pdf in $(TARGET_SUBDIR)/libitm" ; \
46543 for flag in $(EXTRA_TARGET_FLAGS); do \
46544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46545 done; \
46546 (cd $(TARGET_SUBDIR)/libitm && \
46547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46549 "RANLIB=$${RANLIB}" \
46550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46551 pdf) \
46552 || exit 1
46553
46554@endif target-libitm
46555
46556.PHONY: maybe-html-target-libitm html-target-libitm
46557maybe-html-target-libitm:
46558@if target-libitm
46559maybe-html-target-libitm: html-target-libitm
46560
46561html-target-libitm: \
46562 configure-target-libitm
46563 @: $(MAKE); $(unstage)
46564 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46565 r=`${PWD_COMMAND}`; export r; \
46566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46567 $(NORMAL_TARGET_EXPORTS) \
46568 echo "Doing html in $(TARGET_SUBDIR)/libitm" ; \
46569 for flag in $(EXTRA_TARGET_FLAGS); do \
46570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46571 done; \
46572 (cd $(TARGET_SUBDIR)/libitm && \
46573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46575 "RANLIB=$${RANLIB}" \
46576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46577 html) \
46578 || exit 1
46579
46580@endif target-libitm
46581
46582.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
46583maybe-TAGS-target-libitm:
46584@if target-libitm
46585maybe-TAGS-target-libitm: TAGS-target-libitm
46586
46587TAGS-target-libitm: \
46588 configure-target-libitm
46589 @: $(MAKE); $(unstage)
46590 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46591 r=`${PWD_COMMAND}`; export r; \
46592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46593 $(NORMAL_TARGET_EXPORTS) \
46594 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm" ; \
46595 for flag in $(EXTRA_TARGET_FLAGS); do \
46596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46597 done; \
46598 (cd $(TARGET_SUBDIR)/libitm && \
46599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46601 "RANLIB=$${RANLIB}" \
46602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46603 TAGS) \
46604 || exit 1
46605
46606@endif target-libitm
46607
46608.PHONY: maybe-install-info-target-libitm install-info-target-libitm
46609maybe-install-info-target-libitm:
46610@if target-libitm
46611maybe-install-info-target-libitm: install-info-target-libitm
46612
46613install-info-target-libitm: \
46614 configure-target-libitm \
46615 info-target-libitm
46616 @: $(MAKE); $(unstage)
46617 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46618 r=`${PWD_COMMAND}`; export r; \
46619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46620 $(NORMAL_TARGET_EXPORTS) \
46621 echo "Doing install-info in $(TARGET_SUBDIR)/libitm" ; \
46622 for flag in $(EXTRA_TARGET_FLAGS); do \
46623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46624 done; \
46625 (cd $(TARGET_SUBDIR)/libitm && \
46626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46628 "RANLIB=$${RANLIB}" \
46629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46630 install-info) \
46631 || exit 1
46632
46633@endif target-libitm
46634
46635.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
46636maybe-install-pdf-target-libitm:
46637@if target-libitm
46638maybe-install-pdf-target-libitm: install-pdf-target-libitm
46639
46640install-pdf-target-libitm: \
46641 configure-target-libitm \
46642 pdf-target-libitm
46643 @: $(MAKE); $(unstage)
46644 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46645 r=`${PWD_COMMAND}`; export r; \
46646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46647 $(NORMAL_TARGET_EXPORTS) \
46648 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm" ; \
46649 for flag in $(EXTRA_TARGET_FLAGS); do \
46650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46651 done; \
46652 (cd $(TARGET_SUBDIR)/libitm && \
46653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46655 "RANLIB=$${RANLIB}" \
46656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46657 install-pdf) \
46658 || exit 1
46659
46660@endif target-libitm
46661
46662.PHONY: maybe-install-html-target-libitm install-html-target-libitm
46663maybe-install-html-target-libitm:
46664@if target-libitm
46665maybe-install-html-target-libitm: install-html-target-libitm
46666
46667install-html-target-libitm: \
46668 configure-target-libitm \
46669 html-target-libitm
46670 @: $(MAKE); $(unstage)
46671 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46672 r=`${PWD_COMMAND}`; export r; \
46673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46674 $(NORMAL_TARGET_EXPORTS) \
46675 echo "Doing install-html in $(TARGET_SUBDIR)/libitm" ; \
46676 for flag in $(EXTRA_TARGET_FLAGS); do \
46677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46678 done; \
46679 (cd $(TARGET_SUBDIR)/libitm && \
46680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46682 "RANLIB=$${RANLIB}" \
46683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46684 install-html) \
46685 || exit 1
46686
46687@endif target-libitm
46688
46689.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
46690maybe-installcheck-target-libitm:
46691@if target-libitm
46692maybe-installcheck-target-libitm: installcheck-target-libitm
46693
46694installcheck-target-libitm: \
46695 configure-target-libitm
46696 @: $(MAKE); $(unstage)
46697 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46698 r=`${PWD_COMMAND}`; export r; \
46699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46700 $(NORMAL_TARGET_EXPORTS) \
46701 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm" ; \
46702 for flag in $(EXTRA_TARGET_FLAGS); do \
46703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46704 done; \
46705 (cd $(TARGET_SUBDIR)/libitm && \
46706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46708 "RANLIB=$${RANLIB}" \
46709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46710 installcheck) \
46711 || exit 1
46712
46713@endif target-libitm
46714
46715.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
46716maybe-mostlyclean-target-libitm:
46717@if target-libitm
46718maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
46719
46720mostlyclean-target-libitm:
46721 @: $(MAKE); $(unstage)
46722 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46723 r=`${PWD_COMMAND}`; export r; \
46724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46725 $(NORMAL_TARGET_EXPORTS) \
46726 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm" ; \
46727 for flag in $(EXTRA_TARGET_FLAGS); do \
46728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46729 done; \
46730 (cd $(TARGET_SUBDIR)/libitm && \
46731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46733 "RANLIB=$${RANLIB}" \
46734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46735 mostlyclean) \
46736 || exit 1
46737
46738@endif target-libitm
46739
46740.PHONY: maybe-clean-target-libitm clean-target-libitm
46741maybe-clean-target-libitm:
46742@if target-libitm
46743maybe-clean-target-libitm: clean-target-libitm
46744
46745clean-target-libitm:
46746 @: $(MAKE); $(unstage)
46747 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46748 r=`${PWD_COMMAND}`; export r; \
46749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46750 $(NORMAL_TARGET_EXPORTS) \
46751 echo "Doing clean in $(TARGET_SUBDIR)/libitm" ; \
46752 for flag in $(EXTRA_TARGET_FLAGS); do \
46753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46754 done; \
46755 (cd $(TARGET_SUBDIR)/libitm && \
46756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46758 "RANLIB=$${RANLIB}" \
46759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46760 clean) \
46761 || exit 1
46762
46763@endif target-libitm
46764
46765.PHONY: maybe-distclean-target-libitm distclean-target-libitm
46766maybe-distclean-target-libitm:
46767@if target-libitm
46768maybe-distclean-target-libitm: distclean-target-libitm
46769
46770distclean-target-libitm:
46771 @: $(MAKE); $(unstage)
46772 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46773 r=`${PWD_COMMAND}`; export r; \
46774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46775 $(NORMAL_TARGET_EXPORTS) \
46776 echo "Doing distclean in $(TARGET_SUBDIR)/libitm" ; \
46777 for flag in $(EXTRA_TARGET_FLAGS); do \
46778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46779 done; \
46780 (cd $(TARGET_SUBDIR)/libitm && \
46781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46783 "RANLIB=$${RANLIB}" \
46784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46785 distclean) \
46786 || exit 1
46787
46788@endif target-libitm
46789
46790.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
46791maybe-maintainer-clean-target-libitm:
46792@if target-libitm
46793maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
46794
46795maintainer-clean-target-libitm:
46796 @: $(MAKE); $(unstage)
46797 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
46798 r=`${PWD_COMMAND}`; export r; \
46799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46800 $(NORMAL_TARGET_EXPORTS) \
46801 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm" ; \
46802 for flag in $(EXTRA_TARGET_FLAGS); do \
46803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46804 done; \
46805 (cd $(TARGET_SUBDIR)/libitm && \
46806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46808 "RANLIB=$${RANLIB}" \
46809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46810 maintainer-clean) \
46811 || exit 1
46812
46813@endif target-libitm
46814
46815
46816
46817
46818
46819.PHONY: configure-target-libatomic maybe-configure-target-libatomic
46820maybe-configure-target-libatomic:
46821@if gcc-bootstrap
46822configure-target-libatomic: stage_current
46823@endif gcc-bootstrap
46824@if target-libatomic
46825maybe-configure-target-libatomic: configure-target-libatomic
46826configure-target-libatomic:
46827 @: $(MAKE); $(unstage)
46828 @r=`${PWD_COMMAND}`; export r; \
46829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46830 echo "Checking multilib configuration for libatomic..."; \
46831 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic ; \
46832 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null ; \
46833 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
46834 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
46835 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
46836 else \
46837 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
46838 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
46839 fi; \
46840 else \
46841 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
46842 fi; \
46843 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
46844 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic ; \
46845 $(NORMAL_TARGET_EXPORTS) \
46846 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
46847 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
46848 case $(srcdir) in \
46849 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46850 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
46851 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46852 esac; \
1b6c0831 46853 module_srcdir=libatomic; \
7ec59b9e 46854 rm -f no-such-file || : ; \
1b6c0831
L
46855 CONFIG_SITE=no-such-file $(SHELL) \
46856 $$s/$$module_srcdir/configure \
46857 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 46858 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46859 --target=${target_alias} \
7ec59b9e
L
46860 || exit 1
46861@endif target-libatomic
46862
46863
46864
46865
46866
46867.PHONY: all-target-libatomic maybe-all-target-libatomic
46868maybe-all-target-libatomic:
46869@if gcc-bootstrap
46870all-target-libatomic: stage_current
46871@endif gcc-bootstrap
46872@if target-libatomic
46873TARGET-target-libatomic=all
46874maybe-all-target-libatomic: all-target-libatomic
46875all-target-libatomic: configure-target-libatomic
46876 @: $(MAKE); $(unstage)
46877 @r=`${PWD_COMMAND}`; export r; \
46878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46879 $(NORMAL_TARGET_EXPORTS) \
46880 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 46881 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
46882 $(TARGET-target-libatomic))
46883@endif target-libatomic
46884
46885
46886
46887
46888
46889.PHONY: check-target-libatomic maybe-check-target-libatomic
46890maybe-check-target-libatomic:
46891@if target-libatomic
46892maybe-check-target-libatomic: check-target-libatomic
46893
46894check-target-libatomic:
46895 @: $(MAKE); $(unstage)
46896 @r=`${PWD_COMMAND}`; export r; \
46897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46898 $(NORMAL_TARGET_EXPORTS) \
46899 (cd $(TARGET_SUBDIR)/libatomic && \
46900 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46901
46902@endif target-libatomic
46903
46904.PHONY: install-target-libatomic maybe-install-target-libatomic
46905maybe-install-target-libatomic:
46906@if target-libatomic
46907maybe-install-target-libatomic: install-target-libatomic
46908
46909install-target-libatomic: installdirs
46910 @: $(MAKE); $(unstage)
46911 @r=`${PWD_COMMAND}`; export r; \
46912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46913 $(NORMAL_TARGET_EXPORTS) \
46914 (cd $(TARGET_SUBDIR)/libatomic && \
46915 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46916
46917@endif target-libatomic
46918
46919.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
46920maybe-install-strip-target-libatomic:
46921@if target-libatomic
46922maybe-install-strip-target-libatomic: install-strip-target-libatomic
46923
46924install-strip-target-libatomic: installdirs
46925 @: $(MAKE); $(unstage)
46926 @r=`${PWD_COMMAND}`; export r; \
46927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46928 $(NORMAL_TARGET_EXPORTS) \
46929 (cd $(TARGET_SUBDIR)/libatomic && \
46930 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46931
46932@endif target-libatomic
46933
46934# Other targets (info, dvi, pdf, etc.)
46935
46936.PHONY: maybe-info-target-libatomic info-target-libatomic
46937maybe-info-target-libatomic:
46938@if target-libatomic
46939maybe-info-target-libatomic: info-target-libatomic
46940
46941info-target-libatomic: \
46942 configure-target-libatomic
46943 @: $(MAKE); $(unstage)
46944 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
46945 r=`${PWD_COMMAND}`; export r; \
46946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46947 $(NORMAL_TARGET_EXPORTS) \
46948 echo "Doing info in $(TARGET_SUBDIR)/libatomic" ; \
46949 for flag in $(EXTRA_TARGET_FLAGS); do \
46950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46951 done; \
46952 (cd $(TARGET_SUBDIR)/libatomic && \
46953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46955 "RANLIB=$${RANLIB}" \
46956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46957 info) \
46958 || exit 1
46959
46960@endif target-libatomic
46961
46962.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
46963maybe-dvi-target-libatomic:
46964@if target-libatomic
46965maybe-dvi-target-libatomic: dvi-target-libatomic
46966
46967dvi-target-libatomic: \
46968 configure-target-libatomic
46969 @: $(MAKE); $(unstage)
46970 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
46971 r=`${PWD_COMMAND}`; export r; \
46972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46973 $(NORMAL_TARGET_EXPORTS) \
46974 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic" ; \
46975 for flag in $(EXTRA_TARGET_FLAGS); do \
46976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46977 done; \
46978 (cd $(TARGET_SUBDIR)/libatomic && \
46979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46981 "RANLIB=$${RANLIB}" \
46982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46983 dvi) \
46984 || exit 1
46985
46986@endif target-libatomic
46987
46988.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
46989maybe-pdf-target-libatomic:
46990@if target-libatomic
46991maybe-pdf-target-libatomic: pdf-target-libatomic
46992
46993pdf-target-libatomic: \
46994 configure-target-libatomic
46995 @: $(MAKE); $(unstage)
46996 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
46997 r=`${PWD_COMMAND}`; export r; \
46998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46999 $(NORMAL_TARGET_EXPORTS) \
47000 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic" ; \
47001 for flag in $(EXTRA_TARGET_FLAGS); do \
47002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47003 done; \
47004 (cd $(TARGET_SUBDIR)/libatomic && \
47005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47007 "RANLIB=$${RANLIB}" \
47008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47009 pdf) \
47010 || exit 1
47011
47012@endif target-libatomic
47013
47014.PHONY: maybe-html-target-libatomic html-target-libatomic
47015maybe-html-target-libatomic:
47016@if target-libatomic
47017maybe-html-target-libatomic: html-target-libatomic
47018
47019html-target-libatomic: \
47020 configure-target-libatomic
47021 @: $(MAKE); $(unstage)
47022 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47023 r=`${PWD_COMMAND}`; export r; \
47024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47025 $(NORMAL_TARGET_EXPORTS) \
47026 echo "Doing html in $(TARGET_SUBDIR)/libatomic" ; \
47027 for flag in $(EXTRA_TARGET_FLAGS); do \
47028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47029 done; \
47030 (cd $(TARGET_SUBDIR)/libatomic && \
47031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47033 "RANLIB=$${RANLIB}" \
47034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47035 html) \
47036 || exit 1
47037
47038@endif target-libatomic
47039
47040.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
47041maybe-TAGS-target-libatomic:
47042@if target-libatomic
47043maybe-TAGS-target-libatomic: TAGS-target-libatomic
47044
47045TAGS-target-libatomic: \
47046 configure-target-libatomic
47047 @: $(MAKE); $(unstage)
47048 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47049 r=`${PWD_COMMAND}`; export r; \
47050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47051 $(NORMAL_TARGET_EXPORTS) \
47052 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic" ; \
47053 for flag in $(EXTRA_TARGET_FLAGS); do \
47054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47055 done; \
47056 (cd $(TARGET_SUBDIR)/libatomic && \
47057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47059 "RANLIB=$${RANLIB}" \
47060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47061 TAGS) \
47062 || exit 1
47063
47064@endif target-libatomic
47065
47066.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
47067maybe-install-info-target-libatomic:
47068@if target-libatomic
47069maybe-install-info-target-libatomic: install-info-target-libatomic
47070
47071install-info-target-libatomic: \
47072 configure-target-libatomic \
47073 info-target-libatomic
47074 @: $(MAKE); $(unstage)
47075 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47076 r=`${PWD_COMMAND}`; export r; \
47077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47078 $(NORMAL_TARGET_EXPORTS) \
47079 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic" ; \
47080 for flag in $(EXTRA_TARGET_FLAGS); do \
47081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47082 done; \
47083 (cd $(TARGET_SUBDIR)/libatomic && \
47084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47086 "RANLIB=$${RANLIB}" \
47087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47088 install-info) \
47089 || exit 1
47090
47091@endif target-libatomic
47092
47093.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
47094maybe-install-pdf-target-libatomic:
47095@if target-libatomic
47096maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
47097
47098install-pdf-target-libatomic: \
47099 configure-target-libatomic \
47100 pdf-target-libatomic
47101 @: $(MAKE); $(unstage)
47102 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47103 r=`${PWD_COMMAND}`; export r; \
47104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47105 $(NORMAL_TARGET_EXPORTS) \
47106 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic" ; \
47107 for flag in $(EXTRA_TARGET_FLAGS); do \
47108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47109 done; \
47110 (cd $(TARGET_SUBDIR)/libatomic && \
47111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47113 "RANLIB=$${RANLIB}" \
47114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47115 install-pdf) \
47116 || exit 1
47117
47118@endif target-libatomic
47119
47120.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
47121maybe-install-html-target-libatomic:
47122@if target-libatomic
47123maybe-install-html-target-libatomic: install-html-target-libatomic
47124
47125install-html-target-libatomic: \
47126 configure-target-libatomic \
47127 html-target-libatomic
47128 @: $(MAKE); $(unstage)
47129 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47130 r=`${PWD_COMMAND}`; export r; \
47131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47132 $(NORMAL_TARGET_EXPORTS) \
47133 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic" ; \
47134 for flag in $(EXTRA_TARGET_FLAGS); do \
47135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47136 done; \
47137 (cd $(TARGET_SUBDIR)/libatomic && \
47138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47140 "RANLIB=$${RANLIB}" \
47141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47142 install-html) \
47143 || exit 1
47144
47145@endif target-libatomic
47146
47147.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
47148maybe-installcheck-target-libatomic:
47149@if target-libatomic
47150maybe-installcheck-target-libatomic: installcheck-target-libatomic
47151
47152installcheck-target-libatomic: \
47153 configure-target-libatomic
47154 @: $(MAKE); $(unstage)
47155 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47156 r=`${PWD_COMMAND}`; export r; \
47157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47158 $(NORMAL_TARGET_EXPORTS) \
47159 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic" ; \
47160 for flag in $(EXTRA_TARGET_FLAGS); do \
47161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47162 done; \
47163 (cd $(TARGET_SUBDIR)/libatomic && \
47164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47166 "RANLIB=$${RANLIB}" \
47167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47168 installcheck) \
47169 || exit 1
47170
47171@endif target-libatomic
47172
47173.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
47174maybe-mostlyclean-target-libatomic:
47175@if target-libatomic
47176maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
47177
47178mostlyclean-target-libatomic:
47179 @: $(MAKE); $(unstage)
47180 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47181 r=`${PWD_COMMAND}`; export r; \
47182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47183 $(NORMAL_TARGET_EXPORTS) \
47184 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic" ; \
47185 for flag in $(EXTRA_TARGET_FLAGS); do \
47186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47187 done; \
47188 (cd $(TARGET_SUBDIR)/libatomic && \
47189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47191 "RANLIB=$${RANLIB}" \
47192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47193 mostlyclean) \
47194 || exit 1
47195
47196@endif target-libatomic
47197
47198.PHONY: maybe-clean-target-libatomic clean-target-libatomic
47199maybe-clean-target-libatomic:
47200@if target-libatomic
47201maybe-clean-target-libatomic: clean-target-libatomic
47202
47203clean-target-libatomic:
47204 @: $(MAKE); $(unstage)
47205 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47206 r=`${PWD_COMMAND}`; export r; \
47207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47208 $(NORMAL_TARGET_EXPORTS) \
47209 echo "Doing clean in $(TARGET_SUBDIR)/libatomic" ; \
47210 for flag in $(EXTRA_TARGET_FLAGS); do \
47211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47212 done; \
47213 (cd $(TARGET_SUBDIR)/libatomic && \
47214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47216 "RANLIB=$${RANLIB}" \
47217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47218 clean) \
47219 || exit 1
47220
47221@endif target-libatomic
47222
47223.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
47224maybe-distclean-target-libatomic:
47225@if target-libatomic
47226maybe-distclean-target-libatomic: distclean-target-libatomic
47227
47228distclean-target-libatomic:
47229 @: $(MAKE); $(unstage)
47230 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47231 r=`${PWD_COMMAND}`; export r; \
47232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47233 $(NORMAL_TARGET_EXPORTS) \
47234 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic" ; \
47235 for flag in $(EXTRA_TARGET_FLAGS); do \
47236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47237 done; \
47238 (cd $(TARGET_SUBDIR)/libatomic && \
47239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47241 "RANLIB=$${RANLIB}" \
47242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47243 distclean) \
47244 || exit 1
47245
47246@endif target-libatomic
47247
47248.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
47249maybe-maintainer-clean-target-libatomic:
47250@if target-libatomic
47251maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
47252
47253maintainer-clean-target-libatomic:
47254 @: $(MAKE); $(unstage)
47255 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
47256 r=`${PWD_COMMAND}`; export r; \
47257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47258 $(NORMAL_TARGET_EXPORTS) \
47259 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic" ; \
47260 for flag in $(EXTRA_TARGET_FLAGS); do \
47261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47262 done; \
47263 (cd $(TARGET_SUBDIR)/libatomic && \
47264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47266 "RANLIB=$${RANLIB}" \
47267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47268 maintainer-clean) \
47269 || exit 1
47270
47271@endif target-libatomic
47272
47273
47274
7ec59b9e
L
47275@if target-libgomp
47276.PHONY: check-target-libgomp-c++
47277check-target-libgomp-c++:
47278 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
47279
47280@endif target-libgomp
47281
47282@if target-libitm
47283.PHONY: check-target-libitm-c++
47284check-target-libitm-c++:
47285 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
47286
47287@endif target-libitm
47288
15723a45
NN
47289# ----------
47290# GCC module
47291# ----------
47292
319cab08 47293@if gcc-no-bootstrap
252b5132 47294.PHONY: cross
72b2455a 47295cross: all-build all-gas all-ld
b40e3958
L
47296 @r=`${PWD_COMMAND}`; export r; \
47297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47298 $(HOST_EXPORTS) \
252b5132 47299 echo "Building the C and C++ compiler"; \
5cec67bf 47300 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958
L
47301 @r=`${PWD_COMMAND}`; export r; \
47302 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
252b5132 47303 echo "Building runtime libraries"; \
656fdd47 47304 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 47305@endif gcc-no-bootstrap
252b5132 47306
6bd3dfaa 47307@if gcc
c50523ce
L
47308
47309.PHONY: check-gcc-c check-c
47310check-gcc-c:
47311 r=`${PWD_COMMAND}`; export r; \
47312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47313 $(HOST_EXPORTS) \
47314 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
47315check-c: check-gcc-c
47316
47317.PHONY: check-gcc-c++ check-c++
7d695d07 47318check-gcc-c++:
c50523ce
L
47319 r=`${PWD_COMMAND}`; export r; \
47320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47321 $(HOST_EXPORTS) \
7ec59b9e 47322 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 47323check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
47324
47325.PHONY: check-gcc-fortran check-fortran
47326check-gcc-fortran:
47327 r=`${PWD_COMMAND}`; export r; \
47328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47329 $(HOST_EXPORTS) \
47330 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e552509b 47331check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran
c50523ce
L
47332
47333.PHONY: check-gcc-java check-java
47334check-gcc-java:
47335 r=`${PWD_COMMAND}`; export r; \
47336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47337 $(HOST_EXPORTS) \
47338 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-java);
47339check-java: check-gcc-java check-target-libjava
47340
47341.PHONY: check-gcc-ada check-ada
47342check-gcc-ada:
47343 r=`${PWD_COMMAND}`; export r; \
47344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47345 $(HOST_EXPORTS) \
47346 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
47347check-ada: check-gcc-ada check-target-libada
47348
47349.PHONY: check-gcc-objc check-objc
47350check-gcc-objc:
47351 r=`${PWD_COMMAND}`; export r; \
47352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47353 $(HOST_EXPORTS) \
47354 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
47355check-objc: check-gcc-objc check-target-libobjc
47356
47357.PHONY: check-gcc-obj-c++ check-obj-c++
47358check-gcc-obj-c++:
47359 r=`${PWD_COMMAND}`; export r; \
47360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47361 $(HOST_EXPORTS) \
47362 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
47363check-obj-c++: check-gcc-obj-c++
7d695d07 47364
e552509b
ILT
47365.PHONY: check-gcc-go check-go
47366check-gcc-go:
47367 r=`${PWD_COMMAND}`; export r; \
47368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47369 $(HOST_EXPORTS) \
47370 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
47371check-go: check-gcc-go check-target-libgo
47372
252b5132 47373
7ec59b9e
L
47374# The gcc part of install-no-fixedincludes, which relies on an intimate
47375# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
47376.PHONY: gcc-install-no-fixedincludes
47377gcc-install-no-fixedincludes:
15723a45 47378 @if [ -f ./gcc/Makefile ]; then \
b40e3958 47379 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 47380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47381 $(HOST_EXPORTS) \
7ec59b9e
L
47382 (cd ./gcc \
47383 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 47384 else true; fi
6bd3dfaa 47385@endif gcc
4fa63067 47386
b813574b
PB
47387# ---------------------
47388# GCC bootstrap support
47389# ---------------------
4fa63067 47390
b813574b
PB
47391# We track the current stage (the one in 'gcc') in the stage_current file.
47392# stage_last instead tracks the stage that was built last. These targets
47393# are dummy when toplevel bootstrap is not active.
4fa63067 47394
f70224b5 47395# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
47396# there, so $(unstage) should be run at various points. To avoid excessive
47397# recursive invocations of make, we "inline" them using a variable. These
47398# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
47399# to avoid warnings from the GNU Make job server.
f70224b5
PB
47400
47401unstage = :
47402stage = :
c52c6897 47403current_stage = ""
f70224b5 47404
b813574b 47405@if gcc-bootstrap
9daf3993 47406unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 47407stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 47408current_stage = "`cat stage_current 2> /dev/null`"
b813574b 47409@endif gcc-bootstrap
4fa63067 47410
f70224b5
PB
47411.PHONY: unstage stage
47412unstage:
0aed8855 47413 @: $(MAKE); $(unstage)
b813574b 47414stage:
0aed8855 47415 @: $(MAKE); $(stage)
1d39f329 47416
80911fe1
PB
47417# Disable commands for lean bootstrap.
47418LEAN = false
47419
dfdffa2c
PB
47420# We name the build directories for the various stages "stage1-gcc",
47421# "stage2-gcc","stage3-gcc", etc.
47422
47423# Since the 'compare' process will fail (on debugging information) if any
47424# directory names are different, we need to link the gcc directory for
0aed8855 47425# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
47426# the build directories constant as well. For the latter, we use naked names
47427# like 'gcc', because the scripts in that directory assume it. We use
47428# mv on platforms where symlinks to directories do not work or are not
47429# reliable.
47430
1d39f329
NN
47431# 'touch' doesn't work right on some platforms.
47432STAMP = echo timestamp >
47433
dfdffa2c
PB
47434# We only want to compare .o files, so set this!
47435objext = .o
47436
dfdffa2c 47437
319cab08 47438.PHONY: stage1-start stage1-end
dfdffa2c 47439
656fdd47 47440stage1-start::
0aed8855 47441 @: $(MAKE); $(stage); \
b813574b 47442 echo stage1 > stage_current ; \
b00612cc 47443 echo stage1 > stage_last; \
0aed8855 47444 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 47445@if bfd
b00612cc
PB
47446 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
47447 mkdir stage1-bfd; \
80911fe1 47448 mv stage1-bfd bfd
72b2455a
PB
47449@endif bfd
47450@if opcodes
b00612cc
PB
47451 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
47452 mkdir stage1-opcodes; \
80911fe1 47453 mv stage1-opcodes opcodes
72b2455a
PB
47454@endif opcodes
47455@if binutils
b00612cc
PB
47456 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
47457 mkdir stage1-binutils; \
80911fe1 47458 mv stage1-binutils binutils
72b2455a 47459@endif binutils
201f096f 47460@if fixincludes
47461 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
47462 mkdir stage1-fixincludes; \
47463 mv stage1-fixincludes fixincludes
47464@endif fixincludes
72b2455a 47465@if gas
b00612cc
PB
47466 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
47467 mkdir stage1-gas; \
80911fe1 47468 mv stage1-gas gas
72b2455a
PB
47469@endif gas
47470@if gcc
b00612cc
PB
47471 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
47472 mkdir stage1-gcc; \
80911fe1 47473 mv stage1-gcc gcc
72b2455a 47474@endif gcc
4b900473
PB
47475@if gmp
47476 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
47477 mkdir stage1-gmp; \
47478 mv stage1-gmp gmp
47479@endif gmp
47480@if mpfr
47481 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
47482 mkdir stage1-mpfr; \
47483 mv stage1-mpfr mpfr
47484@endif mpfr
e8a5fa9c
RW
47485@if mpc
47486 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
47487 mkdir stage1-mpc; \
47488 mv stage1-mpc mpc
47489@endif mpc
7ec59b9e
L
47490@if isl
47491 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
47492 mkdir stage1-isl; \
47493 mv stage1-isl isl
47494@endif isl
1f53ca9a
AO
47495@if libelf
47496 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
47497 mkdir stage1-libelf; \
47498 mv stage1-libelf libelf
47499@endif libelf
93f9b408
ILT
47500@if gold
47501 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
47502 mkdir stage1-gold; \
47503 mv stage1-gold gold
47504@endif gold
72b2455a 47505@if intl
b00612cc
PB
47506 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
47507 mkdir stage1-intl; \
80911fe1 47508 mv stage1-intl intl
72b2455a
PB
47509@endif intl
47510@if ld
b00612cc
PB
47511 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
47512 mkdir stage1-ld; \
80911fe1 47513 mv stage1-ld ld
72b2455a 47514@endif ld
2bf680c4
ILT
47515@if libbacktrace
47516 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
47517 mkdir stage1-libbacktrace; \
47518 mv stage1-libbacktrace libbacktrace
47519@endif libbacktrace
72b2455a 47520@if libcpp
b00612cc
PB
47521 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
47522 mkdir stage1-libcpp; \
80911fe1 47523 mv stage1-libcpp libcpp
72b2455a 47524@endif libcpp
be01d343
PB
47525@if libdecnumber
47526 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
47527 mkdir stage1-libdecnumber; \
80911fe1 47528 mv stage1-libdecnumber libdecnumber
be01d343 47529@endif libdecnumber
72b2455a 47530@if libiberty
b00612cc
PB
47531 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
47532 mkdir stage1-libiberty; \
80911fe1 47533 mv stage1-libiberty libiberty
72b2455a 47534@endif libiberty
1b6c0831
L
47535@if libiberty-linker-plugin
47536 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
47537 mkdir stage1-libiberty-linker-plugin; \
47538 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
47539@endif libiberty-linker-plugin
72b2455a 47540@if zlib
b00612cc
PB
47541 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
47542 mkdir stage1-zlib; \
80911fe1 47543 mv stage1-zlib zlib
72b2455a 47544@endif zlib
700d40ca
ILT
47545@if lto-plugin
47546 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
47547 mkdir stage1-lto-plugin; \
47548 mv stage1-lto-plugin lto-plugin
47549@endif lto-plugin
0aed8855
PB
47550 @[ -d stage1-$(TARGET_SUBDIR) ] || \
47551 mkdir stage1-$(TARGET_SUBDIR); \
80911fe1 47552 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 47553
80911fe1 47554stage1-end::
72b2455a 47555@if bfd
80911fe1
PB
47556 @if test -d $(HOST_SUBDIR)/bfd ; then \
47557 cd $(HOST_SUBDIR); mv bfd stage1-bfd ; \
0aed8855 47558 fi
72b2455a
PB
47559@endif bfd
47560@if opcodes
80911fe1
PB
47561 @if test -d $(HOST_SUBDIR)/opcodes ; then \
47562 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes ; \
0aed8855 47563 fi
72b2455a
PB
47564@endif opcodes
47565@if binutils
80911fe1
PB
47566 @if test -d $(HOST_SUBDIR)/binutils ; then \
47567 cd $(HOST_SUBDIR); mv binutils stage1-binutils ; \
0aed8855 47568 fi
72b2455a 47569@endif binutils
201f096f 47570@if fixincludes
47571 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
47572 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes ; \
47573 fi
47574@endif fixincludes
72b2455a 47575@if gas
80911fe1
PB
47576 @if test -d $(HOST_SUBDIR)/gas ; then \
47577 cd $(HOST_SUBDIR); mv gas stage1-gas ; \
0aed8855 47578 fi
72b2455a
PB
47579@endif gas
47580@if gcc
80911fe1
PB
47581 @if test -d $(HOST_SUBDIR)/gcc ; then \
47582 cd $(HOST_SUBDIR); mv gcc stage1-gcc ; \
0aed8855 47583 fi
72b2455a 47584@endif gcc
4b900473
PB
47585@if gmp
47586 @if test -d $(HOST_SUBDIR)/gmp ; then \
47587 cd $(HOST_SUBDIR); mv gmp stage1-gmp ; \
47588 fi
47589@endif gmp
47590@if mpfr
47591 @if test -d $(HOST_SUBDIR)/mpfr ; then \
47592 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr ; \
47593 fi
47594@endif mpfr
e8a5fa9c
RW
47595@if mpc
47596 @if test -d $(HOST_SUBDIR)/mpc ; then \
47597 cd $(HOST_SUBDIR); mv mpc stage1-mpc ; \
47598 fi
47599@endif mpc
7ec59b9e
L
47600@if isl
47601 @if test -d $(HOST_SUBDIR)/isl ; then \
47602 cd $(HOST_SUBDIR); mv isl stage1-isl ; \
e28c595f 47603 fi
7ec59b9e 47604@endif isl
1f53ca9a
AO
47605@if libelf
47606 @if test -d $(HOST_SUBDIR)/libelf ; then \
47607 cd $(HOST_SUBDIR); mv libelf stage1-libelf ; \
47608 fi
47609@endif libelf
93f9b408
ILT
47610@if gold
47611 @if test -d $(HOST_SUBDIR)/gold ; then \
47612 cd $(HOST_SUBDIR); mv gold stage1-gold ; \
47613 fi
47614@endif gold
72b2455a 47615@if intl
80911fe1
PB
47616 @if test -d $(HOST_SUBDIR)/intl ; then \
47617 cd $(HOST_SUBDIR); mv intl stage1-intl ; \
0aed8855 47618 fi
72b2455a
PB
47619@endif intl
47620@if ld
80911fe1
PB
47621 @if test -d $(HOST_SUBDIR)/ld ; then \
47622 cd $(HOST_SUBDIR); mv ld stage1-ld ; \
0aed8855 47623 fi
72b2455a 47624@endif ld
2bf680c4
ILT
47625@if libbacktrace
47626 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
47627 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace ; \
47628 fi
47629@endif libbacktrace
72b2455a 47630@if libcpp
80911fe1
PB
47631 @if test -d $(HOST_SUBDIR)/libcpp ; then \
47632 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp ; \
0aed8855 47633 fi
72b2455a 47634@endif libcpp
be01d343 47635@if libdecnumber
80911fe1
PB
47636 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
47637 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber ; \
0aed8855 47638 fi
be01d343 47639@endif libdecnumber
72b2455a 47640@if libiberty
80911fe1
PB
47641 @if test -d $(HOST_SUBDIR)/libiberty ; then \
47642 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty ; \
0aed8855 47643 fi
72b2455a 47644@endif libiberty
1b6c0831
L
47645@if libiberty-linker-plugin
47646 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
47647 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin ; \
47648 fi
47649@endif libiberty-linker-plugin
72b2455a 47650@if zlib
80911fe1
PB
47651 @if test -d $(HOST_SUBDIR)/zlib ; then \
47652 cd $(HOST_SUBDIR); mv zlib stage1-zlib ; \
0aed8855 47653 fi
72b2455a 47654@endif zlib
700d40ca
ILT
47655@if lto-plugin
47656 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
47657 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin ; \
47658 fi
47659@endif lto-plugin
0aed8855 47660 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1 47661 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; \
0aed8855 47662 fi
80911fe1 47663 rm -f stage_current
dfdffa2c 47664
973601e1 47665# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 47666# remade, but not reconfigured. The next stage (if any) will not be
675492f0 47667# reconfigured either.
319cab08 47668.PHONY: stage1-bubble
656fdd47 47669stage1-bubble::
e360f423
PB
47670 @r=`${PWD_COMMAND}`; export r; \
47671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47672 if test -f stage1-lean ; then \
9cb3fa6f
PB
47673 echo Skipping rebuild of stage1 ; \
47674 else \
f70224b5
PB
47675 $(MAKE) stage1-start; \
47676 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 47677 fi
72b2455a 47678
0df3d27f 47679.PHONY: all-stage1 clean-stage1
0df3d27f 47680do-clean: clean-stage1
0df3d27f 47681
72b2455a
PB
47682# FIXME: Will not need to be conditional when toplevel bootstrap is the
47683# only possibility, but now it conflicts with no-bootstrap rules
47684@if gcc-bootstrap
47685
47686
47687
47688
0df3d27f 47689# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 47690
0df3d27f 47691.PHONY: distclean-stage1
72b2455a 47692distclean-stage1::
0aed8855 47693 @: $(MAKE); $(stage)
e00a73e3 47694 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 47695 rm -rf stage1-*
72b2455a
PB
47696
47697
47698@endif gcc-bootstrap
47699
47700
47701.PHONY: stage2-start stage2-end
47702
47703stage2-start::
0aed8855 47704 @: $(MAKE); $(stage); \
72b2455a 47705 echo stage2 > stage_current ; \
b00612cc 47706 echo stage2 > stage_last; \
0aed8855 47707 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 47708@if bfd
b00612cc
PB
47709 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
47710 mkdir stage2-bfd; \
80911fe1
PB
47711 mv stage2-bfd bfd ; \
47712 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
47713@endif bfd
47714@if opcodes
b00612cc
PB
47715 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
47716 mkdir stage2-opcodes; \
80911fe1
PB
47717 mv stage2-opcodes opcodes ; \
47718 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
47719@endif opcodes
47720@if binutils
b00612cc
PB
47721 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
47722 mkdir stage2-binutils; \
80911fe1
PB
47723 mv stage2-binutils binutils ; \
47724 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 47725@endif binutils
201f096f 47726@if fixincludes
47727 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
47728 mkdir stage2-fixincludes; \
47729 mv stage2-fixincludes fixincludes ; \
47730 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
47731@endif fixincludes
72b2455a 47732@if gas
b00612cc
PB
47733 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
47734 mkdir stage2-gas; \
80911fe1
PB
47735 mv stage2-gas gas ; \
47736 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
47737@endif gas
47738@if gcc
b00612cc
PB
47739 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
47740 mkdir stage2-gcc; \
80911fe1
PB
47741 mv stage2-gcc gcc ; \
47742 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 47743@endif gcc
4b900473
PB
47744@if gmp
47745 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
47746 mkdir stage2-gmp; \
47747 mv stage2-gmp gmp ; \
47748 mv stage1-gmp prev-gmp || test -f stage1-lean
47749@endif gmp
47750@if mpfr
47751 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
47752 mkdir stage2-mpfr; \
47753 mv stage2-mpfr mpfr ; \
47754 mv stage1-mpfr prev-mpfr || test -f stage1-lean
47755@endif mpfr
e8a5fa9c
RW
47756@if mpc
47757 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
47758 mkdir stage2-mpc; \
47759 mv stage2-mpc mpc ; \
47760 mv stage1-mpc prev-mpc || test -f stage1-lean
47761@endif mpc
7ec59b9e
L
47762@if isl
47763 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
47764 mkdir stage2-isl; \
47765 mv stage2-isl isl ; \
47766 mv stage1-isl prev-isl || test -f stage1-lean
47767@endif isl
1f53ca9a
AO
47768@if libelf
47769 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
47770 mkdir stage2-libelf; \
47771 mv stage2-libelf libelf ; \
47772 mv stage1-libelf prev-libelf || test -f stage1-lean
47773@endif libelf
93f9b408
ILT
47774@if gold
47775 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
47776 mkdir stage2-gold; \
47777 mv stage2-gold gold ; \
47778 mv stage1-gold prev-gold || test -f stage1-lean
47779@endif gold
72b2455a 47780@if intl
b00612cc
PB
47781 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
47782 mkdir stage2-intl; \
80911fe1
PB
47783 mv stage2-intl intl ; \
47784 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
47785@endif intl
47786@if ld
b00612cc
PB
47787 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
47788 mkdir stage2-ld; \
80911fe1
PB
47789 mv stage2-ld ld ; \
47790 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 47791@endif ld
2bf680c4
ILT
47792@if libbacktrace
47793 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
47794 mkdir stage2-libbacktrace; \
47795 mv stage2-libbacktrace libbacktrace ; \
47796 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
47797@endif libbacktrace
72b2455a 47798@if libcpp
b00612cc
PB
47799 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
47800 mkdir stage2-libcpp; \
80911fe1
PB
47801 mv stage2-libcpp libcpp ; \
47802 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 47803@endif libcpp
be01d343
PB
47804@if libdecnumber
47805 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
47806 mkdir stage2-libdecnumber; \
80911fe1
PB
47807 mv stage2-libdecnumber libdecnumber ; \
47808 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 47809@endif libdecnumber
72b2455a 47810@if libiberty
b00612cc
PB
47811 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
47812 mkdir stage2-libiberty; \
80911fe1
PB
47813 mv stage2-libiberty libiberty ; \
47814 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 47815@endif libiberty
1b6c0831
L
47816@if libiberty-linker-plugin
47817 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
47818 mkdir stage2-libiberty-linker-plugin; \
47819 mv stage2-libiberty-linker-plugin libiberty-linker-plugin ; \
47820 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
47821@endif libiberty-linker-plugin
72b2455a 47822@if zlib
b00612cc
PB
47823 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
47824 mkdir stage2-zlib; \
80911fe1
PB
47825 mv stage2-zlib zlib ; \
47826 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 47827@endif zlib
700d40ca
ILT
47828@if lto-plugin
47829 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
47830 mkdir stage2-lto-plugin; \
47831 mv stage2-lto-plugin lto-plugin ; \
47832 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
47833@endif lto-plugin
0aed8855
PB
47834 @[ -d stage2-$(TARGET_SUBDIR) ] || \
47835 mkdir stage2-$(TARGET_SUBDIR); \
80911fe1
PB
47836 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
47837 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 47838
80911fe1 47839stage2-end::
72b2455a 47840@if bfd
80911fe1
PB
47841 @if test -d $(HOST_SUBDIR)/bfd ; then \
47842 cd $(HOST_SUBDIR); mv bfd stage2-bfd ; \
47843 mv prev-bfd stage1-bfd ; : ; \
0aed8855 47844 fi
72b2455a
PB
47845@endif bfd
47846@if opcodes
80911fe1
PB
47847 @if test -d $(HOST_SUBDIR)/opcodes ; then \
47848 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes ; \
47849 mv prev-opcodes stage1-opcodes ; : ; \
0aed8855 47850 fi
72b2455a
PB
47851@endif opcodes
47852@if binutils
80911fe1
PB
47853 @if test -d $(HOST_SUBDIR)/binutils ; then \
47854 cd $(HOST_SUBDIR); mv binutils stage2-binutils ; \
47855 mv prev-binutils stage1-binutils ; : ; \
0aed8855 47856 fi
72b2455a 47857@endif binutils
201f096f 47858@if fixincludes
47859 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
47860 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes ; \
47861 mv prev-fixincludes stage1-fixincludes ; : ; \
47862 fi
47863@endif fixincludes
72b2455a 47864@if gas
80911fe1
PB
47865 @if test -d $(HOST_SUBDIR)/gas ; then \
47866 cd $(HOST_SUBDIR); mv gas stage2-gas ; \
47867 mv prev-gas stage1-gas ; : ; \
0aed8855 47868 fi
72b2455a
PB
47869@endif gas
47870@if gcc
80911fe1
PB
47871 @if test -d $(HOST_SUBDIR)/gcc ; then \
47872 cd $(HOST_SUBDIR); mv gcc stage2-gcc ; \
47873 mv prev-gcc stage1-gcc ; : ; \
0aed8855 47874 fi
72b2455a 47875@endif gcc
4b900473
PB
47876@if gmp
47877 @if test -d $(HOST_SUBDIR)/gmp ; then \
47878 cd $(HOST_SUBDIR); mv gmp stage2-gmp ; \
47879 mv prev-gmp stage1-gmp ; : ; \
47880 fi
47881@endif gmp
47882@if mpfr
47883 @if test -d $(HOST_SUBDIR)/mpfr ; then \
47884 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr ; \
47885 mv prev-mpfr stage1-mpfr ; : ; \
47886 fi
47887@endif mpfr
e8a5fa9c
RW
47888@if mpc
47889 @if test -d $(HOST_SUBDIR)/mpc ; then \
47890 cd $(HOST_SUBDIR); mv mpc stage2-mpc ; \
47891 mv prev-mpc stage1-mpc ; : ; \
47892 fi
47893@endif mpc
7ec59b9e
L
47894@if isl
47895 @if test -d $(HOST_SUBDIR)/isl ; then \
47896 cd $(HOST_SUBDIR); mv isl stage2-isl ; \
47897 mv prev-isl stage1-isl ; : ; \
e28c595f 47898 fi
7ec59b9e 47899@endif isl
1f53ca9a
AO
47900@if libelf
47901 @if test -d $(HOST_SUBDIR)/libelf ; then \
47902 cd $(HOST_SUBDIR); mv libelf stage2-libelf ; \
47903 mv prev-libelf stage1-libelf ; : ; \
47904 fi
47905@endif libelf
93f9b408
ILT
47906@if gold
47907 @if test -d $(HOST_SUBDIR)/gold ; then \
47908 cd $(HOST_SUBDIR); mv gold stage2-gold ; \
47909 mv prev-gold stage1-gold ; : ; \
47910 fi
47911@endif gold
72b2455a 47912@if intl
80911fe1
PB
47913 @if test -d $(HOST_SUBDIR)/intl ; then \
47914 cd $(HOST_SUBDIR); mv intl stage2-intl ; \
47915 mv prev-intl stage1-intl ; : ; \
0aed8855 47916 fi
72b2455a
PB
47917@endif intl
47918@if ld
80911fe1
PB
47919 @if test -d $(HOST_SUBDIR)/ld ; then \
47920 cd $(HOST_SUBDIR); mv ld stage2-ld ; \
47921 mv prev-ld stage1-ld ; : ; \
0aed8855 47922 fi
72b2455a 47923@endif ld
2bf680c4
ILT
47924@if libbacktrace
47925 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
47926 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace ; \
47927 mv prev-libbacktrace stage1-libbacktrace ; : ; \
47928 fi
47929@endif libbacktrace
72b2455a 47930@if libcpp
80911fe1
PB
47931 @if test -d $(HOST_SUBDIR)/libcpp ; then \
47932 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp ; \
47933 mv prev-libcpp stage1-libcpp ; : ; \
0aed8855 47934 fi
72b2455a 47935@endif libcpp
be01d343 47936@if libdecnumber
80911fe1
PB
47937 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
47938 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber ; \
47939 mv prev-libdecnumber stage1-libdecnumber ; : ; \
0aed8855 47940 fi
be01d343 47941@endif libdecnumber
72b2455a 47942@if libiberty
80911fe1
PB
47943 @if test -d $(HOST_SUBDIR)/libiberty ; then \
47944 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty ; \
47945 mv prev-libiberty stage1-libiberty ; : ; \
0aed8855 47946 fi
72b2455a 47947@endif libiberty
1b6c0831
L
47948@if libiberty-linker-plugin
47949 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
47950 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin ; \
47951 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin ; : ; \
47952 fi
47953@endif libiberty-linker-plugin
72b2455a 47954@if zlib
80911fe1
PB
47955 @if test -d $(HOST_SUBDIR)/zlib ; then \
47956 cd $(HOST_SUBDIR); mv zlib stage2-zlib ; \
47957 mv prev-zlib stage1-zlib ; : ; \
0aed8855 47958 fi
72b2455a 47959@endif zlib
700d40ca
ILT
47960@if lto-plugin
47961 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
47962 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin ; \
47963 mv prev-lto-plugin stage1-lto-plugin ; : ; \
47964 fi
47965@endif lto-plugin
0aed8855 47966 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
47967 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; \
47968 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
0aed8855 47969 fi
80911fe1 47970 rm -f stage_current
72b2455a 47971
973601e1 47972# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 47973# remade, but not reconfigured. The next stage (if any) will not be
675492f0 47974# reconfigured either.
72b2455a
PB
47975.PHONY: stage2-bubble
47976stage2-bubble:: stage1-bubble
e360f423
PB
47977 @r=`${PWD_COMMAND}`; export r; \
47978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47979 if test -f stage2-lean || test -f stage1-lean ; then \
9cb3fa6f
PB
47980 echo Skipping rebuild of stage2 ; \
47981 else \
f70224b5
PB
47982 $(MAKE) stage2-start; \
47983 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 47984 fi
72b2455a 47985
0df3d27f 47986.PHONY: all-stage2 clean-stage2
0df3d27f 47987do-clean: clean-stage2
0df3d27f 47988
72b2455a
PB
47989# FIXME: Will not need to be conditional when toplevel bootstrap is the
47990# only possibility, but now it conflicts with no-bootstrap rules
47991@if gcc-bootstrap
47992
47993
47994
80911fe1 47995.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
47996bootstrap2:
47997 echo stage2 > stage_final
47998 @r=`${PWD_COMMAND}`; export r; \
47999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48000 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 48001 @: $(MAKE); $(unstage)
be01d343
PB
48002 @r=`${PWD_COMMAND}`; export r; \
48003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48004 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 48005 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 48006
80911fe1
PB
48007bootstrap2-lean:
48008 echo stage2 > stage_final
48009 @r=`${PWD_COMMAND}`; export r; \
48010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48011 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
48012 @: $(MAKE); $(unstage)
48013 @r=`${PWD_COMMAND}`; export r; \
48014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48015 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
48016 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48017
72b2455a 48018
0df3d27f 48019# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48020distclean-stage1:: distclean-stage2
0df3d27f 48021.PHONY: distclean-stage2
72b2455a 48022distclean-stage2::
0aed8855 48023 @: $(MAKE); $(stage)
e00a73e3 48024 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 48025 rm -rf stage2-*
72b2455a
PB
48026
48027
48028@endif gcc-bootstrap
48029
48030
48031.PHONY: stage3-start stage3-end
48032
48033stage3-start::
0aed8855 48034 @: $(MAKE); $(stage); \
72b2455a 48035 echo stage3 > stage_current ; \
b00612cc 48036 echo stage3 > stage_last; \
0aed8855 48037 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48038@if bfd
b00612cc
PB
48039 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
48040 mkdir stage3-bfd; \
80911fe1
PB
48041 mv stage3-bfd bfd ; \
48042 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
48043@endif bfd
48044@if opcodes
b00612cc
PB
48045 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
48046 mkdir stage3-opcodes; \
80911fe1
PB
48047 mv stage3-opcodes opcodes ; \
48048 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
48049@endif opcodes
48050@if binutils
b00612cc
PB
48051 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
48052 mkdir stage3-binutils; \
80911fe1
PB
48053 mv stage3-binutils binutils ; \
48054 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 48055@endif binutils
201f096f 48056@if fixincludes
48057 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
48058 mkdir stage3-fixincludes; \
48059 mv stage3-fixincludes fixincludes ; \
48060 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
48061@endif fixincludes
72b2455a 48062@if gas
b00612cc
PB
48063 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
48064 mkdir stage3-gas; \
80911fe1
PB
48065 mv stage3-gas gas ; \
48066 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
48067@endif gas
48068@if gcc
b00612cc
PB
48069 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
48070 mkdir stage3-gcc; \
80911fe1
PB
48071 mv stage3-gcc gcc ; \
48072 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 48073@endif gcc
4b900473
PB
48074@if gmp
48075 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
48076 mkdir stage3-gmp; \
48077 mv stage3-gmp gmp ; \
48078 mv stage2-gmp prev-gmp || test -f stage2-lean
48079@endif gmp
48080@if mpfr
48081 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
48082 mkdir stage3-mpfr; \
48083 mv stage3-mpfr mpfr ; \
48084 mv stage2-mpfr prev-mpfr || test -f stage2-lean
48085@endif mpfr
e8a5fa9c
RW
48086@if mpc
48087 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
48088 mkdir stage3-mpc; \
48089 mv stage3-mpc mpc ; \
48090 mv stage2-mpc prev-mpc || test -f stage2-lean
48091@endif mpc
7ec59b9e
L
48092@if isl
48093 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
48094 mkdir stage3-isl; \
48095 mv stage3-isl isl ; \
48096 mv stage2-isl prev-isl || test -f stage2-lean
48097@endif isl
1f53ca9a
AO
48098@if libelf
48099 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
48100 mkdir stage3-libelf; \
48101 mv stage3-libelf libelf ; \
48102 mv stage2-libelf prev-libelf || test -f stage2-lean
48103@endif libelf
93f9b408
ILT
48104@if gold
48105 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
48106 mkdir stage3-gold; \
48107 mv stage3-gold gold ; \
48108 mv stage2-gold prev-gold || test -f stage2-lean
48109@endif gold
72b2455a 48110@if intl
b00612cc
PB
48111 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
48112 mkdir stage3-intl; \
80911fe1
PB
48113 mv stage3-intl intl ; \
48114 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
48115@endif intl
48116@if ld
b00612cc
PB
48117 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
48118 mkdir stage3-ld; \
80911fe1
PB
48119 mv stage3-ld ld ; \
48120 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 48121@endif ld
2bf680c4
ILT
48122@if libbacktrace
48123 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
48124 mkdir stage3-libbacktrace; \
48125 mv stage3-libbacktrace libbacktrace ; \
48126 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
48127@endif libbacktrace
72b2455a 48128@if libcpp
b00612cc
PB
48129 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
48130 mkdir stage3-libcpp; \
80911fe1
PB
48131 mv stage3-libcpp libcpp ; \
48132 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 48133@endif libcpp
be01d343
PB
48134@if libdecnumber
48135 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
48136 mkdir stage3-libdecnumber; \
80911fe1
PB
48137 mv stage3-libdecnumber libdecnumber ; \
48138 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 48139@endif libdecnumber
72b2455a 48140@if libiberty
b00612cc
PB
48141 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
48142 mkdir stage3-libiberty; \
80911fe1
PB
48143 mv stage3-libiberty libiberty ; \
48144 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 48145@endif libiberty
1b6c0831
L
48146@if libiberty-linker-plugin
48147 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
48148 mkdir stage3-libiberty-linker-plugin; \
48149 mv stage3-libiberty-linker-plugin libiberty-linker-plugin ; \
48150 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
48151@endif libiberty-linker-plugin
72b2455a 48152@if zlib
b00612cc
PB
48153 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
48154 mkdir stage3-zlib; \
80911fe1
PB
48155 mv stage3-zlib zlib ; \
48156 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 48157@endif zlib
700d40ca
ILT
48158@if lto-plugin
48159 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
48160 mkdir stage3-lto-plugin; \
48161 mv stage3-lto-plugin lto-plugin ; \
48162 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
48163@endif lto-plugin
0aed8855
PB
48164 @[ -d stage3-$(TARGET_SUBDIR) ] || \
48165 mkdir stage3-$(TARGET_SUBDIR); \
80911fe1
PB
48166 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
48167 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 48168
80911fe1 48169stage3-end::
72b2455a 48170@if bfd
80911fe1
PB
48171 @if test -d $(HOST_SUBDIR)/bfd ; then \
48172 cd $(HOST_SUBDIR); mv bfd stage3-bfd ; \
48173 mv prev-bfd stage2-bfd ; : ; \
0aed8855 48174 fi
72b2455a
PB
48175@endif bfd
48176@if opcodes
80911fe1
PB
48177 @if test -d $(HOST_SUBDIR)/opcodes ; then \
48178 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes ; \
48179 mv prev-opcodes stage2-opcodes ; : ; \
0aed8855 48180 fi
72b2455a
PB
48181@endif opcodes
48182@if binutils
80911fe1
PB
48183 @if test -d $(HOST_SUBDIR)/binutils ; then \
48184 cd $(HOST_SUBDIR); mv binutils stage3-binutils ; \
48185 mv prev-binutils stage2-binutils ; : ; \
0aed8855 48186 fi
72b2455a 48187@endif binutils
201f096f 48188@if fixincludes
48189 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
48190 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes ; \
48191 mv prev-fixincludes stage2-fixincludes ; : ; \
48192 fi
48193@endif fixincludes
72b2455a 48194@if gas
80911fe1
PB
48195 @if test -d $(HOST_SUBDIR)/gas ; then \
48196 cd $(HOST_SUBDIR); mv gas stage3-gas ; \
48197 mv prev-gas stage2-gas ; : ; \
0aed8855 48198 fi
72b2455a
PB
48199@endif gas
48200@if gcc
80911fe1
PB
48201 @if test -d $(HOST_SUBDIR)/gcc ; then \
48202 cd $(HOST_SUBDIR); mv gcc stage3-gcc ; \
48203 mv prev-gcc stage2-gcc ; : ; \
0aed8855 48204 fi
72b2455a 48205@endif gcc
4b900473
PB
48206@if gmp
48207 @if test -d $(HOST_SUBDIR)/gmp ; then \
48208 cd $(HOST_SUBDIR); mv gmp stage3-gmp ; \
48209 mv prev-gmp stage2-gmp ; : ; \
48210 fi
48211@endif gmp
48212@if mpfr
48213 @if test -d $(HOST_SUBDIR)/mpfr ; then \
48214 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr ; \
48215 mv prev-mpfr stage2-mpfr ; : ; \
48216 fi
48217@endif mpfr
e8a5fa9c
RW
48218@if mpc
48219 @if test -d $(HOST_SUBDIR)/mpc ; then \
48220 cd $(HOST_SUBDIR); mv mpc stage3-mpc ; \
48221 mv prev-mpc stage2-mpc ; : ; \
48222 fi
48223@endif mpc
7ec59b9e
L
48224@if isl
48225 @if test -d $(HOST_SUBDIR)/isl ; then \
48226 cd $(HOST_SUBDIR); mv isl stage3-isl ; \
48227 mv prev-isl stage2-isl ; : ; \
e28c595f 48228 fi
7ec59b9e 48229@endif isl
1f53ca9a
AO
48230@if libelf
48231 @if test -d $(HOST_SUBDIR)/libelf ; then \
48232 cd $(HOST_SUBDIR); mv libelf stage3-libelf ; \
48233 mv prev-libelf stage2-libelf ; : ; \
48234 fi
48235@endif libelf
93f9b408
ILT
48236@if gold
48237 @if test -d $(HOST_SUBDIR)/gold ; then \
48238 cd $(HOST_SUBDIR); mv gold stage3-gold ; \
48239 mv prev-gold stage2-gold ; : ; \
48240 fi
48241@endif gold
72b2455a 48242@if intl
80911fe1
PB
48243 @if test -d $(HOST_SUBDIR)/intl ; then \
48244 cd $(HOST_SUBDIR); mv intl stage3-intl ; \
48245 mv prev-intl stage2-intl ; : ; \
0aed8855 48246 fi
72b2455a
PB
48247@endif intl
48248@if ld
80911fe1
PB
48249 @if test -d $(HOST_SUBDIR)/ld ; then \
48250 cd $(HOST_SUBDIR); mv ld stage3-ld ; \
48251 mv prev-ld stage2-ld ; : ; \
0aed8855 48252 fi
72b2455a 48253@endif ld
2bf680c4
ILT
48254@if libbacktrace
48255 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
48256 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace ; \
48257 mv prev-libbacktrace stage2-libbacktrace ; : ; \
48258 fi
48259@endif libbacktrace
72b2455a 48260@if libcpp
80911fe1
PB
48261 @if test -d $(HOST_SUBDIR)/libcpp ; then \
48262 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp ; \
48263 mv prev-libcpp stage2-libcpp ; : ; \
0aed8855 48264 fi
72b2455a 48265@endif libcpp
be01d343 48266@if libdecnumber
80911fe1
PB
48267 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
48268 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber ; \
48269 mv prev-libdecnumber stage2-libdecnumber ; : ; \
0aed8855 48270 fi
be01d343 48271@endif libdecnumber
72b2455a 48272@if libiberty
80911fe1
PB
48273 @if test -d $(HOST_SUBDIR)/libiberty ; then \
48274 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty ; \
48275 mv prev-libiberty stage2-libiberty ; : ; \
0aed8855 48276 fi
72b2455a 48277@endif libiberty
1b6c0831
L
48278@if libiberty-linker-plugin
48279 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
48280 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin ; \
48281 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin ; : ; \
48282 fi
48283@endif libiberty-linker-plugin
72b2455a 48284@if zlib
80911fe1
PB
48285 @if test -d $(HOST_SUBDIR)/zlib ; then \
48286 cd $(HOST_SUBDIR); mv zlib stage3-zlib ; \
48287 mv prev-zlib stage2-zlib ; : ; \
0aed8855 48288 fi
72b2455a 48289@endif zlib
700d40ca
ILT
48290@if lto-plugin
48291 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
48292 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin ; \
48293 mv prev-lto-plugin stage2-lto-plugin ; : ; \
48294 fi
48295@endif lto-plugin
0aed8855 48296 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
48297 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; \
48298 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; : ; \
0aed8855 48299 fi
80911fe1 48300 rm -f stage_current
72b2455a 48301
973601e1 48302# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 48303# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48304# reconfigured either.
72b2455a
PB
48305.PHONY: stage3-bubble
48306stage3-bubble:: stage2-bubble
e360f423
PB
48307 @r=`${PWD_COMMAND}`; export r; \
48308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48309 if test -f stage3-lean || test -f stage2-lean ; then \
9cb3fa6f
PB
48310 echo Skipping rebuild of stage3 ; \
48311 else \
f70224b5 48312 $(MAKE) stage3-start; \
80911fe1
PB
48313 if $(LEAN); then \
48314 rm -rf stage1-* ; \
48315 $(STAMP) stage1-lean ; \
48316 fi; \
f70224b5 48317 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 48318 fi
f6d183c0 48319 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 48320
0df3d27f 48321.PHONY: all-stage3 clean-stage3
0df3d27f 48322do-clean: clean-stage3
0df3d27f 48323
d545f33b
PB
48324# FIXME: Will not need to be conditional when toplevel bootstrap is the
48325# only possibility, but now it conflicts with no-bootstrap rules
48326@if gcc-bootstrap
72b2455a 48327
d545f33b 48328compare:
e360f423
PB
48329 @r=`${PWD_COMMAND}`; export r; \
48330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48331 if test -f stage2-lean; then \
d545f33b
PB
48332 echo Cannot compare object files as stage 2 was deleted. ; \
48333 exit 0 ; \
48334 fi; \
0aed8855 48335 : $(MAKE); $(stage); \
d545f33b 48336 rm -f .bad_compare ; \
c52c6897 48337 echo Comparing stages 2 and 3 ; \
fda13ee8
AO
48338 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
48339 files=`find stage3-* -name "*$(objext)" -print | \
48340 sed -n s,^stage$$sed-,,p` ; \
d545f33b 48341 for file in $${files} ; do \
fda13ee8
AO
48342 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
48343 if test ! -f $$f1; then continue; fi; \
8520c408 48344 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
48345 if test $$? -eq 1; then \
48346 case $$file in \
e8a5fa9c 48347 @compare_exclusions@) \
f70224b5
PB
48348 echo warning: $$file differs ;; \
48349 *) \
48350 echo $$file differs >> .bad_compare ;; \
48351 esac ; \
48352 fi ; \
d545f33b
PB
48353 done ; \
48354 if [ -f .bad_compare ]; then \
48355 echo "Bootstrap comparison failure!"; \
48356 cat .bad_compare; \
48357 exit 1; \
48358 else \
c52c6897 48359 echo Comparison successful.; \
d545f33b
PB
48360 fi ; \
48361 $(STAMP) compare
80911fe1
PB
48362 if $(LEAN); then \
48363 rm -rf stage2-*; \
48364 $(STAMP) stage2-lean; \
48365 fi
9cb3fa6f 48366
72b2455a 48367
72b2455a 48368
80911fe1 48369.PHONY: bootstrap bootstrap-lean
be01d343
PB
48370bootstrap:
48371 echo stage3 > stage_final
48372 @r=`${PWD_COMMAND}`; export r; \
48373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48374 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 48375 @: $(MAKE); $(unstage)
be01d343
PB
48376 @r=`${PWD_COMMAND}`; export r; \
48377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48378 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 48379 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 48380
80911fe1
PB
48381bootstrap-lean:
48382 echo stage3 > stage_final
48383 @r=`${PWD_COMMAND}`; export r; \
48384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48385 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
48386 @: $(MAKE); $(unstage)
48387 @r=`${PWD_COMMAND}`; export r; \
48388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48389 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
48390 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48391
72b2455a 48392
d545f33b
PB
48393# Rules to wipe a stage and all the following ones, also used for cleanstrap
48394distclean-stage2:: distclean-stage3
48395.PHONY: distclean-stage3
48396distclean-stage3::
0aed8855 48397 @: $(MAKE); $(stage)
e00a73e3 48398 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 48399 rm -rf stage3-* compare
0df3d27f 48400
9cb3fa6f 48401
d545f33b 48402.PHONY: cleanstrap
e00a73e3
PB
48403cleanstrap: do-distclean local-clean
48404 echo stage3 > stage_final
48405 @r=`${PWD_COMMAND}`; export r; \
48406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48407 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
48408 @: $(MAKE); $(unstage)
48409 @r=`${PWD_COMMAND}`; export r; \
48410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48411 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
48412 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48413
48414@endif gcc-bootstrap
48415
48416
72b2455a
PB
48417.PHONY: stage4-start stage4-end
48418
48419stage4-start::
0aed8855 48420 @: $(MAKE); $(stage); \
72b2455a 48421 echo stage4 > stage_current ; \
b00612cc 48422 echo stage4 > stage_last; \
0aed8855 48423 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48424@if bfd
b00612cc
PB
48425 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
48426 mkdir stage4-bfd; \
80911fe1
PB
48427 mv stage4-bfd bfd ; \
48428 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
48429@endif bfd
48430@if opcodes
b00612cc
PB
48431 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
48432 mkdir stage4-opcodes; \
80911fe1
PB
48433 mv stage4-opcodes opcodes ; \
48434 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
48435@endif opcodes
48436@if binutils
b00612cc
PB
48437 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
48438 mkdir stage4-binutils; \
80911fe1
PB
48439 mv stage4-binutils binutils ; \
48440 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 48441@endif binutils
201f096f 48442@if fixincludes
48443 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
48444 mkdir stage4-fixincludes; \
48445 mv stage4-fixincludes fixincludes ; \
48446 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
48447@endif fixincludes
72b2455a 48448@if gas
b00612cc
PB
48449 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
48450 mkdir stage4-gas; \
80911fe1
PB
48451 mv stage4-gas gas ; \
48452 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
48453@endif gas
48454@if gcc
b00612cc
PB
48455 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
48456 mkdir stage4-gcc; \
80911fe1
PB
48457 mv stage4-gcc gcc ; \
48458 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 48459@endif gcc
4b900473
PB
48460@if gmp
48461 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
48462 mkdir stage4-gmp; \
48463 mv stage4-gmp gmp ; \
48464 mv stage3-gmp prev-gmp || test -f stage3-lean
48465@endif gmp
48466@if mpfr
48467 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
48468 mkdir stage4-mpfr; \
48469 mv stage4-mpfr mpfr ; \
48470 mv stage3-mpfr prev-mpfr || test -f stage3-lean
48471@endif mpfr
e8a5fa9c
RW
48472@if mpc
48473 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
48474 mkdir stage4-mpc; \
48475 mv stage4-mpc mpc ; \
48476 mv stage3-mpc prev-mpc || test -f stage3-lean
48477@endif mpc
7ec59b9e
L
48478@if isl
48479 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
48480 mkdir stage4-isl; \
48481 mv stage4-isl isl ; \
48482 mv stage3-isl prev-isl || test -f stage3-lean
48483@endif isl
1f53ca9a
AO
48484@if libelf
48485 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
48486 mkdir stage4-libelf; \
48487 mv stage4-libelf libelf ; \
48488 mv stage3-libelf prev-libelf || test -f stage3-lean
48489@endif libelf
93f9b408
ILT
48490@if gold
48491 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
48492 mkdir stage4-gold; \
48493 mv stage4-gold gold ; \
48494 mv stage3-gold prev-gold || test -f stage3-lean
48495@endif gold
72b2455a 48496@if intl
b00612cc
PB
48497 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
48498 mkdir stage4-intl; \
80911fe1
PB
48499 mv stage4-intl intl ; \
48500 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
48501@endif intl
48502@if ld
b00612cc
PB
48503 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
48504 mkdir stage4-ld; \
80911fe1
PB
48505 mv stage4-ld ld ; \
48506 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 48507@endif ld
2bf680c4
ILT
48508@if libbacktrace
48509 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
48510 mkdir stage4-libbacktrace; \
48511 mv stage4-libbacktrace libbacktrace ; \
48512 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
48513@endif libbacktrace
72b2455a 48514@if libcpp
b00612cc
PB
48515 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
48516 mkdir stage4-libcpp; \
80911fe1
PB
48517 mv stage4-libcpp libcpp ; \
48518 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 48519@endif libcpp
be01d343
PB
48520@if libdecnumber
48521 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
48522 mkdir stage4-libdecnumber; \
80911fe1
PB
48523 mv stage4-libdecnumber libdecnumber ; \
48524 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 48525@endif libdecnumber
72b2455a 48526@if libiberty
b00612cc
PB
48527 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
48528 mkdir stage4-libiberty; \
80911fe1
PB
48529 mv stage4-libiberty libiberty ; \
48530 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 48531@endif libiberty
1b6c0831
L
48532@if libiberty-linker-plugin
48533 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
48534 mkdir stage4-libiberty-linker-plugin; \
48535 mv stage4-libiberty-linker-plugin libiberty-linker-plugin ; \
48536 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
48537@endif libiberty-linker-plugin
72b2455a 48538@if zlib
b00612cc
PB
48539 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
48540 mkdir stage4-zlib; \
80911fe1
PB
48541 mv stage4-zlib zlib ; \
48542 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 48543@endif zlib
700d40ca
ILT
48544@if lto-plugin
48545 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
48546 mkdir stage4-lto-plugin; \
48547 mv stage4-lto-plugin lto-plugin ; \
48548 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
48549@endif lto-plugin
0aed8855
PB
48550 @[ -d stage4-$(TARGET_SUBDIR) ] || \
48551 mkdir stage4-$(TARGET_SUBDIR); \
80911fe1
PB
48552 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
48553 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 48554
80911fe1 48555stage4-end::
72b2455a 48556@if bfd
80911fe1
PB
48557 @if test -d $(HOST_SUBDIR)/bfd ; then \
48558 cd $(HOST_SUBDIR); mv bfd stage4-bfd ; \
48559 mv prev-bfd stage3-bfd ; : ; \
0aed8855 48560 fi
72b2455a
PB
48561@endif bfd
48562@if opcodes
80911fe1
PB
48563 @if test -d $(HOST_SUBDIR)/opcodes ; then \
48564 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes ; \
48565 mv prev-opcodes stage3-opcodes ; : ; \
0aed8855 48566 fi
72b2455a
PB
48567@endif opcodes
48568@if binutils
80911fe1
PB
48569 @if test -d $(HOST_SUBDIR)/binutils ; then \
48570 cd $(HOST_SUBDIR); mv binutils stage4-binutils ; \
48571 mv prev-binutils stage3-binutils ; : ; \
0aed8855 48572 fi
72b2455a 48573@endif binutils
201f096f 48574@if fixincludes
48575 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
48576 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes ; \
48577 mv prev-fixincludes stage3-fixincludes ; : ; \
48578 fi
48579@endif fixincludes
72b2455a 48580@if gas
80911fe1
PB
48581 @if test -d $(HOST_SUBDIR)/gas ; then \
48582 cd $(HOST_SUBDIR); mv gas stage4-gas ; \
48583 mv prev-gas stage3-gas ; : ; \
0aed8855 48584 fi
72b2455a
PB
48585@endif gas
48586@if gcc
80911fe1
PB
48587 @if test -d $(HOST_SUBDIR)/gcc ; then \
48588 cd $(HOST_SUBDIR); mv gcc stage4-gcc ; \
48589 mv prev-gcc stage3-gcc ; : ; \
0aed8855 48590 fi
72b2455a 48591@endif gcc
4b900473
PB
48592@if gmp
48593 @if test -d $(HOST_SUBDIR)/gmp ; then \
48594 cd $(HOST_SUBDIR); mv gmp stage4-gmp ; \
48595 mv prev-gmp stage3-gmp ; : ; \
48596 fi
48597@endif gmp
48598@if mpfr
48599 @if test -d $(HOST_SUBDIR)/mpfr ; then \
48600 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr ; \
48601 mv prev-mpfr stage3-mpfr ; : ; \
48602 fi
48603@endif mpfr
e8a5fa9c
RW
48604@if mpc
48605 @if test -d $(HOST_SUBDIR)/mpc ; then \
48606 cd $(HOST_SUBDIR); mv mpc stage4-mpc ; \
48607 mv prev-mpc stage3-mpc ; : ; \
48608 fi
48609@endif mpc
7ec59b9e
L
48610@if isl
48611 @if test -d $(HOST_SUBDIR)/isl ; then \
48612 cd $(HOST_SUBDIR); mv isl stage4-isl ; \
48613 mv prev-isl stage3-isl ; : ; \
e28c595f 48614 fi
7ec59b9e 48615@endif isl
1f53ca9a
AO
48616@if libelf
48617 @if test -d $(HOST_SUBDIR)/libelf ; then \
48618 cd $(HOST_SUBDIR); mv libelf stage4-libelf ; \
48619 mv prev-libelf stage3-libelf ; : ; \
48620 fi
48621@endif libelf
93f9b408
ILT
48622@if gold
48623 @if test -d $(HOST_SUBDIR)/gold ; then \
48624 cd $(HOST_SUBDIR); mv gold stage4-gold ; \
48625 mv prev-gold stage3-gold ; : ; \
48626 fi
48627@endif gold
72b2455a 48628@if intl
80911fe1
PB
48629 @if test -d $(HOST_SUBDIR)/intl ; then \
48630 cd $(HOST_SUBDIR); mv intl stage4-intl ; \
48631 mv prev-intl stage3-intl ; : ; \
0aed8855 48632 fi
72b2455a
PB
48633@endif intl
48634@if ld
80911fe1
PB
48635 @if test -d $(HOST_SUBDIR)/ld ; then \
48636 cd $(HOST_SUBDIR); mv ld stage4-ld ; \
48637 mv prev-ld stage3-ld ; : ; \
0aed8855 48638 fi
72b2455a 48639@endif ld
2bf680c4
ILT
48640@if libbacktrace
48641 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
48642 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace ; \
48643 mv prev-libbacktrace stage3-libbacktrace ; : ; \
48644 fi
48645@endif libbacktrace
72b2455a 48646@if libcpp
80911fe1
PB
48647 @if test -d $(HOST_SUBDIR)/libcpp ; then \
48648 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp ; \
48649 mv prev-libcpp stage3-libcpp ; : ; \
0aed8855 48650 fi
72b2455a 48651@endif libcpp
be01d343 48652@if libdecnumber
80911fe1
PB
48653 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
48654 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber ; \
48655 mv prev-libdecnumber stage3-libdecnumber ; : ; \
0aed8855 48656 fi
be01d343 48657@endif libdecnumber
72b2455a 48658@if libiberty
80911fe1
PB
48659 @if test -d $(HOST_SUBDIR)/libiberty ; then \
48660 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty ; \
48661 mv prev-libiberty stage3-libiberty ; : ; \
0aed8855 48662 fi
72b2455a 48663@endif libiberty
1b6c0831
L
48664@if libiberty-linker-plugin
48665 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
48666 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin ; \
48667 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin ; : ; \
48668 fi
48669@endif libiberty-linker-plugin
72b2455a 48670@if zlib
80911fe1
PB
48671 @if test -d $(HOST_SUBDIR)/zlib ; then \
48672 cd $(HOST_SUBDIR); mv zlib stage4-zlib ; \
48673 mv prev-zlib stage3-zlib ; : ; \
0aed8855 48674 fi
72b2455a 48675@endif zlib
700d40ca
ILT
48676@if lto-plugin
48677 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
48678 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin ; \
48679 mv prev-lto-plugin stage3-lto-plugin ; : ; \
48680 fi
48681@endif lto-plugin
0aed8855 48682 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
48683 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR) ; \
48684 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; : ; \
0aed8855 48685 fi
80911fe1 48686 rm -f stage_current
72b2455a 48687
973601e1 48688# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 48689# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48690# reconfigured either.
72b2455a
PB
48691.PHONY: stage4-bubble
48692stage4-bubble:: stage3-bubble
e360f423
PB
48693 @r=`${PWD_COMMAND}`; export r; \
48694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48695 if test -f stage4-lean || test -f stage3-lean ; then \
9cb3fa6f
PB
48696 echo Skipping rebuild of stage4 ; \
48697 else \
f70224b5 48698 $(MAKE) stage4-start; \
80911fe1
PB
48699 if $(LEAN); then \
48700 rm -rf stage2-* ; \
48701 $(STAMP) stage2-lean ; \
48702 fi; \
f70224b5 48703 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 48704 fi
f6d183c0 48705 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 48706
0df3d27f 48707.PHONY: all-stage4 clean-stage4
0df3d27f 48708do-clean: clean-stage4
0df3d27f 48709
d545f33b
PB
48710# FIXME: Will not need to be conditional when toplevel bootstrap is the
48711# only possibility, but now it conflicts with no-bootstrap rules
48712@if gcc-bootstrap
72b2455a 48713
d545f33b 48714compare3:
e360f423
PB
48715 @r=`${PWD_COMMAND}`; export r; \
48716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48717 if test -f stage3-lean; then \
d545f33b
PB
48718 echo Cannot compare object files as stage 3 was deleted. ; \
48719 exit 0 ; \
48720 fi; \
0aed8855 48721 : $(MAKE); $(stage); \
d545f33b 48722 rm -f .bad_compare ; \
c52c6897 48723 echo Comparing stages 3 and 4 ; \
fda13ee8
AO
48724 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
48725 files=`find stage4-* -name "*$(objext)" -print | \
48726 sed -n s,^stage$$sed-,,p` ; \
d545f33b 48727 for file in $${files} ; do \
fda13ee8
AO
48728 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
48729 if test ! -f $$f1; then continue; fi; \
8520c408 48730 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
48731 if test $$? -eq 1; then \
48732 case $$file in \
e8a5fa9c 48733 @compare_exclusions@) \
f70224b5
PB
48734 echo warning: $$file differs ;; \
48735 *) \
48736 echo $$file differs >> .bad_compare ;; \
48737 esac ; \
48738 fi ; \
d545f33b
PB
48739 done ; \
48740 if [ -f .bad_compare ]; then \
48741 echo "Bootstrap comparison failure!"; \
48742 cat .bad_compare; \
48743 exit 1; \
48744 else \
c52c6897 48745 echo Comparison successful.; \
d545f33b
PB
48746 fi ; \
48747 $(STAMP) compare3
80911fe1
PB
48748 if $(LEAN); then \
48749 rm -rf stage3-*; \
48750 $(STAMP) stage3-lean; \
48751 fi
9cb3fa6f 48752
72b2455a 48753
72b2455a 48754
80911fe1 48755.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
48756bootstrap4:
48757 echo stage4 > stage_final
48758 @r=`${PWD_COMMAND}`; export r; \
48759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48760 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 48761 @: $(MAKE); $(unstage)
be01d343
PB
48762 @r=`${PWD_COMMAND}`; export r; \
48763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48764 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 48765 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 48766
80911fe1
PB
48767bootstrap4-lean:
48768 echo stage4 > stage_final
48769 @r=`${PWD_COMMAND}`; export r; \
48770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48771 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
48772 @: $(MAKE); $(unstage)
48773 @r=`${PWD_COMMAND}`; export r; \
48774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48775 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
48776 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48777
72b2455a 48778
d545f33b
PB
48779# Rules to wipe a stage and all the following ones, also used for cleanstrap
48780distclean-stage3:: distclean-stage4
48781.PHONY: distclean-stage4
48782distclean-stage4::
0aed8855 48783 @: $(MAKE); $(stage)
e00a73e3 48784 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 48785 rm -rf stage4-* compare3
0df3d27f 48786
9cb3fa6f 48787
d545f33b 48788@endif gcc-bootstrap
72b2455a
PB
48789
48790
48791.PHONY: stageprofile-start stageprofile-end
48792
48793stageprofile-start::
0aed8855 48794 @: $(MAKE); $(stage); \
72b2455a 48795 echo stageprofile > stage_current ; \
b00612cc 48796 echo stageprofile > stage_last; \
0aed8855 48797 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48798@if bfd
b00612cc
PB
48799 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
48800 mkdir stageprofile-bfd; \
80911fe1
PB
48801 mv stageprofile-bfd bfd ; \
48802 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
48803@endif bfd
48804@if opcodes
b00612cc
PB
48805 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
48806 mkdir stageprofile-opcodes; \
80911fe1
PB
48807 mv stageprofile-opcodes opcodes ; \
48808 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
48809@endif opcodes
48810@if binutils
b00612cc
PB
48811 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
48812 mkdir stageprofile-binutils; \
80911fe1
PB
48813 mv stageprofile-binutils binutils ; \
48814 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 48815@endif binutils
201f096f 48816@if fixincludes
48817 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
48818 mkdir stageprofile-fixincludes; \
48819 mv stageprofile-fixincludes fixincludes ; \
48820 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
48821@endif fixincludes
72b2455a 48822@if gas
b00612cc
PB
48823 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
48824 mkdir stageprofile-gas; \
80911fe1
PB
48825 mv stageprofile-gas gas ; \
48826 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
48827@endif gas
48828@if gcc
b00612cc
PB
48829 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
48830 mkdir stageprofile-gcc; \
80911fe1
PB
48831 mv stageprofile-gcc gcc ; \
48832 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 48833@endif gcc
4b900473
PB
48834@if gmp
48835 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
48836 mkdir stageprofile-gmp; \
48837 mv stageprofile-gmp gmp ; \
48838 mv stage1-gmp prev-gmp || test -f stage1-lean
48839@endif gmp
48840@if mpfr
48841 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
48842 mkdir stageprofile-mpfr; \
48843 mv stageprofile-mpfr mpfr ; \
48844 mv stage1-mpfr prev-mpfr || test -f stage1-lean
48845@endif mpfr
e8a5fa9c
RW
48846@if mpc
48847 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
48848 mkdir stageprofile-mpc; \
48849 mv stageprofile-mpc mpc ; \
48850 mv stage1-mpc prev-mpc || test -f stage1-lean
48851@endif mpc
7ec59b9e
L
48852@if isl
48853 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
48854 mkdir stageprofile-isl; \
48855 mv stageprofile-isl isl ; \
48856 mv stage1-isl prev-isl || test -f stage1-lean
48857@endif isl
1f53ca9a
AO
48858@if libelf
48859 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
48860 mkdir stageprofile-libelf; \
48861 mv stageprofile-libelf libelf ; \
48862 mv stage1-libelf prev-libelf || test -f stage1-lean
48863@endif libelf
93f9b408
ILT
48864@if gold
48865 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
48866 mkdir stageprofile-gold; \
48867 mv stageprofile-gold gold ; \
48868 mv stage1-gold prev-gold || test -f stage1-lean
48869@endif gold
72b2455a 48870@if intl
b00612cc
PB
48871 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
48872 mkdir stageprofile-intl; \
80911fe1
PB
48873 mv stageprofile-intl intl ; \
48874 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
48875@endif intl
48876@if ld
b00612cc
PB
48877 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
48878 mkdir stageprofile-ld; \
80911fe1
PB
48879 mv stageprofile-ld ld ; \
48880 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 48881@endif ld
2bf680c4
ILT
48882@if libbacktrace
48883 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
48884 mkdir stageprofile-libbacktrace; \
48885 mv stageprofile-libbacktrace libbacktrace ; \
48886 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
48887@endif libbacktrace
72b2455a 48888@if libcpp
b00612cc
PB
48889 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
48890 mkdir stageprofile-libcpp; \
80911fe1
PB
48891 mv stageprofile-libcpp libcpp ; \
48892 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 48893@endif libcpp
be01d343
PB
48894@if libdecnumber
48895 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
48896 mkdir stageprofile-libdecnumber; \
80911fe1
PB
48897 mv stageprofile-libdecnumber libdecnumber ; \
48898 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 48899@endif libdecnumber
72b2455a 48900@if libiberty
b00612cc
PB
48901 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
48902 mkdir stageprofile-libiberty; \
80911fe1
PB
48903 mv stageprofile-libiberty libiberty ; \
48904 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 48905@endif libiberty
1b6c0831
L
48906@if libiberty-linker-plugin
48907 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
48908 mkdir stageprofile-libiberty-linker-plugin; \
48909 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin ; \
48910 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
48911@endif libiberty-linker-plugin
72b2455a 48912@if zlib
d545f33b
PB
48913 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
48914 mkdir stageprofile-zlib; \
80911fe1
PB
48915 mv stageprofile-zlib zlib ; \
48916 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 48917@endif zlib
700d40ca
ILT
48918@if lto-plugin
48919 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
48920 mkdir stageprofile-lto-plugin; \
48921 mv stageprofile-lto-plugin lto-plugin ; \
48922 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
48923@endif lto-plugin
0aed8855
PB
48924 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
48925 mkdir stageprofile-$(TARGET_SUBDIR); \
80911fe1
PB
48926 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
48927 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 48928
80911fe1 48929stageprofile-end::
d545f33b 48930@if bfd
80911fe1
PB
48931 @if test -d $(HOST_SUBDIR)/bfd ; then \
48932 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd ; \
48933 mv prev-bfd stage1-bfd ; : ; \
0aed8855 48934 fi
d545f33b
PB
48935@endif bfd
48936@if opcodes
80911fe1
PB
48937 @if test -d $(HOST_SUBDIR)/opcodes ; then \
48938 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes ; \
48939 mv prev-opcodes stage1-opcodes ; : ; \
0aed8855 48940 fi
d545f33b
PB
48941@endif opcodes
48942@if binutils
80911fe1
PB
48943 @if test -d $(HOST_SUBDIR)/binutils ; then \
48944 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils ; \
48945 mv prev-binutils stage1-binutils ; : ; \
0aed8855 48946 fi
d545f33b 48947@endif binutils
201f096f 48948@if fixincludes
48949 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
48950 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes ; \
48951 mv prev-fixincludes stage1-fixincludes ; : ; \
48952 fi
48953@endif fixincludes
d545f33b 48954@if gas
80911fe1
PB
48955 @if test -d $(HOST_SUBDIR)/gas ; then \
48956 cd $(HOST_SUBDIR); mv gas stageprofile-gas ; \
48957 mv prev-gas stage1-gas ; : ; \
0aed8855 48958 fi
d545f33b
PB
48959@endif gas
48960@if gcc
80911fe1
PB
48961 @if test -d $(HOST_SUBDIR)/gcc ; then \
48962 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc ; \
48963 mv prev-gcc stage1-gcc ; : ; \
0aed8855 48964 fi
d545f33b 48965@endif gcc
4b900473
PB
48966@if gmp
48967 @if test -d $(HOST_SUBDIR)/gmp ; then \
48968 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp ; \
48969 mv prev-gmp stage1-gmp ; : ; \
48970 fi
48971@endif gmp
48972@if mpfr
48973 @if test -d $(HOST_SUBDIR)/mpfr ; then \
48974 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr ; \
48975 mv prev-mpfr stage1-mpfr ; : ; \
48976 fi
48977@endif mpfr
e8a5fa9c
RW
48978@if mpc
48979 @if test -d $(HOST_SUBDIR)/mpc ; then \
48980 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc ; \
48981 mv prev-mpc stage1-mpc ; : ; \
48982 fi
48983@endif mpc
7ec59b9e
L
48984@if isl
48985 @if test -d $(HOST_SUBDIR)/isl ; then \
48986 cd $(HOST_SUBDIR); mv isl stageprofile-isl ; \
48987 mv prev-isl stage1-isl ; : ; \
e28c595f 48988 fi
7ec59b9e 48989@endif isl
1f53ca9a
AO
48990@if libelf
48991 @if test -d $(HOST_SUBDIR)/libelf ; then \
48992 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf ; \
48993 mv prev-libelf stage1-libelf ; : ; \
48994 fi
48995@endif libelf
93f9b408
ILT
48996@if gold
48997 @if test -d $(HOST_SUBDIR)/gold ; then \
48998 cd $(HOST_SUBDIR); mv gold stageprofile-gold ; \
48999 mv prev-gold stage1-gold ; : ; \
49000 fi
49001@endif gold
d545f33b 49002@if intl
80911fe1
PB
49003 @if test -d $(HOST_SUBDIR)/intl ; then \
49004 cd $(HOST_SUBDIR); mv intl stageprofile-intl ; \
49005 mv prev-intl stage1-intl ; : ; \
0aed8855 49006 fi
d545f33b
PB
49007@endif intl
49008@if ld
80911fe1
PB
49009 @if test -d $(HOST_SUBDIR)/ld ; then \
49010 cd $(HOST_SUBDIR); mv ld stageprofile-ld ; \
49011 mv prev-ld stage1-ld ; : ; \
0aed8855 49012 fi
d545f33b 49013@endif ld
2bf680c4
ILT
49014@if libbacktrace
49015 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
49016 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace ; \
49017 mv prev-libbacktrace stage1-libbacktrace ; : ; \
49018 fi
49019@endif libbacktrace
d545f33b 49020@if libcpp
80911fe1
PB
49021 @if test -d $(HOST_SUBDIR)/libcpp ; then \
49022 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp ; \
49023 mv prev-libcpp stage1-libcpp ; : ; \
0aed8855 49024 fi
d545f33b 49025@endif libcpp
be01d343 49026@if libdecnumber
80911fe1
PB
49027 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
49028 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber ; \
49029 mv prev-libdecnumber stage1-libdecnumber ; : ; \
0aed8855 49030 fi
be01d343 49031@endif libdecnumber
d545f33b 49032@if libiberty
80911fe1
PB
49033 @if test -d $(HOST_SUBDIR)/libiberty ; then \
49034 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty ; \
49035 mv prev-libiberty stage1-libiberty ; : ; \
0aed8855 49036 fi
d545f33b 49037@endif libiberty
1b6c0831
L
49038@if libiberty-linker-plugin
49039 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
49040 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin ; \
49041 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin ; : ; \
49042 fi
49043@endif libiberty-linker-plugin
d545f33b 49044@if zlib
80911fe1
PB
49045 @if test -d $(HOST_SUBDIR)/zlib ; then \
49046 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib ; \
49047 mv prev-zlib stage1-zlib ; : ; \
0aed8855 49048 fi
d545f33b 49049@endif zlib
700d40ca
ILT
49050@if lto-plugin
49051 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
49052 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin ; \
49053 mv prev-lto-plugin stage1-lto-plugin ; : ; \
49054 fi
49055@endif lto-plugin
0aed8855 49056 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
49057 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; \
49058 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
0aed8855 49059 fi
80911fe1 49060 rm -f stage_current
72b2455a 49061
973601e1 49062# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 49063# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49064# reconfigured either.
d545f33b
PB
49065.PHONY: stageprofile-bubble
49066stageprofile-bubble:: stage1-bubble
e360f423
PB
49067 @r=`${PWD_COMMAND}`; export r; \
49068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49069 if test -f stageprofile-lean || test -f stage1-lean ; then \
d545f33b
PB
49070 echo Skipping rebuild of stageprofile ; \
49071 else \
f70224b5
PB
49072 $(MAKE) stageprofile-start; \
49073 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 49074 fi
72b2455a 49075
d545f33b
PB
49076.PHONY: all-stageprofile clean-stageprofile
49077do-clean: clean-stageprofile
0df3d27f 49078
72b2455a
PB
49079# FIXME: Will not need to be conditional when toplevel bootstrap is the
49080# only possibility, but now it conflicts with no-bootstrap rules
49081@if gcc-bootstrap
49082
49083
49084
49085
0df3d27f 49086# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49087distclean-stage1:: distclean-stageprofile
0df3d27f 49088.PHONY: distclean-stageprofile
72b2455a 49089distclean-stageprofile::
0aed8855 49090 @: $(MAKE); $(stage)
e00a73e3 49091 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 49092 rm -rf stageprofile-*
dfdffa2c
PB
49093
49094
72b2455a 49095@endif gcc-bootstrap
dfdffa2c
PB
49096
49097
72b2455a 49098.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 49099
72b2455a 49100stagefeedback-start::
0aed8855 49101 @: $(MAKE); $(stage); \
72b2455a 49102 echo stagefeedback > stage_current ; \
b00612cc 49103 echo stagefeedback > stage_last; \
0aed8855 49104 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49105@if bfd
b00612cc
PB
49106 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
49107 mkdir stagefeedback-bfd; \
80911fe1
PB
49108 mv stagefeedback-bfd bfd ; \
49109 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
49110@endif bfd
49111@if opcodes
b00612cc
PB
49112 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
49113 mkdir stagefeedback-opcodes; \
80911fe1
PB
49114 mv stagefeedback-opcodes opcodes ; \
49115 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
49116@endif opcodes
49117@if binutils
b00612cc
PB
49118 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
49119 mkdir stagefeedback-binutils; \
80911fe1
PB
49120 mv stagefeedback-binutils binutils ; \
49121 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a 49122@endif binutils
201f096f 49123@if fixincludes
49124 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
49125 mkdir stagefeedback-fixincludes; \
49126 mv stagefeedback-fixincludes fixincludes ; \
49127 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
49128@endif fixincludes
72b2455a 49129@if gas
b00612cc
PB
49130 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
49131 mkdir stagefeedback-gas; \
80911fe1
PB
49132 mv stagefeedback-gas gas ; \
49133 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
49134@endif gas
49135@if gcc
b00612cc
PB
49136 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
49137 mkdir stagefeedback-gcc; \
80911fe1
PB
49138 mv stagefeedback-gcc gcc ; \
49139 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 49140@endif gcc
4b900473
PB
49141@if gmp
49142 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
49143 mkdir stagefeedback-gmp; \
49144 mv stagefeedback-gmp gmp ; \
49145 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
49146@endif gmp
49147@if mpfr
49148 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
49149 mkdir stagefeedback-mpfr; \
49150 mv stagefeedback-mpfr mpfr ; \
49151 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
49152@endif mpfr
e8a5fa9c
RW
49153@if mpc
49154 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
49155 mkdir stagefeedback-mpc; \
49156 mv stagefeedback-mpc mpc ; \
49157 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
49158@endif mpc
7ec59b9e
L
49159@if isl
49160 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
49161 mkdir stagefeedback-isl; \
49162 mv stagefeedback-isl isl ; \
49163 mv stageprofile-isl prev-isl || test -f stageprofile-lean
49164@endif isl
1f53ca9a
AO
49165@if libelf
49166 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
49167 mkdir stagefeedback-libelf; \
49168 mv stagefeedback-libelf libelf ; \
49169 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
49170@endif libelf
93f9b408
ILT
49171@if gold
49172 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
49173 mkdir stagefeedback-gold; \
49174 mv stagefeedback-gold gold ; \
49175 mv stageprofile-gold prev-gold || test -f stageprofile-lean
49176@endif gold
72b2455a 49177@if intl
b00612cc
PB
49178 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
49179 mkdir stagefeedback-intl; \
80911fe1
PB
49180 mv stagefeedback-intl intl ; \
49181 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
49182@endif intl
49183@if ld
b00612cc
PB
49184 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
49185 mkdir stagefeedback-ld; \
80911fe1
PB
49186 mv stagefeedback-ld ld ; \
49187 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 49188@endif ld
2bf680c4
ILT
49189@if libbacktrace
49190 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
49191 mkdir stagefeedback-libbacktrace; \
49192 mv stagefeedback-libbacktrace libbacktrace ; \
49193 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
49194@endif libbacktrace
72b2455a 49195@if libcpp
b00612cc
PB
49196 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
49197 mkdir stagefeedback-libcpp; \
80911fe1
PB
49198 mv stagefeedback-libcpp libcpp ; \
49199 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 49200@endif libcpp
be01d343
PB
49201@if libdecnumber
49202 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
49203 mkdir stagefeedback-libdecnumber; \
80911fe1
PB
49204 mv stagefeedback-libdecnumber libdecnumber ; \
49205 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 49206@endif libdecnumber
72b2455a 49207@if libiberty
b00612cc
PB
49208 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
49209 mkdir stagefeedback-libiberty; \
80911fe1
PB
49210 mv stagefeedback-libiberty libiberty ; \
49211 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a 49212@endif libiberty
1b6c0831
L
49213@if libiberty-linker-plugin
49214 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
49215 mkdir stagefeedback-libiberty-linker-plugin; \
49216 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin ; \
49217 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
49218@endif libiberty-linker-plugin
72b2455a 49219@if zlib
b00612cc
PB
49220 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
49221 mkdir stagefeedback-zlib; \
80911fe1
PB
49222 mv stagefeedback-zlib zlib ; \
49223 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 49224@endif zlib
700d40ca
ILT
49225@if lto-plugin
49226 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
49227 mkdir stagefeedback-lto-plugin; \
49228 mv stagefeedback-lto-plugin lto-plugin ; \
49229 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
49230@endif lto-plugin
0aed8855
PB
49231 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
49232 mkdir stagefeedback-$(TARGET_SUBDIR); \
80911fe1
PB
49233 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
49234 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 49235
80911fe1 49236stagefeedback-end::
72b2455a 49237@if bfd
80911fe1
PB
49238 @if test -d $(HOST_SUBDIR)/bfd ; then \
49239 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd ; \
49240 mv prev-bfd stageprofile-bfd ; : ; \
0aed8855 49241 fi
72b2455a
PB
49242@endif bfd
49243@if opcodes
80911fe1
PB
49244 @if test -d $(HOST_SUBDIR)/opcodes ; then \
49245 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes ; \
49246 mv prev-opcodes stageprofile-opcodes ; : ; \
0aed8855 49247 fi
72b2455a
PB
49248@endif opcodes
49249@if binutils
80911fe1
PB
49250 @if test -d $(HOST_SUBDIR)/binutils ; then \
49251 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils ; \
49252 mv prev-binutils stageprofile-binutils ; : ; \
0aed8855 49253 fi
72b2455a 49254@endif binutils
201f096f 49255@if fixincludes
49256 @if test -d $(HOST_SUBDIR)/fixincludes ; then \
49257 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes ; \
49258 mv prev-fixincludes stageprofile-fixincludes ; : ; \
49259 fi
49260@endif fixincludes
72b2455a 49261@if gas
80911fe1
PB
49262 @if test -d $(HOST_SUBDIR)/gas ; then \
49263 cd $(HOST_SUBDIR); mv gas stagefeedback-gas ; \
49264 mv prev-gas stageprofile-gas ; : ; \
0aed8855 49265 fi
72b2455a
PB
49266@endif gas
49267@if gcc
80911fe1
PB
49268 @if test -d $(HOST_SUBDIR)/gcc ; then \
49269 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc ; \
49270 mv prev-gcc stageprofile-gcc ; : ; \
0aed8855 49271 fi
72b2455a 49272@endif gcc
4b900473
PB
49273@if gmp
49274 @if test -d $(HOST_SUBDIR)/gmp ; then \
49275 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp ; \
49276 mv prev-gmp stageprofile-gmp ; : ; \
49277 fi
49278@endif gmp
49279@if mpfr
49280 @if test -d $(HOST_SUBDIR)/mpfr ; then \
49281 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr ; \
49282 mv prev-mpfr stageprofile-mpfr ; : ; \
49283 fi
49284@endif mpfr
e8a5fa9c
RW
49285@if mpc
49286 @if test -d $(HOST_SUBDIR)/mpc ; then \
49287 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc ; \
49288 mv prev-mpc stageprofile-mpc ; : ; \
49289 fi
49290@endif mpc
7ec59b9e
L
49291@if isl
49292 @if test -d $(HOST_SUBDIR)/isl ; then \
49293 cd $(HOST_SUBDIR); mv isl stagefeedback-isl ; \
49294 mv prev-isl stageprofile-isl ; : ; \
e28c595f 49295 fi
7ec59b9e 49296@endif isl
1f53ca9a
AO
49297@if libelf
49298 @if test -d $(HOST_SUBDIR)/libelf ; then \
49299 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf ; \
49300 mv prev-libelf stageprofile-libelf ; : ; \
49301 fi
49302@endif libelf
93f9b408
ILT
49303@if gold
49304 @if test -d $(HOST_SUBDIR)/gold ; then \
49305 cd $(HOST_SUBDIR); mv gold stagefeedback-gold ; \
49306 mv prev-gold stageprofile-gold ; : ; \
49307 fi
49308@endif gold
72b2455a 49309@if intl
80911fe1
PB
49310 @if test -d $(HOST_SUBDIR)/intl ; then \
49311 cd $(HOST_SUBDIR); mv intl stagefeedback-intl ; \
49312 mv prev-intl stageprofile-intl ; : ; \
0aed8855 49313 fi
72b2455a
PB
49314@endif intl
49315@if ld
80911fe1
PB
49316 @if test -d $(HOST_SUBDIR)/ld ; then \
49317 cd $(HOST_SUBDIR); mv ld stagefeedback-ld ; \
49318 mv prev-ld stageprofile-ld ; : ; \
0aed8855 49319 fi
72b2455a 49320@endif ld
2bf680c4
ILT
49321@if libbacktrace
49322 @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
49323 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace ; \
49324 mv prev-libbacktrace stageprofile-libbacktrace ; : ; \
49325 fi
49326@endif libbacktrace
72b2455a 49327@if libcpp
80911fe1
PB
49328 @if test -d $(HOST_SUBDIR)/libcpp ; then \
49329 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp ; \
49330 mv prev-libcpp stageprofile-libcpp ; : ; \
0aed8855 49331 fi
72b2455a 49332@endif libcpp
be01d343 49333@if libdecnumber
80911fe1
PB
49334 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
49335 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber ; \
49336 mv prev-libdecnumber stageprofile-libdecnumber ; : ; \
0aed8855 49337 fi
be01d343 49338@endif libdecnumber
72b2455a 49339@if libiberty
80911fe1
PB
49340 @if test -d $(HOST_SUBDIR)/libiberty ; then \
49341 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty ; \
49342 mv prev-libiberty stageprofile-libiberty ; : ; \
0aed8855 49343 fi
72b2455a 49344@endif libiberty
1b6c0831
L
49345@if libiberty-linker-plugin
49346 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin ; then \
49347 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin ; \
49348 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin ; : ; \
49349 fi
49350@endif libiberty-linker-plugin
72b2455a 49351@if zlib
80911fe1
PB
49352 @if test -d $(HOST_SUBDIR)/zlib ; then \
49353 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib ; \
49354 mv prev-zlib stageprofile-zlib ; : ; \
0aed8855 49355 fi
72b2455a 49356@endif zlib
700d40ca
ILT
49357@if lto-plugin
49358 @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
49359 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin ; \
49360 mv prev-lto-plugin stageprofile-lto-plugin ; : ; \
49361 fi
49362@endif lto-plugin
0aed8855 49363 @if test -d $(TARGET_SUBDIR) ; then \
80911fe1
PB
49364 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR) ; \
49365 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; : ; \
0aed8855 49366 fi
80911fe1 49367 rm -f stage_current
dfdffa2c 49368
973601e1 49369# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 49370# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49371# reconfigured either.
72b2455a 49372.PHONY: stagefeedback-bubble
7d329e61 49373stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
49374 @r=`${PWD_COMMAND}`; export r; \
49375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49376 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
9cb3fa6f
PB
49377 echo Skipping rebuild of stagefeedback ; \
49378 else \
f70224b5
PB
49379 $(MAKE) stagefeedback-start; \
49380 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 49381 fi
72b2455a 49382
0df3d27f 49383.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 49384do-clean: clean-stagefeedback
0df3d27f 49385
72b2455a
PB
49386# FIXME: Will not need to be conditional when toplevel bootstrap is the
49387# only possibility, but now it conflicts with no-bootstrap rules
49388@if gcc-bootstrap
656fdd47
PB
49389
49390
49391
80911fe1 49392.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
49393profiledbootstrap:
49394 echo stagefeedback > stage_final
49395 @r=`${PWD_COMMAND}`; export r; \
49396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49397 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 49398 @: $(MAKE); $(unstage)
be01d343
PB
49399 @r=`${PWD_COMMAND}`; export r; \
49400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49401 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 49402 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 49403
80911fe1
PB
49404profiledbootstrap-lean:
49405 echo stagefeedback > stage_final
49406 @r=`${PWD_COMMAND}`; export r; \
49407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49408 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
49409 @: $(MAKE); $(unstage)
49410 @r=`${PWD_COMMAND}`; export r; \
49411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49412 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
49413 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49414
656fdd47 49415
0df3d27f 49416# Rules to wipe a stage and all the following ones, also used for cleanstrap
7d329e61 49417distclean-stageprofile:: distclean-stagefeedback
0df3d27f 49418.PHONY: distclean-stagefeedback
656fdd47 49419distclean-stagefeedback::
0aed8855 49420 @: $(MAKE); $(stage)
e00a73e3 49421 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 49422 rm -rf stagefeedback-*
656fdd47
PB
49423
49424
72b2455a 49425@endif gcc-bootstrap
656fdd47
PB
49426
49427
49428
7d329e61
PB
49429stageprofile-end::
49430 $(MAKE) distclean-stagefeedback
656fdd47 49431
7d329e61 49432stagefeedback-start::
656fdd47
PB
49433 @r=`${PWD_COMMAND}`; export r; \
49434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61
PB
49435 for i in prev-*; do \
49436 j=`echo $$i | sed s/^prev-//` ; \
49437 cd $$r/$$i && \
49438 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL) ; } && \
49439 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL) ; } ; \
49440 done
b8908782 49441
0df3d27f 49442@if gcc-bootstrap
0df3d27f 49443do-distclean: distclean-stage1
c52c6897
PB
49444
49445# Provide a GCC build when we're building target libraries. This does
49446# not work as a dependency, just as the minimum necessary to avoid errors.
49447stage_last:
314b2e66
AS
49448 @r=`${PWD_COMMAND}`; export r; \
49449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 49450 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 49451
4f0ef2d8
CD
49452# Same as unstage, but not phony and defaulting to stage1-start. We place
49453# it in the dependency so that for example `make -j3 all-gcc' works.
49454stage_current:
49455 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
49456
c52c6897 49457.PHONY: restrap
266df637 49458restrap::
c52c6897 49459 @: $(MAKE); $(stage)
1b05fbbd 49460 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 49461restrap:: all
c380fdd8 49462@endif gcc-bootstrap
c52c6897 49463
ae831be5
NN
49464# --------------------------------------
49465# Dependencies between different modules
49466# --------------------------------------
252b5132 49467
9e6ce191 49468# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 49469@if gcc-bootstrap
e8a5fa9c
RW
49470configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
49471configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
49472configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
49473configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
49474configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
49475configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
49476configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
49477configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
49478configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
49479configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
49480configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
49481configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
1b6c0831
L
49482configure-stage1-target-libmpx: maybe-all-stage1-gcc
49483configure-stage2-target-libmpx: maybe-all-stage2-gcc
49484configure-stage3-target-libmpx: maybe-all-stage3-gcc
49485configure-stage4-target-libmpx: maybe-all-stage4-gcc
49486configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
49487configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
95e43135
JBG
49488configure-stage1-target-libvtv: maybe-all-stage1-gcc
49489configure-stage2-target-libvtv: maybe-all-stage2-gcc
49490configure-stage3-target-libvtv: maybe-all-stage3-gcc
49491configure-stage4-target-libvtv: maybe-all-stage4-gcc
49492configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
49493configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
522e3d71 49494configure-target-libcilkrts: stage_last
1b6c0831 49495configure-target-liboffloadmic: stage_last
c52c6897 49496configure-target-libssp: stage_last
c52c6897 49497configure-target-newlib: stage_last
6aa8ef82
DJ
49498configure-stage1-target-libgcc: maybe-all-stage1-gcc
49499configure-stage2-target-libgcc: maybe-all-stage2-gcc
49500configure-stage3-target-libgcc: maybe-all-stage3-gcc
49501configure-stage4-target-libgcc: maybe-all-stage4-gcc
49502configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
49503configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 49504configure-target-libbacktrace: stage_last
e552509b 49505configure-target-libquadmath: stage_last
c52c6897
PB
49506configure-target-libgfortran: stage_last
49507configure-target-libobjc: stage_last
e552509b 49508configure-target-libgo: stage_last
c52c6897
PB
49509configure-target-libtermcap: stage_last
49510configure-target-winsup: stage_last
49511configure-target-libgloss: stage_last
c52c6897
PB
49512configure-target-libffi: stage_last
49513configure-target-libjava: stage_last
49514configure-target-zlib: stage_last
49515configure-target-boehm-gc: stage_last
c52c6897
PB
49516configure-target-rda: stage_last
49517configure-target-libada: stage_last
911e63d0
JR
49518configure-stage1-target-libgomp: maybe-all-stage1-gcc
49519configure-stage2-target-libgomp: maybe-all-stage2-gcc
49520configure-stage3-target-libgomp: maybe-all-stage3-gcc
49521configure-stage4-target-libgomp: maybe-all-stage4-gcc
49522configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
49523configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
49524configure-target-libitm: stage_last
49525configure-target-libatomic: stage_last
c52c6897 49526@endif gcc-bootstrap
9e6ce191 49527
c52c6897 49528@if gcc-no-bootstrap
9e6ce191 49529configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 49530configure-target-libsanitizer: maybe-all-gcc
1b6c0831 49531configure-target-libmpx: maybe-all-gcc
95e43135 49532configure-target-libvtv: maybe-all-gcc
e78e02e6 49533configure-target-libcilkrts: maybe-all-gcc
1b6c0831 49534configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 49535configure-target-libssp: maybe-all-gcc
9e6ce191 49536configure-target-newlib: maybe-all-gcc
6aa8ef82 49537configure-target-libgcc: maybe-all-gcc
2bf680c4 49538configure-target-libbacktrace: maybe-all-gcc
e552509b 49539configure-target-libquadmath: maybe-all-gcc
9e6ce191 49540configure-target-libgfortran: maybe-all-gcc
9e6ce191 49541configure-target-libobjc: maybe-all-gcc
e552509b 49542configure-target-libgo: maybe-all-gcc
9e6ce191 49543configure-target-libtermcap: maybe-all-gcc
9e6ce191 49544configure-target-winsup: maybe-all-gcc
9e6ce191 49545configure-target-libgloss: maybe-all-gcc
9e6ce191 49546configure-target-libffi: maybe-all-gcc
9e6ce191 49547configure-target-libjava: maybe-all-gcc
9e6ce191 49548configure-target-zlib: maybe-all-gcc
9e6ce191 49549configure-target-boehm-gc: maybe-all-gcc
9e6ce191 49550configure-target-rda: maybe-all-gcc
9e6ce191 49551configure-target-libada: maybe-all-gcc
b3ded179 49552configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
49553configure-target-libitm: maybe-all-gcc
49554configure-target-libatomic: maybe-all-gcc
c52c6897 49555@endif gcc-no-bootstrap
b3ded179 49556
9e6ce191 49557
ae831be5
NN
49558# There are two types of dependencies here: 'hard' dependencies, where one
49559# module simply won't build without the other; and 'soft' dependencies, where
49560# if the depended-on module is missing, the depending module will do without
49561# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 49562# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
49563# it's safer to use a soft dependency.
49564
9e6ce191
PB
49565
49566
49567
49568
c60fe18b 49569
9e6ce191
PB
49570# With all the machinery above in place, it is pretty easy to generate
49571# dependencies. Host dependencies are a bit more complex because we have
49572# to check for bootstrap/prebootstrap dependencies. To resolve
49573# prebootstrap dependencies, prebootstrap modules are gathered in
49574# a hash table.
6a9cf61e
PB
49575all-build-bison: maybe-all-build-texinfo
49576all-build-flex: maybe-all-build-texinfo
9e6ce191 49577all-build-flex: maybe-all-build-bison
9e6ce191 49578all-build-flex: maybe-all-build-m4
6a9cf61e 49579all-build-libiberty: maybe-all-build-texinfo
9e6ce191 49580all-build-m4: maybe-all-build-texinfo
ee025550 49581all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 49582all-build-libcpp: maybe-all-build-libiberty
9e6ce191
PB
49583configure-gcc: maybe-configure-intl
49584
49585configure-stage1-gcc: maybe-configure-stage1-intl
49586configure-stage2-gcc: maybe-configure-stage2-intl
49587configure-stage3-gcc: maybe-configure-stage3-intl
49588configure-stage4-gcc: maybe-configure-stage4-intl
49589configure-stageprofile-gcc: maybe-configure-stageprofile-intl
49590configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8
L
49591configure-gcc: maybe-all-gmp
49592
49593configure-stage1-gcc: maybe-all-stage1-gmp
49594configure-stage2-gcc: maybe-all-stage2-gmp
49595configure-stage3-gcc: maybe-all-stage3-gmp
49596configure-stage4-gcc: maybe-all-stage4-gmp
49597configure-stageprofile-gcc: maybe-all-stageprofile-gmp
49598configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
1b6c0831
L
49599configure-gcc: maybe-all-mpfr
49600
49601configure-stage1-gcc: maybe-all-stage1-mpfr
49602configure-stage2-gcc: maybe-all-stage2-mpfr
49603configure-stage3-gcc: maybe-all-stage3-mpfr
49604configure-stage4-gcc: maybe-all-stage4-mpfr
49605configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
49606configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
49607configure-gcc: maybe-all-mpc
49608
49609configure-stage1-gcc: maybe-all-stage1-mpc
49610configure-stage2-gcc: maybe-all-stage2-mpc
49611configure-stage3-gcc: maybe-all-stage3-mpc
49612configure-stage4-gcc: maybe-all-stage4-mpc
49613configure-stageprofile-gcc: maybe-all-stageprofile-mpc
49614configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
49615configure-gcc: maybe-all-isl
49616
49617configure-stage1-gcc: maybe-all-stage1-isl
49618configure-stage2-gcc: maybe-all-stage2-isl
49619configure-stage3-gcc: maybe-all-stage3-isl
49620configure-stage4-gcc: maybe-all-stage4-isl
49621configure-stageprofile-gcc: maybe-all-stageprofile-isl
49622configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
8d8eef9a
RW
49623configure-gcc: maybe-all-lto-plugin
49624
49625configure-stage1-gcc: maybe-all-stage1-lto-plugin
49626configure-stage2-gcc: maybe-all-stage2-lto-plugin
49627configure-stage3-gcc: maybe-all-stage3-lto-plugin
49628configure-stage4-gcc: maybe-all-stage4-lto-plugin
49629configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
49630configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b
PB
49631configure-gcc: maybe-all-binutils
49632
49633configure-stage1-gcc: maybe-all-stage1-binutils
49634configure-stage2-gcc: maybe-all-stage2-binutils
49635configure-stage3-gcc: maybe-all-stage3-binutils
49636configure-stage4-gcc: maybe-all-stage4-binutils
49637configure-stageprofile-gcc: maybe-all-stageprofile-binutils
49638configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
49639configure-gcc: maybe-all-gas
49640
49641configure-stage1-gcc: maybe-all-stage1-gas
49642configure-stage2-gcc: maybe-all-stage2-gas
49643configure-stage3-gcc: maybe-all-stage3-gas
49644configure-stage4-gcc: maybe-all-stage4-gas
49645configure-stageprofile-gcc: maybe-all-stageprofile-gas
49646configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
49647configure-gcc: maybe-all-ld
49648
49649configure-stage1-gcc: maybe-all-stage1-ld
49650configure-stage2-gcc: maybe-all-stage2-ld
49651configure-stage3-gcc: maybe-all-stage3-ld
49652configure-stage4-gcc: maybe-all-stage4-ld
49653configure-stageprofile-gcc: maybe-all-stageprofile-ld
49654configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408
ILT
49655configure-gcc: maybe-all-gold
49656
49657configure-stage1-gcc: maybe-all-stage1-gold
49658configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 49659configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
49660configure-stage4-gcc: maybe-all-stage4-gold
49661configure-stageprofile-gcc: maybe-all-stageprofile-gold
49662configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480
AO
49663configure-gcc: maybe-all-libelf
49664
49665configure-stage1-gcc: maybe-all-stage1-libelf
49666configure-stage2-gcc: maybe-all-stage2-libelf
49667configure-stage3-gcc: maybe-all-stage3-libelf
49668configure-stage4-gcc: maybe-all-stage4-libelf
49669configure-stageprofile-gcc: maybe-all-stageprofile-libelf
49670configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
9e6ce191
PB
49671all-gcc: all-libiberty
49672
49673all-stage1-gcc: all-stage1-libiberty
49674all-stage2-gcc: all-stage2-libiberty
49675all-stage3-gcc: all-stage3-libiberty
49676all-stage4-gcc: all-stage4-libiberty
49677all-stageprofile-gcc: all-stageprofile-libiberty
49678all-stagefeedback-gcc: all-stagefeedback-libiberty
49679all-gcc: maybe-all-intl
49680
49681all-stage1-gcc: maybe-all-stage1-intl
49682all-stage2-gcc: maybe-all-stage2-intl
49683all-stage3-gcc: maybe-all-stage3-intl
49684all-stage4-gcc: maybe-all-stage4-intl
49685all-stageprofile-gcc: maybe-all-stageprofile-intl
49686all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473
PB
49687all-gcc: maybe-all-mpfr
49688
49689all-stage1-gcc: maybe-all-stage1-mpfr
49690all-stage2-gcc: maybe-all-stage2-mpfr
49691all-stage3-gcc: maybe-all-stage3-mpfr
49692all-stage4-gcc: maybe-all-stage4-mpfr
49693all-stageprofile-gcc: maybe-all-stageprofile-mpfr
49694all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c
RW
49695all-gcc: maybe-all-mpc
49696
49697all-stage1-gcc: maybe-all-stage1-mpc
49698all-stage2-gcc: maybe-all-stage2-mpc
49699all-stage3-gcc: maybe-all-stage3-mpc
49700all-stage4-gcc: maybe-all-stage4-mpc
49701all-stageprofile-gcc: maybe-all-stageprofile-mpc
49702all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
1b6c0831
L
49703all-gcc: maybe-all-isl
49704
49705all-stage1-gcc: maybe-all-stage1-isl
49706all-stage2-gcc: maybe-all-stage2-isl
49707all-stage3-gcc: maybe-all-stage3-isl
49708all-stage4-gcc: maybe-all-stage4-isl
49709all-stageprofile-gcc: maybe-all-stageprofile-isl
49710all-stagefeedback-gcc: maybe-all-stagefeedback-isl
72b2455a
PB
49711all-gcc: maybe-all-build-texinfo
49712
49713all-stage1-gcc: maybe-all-build-texinfo
49714all-stage2-gcc: maybe-all-build-texinfo
49715all-stage3-gcc: maybe-all-build-texinfo
49716all-stage4-gcc: maybe-all-build-texinfo
49717all-stageprofile-gcc: maybe-all-build-texinfo
49718all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a
PB
49719all-gcc: maybe-all-build-bison
49720
49721all-stage1-gcc: maybe-all-build-bison
49722all-stage2-gcc: maybe-all-build-bison
49723all-stage3-gcc: maybe-all-build-bison
49724all-stage4-gcc: maybe-all-build-bison
49725all-stageprofile-gcc: maybe-all-build-bison
49726all-stagefeedback-gcc: maybe-all-build-bison
72b2455a
PB
49727all-gcc: maybe-all-build-flex
49728
49729all-stage1-gcc: maybe-all-build-flex
49730all-stage2-gcc: maybe-all-build-flex
49731all-stage3-gcc: maybe-all-build-flex
49732all-stage4-gcc: maybe-all-build-flex
49733all-stageprofile-gcc: maybe-all-build-flex
49734all-stagefeedback-gcc: maybe-all-build-flex
ee025550
PB
49735all-gcc: maybe-all-build-libiberty
49736
49737all-stage1-gcc: maybe-all-build-libiberty
49738all-stage2-gcc: maybe-all-build-libiberty
49739all-stage3-gcc: maybe-all-build-libiberty
49740all-stage4-gcc: maybe-all-build-libiberty
49741all-stageprofile-gcc: maybe-all-build-libiberty
49742all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550
PB
49743all-gcc: maybe-all-build-fixincludes
49744
49745all-stage1-gcc: maybe-all-build-fixincludes
49746all-stage2-gcc: maybe-all-build-fixincludes
49747all-stage3-gcc: maybe-all-build-fixincludes
49748all-stage4-gcc: maybe-all-build-fixincludes
49749all-stageprofile-gcc: maybe-all-build-fixincludes
49750all-stagefeedback-gcc: maybe-all-build-fixincludes
1b6c0831
L
49751all-gcc: maybe-all-build-libcpp
49752
49753all-stage1-gcc: maybe-all-build-libcpp
49754all-stage2-gcc: maybe-all-build-libcpp
49755all-stage3-gcc: maybe-all-build-libcpp
49756all-stage4-gcc: maybe-all-build-libcpp
49757all-stageprofile-gcc: maybe-all-build-libcpp
49758all-stagefeedback-gcc: maybe-all-build-libcpp
9e6ce191
PB
49759all-gcc: maybe-all-zlib
49760
49761all-stage1-gcc: maybe-all-stage1-zlib
49762all-stage2-gcc: maybe-all-stage2-zlib
49763all-stage3-gcc: maybe-all-stage3-zlib
49764all-stage4-gcc: maybe-all-stage4-zlib
49765all-stageprofile-gcc: maybe-all-stageprofile-zlib
49766all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b
L
49767all-gcc: all-libbacktrace
49768
49769all-stage1-gcc: all-stage1-libbacktrace
49770all-stage2-gcc: all-stage2-libbacktrace
49771all-stage3-gcc: all-stage3-libbacktrace
49772all-stage4-gcc: all-stage4-libbacktrace
49773all-stageprofile-gcc: all-stageprofile-libbacktrace
49774all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191
PB
49775all-gcc: all-libcpp
49776
49777all-stage1-gcc: all-stage1-libcpp
49778all-stage2-gcc: all-stage2-libcpp
49779all-stage3-gcc: all-stage3-libcpp
49780all-stage4-gcc: all-stage4-libcpp
49781all-stageprofile-gcc: all-stageprofile-libcpp
49782all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343
PB
49783all-gcc: all-libdecnumber
49784
49785all-stage1-gcc: all-stage1-libdecnumber
49786all-stage2-gcc: all-stage2-libdecnumber
49787all-stage3-gcc: all-stage3-libdecnumber
49788all-stage4-gcc: all-stage4-libdecnumber
49789all-stageprofile-gcc: all-stageprofile-libdecnumber
49790all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c
GK
49791all-gcc: maybe-all-libiberty
49792
49793all-stage1-gcc: maybe-all-stage1-libiberty
49794all-stage2-gcc: maybe-all-stage2-libiberty
49795all-stage3-gcc: maybe-all-stage3-libiberty
49796all-stage4-gcc: maybe-all-stage4-libiberty
49797all-stageprofile-gcc: maybe-all-stageprofile-libiberty
49798all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
49799all-gcc: maybe-all-fixincludes
201f096f 49800
49801all-stage1-gcc: maybe-all-stage1-fixincludes
49802all-stage2-gcc: maybe-all-stage2-fixincludes
49803all-stage3-gcc: maybe-all-stage3-fixincludes
49804all-stage4-gcc: maybe-all-stage4-fixincludes
49805all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
49806all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
8d8eef9a
RW
49807all-gcc: maybe-all-lto-plugin
49808
49809all-stage1-gcc: maybe-all-stage1-lto-plugin
49810all-stage2-gcc: maybe-all-stage2-lto-plugin
49811all-stage3-gcc: maybe-all-stage3-lto-plugin
49812all-stage4-gcc: maybe-all-stage4-lto-plugin
49813all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
49814all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
57eefe4d
RW
49815info-gcc: maybe-all-build-libiberty
49816
49817info-stage1-gcc: maybe-all-build-libiberty
49818info-stage2-gcc: maybe-all-build-libiberty
49819info-stage3-gcc: maybe-all-build-libiberty
49820info-stage4-gcc: maybe-all-build-libiberty
49821info-stageprofile-gcc: maybe-all-build-libiberty
49822info-stagefeedback-gcc: maybe-all-build-libiberty
49823dvi-gcc: maybe-all-build-libiberty
49824
49825dvi-stage1-gcc: maybe-all-build-libiberty
49826dvi-stage2-gcc: maybe-all-build-libiberty
49827dvi-stage3-gcc: maybe-all-build-libiberty
49828dvi-stage4-gcc: maybe-all-build-libiberty
49829dvi-stageprofile-gcc: maybe-all-build-libiberty
49830dvi-stagefeedback-gcc: maybe-all-build-libiberty
49831pdf-gcc: maybe-all-build-libiberty
49832
49833pdf-stage1-gcc: maybe-all-build-libiberty
49834pdf-stage2-gcc: maybe-all-build-libiberty
49835pdf-stage3-gcc: maybe-all-build-libiberty
49836pdf-stage4-gcc: maybe-all-build-libiberty
49837pdf-stageprofile-gcc: maybe-all-build-libiberty
49838pdf-stagefeedback-gcc: maybe-all-build-libiberty
49839html-gcc: maybe-all-build-libiberty
49840
49841html-stage1-gcc: maybe-all-build-libiberty
49842html-stage2-gcc: maybe-all-build-libiberty
49843html-stage3-gcc: maybe-all-build-libiberty
49844html-stage4-gcc: maybe-all-build-libiberty
49845html-stageprofile-gcc: maybe-all-build-libiberty
49846html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 49847install-gcc: maybe-install-fixincludes
8d8eef9a 49848install-gcc: maybe-install-lto-plugin
9b980aa1 49849install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 49850install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191
PB
49851configure-libcpp: configure-libiberty
49852
49853configure-stage1-libcpp: configure-stage1-libiberty
49854configure-stage2-libcpp: configure-stage2-libiberty
49855configure-stage3-libcpp: configure-stage3-libiberty
49856configure-stage4-libcpp: configure-stage4-libiberty
49857configure-stageprofile-libcpp: configure-stageprofile-libiberty
49858configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
49859configure-libcpp: maybe-configure-intl
49860
49861configure-stage1-libcpp: maybe-configure-stage1-intl
49862configure-stage2-libcpp: maybe-configure-stage2-intl
49863configure-stage3-libcpp: maybe-configure-stage3-intl
49864configure-stage4-libcpp: maybe-configure-stage4-intl
49865configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
49866configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
49867all-libcpp: all-libiberty
49868
49869all-stage1-libcpp: all-stage1-libiberty
49870all-stage2-libcpp: all-stage2-libiberty
49871all-stage3-libcpp: all-stage3-libiberty
49872all-stage4-libcpp: all-stage4-libiberty
49873all-stageprofile-libcpp: all-stageprofile-libiberty
49874all-stagefeedback-libcpp: all-stagefeedback-libiberty
49875all-libcpp: maybe-all-intl
49876
49877all-stage1-libcpp: maybe-all-stage1-intl
49878all-stage2-libcpp: maybe-all-stage2-intl
49879all-stage3-libcpp: maybe-all-stage3-intl
49880all-stage4-libcpp: maybe-all-stage4-intl
49881all-stageprofile-libcpp: maybe-all-stageprofile-intl
49882all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
d3ed111c 49883all-fixincludes: maybe-all-libiberty
201f096f 49884
49885all-stage1-fixincludes: maybe-all-stage1-libiberty
49886all-stage2-fixincludes: maybe-all-stage2-libiberty
49887all-stage3-fixincludes: maybe-all-stage3-libiberty
49888all-stage4-fixincludes: maybe-all-stage4-libiberty
49889all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
49890all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
b00612cc 49891all-gnattools: maybe-all-target-libada
50f80006 49892all-gnattools: maybe-all-target-libstdc++-v3
8d8eef9a
RW
49893all-lto-plugin: maybe-all-libiberty
49894
49895all-stage1-lto-plugin: maybe-all-stage1-libiberty
49896all-stage2-lto-plugin: maybe-all-stage2-libiberty
49897all-stage3-lto-plugin: maybe-all-stage3-libiberty
49898all-stage4-lto-plugin: maybe-all-stage4-libiberty
49899all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
49900all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
1b6c0831
L
49901all-lto-plugin: maybe-all-libiberty-linker-plugin
49902
49903all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
49904all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
49905all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
49906all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
49907all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
49908all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
49909configure-libcc1: maybe-configure-gcc
49910all-libcc1: maybe-all-gcc
49911all-gotools: maybe-all-target-libgo
28d9b232 49912all-utils: maybe-all-libiberty
4b900473
PB
49913configure-mpfr: maybe-all-gmp
49914
49915configure-stage1-mpfr: maybe-all-stage1-gmp
49916configure-stage2-mpfr: maybe-all-stage2-gmp
49917configure-stage3-mpfr: maybe-all-stage3-gmp
49918configure-stage4-mpfr: maybe-all-stage4-gmp
49919configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
49920configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c
RW
49921configure-mpc: maybe-all-mpfr
49922
49923configure-stage1-mpc: maybe-all-stage1-mpfr
49924configure-stage2-mpc: maybe-all-stage2-mpfr
49925configure-stage3-mpc: maybe-all-stage3-mpfr
49926configure-stage4-mpc: maybe-all-stage4-mpfr
49927configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
49928configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e
L
49929configure-isl: maybe-all-gmp
49930
49931configure-stage1-isl: maybe-all-stage1-gmp
49932configure-stage2-isl: maybe-all-stage2-gmp
49933configure-stage3-isl: maybe-all-stage3-gmp
49934configure-stage4-isl: maybe-all-stage4-gmp
49935configure-stageprofile-isl: maybe-all-stageprofile-gmp
49936configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
7b3200f9 49937configure-gdb: maybe-all-intl
9e6ce191 49938configure-gdb: maybe-configure-sim
31d99776 49939configure-gdb: maybe-all-bfd
dc448a7b 49940configure-gdb: maybe-all-libiconv
9e6ce191 49941all-gdb: maybe-all-libiberty
dc448a7b 49942all-gdb: maybe-all-libiconv
9e6ce191 49943all-gdb: maybe-all-opcodes
9e6ce191 49944all-gdb: maybe-all-readline
72b2455a 49945all-gdb: maybe-all-build-bison
9e6ce191 49946all-gdb: maybe-all-sim
5074315a 49947all-gdb: maybe-all-libdecnumber
dbbe5f95 49948all-gdb: maybe-all-libtermcap
9e6ce191
PB
49949configure-libgui: maybe-configure-tcl
49950configure-libgui: maybe-configure-tk
49951all-libgui: maybe-all-tcl
49952all-libgui: maybe-all-tk
49953all-libgui: maybe-all-itcl
b4a77b47 49954configure-bfd: configure-libiberty
9e6ce191
PB
49955
49956configure-stage1-bfd: configure-stage1-libiberty
49957configure-stage2-bfd: configure-stage2-libiberty
49958configure-stage3-bfd: configure-stage3-libiberty
49959configure-stage4-bfd: configure-stage4-libiberty
49960configure-stageprofile-bfd: configure-stageprofile-libiberty
49961configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23
DJ
49962configure-bfd: maybe-configure-intl
49963
49964configure-stage1-bfd: maybe-configure-stage1-intl
49965configure-stage2-bfd: maybe-configure-stage2-intl
49966configure-stage3-bfd: maybe-configure-stage3-intl
49967configure-stage4-bfd: maybe-configure-stage4-intl
49968configure-stageprofile-bfd: maybe-configure-stageprofile-intl
49969configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191
PB
49970all-bfd: maybe-all-libiberty
49971
49972all-stage1-bfd: maybe-all-stage1-libiberty
49973all-stage2-bfd: maybe-all-stage2-libiberty
49974all-stage3-bfd: maybe-all-stage3-libiberty
49975all-stage4-bfd: maybe-all-stage4-libiberty
49976all-stageprofile-bfd: maybe-all-stageprofile-libiberty
49977all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
49978all-bfd: maybe-all-intl
49979
49980all-stage1-bfd: maybe-all-stage1-intl
49981all-stage2-bfd: maybe-all-stage2-intl
49982all-stage3-bfd: maybe-all-stage3-intl
49983all-stage4-bfd: maybe-all-stage4-intl
49984all-stageprofile-bfd: maybe-all-stageprofile-intl
49985all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d2d67aea
L
49986all-bfd: maybe-all-zlib
49987
49988all-stage1-bfd: maybe-all-stage1-zlib
49989all-stage2-bfd: maybe-all-stage2-zlib
49990all-stage3-bfd: maybe-all-stage3-zlib
49991all-stage4-bfd: maybe-all-stage4-zlib
49992all-stageprofile-bfd: maybe-all-stageprofile-zlib
49993all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
66775d67
AM
49994configure-opcodes: configure-libiberty
49995
49996configure-stage1-opcodes: configure-stage1-libiberty
49997configure-stage2-opcodes: configure-stage2-libiberty
66775d67 49998configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
49999configure-stage4-opcodes: configure-stage4-libiberty
50000configure-stageprofile-opcodes: configure-stageprofile-libiberty
50001configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
50002all-opcodes: maybe-all-libiberty
50003
50004all-stage1-opcodes: maybe-all-stage1-libiberty
50005all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 50006all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
50007all-stage4-opcodes: maybe-all-stage4-libiberty
50008all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50009all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23
DJ
50010configure-binutils: maybe-configure-intl
50011
50012configure-stage1-binutils: maybe-configure-stage1-intl
50013configure-stage2-binutils: maybe-configure-stage2-intl
50014configure-stage3-binutils: maybe-configure-stage3-intl
50015configure-stage4-binutils: maybe-configure-stage4-intl
50016configure-stageprofile-binutils: maybe-configure-stageprofile-intl
50017configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191
PB
50018all-binutils: maybe-all-libiberty
50019
50020all-stage1-binutils: maybe-all-stage1-libiberty
50021all-stage2-binutils: maybe-all-stage2-libiberty
50022all-stage3-binutils: maybe-all-stage3-libiberty
50023all-stage4-binutils: maybe-all-stage4-libiberty
50024all-stageprofile-binutils: maybe-all-stageprofile-libiberty
50025all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
50026all-binutils: maybe-all-opcodes
50027
50028all-stage1-binutils: maybe-all-stage1-opcodes
50029all-stage2-binutils: maybe-all-stage2-opcodes
50030all-stage3-binutils: maybe-all-stage3-opcodes
50031all-stage4-binutils: maybe-all-stage4-opcodes
50032all-stageprofile-binutils: maybe-all-stageprofile-opcodes
50033all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
50034all-binutils: maybe-all-bfd
50035
50036all-stage1-binutils: maybe-all-stage1-bfd
50037all-stage2-binutils: maybe-all-stage2-bfd
50038all-stage3-binutils: maybe-all-stage3-bfd
50039all-stage4-binutils: maybe-all-stage4-bfd
50040all-stageprofile-binutils: maybe-all-stageprofile-bfd
50041all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a
PB
50042all-binutils: maybe-all-build-flex
50043
50044all-stage1-binutils: maybe-all-build-flex
50045all-stage2-binutils: maybe-all-build-flex
50046all-stage3-binutils: maybe-all-build-flex
50047all-stage4-binutils: maybe-all-build-flex
50048all-stageprofile-binutils: maybe-all-build-flex
50049all-stagefeedback-binutils: maybe-all-build-flex
72b2455a
PB
50050all-binutils: maybe-all-build-bison
50051
50052all-stage1-binutils: maybe-all-build-bison
50053all-stage2-binutils: maybe-all-build-bison
50054all-stage3-binutils: maybe-all-build-bison
50055all-stage4-binutils: maybe-all-build-bison
50056all-stageprofile-binutils: maybe-all-build-bison
50057all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191
PB
50058all-binutils: maybe-all-intl
50059
50060all-stage1-binutils: maybe-all-stage1-intl
50061all-stage2-binutils: maybe-all-stage2-intl
50062all-stage3-binutils: maybe-all-stage3-intl
50063all-stage4-binutils: maybe-all-stage4-intl
50064all-stageprofile-binutils: maybe-all-stageprofile-intl
50065all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685
L
50066all-binutils: maybe-all-gas
50067
50068all-stage1-binutils: maybe-all-stage1-gas
50069all-stage2-binutils: maybe-all-stage2-gas
50070all-stage3-binutils: maybe-all-stage3-gas
50071all-stage4-binutils: maybe-all-stage4-gas
50072all-stageprofile-binutils: maybe-all-stageprofile-gas
50073all-stagefeedback-binutils: maybe-all-stagefeedback-gas
ae831be5 50074install-binutils: maybe-install-opcodes
9b980aa1 50075install-strip-binutils: maybe-install-strip-opcodes
cf662e21 50076install-opcodes: maybe-install-bfd
9b980aa1 50077install-strip-opcodes: maybe-install-strip-bfd
20e95c23
DJ
50078configure-gas: maybe-configure-intl
50079
50080configure-stage1-gas: maybe-configure-stage1-intl
50081configure-stage2-gas: maybe-configure-stage2-intl
50082configure-stage3-gas: maybe-configure-stage3-intl
50083configure-stage4-gas: maybe-configure-stage4-intl
50084configure-stageprofile-gas: maybe-configure-stageprofile-intl
50085configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191
PB
50086all-gas: maybe-all-libiberty
50087
50088all-stage1-gas: maybe-all-stage1-libiberty
50089all-stage2-gas: maybe-all-stage2-libiberty
50090all-stage3-gas: maybe-all-stage3-libiberty
50091all-stage4-gas: maybe-all-stage4-libiberty
50092all-stageprofile-gas: maybe-all-stageprofile-libiberty
50093all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
50094all-gas: maybe-all-opcodes
50095
50096all-stage1-gas: maybe-all-stage1-opcodes
50097all-stage2-gas: maybe-all-stage2-opcodes
50098all-stage3-gas: maybe-all-stage3-opcodes
50099all-stage4-gas: maybe-all-stage4-opcodes
50100all-stageprofile-gas: maybe-all-stageprofile-opcodes
50101all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
50102all-gas: maybe-all-bfd
50103
50104all-stage1-gas: maybe-all-stage1-bfd
50105all-stage2-gas: maybe-all-stage2-bfd
50106all-stage3-gas: maybe-all-stage3-bfd
50107all-stage4-gas: maybe-all-stage4-bfd
50108all-stageprofile-gas: maybe-all-stageprofile-bfd
50109all-stagefeedback-gas: maybe-all-stagefeedback-bfd
50110all-gas: maybe-all-intl
50111
50112all-stage1-gas: maybe-all-stage1-intl
50113all-stage2-gas: maybe-all-stage2-intl
50114all-stage3-gas: maybe-all-stage3-intl
50115all-stage4-gas: maybe-all-stage4-intl
50116all-stageprofile-gas: maybe-all-stageprofile-intl
50117all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 50118configure-gprof: maybe-configure-intl
9e6ce191
PB
50119all-gprof: maybe-all-libiberty
50120all-gprof: maybe-all-bfd
50121all-gprof: maybe-all-opcodes
50122all-gprof: maybe-all-intl
0140d685 50123all-gprof: maybe-all-gas
20e95c23
DJ
50124configure-ld: maybe-configure-intl
50125
50126configure-stage1-ld: maybe-configure-stage1-intl
50127configure-stage2-ld: maybe-configure-stage2-intl
50128configure-stage3-ld: maybe-configure-stage3-intl
50129configure-stage4-ld: maybe-configure-stage4-intl
50130configure-stageprofile-ld: maybe-configure-stageprofile-intl
50131configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191
PB
50132all-ld: maybe-all-libiberty
50133
50134all-stage1-ld: maybe-all-stage1-libiberty
50135all-stage2-ld: maybe-all-stage2-libiberty
50136all-stage3-ld: maybe-all-stage3-libiberty
50137all-stage4-ld: maybe-all-stage4-libiberty
50138all-stageprofile-ld: maybe-all-stageprofile-libiberty
50139all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
50140all-ld: maybe-all-bfd
50141
50142all-stage1-ld: maybe-all-stage1-bfd
50143all-stage2-ld: maybe-all-stage2-bfd
50144all-stage3-ld: maybe-all-stage3-bfd
50145all-stage4-ld: maybe-all-stage4-bfd
50146all-stageprofile-ld: maybe-all-stageprofile-bfd
50147all-stagefeedback-ld: maybe-all-stagefeedback-bfd
50148all-ld: maybe-all-opcodes
50149
50150all-stage1-ld: maybe-all-stage1-opcodes
50151all-stage2-ld: maybe-all-stage2-opcodes
50152all-stage3-ld: maybe-all-stage3-opcodes
50153all-stage4-ld: maybe-all-stage4-opcodes
50154all-stageprofile-ld: maybe-all-stageprofile-opcodes
50155all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a
PB
50156all-ld: maybe-all-build-bison
50157
50158all-stage1-ld: maybe-all-build-bison
50159all-stage2-ld: maybe-all-build-bison
50160all-stage3-ld: maybe-all-build-bison
50161all-stage4-ld: maybe-all-build-bison
50162all-stageprofile-ld: maybe-all-build-bison
50163all-stagefeedback-ld: maybe-all-build-bison
72b2455a
PB
50164all-ld: maybe-all-build-flex
50165
50166all-stage1-ld: maybe-all-build-flex
50167all-stage2-ld: maybe-all-build-flex
50168all-stage3-ld: maybe-all-build-flex
50169all-stage4-ld: maybe-all-build-flex
50170all-stageprofile-ld: maybe-all-build-flex
50171all-stagefeedback-ld: maybe-all-build-flex
9e6ce191
PB
50172all-ld: maybe-all-intl
50173
50174all-stage1-ld: maybe-all-stage1-intl
50175all-stage2-ld: maybe-all-stage2-intl
50176all-stage3-ld: maybe-all-stage3-intl
50177all-stage4-ld: maybe-all-stage4-intl
50178all-stageprofile-ld: maybe-all-stageprofile-intl
50179all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685
L
50180all-ld: maybe-all-gas
50181
50182all-stage1-ld: maybe-all-stage1-gas
50183all-stage2-ld: maybe-all-stage2-gas
50184all-stage3-ld: maybe-all-stage3-gas
50185all-stage4-ld: maybe-all-stage4-gas
50186all-stageprofile-ld: maybe-all-stageprofile-gas
50187all-stagefeedback-ld: maybe-all-stagefeedback-gas
a6305403
YS
50188all-ld: maybe-all-binutils
50189
50190all-stage1-ld: maybe-all-stage1-binutils
50191all-stage2-ld: maybe-all-stage2-binutils
50192all-stage3-ld: maybe-all-stage3-binutils
50193all-stage4-ld: maybe-all-stage4-binutils
50194all-stageprofile-ld: maybe-all-stageprofile-binutils
50195all-stagefeedback-ld: maybe-all-stagefeedback-binutils
e6de499b 50196install-ld: maybe-install-gold
9b980aa1 50197install-strip-ld: maybe-install-strip-gold
93f9b408
ILT
50198configure-gold: maybe-configure-intl
50199
50200configure-stage1-gold: maybe-configure-stage1-intl
50201configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 50202configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
50203configure-stage4-gold: maybe-configure-stage4-intl
50204configure-stageprofile-gold: maybe-configure-stageprofile-intl
50205configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
50206all-gold: maybe-all-libiberty
50207
50208all-stage1-gold: maybe-all-stage1-libiberty
50209all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 50210all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
50211all-stage4-gold: maybe-all-stage4-libiberty
50212all-stageprofile-gold: maybe-all-stageprofile-libiberty
50213all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
50214all-gold: maybe-all-intl
50215
50216all-stage1-gold: maybe-all-stage1-intl
50217all-stage2-gold: maybe-all-stage2-intl
93f9b408 50218all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
50219all-stage4-gold: maybe-all-stage4-intl
50220all-stageprofile-gold: maybe-all-stageprofile-intl
50221all-stagefeedback-gold: maybe-all-stagefeedback-intl
50222all-gold: maybe-all-bfd
50223
50224all-stage1-gold: maybe-all-stage1-bfd
50225all-stage2-gold: maybe-all-stage2-bfd
93f9b408 50226all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
50227all-stage4-gold: maybe-all-stage4-bfd
50228all-stageprofile-gold: maybe-all-stageprofile-bfd
50229all-stagefeedback-gold: maybe-all-stagefeedback-bfd
50230all-gold: maybe-all-build-bison
50231
50232all-stage1-gold: maybe-all-build-bison
50233all-stage2-gold: maybe-all-build-bison
93f9b408 50234all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
50235all-stage4-gold: maybe-all-build-bison
50236all-stageprofile-gold: maybe-all-build-bison
50237all-stagefeedback-gold: maybe-all-build-bison
0140d685
L
50238all-gold: maybe-all-gas
50239
50240all-stage1-gold: maybe-all-stage1-gas
50241all-stage2-gold: maybe-all-stage2-gas
50242all-stage3-gold: maybe-all-stage3-gas
50243all-stage4-gold: maybe-all-stage4-gas
50244all-stageprofile-gold: maybe-all-stageprofile-gas
50245all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97
ILT
50246check-gold: maybe-all-binutils
50247
50248check-stage1-gold: maybe-all-stage1-binutils
50249check-stage2-gold: maybe-all-stage2-binutils
e5164e97 50250check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
50251check-stage4-gold: maybe-all-stage4-binutils
50252check-stageprofile-gold: maybe-all-stageprofile-binutils
50253check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca
ILT
50254check-gold: maybe-all-gas
50255
50256check-stage1-gold: maybe-all-stage1-gas
50257check-stage2-gold: maybe-all-stage2-gas
50258check-stage3-gold: maybe-all-stage3-gas
50259check-stage4-gold: maybe-all-stage4-gas
50260check-stageprofile-gold: maybe-all-stageprofile-gas
50261check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee
JJ
50262configure-opcodes: maybe-configure-intl
50263
50264configure-stage1-opcodes: maybe-configure-stage1-intl
50265configure-stage2-opcodes: maybe-configure-stage2-intl
50266configure-stage3-opcodes: maybe-configure-stage3-intl
50267configure-stage4-opcodes: maybe-configure-stage4-intl
50268configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
50269configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191
PB
50270all-opcodes: maybe-all-bfd
50271
50272all-stage1-opcodes: maybe-all-stage1-bfd
50273all-stage2-opcodes: maybe-all-stage2-bfd
50274all-stage3-opcodes: maybe-all-stage3-bfd
50275all-stage4-opcodes: maybe-all-stage4-bfd
50276all-stageprofile-opcodes: maybe-all-stageprofile-bfd
50277all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
50278all-opcodes: maybe-all-libiberty
50279
50280all-stage1-opcodes: maybe-all-stage1-libiberty
50281all-stage2-opcodes: maybe-all-stage2-libiberty
50282all-stage3-opcodes: maybe-all-stage3-libiberty
50283all-stage4-opcodes: maybe-all-stage4-libiberty
50284all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50285all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee
JJ
50286all-opcodes: maybe-all-intl
50287
50288all-stage1-opcodes: maybe-all-stage1-intl
50289all-stage2-opcodes: maybe-all-stage2-intl
50290all-stage3-opcodes: maybe-all-stage3-intl
50291all-stage4-opcodes: maybe-all-stage4-intl
50292all-stageprofile-opcodes: maybe-all-stageprofile-intl
50293all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
50294all-dejagnu: maybe-all-tcl
50295all-dejagnu: maybe-all-expect
50296all-dejagnu: maybe-all-tk
50297configure-expect: maybe-configure-tcl
50298configure-expect: maybe-configure-tk
50299all-expect: maybe-all-tcl
50300all-expect: maybe-all-tk
50301configure-itcl: maybe-configure-tcl
50302configure-itcl: maybe-configure-tk
50303all-itcl: maybe-all-tcl
50304all-itcl: maybe-all-tk
ae831be5 50305install-itcl: maybe-install-tcl
9b980aa1 50306install-strip-itcl: maybe-install-strip-tcl
b4a77b47 50307configure-tk: maybe-configure-tcl
ae831be5 50308all-tk: maybe-all-tcl
9e6ce191
PB
50309all-sid: maybe-all-libiberty
50310all-sid: maybe-all-bfd
50311all-sid: maybe-all-opcodes
50312all-sid: maybe-all-tcl
50313all-sid: maybe-all-tk
50314install-sid: maybe-install-tcl
9b980aa1 50315install-strip-sid: maybe-install-strip-tcl
9e6ce191 50316install-sid: maybe-install-tk
9b980aa1 50317install-strip-sid: maybe-install-strip-tk
20e95c23
DJ
50318configure-sim: maybe-configure-intl
50319all-sim: maybe-all-intl
9e6ce191
PB
50320all-sim: maybe-all-libiberty
50321all-sim: maybe-all-bfd
50322all-sim: maybe-all-opcodes
50323all-sim: maybe-all-readline
50324all-sim: maybe-configure-gdb
50325all-fastjar: maybe-all-zlib
72b2455a 50326all-fastjar: maybe-all-build-texinfo
9e6ce191 50327all-fastjar: maybe-all-libiberty
9e6ce191 50328all-bison: maybe-all-intl
72b2455a 50329all-bison: maybe-all-build-texinfo
72b2455a 50330all-flex: maybe-all-build-bison
9e6ce191
PB
50331all-flex: maybe-all-intl
50332all-flex: maybe-all-m4
72b2455a 50333all-flex: maybe-all-build-texinfo
9e6ce191 50334all-m4: maybe-all-intl
72b2455a 50335all-m4: maybe-all-build-texinfo
f7c83eac 50336configure-target-boehm-gc: maybe-all-target-libstdc++-v3
b4a77b47 50337configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 50338all-target-fastjar: maybe-all-target-zlib
e552509b
ILT
50339configure-target-libgo: maybe-configure-target-libffi
50340configure-target-libgo: maybe-all-target-libstdc++-v3
8e71395b 50341all-target-libgo: maybe-all-target-libbacktrace
e552509b 50342all-target-libgo: maybe-all-target-libffi
9417cd2f 50343all-target-libgo: maybe-all-target-libatomic
9e6ce191
PB
50344configure-target-libjava: maybe-configure-target-zlib
50345configure-target-libjava: maybe-configure-target-boehm-gc
9e6ce191
PB
50346configure-target-libjava: maybe-configure-target-libffi
50347all-target-libjava: maybe-all-fastjar
50348all-target-libjava: maybe-all-target-zlib
50349all-target-libjava: maybe-all-target-boehm-gc
9e6ce191 50350all-target-libjava: maybe-all-target-libffi
4f0ef2d8 50351configure-target-libobjc: maybe-configure-target-boehm-gc
4f0ef2d8 50352all-target-libobjc: maybe-all-target-boehm-gc
cff87f51 50353configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
50354
50355configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50356configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50357configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50358configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50359configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50360configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
1b6c0831 50361configure-target-liboffloadmic: maybe-configure-target-libgomp
5286fdef 50362configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
50363
50364configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
50365configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
50366configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
50367configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
50368configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
50369configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135
JBG
50370configure-target-libvtv: maybe-all-target-libstdc++-v3
50371
50372configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
50373configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
50374configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
50375configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
50376configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
50377configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
911e63d0
JR
50378all-target-libstdc++-v3: maybe-configure-target-libgomp
50379
50380all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50381all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50382all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50383all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50384all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50385all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
1b6c0831 50386all-target-liboffloadmic: maybe-all-target-libgomp
9417cd2f
JBG
50387install-target-libgo: maybe-install-target-libatomic
50388install-target-libgfortran: maybe-install-target-libquadmath
50389install-target-libgfortran: maybe-install-target-libgcc
3dae1673 50390install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 50391install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
50392install-target-libvtv: maybe-install-target-libstdc++-v3
50393install-target-libvtv: maybe-install-target-libgcc
522e3d71 50394install-target-libcilkrts: maybe-install-target-libstdc++-v3
50395install-target-libcilkrts: maybe-install-target-libgcc
1b6c0831
L
50396install-target-liboffloadmic: maybe-install-target-libstdc++-v3
50397install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
50398install-target-libjava: maybe-install-target-libgcc
50399install-target-libitm: maybe-install-target-libgcc
50400install-target-libobjc: maybe-install-target-libgcc
50401install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 50402all-target-libgloss: maybe-all-target-newlib
9e6ce191 50403all-target-winsup: maybe-all-target-libtermcap
c1102ce7
RW
50404configure-target-newlib: maybe-all-binutils
50405configure-target-newlib: maybe-all-ld
e552509b 50406configure-target-libgfortran: maybe-all-target-libquadmath
9e6ce191
PB
50407
50408
6aa8ef82
DJ
50409# Dependencies for target modules on other target modules are
50410# described by lang_env_dependencies; the defaults apply to anything
50411# not mentioned there.
50412
50413
50414@if gcc-bootstrap
e8a5fa9c
RW
50415configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
50416configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
50417configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
50418configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
50419configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
50420configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
50421configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
50422configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
50423configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
50424configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
50425configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
50426configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
1b6c0831
L
50427configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
50428configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
50429configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
50430configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
50431configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
50432configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
50433configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
50434configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
50435configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
50436configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
50437configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
50438configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
50439configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
50440configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
50441configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
50442configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
50443configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
50444configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
50445@endif gcc-bootstrap
50446
50447@if gcc-no-bootstrap
50448configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 50449configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 50450configure-target-libmpx: maybe-all-target-libgcc
95e43135 50451configure-target-libvtv: maybe-all-target-libgcc
522e3d71 50452configure-target-libcilkrts: maybe-all-target-libgcc
1b6c0831 50453configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 50454configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 50455configure-target-newlib: maybe-all-target-libgcc
2bf680c4 50456configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 50457configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
50458configure-target-libgfortran: maybe-all-target-libgcc
50459configure-target-libobjc: maybe-all-target-libgcc
e552509b 50460configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
50461configure-target-libtermcap: maybe-all-target-libgcc
50462configure-target-winsup: maybe-all-target-libgcc
50463configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82
DJ
50464configure-target-libffi: maybe-all-target-libgcc
50465configure-target-libjava: maybe-all-target-libgcc
50466configure-target-zlib: maybe-all-target-libgcc
50467configure-target-boehm-gc: maybe-all-target-libgcc
6aa8ef82
DJ
50468configure-target-rda: maybe-all-target-libgcc
50469configure-target-libada: maybe-all-target-libgcc
50470configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
50471configure-target-libitm: maybe-all-target-libgcc
50472configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
50473@endif gcc-no-bootstrap
50474
50475
50476configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
50477
5286fdef
L
50478configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
50479
1b6c0831
L
50480configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
50481
95e43135
JBG
50482configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
50483
e78e02e6 50484configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
50485configure-target-libcilkrts: maybe-all-target-libstdc++-v3
50486
1b6c0831
L
50487configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
50488configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
50489
6aa8ef82
DJ
50490configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
50491
50492
50493
2bf680c4
ILT
50494configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
50495
e552509b
ILT
50496configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
50497
6aa8ef82
DJ
50498configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
50499
50500configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
50501
e552509b
ILT
50502configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
50503
6aa8ef82
DJ
50504configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
50505
50506configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
50507
50508
6aa8ef82
DJ
50509configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
50510
50511configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
50512configure-target-libjava: maybe-all-target-libstdc++-v3
50513
50514configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
50515
50516configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
50517
6aa8ef82
DJ
50518configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
50519
50520configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
50521
50522configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
50523
7ec59b9e
L
50524configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
50525configure-target-libitm: maybe-all-target-libstdc++-v3
50526
50527configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
50528
6aa8ef82 50529
907be67c 50530CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 50531GDB_TK = @GDB_TK@
907be67c
DJ
50532INSTALL_GDB_TK = @INSTALL_GDB_TK@
50533configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 50534all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 50535install-gdb: $(INSTALL_GDB_TK)
907a7241 50536
a2cc058a
NN
50537# Serialization dependencies. Host configures don't work well in parallel to
50538# each other, due to contention over config.cache. Target configures and
50539# build configures are similar.
50540@serialization_dependencies@
50541
15723a45
NN
50542# --------------------------------
50543# Regenerating top level configury
50544# --------------------------------
252b5132 50545
14a2a2f1 50546# Rebuilding Makefile.in, using autogen.
43be203f 50547AUTOGEN = autogen
6b784d9f 50548$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 50549 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 50550
a0da8069 50551# Rebuilding Makefile.
43be203f
AO
50552Makefile: $(srcdir)/Makefile.in config.status
50553 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
50554
479759c8 50555config.status: configure
10ecffb9 50556 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 50557
a0da8069 50558# Rebuilding configure.
43be203f 50559AUTOCONF = autoconf
da888c87
PB
50560$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
50561 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4
43be203f 50562 cd $(srcdir) && $(AUTOCONF)
252b5132 50563
3728fade
NN
50564# ------------------------------
50565# Special directives to GNU Make
50566# ------------------------------
50567
3728fade
NN
50568# Don't pass command-line variables to submakes.
50569.NOEXPORT:
50570MAKEOVERRIDES=
50571
252b5132 50572# end of Makefile.in
This page took 4.611454 seconds and 4 git commands to generate.