Fix invalid conversion from void * to gdb_byte *
[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; \
22121df0
L
225 LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \
226 LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \
4849dfd8 227 XGCC_FLAGS_FOR_TARGET="$(XGCC_FLAGS_FOR_TARGET)"; export XGCC_FLAGS_FOR_TARGET; \
f70224b5
PB
228@if gcc-bootstrap
229 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
230@endif gcc-bootstrap
e90269c8 231 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
378fce5b 232
1f53ca9a
AO
233POSTSTAGE1_CXX_EXPORT = \
234 CXX='$(CXX)'; export CXX; \
235 CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD;
236@if target-libstdc++-v3-bootstrap
237# Override the above if we're bootstrapping C++.
238POSTSTAGE1_CXX_EXPORT = \
d2489204 239 CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \
1f53ca9a 240 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
1d14850f 241 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
ffdd6afc 242 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
abca8d87 243 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
244 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
245 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$s/libstdc++-v3/libsupc++ \
ffdd6afc
ILT
246 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
247 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs"; \
248 export CXX; \
1f53ca9a
AO
249 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD;
250@endif target-libstdc++-v3-bootstrap
251
378fce5b 252# Similar, for later GCC stages.
d545f33b 253POSTSTAGE1_HOST_EXPORTS = \
7ffa0b57 254 $(HOST_EXPORTS) \
b00612cc 255 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
1b05fbbd
AO
256 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
257 $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
258 CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
1f53ca9a 259 $(POSTSTAGE1_CXX_EXPORT) \
1b6c0831 260 $(LTO_EXPORTS) \
e8a5fa9c
RW
261 GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
262 LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
263 HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
50212802 264
50212802
NN
265# Target libraries are put under this directory:
266TARGET_SUBDIR = @target_subdir@
267# This is set by the configure script to the arguments to use when configuring
268# directories built for the target.
a7254363 269TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
378fce5b 270# This is the list of variables to export in the environment when
f2b2dd91 271# configuring subdirectories for the target system.
378fce5b 272BASE_TARGET_EXPORTS = \
6a9cf61e 273 $(BASE_EXPORTS) \
378fce5b 274 AR="$(AR_FOR_TARGET)"; export AR; \
be01d343 275 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
1b05fbbd
AO
276 CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
277 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
378fce5b 278 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
06bcb89d 279 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
1b05fbbd
AO
280 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
281 GCJ="$(GCJ_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GCJ; \
282 GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \
e552509b 283 GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
378fce5b 284 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
be01d343 285 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
378fce5b 286 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7e0f7140 287 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
be01d343 288 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
5ae72758 289 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
6b91c541 290 OBJCOPY="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY; \
378fce5b 291 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
b121d7d4 292 READELF="$(READELF_FOR_TARGET)"; export READELF; \
7e0f7140 293 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
315b3b02 294 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
0c24b341 295 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
f2b2dd91
RW
296@if gcc-bootstrap
297 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
298@endif gcc-bootstrap
911e63d0
JR
299 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
300 TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
378fce5b
DD
301
302RAW_CXX_TARGET_EXPORTS = \
303 $(BASE_TARGET_EXPORTS) \
304 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
1b05fbbd 305 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
378fce5b
DD
306
307NORMAL_TARGET_EXPORTS = \
308 $(BASE_TARGET_EXPORTS) \
1b05fbbd 309 CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
50212802 310
4b1cb4fe
DD
311# Where to find GMP
312HOST_GMPLIBS = @gmplibs@
313HOST_GMPINC = @gmpinc@
314
4849dfd8 315# Where to find isl
1b6c0831 316HOST_ISLLIBS = @isllibs@
7ec59b9e 317HOST_ISLINC = @islinc@
e28c595f 318
700d40ca
ILT
319# Where to find libelf
320HOST_LIBELFLIBS = @libelflibs@
321HOST_LIBELFINC = @libelfinc@
322
ffdd6afc
ILT
323EXTRA_CONFIGARGS_LIBJAVA = @EXTRA_CONFIGARGS_LIBJAVA@
324
50212802
NN
325# ----------------------------------------------
326# Programs producing files for the BUILD machine
327# ----------------------------------------------
328
f6c1938b 329SHELL = @SHELL@
50212802
NN
330
331# pwd command to use. Allow user to override default by setting PWDCMD in
332# the environment to account for automounters. The make variable must not
333# be called PWDCMD, otherwise the value set here is passed to make
334# subprocesses and overrides the setting from the user's environment.
b40e3958
L
335# Don't use PWD since it is a common shell environment variable and we
336# don't want to corrupt it.
337PWD_COMMAND = $${PWDCMD-pwd}
50212802
NN
338
339# compilers to use to create programs which must be run in the build
340# environment.
b5714970
PB
341AR_FOR_BUILD = @AR_FOR_BUILD@
342AS_FOR_BUILD = @AS_FOR_BUILD@
50212802 343CC_FOR_BUILD = @CC_FOR_BUILD@
5fbad20a 344CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
b5714970
PB
345CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
346CXX_FOR_BUILD = @CXX_FOR_BUILD@
347DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
348GCJ_FOR_BUILD = @GCJ_FOR_BUILD@
349GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
9b980aa1 350GOC_FOR_BUILD = @GOC_FOR_BUILD@
b5714970
PB
351LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
352LD_FOR_BUILD = @LD_FOR_BUILD@
353NM_FOR_BUILD = @NM_FOR_BUILD@
354RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
355WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
356WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
50212802
NN
357
358# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
359# here so that they can be overridden by Makefile fragments.
50212802
NN
360BUILD_PREFIX = @BUILD_PREFIX@
361BUILD_PREFIX_1 = @BUILD_PREFIX_1@
252b5132 362
0df3d27f
PB
363# Flags to pass to stage2 and later makes. They are defined
364# here so that they can be overridden by Makefile fragments.
365BOOT_CFLAGS= -g -O2
f6d183c0 366BOOT_LDFLAGS=
d7b9dae9 367BOOT_ADAFLAGS= -gnatpg
0df3d27f 368
8e957354
PB
369AWK = @AWK@
370SED = @SED@
be01d343
PB
371BISON = @BISON@
372YACC = @YACC@
373FLEX = @FLEX@
374LEX = @LEX@
375M4 = @M4@
376MAKEINFO = @MAKEINFO@
377EXPECT = @EXPECT@
378RUNTEST = @RUNTEST@
252b5132
RH
379
380# This just becomes part of the MAKEINFO definition passed down to
381# sub-makes. It lets flags be given on the command line while still
382# using the makeinfo from the object tree.
62a3fc85
DD
383# (Default to avoid splitting info files by setting the threshold high.)
384MAKEINFOFLAGS = --split-size=5000000
252b5132 385
50212802
NN
386# ---------------------------------------------
387# Programs producing files for the HOST machine
388# ---------------------------------------------
252b5132 389
50212802 390AS = @AS@
50212802
NN
391AR = @AR@
392AR_FLAGS = rc
50212802 393CC = @CC@
50212802 394CXX = @CXX@
50212802 395DLLTOOL = @DLLTOOL@
50212802 396LD = @LD@
be01d343
PB
397LIPO = @LIPO@
398NM = @NM@
80911fe1 399OBJDUMP = @OBJDUMP@
50212802 400RANLIB = @RANLIB@
b121d7d4 401READELF = @READELF@
be01d343 402STRIP = @STRIP@
50212802 403WINDRES = @WINDRES@
0c24b341 404WINDMC = @WINDMC@
252b5132 405
a0323144
PB
406GNATBIND = @GNATBIND@
407GNATMAKE = @GNATMAKE@
408
be01d343 409CFLAGS = @CFLAGS@
b2edfdd2 410LDFLAGS = @LDFLAGS@
be01d343
PB
411LIBCFLAGS = $(CFLAGS)
412CXXFLAGS = @CXXFLAGS@
413LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
e552509b 414GOCFLAGS = $(CFLAGS)
50212802 415
1b05fbbd
AO
416TFLAGS =
417
418# Defaults for all stages; some are overridden below.
419
420STAGE_CFLAGS = $(BOOT_CFLAGS)
421STAGE_TFLAGS = $(TFLAGS)
422STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
423
424
425# Defaults for stage 1; some are overridden below.
426STAGE1_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
427STAGE1_CXXFLAGS = $(CXXFLAGS)
428@if target-libstdc++-v3-bootstrap
429# Override the above if we're bootstrapping C++.
430STAGE1_CXXFLAGS = $(STAGE1_CFLAGS)
431@endif target-libstdc++-v3-bootstrap
1b05fbbd 432STAGE1_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 433STAGE1_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
434
435# Defaults for stage 2; some are overridden below.
436STAGE2_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
437STAGE2_CXXFLAGS = $(CXXFLAGS)
438@if target-libstdc++-v3-bootstrap
439# Override the above if we're bootstrapping C++.
440STAGE2_CXXFLAGS = $(STAGE2_CFLAGS)
441@endif target-libstdc++-v3-bootstrap
1b05fbbd 442STAGE2_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 443STAGE2_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
444
445# Defaults for stage 3; some are overridden below.
446STAGE3_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
447STAGE3_CXXFLAGS = $(CXXFLAGS)
448@if target-libstdc++-v3-bootstrap
449# Override the above if we're bootstrapping C++.
450STAGE3_CXXFLAGS = $(STAGE3_CFLAGS)
451@endif target-libstdc++-v3-bootstrap
1b05fbbd 452STAGE3_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 453STAGE3_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
454
455# Defaults for stage 4; some are overridden below.
456STAGE4_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
457STAGE4_CXXFLAGS = $(CXXFLAGS)
458@if target-libstdc++-v3-bootstrap
459# Override the above if we're bootstrapping C++.
460STAGE4_CXXFLAGS = $(STAGE4_CFLAGS)
461@endif target-libstdc++-v3-bootstrap
1b05fbbd 462STAGE4_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 463STAGE4_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
464
465# Defaults for stage profile; some are overridden below.
466STAGEprofile_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
467STAGEprofile_CXXFLAGS = $(CXXFLAGS)
468@if target-libstdc++-v3-bootstrap
469# Override the above if we're bootstrapping C++.
470STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS)
471@endif target-libstdc++-v3-bootstrap
1b05fbbd 472STAGEprofile_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 473STAGEprofile_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
474
475# Defaults for stage feedback; some are overridden below.
476STAGEfeedback_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
477STAGEfeedback_CXXFLAGS = $(CXXFLAGS)
478@if target-libstdc++-v3-bootstrap
479# Override the above if we're bootstrapping C++.
480STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS)
481@endif target-libstdc++-v3-bootstrap
1b05fbbd 482STAGEfeedback_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 483STAGEfeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
484
485
22121df0
L
486# By default, C and C++ are the only stage1 languages, because they are the
487# only ones we require to build with the bootstrap compiler, and also the
488# only ones useful for building stage2.
8a0d8a5c 489
1b05fbbd 490STAGE1_CFLAGS = @stage1_cflags@
1f53ca9a
AO
491STAGE1_CHECKING = @stage1_checking@
492STAGE1_LANGUAGES = @stage1_languages@
1b05fbbd
AO
493# * We force-disable intermodule optimizations, even if
494# --enable-intermodule was passed, since the installed compiler
495# probably can't handle them. Luckily, autoconf always respects
496# the last argument when conflicting --enable arguments are passed.
497# * Likewise, we force-disable coverage flags, since the installed
498# compiler probably has never heard of them.
880b18d1 499# * We also disable -Wformat, since older GCCs don't understand newer %s.
1b05fbbd 500STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
880b18d1 501 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" \
502 --disable-build-format-warnings
8a0d8a5c 503
1b05fbbd
AO
504STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
505STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
8520c408 506
1b05fbbd
AO
507STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use
508STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS)
7f6ef0c0 509
8520c408
AO
510do-compare = @do_compare@
511do-compare3 = $(do-compare)
8520c408 512
50212802
NN
513# -----------------------------------------------
514# Programs producing files for the TARGET machine
515# -----------------------------------------------
0da52010 516
50212802 517AR_FOR_TARGET=@AR_FOR_TARGET@
852e5f18 518AS_FOR_TARGET=@AS_FOR_TARGET@
1b05fbbd 519CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
55db4b87 520
50212802
NN
521# If GCC_FOR_TARGET is not overriden on the command line, then this
522# variable is passed down to the gcc Makefile, where it is used to
523# build libgcc2.a. We define it here so that it can itself be
524# overridden on the command line.
1b05fbbd
AO
525GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
526CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
527RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
528GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@
529GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
e552509b 530GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
852e5f18 531DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
50212802 532LD_FOR_TARGET=@LD_FOR_TARGET@
50212802 533
7e0f7140 534LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
50212802 535NM_FOR_TARGET=@NM_FOR_TARGET@
5ae72758 536OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
6b91c541 537OBJCOPY_FOR_TARGET=@OBJCOPY_FOR_TARGET@
852e5f18 538RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
b121d7d4 539READELF_FOR_TARGET=@READELF_FOR_TARGET@
7e0f7140 540STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
50212802 541WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
0c24b341 542WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
252b5132 543
be01d343
PB
544COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
545COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
546COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
547
7f6ef0c0
PB
548CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
549CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
7f6ef0c0 550
be01d343
PB
551LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
552LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
91c1f14c 553LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
e552509b 554GOCFLAGS_FOR_TARGET = -O2 -g
50212802 555
1b05fbbd
AO
556FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
557SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
558DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
559
560XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
561
50212802
NN
562# ------------------------------------
563# Miscellaneous targets and flag lists
564# ------------------------------------
565
252b5132
RH
566# The first rule in the file had better be this one. Don't put any above it.
567# This lives here to allow makefile fragments to contain dependencies.
f70224b5 568all:
252b5132 569
252b5132 570#### host and target specific makefile fragments come in here.
a0da8069
NN
571@target_makefile_frag@
572@alphaieee_frag@
573@ospace_frag@
574@host_makefile_frag@
252b5132
RH
575###
576
e90269c8 577# This is the list of directories that may be needed in RPATH_ENVVAR
18a8530e 578# so that programs built for the target machine work.
1b6c0831 579TARGET_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
580
581@if target-libstdc++-v3
18a8530e 582TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
e90269c8
PB
583@endif target-libstdc++-v3
584
5286fdef
L
585@if target-libsanitizer
586TARGET_LIB_PATH_libsanitizer = $$r/$(TARGET_SUBDIR)/libsanitizer/.libs:
587@endif target-libsanitizer
588
1b6c0831
L
589@if target-libmpx
590TARGET_LIB_PATH_libmpx = $$r/$(TARGET_SUBDIR)/libmpx/.libs:
591@endif target-libmpx
592
95e43135
JBG
593@if target-libvtv
594TARGET_LIB_PATH_libvtv = $$r/$(TARGET_SUBDIR)/libvtv/.libs:
595@endif target-libvtv
596
e78e02e6 597@if target-libcilkrts
598TARGET_LIB_PATH_libcilkrts = $$r/$(TARGET_SUBDIR)/libcilkrts/.libs:
599@endif target-libcilkrts
600
1b6c0831
L
601@if target-liboffloadmic
602TARGET_LIB_PATH_liboffloadmic = $$r/$(TARGET_SUBDIR)/liboffloadmic/.libs:
603@endif target-liboffloadmic
604
064d0a7c
PB
605@if target-libssp
606TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
607@endif target-libssp
608
b3ded179
PB
609@if target-libgomp
610TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
611@endif target-libgomp
612
7ec59b9e
L
613@if target-libitm
614TARGET_LIB_PATH_libitm = $$r/$(TARGET_SUBDIR)/libitm/.libs:
615@endif target-libitm
616
617@if target-libatomic
618TARGET_LIB_PATH_libatomic = $$r/$(TARGET_SUBDIR)/libatomic/.libs:
619@endif target-libatomic
620
e90269c8
PB
621
622
623# This is the list of directories that may be needed in RPATH_ENVVAR
624# so that programs built for the host machine work.
1b6c0831 625HOST_LIB_PATH = $(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_isl)$(HOST_LIB_PATH_libelf)
e90269c8
PB
626
627# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
628@if gcc
3bbd2f8f 629HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
e90269c8
PB
630@endif gcc
631
632
4b900473
PB
633@if gmp
634HOST_LIB_PATH_gmp = \
635 $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
636@endif gmp
637
638@if mpfr
639HOST_LIB_PATH_mpfr = \
640 $$r/$(HOST_SUBDIR)/mpfr/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/.libs:
641@endif mpfr
642
e8a5fa9c
RW
643@if mpc
644HOST_LIB_PATH_mpc = \
645 $$r/$(HOST_SUBDIR)/mpc/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/.libs:
646@endif mpc
647
7ec59b9e
L
648@if isl
649HOST_LIB_PATH_isl = \
650 $$r/$(HOST_SUBDIR)/isl/.libs:$$r/$(HOST_SUBDIR)/prev-isl/.libs:
651@endif isl
e28c595f 652
1f53ca9a
AO
653@if libelf
654HOST_LIB_PATH_libelf = \
655 $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
656@endif libelf
657
e90269c8 658
87cda2cf
AO
659CXX_FOR_TARGET_FLAG_TO_PASS = \
660 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
661@if target-libstdc++-v3
662# CXX_FOR_TARGET is tricky to get right for target libs that require a
663# functional C++ compiler. When we recurse, if we expand
664# CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
665# libstdc++ include flags from the script. Instead, we get an
666# -funconfigured-* word, so that we'll get errors if this invalid C++
667# command line is used for anything, but also so that we can use the
668# word to decide whether or not to pass on this CXX_FOR_TARGET. If we
669# don't pass it on, sub-make will use the default definition, that
670# re-expands it at the time of use, so we'll get it right when we need
671# it. One potential exception is the expansion of CXX_FOR_TARGET
672# passed down as part of CXX within TARGET_FLAGS, but this wouldn't
673# really work, for C++ host programs can't depend on the current-stage
674# C++ target library.
675CXX_FOR_TARGET_FLAG_TO_PASS = \
676 $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
677@endif target-libstdc++-v3
678
22121df0
L
679# Flags to pass down to all sub-makes. STAGE*FLAGS,
680# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
681# overrideable (for a bootstrap build stage1 also builds gcc.info).
252b5132 682BASE_FLAGS_TO_PASS = \
497f816e 683 "DESTDIR=$(DESTDIR)" \
252b5132 684 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
252b5132 685 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
252b5132
RH
686 "bindir=$(bindir)" \
687 "datadir=$(datadir)" \
688 "exec_prefix=$(exec_prefix)" \
689 "includedir=$(includedir)" \
108a6f8e
CD
690 "datarootdir=$(datarootdir)" \
691 "docdir=$(docdir)" \
252b5132 692 "infodir=$(infodir)" \
a3ca38d2 693 "pdfdir=$(pdfdir)" \
108a6f8e 694 "htmldir=$(htmldir)" \
252b5132
RH
695 "libdir=$(libdir)" \
696 "libexecdir=$(libexecdir)" \
697 "lispdir=$(lispdir)" \
698 "localstatedir=$(localstatedir)" \
699 "mandir=$(mandir)" \
700 "oldincludedir=$(oldincludedir)" \
701 "prefix=$(prefix)" \
702 "sbindir=$(sbindir)" \
703 "sharedstatedir=$(sharedstatedir)" \
704 "sysconfdir=$(sysconfdir)" \
705 "tooldir=$(tooldir)" \
ba73c63f 706 "build_tooldir=$(build_tooldir)" \
12f0bd74 707 "target_alias=$(target_alias)" \
8e957354 708 "AWK=$(AWK)" \
12f0bd74
NN
709 "BISON=$(BISON)" \
710 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
b2edd3b5 711 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
12f0bd74
NN
712 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
713 "EXPECT=$(EXPECT)" \
6a9cf61e 714 "FLEX=$(FLEX)" \
12f0bd74
NN
715 "INSTALL=$(INSTALL)" \
716 "INSTALL_DATA=$(INSTALL_DATA)" \
717 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
718 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
6641ce42 719 "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
12f0bd74
NN
720 "LEX=$(LEX)" \
721 "M4=$(M4)" \
722 "MAKE=$(MAKE)" \
723 "RUNTEST=$(RUNTEST)" \
724 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
8e957354 725 "SED=$(SED)" \
12f0bd74
NN
726 "SHELL=$(SHELL)" \
727 "YACC=$(YACC)" \
c52c6897 728 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
da888c87 729 "ADA_CFLAGS=$(ADA_CFLAGS)" \
12f0bd74 730 "AR_FLAGS=$(AR_FLAGS)" \
c52c6897 731 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
f6d183c0
PB
732 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
733 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
12f0bd74
NN
734 "CFLAGS=$(CFLAGS)" \
735 "CXXFLAGS=$(CXXFLAGS)" \
736 "LDFLAGS=$(LDFLAGS)" \
737 "LIBCFLAGS=$(LIBCFLAGS)" \
738 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
8a0d8a5c 739 "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
80911fe1 740 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
a0323144
PB
741 "GNATBIND=$(GNATBIND)" \
742 "GNATMAKE=$(GNATMAKE)" \
12f0bd74
NN
743 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
744 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
745 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
746 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
06bcb89d 747 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
12f0bd74
NN
748 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
749 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
1b05fbbd 750 "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
12f0bd74 751 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
4b1cb4fe 752 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
e552509b
ILT
753 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
754 "GOCFLAGS_FOR_TARGET=$(GOCFLAGS_FOR_TARGET)" \
12f0bd74 755 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
7e0f7140 756 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
414e5532 757 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
12f0bd74
NN
758 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
759 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
760 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
5ae72758 761 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
6b91c541 762 "OBJCOPY_FOR_TARGET=$(OBJCOPY_FOR_TARGET)" \
12f0bd74 763 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
b121d7d4 764 "READELF_FOR_TARGET=$(READELF_FOR_TARGET)" \
7e0f7140 765 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
12f0bd74 766 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
0c24b341 767 "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \
1b05fbbd 768 "BUILD_CONFIG=$(BUILD_CONFIG)" \
c52c6897 769 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
80911fe1 770 "LEAN=$(LEAN)" \
1b05fbbd 771 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
1f53ca9a 772 "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
773 "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \
774 "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
1f53ca9a 775 "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
776 "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \
777 "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
1f53ca9a 778 "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
779 "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \
780 "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
1f53ca9a 781 "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \
1b05fbbd
AO
782 "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \
783 "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \
1f53ca9a 784 "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
785 "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \
786 "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
1f53ca9a 787 "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd 788 "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
87cda2cf 789 $(CXX_FOR_TARGET_FLAG_TO_PASS) \
1b05fbbd 790 "TFLAGS=$(TFLAGS)" \
10ecffb9 791 "CONFIG_SHELL=$(SHELL)" \
12f0bd74 792 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
252b5132 793
55db4b87
PB
794# We leave this in just in case, but it is not needed anymore.
795RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
656fdd47 796
252b5132
RH
797# Flags to pass down to most sub-makes, in which we're building with
798# the host environment.
252b5132
RH
799EXTRA_HOST_FLAGS = \
800 'AR=$(AR)' \
801 'AS=$(AS)' \
802 'CC=$(CC)' \
803 'CXX=$(CXX)' \
804 'DLLTOOL=$(DLLTOOL)' \
1b05fbbd
AO
805 'GCJ=$(GCJ)' \
806 'GFORTRAN=$(GFORTRAN)' \
9b980aa1 807 'GOC=$(GOC)' \
252b5132 808 'LD=$(LD)' \
be01d343 809 'LIPO=$(LIPO)' \
252b5132 810 'NM=$(NM)' \
80911fe1 811 'OBJDUMP=$(OBJDUMP)' \
b9459e83 812 'RANLIB=$(RANLIB)' \
b121d7d4 813 'READELF=$(READELF)' \
be01d343 814 'STRIP=$(STRIP)' \
0c24b341
NC
815 'WINDRES=$(WINDRES)' \
816 'WINDMC=$(WINDMC)'
252b5132
RH
817
818FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
819
b3676d82
EB
820# Flags to pass to stage1 or when not bootstrapping.
821
822STAGE1_FLAGS_TO_PASS = \
823 LDFLAGS="$${LDFLAGS}" \
824 HOST_LIBS="$${HOST_LIBS}"
825
8a0d8a5c
PB
826# Flags to pass to stage2 and later makes.
827
828POSTSTAGE1_FLAGS_TO_PASS = \
e8a5fa9c
RW
829 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
830 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
831 GNATBIND="$${GNATBIND}" \
1f53ca9a
AO
832 LDFLAGS="$${LDFLAGS}" \
833 HOST_LIBS="$${HOST_LIBS}" \
1b6c0831 834 $(LTO_FLAGS_TO_PASS) \
8a0d8a5c
PB
835 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
836
f91ca6bc
IB
837@if gcc-bootstrap
838EXTRA_HOST_EXPORTS = if [ $(current_stage) != stage1 ]; then \
839 $(POSTSTAGE1_HOST_EXPORTS) \
22121df0 840 fi;
f91ca6bc
IB
841
842EXTRA_BOOTSTRAP_FLAGS = CC="$$CC" CXX="$$CXX" LDFLAGS="$$LDFLAGS"
843@endif gcc-bootstrap
844
252b5132 845# Flags to pass down to makes which are built with the target environment.
0aed8855
PB
846# The double $ decreases the length of the command line; those variables
847# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
7f6ef0c0
PB
848# *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
849# so we expand them here.
252b5132
RH
850EXTRA_TARGET_FLAGS = \
851 'AR=$$(AR_FOR_TARGET)' \
0aed8855 852 'AS=$(COMPILER_AS_FOR_TARGET)' \
1b05fbbd
AO
853 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
854 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
1b6c0831
L
855 'CXX=$$(CXX_FOR_TARGET) -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
856 -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
857 $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
1b05fbbd 858 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
252b5132 859 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
1b05fbbd
AO
860 'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
861 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
9b980aa1 862 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
e552509b 863 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
0aed8855 864 'LD=$(COMPILER_LD_FOR_TARGET)' \
414e5532 865 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
1b05fbbd
AO
866 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
867 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
0aed8855 868 'NM=$(COMPILER_NM_FOR_TARGET)' \
5ae72758 869 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
6b91c541 870 'OBJCOPY=$$(OBJCOPY_FOR_TARGET)' \
252b5132 871 'RANLIB=$$(RANLIB_FOR_TARGET)' \
b121d7d4 872 'READELF=$$(READELF_FOR_TARGET)' \
0c24b341 873 'WINDRES=$$(WINDRES_FOR_TARGET)' \
1b05fbbd
AO
874 'WINDMC=$$(WINDMC_FOR_TARGET)' \
875 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
1b6c0831
L
876 'STAGE1_LDFLAGS=$$(POSTSTAGE1_LDFLAGS)' \
877 'STAGE1_LIBS=$$(POSTSTAGE1_LIBS)' \
1b05fbbd 878 "TFLAGS=$$TFLAGS"
252b5132
RH
879
880TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
881
882# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
883# unfortunately needs the native compiler and the target ar and
884# ranlib.
885# If any variables are added here, they must be added to do-*, below.
2a4cbe27 886# The BUILD_* variables are a special case, which are used for the gcc
252b5132
RH
887# cross-building scheme.
888EXTRA_GCC_FLAGS = \
252b5132 889 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
3dee29da 890 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
98dd765a 891 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
252b5132 892
f0b24077 893GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
252b5132 894
1b05fbbd 895@if gcc
96655cc4 896BUILD_CONFIG = @BUILD_CONFIG@
1b05fbbd
AO
897ifneq ($(BUILD_CONFIG),)
898include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
899endif
900@endif gcc
901
dd12c3a8 902.PHONY: configure-host
b813574b 903configure-host: \
dd12c3a8
NN
904 maybe-configure-bfd \
905 maybe-configure-opcodes \
906 maybe-configure-binutils \
907 maybe-configure-bison \
f9806fa5 908 maybe-configure-cgen \
dd12c3a8 909 maybe-configure-dejagnu \
dd12c3a8
NN
910 maybe-configure-etc \
911 maybe-configure-fastjar \
d3ed111c 912 maybe-configure-fixincludes \
dd12c3a8
NN
913 maybe-configure-flex \
914 maybe-configure-gas \
b813574b 915 maybe-configure-gcc \
4b900473
PB
916 maybe-configure-gmp \
917 maybe-configure-mpfr \
e8a5fa9c 918 maybe-configure-mpc \
7ec59b9e 919 maybe-configure-isl \
1f53ca9a 920 maybe-configure-libelf \
93f9b408 921 maybe-configure-gold \
dd12c3a8 922 maybe-configure-gprof \
dd12c3a8
NN
923 maybe-configure-intl \
924 maybe-configure-tcl \
925 maybe-configure-itcl \
926 maybe-configure-ld \
2bf680c4 927 maybe-configure-libbacktrace \
04cf1b77 928 maybe-configure-libcpp \
be01d343 929 maybe-configure-libdecnumber \
dd12c3a8
NN
930 maybe-configure-libgui \
931 maybe-configure-libiberty \
1b6c0831 932 maybe-configure-libiberty-linker-plugin \
dc448a7b 933 maybe-configure-libiconv \
dd12c3a8 934 maybe-configure-m4 \
dd12c3a8 935 maybe-configure-readline \
dd12c3a8
NN
936 maybe-configure-sid \
937 maybe-configure-sim \
dd12c3a8 938 maybe-configure-texinfo \
dd12c3a8
NN
939 maybe-configure-zlib \
940 maybe-configure-gdb \
941 maybe-configure-expect \
942 maybe-configure-guile \
943 maybe-configure-tk \
dd12c3a8 944 maybe-configure-libtermcap \
b00612cc 945 maybe-configure-utils \
700d40ca 946 maybe-configure-gnattools \
1b6c0831
L
947 maybe-configure-lto-plugin \
948 maybe-configure-libcc1 \
949 maybe-configure-gotools
dd12c3a8
NN
950.PHONY: configure-target
951configure-target: \
952 maybe-configure-target-libstdc++-v3 \
5286fdef 953 maybe-configure-target-libsanitizer \
1b6c0831 954 maybe-configure-target-libmpx \
95e43135 955 maybe-configure-target-libvtv \
e78e02e6 956 maybe-configure-target-libcilkrts \
1b6c0831 957 maybe-configure-target-liboffloadmic \
064d0a7c 958 maybe-configure-target-libssp \
dd12c3a8 959 maybe-configure-target-newlib \
6aa8ef82 960 maybe-configure-target-libgcc \
2bf680c4 961 maybe-configure-target-libbacktrace \
e552509b 962 maybe-configure-target-libquadmath \
4b1cb4fe 963 maybe-configure-target-libgfortran \
dd12c3a8 964 maybe-configure-target-libobjc \
e552509b 965 maybe-configure-target-libgo \
dd12c3a8
NN
966 maybe-configure-target-libtermcap \
967 maybe-configure-target-winsup \
968 maybe-configure-target-libgloss \
dd12c3a8
NN
969 maybe-configure-target-libffi \
970 maybe-configure-target-libjava \
971 maybe-configure-target-zlib \
972 maybe-configure-target-boehm-gc \
a2592b1b 973 maybe-configure-target-rda \
b3ded179 974 maybe-configure-target-libada \
7ec59b9e
L
975 maybe-configure-target-libgomp \
976 maybe-configure-target-libitm \
977 maybe-configure-target-libatomic
252b5132 978
319cab08
PB
979# The target built for a native non-bootstrap build.
980.PHONY: all
f70224b5
PB
981all:
982@if gcc-bootstrap
be01d343 983 [ -f stage_final ] || echo stage3 > stage_final
f70224b5
PB
984 @r=`${PWD_COMMAND}`; export r; \
985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
0aed8855 986 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
f70224b5 987@endif gcc-bootstrap
0aed8855 988 @: $(MAKE); $(unstage)
f70224b5
PB
989 @r=`${PWD_COMMAND}`; export r; \
990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 991@if gcc-bootstrap
b5233201 992 if [ -f stage_last ]; then \
07fc31c9 993 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
be01d343 994 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
f70224b5 995 else \
1b05fbbd 996@endif gcc-bootstrap
b5233201
AO
997 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
998@if gcc-bootstrap
999 ; \
04ec0acb 1000 fi \
b5233201 1001@endif gcc-bootstrap
04ec0acb 1002 && :
6a9cf61e
PB
1003
1004.PHONY: all-build
c52c6897
PB
1005
1006all-build: maybe-all-build-libiberty
1007all-build: maybe-all-build-bison
c52c6897
PB
1008all-build: maybe-all-build-flex
1009all-build: maybe-all-build-m4
1010all-build: maybe-all-build-texinfo
1011all-build: maybe-all-build-fixincludes
1b6c0831 1012all-build: maybe-all-build-libcpp
c52c6897 1013
dd12c3a8 1014.PHONY: all-host
c52c6897 1015
c52c6897
PB
1016@if bfd-no-bootstrap
1017all-host: maybe-all-bfd
1018@endif bfd-no-bootstrap
1019@if opcodes-no-bootstrap
1020all-host: maybe-all-opcodes
1021@endif opcodes-no-bootstrap
1022@if binutils-no-bootstrap
1023all-host: maybe-all-binutils
1024@endif binutils-no-bootstrap
1025all-host: maybe-all-bison
f9806fa5 1026all-host: maybe-all-cgen
c52c6897 1027all-host: maybe-all-dejagnu
c52c6897
PB
1028all-host: maybe-all-etc
1029all-host: maybe-all-fastjar
201f096f 1030@if fixincludes-no-bootstrap
c52c6897 1031all-host: maybe-all-fixincludes
201f096f 1032@endif fixincludes-no-bootstrap
c52c6897
PB
1033all-host: maybe-all-flex
1034@if gas-no-bootstrap
1035all-host: maybe-all-gas
1036@endif gas-no-bootstrap
1037@if gcc-no-bootstrap
1038all-host: maybe-all-gcc
1039@endif gcc-no-bootstrap
4b900473
PB
1040@if gmp-no-bootstrap
1041all-host: maybe-all-gmp
1042@endif gmp-no-bootstrap
1043@if mpfr-no-bootstrap
1044all-host: maybe-all-mpfr
1045@endif mpfr-no-bootstrap
e8a5fa9c
RW
1046@if mpc-no-bootstrap
1047all-host: maybe-all-mpc
1048@endif mpc-no-bootstrap
7ec59b9e
L
1049@if isl-no-bootstrap
1050all-host: maybe-all-isl
1051@endif isl-no-bootstrap
1f53ca9a
AO
1052@if libelf-no-bootstrap
1053all-host: maybe-all-libelf
1054@endif libelf-no-bootstrap
93f9b408
ILT
1055@if gold-no-bootstrap
1056all-host: maybe-all-gold
1057@endif gold-no-bootstrap
c52c6897 1058all-host: maybe-all-gprof
c52c6897
PB
1059@if intl-no-bootstrap
1060all-host: maybe-all-intl
1061@endif intl-no-bootstrap
1062all-host: maybe-all-tcl
1063all-host: maybe-all-itcl
1064@if ld-no-bootstrap
1065all-host: maybe-all-ld
1066@endif ld-no-bootstrap
2bf680c4
ILT
1067@if libbacktrace-no-bootstrap
1068all-host: maybe-all-libbacktrace
1069@endif libbacktrace-no-bootstrap
c52c6897
PB
1070@if libcpp-no-bootstrap
1071all-host: maybe-all-libcpp
1072@endif libcpp-no-bootstrap
1073@if libdecnumber-no-bootstrap
1074all-host: maybe-all-libdecnumber
1075@endif libdecnumber-no-bootstrap
1076all-host: maybe-all-libgui
1077@if libiberty-no-bootstrap
1078all-host: maybe-all-libiberty
1079@endif libiberty-no-bootstrap
1b6c0831
L
1080@if libiberty-linker-plugin-no-bootstrap
1081all-host: maybe-all-libiberty-linker-plugin
1082@endif libiberty-linker-plugin-no-bootstrap
016a3251 1083@if libiconv-no-bootstrap
dc448a7b 1084all-host: maybe-all-libiconv
016a3251 1085@endif libiconv-no-bootstrap
c52c6897 1086all-host: maybe-all-m4
c52c6897 1087all-host: maybe-all-readline
c52c6897
PB
1088all-host: maybe-all-sid
1089all-host: maybe-all-sim
c52c6897 1090all-host: maybe-all-texinfo
c52c6897
PB
1091@if zlib-no-bootstrap
1092all-host: maybe-all-zlib
1093@endif zlib-no-bootstrap
1094all-host: maybe-all-gdb
1095all-host: maybe-all-expect
1096all-host: maybe-all-guile
1097all-host: maybe-all-tk
1098all-host: maybe-all-libtermcap
1099all-host: maybe-all-utils
1100all-host: maybe-all-gnattools
700d40ca
ILT
1101@if lto-plugin-no-bootstrap
1102all-host: maybe-all-lto-plugin
1103@endif lto-plugin-no-bootstrap
1b6c0831
L
1104all-host: maybe-all-libcc1
1105all-host: maybe-all-gotools
c52c6897 1106
dd12c3a8 1107.PHONY: all-target
c52c6897 1108
e8a5fa9c 1109@if target-libstdc++-v3-no-bootstrap
c52c6897 1110all-target: maybe-all-target-libstdc++-v3
e8a5fa9c 1111@endif target-libstdc++-v3-no-bootstrap
5eb08693 1112@if target-libsanitizer-no-bootstrap
5286fdef 1113all-target: maybe-all-target-libsanitizer
5eb08693 1114@endif target-libsanitizer-no-bootstrap
1b6c0831
L
1115@if target-libmpx-no-bootstrap
1116all-target: maybe-all-target-libmpx
1117@endif target-libmpx-no-bootstrap
95e43135
JBG
1118@if target-libvtv-no-bootstrap
1119all-target: maybe-all-target-libvtv
1120@endif target-libvtv-no-bootstrap
e78e02e6 1121all-target: maybe-all-target-libcilkrts
1b6c0831 1122all-target: maybe-all-target-liboffloadmic
c52c6897 1123all-target: maybe-all-target-libssp
c52c6897 1124all-target: maybe-all-target-newlib
f86e35b8 1125@if target-libgcc-no-bootstrap
6aa8ef82 1126all-target: maybe-all-target-libgcc
f86e35b8 1127@endif target-libgcc-no-bootstrap
2bf680c4 1128all-target: maybe-all-target-libbacktrace
e552509b 1129all-target: maybe-all-target-libquadmath
c52c6897
PB
1130all-target: maybe-all-target-libgfortran
1131all-target: maybe-all-target-libobjc
e552509b 1132all-target: maybe-all-target-libgo
c52c6897
PB
1133all-target: maybe-all-target-libtermcap
1134all-target: maybe-all-target-winsup
1135all-target: maybe-all-target-libgloss
c52c6897
PB
1136all-target: maybe-all-target-libffi
1137all-target: maybe-all-target-libjava
1138all-target: maybe-all-target-zlib
1139all-target: maybe-all-target-boehm-gc
c52c6897
PB
1140all-target: maybe-all-target-rda
1141all-target: maybe-all-target-libada
911e63d0 1142@if target-libgomp-no-bootstrap
c52c6897 1143all-target: maybe-all-target-libgomp
911e63d0 1144@endif target-libgomp-no-bootstrap
7ec59b9e
L
1145all-target: maybe-all-target-libitm
1146all-target: maybe-all-target-libatomic
252b5132
RH
1147
1148# Do a target for all the subdirectories. A ``make do-X'' will do a
1149# ``make X'' in all subdirectories (because, in general, there is a
1150# dependency (below) of X upon do-X, a ``make X'' will also do this,
1151# but it may do additional work as well).
e393202e 1152
2a4cbe27 1153.PHONY: do-info
f70224b5 1154do-info:
0aed8855 1155 @: $(MAKE); $(unstage)
e360f423
PB
1156 @r=`${PWD_COMMAND}`; export r; \
1157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1158 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
f70224b5 1159 info-target
f70224b5 1160
e393202e 1161
2a4cbe27 1162.PHONY: info-host
c52c6897 1163
c52c6897
PB
1164info-host: maybe-info-bfd
1165info-host: maybe-info-opcodes
1166info-host: maybe-info-binutils
1167info-host: maybe-info-bison
f9806fa5 1168info-host: maybe-info-cgen
c52c6897 1169info-host: maybe-info-dejagnu
c52c6897
PB
1170info-host: maybe-info-etc
1171info-host: maybe-info-fastjar
c52c6897
PB
1172info-host: maybe-info-fixincludes
1173info-host: maybe-info-flex
1174info-host: maybe-info-gas
1175info-host: maybe-info-gcc
4b900473
PB
1176info-host: maybe-info-gmp
1177info-host: maybe-info-mpfr
e8a5fa9c 1178info-host: maybe-info-mpc
7ec59b9e 1179info-host: maybe-info-isl
1f53ca9a 1180info-host: maybe-info-libelf
93f9b408 1181info-host: maybe-info-gold
c52c6897 1182info-host: maybe-info-gprof
c52c6897
PB
1183info-host: maybe-info-intl
1184info-host: maybe-info-tcl
1185info-host: maybe-info-itcl
1186info-host: maybe-info-ld
2bf680c4 1187info-host: maybe-info-libbacktrace
c52c6897
PB
1188info-host: maybe-info-libcpp
1189info-host: maybe-info-libdecnumber
1190info-host: maybe-info-libgui
1191info-host: maybe-info-libiberty
1b6c0831 1192info-host: maybe-info-libiberty-linker-plugin
dc448a7b 1193info-host: maybe-info-libiconv
c52c6897 1194info-host: maybe-info-m4
c52c6897 1195info-host: maybe-info-readline
c52c6897
PB
1196info-host: maybe-info-sid
1197info-host: maybe-info-sim
c52c6897 1198info-host: maybe-info-texinfo
c52c6897
PB
1199info-host: maybe-info-zlib
1200info-host: maybe-info-gdb
1201info-host: maybe-info-expect
1202info-host: maybe-info-guile
1203info-host: maybe-info-tk
1204info-host: maybe-info-libtermcap
1205info-host: maybe-info-utils
1206info-host: maybe-info-gnattools
700d40ca 1207info-host: maybe-info-lto-plugin
1b6c0831
L
1208info-host: maybe-info-libcc1
1209info-host: maybe-info-gotools
252b5132 1210
2a4cbe27 1211.PHONY: info-target
c52c6897
PB
1212
1213info-target: maybe-info-target-libstdc++-v3
5286fdef 1214info-target: maybe-info-target-libsanitizer
1b6c0831 1215info-target: maybe-info-target-libmpx
95e43135 1216info-target: maybe-info-target-libvtv
e78e02e6 1217info-target: maybe-info-target-libcilkrts
1b6c0831 1218info-target: maybe-info-target-liboffloadmic
c52c6897 1219info-target: maybe-info-target-libssp
c52c6897 1220info-target: maybe-info-target-newlib
6aa8ef82 1221info-target: maybe-info-target-libgcc
2bf680c4 1222info-target: maybe-info-target-libbacktrace
e552509b 1223info-target: maybe-info-target-libquadmath
c52c6897
PB
1224info-target: maybe-info-target-libgfortran
1225info-target: maybe-info-target-libobjc
e552509b 1226info-target: maybe-info-target-libgo
c52c6897
PB
1227info-target: maybe-info-target-libtermcap
1228info-target: maybe-info-target-winsup
1229info-target: maybe-info-target-libgloss
c52c6897
PB
1230info-target: maybe-info-target-libffi
1231info-target: maybe-info-target-libjava
1232info-target: maybe-info-target-zlib
1233info-target: maybe-info-target-boehm-gc
c52c6897
PB
1234info-target: maybe-info-target-rda
1235info-target: maybe-info-target-libada
1236info-target: maybe-info-target-libgomp
7ec59b9e
L
1237info-target: maybe-info-target-libitm
1238info-target: maybe-info-target-libatomic
252b5132 1239
4fa63067 1240.PHONY: do-dvi
f70224b5 1241do-dvi:
0aed8855 1242 @: $(MAKE); $(unstage)
e360f423
PB
1243 @r=`${PWD_COMMAND}`; export r; \
1244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1245 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
f70224b5 1246 dvi-target
f70224b5 1247
2a4cbe27 1248
4fa63067 1249.PHONY: dvi-host
c52c6897 1250
c52c6897
PB
1251dvi-host: maybe-dvi-bfd
1252dvi-host: maybe-dvi-opcodes
1253dvi-host: maybe-dvi-binutils
1254dvi-host: maybe-dvi-bison
f9806fa5 1255dvi-host: maybe-dvi-cgen
c52c6897 1256dvi-host: maybe-dvi-dejagnu
c52c6897
PB
1257dvi-host: maybe-dvi-etc
1258dvi-host: maybe-dvi-fastjar
c52c6897
PB
1259dvi-host: maybe-dvi-fixincludes
1260dvi-host: maybe-dvi-flex
1261dvi-host: maybe-dvi-gas
1262dvi-host: maybe-dvi-gcc
4b900473
PB
1263dvi-host: maybe-dvi-gmp
1264dvi-host: maybe-dvi-mpfr
e8a5fa9c 1265dvi-host: maybe-dvi-mpc
7ec59b9e 1266dvi-host: maybe-dvi-isl
1f53ca9a 1267dvi-host: maybe-dvi-libelf
93f9b408 1268dvi-host: maybe-dvi-gold
c52c6897 1269dvi-host: maybe-dvi-gprof
c52c6897
PB
1270dvi-host: maybe-dvi-intl
1271dvi-host: maybe-dvi-tcl
1272dvi-host: maybe-dvi-itcl
1273dvi-host: maybe-dvi-ld
2bf680c4 1274dvi-host: maybe-dvi-libbacktrace
c52c6897
PB
1275dvi-host: maybe-dvi-libcpp
1276dvi-host: maybe-dvi-libdecnumber
1277dvi-host: maybe-dvi-libgui
1278dvi-host: maybe-dvi-libiberty
1b6c0831 1279dvi-host: maybe-dvi-libiberty-linker-plugin
dc448a7b 1280dvi-host: maybe-dvi-libiconv
c52c6897 1281dvi-host: maybe-dvi-m4
c52c6897 1282dvi-host: maybe-dvi-readline
c52c6897
PB
1283dvi-host: maybe-dvi-sid
1284dvi-host: maybe-dvi-sim
c52c6897 1285dvi-host: maybe-dvi-texinfo
c52c6897
PB
1286dvi-host: maybe-dvi-zlib
1287dvi-host: maybe-dvi-gdb
1288dvi-host: maybe-dvi-expect
1289dvi-host: maybe-dvi-guile
1290dvi-host: maybe-dvi-tk
1291dvi-host: maybe-dvi-libtermcap
1292dvi-host: maybe-dvi-utils
1293dvi-host: maybe-dvi-gnattools
700d40ca 1294dvi-host: maybe-dvi-lto-plugin
1b6c0831
L
1295dvi-host: maybe-dvi-libcc1
1296dvi-host: maybe-dvi-gotools
2a4cbe27 1297
4fa63067 1298.PHONY: dvi-target
c52c6897
PB
1299
1300dvi-target: maybe-dvi-target-libstdc++-v3
5286fdef 1301dvi-target: maybe-dvi-target-libsanitizer
1b6c0831 1302dvi-target: maybe-dvi-target-libmpx
95e43135 1303dvi-target: maybe-dvi-target-libvtv
e78e02e6 1304dvi-target: maybe-dvi-target-libcilkrts
1b6c0831 1305dvi-target: maybe-dvi-target-liboffloadmic
c52c6897 1306dvi-target: maybe-dvi-target-libssp
c52c6897 1307dvi-target: maybe-dvi-target-newlib
6aa8ef82 1308dvi-target: maybe-dvi-target-libgcc
2bf680c4 1309dvi-target: maybe-dvi-target-libbacktrace
e552509b 1310dvi-target: maybe-dvi-target-libquadmath
c52c6897
PB
1311dvi-target: maybe-dvi-target-libgfortran
1312dvi-target: maybe-dvi-target-libobjc
e552509b 1313dvi-target: maybe-dvi-target-libgo
c52c6897
PB
1314dvi-target: maybe-dvi-target-libtermcap
1315dvi-target: maybe-dvi-target-winsup
1316dvi-target: maybe-dvi-target-libgloss
c52c6897
PB
1317dvi-target: maybe-dvi-target-libffi
1318dvi-target: maybe-dvi-target-libjava
1319dvi-target: maybe-dvi-target-zlib
1320dvi-target: maybe-dvi-target-boehm-gc
c52c6897
PB
1321dvi-target: maybe-dvi-target-rda
1322dvi-target: maybe-dvi-target-libada
1323dvi-target: maybe-dvi-target-libgomp
7ec59b9e
L
1324dvi-target: maybe-dvi-target-libitm
1325dvi-target: maybe-dvi-target-libatomic
2a4cbe27 1326
56a8fe78
DD
1327.PHONY: do-pdf
1328do-pdf:
1329 @: $(MAKE); $(unstage)
1330 @r=`${PWD_COMMAND}`; export r; \
1331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1332 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1333 pdf-target
1334
1335
1336.PHONY: pdf-host
1337
56a8fe78
DD
1338pdf-host: maybe-pdf-bfd
1339pdf-host: maybe-pdf-opcodes
1340pdf-host: maybe-pdf-binutils
1341pdf-host: maybe-pdf-bison
f9806fa5 1342pdf-host: maybe-pdf-cgen
56a8fe78 1343pdf-host: maybe-pdf-dejagnu
56a8fe78
DD
1344pdf-host: maybe-pdf-etc
1345pdf-host: maybe-pdf-fastjar
56a8fe78
DD
1346pdf-host: maybe-pdf-fixincludes
1347pdf-host: maybe-pdf-flex
1348pdf-host: maybe-pdf-gas
1349pdf-host: maybe-pdf-gcc
4b900473
PB
1350pdf-host: maybe-pdf-gmp
1351pdf-host: maybe-pdf-mpfr
e8a5fa9c 1352pdf-host: maybe-pdf-mpc
7ec59b9e 1353pdf-host: maybe-pdf-isl
1f53ca9a 1354pdf-host: maybe-pdf-libelf
93f9b408 1355pdf-host: maybe-pdf-gold
56a8fe78 1356pdf-host: maybe-pdf-gprof
56a8fe78
DD
1357pdf-host: maybe-pdf-intl
1358pdf-host: maybe-pdf-tcl
1359pdf-host: maybe-pdf-itcl
1360pdf-host: maybe-pdf-ld
2bf680c4 1361pdf-host: maybe-pdf-libbacktrace
56a8fe78
DD
1362pdf-host: maybe-pdf-libcpp
1363pdf-host: maybe-pdf-libdecnumber
1364pdf-host: maybe-pdf-libgui
1365pdf-host: maybe-pdf-libiberty
1b6c0831 1366pdf-host: maybe-pdf-libiberty-linker-plugin
dc448a7b 1367pdf-host: maybe-pdf-libiconv
56a8fe78 1368pdf-host: maybe-pdf-m4
56a8fe78 1369pdf-host: maybe-pdf-readline
56a8fe78
DD
1370pdf-host: maybe-pdf-sid
1371pdf-host: maybe-pdf-sim
56a8fe78 1372pdf-host: maybe-pdf-texinfo
56a8fe78
DD
1373pdf-host: maybe-pdf-zlib
1374pdf-host: maybe-pdf-gdb
1375pdf-host: maybe-pdf-expect
1376pdf-host: maybe-pdf-guile
1377pdf-host: maybe-pdf-tk
1378pdf-host: maybe-pdf-libtermcap
1379pdf-host: maybe-pdf-utils
1380pdf-host: maybe-pdf-gnattools
700d40ca 1381pdf-host: maybe-pdf-lto-plugin
1b6c0831
L
1382pdf-host: maybe-pdf-libcc1
1383pdf-host: maybe-pdf-gotools
56a8fe78
DD
1384
1385.PHONY: pdf-target
1386
1387pdf-target: maybe-pdf-target-libstdc++-v3
5286fdef 1388pdf-target: maybe-pdf-target-libsanitizer
1b6c0831 1389pdf-target: maybe-pdf-target-libmpx
95e43135 1390pdf-target: maybe-pdf-target-libvtv
e78e02e6 1391pdf-target: maybe-pdf-target-libcilkrts
1b6c0831 1392pdf-target: maybe-pdf-target-liboffloadmic
56a8fe78
DD
1393pdf-target: maybe-pdf-target-libssp
1394pdf-target: maybe-pdf-target-newlib
6aa8ef82 1395pdf-target: maybe-pdf-target-libgcc
2bf680c4 1396pdf-target: maybe-pdf-target-libbacktrace
e552509b 1397pdf-target: maybe-pdf-target-libquadmath
56a8fe78
DD
1398pdf-target: maybe-pdf-target-libgfortran
1399pdf-target: maybe-pdf-target-libobjc
e552509b 1400pdf-target: maybe-pdf-target-libgo
56a8fe78
DD
1401pdf-target: maybe-pdf-target-libtermcap
1402pdf-target: maybe-pdf-target-winsup
1403pdf-target: maybe-pdf-target-libgloss
56a8fe78
DD
1404pdf-target: maybe-pdf-target-libffi
1405pdf-target: maybe-pdf-target-libjava
1406pdf-target: maybe-pdf-target-zlib
1407pdf-target: maybe-pdf-target-boehm-gc
56a8fe78
DD
1408pdf-target: maybe-pdf-target-rda
1409pdf-target: maybe-pdf-target-libada
1410pdf-target: maybe-pdf-target-libgomp
7ec59b9e
L
1411pdf-target: maybe-pdf-target-libitm
1412pdf-target: maybe-pdf-target-libatomic
56a8fe78 1413
6d389afc 1414.PHONY: do-html
f70224b5 1415do-html:
0aed8855 1416 @: $(MAKE); $(unstage)
e360f423
PB
1417 @r=`${PWD_COMMAND}`; export r; \
1418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1419 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
f70224b5 1420 html-target
f70224b5 1421
6d389afc
MS
1422
1423.PHONY: html-host
c52c6897 1424
c52c6897
PB
1425html-host: maybe-html-bfd
1426html-host: maybe-html-opcodes
1427html-host: maybe-html-binutils
1428html-host: maybe-html-bison
f9806fa5 1429html-host: maybe-html-cgen
c52c6897 1430html-host: maybe-html-dejagnu
c52c6897
PB
1431html-host: maybe-html-etc
1432html-host: maybe-html-fastjar
c52c6897
PB
1433html-host: maybe-html-fixincludes
1434html-host: maybe-html-flex
1435html-host: maybe-html-gas
1436html-host: maybe-html-gcc
4b900473
PB
1437html-host: maybe-html-gmp
1438html-host: maybe-html-mpfr
e8a5fa9c 1439html-host: maybe-html-mpc
7ec59b9e 1440html-host: maybe-html-isl
1f53ca9a 1441html-host: maybe-html-libelf
93f9b408 1442html-host: maybe-html-gold
c52c6897 1443html-host: maybe-html-gprof
c52c6897
PB
1444html-host: maybe-html-intl
1445html-host: maybe-html-tcl
1446html-host: maybe-html-itcl
1447html-host: maybe-html-ld
2bf680c4 1448html-host: maybe-html-libbacktrace
c52c6897
PB
1449html-host: maybe-html-libcpp
1450html-host: maybe-html-libdecnumber
1451html-host: maybe-html-libgui
1452html-host: maybe-html-libiberty
1b6c0831 1453html-host: maybe-html-libiberty-linker-plugin
dc448a7b 1454html-host: maybe-html-libiconv
c52c6897 1455html-host: maybe-html-m4
c52c6897 1456html-host: maybe-html-readline
c52c6897
PB
1457html-host: maybe-html-sid
1458html-host: maybe-html-sim
c52c6897 1459html-host: maybe-html-texinfo
c52c6897
PB
1460html-host: maybe-html-zlib
1461html-host: maybe-html-gdb
1462html-host: maybe-html-expect
1463html-host: maybe-html-guile
1464html-host: maybe-html-tk
1465html-host: maybe-html-libtermcap
1466html-host: maybe-html-utils
1467html-host: maybe-html-gnattools
700d40ca 1468html-host: maybe-html-lto-plugin
1b6c0831
L
1469html-host: maybe-html-libcc1
1470html-host: maybe-html-gotools
6d389afc
MS
1471
1472.PHONY: html-target
c52c6897
PB
1473
1474html-target: maybe-html-target-libstdc++-v3
5286fdef 1475html-target: maybe-html-target-libsanitizer
1b6c0831 1476html-target: maybe-html-target-libmpx
95e43135 1477html-target: maybe-html-target-libvtv
e78e02e6 1478html-target: maybe-html-target-libcilkrts
1b6c0831 1479html-target: maybe-html-target-liboffloadmic
c52c6897 1480html-target: maybe-html-target-libssp
c52c6897 1481html-target: maybe-html-target-newlib
6aa8ef82 1482html-target: maybe-html-target-libgcc
2bf680c4 1483html-target: maybe-html-target-libbacktrace
e552509b 1484html-target: maybe-html-target-libquadmath
c52c6897
PB
1485html-target: maybe-html-target-libgfortran
1486html-target: maybe-html-target-libobjc
e552509b 1487html-target: maybe-html-target-libgo
c52c6897
PB
1488html-target: maybe-html-target-libtermcap
1489html-target: maybe-html-target-winsup
1490html-target: maybe-html-target-libgloss
c52c6897
PB
1491html-target: maybe-html-target-libffi
1492html-target: maybe-html-target-libjava
1493html-target: maybe-html-target-zlib
1494html-target: maybe-html-target-boehm-gc
c52c6897
PB
1495html-target: maybe-html-target-rda
1496html-target: maybe-html-target-libada
1497html-target: maybe-html-target-libgomp
7ec59b9e
L
1498html-target: maybe-html-target-libitm
1499html-target: maybe-html-target-libatomic
6d389afc 1500
4fa63067 1501.PHONY: do-TAGS
f70224b5 1502do-TAGS:
0aed8855 1503 @: $(MAKE); $(unstage)
e360f423
PB
1504 @r=`${PWD_COMMAND}`; export r; \
1505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1506 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
f70224b5 1507 TAGS-target
f70224b5 1508
2a4cbe27 1509
4fa63067 1510.PHONY: TAGS-host
c52c6897 1511
c52c6897
PB
1512TAGS-host: maybe-TAGS-bfd
1513TAGS-host: maybe-TAGS-opcodes
1514TAGS-host: maybe-TAGS-binutils
1515TAGS-host: maybe-TAGS-bison
f9806fa5 1516TAGS-host: maybe-TAGS-cgen
c52c6897 1517TAGS-host: maybe-TAGS-dejagnu
c52c6897
PB
1518TAGS-host: maybe-TAGS-etc
1519TAGS-host: maybe-TAGS-fastjar
c52c6897
PB
1520TAGS-host: maybe-TAGS-fixincludes
1521TAGS-host: maybe-TAGS-flex
1522TAGS-host: maybe-TAGS-gas
1523TAGS-host: maybe-TAGS-gcc
4b900473
PB
1524TAGS-host: maybe-TAGS-gmp
1525TAGS-host: maybe-TAGS-mpfr
e8a5fa9c 1526TAGS-host: maybe-TAGS-mpc
7ec59b9e 1527TAGS-host: maybe-TAGS-isl
1f53ca9a 1528TAGS-host: maybe-TAGS-libelf
93f9b408 1529TAGS-host: maybe-TAGS-gold
c52c6897 1530TAGS-host: maybe-TAGS-gprof
c52c6897
PB
1531TAGS-host: maybe-TAGS-intl
1532TAGS-host: maybe-TAGS-tcl
1533TAGS-host: maybe-TAGS-itcl
1534TAGS-host: maybe-TAGS-ld
2bf680c4 1535TAGS-host: maybe-TAGS-libbacktrace
c52c6897
PB
1536TAGS-host: maybe-TAGS-libcpp
1537TAGS-host: maybe-TAGS-libdecnumber
1538TAGS-host: maybe-TAGS-libgui
1539TAGS-host: maybe-TAGS-libiberty
1b6c0831 1540TAGS-host: maybe-TAGS-libiberty-linker-plugin
dc448a7b 1541TAGS-host: maybe-TAGS-libiconv
c52c6897 1542TAGS-host: maybe-TAGS-m4
c52c6897 1543TAGS-host: maybe-TAGS-readline
c52c6897
PB
1544TAGS-host: maybe-TAGS-sid
1545TAGS-host: maybe-TAGS-sim
c52c6897 1546TAGS-host: maybe-TAGS-texinfo
c52c6897
PB
1547TAGS-host: maybe-TAGS-zlib
1548TAGS-host: maybe-TAGS-gdb
1549TAGS-host: maybe-TAGS-expect
1550TAGS-host: maybe-TAGS-guile
1551TAGS-host: maybe-TAGS-tk
1552TAGS-host: maybe-TAGS-libtermcap
1553TAGS-host: maybe-TAGS-utils
1554TAGS-host: maybe-TAGS-gnattools
700d40ca 1555TAGS-host: maybe-TAGS-lto-plugin
1b6c0831
L
1556TAGS-host: maybe-TAGS-libcc1
1557TAGS-host: maybe-TAGS-gotools
2a4cbe27 1558
4fa63067 1559.PHONY: TAGS-target
c52c6897
PB
1560
1561TAGS-target: maybe-TAGS-target-libstdc++-v3
5286fdef 1562TAGS-target: maybe-TAGS-target-libsanitizer
1b6c0831 1563TAGS-target: maybe-TAGS-target-libmpx
95e43135 1564TAGS-target: maybe-TAGS-target-libvtv
e78e02e6 1565TAGS-target: maybe-TAGS-target-libcilkrts
1b6c0831 1566TAGS-target: maybe-TAGS-target-liboffloadmic
c52c6897 1567TAGS-target: maybe-TAGS-target-libssp
c52c6897 1568TAGS-target: maybe-TAGS-target-newlib
6aa8ef82 1569TAGS-target: maybe-TAGS-target-libgcc
2bf680c4 1570TAGS-target: maybe-TAGS-target-libbacktrace
e552509b 1571TAGS-target: maybe-TAGS-target-libquadmath
c52c6897
PB
1572TAGS-target: maybe-TAGS-target-libgfortran
1573TAGS-target: maybe-TAGS-target-libobjc
e552509b 1574TAGS-target: maybe-TAGS-target-libgo
c52c6897
PB
1575TAGS-target: maybe-TAGS-target-libtermcap
1576TAGS-target: maybe-TAGS-target-winsup
1577TAGS-target: maybe-TAGS-target-libgloss
c52c6897
PB
1578TAGS-target: maybe-TAGS-target-libffi
1579TAGS-target: maybe-TAGS-target-libjava
1580TAGS-target: maybe-TAGS-target-zlib
1581TAGS-target: maybe-TAGS-target-boehm-gc
c52c6897
PB
1582TAGS-target: maybe-TAGS-target-rda
1583TAGS-target: maybe-TAGS-target-libada
1584TAGS-target: maybe-TAGS-target-libgomp
7ec59b9e
L
1585TAGS-target: maybe-TAGS-target-libitm
1586TAGS-target: maybe-TAGS-target-libatomic
a2592b1b 1587
4fa63067 1588.PHONY: do-install-info
f70224b5 1589do-install-info:
0aed8855 1590 @: $(MAKE); $(unstage)
e360f423
PB
1591 @r=`${PWD_COMMAND}`; export r; \
1592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1593 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
f70224b5 1594 install-info-target
f70224b5 1595
a2592b1b 1596
4fa63067 1597.PHONY: install-info-host
c52c6897 1598
c52c6897
PB
1599install-info-host: maybe-install-info-bfd
1600install-info-host: maybe-install-info-opcodes
1601install-info-host: maybe-install-info-binutils
1602install-info-host: maybe-install-info-bison
f9806fa5 1603install-info-host: maybe-install-info-cgen
c52c6897 1604install-info-host: maybe-install-info-dejagnu
c52c6897
PB
1605install-info-host: maybe-install-info-etc
1606install-info-host: maybe-install-info-fastjar
c52c6897
PB
1607install-info-host: maybe-install-info-fixincludes
1608install-info-host: maybe-install-info-flex
1609install-info-host: maybe-install-info-gas
1610install-info-host: maybe-install-info-gcc
4b900473
PB
1611install-info-host: maybe-install-info-gmp
1612install-info-host: maybe-install-info-mpfr
e8a5fa9c 1613install-info-host: maybe-install-info-mpc
7ec59b9e 1614install-info-host: maybe-install-info-isl
1f53ca9a 1615install-info-host: maybe-install-info-libelf
93f9b408 1616install-info-host: maybe-install-info-gold
c52c6897 1617install-info-host: maybe-install-info-gprof
c52c6897
PB
1618install-info-host: maybe-install-info-intl
1619install-info-host: maybe-install-info-tcl
1620install-info-host: maybe-install-info-itcl
1621install-info-host: maybe-install-info-ld
2bf680c4 1622install-info-host: maybe-install-info-libbacktrace
c52c6897
PB
1623install-info-host: maybe-install-info-libcpp
1624install-info-host: maybe-install-info-libdecnumber
1625install-info-host: maybe-install-info-libgui
1626install-info-host: maybe-install-info-libiberty
1b6c0831 1627install-info-host: maybe-install-info-libiberty-linker-plugin
dc448a7b 1628install-info-host: maybe-install-info-libiconv
c52c6897 1629install-info-host: maybe-install-info-m4
c52c6897 1630install-info-host: maybe-install-info-readline
c52c6897
PB
1631install-info-host: maybe-install-info-sid
1632install-info-host: maybe-install-info-sim
c52c6897 1633install-info-host: maybe-install-info-texinfo
c52c6897
PB
1634install-info-host: maybe-install-info-zlib
1635install-info-host: maybe-install-info-gdb
1636install-info-host: maybe-install-info-expect
1637install-info-host: maybe-install-info-guile
1638install-info-host: maybe-install-info-tk
1639install-info-host: maybe-install-info-libtermcap
1640install-info-host: maybe-install-info-utils
1641install-info-host: maybe-install-info-gnattools
700d40ca 1642install-info-host: maybe-install-info-lto-plugin
1b6c0831
L
1643install-info-host: maybe-install-info-libcc1
1644install-info-host: maybe-install-info-gotools
a2592b1b 1645
4fa63067 1646.PHONY: install-info-target
c52c6897
PB
1647
1648install-info-target: maybe-install-info-target-libstdc++-v3
5286fdef 1649install-info-target: maybe-install-info-target-libsanitizer
1b6c0831 1650install-info-target: maybe-install-info-target-libmpx
95e43135 1651install-info-target: maybe-install-info-target-libvtv
e78e02e6 1652install-info-target: maybe-install-info-target-libcilkrts
1b6c0831 1653install-info-target: maybe-install-info-target-liboffloadmic
c52c6897 1654install-info-target: maybe-install-info-target-libssp
c52c6897 1655install-info-target: maybe-install-info-target-newlib
6aa8ef82 1656install-info-target: maybe-install-info-target-libgcc
2bf680c4 1657install-info-target: maybe-install-info-target-libbacktrace
e552509b 1658install-info-target: maybe-install-info-target-libquadmath
c52c6897
PB
1659install-info-target: maybe-install-info-target-libgfortran
1660install-info-target: maybe-install-info-target-libobjc
e552509b 1661install-info-target: maybe-install-info-target-libgo
c52c6897
PB
1662install-info-target: maybe-install-info-target-libtermcap
1663install-info-target: maybe-install-info-target-winsup
1664install-info-target: maybe-install-info-target-libgloss
c52c6897
PB
1665install-info-target: maybe-install-info-target-libffi
1666install-info-target: maybe-install-info-target-libjava
1667install-info-target: maybe-install-info-target-zlib
1668install-info-target: maybe-install-info-target-boehm-gc
c52c6897
PB
1669install-info-target: maybe-install-info-target-rda
1670install-info-target: maybe-install-info-target-libada
1671install-info-target: maybe-install-info-target-libgomp
7ec59b9e
L
1672install-info-target: maybe-install-info-target-libitm
1673install-info-target: maybe-install-info-target-libatomic
2a4cbe27 1674
a3ca38d2
DD
1675.PHONY: do-install-pdf
1676do-install-pdf:
1677 @: $(MAKE); $(unstage)
1678 @r=`${PWD_COMMAND}`; export r; \
1679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1680 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1681 install-pdf-target
1682
1683
1684.PHONY: install-pdf-host
1685
a3ca38d2
DD
1686install-pdf-host: maybe-install-pdf-bfd
1687install-pdf-host: maybe-install-pdf-opcodes
1688install-pdf-host: maybe-install-pdf-binutils
1689install-pdf-host: maybe-install-pdf-bison
f9806fa5 1690install-pdf-host: maybe-install-pdf-cgen
a3ca38d2 1691install-pdf-host: maybe-install-pdf-dejagnu
a3ca38d2
DD
1692install-pdf-host: maybe-install-pdf-etc
1693install-pdf-host: maybe-install-pdf-fastjar
a3ca38d2
DD
1694install-pdf-host: maybe-install-pdf-fixincludes
1695install-pdf-host: maybe-install-pdf-flex
1696install-pdf-host: maybe-install-pdf-gas
1697install-pdf-host: maybe-install-pdf-gcc
a3ca38d2
DD
1698install-pdf-host: maybe-install-pdf-gmp
1699install-pdf-host: maybe-install-pdf-mpfr
e8a5fa9c 1700install-pdf-host: maybe-install-pdf-mpc
7ec59b9e 1701install-pdf-host: maybe-install-pdf-isl
1f53ca9a 1702install-pdf-host: maybe-install-pdf-libelf
93f9b408 1703install-pdf-host: maybe-install-pdf-gold
a3ca38d2 1704install-pdf-host: maybe-install-pdf-gprof
a3ca38d2
DD
1705install-pdf-host: maybe-install-pdf-intl
1706install-pdf-host: maybe-install-pdf-tcl
1707install-pdf-host: maybe-install-pdf-itcl
1708install-pdf-host: maybe-install-pdf-ld
2bf680c4 1709install-pdf-host: maybe-install-pdf-libbacktrace
a3ca38d2
DD
1710install-pdf-host: maybe-install-pdf-libcpp
1711install-pdf-host: maybe-install-pdf-libdecnumber
1712install-pdf-host: maybe-install-pdf-libgui
1713install-pdf-host: maybe-install-pdf-libiberty
1b6c0831 1714install-pdf-host: maybe-install-pdf-libiberty-linker-plugin
dc448a7b 1715install-pdf-host: maybe-install-pdf-libiconv
a3ca38d2 1716install-pdf-host: maybe-install-pdf-m4
a3ca38d2 1717install-pdf-host: maybe-install-pdf-readline
a3ca38d2
DD
1718install-pdf-host: maybe-install-pdf-sid
1719install-pdf-host: maybe-install-pdf-sim
a3ca38d2 1720install-pdf-host: maybe-install-pdf-texinfo
a3ca38d2
DD
1721install-pdf-host: maybe-install-pdf-zlib
1722install-pdf-host: maybe-install-pdf-gdb
1723install-pdf-host: maybe-install-pdf-expect
1724install-pdf-host: maybe-install-pdf-guile
1725install-pdf-host: maybe-install-pdf-tk
1726install-pdf-host: maybe-install-pdf-libtermcap
1727install-pdf-host: maybe-install-pdf-utils
1728install-pdf-host: maybe-install-pdf-gnattools
700d40ca 1729install-pdf-host: maybe-install-pdf-lto-plugin
1b6c0831
L
1730install-pdf-host: maybe-install-pdf-libcc1
1731install-pdf-host: maybe-install-pdf-gotools
a3ca38d2
DD
1732
1733.PHONY: install-pdf-target
1734
1735install-pdf-target: maybe-install-pdf-target-libstdc++-v3
5286fdef 1736install-pdf-target: maybe-install-pdf-target-libsanitizer
1b6c0831 1737install-pdf-target: maybe-install-pdf-target-libmpx
95e43135 1738install-pdf-target: maybe-install-pdf-target-libvtv
e78e02e6 1739install-pdf-target: maybe-install-pdf-target-libcilkrts
1b6c0831 1740install-pdf-target: maybe-install-pdf-target-liboffloadmic
a3ca38d2
DD
1741install-pdf-target: maybe-install-pdf-target-libssp
1742install-pdf-target: maybe-install-pdf-target-newlib
1743install-pdf-target: maybe-install-pdf-target-libgcc
2bf680c4 1744install-pdf-target: maybe-install-pdf-target-libbacktrace
e552509b 1745install-pdf-target: maybe-install-pdf-target-libquadmath
a3ca38d2
DD
1746install-pdf-target: maybe-install-pdf-target-libgfortran
1747install-pdf-target: maybe-install-pdf-target-libobjc
e552509b 1748install-pdf-target: maybe-install-pdf-target-libgo
a3ca38d2
DD
1749install-pdf-target: maybe-install-pdf-target-libtermcap
1750install-pdf-target: maybe-install-pdf-target-winsup
1751install-pdf-target: maybe-install-pdf-target-libgloss
a3ca38d2
DD
1752install-pdf-target: maybe-install-pdf-target-libffi
1753install-pdf-target: maybe-install-pdf-target-libjava
1754install-pdf-target: maybe-install-pdf-target-zlib
1755install-pdf-target: maybe-install-pdf-target-boehm-gc
a3ca38d2
DD
1756install-pdf-target: maybe-install-pdf-target-rda
1757install-pdf-target: maybe-install-pdf-target-libada
1758install-pdf-target: maybe-install-pdf-target-libgomp
7ec59b9e
L
1759install-pdf-target: maybe-install-pdf-target-libitm
1760install-pdf-target: maybe-install-pdf-target-libatomic
a3ca38d2 1761
108a6f8e
CD
1762.PHONY: do-install-html
1763do-install-html:
1764 @: $(MAKE); $(unstage)
1765 @r=`${PWD_COMMAND}`; export r; \
1766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1767 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1768 install-html-target
1769
1770
1771.PHONY: install-html-host
1772
108a6f8e
CD
1773install-html-host: maybe-install-html-bfd
1774install-html-host: maybe-install-html-opcodes
1775install-html-host: maybe-install-html-binutils
1776install-html-host: maybe-install-html-bison
f9806fa5 1777install-html-host: maybe-install-html-cgen
108a6f8e 1778install-html-host: maybe-install-html-dejagnu
108a6f8e
CD
1779install-html-host: maybe-install-html-etc
1780install-html-host: maybe-install-html-fastjar
108a6f8e
CD
1781install-html-host: maybe-install-html-fixincludes
1782install-html-host: maybe-install-html-flex
1783install-html-host: maybe-install-html-gas
1784install-html-host: maybe-install-html-gcc
4b900473
PB
1785install-html-host: maybe-install-html-gmp
1786install-html-host: maybe-install-html-mpfr
e8a5fa9c 1787install-html-host: maybe-install-html-mpc
7ec59b9e 1788install-html-host: maybe-install-html-isl
1f53ca9a 1789install-html-host: maybe-install-html-libelf
93f9b408 1790install-html-host: maybe-install-html-gold
108a6f8e 1791install-html-host: maybe-install-html-gprof
108a6f8e
CD
1792install-html-host: maybe-install-html-intl
1793install-html-host: maybe-install-html-tcl
1794install-html-host: maybe-install-html-itcl
1795install-html-host: maybe-install-html-ld
2bf680c4 1796install-html-host: maybe-install-html-libbacktrace
108a6f8e
CD
1797install-html-host: maybe-install-html-libcpp
1798install-html-host: maybe-install-html-libdecnumber
1799install-html-host: maybe-install-html-libgui
1800install-html-host: maybe-install-html-libiberty
1b6c0831 1801install-html-host: maybe-install-html-libiberty-linker-plugin
dc448a7b 1802install-html-host: maybe-install-html-libiconv
108a6f8e 1803install-html-host: maybe-install-html-m4
108a6f8e 1804install-html-host: maybe-install-html-readline
108a6f8e
CD
1805install-html-host: maybe-install-html-sid
1806install-html-host: maybe-install-html-sim
108a6f8e 1807install-html-host: maybe-install-html-texinfo
108a6f8e
CD
1808install-html-host: maybe-install-html-zlib
1809install-html-host: maybe-install-html-gdb
1810install-html-host: maybe-install-html-expect
1811install-html-host: maybe-install-html-guile
1812install-html-host: maybe-install-html-tk
1813install-html-host: maybe-install-html-libtermcap
1814install-html-host: maybe-install-html-utils
1815install-html-host: maybe-install-html-gnattools
700d40ca 1816install-html-host: maybe-install-html-lto-plugin
1b6c0831
L
1817install-html-host: maybe-install-html-libcc1
1818install-html-host: maybe-install-html-gotools
108a6f8e
CD
1819
1820.PHONY: install-html-target
1821
1822install-html-target: maybe-install-html-target-libstdc++-v3
5286fdef 1823install-html-target: maybe-install-html-target-libsanitizer
1b6c0831 1824install-html-target: maybe-install-html-target-libmpx
95e43135 1825install-html-target: maybe-install-html-target-libvtv
e78e02e6 1826install-html-target: maybe-install-html-target-libcilkrts
1b6c0831 1827install-html-target: maybe-install-html-target-liboffloadmic
108a6f8e 1828install-html-target: maybe-install-html-target-libssp
108a6f8e 1829install-html-target: maybe-install-html-target-newlib
6aa8ef82 1830install-html-target: maybe-install-html-target-libgcc
2bf680c4 1831install-html-target: maybe-install-html-target-libbacktrace
e552509b 1832install-html-target: maybe-install-html-target-libquadmath
108a6f8e
CD
1833install-html-target: maybe-install-html-target-libgfortran
1834install-html-target: maybe-install-html-target-libobjc
e552509b 1835install-html-target: maybe-install-html-target-libgo
108a6f8e
CD
1836install-html-target: maybe-install-html-target-libtermcap
1837install-html-target: maybe-install-html-target-winsup
1838install-html-target: maybe-install-html-target-libgloss
108a6f8e
CD
1839install-html-target: maybe-install-html-target-libffi
1840install-html-target: maybe-install-html-target-libjava
1841install-html-target: maybe-install-html-target-zlib
1842install-html-target: maybe-install-html-target-boehm-gc
108a6f8e
CD
1843install-html-target: maybe-install-html-target-rda
1844install-html-target: maybe-install-html-target-libada
1845install-html-target: maybe-install-html-target-libgomp
7ec59b9e
L
1846install-html-target: maybe-install-html-target-libitm
1847install-html-target: maybe-install-html-target-libatomic
108a6f8e 1848
2a4cbe27 1849.PHONY: do-installcheck
f70224b5 1850do-installcheck:
0aed8855 1851 @: $(MAKE); $(unstage)
e360f423
PB
1852 @r=`${PWD_COMMAND}`; export r; \
1853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1854 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
f70224b5 1855 installcheck-target
f70224b5 1856
2a4cbe27
NN
1857
1858.PHONY: installcheck-host
c52c6897 1859
c52c6897
PB
1860installcheck-host: maybe-installcheck-bfd
1861installcheck-host: maybe-installcheck-opcodes
1862installcheck-host: maybe-installcheck-binutils
1863installcheck-host: maybe-installcheck-bison
f9806fa5 1864installcheck-host: maybe-installcheck-cgen
c52c6897 1865installcheck-host: maybe-installcheck-dejagnu
c52c6897
PB
1866installcheck-host: maybe-installcheck-etc
1867installcheck-host: maybe-installcheck-fastjar
c52c6897
PB
1868installcheck-host: maybe-installcheck-fixincludes
1869installcheck-host: maybe-installcheck-flex
1870installcheck-host: maybe-installcheck-gas
1871installcheck-host: maybe-installcheck-gcc
4b900473
PB
1872installcheck-host: maybe-installcheck-gmp
1873installcheck-host: maybe-installcheck-mpfr
e8a5fa9c 1874installcheck-host: maybe-installcheck-mpc
7ec59b9e 1875installcheck-host: maybe-installcheck-isl
1f53ca9a 1876installcheck-host: maybe-installcheck-libelf
93f9b408 1877installcheck-host: maybe-installcheck-gold
c52c6897 1878installcheck-host: maybe-installcheck-gprof
c52c6897
PB
1879installcheck-host: maybe-installcheck-intl
1880installcheck-host: maybe-installcheck-tcl
1881installcheck-host: maybe-installcheck-itcl
1882installcheck-host: maybe-installcheck-ld
2bf680c4 1883installcheck-host: maybe-installcheck-libbacktrace
c52c6897
PB
1884installcheck-host: maybe-installcheck-libcpp
1885installcheck-host: maybe-installcheck-libdecnumber
1886installcheck-host: maybe-installcheck-libgui
1887installcheck-host: maybe-installcheck-libiberty
1b6c0831 1888installcheck-host: maybe-installcheck-libiberty-linker-plugin
dc448a7b 1889installcheck-host: maybe-installcheck-libiconv
c52c6897 1890installcheck-host: maybe-installcheck-m4
c52c6897 1891installcheck-host: maybe-installcheck-readline
c52c6897
PB
1892installcheck-host: maybe-installcheck-sid
1893installcheck-host: maybe-installcheck-sim
c52c6897 1894installcheck-host: maybe-installcheck-texinfo
c52c6897
PB
1895installcheck-host: maybe-installcheck-zlib
1896installcheck-host: maybe-installcheck-gdb
1897installcheck-host: maybe-installcheck-expect
1898installcheck-host: maybe-installcheck-guile
1899installcheck-host: maybe-installcheck-tk
1900installcheck-host: maybe-installcheck-libtermcap
1901installcheck-host: maybe-installcheck-utils
1902installcheck-host: maybe-installcheck-gnattools
700d40ca 1903installcheck-host: maybe-installcheck-lto-plugin
1b6c0831
L
1904installcheck-host: maybe-installcheck-libcc1
1905installcheck-host: maybe-installcheck-gotools
2a4cbe27
NN
1906
1907.PHONY: installcheck-target
c52c6897
PB
1908
1909installcheck-target: maybe-installcheck-target-libstdc++-v3
5286fdef 1910installcheck-target: maybe-installcheck-target-libsanitizer
1b6c0831 1911installcheck-target: maybe-installcheck-target-libmpx
95e43135 1912installcheck-target: maybe-installcheck-target-libvtv
e78e02e6 1913installcheck-target: maybe-installcheck-target-libcilkrts
1b6c0831 1914installcheck-target: maybe-installcheck-target-liboffloadmic
c52c6897 1915installcheck-target: maybe-installcheck-target-libssp
c52c6897 1916installcheck-target: maybe-installcheck-target-newlib
6aa8ef82 1917installcheck-target: maybe-installcheck-target-libgcc
2bf680c4 1918installcheck-target: maybe-installcheck-target-libbacktrace
e552509b 1919installcheck-target: maybe-installcheck-target-libquadmath
c52c6897
PB
1920installcheck-target: maybe-installcheck-target-libgfortran
1921installcheck-target: maybe-installcheck-target-libobjc
e552509b 1922installcheck-target: maybe-installcheck-target-libgo
c52c6897
PB
1923installcheck-target: maybe-installcheck-target-libtermcap
1924installcheck-target: maybe-installcheck-target-winsup
1925installcheck-target: maybe-installcheck-target-libgloss
c52c6897
PB
1926installcheck-target: maybe-installcheck-target-libffi
1927installcheck-target: maybe-installcheck-target-libjava
1928installcheck-target: maybe-installcheck-target-zlib
1929installcheck-target: maybe-installcheck-target-boehm-gc
c52c6897
PB
1930installcheck-target: maybe-installcheck-target-rda
1931installcheck-target: maybe-installcheck-target-libada
1932installcheck-target: maybe-installcheck-target-libgomp
7ec59b9e
L
1933installcheck-target: maybe-installcheck-target-libitm
1934installcheck-target: maybe-installcheck-target-libatomic
2a4cbe27 1935
4fa63067 1936.PHONY: do-mostlyclean
f70224b5 1937do-mostlyclean:
0aed8855 1938 @: $(MAKE); $(unstage)
e360f423
PB
1939 @r=`${PWD_COMMAND}`; export r; \
1940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1941 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
f70224b5 1942 mostlyclean-target
f70224b5 1943
2a4cbe27 1944
4fa63067 1945.PHONY: mostlyclean-host
c52c6897 1946
c52c6897
PB
1947mostlyclean-host: maybe-mostlyclean-bfd
1948mostlyclean-host: maybe-mostlyclean-opcodes
1949mostlyclean-host: maybe-mostlyclean-binutils
1950mostlyclean-host: maybe-mostlyclean-bison
f9806fa5 1951mostlyclean-host: maybe-mostlyclean-cgen
c52c6897 1952mostlyclean-host: maybe-mostlyclean-dejagnu
c52c6897
PB
1953mostlyclean-host: maybe-mostlyclean-etc
1954mostlyclean-host: maybe-mostlyclean-fastjar
c52c6897
PB
1955mostlyclean-host: maybe-mostlyclean-fixincludes
1956mostlyclean-host: maybe-mostlyclean-flex
1957mostlyclean-host: maybe-mostlyclean-gas
1958mostlyclean-host: maybe-mostlyclean-gcc
4b900473
PB
1959mostlyclean-host: maybe-mostlyclean-gmp
1960mostlyclean-host: maybe-mostlyclean-mpfr
e8a5fa9c 1961mostlyclean-host: maybe-mostlyclean-mpc
7ec59b9e 1962mostlyclean-host: maybe-mostlyclean-isl
1f53ca9a 1963mostlyclean-host: maybe-mostlyclean-libelf
93f9b408 1964mostlyclean-host: maybe-mostlyclean-gold
c52c6897 1965mostlyclean-host: maybe-mostlyclean-gprof
c52c6897
PB
1966mostlyclean-host: maybe-mostlyclean-intl
1967mostlyclean-host: maybe-mostlyclean-tcl
1968mostlyclean-host: maybe-mostlyclean-itcl
1969mostlyclean-host: maybe-mostlyclean-ld
2bf680c4 1970mostlyclean-host: maybe-mostlyclean-libbacktrace
c52c6897
PB
1971mostlyclean-host: maybe-mostlyclean-libcpp
1972mostlyclean-host: maybe-mostlyclean-libdecnumber
1973mostlyclean-host: maybe-mostlyclean-libgui
1974mostlyclean-host: maybe-mostlyclean-libiberty
1b6c0831 1975mostlyclean-host: maybe-mostlyclean-libiberty-linker-plugin
dc448a7b 1976mostlyclean-host: maybe-mostlyclean-libiconv
c52c6897 1977mostlyclean-host: maybe-mostlyclean-m4
c52c6897 1978mostlyclean-host: maybe-mostlyclean-readline
c52c6897
PB
1979mostlyclean-host: maybe-mostlyclean-sid
1980mostlyclean-host: maybe-mostlyclean-sim
c52c6897 1981mostlyclean-host: maybe-mostlyclean-texinfo
c52c6897
PB
1982mostlyclean-host: maybe-mostlyclean-zlib
1983mostlyclean-host: maybe-mostlyclean-gdb
1984mostlyclean-host: maybe-mostlyclean-expect
1985mostlyclean-host: maybe-mostlyclean-guile
1986mostlyclean-host: maybe-mostlyclean-tk
1987mostlyclean-host: maybe-mostlyclean-libtermcap
1988mostlyclean-host: maybe-mostlyclean-utils
1989mostlyclean-host: maybe-mostlyclean-gnattools
700d40ca 1990mostlyclean-host: maybe-mostlyclean-lto-plugin
1b6c0831
L
1991mostlyclean-host: maybe-mostlyclean-libcc1
1992mostlyclean-host: maybe-mostlyclean-gotools
2a4cbe27 1993
4fa63067 1994.PHONY: mostlyclean-target
c52c6897
PB
1995
1996mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
5286fdef 1997mostlyclean-target: maybe-mostlyclean-target-libsanitizer
1b6c0831 1998mostlyclean-target: maybe-mostlyclean-target-libmpx
95e43135 1999mostlyclean-target: maybe-mostlyclean-target-libvtv
e78e02e6 2000mostlyclean-target: maybe-mostlyclean-target-libcilkrts
1b6c0831 2001mostlyclean-target: maybe-mostlyclean-target-liboffloadmic
c52c6897 2002mostlyclean-target: maybe-mostlyclean-target-libssp
c52c6897 2003mostlyclean-target: maybe-mostlyclean-target-newlib
6aa8ef82 2004mostlyclean-target: maybe-mostlyclean-target-libgcc
2bf680c4 2005mostlyclean-target: maybe-mostlyclean-target-libbacktrace
e552509b 2006mostlyclean-target: maybe-mostlyclean-target-libquadmath
c52c6897
PB
2007mostlyclean-target: maybe-mostlyclean-target-libgfortran
2008mostlyclean-target: maybe-mostlyclean-target-libobjc
e552509b 2009mostlyclean-target: maybe-mostlyclean-target-libgo
c52c6897
PB
2010mostlyclean-target: maybe-mostlyclean-target-libtermcap
2011mostlyclean-target: maybe-mostlyclean-target-winsup
2012mostlyclean-target: maybe-mostlyclean-target-libgloss
c52c6897
PB
2013mostlyclean-target: maybe-mostlyclean-target-libffi
2014mostlyclean-target: maybe-mostlyclean-target-libjava
2015mostlyclean-target: maybe-mostlyclean-target-zlib
2016mostlyclean-target: maybe-mostlyclean-target-boehm-gc
c52c6897
PB
2017mostlyclean-target: maybe-mostlyclean-target-rda
2018mostlyclean-target: maybe-mostlyclean-target-libada
2019mostlyclean-target: maybe-mostlyclean-target-libgomp
7ec59b9e
L
2020mostlyclean-target: maybe-mostlyclean-target-libitm
2021mostlyclean-target: maybe-mostlyclean-target-libatomic
2a4cbe27 2022
4fa63067 2023.PHONY: do-clean
f70224b5 2024do-clean:
0aed8855 2025 @: $(MAKE); $(unstage)
e360f423
PB
2026 @r=`${PWD_COMMAND}`; export r; \
2027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2028 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
f70224b5 2029 clean-target
f70224b5 2030
2a4cbe27 2031
4fa63067 2032.PHONY: clean-host
c52c6897 2033
c52c6897
PB
2034clean-host: maybe-clean-bfd
2035clean-host: maybe-clean-opcodes
2036clean-host: maybe-clean-binutils
2037clean-host: maybe-clean-bison
f9806fa5 2038clean-host: maybe-clean-cgen
c52c6897 2039clean-host: maybe-clean-dejagnu
c52c6897
PB
2040clean-host: maybe-clean-etc
2041clean-host: maybe-clean-fastjar
c52c6897
PB
2042clean-host: maybe-clean-fixincludes
2043clean-host: maybe-clean-flex
2044clean-host: maybe-clean-gas
2045clean-host: maybe-clean-gcc
4b900473
PB
2046clean-host: maybe-clean-gmp
2047clean-host: maybe-clean-mpfr
e8a5fa9c 2048clean-host: maybe-clean-mpc
7ec59b9e 2049clean-host: maybe-clean-isl
1f53ca9a 2050clean-host: maybe-clean-libelf
93f9b408 2051clean-host: maybe-clean-gold
c52c6897 2052clean-host: maybe-clean-gprof
c52c6897
PB
2053clean-host: maybe-clean-intl
2054clean-host: maybe-clean-tcl
2055clean-host: maybe-clean-itcl
2056clean-host: maybe-clean-ld
2bf680c4 2057clean-host: maybe-clean-libbacktrace
c52c6897
PB
2058clean-host: maybe-clean-libcpp
2059clean-host: maybe-clean-libdecnumber
2060clean-host: maybe-clean-libgui
2061clean-host: maybe-clean-libiberty
1b6c0831 2062clean-host: maybe-clean-libiberty-linker-plugin
dc448a7b 2063clean-host: maybe-clean-libiconv
c52c6897 2064clean-host: maybe-clean-m4
c52c6897 2065clean-host: maybe-clean-readline
c52c6897
PB
2066clean-host: maybe-clean-sid
2067clean-host: maybe-clean-sim
c52c6897 2068clean-host: maybe-clean-texinfo
c52c6897
PB
2069clean-host: maybe-clean-zlib
2070clean-host: maybe-clean-gdb
2071clean-host: maybe-clean-expect
2072clean-host: maybe-clean-guile
2073clean-host: maybe-clean-tk
2074clean-host: maybe-clean-libtermcap
2075clean-host: maybe-clean-utils
2076clean-host: maybe-clean-gnattools
700d40ca 2077clean-host: maybe-clean-lto-plugin
1b6c0831
L
2078clean-host: maybe-clean-libcc1
2079clean-host: maybe-clean-gotools
2a4cbe27 2080
4fa63067 2081.PHONY: clean-target
c52c6897
PB
2082
2083clean-target: maybe-clean-target-libstdc++-v3
5286fdef 2084clean-target: maybe-clean-target-libsanitizer
1b6c0831 2085clean-target: maybe-clean-target-libmpx
95e43135 2086clean-target: maybe-clean-target-libvtv
e78e02e6 2087clean-target: maybe-clean-target-libcilkrts
1b6c0831 2088clean-target: maybe-clean-target-liboffloadmic
c52c6897 2089clean-target: maybe-clean-target-libssp
c52c6897 2090clean-target: maybe-clean-target-newlib
6aa8ef82 2091clean-target: maybe-clean-target-libgcc
2bf680c4 2092clean-target: maybe-clean-target-libbacktrace
e552509b 2093clean-target: maybe-clean-target-libquadmath
c52c6897
PB
2094clean-target: maybe-clean-target-libgfortran
2095clean-target: maybe-clean-target-libobjc
e552509b 2096clean-target: maybe-clean-target-libgo
c52c6897
PB
2097clean-target: maybe-clean-target-libtermcap
2098clean-target: maybe-clean-target-winsup
2099clean-target: maybe-clean-target-libgloss
c52c6897
PB
2100clean-target: maybe-clean-target-libffi
2101clean-target: maybe-clean-target-libjava
2102clean-target: maybe-clean-target-zlib
2103clean-target: maybe-clean-target-boehm-gc
c52c6897
PB
2104clean-target: maybe-clean-target-rda
2105clean-target: maybe-clean-target-libada
2106clean-target: maybe-clean-target-libgomp
7ec59b9e
L
2107clean-target: maybe-clean-target-libitm
2108clean-target: maybe-clean-target-libatomic
2a4cbe27 2109
4fa63067 2110.PHONY: do-distclean
f70224b5 2111do-distclean:
0aed8855 2112 @: $(MAKE); $(unstage)
e360f423
PB
2113 @r=`${PWD_COMMAND}`; export r; \
2114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2115 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
f70224b5 2116 distclean-target
f70224b5 2117
2a4cbe27 2118
4fa63067 2119.PHONY: distclean-host
c52c6897 2120
c52c6897
PB
2121distclean-host: maybe-distclean-bfd
2122distclean-host: maybe-distclean-opcodes
2123distclean-host: maybe-distclean-binutils
2124distclean-host: maybe-distclean-bison
f9806fa5 2125distclean-host: maybe-distclean-cgen
c52c6897 2126distclean-host: maybe-distclean-dejagnu
c52c6897
PB
2127distclean-host: maybe-distclean-etc
2128distclean-host: maybe-distclean-fastjar
c52c6897
PB
2129distclean-host: maybe-distclean-fixincludes
2130distclean-host: maybe-distclean-flex
2131distclean-host: maybe-distclean-gas
2132distclean-host: maybe-distclean-gcc
4b900473
PB
2133distclean-host: maybe-distclean-gmp
2134distclean-host: maybe-distclean-mpfr
e8a5fa9c 2135distclean-host: maybe-distclean-mpc
7ec59b9e 2136distclean-host: maybe-distclean-isl
1f53ca9a 2137distclean-host: maybe-distclean-libelf
93f9b408 2138distclean-host: maybe-distclean-gold
c52c6897 2139distclean-host: maybe-distclean-gprof
c52c6897
PB
2140distclean-host: maybe-distclean-intl
2141distclean-host: maybe-distclean-tcl
2142distclean-host: maybe-distclean-itcl
2143distclean-host: maybe-distclean-ld
2bf680c4 2144distclean-host: maybe-distclean-libbacktrace
c52c6897
PB
2145distclean-host: maybe-distclean-libcpp
2146distclean-host: maybe-distclean-libdecnumber
2147distclean-host: maybe-distclean-libgui
2148distclean-host: maybe-distclean-libiberty
1b6c0831 2149distclean-host: maybe-distclean-libiberty-linker-plugin
dc448a7b 2150distclean-host: maybe-distclean-libiconv
c52c6897 2151distclean-host: maybe-distclean-m4
c52c6897 2152distclean-host: maybe-distclean-readline
c52c6897
PB
2153distclean-host: maybe-distclean-sid
2154distclean-host: maybe-distclean-sim
c52c6897 2155distclean-host: maybe-distclean-texinfo
c52c6897
PB
2156distclean-host: maybe-distclean-zlib
2157distclean-host: maybe-distclean-gdb
2158distclean-host: maybe-distclean-expect
2159distclean-host: maybe-distclean-guile
2160distclean-host: maybe-distclean-tk
2161distclean-host: maybe-distclean-libtermcap
2162distclean-host: maybe-distclean-utils
2163distclean-host: maybe-distclean-gnattools
700d40ca 2164distclean-host: maybe-distclean-lto-plugin
1b6c0831
L
2165distclean-host: maybe-distclean-libcc1
2166distclean-host: maybe-distclean-gotools
2a4cbe27 2167
4fa63067 2168.PHONY: distclean-target
c52c6897
PB
2169
2170distclean-target: maybe-distclean-target-libstdc++-v3
5286fdef 2171distclean-target: maybe-distclean-target-libsanitizer
1b6c0831 2172distclean-target: maybe-distclean-target-libmpx
95e43135 2173distclean-target: maybe-distclean-target-libvtv
e78e02e6 2174distclean-target: maybe-distclean-target-libcilkrts
1b6c0831 2175distclean-target: maybe-distclean-target-liboffloadmic
c52c6897 2176distclean-target: maybe-distclean-target-libssp
c52c6897 2177distclean-target: maybe-distclean-target-newlib
6aa8ef82 2178distclean-target: maybe-distclean-target-libgcc
2bf680c4 2179distclean-target: maybe-distclean-target-libbacktrace
e552509b 2180distclean-target: maybe-distclean-target-libquadmath
c52c6897
PB
2181distclean-target: maybe-distclean-target-libgfortran
2182distclean-target: maybe-distclean-target-libobjc
e552509b 2183distclean-target: maybe-distclean-target-libgo
c52c6897
PB
2184distclean-target: maybe-distclean-target-libtermcap
2185distclean-target: maybe-distclean-target-winsup
2186distclean-target: maybe-distclean-target-libgloss
c52c6897
PB
2187distclean-target: maybe-distclean-target-libffi
2188distclean-target: maybe-distclean-target-libjava
2189distclean-target: maybe-distclean-target-zlib
2190distclean-target: maybe-distclean-target-boehm-gc
c52c6897
PB
2191distclean-target: maybe-distclean-target-rda
2192distclean-target: maybe-distclean-target-libada
2193distclean-target: maybe-distclean-target-libgomp
7ec59b9e
L
2194distclean-target: maybe-distclean-target-libitm
2195distclean-target: maybe-distclean-target-libatomic
2a4cbe27 2196
4fa63067 2197.PHONY: do-maintainer-clean
f70224b5 2198do-maintainer-clean:
0aed8855 2199 @: $(MAKE); $(unstage)
e360f423
PB
2200 @r=`${PWD_COMMAND}`; export r; \
2201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2202 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
f70224b5 2203 maintainer-clean-target
f70224b5 2204
2a4cbe27 2205
4fa63067 2206.PHONY: maintainer-clean-host
c52c6897 2207
c52c6897
PB
2208maintainer-clean-host: maybe-maintainer-clean-bfd
2209maintainer-clean-host: maybe-maintainer-clean-opcodes
2210maintainer-clean-host: maybe-maintainer-clean-binutils
2211maintainer-clean-host: maybe-maintainer-clean-bison
f9806fa5 2212maintainer-clean-host: maybe-maintainer-clean-cgen
c52c6897 2213maintainer-clean-host: maybe-maintainer-clean-dejagnu
c52c6897
PB
2214maintainer-clean-host: maybe-maintainer-clean-etc
2215maintainer-clean-host: maybe-maintainer-clean-fastjar
c52c6897
PB
2216maintainer-clean-host: maybe-maintainer-clean-fixincludes
2217maintainer-clean-host: maybe-maintainer-clean-flex
2218maintainer-clean-host: maybe-maintainer-clean-gas
2219maintainer-clean-host: maybe-maintainer-clean-gcc
4b900473
PB
2220maintainer-clean-host: maybe-maintainer-clean-gmp
2221maintainer-clean-host: maybe-maintainer-clean-mpfr
e8a5fa9c 2222maintainer-clean-host: maybe-maintainer-clean-mpc
7ec59b9e 2223maintainer-clean-host: maybe-maintainer-clean-isl
1f53ca9a 2224maintainer-clean-host: maybe-maintainer-clean-libelf
93f9b408 2225maintainer-clean-host: maybe-maintainer-clean-gold
c52c6897 2226maintainer-clean-host: maybe-maintainer-clean-gprof
c52c6897
PB
2227maintainer-clean-host: maybe-maintainer-clean-intl
2228maintainer-clean-host: maybe-maintainer-clean-tcl
2229maintainer-clean-host: maybe-maintainer-clean-itcl
2230maintainer-clean-host: maybe-maintainer-clean-ld
2bf680c4 2231maintainer-clean-host: maybe-maintainer-clean-libbacktrace
c52c6897
PB
2232maintainer-clean-host: maybe-maintainer-clean-libcpp
2233maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2234maintainer-clean-host: maybe-maintainer-clean-libgui
2235maintainer-clean-host: maybe-maintainer-clean-libiberty
1b6c0831 2236maintainer-clean-host: maybe-maintainer-clean-libiberty-linker-plugin
dc448a7b 2237maintainer-clean-host: maybe-maintainer-clean-libiconv
c52c6897 2238maintainer-clean-host: maybe-maintainer-clean-m4
c52c6897 2239maintainer-clean-host: maybe-maintainer-clean-readline
c52c6897
PB
2240maintainer-clean-host: maybe-maintainer-clean-sid
2241maintainer-clean-host: maybe-maintainer-clean-sim
c52c6897 2242maintainer-clean-host: maybe-maintainer-clean-texinfo
c52c6897
PB
2243maintainer-clean-host: maybe-maintainer-clean-zlib
2244maintainer-clean-host: maybe-maintainer-clean-gdb
2245maintainer-clean-host: maybe-maintainer-clean-expect
2246maintainer-clean-host: maybe-maintainer-clean-guile
2247maintainer-clean-host: maybe-maintainer-clean-tk
2248maintainer-clean-host: maybe-maintainer-clean-libtermcap
2249maintainer-clean-host: maybe-maintainer-clean-utils
2250maintainer-clean-host: maybe-maintainer-clean-gnattools
700d40ca 2251maintainer-clean-host: maybe-maintainer-clean-lto-plugin
1b6c0831
L
2252maintainer-clean-host: maybe-maintainer-clean-libcc1
2253maintainer-clean-host: maybe-maintainer-clean-gotools
2a4cbe27 2254
4fa63067 2255.PHONY: maintainer-clean-target
c52c6897
PB
2256
2257maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
5286fdef 2258maintainer-clean-target: maybe-maintainer-clean-target-libsanitizer
1b6c0831 2259maintainer-clean-target: maybe-maintainer-clean-target-libmpx
95e43135 2260maintainer-clean-target: maybe-maintainer-clean-target-libvtv
e78e02e6 2261maintainer-clean-target: maybe-maintainer-clean-target-libcilkrts
1b6c0831 2262maintainer-clean-target: maybe-maintainer-clean-target-liboffloadmic
c52c6897 2263maintainer-clean-target: maybe-maintainer-clean-target-libssp
c52c6897 2264maintainer-clean-target: maybe-maintainer-clean-target-newlib
6aa8ef82 2265maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2bf680c4 2266maintainer-clean-target: maybe-maintainer-clean-target-libbacktrace
e552509b 2267maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
c52c6897
PB
2268maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2269maintainer-clean-target: maybe-maintainer-clean-target-libobjc
e552509b 2270maintainer-clean-target: maybe-maintainer-clean-target-libgo
c52c6897
PB
2271maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2272maintainer-clean-target: maybe-maintainer-clean-target-winsup
2273maintainer-clean-target: maybe-maintainer-clean-target-libgloss
c52c6897
PB
2274maintainer-clean-target: maybe-maintainer-clean-target-libffi
2275maintainer-clean-target: maybe-maintainer-clean-target-libjava
2276maintainer-clean-target: maybe-maintainer-clean-target-zlib
2277maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
c52c6897
PB
2278maintainer-clean-target: maybe-maintainer-clean-target-rda
2279maintainer-clean-target: maybe-maintainer-clean-target-libada
2280maintainer-clean-target: maybe-maintainer-clean-target-libgomp
7ec59b9e
L
2281maintainer-clean-target: maybe-maintainer-clean-target-libitm
2282maintainer-clean-target: maybe-maintainer-clean-target-libatomic
2a4cbe27 2283
2a4cbe27 2284
4fa63067 2285# Here are the targets which correspond to the do-X targets.
2a4cbe27 2286
a3ca38d2
DD
2287.PHONY: info installcheck dvi pdf html
2288.PHONY: install-info install-pdf install-html
4fa63067
NN
2289.PHONY: clean distclean mostlyclean maintainer-clean realclean
2290.PHONY: local-clean local-distclean local-maintainer-clean
2291info: do-info
2292installcheck: do-installcheck
2293dvi: do-dvi
56a8fe78 2294pdf: do-pdf
6d389afc 2295html: do-html
2a4cbe27 2296
4fa63067
NN
2297# Make sure makeinfo is built before we do a `make info', if we're
2298# in fact building texinfo.
2299do-info: maybe-all-texinfo
2a4cbe27 2300
4fa63067 2301install-info: do-install-info dir.info
b40e3958 2302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
2303 if [ -f dir.info ]; then \
2304 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info; \
2305 else true; fi
2a4cbe27 2306
a3ca38d2
DD
2307install-pdf: do-install-pdf
2308
108a6f8e
CD
2309install-html: do-install-html
2310
4fa63067
NN
2311local-clean:
2312 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2a4cbe27 2313
4fa63067
NN
2314local-distclean:
2315 -rm -f Makefile config.status config.cache mh-frag mt-frag
0aed8855 2316 -rm -f maybedep.tmp serdep.tmp
4fa63067
NN
2317 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2318 rm -rf $(TARGET_SUBDIR); \
2319 else true; fi
2320 -rm -rf $(BUILD_SUBDIR)
b00612cc
PB
2321 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2322 rm -rf $(HOST_SUBDIR); \
2323 else true; fi
4fa63067
NN
2324 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2325 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2326 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2327 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
2328 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
18fa8f9c 2329 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a4cbe27 2330
4fa63067
NN
2331local-maintainer-clean:
2332 @echo "This command is intended for maintainers to use;"
2333 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 2334
4fa63067
NN
2335clean: do-clean local-clean
2336mostlyclean: do-mostlyclean local-clean
2337distclean: do-distclean local-clean local-distclean
2338maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2339maintainer-clean: local-distclean
2340realclean: maintainer-clean
2a4cbe27 2341
4fa63067 2342# Check target.
2a4cbe27 2343
4fa63067
NN
2344.PHONY: check do-check
2345check: do-check
2a4cbe27 2346
4fa63067 2347# Only include modules actually being configured and built.
f70224b5
PB
2348.PHONY: check-host
2349check-host: \
4fa63067
NN
2350 maybe-check-bfd \
2351 maybe-check-opcodes \
2352 maybe-check-binutils \
2353 maybe-check-bison \
f9806fa5 2354 maybe-check-cgen \
4fa63067 2355 maybe-check-dejagnu \
4fa63067
NN
2356 maybe-check-etc \
2357 maybe-check-fastjar \
d3ed111c 2358 maybe-check-fixincludes \
4fa63067
NN
2359 maybe-check-flex \
2360 maybe-check-gas \
b813574b 2361 maybe-check-gcc \
4b900473
PB
2362 maybe-check-gmp \
2363 maybe-check-mpfr \
e8a5fa9c 2364 maybe-check-mpc \
7ec59b9e 2365 maybe-check-isl \
1f53ca9a 2366 maybe-check-libelf \
93f9b408 2367 maybe-check-gold \
4fa63067 2368 maybe-check-gprof \
4fa63067
NN
2369 maybe-check-intl \
2370 maybe-check-tcl \
2371 maybe-check-itcl \
2372 maybe-check-ld \
2bf680c4 2373 maybe-check-libbacktrace \
04cf1b77 2374 maybe-check-libcpp \
be01d343 2375 maybe-check-libdecnumber \
4fa63067
NN
2376 maybe-check-libgui \
2377 maybe-check-libiberty \
1b6c0831 2378 maybe-check-libiberty-linker-plugin \
dc448a7b 2379 maybe-check-libiconv \
4fa63067 2380 maybe-check-m4 \
4fa63067 2381 maybe-check-readline \
4fa63067
NN
2382 maybe-check-sid \
2383 maybe-check-sim \
4fa63067 2384 maybe-check-texinfo \
4fa63067
NN
2385 maybe-check-zlib \
2386 maybe-check-gdb \
2387 maybe-check-expect \
2388 maybe-check-guile \
2389 maybe-check-tk \
4fa63067
NN
2390 maybe-check-libtermcap \
2391 maybe-check-utils \
700d40ca 2392 maybe-check-gnattools \
1b6c0831
L
2393 maybe-check-lto-plugin \
2394 maybe-check-libcc1 \
2395 maybe-check-gotools
f70224b5
PB
2396
2397.PHONY: check-target
2398check-target: \
4fa63067 2399 maybe-check-target-libstdc++-v3 \
5286fdef 2400 maybe-check-target-libsanitizer \
1b6c0831 2401 maybe-check-target-libmpx \
95e43135 2402 maybe-check-target-libvtv \
e78e02e6 2403 maybe-check-target-libcilkrts \
1b6c0831 2404 maybe-check-target-liboffloadmic \
064d0a7c 2405 maybe-check-target-libssp \
4fa63067 2406 maybe-check-target-newlib \
6aa8ef82 2407 maybe-check-target-libgcc \
2bf680c4 2408 maybe-check-target-libbacktrace \
e552509b 2409 maybe-check-target-libquadmath \
4b1cb4fe 2410 maybe-check-target-libgfortran \
4fa63067 2411 maybe-check-target-libobjc \
e552509b 2412 maybe-check-target-libgo \
4fa63067
NN
2413 maybe-check-target-libtermcap \
2414 maybe-check-target-winsup \
2415 maybe-check-target-libgloss \
4fa63067
NN
2416 maybe-check-target-libffi \
2417 maybe-check-target-libjava \
2418 maybe-check-target-zlib \
2419 maybe-check-target-boehm-gc \
4fa63067 2420 maybe-check-target-rda \
b3ded179 2421 maybe-check-target-libada \
7ec59b9e
L
2422 maybe-check-target-libgomp \
2423 maybe-check-target-libitm \
2424 maybe-check-target-libatomic
f70224b5
PB
2425
2426do-check:
0aed8855 2427 @: $(MAKE); $(unstage)
e360f423
PB
2428 @r=`${PWD_COMMAND}`; export r; \
2429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2430 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a4cbe27 2431
4fa63067 2432# Automated reporting of test results.
2a4cbe27 2433
4fa63067
NN
2434warning.log: build.log
2435 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 2436
4fa63067
NN
2437mail-report.log:
2438 if test x'$(BOOT_CFLAGS)' != x''; then \
2439 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2440 fi; \
2441 $(srcdir)/contrib/test_summary -t >$@
2442 chmod +x $@
2443 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2444
4fa63067
NN
2445mail-report-with-warnings.log: warning.log
2446 if test x'$(BOOT_CFLAGS)' != x''; then \
2447 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2448 fi; \
2449 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2450 chmod +x $@
2451 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2452
1b6c0831
L
2453# Local Vim config
2454
2455$(srcdir)/.local.vimrc:
22121df0 2456 $(LN_S) contrib/vimrc $@
1b6c0831
L
2457
2458$(srcdir)/.lvimrc:
22121df0 2459 $(LN_S) contrib/vimrc $@
1b6c0831
L
2460
2461vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
2462
2463.PHONY: vimrc
2464
4849dfd8
NC
2465# clang-format config
2466
2467$(srcdir)/.clang-format:
2468 $(LN_S) contrib/clang-format $@
2469
2470clang-format: $(srcdir)/.clang-format
2471
2472.PHONY: clang-format
2473
4fa63067 2474# Installation targets.
2a4cbe27 2475
4fa63067 2476.PHONY: install uninstall
f70224b5 2477install:
0aed8855 2478 @: $(MAKE); $(unstage)
e360f423
PB
2479 @r=`${PWD_COMMAND}`; export r; \
2480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2481 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2a4cbe27 2482
4fa63067
NN
2483.PHONY: install-host-nogcc
2484install-host-nogcc: \
4fa63067
NN
2485 maybe-install-bfd \
2486 maybe-install-opcodes \
2487 maybe-install-binutils \
2488 maybe-install-bison \
f9806fa5 2489 maybe-install-cgen \
4fa63067 2490 maybe-install-dejagnu \
4fa63067
NN
2491 maybe-install-etc \
2492 maybe-install-fastjar \
d3ed111c 2493 maybe-install-fixincludes \
4fa63067
NN
2494 maybe-install-flex \
2495 maybe-install-gas \
4b900473
PB
2496 maybe-install-gmp \
2497 maybe-install-mpfr \
e8a5fa9c 2498 maybe-install-mpc \
7ec59b9e 2499 maybe-install-isl \
1f53ca9a 2500 maybe-install-libelf \
93f9b408 2501 maybe-install-gold \
4fa63067 2502 maybe-install-gprof \
4fa63067
NN
2503 maybe-install-intl \
2504 maybe-install-tcl \
2505 maybe-install-itcl \
2506 maybe-install-ld \
2bf680c4 2507 maybe-install-libbacktrace \
04cf1b77 2508 maybe-install-libcpp \
be01d343 2509 maybe-install-libdecnumber \
4fa63067
NN
2510 maybe-install-libgui \
2511 maybe-install-libiberty \
1b6c0831 2512 maybe-install-libiberty-linker-plugin \
dc448a7b 2513 maybe-install-libiconv \
4fa63067 2514 maybe-install-m4 \
4fa63067 2515 maybe-install-readline \
4fa63067
NN
2516 maybe-install-sid \
2517 maybe-install-sim \
4fa63067 2518 maybe-install-texinfo \
4fa63067
NN
2519 maybe-install-zlib \
2520 maybe-install-gdb \
2521 maybe-install-expect \
2522 maybe-install-guile \
2523 maybe-install-tk \
4fa63067 2524 maybe-install-libtermcap \
b00612cc 2525 maybe-install-utils \
700d40ca 2526 maybe-install-gnattools \
1b6c0831
L
2527 maybe-install-lto-plugin \
2528 maybe-install-libcc1 \
2529 maybe-install-gotools
2a4cbe27 2530
4fa63067 2531.PHONY: install-host
b813574b 2532install-host: \
4fa63067
NN
2533 maybe-install-bfd \
2534 maybe-install-opcodes \
2535 maybe-install-binutils \
2536 maybe-install-bison \
f9806fa5 2537 maybe-install-cgen \
4fa63067 2538 maybe-install-dejagnu \
4fa63067
NN
2539 maybe-install-etc \
2540 maybe-install-fastjar \
d3ed111c 2541 maybe-install-fixincludes \
4fa63067
NN
2542 maybe-install-flex \
2543 maybe-install-gas \
b813574b 2544 maybe-install-gcc \
4b900473
PB
2545 maybe-install-gmp \
2546 maybe-install-mpfr \
e8a5fa9c 2547 maybe-install-mpc \
7ec59b9e 2548 maybe-install-isl \
1f53ca9a 2549 maybe-install-libelf \
93f9b408 2550 maybe-install-gold \
4fa63067 2551 maybe-install-gprof \
4fa63067
NN
2552 maybe-install-intl \
2553 maybe-install-tcl \
2554 maybe-install-itcl \
2555 maybe-install-ld \
2bf680c4 2556 maybe-install-libbacktrace \
04cf1b77 2557 maybe-install-libcpp \
be01d343 2558 maybe-install-libdecnumber \
4fa63067
NN
2559 maybe-install-libgui \
2560 maybe-install-libiberty \
1b6c0831 2561 maybe-install-libiberty-linker-plugin \
dc448a7b 2562 maybe-install-libiconv \
4fa63067 2563 maybe-install-m4 \
4fa63067 2564 maybe-install-readline \
4fa63067
NN
2565 maybe-install-sid \
2566 maybe-install-sim \
4fa63067 2567 maybe-install-texinfo \
4fa63067
NN
2568 maybe-install-zlib \
2569 maybe-install-gdb \
2570 maybe-install-expect \
2571 maybe-install-guile \
2572 maybe-install-tk \
4fa63067 2573 maybe-install-libtermcap \
b00612cc 2574 maybe-install-utils \
700d40ca 2575 maybe-install-gnattools \
1b6c0831
L
2576 maybe-install-lto-plugin \
2577 maybe-install-libcc1 \
2578 maybe-install-gotools
2a4cbe27 2579
4fa63067
NN
2580.PHONY: install-target
2581install-target: \
2582 maybe-install-target-libstdc++-v3 \
5286fdef 2583 maybe-install-target-libsanitizer \
1b6c0831 2584 maybe-install-target-libmpx \
95e43135 2585 maybe-install-target-libvtv \
e78e02e6 2586 maybe-install-target-libcilkrts \
1b6c0831 2587 maybe-install-target-liboffloadmic \
064d0a7c 2588 maybe-install-target-libssp \
4fa63067 2589 maybe-install-target-newlib \
6aa8ef82 2590 maybe-install-target-libgcc \
2bf680c4 2591 maybe-install-target-libbacktrace \
e552509b 2592 maybe-install-target-libquadmath \
4b1cb4fe 2593 maybe-install-target-libgfortran \
4fa63067 2594 maybe-install-target-libobjc \
e552509b 2595 maybe-install-target-libgo \
4fa63067
NN
2596 maybe-install-target-libtermcap \
2597 maybe-install-target-winsup \
2598 maybe-install-target-libgloss \
4fa63067
NN
2599 maybe-install-target-libffi \
2600 maybe-install-target-libjava \
2601 maybe-install-target-zlib \
2602 maybe-install-target-boehm-gc \
4fa63067 2603 maybe-install-target-rda \
b3ded179 2604 maybe-install-target-libada \
7ec59b9e
L
2605 maybe-install-target-libgomp \
2606 maybe-install-target-libitm \
2607 maybe-install-target-libatomic
2a4cbe27 2608
4fa63067
NN
2609uninstall:
2610 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2611
4fa63067
NN
2612.PHONY: install.all
2613install.all: install-no-fixedincludes
22121df0
L
2614 @if [ -f ./gcc/Makefile ]; then \
2615 r=`${PWD_COMMAND}`; export r; \
0aed8855 2616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 2617 $(HOST_EXPORTS) \
4fa63067 2618 (cd ./gcc && \
22121df0 2619 $(MAKE) $(FLAGS_TO_PASS) install-headers); \
4fa63067 2620 else \
22121df0 2621 true; \
4fa63067 2622 fi
2a4cbe27 2623
7ec59b9e
L
2624# install-no-fixedincludes is used to allow the elaboration of binary packages
2625# suitable for distribution, where we cannot include the fixed system header
2626# files.
4fa63067
NN
2627.PHONY: install-no-fixedincludes
2628install-no-fixedincludes: installdirs install-host-nogcc \
7ec59b9e 2629 install-target gcc-install-no-fixedincludes
2a4cbe27 2630
9b980aa1
RW
2631.PHONY: install-strip
2632install-strip:
2633 @: $(MAKE); $(unstage)
2634 @r=`${PWD_COMMAND}`; export r; \
2635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2636 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2637
2638.PHONY: install-strip-host
2639install-strip-host: \
9b980aa1
RW
2640 maybe-install-strip-bfd \
2641 maybe-install-strip-opcodes \
2642 maybe-install-strip-binutils \
2643 maybe-install-strip-bison \
9b980aa1
RW
2644 maybe-install-strip-cgen \
2645 maybe-install-strip-dejagnu \
9b980aa1
RW
2646 maybe-install-strip-etc \
2647 maybe-install-strip-fastjar \
9b980aa1
RW
2648 maybe-install-strip-fixincludes \
2649 maybe-install-strip-flex \
2650 maybe-install-strip-gas \
2651 maybe-install-strip-gcc \
9b980aa1
RW
2652 maybe-install-strip-gmp \
2653 maybe-install-strip-mpfr \
2654 maybe-install-strip-mpc \
7ec59b9e 2655 maybe-install-strip-isl \
9b980aa1 2656 maybe-install-strip-libelf \
9b980aa1
RW
2657 maybe-install-strip-gold \
2658 maybe-install-strip-gprof \
9b980aa1
RW
2659 maybe-install-strip-intl \
2660 maybe-install-strip-tcl \
2661 maybe-install-strip-itcl \
2662 maybe-install-strip-ld \
2bf680c4 2663 maybe-install-strip-libbacktrace \
9b980aa1
RW
2664 maybe-install-strip-libcpp \
2665 maybe-install-strip-libdecnumber \
2666 maybe-install-strip-libgui \
2667 maybe-install-strip-libiberty \
1b6c0831 2668 maybe-install-strip-libiberty-linker-plugin \
9b980aa1 2669 maybe-install-strip-libiconv \
9b980aa1 2670 maybe-install-strip-m4 \
9b980aa1 2671 maybe-install-strip-readline \
9b980aa1
RW
2672 maybe-install-strip-sid \
2673 maybe-install-strip-sim \
9b980aa1 2674 maybe-install-strip-texinfo \
9b980aa1
RW
2675 maybe-install-strip-zlib \
2676 maybe-install-strip-gdb \
2677 maybe-install-strip-expect \
2678 maybe-install-strip-guile \
2679 maybe-install-strip-tk \
2680 maybe-install-strip-libtermcap \
2681 maybe-install-strip-utils \
2682 maybe-install-strip-gnattools \
1b6c0831
L
2683 maybe-install-strip-lto-plugin \
2684 maybe-install-strip-libcc1 \
2685 maybe-install-strip-gotools
9b980aa1
RW
2686
2687.PHONY: install-strip-target
2688install-strip-target: \
2689 maybe-install-strip-target-libstdc++-v3 \
5286fdef 2690 maybe-install-strip-target-libsanitizer \
1b6c0831 2691 maybe-install-strip-target-libmpx \
95e43135 2692 maybe-install-strip-target-libvtv \
e78e02e6 2693 maybe-install-strip-target-libcilkrts \
1b6c0831 2694 maybe-install-strip-target-liboffloadmic \
9b980aa1
RW
2695 maybe-install-strip-target-libssp \
2696 maybe-install-strip-target-newlib \
2697 maybe-install-strip-target-libgcc \
2bf680c4 2698 maybe-install-strip-target-libbacktrace \
9b980aa1
RW
2699 maybe-install-strip-target-libquadmath \
2700 maybe-install-strip-target-libgfortran \
2701 maybe-install-strip-target-libobjc \
2702 maybe-install-strip-target-libgo \
2703 maybe-install-strip-target-libtermcap \
2704 maybe-install-strip-target-winsup \
2705 maybe-install-strip-target-libgloss \
9b980aa1
RW
2706 maybe-install-strip-target-libffi \
2707 maybe-install-strip-target-libjava \
2708 maybe-install-strip-target-zlib \
2709 maybe-install-strip-target-boehm-gc \
9b980aa1
RW
2710 maybe-install-strip-target-rda \
2711 maybe-install-strip-target-libada \
7ec59b9e
L
2712 maybe-install-strip-target-libgomp \
2713 maybe-install-strip-target-libitm \
2714 maybe-install-strip-target-libatomic
9b980aa1
RW
2715
2716
4fa63067 2717### other supporting targets
2a4cbe27 2718
4fa63067
NN
2719MAKEDIRS= \
2720 $(DESTDIR)$(prefix) \
2721 $(DESTDIR)$(exec_prefix)
2722.PHONY: installdirs
2723installdirs: mkinstalldirs
2724 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2725
4fa63067 2726dir.info: do-install-info
22121df0
L
2727 if [ -f $(srcdir)/texinfo/gen-info-dir ]; then \
2728 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new; \
2729 mv -f dir.info.new dir.info; \
2730 else true; \
4fa63067 2731 fi
2a4cbe27 2732
4fa63067
NN
2733dist:
2734 @echo "Building a full distribution of this tree isn't done"
2735 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2736
4fa63067 2737etags tags: TAGS
2a4cbe27 2738
4fa63067
NN
2739# Right now this just builds TAGS in each subdirectory. emacs19 has the
2740# ability to use several tags files at once, so there is probably no need
2741# to combine them into one big TAGS file (like CVS 1.3 does). We could
2742# (if we felt like it) have this Makefile write a piece of elisp which
2743# the user could load to tell emacs19 where all the TAGS files we just
2744# built are.
2745TAGS: do-TAGS
2a4cbe27 2746
a7254363
PB
2747# ------------------------------------
2748# Macros for configure and all targets
2749# ------------------------------------
2750
2751
2752
2753
2754
4fa63067
NN
2755# --------------------------------------
2756# Modules which run on the build machine
2757# --------------------------------------
2758
a7254363 2759
4fa63067
NN
2760.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2761maybe-configure-build-libiberty:
4f0ef2d8
CD
2762@if gcc-bootstrap
2763configure-build-libiberty: stage_current
2764@endif gcc-bootstrap
6bd3dfaa
PB
2765@if build-libiberty
2766maybe-configure-build-libiberty: configure-build-libiberty
c52c6897 2767configure-build-libiberty:
0aed8855 2768 @: $(MAKE); $(unstage)
c52c6897 2769 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2771 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 2772 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty; \
1f53ca9a 2773 $(BUILD_EXPORTS) \
4fa63067
NN
2774 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2775 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2776 case $(srcdir) in \
b00612cc
PB
2777 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2778 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2779 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2780 esac; \
1b6c0831 2781 module_srcdir=libiberty; \
4fa63067 2782 rm -f no-such-file || : ; \
1b6c0831
L
2783 CONFIG_SITE=no-such-file $(SHELL) \
2784 $$s/$$module_srcdir/configure \
2785 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2786 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2787 --target=${target_alias} \
2a4cbe27 2788 || exit 1
6bd3dfaa 2789@endif build-libiberty
2a4cbe27 2790
a7254363
PB
2791
2792
d545f33b
PB
2793
2794
4fa63067
NN
2795.PHONY: all-build-libiberty maybe-all-build-libiberty
2796maybe-all-build-libiberty:
4f0ef2d8
CD
2797@if gcc-bootstrap
2798all-build-libiberty: stage_current
2799@endif gcc-bootstrap
6bd3dfaa 2800@if build-libiberty
72b2455a 2801TARGET-build-libiberty=all
6bd3dfaa 2802maybe-all-build-libiberty: all-build-libiberty
4fa63067 2803all-build-libiberty: configure-build-libiberty
0aed8855 2804 @: $(MAKE); $(unstage)
4fa63067 2805 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2807 $(BUILD_EXPORTS) \
72b2455a 2808 (cd $(BUILD_SUBDIR)/libiberty && \
b3676d82 2809 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2810 $(TARGET-build-libiberty))
6bd3dfaa 2811@endif build-libiberty
2a4cbe27 2812
a7254363
PB
2813
2814
d545f33b
PB
2815
2816
6a9cf61e
PB
2817.PHONY: configure-build-bison maybe-configure-build-bison
2818maybe-configure-build-bison:
4f0ef2d8
CD
2819@if gcc-bootstrap
2820configure-build-bison: stage_current
2821@endif gcc-bootstrap
6a9cf61e
PB
2822@if build-bison
2823maybe-configure-build-bison: configure-build-bison
c52c6897 2824configure-build-bison:
0aed8855 2825 @: $(MAKE); $(unstage)
c52c6897 2826 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2828 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
22121df0 2829 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison; \
1f53ca9a 2830 $(BUILD_EXPORTS) \
6a9cf61e
PB
2831 echo Configuring in $(BUILD_SUBDIR)/bison; \
2832 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2833 case $(srcdir) in \
b00612cc
PB
2834 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2835 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2836 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2837 esac; \
1b6c0831 2838 module_srcdir=bison; \
6a9cf61e 2839 rm -f no-such-file || : ; \
1b6c0831
L
2840 CONFIG_SITE=no-such-file $(SHELL) \
2841 $$s/$$module_srcdir/configure \
2842 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2843 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2844 --target=${target_alias} \
6a9cf61e
PB
2845 || exit 1
2846@endif build-bison
2847
a7254363
PB
2848
2849
d545f33b
PB
2850
2851
6a9cf61e
PB
2852.PHONY: all-build-bison maybe-all-build-bison
2853maybe-all-build-bison:
4f0ef2d8
CD
2854@if gcc-bootstrap
2855all-build-bison: stage_current
2856@endif gcc-bootstrap
6a9cf61e 2857@if build-bison
72b2455a 2858TARGET-build-bison=all
6a9cf61e
PB
2859maybe-all-build-bison: all-build-bison
2860all-build-bison: configure-build-bison
0aed8855 2861 @: $(MAKE); $(unstage)
6a9cf61e
PB
2862 @r=`${PWD_COMMAND}`; export r; \
2863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2864 $(BUILD_EXPORTS) \
72b2455a 2865 (cd $(BUILD_SUBDIR)/bison && \
b3676d82 2866 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2867 $(TARGET-build-bison))
6a9cf61e
PB
2868@endif build-bison
2869
a7254363
PB
2870
2871
d545f33b
PB
2872
2873
6a9cf61e
PB
2874.PHONY: configure-build-flex maybe-configure-build-flex
2875maybe-configure-build-flex:
4f0ef2d8
CD
2876@if gcc-bootstrap
2877configure-build-flex: stage_current
2878@endif gcc-bootstrap
6a9cf61e
PB
2879@if build-flex
2880maybe-configure-build-flex: configure-build-flex
c52c6897 2881configure-build-flex:
0aed8855 2882 @: $(MAKE); $(unstage)
c52c6897 2883 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2885 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
22121df0 2886 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex; \
1f53ca9a 2887 $(BUILD_EXPORTS) \
6a9cf61e
PB
2888 echo Configuring in $(BUILD_SUBDIR)/flex; \
2889 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2890 case $(srcdir) in \
b00612cc
PB
2891 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2892 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2893 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2894 esac; \
1b6c0831 2895 module_srcdir=flex; \
6a9cf61e 2896 rm -f no-such-file || : ; \
1b6c0831
L
2897 CONFIG_SITE=no-such-file $(SHELL) \
2898 $$s/$$module_srcdir/configure \
2899 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2900 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2901 --target=${target_alias} \
6a9cf61e
PB
2902 || exit 1
2903@endif build-flex
2904
a7254363
PB
2905
2906
d545f33b
PB
2907
2908
6a9cf61e
PB
2909.PHONY: all-build-flex maybe-all-build-flex
2910maybe-all-build-flex:
4f0ef2d8
CD
2911@if gcc-bootstrap
2912all-build-flex: stage_current
2913@endif gcc-bootstrap
6a9cf61e 2914@if build-flex
72b2455a 2915TARGET-build-flex=all
6a9cf61e
PB
2916maybe-all-build-flex: all-build-flex
2917all-build-flex: configure-build-flex
0aed8855 2918 @: $(MAKE); $(unstage)
6a9cf61e
PB
2919 @r=`${PWD_COMMAND}`; export r; \
2920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2921 $(BUILD_EXPORTS) \
72b2455a 2922 (cd $(BUILD_SUBDIR)/flex && \
b3676d82 2923 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2924 $(TARGET-build-flex))
6a9cf61e
PB
2925@endif build-flex
2926
a7254363
PB
2927
2928
d545f33b
PB
2929
2930
6a9cf61e
PB
2931.PHONY: configure-build-m4 maybe-configure-build-m4
2932maybe-configure-build-m4:
4f0ef2d8
CD
2933@if gcc-bootstrap
2934configure-build-m4: stage_current
2935@endif gcc-bootstrap
6a9cf61e
PB
2936@if build-m4
2937maybe-configure-build-m4: configure-build-m4
c52c6897 2938configure-build-m4:
0aed8855 2939 @: $(MAKE); $(unstage)
c52c6897 2940 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2942 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
22121df0 2943 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4; \
1f53ca9a 2944 $(BUILD_EXPORTS) \
6a9cf61e
PB
2945 echo Configuring in $(BUILD_SUBDIR)/m4; \
2946 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2947 case $(srcdir) in \
b00612cc
PB
2948 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2949 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2950 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2951 esac; \
1b6c0831 2952 module_srcdir=m4; \
6a9cf61e 2953 rm -f no-such-file || : ; \
1b6c0831
L
2954 CONFIG_SITE=no-such-file $(SHELL) \
2955 $$s/$$module_srcdir/configure \
2956 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2957 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2958 --target=${target_alias} \
6a9cf61e
PB
2959 || exit 1
2960@endif build-m4
2961
a7254363
PB
2962
2963
d545f33b
PB
2964
2965
6a9cf61e
PB
2966.PHONY: all-build-m4 maybe-all-build-m4
2967maybe-all-build-m4:
4f0ef2d8
CD
2968@if gcc-bootstrap
2969all-build-m4: stage_current
2970@endif gcc-bootstrap
6a9cf61e 2971@if build-m4
72b2455a 2972TARGET-build-m4=all
6a9cf61e
PB
2973maybe-all-build-m4: all-build-m4
2974all-build-m4: configure-build-m4
0aed8855 2975 @: $(MAKE); $(unstage)
6a9cf61e
PB
2976 @r=`${PWD_COMMAND}`; export r; \
2977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2978 $(BUILD_EXPORTS) \
72b2455a 2979 (cd $(BUILD_SUBDIR)/m4 && \
b3676d82 2980 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2981 $(TARGET-build-m4))
6a9cf61e
PB
2982@endif build-m4
2983
a7254363
PB
2984
2985
d545f33b
PB
2986
2987
6a9cf61e
PB
2988.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2989maybe-configure-build-texinfo:
4f0ef2d8
CD
2990@if gcc-bootstrap
2991configure-build-texinfo: stage_current
2992@endif gcc-bootstrap
6a9cf61e
PB
2993@if build-texinfo
2994maybe-configure-build-texinfo: configure-build-texinfo
c52c6897 2995configure-build-texinfo:
0aed8855 2996 @: $(MAKE); $(unstage)
c52c6897 2997 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2999 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 3000 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo; \
1f53ca9a 3001 $(BUILD_EXPORTS) \
6a9cf61e
PB
3002 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
3003 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
3004 case $(srcdir) in \
b00612cc
PB
3005 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3006 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
3007 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 3008 esac; \
1b6c0831 3009 module_srcdir=texinfo; \
6a9cf61e 3010 rm -f no-such-file || : ; \
1b6c0831
L
3011 CONFIG_SITE=no-such-file $(SHELL) \
3012 $$s/$$module_srcdir/configure \
3013 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3014 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3015 --target=${target_alias} \
6a9cf61e
PB
3016 || exit 1
3017@endif build-texinfo
3018
a7254363
PB
3019
3020
d545f33b
PB
3021
3022
6a9cf61e
PB
3023.PHONY: all-build-texinfo maybe-all-build-texinfo
3024maybe-all-build-texinfo:
4f0ef2d8
CD
3025@if gcc-bootstrap
3026all-build-texinfo: stage_current
3027@endif gcc-bootstrap
6a9cf61e 3028@if build-texinfo
72b2455a 3029TARGET-build-texinfo=all
6a9cf61e
PB
3030maybe-all-build-texinfo: all-build-texinfo
3031all-build-texinfo: configure-build-texinfo
0aed8855 3032 @: $(MAKE); $(unstage)
6a9cf61e
PB
3033 @r=`${PWD_COMMAND}`; export r; \
3034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3035 $(BUILD_EXPORTS) \
72b2455a 3036 (cd $(BUILD_SUBDIR)/texinfo && \
b3676d82 3037 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3038 $(TARGET-build-texinfo))
6a9cf61e
PB
3039@endif build-texinfo
3040
a7254363
PB
3041
3042
d545f33b
PB
3043
3044
ee025550
PB
3045.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3046maybe-configure-build-fixincludes:
4f0ef2d8
CD
3047@if gcc-bootstrap
3048configure-build-fixincludes: stage_current
3049@endif gcc-bootstrap
ee025550
PB
3050@if build-fixincludes
3051maybe-configure-build-fixincludes: configure-build-fixincludes
c52c6897 3052configure-build-fixincludes:
0aed8855 3053 @: $(MAKE); $(unstage)
c52c6897 3054 @r=`${PWD_COMMAND}`; export r; \
ee025550 3055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3056 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 3057 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes; \
1f53ca9a 3058 $(BUILD_EXPORTS) \
ee025550
PB
3059 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3060 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3061 case $(srcdir) in \
b00612cc
PB
3062 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3063 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3064 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
ee025550 3065 esac; \
1b6c0831 3066 module_srcdir=fixincludes; \
ee025550 3067 rm -f no-such-file || : ; \
1b6c0831
L
3068 CONFIG_SITE=no-such-file $(SHELL) \
3069 $$s/$$module_srcdir/configure \
3070 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3071 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3072 --target=${target_alias} \
ee025550
PB
3073 || exit 1
3074@endif build-fixincludes
3075
a7254363
PB
3076
3077
d545f33b
PB
3078
3079
ee025550
PB
3080.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3081maybe-all-build-fixincludes:
4f0ef2d8
CD
3082@if gcc-bootstrap
3083all-build-fixincludes: stage_current
3084@endif gcc-bootstrap
ee025550
PB
3085@if build-fixincludes
3086TARGET-build-fixincludes=all
3087maybe-all-build-fixincludes: all-build-fixincludes
3088all-build-fixincludes: configure-build-fixincludes
0aed8855 3089 @: $(MAKE); $(unstage)
ee025550
PB
3090 @r=`${PWD_COMMAND}`; export r; \
3091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3092 $(BUILD_EXPORTS) \
ee025550 3093 (cd $(BUILD_SUBDIR)/fixincludes && \
b3676d82 3094 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3095 $(TARGET-build-fixincludes))
ee025550
PB
3096@endif build-fixincludes
3097
2a4cbe27 3098
a7254363 3099
d545f33b
PB
3100
3101
1b6c0831
L
3102.PHONY: configure-build-libcpp maybe-configure-build-libcpp
3103maybe-configure-build-libcpp:
3104@if gcc-bootstrap
3105configure-build-libcpp: stage_current
3106@endif gcc-bootstrap
3107@if build-libcpp
3108maybe-configure-build-libcpp: configure-build-libcpp
3109configure-build-libcpp:
3110 @: $(MAKE); $(unstage)
3111 @r=`${PWD_COMMAND}`; export r; \
3112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3113 test ! -f $(BUILD_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 3114 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libcpp; \
1b6c0831
L
3115 $(BUILD_EXPORTS) \
3116 echo Configuring in $(BUILD_SUBDIR)/libcpp; \
3117 cd "$(BUILD_SUBDIR)/libcpp" || exit 1; \
3118 case $(srcdir) in \
3119 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3120 *) topdir=`echo $(BUILD_SUBDIR)/libcpp/ | \
3121 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3122 esac; \
3123 module_srcdir=libcpp; \
3124 rm -f no-such-file || : ; \
3125 CONFIG_SITE=no-such-file $(SHELL) \
3126 $$s/$$module_srcdir/configure \
3127 --srcdir=$${topdir}/$$module_srcdir \
3128 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3129 --target=${target_alias} --disable-nls am_cv_func_iconv=no \
3130 || exit 1
3131@endif build-libcpp
3132
3133
3134
3135
3136
3137.PHONY: all-build-libcpp maybe-all-build-libcpp
3138maybe-all-build-libcpp:
3139@if gcc-bootstrap
3140all-build-libcpp: stage_current
3141@endif gcc-bootstrap
3142@if build-libcpp
3143TARGET-build-libcpp=all
3144maybe-all-build-libcpp: all-build-libcpp
3145all-build-libcpp: configure-build-libcpp
3146 @: $(MAKE); $(unstage)
3147 @r=`${PWD_COMMAND}`; export r; \
3148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3149 $(BUILD_EXPORTS) \
3150 (cd $(BUILD_SUBDIR)/libcpp && \
3151 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
3152 $(TARGET-build-libcpp))
3153@endif build-libcpp
3154
3155
3156
3157
3158
4fa63067
NN
3159# --------------------------------------
3160# Modules which run on the host machine
3161# --------------------------------------
2a4cbe27 3162
a7254363 3163
a90ef4bf
JM
3164.PHONY: configure-bfd maybe-configure-bfd
3165maybe-configure-bfd:
4f0ef2d8 3166@if gcc-bootstrap
a90ef4bf 3167configure-bfd: stage_current
4f0ef2d8 3168@endif gcc-bootstrap
a90ef4bf
JM
3169@if bfd
3170maybe-configure-bfd: configure-bfd
3171configure-bfd:
c52c6897 3172 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3174 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
22121df0 3175 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
1f53ca9a 3176 $(HOST_EXPORTS) \
a90ef4bf
JM
3177 echo Configuring in $(HOST_SUBDIR)/bfd; \
3178 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
4fa63067 3179 case $(srcdir) in \
b00612cc 3180 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 3181 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
b00612cc 3182 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 3183 esac; \
1b6c0831
L
3184 module_srcdir=bfd; \
3185 $(SHELL) \
3186 $$s/$$module_srcdir/configure \
3187 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3188 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3189 --target=${target_alias} \
2a4cbe27 3190 || exit 1
a90ef4bf 3191@endif bfd
a7254363 3192
d545f33b
PB
3193
3194
a90ef4bf
JM
3195.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3196maybe-configure-stage1-bfd:
3197@if bfd-bootstrap
3198maybe-configure-stage1-bfd: configure-stage1-bfd
3199configure-stage1-bfd:
3200 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3201 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067
NN
3202 @r=`${PWD_COMMAND}`; export r; \
3203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3204 TFLAGS="$(STAGE1_TFLAGS)"; \
3205 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3206 $(HOST_EXPORTS) \
3207 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3208 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3209 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
3210 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd; \
3211 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3212 cd $(HOST_SUBDIR)/bfd || exit 1; \
3213 case $(srcdir) in \
3214 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3215 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3216 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3217 esac; \
1b6c0831
L
3218 module_srcdir=bfd; \
3219 $(SHELL) $$s/$$module_srcdir/configure \
3220 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3221 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3222 --target=${target_alias} \
3223 \
a90ef4bf
JM
3224 $(STAGE1_CONFIGURE_FLAGS)
3225@endif bfd-bootstrap
2a4cbe27 3226
a90ef4bf
JM
3227.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3228maybe-configure-stage2-bfd:
3229@if bfd-bootstrap
3230maybe-configure-stage2-bfd: configure-stage2-bfd
3231configure-stage2-bfd:
3232 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3233 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3234 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3236 TFLAGS="$(STAGE2_TFLAGS)"; \
3237 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3238 $(HOST_EXPORTS) \
a90ef4bf
JM
3239 $(POSTSTAGE1_HOST_EXPORTS) \
3240 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3241 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3242 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3243 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd; \
3244 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3245 cd $(HOST_SUBDIR)/bfd || exit 1; \
3246 case $(srcdir) in \
3247 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3248 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3249 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3250 esac; \
1b6c0831
L
3251 module_srcdir=bfd; \
3252 $(SHELL) $$s/$$module_srcdir/configure \
3253 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3254 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3255 --target=${target_alias} \
22121df0 3256 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3257 $(STAGE2_CONFIGURE_FLAGS)
3258@endif bfd-bootstrap
2a4cbe27 3259
a90ef4bf
JM
3260.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3261maybe-configure-stage3-bfd:
3262@if bfd-bootstrap
3263maybe-configure-stage3-bfd: configure-stage3-bfd
3264configure-stage3-bfd:
3265 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3266 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3267 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3269 TFLAGS="$(STAGE3_TFLAGS)"; \
3270 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3271 $(HOST_EXPORTS) \
a90ef4bf
JM
3272 $(POSTSTAGE1_HOST_EXPORTS) \
3273 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3274 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3275 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3276 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd; \
3277 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3278 cd $(HOST_SUBDIR)/bfd || exit 1; \
3279 case $(srcdir) in \
3280 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3281 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3282 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3283 esac; \
1b6c0831
L
3284 module_srcdir=bfd; \
3285 $(SHELL) $$s/$$module_srcdir/configure \
3286 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3287 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3288 --target=${target_alias} \
22121df0 3289 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3290 $(STAGE3_CONFIGURE_FLAGS)
3291@endif bfd-bootstrap
9b980aa1 3292
a90ef4bf
JM
3293.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3294maybe-configure-stage4-bfd:
3295@if bfd-bootstrap
3296maybe-configure-stage4-bfd: configure-stage4-bfd
3297configure-stage4-bfd:
3298 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3299 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
9b980aa1
RW
3300 @r=`${PWD_COMMAND}`; export r; \
3301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3302 TFLAGS="$(STAGE4_TFLAGS)"; \
3303 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
9b980aa1 3304 $(HOST_EXPORTS) \
a90ef4bf
JM
3305 $(POSTSTAGE1_HOST_EXPORTS) \
3306 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3307 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3308 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3309 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd; \
3310 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3311 cd $(HOST_SUBDIR)/bfd || exit 1; \
3312 case $(srcdir) in \
3313 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3314 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3315 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3316 esac; \
1b6c0831
L
3317 module_srcdir=bfd; \
3318 $(SHELL) $$s/$$module_srcdir/configure \
3319 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3320 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3321 --target=${target_alias} \
22121df0 3322 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3323 $(STAGE4_CONFIGURE_FLAGS)
3324@endif bfd-bootstrap
4fa63067 3325
a90ef4bf
JM
3326.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3327maybe-configure-stageprofile-bfd:
3328@if bfd-bootstrap
3329maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3330configure-stageprofile-bfd:
3331 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3332 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3333 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3335 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3336 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3337 $(HOST_EXPORTS) \
a90ef4bf
JM
3338 $(POSTSTAGE1_HOST_EXPORTS) \
3339 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3340 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3341 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3342 echo Configuring stage profile in $(HOST_SUBDIR)/bfd; \
3343 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3344 cd $(HOST_SUBDIR)/bfd || exit 1; \
3345 case $(srcdir) in \
3346 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3347 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3348 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3349 esac; \
1b6c0831
L
3350 module_srcdir=bfd; \
3351 $(SHELL) $$s/$$module_srcdir/configure \
3352 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3353 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3354 --target=${target_alias} \
22121df0 3355 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3356 $(STAGEprofile_CONFIGURE_FLAGS)
3357@endif bfd-bootstrap
2a4cbe27 3358
a90ef4bf
JM
3359.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3360maybe-configure-stagefeedback-bfd:
3361@if bfd-bootstrap
3362maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3363configure-stagefeedback-bfd:
3364 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3365 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3366 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3368 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3369 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3370 $(HOST_EXPORTS) \
a90ef4bf
JM
3371 $(POSTSTAGE1_HOST_EXPORTS) \
3372 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3373 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3374 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3375 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd; \
3376 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3377 cd $(HOST_SUBDIR)/bfd || exit 1; \
3378 case $(srcdir) in \
3379 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3380 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3381 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3382 esac; \
1b6c0831
L
3383 module_srcdir=bfd; \
3384 $(SHELL) $$s/$$module_srcdir/configure \
3385 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3386 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3387 --target=${target_alias} \
22121df0 3388 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3389 $(STAGEfeedback_CONFIGURE_FLAGS)
3390@endif bfd-bootstrap
2a4cbe27 3391
56a8fe78 3392
56a8fe78 3393
56a8fe78 3394
6d389afc 3395
a90ef4bf
JM
3396.PHONY: all-bfd maybe-all-bfd
3397maybe-all-bfd:
3398@if gcc-bootstrap
3399all-bfd: stage_current
3400@endif gcc-bootstrap
3401@if bfd
3402TARGET-bfd=all
3403maybe-all-bfd: all-bfd
3404all-bfd: configure-bfd
3405 @r=`${PWD_COMMAND}`; export r; \
6d389afc 3406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3407 $(HOST_EXPORTS) \
3408 (cd $(HOST_SUBDIR)/bfd && \
b3676d82 3409 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3410 $(TARGET-bfd))
3411@endif bfd
6d389afc 3412
6d389afc 3413
2a4cbe27 3414
a90ef4bf
JM
3415.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3416.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3417maybe-all-stage1-bfd:
3418maybe-clean-stage1-bfd:
3419@if bfd-bootstrap
3420maybe-all-stage1-bfd: all-stage1-bfd
3421all-stage1: all-stage1-bfd
3422TARGET-stage1-bfd = $(TARGET-bfd)
3423all-stage1-bfd: configure-stage1-bfd
3424 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3425 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3427 TFLAGS="$(STAGE1_TFLAGS)"; \
3428 $(HOST_EXPORTS) \
3429 cd $(HOST_SUBDIR)/bfd && \
3430 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3431 CFLAGS="$(STAGE1_CFLAGS)" \
3432 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3433 LIBCFLAGS="$(LIBCFLAGS)" \
3434 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3435 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3436 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
3437 $(EXTRA_HOST_FLAGS) \
3438 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3439 TFLAGS="$(STAGE1_TFLAGS)" \
3440 $(TARGET-stage1-bfd)
2a4cbe27 3441
a90ef4bf
JM
3442maybe-clean-stage1-bfd: clean-stage1-bfd
3443clean-stage1: clean-stage1-bfd
3444clean-stage1-bfd:
3445 @if [ $(current_stage) = stage1 ]; then \
3446 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3447 else \
3448 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3449 $(MAKE) stage1-start; \
3450 fi; \
3451 cd $(HOST_SUBDIR)/bfd && \
3452 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 3453 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3454@endif bfd-bootstrap
2a4cbe27 3455
2a4cbe27 3456
a90ef4bf
JM
3457.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3458.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3459maybe-all-stage2-bfd:
3460maybe-clean-stage2-bfd:
3461@if bfd-bootstrap
3462maybe-all-stage2-bfd: all-stage2-bfd
3463all-stage2: all-stage2-bfd
3464TARGET-stage2-bfd = $(TARGET-bfd)
3465all-stage2-bfd: configure-stage2-bfd
3466 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3467 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3469 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 3470 $(HOST_EXPORTS) \
a90ef4bf
JM
3471 $(POSTSTAGE1_HOST_EXPORTS) \
3472 cd $(HOST_SUBDIR)/bfd && \
3473 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3474 CFLAGS="$(STAGE2_CFLAGS)" \
3475 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3476 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3477 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3478 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3479 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3480 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3481 TFLAGS="$(STAGE2_TFLAGS)" \
3482 $(TARGET-stage2-bfd)
2a4cbe27 3483
a90ef4bf
JM
3484maybe-clean-stage2-bfd: clean-stage2-bfd
3485clean-stage2: clean-stage2-bfd
3486clean-stage2-bfd:
3487 @if [ $(current_stage) = stage2 ]; then \
3488 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3489 else \
3490 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3491 $(MAKE) stage2-start; \
3492 fi; \
3493 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3494 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3495@endif bfd-bootstrap
2a4cbe27 3496
a3ca38d2 3497
a90ef4bf
JM
3498.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3499.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3500maybe-all-stage3-bfd:
3501maybe-clean-stage3-bfd:
3502@if bfd-bootstrap
3503maybe-all-stage3-bfd: all-stage3-bfd
3504all-stage3: all-stage3-bfd
3505TARGET-stage3-bfd = $(TARGET-bfd)
3506all-stage3-bfd: configure-stage3-bfd
3507 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3508 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 3509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3510 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 3511 $(HOST_EXPORTS) \
a90ef4bf
JM
3512 $(POSTSTAGE1_HOST_EXPORTS) \
3513 cd $(HOST_SUBDIR)/bfd && \
3514 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3515 CFLAGS="$(STAGE3_CFLAGS)" \
3516 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3517 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3518 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3519 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3520 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3521 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3522 TFLAGS="$(STAGE3_TFLAGS)" \
3523 $(TARGET-stage3-bfd)
a3ca38d2 3524
a90ef4bf
JM
3525maybe-clean-stage3-bfd: clean-stage3-bfd
3526clean-stage3: clean-stage3-bfd
3527clean-stage3-bfd:
3528 @if [ $(current_stage) = stage3 ]; then \
3529 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3530 else \
3531 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3532 $(MAKE) stage3-start; \
3533 fi; \
3534 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3535 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3536@endif bfd-bootstrap
a3ca38d2 3537
108a6f8e 3538
a90ef4bf
JM
3539.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3540.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3541maybe-all-stage4-bfd:
3542maybe-clean-stage4-bfd:
3543@if bfd-bootstrap
3544maybe-all-stage4-bfd: all-stage4-bfd
3545all-stage4: all-stage4-bfd
3546TARGET-stage4-bfd = $(TARGET-bfd)
3547all-stage4-bfd: configure-stage4-bfd
3548 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3549 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 3550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3551 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 3552 $(HOST_EXPORTS) \
a90ef4bf
JM
3553 $(POSTSTAGE1_HOST_EXPORTS) \
3554 cd $(HOST_SUBDIR)/bfd && \
3555 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3556 CFLAGS="$(STAGE4_CFLAGS)" \
3557 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3558 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3559 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3560 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3561 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3562 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3563 TFLAGS="$(STAGE4_TFLAGS)" \
3564 $(TARGET-stage4-bfd)
108a6f8e 3565
a90ef4bf
JM
3566maybe-clean-stage4-bfd: clean-stage4-bfd
3567clean-stage4: clean-stage4-bfd
3568clean-stage4-bfd:
3569 @if [ $(current_stage) = stage4 ]; then \
3570 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3571 else \
3572 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3573 $(MAKE) stage4-start; \
3574 fi; \
3575 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3576 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3577@endif bfd-bootstrap
108a6f8e 3578
2a4cbe27 3579
a90ef4bf
JM
3580.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3581.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3582maybe-all-stageprofile-bfd:
3583maybe-clean-stageprofile-bfd:
3584@if bfd-bootstrap
3585maybe-all-stageprofile-bfd: all-stageprofile-bfd
3586all-stageprofile: all-stageprofile-bfd
3587TARGET-stageprofile-bfd = $(TARGET-bfd)
3588all-stageprofile-bfd: configure-stageprofile-bfd
3589 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3590 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3592 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 3593 $(HOST_EXPORTS) \
a90ef4bf
JM
3594 $(POSTSTAGE1_HOST_EXPORTS) \
3595 cd $(HOST_SUBDIR)/bfd && \
3596 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3597 CFLAGS="$(STAGEprofile_CFLAGS)" \
3598 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3599 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3600 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3601 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3602 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3603 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3604 TFLAGS="$(STAGEprofile_TFLAGS)" \
3605 $(TARGET-stageprofile-bfd)
2a4cbe27 3606
a90ef4bf
JM
3607maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3608clean-stageprofile: clean-stageprofile-bfd
3609clean-stageprofile-bfd:
3610 @if [ $(current_stage) = stageprofile ]; then \
3611 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3612 else \
3613 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3614 $(MAKE) stageprofile-start; \
3615 fi; \
3616 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3617 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3618@endif bfd-bootstrap
2a4cbe27 3619
a7254363 3620
a90ef4bf
JM
3621.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3622.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3623maybe-all-stagefeedback-bfd:
3624maybe-clean-stagefeedback-bfd:
3625@if bfd-bootstrap
3626maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3627all-stagefeedback: all-stagefeedback-bfd
3628TARGET-stagefeedback-bfd = $(TARGET-bfd)
3629all-stagefeedback-bfd: configure-stagefeedback-bfd
3630 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 3631 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3633 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3634 $(HOST_EXPORTS) \
3635 $(POSTSTAGE1_HOST_EXPORTS) \
3636 cd $(HOST_SUBDIR)/bfd && \
3637 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3638 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3639 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3640 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3641 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3642 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3643 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3644 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3645 TFLAGS="$(STAGEfeedback_TFLAGS)" \
3646 $(TARGET-stagefeedback-bfd)
d545f33b 3647
a90ef4bf
JM
3648maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3649clean-stagefeedback: clean-stagefeedback-bfd
3650clean-stagefeedback-bfd:
3651 @if [ $(current_stage) = stagefeedback ]; then \
3652 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3653 else \
3654 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3655 $(MAKE) stagefeedback-start; \
3656 fi; \
3657 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3658 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3659@endif bfd-bootstrap
d545f33b 3660
2a4cbe27 3661
a7254363 3662
d545f33b
PB
3663
3664
a90ef4bf
JM
3665.PHONY: check-bfd maybe-check-bfd
3666maybe-check-bfd:
3667@if bfd
3668maybe-check-bfd: check-bfd
2a4cbe27 3669
a90ef4bf 3670check-bfd:
0aed8855 3671 @: $(MAKE); $(unstage)
4fa63067 3672 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 3674 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 3675 (cd $(HOST_SUBDIR)/bfd && \
f91ca6bc 3676 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 3677
a90ef4bf 3678@endif bfd
2a4cbe27 3679
a90ef4bf
JM
3680.PHONY: install-bfd maybe-install-bfd
3681maybe-install-bfd:
3682@if bfd
3683maybe-install-bfd: install-bfd
2a4cbe27 3684
a90ef4bf 3685install-bfd: installdirs
0aed8855 3686 @: $(MAKE); $(unstage)
4fa63067 3687 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3689 $(HOST_EXPORTS) \
a90ef4bf 3690 (cd $(HOST_SUBDIR)/bfd && \
2da12f12 3691 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3692
a90ef4bf 3693@endif bfd
2a4cbe27 3694
a90ef4bf
JM
3695.PHONY: install-strip-bfd maybe-install-strip-bfd
3696maybe-install-strip-bfd:
3697@if bfd
3698maybe-install-strip-bfd: install-strip-bfd
9b980aa1 3699
a90ef4bf 3700install-strip-bfd: installdirs
9b980aa1
RW
3701 @: $(MAKE); $(unstage)
3702 @r=`${PWD_COMMAND}`; export r; \
3703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3704 $(HOST_EXPORTS) \
a90ef4bf 3705 (cd $(HOST_SUBDIR)/bfd && \
9b980aa1
RW
3706 $(MAKE) $(FLAGS_TO_PASS) install-strip)
3707
a90ef4bf 3708@endif bfd
9b980aa1 3709
56a8fe78 3710# Other targets (info, dvi, pdf, etc.)
2a4cbe27 3711
a90ef4bf
JM
3712.PHONY: maybe-info-bfd info-bfd
3713maybe-info-bfd:
3714@if bfd
3715maybe-info-bfd: info-bfd
4fa63067 3716
a90ef4bf
JM
3717info-bfd: \
3718 configure-bfd
3719 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3720 r=`${PWD_COMMAND}`; export r; \
3721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3722 $(HOST_EXPORTS) \
b813574b 3723 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3725 done; \
22121df0 3726 echo "Doing info in bfd"; \
a90ef4bf 3727 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3730 "RANLIB=$${RANLIB}" \
0c24b341 3731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3732 info) \
2a4cbe27
NN
3733 || exit 1
3734
a90ef4bf 3735@endif bfd
2a4cbe27 3736
a90ef4bf
JM
3737.PHONY: maybe-dvi-bfd dvi-bfd
3738maybe-dvi-bfd:
3739@if bfd
3740maybe-dvi-bfd: dvi-bfd
2a4cbe27 3741
a90ef4bf
JM
3742dvi-bfd: \
3743 configure-bfd
3744 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3745 r=`${PWD_COMMAND}`; export r; \
3746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3747 $(HOST_EXPORTS) \
b813574b 3748 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3750 done; \
22121df0 3751 echo "Doing dvi in bfd"; \
a90ef4bf 3752 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3755 "RANLIB=$${RANLIB}" \
0c24b341 3756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3757 dvi) \
2a4cbe27
NN
3758 || exit 1
3759
a90ef4bf 3760@endif bfd
2a4cbe27 3761
a90ef4bf
JM
3762.PHONY: maybe-pdf-bfd pdf-bfd
3763maybe-pdf-bfd:
3764@if bfd
3765maybe-pdf-bfd: pdf-bfd
56a8fe78 3766
a90ef4bf
JM
3767pdf-bfd: \
3768 configure-bfd
3769 @[ -f ./bfd/Makefile ] || exit 0; \
56a8fe78
DD
3770 r=`${PWD_COMMAND}`; export r; \
3771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3772 $(HOST_EXPORTS) \
3773 for flag in $(EXTRA_HOST_FLAGS) ; do \
3774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3775 done; \
22121df0 3776 echo "Doing pdf in bfd"; \
a90ef4bf 3777 (cd $(HOST_SUBDIR)/bfd && \
56a8fe78
DD
3778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3780 "RANLIB=$${RANLIB}" \
0c24b341 3781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
3782 pdf) \
3783 || exit 1
3784
a90ef4bf 3785@endif bfd
56a8fe78 3786
a90ef4bf
JM
3787.PHONY: maybe-html-bfd html-bfd
3788maybe-html-bfd:
3789@if bfd
3790maybe-html-bfd: html-bfd
6d389afc 3791
a90ef4bf
JM
3792html-bfd: \
3793 configure-bfd
3794 @[ -f ./bfd/Makefile ] || exit 0; \
6d389afc
MS
3795 r=`${PWD_COMMAND}`; export r; \
3796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
3797 $(HOST_EXPORTS) \
3798 for flag in $(EXTRA_HOST_FLAGS) ; do \
3799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3800 done; \
22121df0 3801 echo "Doing html in bfd"; \
a90ef4bf 3802 (cd $(HOST_SUBDIR)/bfd && \
6d389afc
MS
3803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3805 "RANLIB=$${RANLIB}" \
0c24b341 3806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
3807 html) \
3808 || exit 1
3809
a90ef4bf 3810@endif bfd
6d389afc 3811
a90ef4bf
JM
3812.PHONY: maybe-TAGS-bfd TAGS-bfd
3813maybe-TAGS-bfd:
3814@if bfd
3815maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 3816
a90ef4bf
JM
3817TAGS-bfd: \
3818 configure-bfd
3819 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3820 r=`${PWD_COMMAND}`; export r; \
3821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3822 $(HOST_EXPORTS) \
b813574b 3823 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3825 done; \
22121df0 3826 echo "Doing TAGS in bfd"; \
a90ef4bf 3827 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3830 "RANLIB=$${RANLIB}" \
0c24b341 3831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3832 TAGS) \
2a4cbe27
NN
3833 || exit 1
3834
a90ef4bf 3835@endif bfd
2a4cbe27 3836
a90ef4bf
JM
3837.PHONY: maybe-install-info-bfd install-info-bfd
3838maybe-install-info-bfd:
3839@if bfd
3840maybe-install-info-bfd: install-info-bfd
2a4cbe27 3841
a90ef4bf
JM
3842install-info-bfd: \
3843 configure-bfd \
3844 info-bfd
3845 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3846 r=`${PWD_COMMAND}`; export r; \
3847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3848 $(HOST_EXPORTS) \
b813574b 3849 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3851 done; \
22121df0 3852 echo "Doing install-info in bfd"; \
a90ef4bf 3853 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3856 "RANLIB=$${RANLIB}" \
0c24b341 3857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3858 install-info) \
2a4cbe27
NN
3859 || exit 1
3860
a90ef4bf 3861@endif bfd
2a4cbe27 3862
a90ef4bf
JM
3863.PHONY: maybe-install-pdf-bfd install-pdf-bfd
3864maybe-install-pdf-bfd:
3865@if bfd
3866maybe-install-pdf-bfd: install-pdf-bfd
a3ca38d2 3867
a90ef4bf
JM
3868install-pdf-bfd: \
3869 configure-bfd \
3870 pdf-bfd
3871 @[ -f ./bfd/Makefile ] || exit 0; \
a3ca38d2
DD
3872 r=`${PWD_COMMAND}`; export r; \
3873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3874 $(HOST_EXPORTS) \
3875 for flag in $(EXTRA_HOST_FLAGS) ; do \
3876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3877 done; \
22121df0 3878 echo "Doing install-pdf in bfd"; \
a90ef4bf 3879 (cd $(HOST_SUBDIR)/bfd && \
a3ca38d2
DD
3880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3882 "RANLIB=$${RANLIB}" \
0c24b341 3883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
3884 install-pdf) \
3885 || exit 1
3886
a90ef4bf 3887@endif bfd
a3ca38d2 3888
a90ef4bf
JM
3889.PHONY: maybe-install-html-bfd install-html-bfd
3890maybe-install-html-bfd:
3891@if bfd
3892maybe-install-html-bfd: install-html-bfd
108a6f8e 3893
a90ef4bf
JM
3894install-html-bfd: \
3895 configure-bfd \
3896 html-bfd
3897 @[ -f ./bfd/Makefile ] || exit 0; \
108a6f8e
CD
3898 r=`${PWD_COMMAND}`; export r; \
3899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3900 $(HOST_EXPORTS) \
3901 for flag in $(EXTRA_HOST_FLAGS) ; do \
3902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3903 done; \
22121df0 3904 echo "Doing install-html in bfd"; \
a90ef4bf 3905 (cd $(HOST_SUBDIR)/bfd && \
108a6f8e
CD
3906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3908 "RANLIB=$${RANLIB}" \
0c24b341 3909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
3910 install-html) \
3911 || exit 1
3912
a90ef4bf 3913@endif bfd
108a6f8e 3914
a90ef4bf
JM
3915.PHONY: maybe-installcheck-bfd installcheck-bfd
3916maybe-installcheck-bfd:
3917@if bfd
3918maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 3919
a90ef4bf
JM
3920installcheck-bfd: \
3921 configure-bfd
3922 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3923 r=`${PWD_COMMAND}`; export r; \
3924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3925 $(HOST_EXPORTS) \
b813574b 3926 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3928 done; \
22121df0 3929 echo "Doing installcheck in bfd"; \
a90ef4bf 3930 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3933 "RANLIB=$${RANLIB}" \
0c24b341 3934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3935 installcheck) \
2a4cbe27
NN
3936 || exit 1
3937
a90ef4bf 3938@endif bfd
2a4cbe27 3939
a90ef4bf
JM
3940.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3941maybe-mostlyclean-bfd:
3942@if bfd
3943maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 3944
a90ef4bf
JM
3945mostlyclean-bfd:
3946 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3947 r=`${PWD_COMMAND}`; export r; \
3948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3949 $(HOST_EXPORTS) \
b813574b 3950 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3952 done; \
22121df0 3953 echo "Doing mostlyclean in bfd"; \
a90ef4bf 3954 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3957 "RANLIB=$${RANLIB}" \
0c24b341 3958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3959 mostlyclean) \
2a4cbe27
NN
3960 || exit 1
3961
a90ef4bf 3962@endif bfd
2a4cbe27 3963
a90ef4bf
JM
3964.PHONY: maybe-clean-bfd clean-bfd
3965maybe-clean-bfd:
3966@if bfd
3967maybe-clean-bfd: clean-bfd
2a4cbe27 3968
a90ef4bf
JM
3969clean-bfd:
3970 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3971 r=`${PWD_COMMAND}`; export r; \
3972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3973 $(HOST_EXPORTS) \
b813574b 3974 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3976 done; \
22121df0 3977 echo "Doing clean in bfd"; \
a90ef4bf 3978 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3981 "RANLIB=$${RANLIB}" \
0c24b341 3982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3983 clean) \
2a4cbe27
NN
3984 || exit 1
3985
a90ef4bf 3986@endif bfd
2a4cbe27 3987
a90ef4bf
JM
3988.PHONY: maybe-distclean-bfd distclean-bfd
3989maybe-distclean-bfd:
3990@if bfd
3991maybe-distclean-bfd: distclean-bfd
2a4cbe27 3992
a90ef4bf
JM
3993distclean-bfd:
3994 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3995 r=`${PWD_COMMAND}`; export r; \
3996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3997 $(HOST_EXPORTS) \
b813574b 3998 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4000 done; \
22121df0 4001 echo "Doing distclean in bfd"; \
a90ef4bf 4002 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4005 "RANLIB=$${RANLIB}" \
0c24b341 4006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4007 distclean) \
2a4cbe27
NN
4008 || exit 1
4009
a90ef4bf 4010@endif bfd
2a4cbe27 4011
a90ef4bf
JM
4012.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4013maybe-maintainer-clean-bfd:
4014@if bfd
4015maybe-maintainer-clean-bfd: maintainer-clean-bfd
2a4cbe27 4016
a90ef4bf
JM
4017maintainer-clean-bfd:
4018 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4019 r=`${PWD_COMMAND}`; export r; \
4020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4021 $(HOST_EXPORTS) \
b813574b 4022 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4024 done; \
22121df0 4025 echo "Doing maintainer-clean in bfd"; \
a90ef4bf 4026 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4029 "RANLIB=$${RANLIB}" \
0c24b341 4030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4031 maintainer-clean) \
2a4cbe27
NN
4032 || exit 1
4033
a90ef4bf 4034@endif bfd
2a4cbe27 4035
2a4cbe27 4036
a7254363 4037
a90ef4bf
JM
4038.PHONY: configure-opcodes maybe-configure-opcodes
4039maybe-configure-opcodes:
4f0ef2d8 4040@if gcc-bootstrap
a90ef4bf 4041configure-opcodes: stage_current
4f0ef2d8 4042@endif gcc-bootstrap
a90ef4bf
JM
4043@if opcodes
4044maybe-configure-opcodes: configure-opcodes
4045configure-opcodes:
c52c6897 4046 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4048 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
22121df0 4049 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
1f53ca9a 4050 $(HOST_EXPORTS) \
a90ef4bf
JM
4051 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4052 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
4fa63067 4053 case $(srcdir) in \
b00612cc 4054 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4055 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
b00612cc 4056 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4057 esac; \
1b6c0831
L
4058 module_srcdir=opcodes; \
4059 $(SHELL) \
4060 $$s/$$module_srcdir/configure \
4061 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4062 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4063 --target=${target_alias} \
2a4cbe27 4064 || exit 1
a90ef4bf 4065@endif opcodes
a7254363 4066
d545f33b
PB
4067
4068
a90ef4bf
JM
4069.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4070maybe-configure-stage1-opcodes:
4071@if opcodes-bootstrap
4072maybe-configure-stage1-opcodes: configure-stage1-opcodes
4073configure-stage1-opcodes:
4074 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4075 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4076 @r=`${PWD_COMMAND}`; export r; \
4077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4078 TFLAGS="$(STAGE1_TFLAGS)"; \
4079 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4080 $(HOST_EXPORTS) \
4081 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
4082 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4083 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4084 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes; \
4085 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4086 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4087 case $(srcdir) in \
4088 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4089 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4090 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4091 esac; \
1b6c0831
L
4092 module_srcdir=opcodes; \
4093 $(SHELL) $$s/$$module_srcdir/configure \
4094 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4095 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4096 --target=${target_alias} \
4097 \
a90ef4bf
JM
4098 $(STAGE1_CONFIGURE_FLAGS)
4099@endif opcodes-bootstrap
2a4cbe27 4100
a90ef4bf
JM
4101.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4102maybe-configure-stage2-opcodes:
4103@if opcodes-bootstrap
4104maybe-configure-stage2-opcodes: configure-stage2-opcodes
4105configure-stage2-opcodes:
4106 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4107 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067 4108 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4110 TFLAGS="$(STAGE2_TFLAGS)"; \
4111 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4112 $(HOST_EXPORTS) \
a90ef4bf
JM
4113 $(POSTSTAGE1_HOST_EXPORTS) \
4114 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
4115 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4116 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4117 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes; \
4118 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4119 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4120 case $(srcdir) in \
4121 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4122 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4123 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4124 esac; \
1b6c0831
L
4125 module_srcdir=opcodes; \
4126 $(SHELL) $$s/$$module_srcdir/configure \
4127 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4128 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4129 --target=${target_alias} \
22121df0 4130 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4131 $(STAGE2_CONFIGURE_FLAGS)
4132@endif opcodes-bootstrap
2a4cbe27 4133
a90ef4bf
JM
4134.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
4135maybe-configure-stage3-opcodes:
4136@if opcodes-bootstrap
4137maybe-configure-stage3-opcodes: configure-stage3-opcodes
4138configure-stage3-opcodes:
4139 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4140 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4141 @r=`${PWD_COMMAND}`; export r; \
4142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4143 TFLAGS="$(STAGE3_TFLAGS)"; \
4144 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4145 $(HOST_EXPORTS) \
a90ef4bf
JM
4146 $(POSTSTAGE1_HOST_EXPORTS) \
4147 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
4148 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4149 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4150 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes; \
4151 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4152 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4153 case $(srcdir) in \
4154 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4155 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4156 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4157 esac; \
1b6c0831
L
4158 module_srcdir=opcodes; \
4159 $(SHELL) $$s/$$module_srcdir/configure \
4160 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4161 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4162 --target=${target_alias} \
22121df0 4163 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4164 $(STAGE3_CONFIGURE_FLAGS)
4165@endif opcodes-bootstrap
9b980aa1 4166
a90ef4bf
JM
4167.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
4168maybe-configure-stage4-opcodes:
4169@if opcodes-bootstrap
4170maybe-configure-stage4-opcodes: configure-stage4-opcodes
4171configure-stage4-opcodes:
4172 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4173 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
9b980aa1
RW
4174 @r=`${PWD_COMMAND}`; export r; \
4175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4176 TFLAGS="$(STAGE4_TFLAGS)"; \
4177 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
9b980aa1 4178 $(HOST_EXPORTS) \
a90ef4bf
JM
4179 $(POSTSTAGE1_HOST_EXPORTS) \
4180 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
4181 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4182 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4183 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes; \
4184 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4185 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4186 case $(srcdir) in \
4187 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4188 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4189 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4190 esac; \
1b6c0831
L
4191 module_srcdir=opcodes; \
4192 $(SHELL) $$s/$$module_srcdir/configure \
4193 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4194 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4195 --target=${target_alias} \
22121df0 4196 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4197 $(STAGE4_CONFIGURE_FLAGS)
4198@endif opcodes-bootstrap
4fa63067 4199
a90ef4bf
JM
4200.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
4201maybe-configure-stageprofile-opcodes:
4202@if opcodes-bootstrap
4203maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
4204configure-stageprofile-opcodes:
4205 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4206 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4207 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4209 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4210 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4211 $(HOST_EXPORTS) \
a90ef4bf
JM
4212 $(POSTSTAGE1_HOST_EXPORTS) \
4213 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4214 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4215 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4216 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes; \
4217 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4218 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4219 case $(srcdir) in \
4220 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4221 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4222 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4223 esac; \
1b6c0831
L
4224 module_srcdir=opcodes; \
4225 $(SHELL) $$s/$$module_srcdir/configure \
4226 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4227 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4228 --target=${target_alias} \
22121df0 4229 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4230 $(STAGEprofile_CONFIGURE_FLAGS)
4231@endif opcodes-bootstrap
4232
4233.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4234maybe-configure-stagefeedback-opcodes:
4235@if opcodes-bootstrap
4236maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4237configure-stagefeedback-opcodes:
4238 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4239 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4240 @r=`${PWD_COMMAND}`; export r; \
4241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4242 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4243 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4244 $(HOST_EXPORTS) \
4245 $(POSTSTAGE1_HOST_EXPORTS) \
4246 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4247 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4248 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4249 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes; \
4250 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4251 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4252 case $(srcdir) in \
4253 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4254 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4255 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4256 esac; \
1b6c0831
L
4257 module_srcdir=opcodes; \
4258 $(SHELL) $$s/$$module_srcdir/configure \
4259 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4260 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4261 --target=${target_alias} \
22121df0 4262 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4263 $(STAGEfeedback_CONFIGURE_FLAGS)
4264@endif opcodes-bootstrap
4265
4266
4267
4268
4269
4270.PHONY: all-opcodes maybe-all-opcodes
4271maybe-all-opcodes:
4272@if gcc-bootstrap
4273all-opcodes: stage_current
4274@endif gcc-bootstrap
4275@if opcodes
4276TARGET-opcodes=all
4277maybe-all-opcodes: all-opcodes
4278all-opcodes: configure-opcodes
4279 @r=`${PWD_COMMAND}`; export r; \
4280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4281 $(HOST_EXPORTS) \
4282 (cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4283 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4284 $(TARGET-opcodes))
4285@endif opcodes
4286
4287
4288
4289.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4290.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4291maybe-all-stage1-opcodes:
4292maybe-clean-stage1-opcodes:
4293@if opcodes-bootstrap
4294maybe-all-stage1-opcodes: all-stage1-opcodes
4295all-stage1: all-stage1-opcodes
4296TARGET-stage1-opcodes = $(TARGET-opcodes)
4297all-stage1-opcodes: configure-stage1-opcodes
4298 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4299 @r=`${PWD_COMMAND}`; export r; \
4300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4301 TFLAGS="$(STAGE1_TFLAGS)"; \
4302 $(HOST_EXPORTS) \
4303 cd $(HOST_SUBDIR)/opcodes && \
4304 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4305 CFLAGS="$(STAGE1_CFLAGS)" \
4306 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4307 LIBCFLAGS="$(LIBCFLAGS)" \
4308 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4309 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4310 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4311 $(EXTRA_HOST_FLAGS) \
4312 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4313 TFLAGS="$(STAGE1_TFLAGS)" \
4314 $(TARGET-stage1-opcodes)
4315
4316maybe-clean-stage1-opcodes: clean-stage1-opcodes
4317clean-stage1: clean-stage1-opcodes
4318clean-stage1-opcodes:
4319 @if [ $(current_stage) = stage1 ]; then \
4320 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4321 else \
4322 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4323 $(MAKE) stage1-start; \
4324 fi; \
4325 cd $(HOST_SUBDIR)/opcodes && \
4326 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 4327 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4328@endif opcodes-bootstrap
4329
4330
4331.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4332.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4333maybe-all-stage2-opcodes:
4334maybe-clean-stage2-opcodes:
4335@if opcodes-bootstrap
4336maybe-all-stage2-opcodes: all-stage2-opcodes
4337all-stage2: all-stage2-opcodes
4338TARGET-stage2-opcodes = $(TARGET-opcodes)
4339all-stage2-opcodes: configure-stage2-opcodes
4340 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4341 @r=`${PWD_COMMAND}`; export r; \
4342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4343 TFLAGS="$(STAGE2_TFLAGS)"; \
4344 $(HOST_EXPORTS) \
4345 $(POSTSTAGE1_HOST_EXPORTS) \
4346 cd $(HOST_SUBDIR)/opcodes && \
4347 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4348 CFLAGS="$(STAGE2_CFLAGS)" \
4349 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4350 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4351 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4352 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4353 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4354 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4355 TFLAGS="$(STAGE2_TFLAGS)" \
4356 $(TARGET-stage2-opcodes)
4357
4358maybe-clean-stage2-opcodes: clean-stage2-opcodes
4359clean-stage2: clean-stage2-opcodes
4360clean-stage2-opcodes:
4361 @if [ $(current_stage) = stage2 ]; then \
4362 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4363 else \
4364 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4365 $(MAKE) stage2-start; \
4366 fi; \
4367 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4368 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4369@endif opcodes-bootstrap
4370
4371
4372.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4373.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4374maybe-all-stage3-opcodes:
4375maybe-clean-stage3-opcodes:
4376@if opcodes-bootstrap
4377maybe-all-stage3-opcodes: all-stage3-opcodes
4378all-stage3: all-stage3-opcodes
4379TARGET-stage3-opcodes = $(TARGET-opcodes)
4380all-stage3-opcodes: configure-stage3-opcodes
4381 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4382 @r=`${PWD_COMMAND}`; export r; \
4383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4384 TFLAGS="$(STAGE3_TFLAGS)"; \
4385 $(HOST_EXPORTS) \
4386 $(POSTSTAGE1_HOST_EXPORTS) \
4387 cd $(HOST_SUBDIR)/opcodes && \
4388 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4389 CFLAGS="$(STAGE3_CFLAGS)" \
4390 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4391 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4392 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4393 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4394 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4395 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4396 TFLAGS="$(STAGE3_TFLAGS)" \
4397 $(TARGET-stage3-opcodes)
4398
4399maybe-clean-stage3-opcodes: clean-stage3-opcodes
4400clean-stage3: clean-stage3-opcodes
4401clean-stage3-opcodes:
4402 @if [ $(current_stage) = stage3 ]; then \
4403 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4404 else \
4405 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4406 $(MAKE) stage3-start; \
4407 fi; \
4408 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4409 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4410@endif opcodes-bootstrap
4411
4412
4413.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4414.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4415maybe-all-stage4-opcodes:
4416maybe-clean-stage4-opcodes:
4417@if opcodes-bootstrap
4418maybe-all-stage4-opcodes: all-stage4-opcodes
4419all-stage4: all-stage4-opcodes
4420TARGET-stage4-opcodes = $(TARGET-opcodes)
4421all-stage4-opcodes: configure-stage4-opcodes
4422 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4423 @r=`${PWD_COMMAND}`; export r; \
4424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4425 TFLAGS="$(STAGE4_TFLAGS)"; \
4426 $(HOST_EXPORTS) \
4427 $(POSTSTAGE1_HOST_EXPORTS) \
4428 cd $(HOST_SUBDIR)/opcodes && \
4429 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4430 CFLAGS="$(STAGE4_CFLAGS)" \
4431 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4432 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4433 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4434 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4435 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4436 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4437 TFLAGS="$(STAGE4_TFLAGS)" \
4438 $(TARGET-stage4-opcodes)
4439
4440maybe-clean-stage4-opcodes: clean-stage4-opcodes
4441clean-stage4: clean-stage4-opcodes
4442clean-stage4-opcodes:
4443 @if [ $(current_stage) = stage4 ]; then \
4444 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4445 else \
4446 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4447 $(MAKE) stage4-start; \
4448 fi; \
4449 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4450 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4451@endif opcodes-bootstrap
4452
4453
4454.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4455.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4456maybe-all-stageprofile-opcodes:
4457maybe-clean-stageprofile-opcodes:
4458@if opcodes-bootstrap
4459maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4460all-stageprofile: all-stageprofile-opcodes
4461TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4462all-stageprofile-opcodes: configure-stageprofile-opcodes
4463 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4464 @r=`${PWD_COMMAND}`; export r; \
4465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4466 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4467 $(HOST_EXPORTS) \
4468 $(POSTSTAGE1_HOST_EXPORTS) \
4469 cd $(HOST_SUBDIR)/opcodes && \
4470 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4471 CFLAGS="$(STAGEprofile_CFLAGS)" \
4472 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4473 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4474 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4475 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4476 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4477 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4478 TFLAGS="$(STAGEprofile_TFLAGS)" \
4479 $(TARGET-stageprofile-opcodes)
4480
4481maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4482clean-stageprofile: clean-stageprofile-opcodes
4483clean-stageprofile-opcodes:
4484 @if [ $(current_stage) = stageprofile ]; then \
4485 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4486 else \
4487 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4488 $(MAKE) stageprofile-start; \
4489 fi; \
4490 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4491 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4492@endif opcodes-bootstrap
4493
4494
4495.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4496.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4497maybe-all-stagefeedback-opcodes:
4498maybe-clean-stagefeedback-opcodes:
4499@if opcodes-bootstrap
4500maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4501all-stagefeedback: all-stagefeedback-opcodes
4502TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4503all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4504 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4505 @r=`${PWD_COMMAND}`; export r; \
4506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4507 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4508 $(HOST_EXPORTS) \
4509 $(POSTSTAGE1_HOST_EXPORTS) \
4510 cd $(HOST_SUBDIR)/opcodes && \
4511 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4512 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4513 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4514 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4515 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4516 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4517 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4518 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4519 TFLAGS="$(STAGEfeedback_TFLAGS)" \
4520 $(TARGET-stagefeedback-opcodes)
4521
4522maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4523clean-stagefeedback: clean-stagefeedback-opcodes
4524clean-stagefeedback-opcodes:
4525 @if [ $(current_stage) = stagefeedback ]; then \
4526 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4527 else \
4528 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4529 $(MAKE) stagefeedback-start; \
4530 fi; \
4531 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4532 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4533@endif opcodes-bootstrap
4534
4535
4536
4537
4538
4539.PHONY: check-opcodes maybe-check-opcodes
4540maybe-check-opcodes:
4541@if opcodes
4542maybe-check-opcodes: check-opcodes
4543
4544check-opcodes:
0aed8855 4545 @: $(MAKE); $(unstage)
a90ef4bf 4546 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 4548 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 4549 (cd $(HOST_SUBDIR)/opcodes && \
f91ca6bc 4550 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 4551
a90ef4bf 4552@endif opcodes
2a4cbe27 4553
a90ef4bf
JM
4554.PHONY: install-opcodes maybe-install-opcodes
4555maybe-install-opcodes:
4556@if opcodes
4557maybe-install-opcodes: install-opcodes
56a8fe78 4558
a90ef4bf 4559install-opcodes: installdirs
56a8fe78 4560 @: $(MAKE); $(unstage)
a90ef4bf 4561 @r=`${PWD_COMMAND}`; export r; \
56a8fe78
DD
4562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4563 $(HOST_EXPORTS) \
a90ef4bf
JM
4564 (cd $(HOST_SUBDIR)/opcodes && \
4565 $(MAKE) $(FLAGS_TO_PASS) install)
56a8fe78 4566
a90ef4bf 4567@endif opcodes
56a8fe78 4568
a90ef4bf
JM
4569.PHONY: install-strip-opcodes maybe-install-strip-opcodes
4570maybe-install-strip-opcodes:
4571@if opcodes
4572maybe-install-strip-opcodes: install-strip-opcodes
6d389afc 4573
a90ef4bf 4574install-strip-opcodes: installdirs
0aed8855 4575 @: $(MAKE); $(unstage)
a90ef4bf
JM
4576 @r=`${PWD_COMMAND}`; export r; \
4577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4578 $(HOST_EXPORTS) \
4579 (cd $(HOST_SUBDIR)/opcodes && \
4580 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4581
4582@endif opcodes
4583
4584# Other targets (info, dvi, pdf, etc.)
4585
4586.PHONY: maybe-info-opcodes info-opcodes
4587maybe-info-opcodes:
4588@if opcodes
4589maybe-info-opcodes: info-opcodes
4590
4591info-opcodes: \
4592 configure-opcodes
4593 @[ -f ./opcodes/Makefile ] || exit 0; \
6d389afc
MS
4594 r=`${PWD_COMMAND}`; export r; \
4595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
4596 $(HOST_EXPORTS) \
4597 for flag in $(EXTRA_HOST_FLAGS) ; do \
4598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4599 done; \
22121df0 4600 echo "Doing info in opcodes"; \
a90ef4bf 4601 (cd $(HOST_SUBDIR)/opcodes && \
6d389afc
MS
4602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4604 "RANLIB=$${RANLIB}" \
0c24b341 4605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4606 info) \
6d389afc
MS
4607 || exit 1
4608
a90ef4bf 4609@endif opcodes
6d389afc 4610
a90ef4bf
JM
4611.PHONY: maybe-dvi-opcodes dvi-opcodes
4612maybe-dvi-opcodes:
4613@if opcodes
4614maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 4615
a90ef4bf
JM
4616dvi-opcodes: \
4617 configure-opcodes
4618 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4619 r=`${PWD_COMMAND}`; export r; \
4620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4621 $(HOST_EXPORTS) \
b813574b 4622 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4624 done; \
22121df0 4625 echo "Doing dvi in opcodes"; \
a90ef4bf 4626 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4629 "RANLIB=$${RANLIB}" \
0c24b341 4630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4631 dvi) \
2a4cbe27
NN
4632 || exit 1
4633
a90ef4bf 4634@endif opcodes
2a4cbe27 4635
a90ef4bf
JM
4636.PHONY: maybe-pdf-opcodes pdf-opcodes
4637maybe-pdf-opcodes:
4638@if opcodes
4639maybe-pdf-opcodes: pdf-opcodes
2a4cbe27 4640
a90ef4bf
JM
4641pdf-opcodes: \
4642 configure-opcodes
4643 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4644 r=`${PWD_COMMAND}`; export r; \
4645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4646 $(HOST_EXPORTS) \
b813574b 4647 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4649 done; \
22121df0 4650 echo "Doing pdf in opcodes"; \
a90ef4bf 4651 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4654 "RANLIB=$${RANLIB}" \
0c24b341 4655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4656 pdf) \
2a4cbe27
NN
4657 || exit 1
4658
a90ef4bf 4659@endif opcodes
2a4cbe27 4660
a90ef4bf
JM
4661.PHONY: maybe-html-opcodes html-opcodes
4662maybe-html-opcodes:
4663@if opcodes
4664maybe-html-opcodes: html-opcodes
a3ca38d2 4665
a90ef4bf
JM
4666html-opcodes: \
4667 configure-opcodes
4668 @[ -f ./opcodes/Makefile ] || exit 0; \
a3ca38d2
DD
4669 r=`${PWD_COMMAND}`; export r; \
4670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4671 $(HOST_EXPORTS) \
4672 for flag in $(EXTRA_HOST_FLAGS) ; do \
4673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4674 done; \
22121df0 4675 echo "Doing html in opcodes"; \
a90ef4bf 4676 (cd $(HOST_SUBDIR)/opcodes && \
a3ca38d2
DD
4677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4679 "RANLIB=$${RANLIB}" \
0c24b341 4680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4681 html) \
a3ca38d2
DD
4682 || exit 1
4683
a90ef4bf 4684@endif opcodes
a3ca38d2 4685
a90ef4bf
JM
4686.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4687maybe-TAGS-opcodes:
4688@if opcodes
4689maybe-TAGS-opcodes: TAGS-opcodes
108a6f8e 4690
a90ef4bf
JM
4691TAGS-opcodes: \
4692 configure-opcodes
4693 @[ -f ./opcodes/Makefile ] || exit 0; \
108a6f8e
CD
4694 r=`${PWD_COMMAND}`; export r; \
4695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4696 $(HOST_EXPORTS) \
4697 for flag in $(EXTRA_HOST_FLAGS) ; do \
4698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4699 done; \
22121df0 4700 echo "Doing TAGS in opcodes"; \
a90ef4bf 4701 (cd $(HOST_SUBDIR)/opcodes && \
108a6f8e
CD
4702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4704 "RANLIB=$${RANLIB}" \
0c24b341 4705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4706 TAGS) \
108a6f8e
CD
4707 || exit 1
4708
a90ef4bf 4709@endif opcodes
108a6f8e 4710
a90ef4bf
JM
4711.PHONY: maybe-install-info-opcodes install-info-opcodes
4712maybe-install-info-opcodes:
4713@if opcodes
4714maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 4715
a90ef4bf
JM
4716install-info-opcodes: \
4717 configure-opcodes \
4718 info-opcodes
4719 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4720 r=`${PWD_COMMAND}`; export r; \
4721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4722 $(HOST_EXPORTS) \
b813574b 4723 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4725 done; \
22121df0 4726 echo "Doing install-info in opcodes"; \
a90ef4bf 4727 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4730 "RANLIB=$${RANLIB}" \
0c24b341 4731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4732 install-info) \
2a4cbe27
NN
4733 || exit 1
4734
a90ef4bf 4735@endif opcodes
2a4cbe27 4736
a90ef4bf
JM
4737.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
4738maybe-install-pdf-opcodes:
4739@if opcodes
4740maybe-install-pdf-opcodes: install-pdf-opcodes
2a4cbe27 4741
a90ef4bf
JM
4742install-pdf-opcodes: \
4743 configure-opcodes \
4744 pdf-opcodes
4745 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4746 r=`${PWD_COMMAND}`; export r; \
4747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4748 $(HOST_EXPORTS) \
b813574b 4749 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4751 done; \
22121df0 4752 echo "Doing install-pdf in opcodes"; \
a90ef4bf 4753 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4756 "RANLIB=$${RANLIB}" \
0c24b341 4757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4758 install-pdf) \
2a4cbe27
NN
4759 || exit 1
4760
a90ef4bf 4761@endif opcodes
2a4cbe27 4762
a90ef4bf
JM
4763.PHONY: maybe-install-html-opcodes install-html-opcodes
4764maybe-install-html-opcodes:
4765@if opcodes
4766maybe-install-html-opcodes: install-html-opcodes
2a4cbe27 4767
a90ef4bf
JM
4768install-html-opcodes: \
4769 configure-opcodes \
4770 html-opcodes
4771 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4772 r=`${PWD_COMMAND}`; export r; \
4773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4774 $(HOST_EXPORTS) \
b813574b 4775 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4777 done; \
22121df0 4778 echo "Doing install-html in opcodes"; \
a90ef4bf 4779 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4782 "RANLIB=$${RANLIB}" \
0c24b341 4783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4784 install-html) \
2a4cbe27
NN
4785 || exit 1
4786
a90ef4bf 4787@endif opcodes
2a4cbe27 4788
a90ef4bf
JM
4789.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4790maybe-installcheck-opcodes:
4791@if opcodes
4792maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 4793
a90ef4bf
JM
4794installcheck-opcodes: \
4795 configure-opcodes
4796 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4797 r=`${PWD_COMMAND}`; export r; \
4798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4799 $(HOST_EXPORTS) \
b813574b 4800 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4802 done; \
22121df0 4803 echo "Doing installcheck in opcodes"; \
a90ef4bf 4804 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4807 "RANLIB=$${RANLIB}" \
0c24b341 4808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4809 installcheck) \
2a4cbe27
NN
4810 || exit 1
4811
a90ef4bf 4812@endif opcodes
2a4cbe27 4813
a90ef4bf
JM
4814.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4815maybe-mostlyclean-opcodes:
4816@if opcodes
4817maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27 4818
a90ef4bf
JM
4819mostlyclean-opcodes:
4820 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4821 r=`${PWD_COMMAND}`; export r; \
4822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4823 $(HOST_EXPORTS) \
b813574b 4824 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4826 done; \
22121df0 4827 echo "Doing mostlyclean in opcodes"; \
a90ef4bf 4828 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4831 "RANLIB=$${RANLIB}" \
0c24b341 4832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4833 mostlyclean) \
2a4cbe27
NN
4834 || exit 1
4835
a90ef4bf 4836@endif opcodes
2a4cbe27 4837
a90ef4bf
JM
4838.PHONY: maybe-clean-opcodes clean-opcodes
4839maybe-clean-opcodes:
4840@if opcodes
4841maybe-clean-opcodes: clean-opcodes
2a4cbe27 4842
a90ef4bf
JM
4843clean-opcodes:
4844 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4845 r=`${PWD_COMMAND}`; export r; \
4846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4847 $(HOST_EXPORTS) \
b813574b 4848 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4850 done; \
22121df0 4851 echo "Doing clean in opcodes"; \
a90ef4bf 4852 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4855 "RANLIB=$${RANLIB}" \
0c24b341 4856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4857 clean) \
2a4cbe27
NN
4858 || exit 1
4859
a90ef4bf 4860@endif opcodes
2a4cbe27 4861
a90ef4bf
JM
4862.PHONY: maybe-distclean-opcodes distclean-opcodes
4863maybe-distclean-opcodes:
4864@if opcodes
4865maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 4866
a90ef4bf
JM
4867distclean-opcodes:
4868 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4869 r=`${PWD_COMMAND}`; export r; \
4870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4871 $(HOST_EXPORTS) \
b813574b 4872 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4874 done; \
22121df0 4875 echo "Doing distclean in opcodes"; \
a90ef4bf 4876 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4879 "RANLIB=$${RANLIB}" \
0c24b341 4880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4881 distclean) \
2a4cbe27
NN
4882 || exit 1
4883
a90ef4bf 4884@endif opcodes
2a4cbe27 4885
a90ef4bf
JM
4886.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4887maybe-maintainer-clean-opcodes:
4888@if opcodes
4889maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 4890
a90ef4bf
JM
4891maintainer-clean-opcodes:
4892 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4893 r=`${PWD_COMMAND}`; export r; \
4894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4895 $(HOST_EXPORTS) \
b813574b 4896 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4898 done; \
22121df0 4899 echo "Doing maintainer-clean in opcodes"; \
a90ef4bf 4900 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4903 "RANLIB=$${RANLIB}" \
0c24b341 4904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4905 maintainer-clean) \
2a4cbe27
NN
4906 || exit 1
4907
a90ef4bf 4908@endif opcodes
2a4cbe27 4909
2a4cbe27 4910
a7254363 4911
a90ef4bf
JM
4912.PHONY: configure-binutils maybe-configure-binutils
4913maybe-configure-binutils:
4f0ef2d8 4914@if gcc-bootstrap
a90ef4bf 4915configure-binutils: stage_current
4f0ef2d8 4916@endif gcc-bootstrap
a90ef4bf
JM
4917@if binutils
4918maybe-configure-binutils: configure-binutils
4919configure-binutils:
c52c6897
PB
4920 @r=`${PWD_COMMAND}`; export r; \
4921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4922 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
22121df0 4923 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
1f53ca9a 4924 $(HOST_EXPORTS) \
a90ef4bf
JM
4925 echo Configuring in $(HOST_SUBDIR)/binutils; \
4926 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
4fa63067 4927 case $(srcdir) in \
b00612cc 4928 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4929 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
b00612cc 4930 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4931 esac; \
1b6c0831
L
4932 module_srcdir=binutils; \
4933 $(SHELL) \
4934 $$s/$$module_srcdir/configure \
4935 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4936 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4937 --target=${target_alias} \
2a4cbe27 4938 || exit 1
a90ef4bf 4939@endif binutils
2a4cbe27 4940
a7254363
PB
4941
4942
a90ef4bf
JM
4943.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
4944maybe-configure-stage1-binutils:
4945@if binutils-bootstrap
4946maybe-configure-stage1-binutils: configure-stage1-binutils
4947configure-stage1-binutils:
c52c6897 4948 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 4949 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4950 @r=`${PWD_COMMAND}`; export r; \
4951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4952 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 4953 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
1b05fbbd 4954 $(HOST_EXPORTS) \
8ee82aff 4955 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4956 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4957 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4958 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils; \
4959 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 4960 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4961 case $(srcdir) in \
4962 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4963 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4964 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4965 esac; \
1b6c0831
L
4966 module_srcdir=binutils; \
4967 $(SHELL) $$s/$$module_srcdir/configure \
4968 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4969 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4970 --target=${target_alias} \
4971 \
1b05fbbd 4972 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 4973@endif binutils-bootstrap
d545f33b 4974
a90ef4bf
JM
4975.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
4976maybe-configure-stage2-binutils:
4977@if binutils-bootstrap
4978maybe-configure-stage2-binutils: configure-stage2-binutils
4979configure-stage2-binutils:
c52c6897 4980 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 4981 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4982 @r=`${PWD_COMMAND}`; export r; \
4983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4984 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 4985 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 4986 $(HOST_EXPORTS) \
1b05fbbd 4987 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 4988 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4989 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4990 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4991 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils; \
4992 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 4993 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4994 case $(srcdir) in \
4995 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4996 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4997 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4998 esac; \
1b6c0831
L
4999 module_srcdir=binutils; \
5000 $(SHELL) $$s/$$module_srcdir/configure \
5001 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5002 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5003 --target=${target_alias} \
22121df0 5004 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5005 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 5006@endif binutils-bootstrap
8520c408 5007
a90ef4bf
JM
5008.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
5009maybe-configure-stage3-binutils:
5010@if binutils-bootstrap
5011maybe-configure-stage3-binutils: configure-stage3-binutils
5012configure-stage3-binutils:
c52c6897 5013 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 5014 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5015 @r=`${PWD_COMMAND}`; export r; \
5016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5017 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 5018 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5019 $(HOST_EXPORTS) \
1b05fbbd 5020 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5021 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5022 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
5023 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5024 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils; \
5025 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5026 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5027 case $(srcdir) in \
5028 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5029 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5030 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5031 esac; \
1b6c0831
L
5032 module_srcdir=binutils; \
5033 $(SHELL) $$s/$$module_srcdir/configure \
5034 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5035 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5036 --target=${target_alias} \
22121df0 5037 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5038 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 5039@endif binutils-bootstrap
8520c408 5040
a90ef4bf
JM
5041.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5042maybe-configure-stage4-binutils:
5043@if binutils-bootstrap
5044maybe-configure-stage4-binutils: configure-stage4-binutils
5045configure-stage4-binutils:
c52c6897 5046 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 5047 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5048 @r=`${PWD_COMMAND}`; export r; \
5049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5050 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 5051 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5052 $(HOST_EXPORTS) \
1b05fbbd 5053 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5054 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5055 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
5056 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5057 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils; \
5058 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5059 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5060 case $(srcdir) in \
5061 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5062 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5063 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5064 esac; \
1b6c0831
L
5065 module_srcdir=binutils; \
5066 $(SHELL) $$s/$$module_srcdir/configure \
5067 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5068 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5069 --target=${target_alias} \
22121df0 5070 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5071 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 5072@endif binutils-bootstrap
d545f33b 5073
a90ef4bf
JM
5074.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5075maybe-configure-stageprofile-binutils:
5076@if binutils-bootstrap
5077maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
5078configure-stageprofile-binutils:
c52c6897 5079 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 5080 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5081 @r=`${PWD_COMMAND}`; export r; \
5082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5083 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 5084 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5085 $(HOST_EXPORTS) \
1b05fbbd
AO
5086 $(POSTSTAGE1_HOST_EXPORTS) \
5087 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5088 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
5089 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5090 echo Configuring stage profile in $(HOST_SUBDIR)/binutils; \
5091 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5092 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5093 case $(srcdir) in \
5094 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5095 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5096 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5097 esac; \
1b6c0831
L
5098 module_srcdir=binutils; \
5099 $(SHELL) $$s/$$module_srcdir/configure \
5100 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5101 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5102 --target=${target_alias} \
22121df0 5103 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5104 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 5105@endif binutils-bootstrap
d545f33b 5106
a90ef4bf
JM
5107.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5108maybe-configure-stagefeedback-binutils:
5109@if binutils-bootstrap
5110maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
5111configure-stagefeedback-binutils:
c52c6897 5112 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 5113 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5114 @r=`${PWD_COMMAND}`; export r; \
5115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5116 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 5117 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5118 $(HOST_EXPORTS) \
1b05fbbd
AO
5119 $(POSTSTAGE1_HOST_EXPORTS) \
5120 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5121 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
5122 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5123 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils; \
5124 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5125 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5126 case $(srcdir) in \
5127 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5128 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5129 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5130 esac; \
1b6c0831
L
5131 module_srcdir=binutils; \
5132 $(SHELL) $$s/$$module_srcdir/configure \
5133 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5134 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5135 --target=${target_alias} \
22121df0 5136 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5137 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 5138@endif binutils-bootstrap
d545f33b
PB
5139
5140
5141
5142
5143
a90ef4bf
JM
5144.PHONY: all-binutils maybe-all-binutils
5145maybe-all-binutils:
4f0ef2d8 5146@if gcc-bootstrap
a90ef4bf 5147all-binutils: stage_current
4f0ef2d8 5148@endif gcc-bootstrap
a90ef4bf
JM
5149@if binutils
5150TARGET-binutils=all
5151maybe-all-binutils: all-binutils
5152all-binutils: configure-binutils
c52c6897 5153 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 5155 $(HOST_EXPORTS) \
a90ef4bf 5156 (cd $(HOST_SUBDIR)/binutils && \
b3676d82 5157 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5158 $(TARGET-binutils))
5159@endif binutils
2a4cbe27 5160
a7254363 5161
d545f33b 5162
a90ef4bf
JM
5163.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5164.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5165maybe-all-stage1-binutils:
5166maybe-clean-stage1-binutils:
5167@if binutils-bootstrap
5168maybe-all-stage1-binutils: all-stage1-binutils
5169all-stage1: all-stage1-binutils
5170TARGET-stage1-binutils = $(TARGET-binutils)
5171all-stage1-binutils: configure-stage1-binutils
c52c6897 5172 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
5173 @r=`${PWD_COMMAND}`; export r; \
5174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5175 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 5176 $(HOST_EXPORTS) \
a90ef4bf 5177 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5178 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5179 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 5180 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
5181 LIBCFLAGS="$(LIBCFLAGS)" \
5182 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5183 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5184 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
5185 $(EXTRA_HOST_FLAGS) \
5186 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 5187 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 5188 $(TARGET-stage1-binutils)
d545f33b 5189
a90ef4bf
JM
5190maybe-clean-stage1-binutils: clean-stage1-binutils
5191clean-stage1: clean-stage1-binutils
5192clean-stage1-binutils:
9dbaa842 5193 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 5194 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5195 else \
a90ef4bf 5196 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5197 $(MAKE) stage1-start; \
5198 fi; \
a90ef4bf 5199 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5200 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 5201 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5202@endif binutils-bootstrap
d545f33b
PB
5203
5204
a90ef4bf
JM
5205.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5206.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5207maybe-all-stage2-binutils:
5208maybe-clean-stage2-binutils:
5209@if binutils-bootstrap
5210maybe-all-stage2-binutils: all-stage2-binutils
5211all-stage2: all-stage2-binutils
5212TARGET-stage2-binutils = $(TARGET-binutils)
5213all-stage2-binutils: configure-stage2-binutils
c52c6897 5214 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
5215 @r=`${PWD_COMMAND}`; export r; \
5216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5217 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 5218 $(HOST_EXPORTS) \
1f53ca9a 5219 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5220 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5221 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5222 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 5223 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
5224 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5225 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5226 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5227 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5228 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5229 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 5230 $(TARGET-stage2-binutils)
d545f33b 5231
a90ef4bf
JM
5232maybe-clean-stage2-binutils: clean-stage2-binutils
5233clean-stage2: clean-stage2-binutils
5234clean-stage2-binutils:
9dbaa842 5235 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 5236 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5237 else \
a90ef4bf 5238 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5239 $(MAKE) stage2-start; \
5240 fi; \
a90ef4bf 5241 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5242 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5243@endif binutils-bootstrap
d545f33b
PB
5244
5245
a90ef4bf
JM
5246.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5247.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5248maybe-all-stage3-binutils:
5249maybe-clean-stage3-binutils:
5250@if binutils-bootstrap
5251maybe-all-stage3-binutils: all-stage3-binutils
5252all-stage3: all-stage3-binutils
5253TARGET-stage3-binutils = $(TARGET-binutils)
5254all-stage3-binutils: configure-stage3-binutils
c52c6897 5255 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
5256 @r=`${PWD_COMMAND}`; export r; \
5257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5258 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 5259 $(HOST_EXPORTS) \
1f53ca9a 5260 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5261 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5262 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5263 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 5264 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
5265 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5266 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5267 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5268 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5269 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5270 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 5271 $(TARGET-stage3-binutils)
d545f33b 5272
a90ef4bf
JM
5273maybe-clean-stage3-binutils: clean-stage3-binutils
5274clean-stage3: clean-stage3-binutils
5275clean-stage3-binutils:
9dbaa842 5276 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 5277 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5278 else \
a90ef4bf 5279 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5280 $(MAKE) stage3-start; \
5281 fi; \
a90ef4bf 5282 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5283 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5284@endif binutils-bootstrap
d545f33b
PB
5285
5286
a90ef4bf
JM
5287.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5288.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5289maybe-all-stage4-binutils:
5290maybe-clean-stage4-binutils:
5291@if binutils-bootstrap
5292maybe-all-stage4-binutils: all-stage4-binutils
5293all-stage4: all-stage4-binutils
5294TARGET-stage4-binutils = $(TARGET-binutils)
5295all-stage4-binutils: configure-stage4-binutils
c52c6897 5296 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
5297 @r=`${PWD_COMMAND}`; export r; \
5298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5299 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 5300 $(HOST_EXPORTS) \
1f53ca9a 5301 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5302 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5303 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5304 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 5305 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 5306 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
5307 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5308 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5309 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5310 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5311 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 5312 $(TARGET-stage4-binutils)
d545f33b 5313
a90ef4bf
JM
5314maybe-clean-stage4-binutils: clean-stage4-binutils
5315clean-stage4: clean-stage4-binutils
5316clean-stage4-binutils:
9dbaa842 5317 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 5318 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5319 else \
a90ef4bf 5320 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5321 $(MAKE) stage4-start; \
5322 fi; \
a90ef4bf 5323 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5324 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5325@endif binutils-bootstrap
d545f33b
PB
5326
5327
a90ef4bf
JM
5328.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5329.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5330maybe-all-stageprofile-binutils:
5331maybe-clean-stageprofile-binutils:
5332@if binutils-bootstrap
5333maybe-all-stageprofile-binutils: all-stageprofile-binutils
5334all-stageprofile: all-stageprofile-binutils
5335TARGET-stageprofile-binutils = $(TARGET-binutils)
5336all-stageprofile-binutils: configure-stageprofile-binutils
c52c6897 5337 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
5338 @r=`${PWD_COMMAND}`; export r; \
5339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5340 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 5341 $(HOST_EXPORTS) \
1f53ca9a 5342 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5343 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5344 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5345 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 5346 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
5347 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5348 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5349 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5350 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5351 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5352 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 5353 $(TARGET-stageprofile-binutils)
d545f33b 5354
a90ef4bf
JM
5355maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5356clean-stageprofile: clean-stageprofile-binutils
5357clean-stageprofile-binutils:
9dbaa842 5358 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 5359 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5360 else \
a90ef4bf 5361 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5362 $(MAKE) stageprofile-start; \
5363 fi; \
a90ef4bf 5364 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5365 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5366@endif binutils-bootstrap
d545f33b
PB
5367
5368
a90ef4bf
JM
5369.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5370.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5371maybe-all-stagefeedback-binutils:
5372maybe-clean-stagefeedback-binutils:
5373@if binutils-bootstrap
5374maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5375all-stagefeedback: all-stagefeedback-binutils
5376TARGET-stagefeedback-binutils = $(TARGET-binutils)
5377all-stagefeedback-binutils: configure-stagefeedback-binutils
c52c6897 5378 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
5379 @r=`${PWD_COMMAND}`; export r; \
5380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5381 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 5382 $(HOST_EXPORTS) \
1f53ca9a 5383 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5384 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5385 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5386 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 5387 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
5388 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5389 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5390 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5391 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5392 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5393 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 5394 $(TARGET-stagefeedback-binutils)
d545f33b 5395
a90ef4bf
JM
5396maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
5397clean-stagefeedback: clean-stagefeedback-binutils
5398clean-stagefeedback-binutils:
9dbaa842 5399 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 5400 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5401 else \
a90ef4bf 5402 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5403 $(MAKE) stagefeedback-start; \
5404 fi; \
a90ef4bf 5405 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5406 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5407@endif binutils-bootstrap
d545f33b
PB
5408
5409
5410
5411
5412
a90ef4bf
JM
5413.PHONY: check-binutils maybe-check-binutils
5414maybe-check-binutils:
5415@if binutils
5416maybe-check-binutils: check-binutils
2a4cbe27 5417
a90ef4bf 5418check-binutils:
0aed8855 5419 @: $(MAKE); $(unstage)
4fa63067 5420 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5422 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 5423 (cd $(HOST_SUBDIR)/binutils && \
f91ca6bc 5424 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 5425
a90ef4bf 5426@endif binutils
2a4cbe27 5427
a90ef4bf
JM
5428.PHONY: install-binutils maybe-install-binutils
5429maybe-install-binutils:
5430@if binutils
5431maybe-install-binutils: install-binutils
2a4cbe27 5432
a90ef4bf 5433install-binutils: installdirs
0aed8855 5434 @: $(MAKE); $(unstage)
4fa63067 5435 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5437 $(HOST_EXPORTS) \
a90ef4bf 5438 (cd $(HOST_SUBDIR)/binutils && \
2da12f12 5439 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5440
a90ef4bf 5441@endif binutils
2a4cbe27 5442
a90ef4bf
JM
5443.PHONY: install-strip-binutils maybe-install-strip-binutils
5444maybe-install-strip-binutils:
5445@if binutils
5446maybe-install-strip-binutils: install-strip-binutils
9b980aa1 5447
a90ef4bf 5448install-strip-binutils: installdirs
9b980aa1
RW
5449 @: $(MAKE); $(unstage)
5450 @r=`${PWD_COMMAND}`; export r; \
5451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5452 $(HOST_EXPORTS) \
a90ef4bf 5453 (cd $(HOST_SUBDIR)/binutils && \
9b980aa1
RW
5454 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5455
a90ef4bf 5456@endif binutils
9b980aa1 5457
56a8fe78 5458# Other targets (info, dvi, pdf, etc.)
2a4cbe27 5459
a90ef4bf
JM
5460.PHONY: maybe-info-binutils info-binutils
5461maybe-info-binutils:
5462@if binutils
5463maybe-info-binutils: info-binutils
4fa63067 5464
a90ef4bf
JM
5465info-binutils: \
5466 configure-binutils
5467 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5468 r=`${PWD_COMMAND}`; export r; \
5469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5470 $(HOST_EXPORTS) \
b813574b 5471 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5473 done; \
22121df0 5474 echo "Doing info in binutils"; \
a90ef4bf 5475 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5478 "RANLIB=$${RANLIB}" \
0c24b341 5479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5480 info) \
2a4cbe27
NN
5481 || exit 1
5482
a90ef4bf 5483@endif binutils
2a4cbe27 5484
a90ef4bf
JM
5485.PHONY: maybe-dvi-binutils dvi-binutils
5486maybe-dvi-binutils:
5487@if binutils
5488maybe-dvi-binutils: dvi-binutils
2a4cbe27 5489
a90ef4bf
JM
5490dvi-binutils: \
5491 configure-binutils
5492 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5493 r=`${PWD_COMMAND}`; export r; \
5494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5495 $(HOST_EXPORTS) \
b813574b 5496 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5498 done; \
22121df0 5499 echo "Doing dvi in binutils"; \
a90ef4bf 5500 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5503 "RANLIB=$${RANLIB}" \
0c24b341 5504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5505 dvi) \
2a4cbe27
NN
5506 || exit 1
5507
a90ef4bf 5508@endif binutils
2a4cbe27 5509
a90ef4bf
JM
5510.PHONY: maybe-pdf-binutils pdf-binutils
5511maybe-pdf-binutils:
5512@if binutils
5513maybe-pdf-binutils: pdf-binutils
56a8fe78 5514
a90ef4bf
JM
5515pdf-binutils: \
5516 configure-binutils
5517 @[ -f ./binutils/Makefile ] || exit 0; \
56a8fe78
DD
5518 r=`${PWD_COMMAND}`; export r; \
5519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5520 $(HOST_EXPORTS) \
5521 for flag in $(EXTRA_HOST_FLAGS) ; do \
5522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5523 done; \
22121df0 5524 echo "Doing pdf in binutils"; \
a90ef4bf 5525 (cd $(HOST_SUBDIR)/binutils && \
56a8fe78
DD
5526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5528 "RANLIB=$${RANLIB}" \
0c24b341 5529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
5530 pdf) \
5531 || exit 1
5532
a90ef4bf 5533@endif binutils
56a8fe78 5534
a90ef4bf
JM
5535.PHONY: maybe-html-binutils html-binutils
5536maybe-html-binutils:
5537@if binutils
5538maybe-html-binutils: html-binutils
6d389afc 5539
a90ef4bf
JM
5540html-binutils: \
5541 configure-binutils
5542 @[ -f ./binutils/Makefile ] || exit 0; \
6d389afc
MS
5543 r=`${PWD_COMMAND}`; export r; \
5544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5545 $(HOST_EXPORTS) \
5546 for flag in $(EXTRA_HOST_FLAGS) ; do \
5547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5548 done; \
22121df0 5549 echo "Doing html in binutils"; \
a90ef4bf 5550 (cd $(HOST_SUBDIR)/binutils && \
6d389afc
MS
5551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5553 "RANLIB=$${RANLIB}" \
0c24b341 5554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
5555 html) \
5556 || exit 1
5557
a90ef4bf 5558@endif binutils
6d389afc 5559
a90ef4bf
JM
5560.PHONY: maybe-TAGS-binutils TAGS-binutils
5561maybe-TAGS-binutils:
5562@if binutils
5563maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 5564
a90ef4bf
JM
5565TAGS-binutils: \
5566 configure-binutils
5567 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5568 r=`${PWD_COMMAND}`; export r; \
5569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5570 $(HOST_EXPORTS) \
b813574b 5571 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5573 done; \
22121df0 5574 echo "Doing TAGS in binutils"; \
a90ef4bf 5575 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5578 "RANLIB=$${RANLIB}" \
0c24b341 5579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5580 TAGS) \
2a4cbe27
NN
5581 || exit 1
5582
a90ef4bf 5583@endif binutils
2a4cbe27 5584
a90ef4bf
JM
5585.PHONY: maybe-install-info-binutils install-info-binutils
5586maybe-install-info-binutils:
5587@if binutils
5588maybe-install-info-binutils: install-info-binutils
2a4cbe27 5589
a90ef4bf
JM
5590install-info-binutils: \
5591 configure-binutils \
5592 info-binutils
5593 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5594 r=`${PWD_COMMAND}`; export r; \
5595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5596 $(HOST_EXPORTS) \
b813574b 5597 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5599 done; \
22121df0 5600 echo "Doing install-info in binutils"; \
a90ef4bf 5601 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5604 "RANLIB=$${RANLIB}" \
0c24b341 5605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5606 install-info) \
2a4cbe27
NN
5607 || exit 1
5608
a90ef4bf 5609@endif binutils
2a4cbe27 5610
a90ef4bf
JM
5611.PHONY: maybe-install-pdf-binutils install-pdf-binutils
5612maybe-install-pdf-binutils:
5613@if binutils
5614maybe-install-pdf-binutils: install-pdf-binutils
a3ca38d2 5615
a90ef4bf
JM
5616install-pdf-binutils: \
5617 configure-binutils \
5618 pdf-binutils
5619 @[ -f ./binutils/Makefile ] || exit 0; \
a3ca38d2
DD
5620 r=`${PWD_COMMAND}`; export r; \
5621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5622 $(HOST_EXPORTS) \
5623 for flag in $(EXTRA_HOST_FLAGS) ; do \
5624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5625 done; \
22121df0 5626 echo "Doing install-pdf in binutils"; \
a90ef4bf 5627 (cd $(HOST_SUBDIR)/binutils && \
a3ca38d2
DD
5628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5630 "RANLIB=$${RANLIB}" \
0c24b341 5631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
5632 install-pdf) \
5633 || exit 1
5634
a90ef4bf 5635@endif binutils
a3ca38d2 5636
a90ef4bf
JM
5637.PHONY: maybe-install-html-binutils install-html-binutils
5638maybe-install-html-binutils:
5639@if binutils
5640maybe-install-html-binutils: install-html-binutils
108a6f8e 5641
a90ef4bf
JM
5642install-html-binutils: \
5643 configure-binutils \
5644 html-binutils
5645 @[ -f ./binutils/Makefile ] || exit 0; \
108a6f8e
CD
5646 r=`${PWD_COMMAND}`; export r; \
5647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5648 $(HOST_EXPORTS) \
5649 for flag in $(EXTRA_HOST_FLAGS) ; do \
5650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5651 done; \
22121df0 5652 echo "Doing install-html in binutils"; \
a90ef4bf 5653 (cd $(HOST_SUBDIR)/binutils && \
108a6f8e
CD
5654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5656 "RANLIB=$${RANLIB}" \
0c24b341 5657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
5658 install-html) \
5659 || exit 1
5660
a90ef4bf 5661@endif binutils
108a6f8e 5662
a90ef4bf
JM
5663.PHONY: maybe-installcheck-binutils installcheck-binutils
5664maybe-installcheck-binutils:
5665@if binutils
5666maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 5667
a90ef4bf
JM
5668installcheck-binutils: \
5669 configure-binutils
5670 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5671 r=`${PWD_COMMAND}`; export r; \
5672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5673 $(HOST_EXPORTS) \
b813574b 5674 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5676 done; \
22121df0 5677 echo "Doing installcheck in binutils"; \
a90ef4bf 5678 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5681 "RANLIB=$${RANLIB}" \
0c24b341 5682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5683 installcheck) \
2a4cbe27
NN
5684 || exit 1
5685
a90ef4bf 5686@endif binutils
2a4cbe27 5687
a90ef4bf
JM
5688.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
5689maybe-mostlyclean-binutils:
5690@if binutils
5691maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 5692
a90ef4bf
JM
5693mostlyclean-binutils:
5694 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5695 r=`${PWD_COMMAND}`; export r; \
5696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5697 $(HOST_EXPORTS) \
b813574b 5698 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5700 done; \
22121df0 5701 echo "Doing mostlyclean in binutils"; \
a90ef4bf 5702 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5705 "RANLIB=$${RANLIB}" \
0c24b341 5706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5707 mostlyclean) \
2a4cbe27
NN
5708 || exit 1
5709
a90ef4bf 5710@endif binutils
2a4cbe27 5711
a90ef4bf
JM
5712.PHONY: maybe-clean-binutils clean-binutils
5713maybe-clean-binutils:
5714@if binutils
5715maybe-clean-binutils: clean-binutils
2a4cbe27 5716
a90ef4bf
JM
5717clean-binutils:
5718 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5719 r=`${PWD_COMMAND}`; export r; \
5720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5721 $(HOST_EXPORTS) \
b813574b 5722 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5724 done; \
22121df0 5725 echo "Doing clean in binutils"; \
a90ef4bf 5726 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5729 "RANLIB=$${RANLIB}" \
0c24b341 5730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5731 clean) \
2a4cbe27
NN
5732 || exit 1
5733
a90ef4bf 5734@endif binutils
2a4cbe27 5735
a90ef4bf
JM
5736.PHONY: maybe-distclean-binutils distclean-binutils
5737maybe-distclean-binutils:
5738@if binutils
5739maybe-distclean-binutils: distclean-binutils
2a4cbe27 5740
a90ef4bf
JM
5741distclean-binutils:
5742 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5743 r=`${PWD_COMMAND}`; export r; \
5744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5745 $(HOST_EXPORTS) \
b813574b 5746 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5748 done; \
22121df0 5749 echo "Doing distclean in binutils"; \
a90ef4bf 5750 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5753 "RANLIB=$${RANLIB}" \
0c24b341 5754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5755 distclean) \
2a4cbe27
NN
5756 || exit 1
5757
a90ef4bf 5758@endif binutils
2a4cbe27 5759
a90ef4bf
JM
5760.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
5761maybe-maintainer-clean-binutils:
5762@if binutils
5763maybe-maintainer-clean-binutils: maintainer-clean-binutils
a2592b1b 5764
a90ef4bf
JM
5765maintainer-clean-binutils:
5766 @[ -f ./binutils/Makefile ] || exit 0; \
a2592b1b
DD
5767 r=`${PWD_COMMAND}`; export r; \
5768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5769 $(HOST_EXPORTS) \
b813574b 5770 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
5771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5772 done; \
22121df0 5773 echo "Doing maintainer-clean in binutils"; \
a90ef4bf 5774 (cd $(HOST_SUBDIR)/binutils && \
a2592b1b
DD
5775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5777 "RANLIB=$${RANLIB}" \
0c24b341 5778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5779 maintainer-clean) \
a2592b1b
DD
5780 || exit 1
5781
a90ef4bf 5782@endif binutils
a2592b1b 5783
2a4cbe27 5784
a7254363 5785
a90ef4bf
JM
5786.PHONY: configure-bison maybe-configure-bison
5787maybe-configure-bison:
4f0ef2d8 5788@if gcc-bootstrap
a90ef4bf 5789configure-bison: stage_current
4f0ef2d8 5790@endif gcc-bootstrap
a90ef4bf
JM
5791@if bison
5792maybe-configure-bison: configure-bison
5793configure-bison:
5794 @: $(MAKE); $(unstage)
c52c6897
PB
5795 @r=`${PWD_COMMAND}`; export r; \
5796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 5797 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
22121df0 5798 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison; \
1f53ca9a 5799 $(HOST_EXPORTS) \
a90ef4bf
JM
5800 echo Configuring in $(HOST_SUBDIR)/bison; \
5801 cd "$(HOST_SUBDIR)/bison" || exit 1; \
4fa63067 5802 case $(srcdir) in \
b00612cc 5803 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5804 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
b00612cc 5805 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5806 esac; \
1b6c0831
L
5807 module_srcdir=bison; \
5808 $(SHELL) \
5809 $$s/$$module_srcdir/configure \
5810 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5811 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5812 --target=${target_alias} \
4fa63067 5813 || exit 1
a90ef4bf 5814@endif bison
2a4cbe27 5815
a7254363
PB
5816
5817
d545f33b 5818
8520c408 5819
a90ef4bf
JM
5820.PHONY: all-bison maybe-all-bison
5821maybe-all-bison:
5822@if gcc-bootstrap
5823all-bison: stage_current
5824@endif gcc-bootstrap
5825@if bison
5826TARGET-bison=all
5827maybe-all-bison: all-bison
5828all-bison: configure-bison
5829 @: $(MAKE); $(unstage)
c52c6897
PB
5830 @r=`${PWD_COMMAND}`; export r; \
5831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5832 $(HOST_EXPORTS) \
5833 (cd $(HOST_SUBDIR)/bison && \
b3676d82 5834 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5835 $(TARGET-bison))
5836@endif bison
8520c408 5837
d545f33b 5838
d545f33b 5839
d545f33b 5840
a90ef4bf
JM
5841.PHONY: check-bison maybe-check-bison
5842maybe-check-bison:
5843@if bison
5844maybe-check-bison: check-bison
d545f33b 5845
a90ef4bf
JM
5846# This module is only tested in a native toolchain.
5847check-bison:
5848 @: $(MAKE); $(unstage)
22121df0 5849 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
5850 r=`${PWD_COMMAND}`; export r; \
5851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5852 $(HOST_EXPORTS) \
a90ef4bf 5853 (cd $(HOST_SUBDIR)/bison && \
f91ca6bc 5854 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 5855 fi
d545f33b 5856
a90ef4bf 5857@endif bison
d545f33b 5858
a90ef4bf
JM
5859.PHONY: install-bison maybe-install-bison
5860maybe-install-bison:
5861@if bison
5862maybe-install-bison: install-bison
d545f33b 5863
a90ef4bf
JM
5864install-bison: installdirs
5865 @: $(MAKE); $(unstage)
c52c6897 5866 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5868 $(HOST_EXPORTS) \
5869 (cd $(HOST_SUBDIR)/bison && \
5870 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5871
a90ef4bf 5872@endif bison
a7254363 5873
a90ef4bf
JM
5874.PHONY: install-strip-bison maybe-install-strip-bison
5875maybe-install-strip-bison:
5876@if bison
5877maybe-install-strip-bison: install-strip-bison
d545f33b 5878
a90ef4bf
JM
5879install-strip-bison: installdirs
5880 @: $(MAKE); $(unstage)
d545f33b
PB
5881 @r=`${PWD_COMMAND}`; export r; \
5882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5883 $(HOST_EXPORTS) \
5884 (cd $(HOST_SUBDIR)/bison && \
5885 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 5886
a90ef4bf 5887@endif bison
d545f33b 5888
a90ef4bf 5889# Other targets (info, dvi, pdf, etc.)
d545f33b 5890
a90ef4bf
JM
5891.PHONY: maybe-info-bison info-bison
5892maybe-info-bison:
5893@if bison
5894maybe-info-bison: info-bison
5895
5896info-bison: \
5897 configure-bison
5898 @: $(MAKE); $(unstage)
5899 @[ -f ./bison/Makefile ] || exit 0; \
5900 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5902 $(HOST_EXPORTS) \
a90ef4bf
JM
5903 for flag in $(EXTRA_HOST_FLAGS) ; do \
5904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5905 done; \
22121df0 5906 echo "Doing info in bison"; \
a90ef4bf
JM
5907 (cd $(HOST_SUBDIR)/bison && \
5908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5910 "RANLIB=$${RANLIB}" \
5911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5912 info) \
5913 || exit 1
d545f33b 5914
a90ef4bf 5915@endif bison
d545f33b 5916
a90ef4bf
JM
5917.PHONY: maybe-dvi-bison dvi-bison
5918maybe-dvi-bison:
5919@if bison
5920maybe-dvi-bison: dvi-bison
d545f33b 5921
a90ef4bf
JM
5922dvi-bison: \
5923 configure-bison
5924 @: $(MAKE); $(unstage)
5925 @[ -f ./bison/Makefile ] || exit 0; \
5926 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5928 $(HOST_EXPORTS) \
a90ef4bf
JM
5929 for flag in $(EXTRA_HOST_FLAGS) ; do \
5930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5931 done; \
22121df0 5932 echo "Doing dvi in bison"; \
a90ef4bf
JM
5933 (cd $(HOST_SUBDIR)/bison && \
5934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5936 "RANLIB=$${RANLIB}" \
5937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5938 dvi) \
5939 || exit 1
d545f33b 5940
a90ef4bf 5941@endif bison
d545f33b 5942
a90ef4bf
JM
5943.PHONY: maybe-pdf-bison pdf-bison
5944maybe-pdf-bison:
5945@if bison
5946maybe-pdf-bison: pdf-bison
d545f33b 5947
a90ef4bf
JM
5948pdf-bison: \
5949 configure-bison
5950 @: $(MAKE); $(unstage)
5951 @[ -f ./bison/Makefile ] || exit 0; \
5952 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5954 $(HOST_EXPORTS) \
a90ef4bf
JM
5955 for flag in $(EXTRA_HOST_FLAGS) ; do \
5956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5957 done; \
22121df0 5958 echo "Doing pdf in bison"; \
a90ef4bf
JM
5959 (cd $(HOST_SUBDIR)/bison && \
5960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5962 "RANLIB=$${RANLIB}" \
5963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5964 pdf) \
5965 || exit 1
d545f33b 5966
a90ef4bf 5967@endif bison
d545f33b 5968
a90ef4bf
JM
5969.PHONY: maybe-html-bison html-bison
5970maybe-html-bison:
5971@if bison
5972maybe-html-bison: html-bison
d545f33b 5973
a90ef4bf
JM
5974html-bison: \
5975 configure-bison
5976 @: $(MAKE); $(unstage)
5977 @[ -f ./bison/Makefile ] || exit 0; \
5978 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5980 $(HOST_EXPORTS) \
a90ef4bf
JM
5981 for flag in $(EXTRA_HOST_FLAGS) ; do \
5982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5983 done; \
22121df0 5984 echo "Doing html in bison"; \
a90ef4bf
JM
5985 (cd $(HOST_SUBDIR)/bison && \
5986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5988 "RANLIB=$${RANLIB}" \
5989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5990 html) \
5991 || exit 1
d545f33b 5992
a90ef4bf 5993@endif bison
2a4cbe27 5994
a90ef4bf
JM
5995.PHONY: maybe-TAGS-bison TAGS-bison
5996maybe-TAGS-bison:
5997@if bison
5998maybe-TAGS-bison: TAGS-bison
2a4cbe27 5999
a90ef4bf
JM
6000TAGS-bison: \
6001 configure-bison
0aed8855 6002 @: $(MAKE); $(unstage)
a90ef4bf
JM
6003 @[ -f ./bison/Makefile ] || exit 0; \
6004 r=`${PWD_COMMAND}`; export r; \
4fa63067 6005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6006 $(HOST_EXPORTS) \
a90ef4bf
JM
6007 for flag in $(EXTRA_HOST_FLAGS) ; do \
6008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6009 done; \
22121df0 6010 echo "Doing TAGS in bison"; \
a90ef4bf
JM
6011 (cd $(HOST_SUBDIR)/bison && \
6012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6014 "RANLIB=$${RANLIB}" \
6015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6016 TAGS) \
6017 || exit 1
4fa63067 6018
a90ef4bf 6019@endif bison
4fa63067 6020
a90ef4bf
JM
6021.PHONY: maybe-install-info-bison install-info-bison
6022maybe-install-info-bison:
6023@if bison
6024maybe-install-info-bison: install-info-bison
9b980aa1 6025
a90ef4bf
JM
6026install-info-bison: \
6027 configure-bison \
6028 info-bison
9b980aa1 6029 @: $(MAKE); $(unstage)
a90ef4bf 6030 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6031 r=`${PWD_COMMAND}`; export r; \
6032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6033 $(HOST_EXPORTS) \
b813574b 6034 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6036 done; \
22121df0 6037 echo "Doing install-info in bison"; \
a90ef4bf 6038 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6041 "RANLIB=$${RANLIB}" \
0c24b341 6042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6043 install-info) \
2a4cbe27
NN
6044 || exit 1
6045
a90ef4bf 6046@endif bison
2a4cbe27 6047
a90ef4bf
JM
6048.PHONY: maybe-install-pdf-bison install-pdf-bison
6049maybe-install-pdf-bison:
6050@if bison
6051maybe-install-pdf-bison: install-pdf-bison
2a4cbe27 6052
a90ef4bf
JM
6053install-pdf-bison: \
6054 configure-bison \
6055 pdf-bison
6056 @: $(MAKE); $(unstage)
6057 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6058 r=`${PWD_COMMAND}`; export r; \
6059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6060 $(HOST_EXPORTS) \
b813574b 6061 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6063 done; \
22121df0 6064 echo "Doing install-pdf in bison"; \
a90ef4bf 6065 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6068 "RANLIB=$${RANLIB}" \
0c24b341 6069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6070 install-pdf) \
2a4cbe27
NN
6071 || exit 1
6072
a90ef4bf 6073@endif bison
2a4cbe27 6074
a90ef4bf
JM
6075.PHONY: maybe-install-html-bison install-html-bison
6076maybe-install-html-bison:
6077@if bison
6078maybe-install-html-bison: install-html-bison
56a8fe78 6079
a90ef4bf
JM
6080install-html-bison: \
6081 configure-bison \
6082 html-bison
6083 @: $(MAKE); $(unstage)
6084 @[ -f ./bison/Makefile ] || exit 0; \
56a8fe78
DD
6085 r=`${PWD_COMMAND}`; export r; \
6086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6087 $(HOST_EXPORTS) \
6088 for flag in $(EXTRA_HOST_FLAGS) ; do \
6089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6090 done; \
22121df0 6091 echo "Doing install-html in bison"; \
a90ef4bf 6092 (cd $(HOST_SUBDIR)/bison && \
56a8fe78
DD
6093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6095 "RANLIB=$${RANLIB}" \
0c24b341 6096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6097 install-html) \
56a8fe78
DD
6098 || exit 1
6099
a90ef4bf 6100@endif bison
56a8fe78 6101
a90ef4bf
JM
6102.PHONY: maybe-installcheck-bison installcheck-bison
6103maybe-installcheck-bison:
6104@if bison
6105maybe-installcheck-bison: installcheck-bison
6d389afc 6106
a90ef4bf
JM
6107installcheck-bison: \
6108 configure-bison
6109 @: $(MAKE); $(unstage)
6110 @[ -f ./bison/Makefile ] || exit 0; \
6d389afc
MS
6111 r=`${PWD_COMMAND}`; export r; \
6112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6113 $(HOST_EXPORTS) \
6114 for flag in $(EXTRA_HOST_FLAGS) ; do \
6115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6116 done; \
22121df0 6117 echo "Doing installcheck in bison"; \
a90ef4bf 6118 (cd $(HOST_SUBDIR)/bison && \
6d389afc
MS
6119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6121 "RANLIB=$${RANLIB}" \
0c24b341 6122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6123 installcheck) \
6d389afc
MS
6124 || exit 1
6125
a90ef4bf 6126@endif bison
6d389afc 6127
a90ef4bf
JM
6128.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6129maybe-mostlyclean-bison:
6130@if bison
6131maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 6132
a90ef4bf
JM
6133mostlyclean-bison:
6134 @: $(MAKE); $(unstage)
6135 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6136 r=`${PWD_COMMAND}`; export r; \
6137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6138 $(HOST_EXPORTS) \
b813574b 6139 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6141 done; \
22121df0 6142 echo "Doing mostlyclean in bison"; \
a90ef4bf 6143 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6146 "RANLIB=$${RANLIB}" \
0c24b341 6147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6148 mostlyclean) \
2a4cbe27
NN
6149 || exit 1
6150
a90ef4bf 6151@endif bison
2a4cbe27 6152
a90ef4bf
JM
6153.PHONY: maybe-clean-bison clean-bison
6154maybe-clean-bison:
6155@if bison
6156maybe-clean-bison: clean-bison
2a4cbe27 6157
a90ef4bf
JM
6158clean-bison:
6159 @: $(MAKE); $(unstage)
6160 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6161 r=`${PWD_COMMAND}`; export r; \
6162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6163 $(HOST_EXPORTS) \
b813574b 6164 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6166 done; \
22121df0 6167 echo "Doing clean in bison"; \
a90ef4bf 6168 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6171 "RANLIB=$${RANLIB}" \
0c24b341 6172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6173 clean) \
2a4cbe27
NN
6174 || exit 1
6175
a90ef4bf 6176@endif bison
2a4cbe27 6177
a90ef4bf
JM
6178.PHONY: maybe-distclean-bison distclean-bison
6179maybe-distclean-bison:
6180@if bison
6181maybe-distclean-bison: distclean-bison
a3ca38d2 6182
a90ef4bf
JM
6183distclean-bison:
6184 @: $(MAKE); $(unstage)
6185 @[ -f ./bison/Makefile ] || exit 0; \
a3ca38d2
DD
6186 r=`${PWD_COMMAND}`; export r; \
6187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6188 $(HOST_EXPORTS) \
6189 for flag in $(EXTRA_HOST_FLAGS) ; do \
6190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6191 done; \
22121df0 6192 echo "Doing distclean in bison"; \
a90ef4bf 6193 (cd $(HOST_SUBDIR)/bison && \
a3ca38d2
DD
6194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6196 "RANLIB=$${RANLIB}" \
0c24b341 6197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6198 distclean) \
a3ca38d2
DD
6199 || exit 1
6200
a90ef4bf 6201@endif bison
a3ca38d2 6202
a90ef4bf
JM
6203.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6204maybe-maintainer-clean-bison:
6205@if bison
6206maybe-maintainer-clean-bison: maintainer-clean-bison
108a6f8e 6207
a90ef4bf
JM
6208maintainer-clean-bison:
6209 @: $(MAKE); $(unstage)
6210 @[ -f ./bison/Makefile ] || exit 0; \
108a6f8e
CD
6211 r=`${PWD_COMMAND}`; export r; \
6212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6213 $(HOST_EXPORTS) \
6214 for flag in $(EXTRA_HOST_FLAGS) ; do \
6215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6216 done; \
22121df0 6217 echo "Doing maintainer-clean in bison"; \
a90ef4bf 6218 (cd $(HOST_SUBDIR)/bison && \
108a6f8e
CD
6219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6221 "RANLIB=$${RANLIB}" \
0c24b341 6222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6223 maintainer-clean) \
108a6f8e
CD
6224 || exit 1
6225
a90ef4bf 6226@endif bison
108a6f8e 6227
2a4cbe27 6228
a90ef4bf
JM
6229
6230.PHONY: configure-cgen maybe-configure-cgen
6231maybe-configure-cgen:
6232@if gcc-bootstrap
6233configure-cgen: stage_current
6234@endif gcc-bootstrap
6235@if cgen
6236maybe-configure-cgen: configure-cgen
6237configure-cgen:
6238 @: $(MAKE); $(unstage)
6239 @r=`${PWD_COMMAND}`; export r; \
6240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6241 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
22121df0 6242 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen; \
a90ef4bf
JM
6243 $(HOST_EXPORTS) \
6244 echo Configuring in $(HOST_SUBDIR)/cgen; \
6245 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
6246 case $(srcdir) in \
6247 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6248 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
6249 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6250 esac; \
1b6c0831
L
6251 module_srcdir=cgen; \
6252 $(SHELL) \
6253 $$s/$$module_srcdir/configure \
6254 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 6255 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6256 --target=${target_alias} \
a90ef4bf
JM
6257 || exit 1
6258@endif cgen
6259
6260
6261
6262
6263
6264.PHONY: all-cgen maybe-all-cgen
6265maybe-all-cgen:
6266@if gcc-bootstrap
6267all-cgen: stage_current
6268@endif gcc-bootstrap
6269@if cgen
6270TARGET-cgen=all
6271maybe-all-cgen: all-cgen
6272all-cgen: configure-cgen
6273 @: $(MAKE); $(unstage)
6274 @r=`${PWD_COMMAND}`; export r; \
6275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6276 $(HOST_EXPORTS) \
6277 (cd $(HOST_SUBDIR)/cgen && \
b3676d82 6278 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6279 $(TARGET-cgen))
6280@endif cgen
6281
6282
6283
6284
6285.PHONY: check-cgen maybe-check-cgen
6286maybe-check-cgen:
6287@if cgen
6288maybe-check-cgen: check-cgen
6289
6290check-cgen:
6291 @: $(MAKE); $(unstage)
6292 @r=`${PWD_COMMAND}`; export r; \
6293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6294 $(HOST_EXPORTS) \
a90ef4bf
JM
6295 (cd $(HOST_SUBDIR)/cgen && \
6296 $(MAKE) $(FLAGS_TO_PASS) check)
6297
6298@endif cgen
6299
6300.PHONY: install-cgen maybe-install-cgen
6301maybe-install-cgen:
6302@if cgen
6303maybe-install-cgen: install-cgen
6304
6305install-cgen: installdirs
6306 @: $(MAKE); $(unstage)
6307 @r=`${PWD_COMMAND}`; export r; \
6308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6309 $(HOST_EXPORTS) \
6310 (cd $(HOST_SUBDIR)/cgen && \
6311 $(MAKE) $(FLAGS_TO_PASS) install)
6312
6313@endif cgen
6314
6315.PHONY: install-strip-cgen maybe-install-strip-cgen
6316maybe-install-strip-cgen:
6317@if cgen
6318maybe-install-strip-cgen: install-strip-cgen
6319
6320install-strip-cgen: installdirs
6321 @: $(MAKE); $(unstage)
6322 @r=`${PWD_COMMAND}`; export r; \
6323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6324 $(HOST_EXPORTS) \
6325 (cd $(HOST_SUBDIR)/cgen && \
6326 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6327
6328@endif cgen
6329
6330# Other targets (info, dvi, pdf, etc.)
6331
6332.PHONY: maybe-info-cgen info-cgen
6333maybe-info-cgen:
6334@if cgen
6335maybe-info-cgen: info-cgen
6336
6337info-cgen: \
6338 configure-cgen
6339 @: $(MAKE); $(unstage)
6340 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6341 r=`${PWD_COMMAND}`; export r; \
6342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6343 $(HOST_EXPORTS) \
b813574b 6344 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6346 done; \
22121df0 6347 echo "Doing info in cgen"; \
a90ef4bf 6348 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6351 "RANLIB=$${RANLIB}" \
0c24b341 6352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6353 info) \
2a4cbe27
NN
6354 || exit 1
6355
a90ef4bf 6356@endif cgen
2a4cbe27 6357
a90ef4bf
JM
6358.PHONY: maybe-dvi-cgen dvi-cgen
6359maybe-dvi-cgen:
6360@if cgen
6361maybe-dvi-cgen: dvi-cgen
2a4cbe27 6362
a90ef4bf
JM
6363dvi-cgen: \
6364 configure-cgen
6365 @: $(MAKE); $(unstage)
6366 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6367 r=`${PWD_COMMAND}`; export r; \
6368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6369 $(HOST_EXPORTS) \
b813574b 6370 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6372 done; \
22121df0 6373 echo "Doing dvi in cgen"; \
a90ef4bf 6374 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6377 "RANLIB=$${RANLIB}" \
0c24b341 6378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6379 dvi) \
2a4cbe27
NN
6380 || exit 1
6381
a90ef4bf 6382@endif cgen
2a4cbe27 6383
a90ef4bf
JM
6384.PHONY: maybe-pdf-cgen pdf-cgen
6385maybe-pdf-cgen:
6386@if cgen
6387maybe-pdf-cgen: pdf-cgen
2a4cbe27 6388
a90ef4bf
JM
6389pdf-cgen: \
6390 configure-cgen
6391 @: $(MAKE); $(unstage)
6392 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6393 r=`${PWD_COMMAND}`; export r; \
6394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6395 $(HOST_EXPORTS) \
b813574b 6396 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6398 done; \
22121df0 6399 echo "Doing pdf in cgen"; \
a90ef4bf 6400 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6403 "RANLIB=$${RANLIB}" \
0c24b341 6404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6405 pdf) \
2a4cbe27
NN
6406 || exit 1
6407
a90ef4bf 6408@endif cgen
2a4cbe27 6409
a90ef4bf
JM
6410.PHONY: maybe-html-cgen html-cgen
6411maybe-html-cgen:
6412@if cgen
6413maybe-html-cgen: html-cgen
2a4cbe27 6414
a90ef4bf
JM
6415html-cgen: \
6416 configure-cgen
6417 @: $(MAKE); $(unstage)
6418 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6419 r=`${PWD_COMMAND}`; export r; \
6420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6421 $(HOST_EXPORTS) \
b813574b 6422 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6424 done; \
22121df0 6425 echo "Doing html in cgen"; \
a90ef4bf 6426 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6429 "RANLIB=$${RANLIB}" \
0c24b341 6430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6431 html) \
2a4cbe27
NN
6432 || exit 1
6433
a90ef4bf 6434@endif cgen
2a4cbe27 6435
a90ef4bf
JM
6436.PHONY: maybe-TAGS-cgen TAGS-cgen
6437maybe-TAGS-cgen:
6438@if cgen
6439maybe-TAGS-cgen: TAGS-cgen
2a4cbe27 6440
a90ef4bf
JM
6441TAGS-cgen: \
6442 configure-cgen
6443 @: $(MAKE); $(unstage)
6444 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6445 r=`${PWD_COMMAND}`; export r; \
6446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6447 $(HOST_EXPORTS) \
b813574b 6448 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6450 done; \
22121df0 6451 echo "Doing TAGS in cgen"; \
a90ef4bf 6452 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6455 "RANLIB=$${RANLIB}" \
0c24b341 6456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6457 TAGS) \
2a4cbe27
NN
6458 || exit 1
6459
a90ef4bf 6460@endif cgen
2a4cbe27 6461
a90ef4bf
JM
6462.PHONY: maybe-install-info-cgen install-info-cgen
6463maybe-install-info-cgen:
6464@if cgen
6465maybe-install-info-cgen: install-info-cgen
2a4cbe27 6466
a90ef4bf
JM
6467install-info-cgen: \
6468 configure-cgen \
6469 info-cgen
6470 @: $(MAKE); $(unstage)
6471 @[ -f ./cgen/Makefile ] || exit 0; \
6472 r=`${PWD_COMMAND}`; export r; \
6473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6474 $(HOST_EXPORTS) \
6475 for flag in $(EXTRA_HOST_FLAGS) ; do \
6476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6477 done; \
22121df0 6478 echo "Doing install-info in cgen"; \
a90ef4bf
JM
6479 (cd $(HOST_SUBDIR)/cgen && \
6480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6482 "RANLIB=$${RANLIB}" \
6483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6484 install-info) \
6485 || exit 1
a7254363 6486
a90ef4bf
JM
6487@endif cgen
6488
6489.PHONY: maybe-install-pdf-cgen install-pdf-cgen
6490maybe-install-pdf-cgen:
6491@if cgen
6492maybe-install-pdf-cgen: install-pdf-cgen
6493
6494install-pdf-cgen: \
6495 configure-cgen \
6496 pdf-cgen
6497 @: $(MAKE); $(unstage)
6498 @[ -f ./cgen/Makefile ] || exit 0; \
6499 r=`${PWD_COMMAND}`; export r; \
c52c6897 6500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6501 $(HOST_EXPORTS) \
6502 for flag in $(EXTRA_HOST_FLAGS) ; do \
6503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6504 done; \
22121df0 6505 echo "Doing install-pdf in cgen"; \
a90ef4bf
JM
6506 (cd $(HOST_SUBDIR)/cgen && \
6507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6509 "RANLIB=$${RANLIB}" \
6510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6511 install-pdf) \
2a4cbe27
NN
6512 || exit 1
6513
a90ef4bf 6514@endif cgen
a7254363 6515
a90ef4bf
JM
6516.PHONY: maybe-install-html-cgen install-html-cgen
6517maybe-install-html-cgen:
6518@if cgen
6519maybe-install-html-cgen: install-html-cgen
a7254363 6520
a90ef4bf
JM
6521install-html-cgen: \
6522 configure-cgen \
6523 html-cgen
6524 @: $(MAKE); $(unstage)
6525 @[ -f ./cgen/Makefile ] || exit 0; \
6526 r=`${PWD_COMMAND}`; export r; \
c52c6897 6527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6528 $(HOST_EXPORTS) \
a90ef4bf
JM
6529 for flag in $(EXTRA_HOST_FLAGS) ; do \
6530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6531 done; \
22121df0 6532 echo "Doing install-html in cgen"; \
a90ef4bf
JM
6533 (cd $(HOST_SUBDIR)/cgen && \
6534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6536 "RANLIB=$${RANLIB}" \
6537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6538 install-html) \
6539 || exit 1
d545f33b 6540
a90ef4bf
JM
6541@endif cgen
6542
6543.PHONY: maybe-installcheck-cgen installcheck-cgen
6544maybe-installcheck-cgen:
6545@if cgen
6546maybe-installcheck-cgen: installcheck-cgen
6547
6548installcheck-cgen: \
6549 configure-cgen
6550 @: $(MAKE); $(unstage)
6551 @[ -f ./cgen/Makefile ] || exit 0; \
6552 r=`${PWD_COMMAND}`; export r; \
c52c6897 6553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6554 $(HOST_EXPORTS) \
a90ef4bf
JM
6555 for flag in $(EXTRA_HOST_FLAGS) ; do \
6556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6557 done; \
22121df0 6558 echo "Doing installcheck in cgen"; \
a90ef4bf
JM
6559 (cd $(HOST_SUBDIR)/cgen && \
6560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6562 "RANLIB=$${RANLIB}" \
6563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6564 installcheck) \
6565 || exit 1
8520c408 6566
a90ef4bf
JM
6567@endif cgen
6568
6569.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
6570maybe-mostlyclean-cgen:
6571@if cgen
6572maybe-mostlyclean-cgen: mostlyclean-cgen
6573
6574mostlyclean-cgen:
6575 @: $(MAKE); $(unstage)
6576 @[ -f ./cgen/Makefile ] || exit 0; \
6577 r=`${PWD_COMMAND}`; export r; \
c52c6897 6578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6579 $(HOST_EXPORTS) \
a90ef4bf
JM
6580 for flag in $(EXTRA_HOST_FLAGS) ; do \
6581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6582 done; \
22121df0 6583 echo "Doing mostlyclean in cgen"; \
a90ef4bf
JM
6584 (cd $(HOST_SUBDIR)/cgen && \
6585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6587 "RANLIB=$${RANLIB}" \
6588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6589 mostlyclean) \
6590 || exit 1
8520c408 6591
a90ef4bf
JM
6592@endif cgen
6593
6594.PHONY: maybe-clean-cgen clean-cgen
6595maybe-clean-cgen:
6596@if cgen
6597maybe-clean-cgen: clean-cgen
6598
6599clean-cgen:
6600 @: $(MAKE); $(unstage)
6601 @[ -f ./cgen/Makefile ] || exit 0; \
6602 r=`${PWD_COMMAND}`; export r; \
c52c6897 6603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6604 $(HOST_EXPORTS) \
a90ef4bf
JM
6605 for flag in $(EXTRA_HOST_FLAGS) ; do \
6606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6607 done; \
22121df0 6608 echo "Doing clean in cgen"; \
a90ef4bf
JM
6609 (cd $(HOST_SUBDIR)/cgen && \
6610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6612 "RANLIB=$${RANLIB}" \
6613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6614 clean) \
6615 || exit 1
d545f33b 6616
a90ef4bf
JM
6617@endif cgen
6618
6619.PHONY: maybe-distclean-cgen distclean-cgen
6620maybe-distclean-cgen:
6621@if cgen
6622maybe-distclean-cgen: distclean-cgen
6623
6624distclean-cgen:
6625 @: $(MAKE); $(unstage)
6626 @[ -f ./cgen/Makefile ] || exit 0; \
6627 r=`${PWD_COMMAND}`; export r; \
c52c6897 6628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6629 $(HOST_EXPORTS) \
a90ef4bf
JM
6630 for flag in $(EXTRA_HOST_FLAGS) ; do \
6631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6632 done; \
22121df0 6633 echo "Doing distclean in cgen"; \
a90ef4bf
JM
6634 (cd $(HOST_SUBDIR)/cgen && \
6635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6637 "RANLIB=$${RANLIB}" \
6638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6639 distclean) \
6640 || exit 1
d545f33b 6641
a90ef4bf
JM
6642@endif cgen
6643
6644.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
6645maybe-maintainer-clean-cgen:
6646@if cgen
6647maybe-maintainer-clean-cgen: maintainer-clean-cgen
6648
6649maintainer-clean-cgen:
6650 @: $(MAKE); $(unstage)
6651 @[ -f ./cgen/Makefile ] || exit 0; \
6652 r=`${PWD_COMMAND}`; export r; \
c52c6897 6653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6654 $(HOST_EXPORTS) \
a90ef4bf
JM
6655 for flag in $(EXTRA_HOST_FLAGS) ; do \
6656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6657 done; \
22121df0 6658 echo "Doing maintainer-clean in cgen"; \
a90ef4bf
JM
6659 (cd $(HOST_SUBDIR)/cgen && \
6660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6662 "RANLIB=$${RANLIB}" \
6663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6664 maintainer-clean) \
6665 || exit 1
6666
6667@endif cgen
6668
6669
6670
6671.PHONY: configure-dejagnu maybe-configure-dejagnu
6672maybe-configure-dejagnu:
6673@if gcc-bootstrap
6674configure-dejagnu: stage_current
6675@endif gcc-bootstrap
6676@if dejagnu
6677maybe-configure-dejagnu: configure-dejagnu
6678configure-dejagnu:
6679 @: $(MAKE); $(unstage)
6680 @r=`${PWD_COMMAND}`; export r; \
6681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6682 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
22121df0 6683 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu; \
a90ef4bf
JM
6684 $(HOST_EXPORTS) \
6685 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
6686 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
d545f33b
PB
6687 case $(srcdir) in \
6688 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6689 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
d545f33b
PB
6690 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6691 esac; \
1b6c0831
L
6692 module_srcdir=dejagnu; \
6693 $(SHELL) \
6694 $$s/$$module_srcdir/configure \
6695 --srcdir=$${topdir}/$$module_srcdir \
4b900473 6696 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6697 --target=${target_alias} \
a90ef4bf
JM
6698 || exit 1
6699@endif dejagnu
d545f33b
PB
6700
6701
6702
6703
6704
a90ef4bf
JM
6705.PHONY: all-dejagnu maybe-all-dejagnu
6706maybe-all-dejagnu:
4f0ef2d8 6707@if gcc-bootstrap
a90ef4bf 6708all-dejagnu: stage_current
4f0ef2d8 6709@endif gcc-bootstrap
a90ef4bf
JM
6710@if dejagnu
6711TARGET-dejagnu=all
6712maybe-all-dejagnu: all-dejagnu
6713all-dejagnu: configure-dejagnu
6714 @: $(MAKE); $(unstage)
c52c6897 6715 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 6717 $(HOST_EXPORTS) \
a90ef4bf 6718 (cd $(HOST_SUBDIR)/dejagnu && \
b3676d82 6719 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6720 $(TARGET-dejagnu))
6721@endif dejagnu
4fa63067 6722
a7254363 6723
4fa63067 6724
a90ef4bf
JM
6725
6726.PHONY: check-dejagnu maybe-check-dejagnu
6727maybe-check-dejagnu:
6728@if dejagnu
6729maybe-check-dejagnu: check-dejagnu
6730
6731check-dejagnu:
6732 @: $(MAKE); $(unstage)
4fa63067
NN
6733 @r=`${PWD_COMMAND}`; export r; \
6734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6735 $(HOST_EXPORTS) \
a90ef4bf
JM
6736 (cd $(HOST_SUBDIR)/dejagnu && \
6737 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 6738
a90ef4bf 6739@endif dejagnu
2a4cbe27 6740
a90ef4bf
JM
6741.PHONY: install-dejagnu maybe-install-dejagnu
6742maybe-install-dejagnu:
6743@if dejagnu
6744maybe-install-dejagnu: install-dejagnu
2a4cbe27 6745
a90ef4bf
JM
6746install-dejagnu: installdirs
6747 @: $(MAKE); $(unstage)
4fa63067 6748 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6750 $(HOST_EXPORTS) \
a90ef4bf
JM
6751 (cd $(HOST_SUBDIR)/dejagnu && \
6752 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6753
a90ef4bf 6754@endif dejagnu
d545f33b 6755
a90ef4bf
JM
6756.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
6757maybe-install-strip-dejagnu:
6758@if dejagnu
6759maybe-install-strip-dejagnu: install-strip-dejagnu
9b980aa1 6760
a90ef4bf 6761install-strip-dejagnu: installdirs
9b980aa1
RW
6762 @: $(MAKE); $(unstage)
6763 @r=`${PWD_COMMAND}`; export r; \
6764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6765 $(HOST_EXPORTS) \
a90ef4bf 6766 (cd $(HOST_SUBDIR)/dejagnu && \
9b980aa1
RW
6767 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6768
a90ef4bf 6769@endif dejagnu
9b980aa1 6770
56a8fe78 6771# Other targets (info, dvi, pdf, etc.)
d545f33b 6772
a90ef4bf
JM
6773.PHONY: maybe-info-dejagnu info-dejagnu
6774maybe-info-dejagnu:
6775@if dejagnu
6776maybe-info-dejagnu: info-dejagnu
d545f33b 6777
a90ef4bf
JM
6778info-dejagnu: \
6779 configure-dejagnu
6780 @: $(MAKE); $(unstage)
6781 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6782 r=`${PWD_COMMAND}`; export r; \
6783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6784 $(HOST_EXPORTS) \
6785 for flag in $(EXTRA_HOST_FLAGS) ; do \
6786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6787 done; \
22121df0 6788 echo "Doing info in dejagnu"; \
a90ef4bf 6789 (cd $(HOST_SUBDIR)/dejagnu && \
d545f33b
PB
6790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6792 "RANLIB=$${RANLIB}" \
0c24b341 6793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d545f33b
PB
6794 info) \
6795 || exit 1
6796
a90ef4bf 6797@endif dejagnu
d545f33b 6798
a90ef4bf
JM
6799.PHONY: maybe-dvi-dejagnu dvi-dejagnu
6800maybe-dvi-dejagnu:
6801@if dejagnu
6802maybe-dvi-dejagnu: dvi-dejagnu
d545f33b 6803
a90ef4bf
JM
6804dvi-dejagnu: \
6805 configure-dejagnu
6806 @: $(MAKE); $(unstage)
6807 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6808 r=`${PWD_COMMAND}`; export r; \
6809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6810 $(HOST_EXPORTS) \
6811 for flag in $(EXTRA_HOST_FLAGS) ; do \
6812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6813 done; \
22121df0 6814 echo "Doing dvi in dejagnu"; \
a90ef4bf 6815 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6818 "RANLIB=$${RANLIB}" \
0c24b341 6819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6820 dvi) \
2a4cbe27
NN
6821 || exit 1
6822
a90ef4bf 6823@endif dejagnu
2a4cbe27 6824
a90ef4bf
JM
6825.PHONY: maybe-pdf-dejagnu pdf-dejagnu
6826maybe-pdf-dejagnu:
6827@if dejagnu
6828maybe-pdf-dejagnu: pdf-dejagnu
56a8fe78 6829
a90ef4bf
JM
6830pdf-dejagnu: \
6831 configure-dejagnu
6832 @: $(MAKE); $(unstage)
6833 @[ -f ./dejagnu/Makefile ] || exit 0; \
56a8fe78
DD
6834 r=`${PWD_COMMAND}`; export r; \
6835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6836 $(HOST_EXPORTS) \
6837 for flag in $(EXTRA_HOST_FLAGS) ; do \
6838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6839 done; \
22121df0 6840 echo "Doing pdf in dejagnu"; \
a90ef4bf 6841 (cd $(HOST_SUBDIR)/dejagnu && \
56a8fe78
DD
6842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6844 "RANLIB=$${RANLIB}" \
0c24b341 6845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
6846 pdf) \
6847 || exit 1
6848
a90ef4bf 6849@endif dejagnu
56a8fe78 6850
a90ef4bf
JM
6851.PHONY: maybe-html-dejagnu html-dejagnu
6852maybe-html-dejagnu:
6853@if dejagnu
6854maybe-html-dejagnu: html-dejagnu
6d389afc 6855
a90ef4bf
JM
6856html-dejagnu: \
6857 configure-dejagnu
6858 @: $(MAKE); $(unstage)
6859 @[ -f ./dejagnu/Makefile ] || exit 0; \
6d389afc
MS
6860 r=`${PWD_COMMAND}`; export r; \
6861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6862 $(HOST_EXPORTS) \
6863 for flag in $(EXTRA_HOST_FLAGS) ; do \
6864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6865 done; \
22121df0 6866 echo "Doing html in dejagnu"; \
a90ef4bf 6867 (cd $(HOST_SUBDIR)/dejagnu && \
6d389afc
MS
6868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6870 "RANLIB=$${RANLIB}" \
0c24b341 6871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
6872 html) \
6873 || exit 1
6874
a90ef4bf 6875@endif dejagnu
6d389afc 6876
a90ef4bf
JM
6877.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
6878maybe-TAGS-dejagnu:
6879@if dejagnu
6880maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 6881
a90ef4bf
JM
6882TAGS-dejagnu: \
6883 configure-dejagnu
6884 @: $(MAKE); $(unstage)
6885 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6886 r=`${PWD_COMMAND}`; export r; \
6887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6888 $(HOST_EXPORTS) \
b813574b 6889 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6891 done; \
22121df0 6892 echo "Doing TAGS in dejagnu"; \
a90ef4bf 6893 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6896 "RANLIB=$${RANLIB}" \
0c24b341 6897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6898 TAGS) \
2a4cbe27
NN
6899 || exit 1
6900
a90ef4bf 6901@endif dejagnu
2a4cbe27 6902
a90ef4bf
JM
6903.PHONY: maybe-install-info-dejagnu install-info-dejagnu
6904maybe-install-info-dejagnu:
6905@if dejagnu
6906maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 6907
a90ef4bf
JM
6908install-info-dejagnu: \
6909 configure-dejagnu \
6910 info-dejagnu
6911 @: $(MAKE); $(unstage)
6912 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6913 r=`${PWD_COMMAND}`; export r; \
6914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6915 $(HOST_EXPORTS) \
b813574b 6916 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6918 done; \
22121df0 6919 echo "Doing install-info in dejagnu"; \
a90ef4bf 6920 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6923 "RANLIB=$${RANLIB}" \
0c24b341 6924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6925 install-info) \
2a4cbe27
NN
6926 || exit 1
6927
a90ef4bf 6928@endif dejagnu
2a4cbe27 6929
a90ef4bf
JM
6930.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
6931maybe-install-pdf-dejagnu:
6932@if dejagnu
6933maybe-install-pdf-dejagnu: install-pdf-dejagnu
a3ca38d2 6934
a90ef4bf
JM
6935install-pdf-dejagnu: \
6936 configure-dejagnu \
6937 pdf-dejagnu
6938 @: $(MAKE); $(unstage)
6939 @[ -f ./dejagnu/Makefile ] || exit 0; \
a3ca38d2
DD
6940 r=`${PWD_COMMAND}`; export r; \
6941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6942 $(HOST_EXPORTS) \
6943 for flag in $(EXTRA_HOST_FLAGS) ; do \
6944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6945 done; \
22121df0 6946 echo "Doing install-pdf in dejagnu"; \
a90ef4bf 6947 (cd $(HOST_SUBDIR)/dejagnu && \
a3ca38d2
DD
6948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6950 "RANLIB=$${RANLIB}" \
0c24b341 6951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
6952 install-pdf) \
6953 || exit 1
6954
a90ef4bf 6955@endif dejagnu
a3ca38d2 6956
a90ef4bf
JM
6957.PHONY: maybe-install-html-dejagnu install-html-dejagnu
6958maybe-install-html-dejagnu:
6959@if dejagnu
6960maybe-install-html-dejagnu: install-html-dejagnu
108a6f8e 6961
a90ef4bf
JM
6962install-html-dejagnu: \
6963 configure-dejagnu \
6964 html-dejagnu
6965 @: $(MAKE); $(unstage)
6966 @[ -f ./dejagnu/Makefile ] || exit 0; \
108a6f8e
CD
6967 r=`${PWD_COMMAND}`; export r; \
6968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6969 $(HOST_EXPORTS) \
6970 for flag in $(EXTRA_HOST_FLAGS) ; do \
6971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6972 done; \
22121df0 6973 echo "Doing install-html in dejagnu"; \
a90ef4bf 6974 (cd $(HOST_SUBDIR)/dejagnu && \
108a6f8e
CD
6975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6977 "RANLIB=$${RANLIB}" \
0c24b341 6978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
6979 install-html) \
6980 || exit 1
6981
a90ef4bf 6982@endif dejagnu
108a6f8e 6983
a90ef4bf
JM
6984.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
6985maybe-installcheck-dejagnu:
6986@if dejagnu
6987maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 6988
a90ef4bf
JM
6989installcheck-dejagnu: \
6990 configure-dejagnu
6991 @: $(MAKE); $(unstage)
6992 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6993 r=`${PWD_COMMAND}`; export r; \
6994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6995 $(HOST_EXPORTS) \
b813574b 6996 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6998 done; \
22121df0 6999 echo "Doing installcheck in dejagnu"; \
a90ef4bf 7000 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7003 "RANLIB=$${RANLIB}" \
0c24b341 7004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7005 installcheck) \
2a4cbe27
NN
7006 || exit 1
7007
a90ef4bf 7008@endif dejagnu
2a4cbe27 7009
a90ef4bf
JM
7010.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
7011maybe-mostlyclean-dejagnu:
7012@if dejagnu
7013maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 7014
a90ef4bf
JM
7015mostlyclean-dejagnu:
7016 @: $(MAKE); $(unstage)
7017 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7018 r=`${PWD_COMMAND}`; export r; \
7019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7020 $(HOST_EXPORTS) \
b813574b 7021 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7023 done; \
22121df0 7024 echo "Doing mostlyclean in dejagnu"; \
a90ef4bf 7025 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7028 "RANLIB=$${RANLIB}" \
0c24b341 7029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7030 mostlyclean) \
2a4cbe27
NN
7031 || exit 1
7032
a90ef4bf 7033@endif dejagnu
2a4cbe27 7034
a90ef4bf
JM
7035.PHONY: maybe-clean-dejagnu clean-dejagnu
7036maybe-clean-dejagnu:
7037@if dejagnu
7038maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 7039
a90ef4bf
JM
7040clean-dejagnu:
7041 @: $(MAKE); $(unstage)
7042 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7043 r=`${PWD_COMMAND}`; export r; \
7044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7045 $(HOST_EXPORTS) \
b813574b 7046 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7048 done; \
22121df0 7049 echo "Doing clean in dejagnu"; \
a90ef4bf 7050 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7053 "RANLIB=$${RANLIB}" \
0c24b341 7054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7055 clean) \
2a4cbe27
NN
7056 || exit 1
7057
a90ef4bf 7058@endif dejagnu
2a4cbe27 7059
a90ef4bf
JM
7060.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7061maybe-distclean-dejagnu:
7062@if dejagnu
7063maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 7064
a90ef4bf
JM
7065distclean-dejagnu:
7066 @: $(MAKE); $(unstage)
7067 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7068 r=`${PWD_COMMAND}`; export r; \
7069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7070 $(HOST_EXPORTS) \
b813574b 7071 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7073 done; \
22121df0 7074 echo "Doing distclean in dejagnu"; \
a90ef4bf 7075 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7078 "RANLIB=$${RANLIB}" \
0c24b341 7079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7080 distclean) \
2a4cbe27
NN
7081 || exit 1
7082
a90ef4bf 7083@endif dejagnu
2a4cbe27 7084
a90ef4bf
JM
7085.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7086maybe-maintainer-clean-dejagnu:
7087@if dejagnu
7088maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 7089
a90ef4bf
JM
7090maintainer-clean-dejagnu:
7091 @: $(MAKE); $(unstage)
7092 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7093 r=`${PWD_COMMAND}`; export r; \
7094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7095 $(HOST_EXPORTS) \
b813574b 7096 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7098 done; \
22121df0 7099 echo "Doing maintainer-clean in dejagnu"; \
a90ef4bf 7100 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7103 "RANLIB=$${RANLIB}" \
0c24b341 7104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7105 maintainer-clean) \
2a4cbe27
NN
7106 || exit 1
7107
a90ef4bf 7108@endif dejagnu
2a4cbe27 7109
2a4cbe27 7110
a7254363 7111
a90ef4bf
JM
7112.PHONY: configure-etc maybe-configure-etc
7113maybe-configure-etc:
4f0ef2d8 7114@if gcc-bootstrap
a90ef4bf 7115configure-etc: stage_current
4f0ef2d8 7116@endif gcc-bootstrap
a90ef4bf
JM
7117@if etc
7118maybe-configure-etc: configure-etc
7119configure-etc:
0aed8855 7120 @: $(MAKE); $(unstage)
c52c6897 7121 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7123 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
22121df0 7124 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc; \
1f53ca9a 7125 $(HOST_EXPORTS) \
a90ef4bf
JM
7126 echo Configuring in $(HOST_SUBDIR)/etc; \
7127 cd "$(HOST_SUBDIR)/etc" || exit 1; \
4fa63067 7128 case $(srcdir) in \
b00612cc 7129 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7130 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
b00612cc 7131 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7132 esac; \
1b6c0831
L
7133 module_srcdir=etc; \
7134 $(SHELL) \
7135 $$s/$$module_srcdir/configure \
7136 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7137 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7138 --target=${target_alias} \
2a4cbe27 7139 || exit 1
a90ef4bf 7140@endif etc
2a4cbe27 7141
a7254363
PB
7142
7143
d545f33b
PB
7144
7145
a90ef4bf
JM
7146.PHONY: all-etc maybe-all-etc
7147maybe-all-etc:
4f0ef2d8 7148@if gcc-bootstrap
a90ef4bf 7149all-etc: stage_current
4f0ef2d8 7150@endif gcc-bootstrap
a90ef4bf
JM
7151@if etc
7152TARGET-etc=all
7153maybe-all-etc: all-etc
7154all-etc: configure-etc
0aed8855 7155 @: $(MAKE); $(unstage)
4fa63067
NN
7156 @r=`${PWD_COMMAND}`; export r; \
7157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7158 $(HOST_EXPORTS) \
a90ef4bf 7159 (cd $(HOST_SUBDIR)/etc && \
b3676d82 7160 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7161 $(TARGET-etc))
7162@endif etc
2a4cbe27 7163
a7254363 7164
d545f33b
PB
7165
7166
a90ef4bf
JM
7167.PHONY: check-etc maybe-check-etc
7168maybe-check-etc:
7169@if etc
7170maybe-check-etc: check-etc
2a4cbe27 7171
a90ef4bf 7172check-etc:
0aed8855 7173 @: $(MAKE); $(unstage)
a90ef4bf
JM
7174 @r=`${PWD_COMMAND}`; export r; \
7175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7176 $(HOST_EXPORTS) \
a90ef4bf
JM
7177 (cd $(HOST_SUBDIR)/etc && \
7178 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 7179
a90ef4bf 7180@endif etc
4fa63067 7181
a90ef4bf
JM
7182.PHONY: install-etc maybe-install-etc
7183maybe-install-etc:
7184@if etc
7185maybe-install-etc: install-etc
4fa63067 7186
a90ef4bf 7187install-etc: installdirs
0aed8855 7188 @: $(MAKE); $(unstage)
4fa63067 7189 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7191 $(HOST_EXPORTS) \
a90ef4bf 7192 (cd $(HOST_SUBDIR)/etc && \
2da12f12 7193 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 7194
a90ef4bf 7195@endif etc
2a4cbe27 7196
a90ef4bf
JM
7197.PHONY: install-strip-etc maybe-install-strip-etc
7198maybe-install-strip-etc:
7199@if etc
7200maybe-install-strip-etc: install-strip-etc
9b980aa1 7201
a90ef4bf 7202install-strip-etc: installdirs
9b980aa1
RW
7203 @: $(MAKE); $(unstage)
7204 @r=`${PWD_COMMAND}`; export r; \
7205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7206 $(HOST_EXPORTS) \
a90ef4bf 7207 (cd $(HOST_SUBDIR)/etc && \
9b980aa1
RW
7208 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7209
a90ef4bf 7210@endif etc
9b980aa1 7211
56a8fe78 7212# Other targets (info, dvi, pdf, etc.)
2a4cbe27 7213
a90ef4bf
JM
7214.PHONY: maybe-info-etc info-etc
7215maybe-info-etc:
7216@if etc
7217maybe-info-etc: info-etc
4fa63067 7218
a90ef4bf
JM
7219info-etc: \
7220 configure-etc
0aed8855 7221 @: $(MAKE); $(unstage)
a90ef4bf 7222 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7223 r=`${PWD_COMMAND}`; export r; \
7224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7225 $(HOST_EXPORTS) \
b813574b 7226 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7228 done; \
22121df0 7229 echo "Doing info in etc"; \
a90ef4bf 7230 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7233 "RANLIB=$${RANLIB}" \
0c24b341 7234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7235 info) \
2a4cbe27
NN
7236 || exit 1
7237
a90ef4bf 7238@endif etc
2a4cbe27 7239
a90ef4bf
JM
7240.PHONY: maybe-dvi-etc dvi-etc
7241maybe-dvi-etc:
7242@if etc
7243maybe-dvi-etc: dvi-etc
2a4cbe27 7244
a90ef4bf
JM
7245dvi-etc: \
7246 configure-etc
0aed8855 7247 @: $(MAKE); $(unstage)
a90ef4bf 7248 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7249 r=`${PWD_COMMAND}`; export r; \
7250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7251 $(HOST_EXPORTS) \
b813574b 7252 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7254 done; \
22121df0 7255 echo "Doing dvi in etc"; \
a90ef4bf 7256 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7259 "RANLIB=$${RANLIB}" \
0c24b341 7260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7261 dvi) \
2a4cbe27
NN
7262 || exit 1
7263
a90ef4bf 7264@endif etc
2a4cbe27 7265
a90ef4bf
JM
7266.PHONY: maybe-pdf-etc pdf-etc
7267maybe-pdf-etc:
7268@if etc
7269maybe-pdf-etc: pdf-etc
56a8fe78 7270
a90ef4bf
JM
7271pdf-etc: \
7272 configure-etc
56a8fe78 7273 @: $(MAKE); $(unstage)
a90ef4bf 7274 @[ -f ./etc/Makefile ] || exit 0; \
56a8fe78
DD
7275 r=`${PWD_COMMAND}`; export r; \
7276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7277 $(HOST_EXPORTS) \
7278 for flag in $(EXTRA_HOST_FLAGS) ; do \
7279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7280 done; \
22121df0 7281 echo "Doing pdf in etc"; \
a90ef4bf 7282 (cd $(HOST_SUBDIR)/etc && \
56a8fe78
DD
7283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7285 "RANLIB=$${RANLIB}" \
0c24b341 7286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7287 pdf) \
7288 || exit 1
7289
a90ef4bf 7290@endif etc
56a8fe78 7291
a90ef4bf
JM
7292.PHONY: maybe-html-etc html-etc
7293maybe-html-etc:
7294@if etc
7295maybe-html-etc: html-etc
6d389afc 7296
a90ef4bf
JM
7297html-etc: \
7298 configure-etc
0aed8855 7299 @: $(MAKE); $(unstage)
a90ef4bf 7300 @[ -f ./etc/Makefile ] || exit 0; \
6d389afc
MS
7301 r=`${PWD_COMMAND}`; export r; \
7302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7303 $(HOST_EXPORTS) \
7304 for flag in $(EXTRA_HOST_FLAGS) ; do \
7305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7306 done; \
22121df0 7307 echo "Doing html in etc"; \
a90ef4bf 7308 (cd $(HOST_SUBDIR)/etc && \
6d389afc
MS
7309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7311 "RANLIB=$${RANLIB}" \
0c24b341 7312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7313 html) \
7314 || exit 1
7315
a90ef4bf 7316@endif etc
6d389afc 7317
a90ef4bf
JM
7318.PHONY: maybe-TAGS-etc TAGS-etc
7319maybe-TAGS-etc:
7320@if etc
7321maybe-TAGS-etc: TAGS-etc
2a4cbe27 7322
a90ef4bf
JM
7323TAGS-etc: \
7324 configure-etc
0aed8855 7325 @: $(MAKE); $(unstage)
a90ef4bf 7326 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7327 r=`${PWD_COMMAND}`; export r; \
7328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7329 $(HOST_EXPORTS) \
b813574b 7330 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7332 done; \
22121df0 7333 echo "Doing TAGS in etc"; \
a90ef4bf 7334 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7337 "RANLIB=$${RANLIB}" \
0c24b341 7338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7339 TAGS) \
2a4cbe27
NN
7340 || exit 1
7341
a90ef4bf 7342@endif etc
2a4cbe27 7343
a90ef4bf
JM
7344.PHONY: maybe-install-info-etc install-info-etc
7345maybe-install-info-etc:
7346@if etc
7347maybe-install-info-etc: install-info-etc
2a4cbe27 7348
a90ef4bf
JM
7349install-info-etc: \
7350 configure-etc \
7351 info-etc
0aed8855 7352 @: $(MAKE); $(unstage)
a90ef4bf 7353 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7354 r=`${PWD_COMMAND}`; export r; \
7355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7356 $(HOST_EXPORTS) \
b813574b 7357 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7359 done; \
22121df0 7360 echo "Doing install-info in etc"; \
a90ef4bf 7361 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7364 "RANLIB=$${RANLIB}" \
0c24b341 7365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7366 install-info) \
2a4cbe27
NN
7367 || exit 1
7368
a90ef4bf 7369@endif etc
2a4cbe27 7370
a90ef4bf
JM
7371.PHONY: maybe-install-pdf-etc install-pdf-etc
7372maybe-install-pdf-etc:
7373@if etc
7374maybe-install-pdf-etc: install-pdf-etc
a3ca38d2 7375
a90ef4bf
JM
7376install-pdf-etc: \
7377 configure-etc \
7378 pdf-etc
a3ca38d2 7379 @: $(MAKE); $(unstage)
a90ef4bf 7380 @[ -f ./etc/Makefile ] || exit 0; \
a3ca38d2
DD
7381 r=`${PWD_COMMAND}`; export r; \
7382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7383 $(HOST_EXPORTS) \
7384 for flag in $(EXTRA_HOST_FLAGS) ; do \
7385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7386 done; \
22121df0 7387 echo "Doing install-pdf in etc"; \
a90ef4bf 7388 (cd $(HOST_SUBDIR)/etc && \
a3ca38d2
DD
7389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7391 "RANLIB=$${RANLIB}" \
0c24b341 7392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7393 install-pdf) \
7394 || exit 1
7395
a90ef4bf 7396@endif etc
a3ca38d2 7397
a90ef4bf
JM
7398.PHONY: maybe-install-html-etc install-html-etc
7399maybe-install-html-etc:
7400@if etc
7401maybe-install-html-etc: install-html-etc
108a6f8e 7402
a90ef4bf
JM
7403install-html-etc: \
7404 configure-etc \
7405 html-etc
108a6f8e 7406 @: $(MAKE); $(unstage)
a90ef4bf 7407 @[ -f ./etc/Makefile ] || exit 0; \
108a6f8e
CD
7408 r=`${PWD_COMMAND}`; export r; \
7409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7410 $(HOST_EXPORTS) \
7411 for flag in $(EXTRA_HOST_FLAGS) ; do \
7412 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7413 done; \
22121df0 7414 echo "Doing install-html in etc"; \
a90ef4bf 7415 (cd $(HOST_SUBDIR)/etc && \
108a6f8e
CD
7416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7418 "RANLIB=$${RANLIB}" \
0c24b341 7419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7420 install-html) \
7421 || exit 1
7422
a90ef4bf 7423@endif etc
108a6f8e 7424
a90ef4bf
JM
7425.PHONY: maybe-installcheck-etc installcheck-etc
7426maybe-installcheck-etc:
7427@if etc
7428maybe-installcheck-etc: installcheck-etc
2a4cbe27 7429
a90ef4bf
JM
7430installcheck-etc: \
7431 configure-etc
0aed8855 7432 @: $(MAKE); $(unstage)
a90ef4bf 7433 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7434 r=`${PWD_COMMAND}`; export r; \
7435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7436 $(HOST_EXPORTS) \
b813574b 7437 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7439 done; \
22121df0 7440 echo "Doing installcheck in etc"; \
a90ef4bf 7441 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7444 "RANLIB=$${RANLIB}" \
0c24b341 7445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7446 installcheck) \
2a4cbe27
NN
7447 || exit 1
7448
a90ef4bf 7449@endif etc
2a4cbe27 7450
a90ef4bf
JM
7451.PHONY: maybe-mostlyclean-etc mostlyclean-etc
7452maybe-mostlyclean-etc:
7453@if etc
7454maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 7455
a90ef4bf 7456mostlyclean-etc:
0aed8855 7457 @: $(MAKE); $(unstage)
a90ef4bf 7458 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7459 r=`${PWD_COMMAND}`; export r; \
7460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7461 $(HOST_EXPORTS) \
b813574b 7462 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7464 done; \
22121df0 7465 echo "Doing mostlyclean in etc"; \
a90ef4bf 7466 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7469 "RANLIB=$${RANLIB}" \
0c24b341 7470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7471 mostlyclean) \
2a4cbe27
NN
7472 || exit 1
7473
a90ef4bf 7474@endif etc
2a4cbe27 7475
a90ef4bf
JM
7476.PHONY: maybe-clean-etc clean-etc
7477maybe-clean-etc:
7478@if etc
7479maybe-clean-etc: clean-etc
2a4cbe27 7480
a90ef4bf 7481clean-etc:
0aed8855 7482 @: $(MAKE); $(unstage)
a90ef4bf 7483 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7484 r=`${PWD_COMMAND}`; export r; \
7485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7486 $(HOST_EXPORTS) \
b813574b 7487 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7489 done; \
22121df0 7490 echo "Doing clean in etc"; \
a90ef4bf 7491 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7492 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7493 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7494 "RANLIB=$${RANLIB}" \
0c24b341 7495 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7496 clean) \
2a4cbe27
NN
7497 || exit 1
7498
a90ef4bf 7499@endif etc
2a4cbe27 7500
a90ef4bf
JM
7501.PHONY: maybe-distclean-etc distclean-etc
7502maybe-distclean-etc:
7503@if etc
7504maybe-distclean-etc: distclean-etc
2a4cbe27 7505
a90ef4bf 7506distclean-etc:
0aed8855 7507 @: $(MAKE); $(unstage)
a90ef4bf 7508 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7509 r=`${PWD_COMMAND}`; export r; \
7510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7511 $(HOST_EXPORTS) \
b813574b 7512 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7514 done; \
22121df0 7515 echo "Doing distclean in etc"; \
a90ef4bf 7516 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7519 "RANLIB=$${RANLIB}" \
0c24b341 7520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7521 distclean) \
2a4cbe27
NN
7522 || exit 1
7523
a90ef4bf 7524@endif etc
2a4cbe27 7525
a90ef4bf
JM
7526.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7527maybe-maintainer-clean-etc:
7528@if etc
7529maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 7530
a90ef4bf 7531maintainer-clean-etc:
0aed8855 7532 @: $(MAKE); $(unstage)
a90ef4bf 7533 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7534 r=`${PWD_COMMAND}`; export r; \
7535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7536 $(HOST_EXPORTS) \
b813574b 7537 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7539 done; \
22121df0 7540 echo "Doing maintainer-clean in etc"; \
a90ef4bf 7541 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7544 "RANLIB=$${RANLIB}" \
0c24b341 7545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7546 maintainer-clean) \
2a4cbe27
NN
7547 || exit 1
7548
a90ef4bf 7549@endif etc
2a4cbe27 7550
2a4cbe27 7551
a7254363 7552
a90ef4bf
JM
7553.PHONY: configure-fastjar maybe-configure-fastjar
7554maybe-configure-fastjar:
4f0ef2d8 7555@if gcc-bootstrap
a90ef4bf 7556configure-fastjar: stage_current
4f0ef2d8 7557@endif gcc-bootstrap
a90ef4bf
JM
7558@if fastjar
7559maybe-configure-fastjar: configure-fastjar
7560configure-fastjar:
0aed8855 7561 @: $(MAKE); $(unstage)
c52c6897 7562 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7564 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
22121df0 7565 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar; \
1f53ca9a 7566 $(HOST_EXPORTS) \
a90ef4bf
JM
7567 echo Configuring in $(HOST_SUBDIR)/fastjar; \
7568 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
4fa63067 7569 case $(srcdir) in \
b00612cc 7570 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7571 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
b00612cc 7572 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7573 esac; \
1b6c0831
L
7574 module_srcdir=fastjar; \
7575 $(SHELL) \
7576 $$s/$$module_srcdir/configure \
7577 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7578 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7579 --target=${target_alias} \
4fa63067 7580 || exit 1
a90ef4bf 7581@endif fastjar
4fa63067 7582
a7254363
PB
7583
7584
d545f33b
PB
7585
7586
a90ef4bf
JM
7587.PHONY: all-fastjar maybe-all-fastjar
7588maybe-all-fastjar:
4f0ef2d8 7589@if gcc-bootstrap
a90ef4bf 7590all-fastjar: stage_current
4f0ef2d8 7591@endif gcc-bootstrap
a90ef4bf
JM
7592@if fastjar
7593TARGET-fastjar=all
7594maybe-all-fastjar: all-fastjar
7595all-fastjar: configure-fastjar
0aed8855 7596 @: $(MAKE); $(unstage)
4fa63067
NN
7597 @r=`${PWD_COMMAND}`; export r; \
7598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7599 $(HOST_EXPORTS) \
a90ef4bf 7600 (cd $(HOST_SUBDIR)/fastjar && \
b3676d82 7601 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7602 $(TARGET-fastjar))
7603@endif fastjar
4fa63067 7604
a7254363 7605
d545f33b
PB
7606
7607
a90ef4bf
JM
7608.PHONY: check-fastjar maybe-check-fastjar
7609maybe-check-fastjar:
7610@if fastjar
7611maybe-check-fastjar: check-fastjar
4fa63067
NN
7612
7613# This module is only tested in a native toolchain.
a90ef4bf 7614check-fastjar:
0aed8855 7615 @: $(MAKE); $(unstage)
22121df0 7616 @if [ '$(host)' = '$(target)' ]; then \
4fa63067
NN
7617 r=`${PWD_COMMAND}`; export r; \
7618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7619 $(HOST_EXPORTS) \
a90ef4bf 7620 (cd $(HOST_SUBDIR)/fastjar && \
f91ca6bc 7621 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067
NN
7622 fi
7623
a90ef4bf 7624@endif fastjar
4fa63067 7625
a90ef4bf
JM
7626.PHONY: install-fastjar maybe-install-fastjar
7627maybe-install-fastjar:
7628@if fastjar
7629maybe-install-fastjar: install-fastjar
4fa63067 7630
a90ef4bf 7631install-fastjar: installdirs
0aed8855 7632 @: $(MAKE); $(unstage)
4fa63067
NN
7633 @r=`${PWD_COMMAND}`; export r; \
7634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7635 $(HOST_EXPORTS) \
a90ef4bf 7636 (cd $(HOST_SUBDIR)/fastjar && \
2da12f12 7637 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7638
a90ef4bf 7639@endif fastjar
4fa63067 7640
a90ef4bf
JM
7641.PHONY: install-strip-fastjar maybe-install-strip-fastjar
7642maybe-install-strip-fastjar:
7643@if fastjar
7644maybe-install-strip-fastjar: install-strip-fastjar
9b980aa1 7645
a90ef4bf 7646install-strip-fastjar: installdirs
9b980aa1
RW
7647 @: $(MAKE); $(unstage)
7648 @r=`${PWD_COMMAND}`; export r; \
7649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7650 $(HOST_EXPORTS) \
a90ef4bf 7651 (cd $(HOST_SUBDIR)/fastjar && \
9b980aa1
RW
7652 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7653
a90ef4bf 7654@endif fastjar
9b980aa1 7655
56a8fe78 7656# Other targets (info, dvi, pdf, etc.)
4fa63067 7657
a90ef4bf
JM
7658.PHONY: maybe-info-fastjar info-fastjar
7659maybe-info-fastjar:
7660@if fastjar
7661maybe-info-fastjar: info-fastjar
4fa63067 7662
a90ef4bf
JM
7663info-fastjar: \
7664 configure-fastjar
0aed8855 7665 @: $(MAKE); $(unstage)
a90ef4bf 7666 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7667 r=`${PWD_COMMAND}`; export r; \
7668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7669 $(HOST_EXPORTS) \
b813574b 7670 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7672 done; \
22121df0 7673 echo "Doing info in fastjar"; \
a90ef4bf 7674 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7677 "RANLIB=$${RANLIB}" \
0c24b341 7678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7679 info) \
2a4cbe27
NN
7680 || exit 1
7681
a90ef4bf 7682@endif fastjar
2a4cbe27 7683
a90ef4bf
JM
7684.PHONY: maybe-dvi-fastjar dvi-fastjar
7685maybe-dvi-fastjar:
7686@if fastjar
7687maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 7688
a90ef4bf
JM
7689dvi-fastjar: \
7690 configure-fastjar
0aed8855 7691 @: $(MAKE); $(unstage)
a90ef4bf 7692 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7693 r=`${PWD_COMMAND}`; export r; \
7694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7695 $(HOST_EXPORTS) \
b813574b 7696 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7698 done; \
22121df0 7699 echo "Doing dvi in fastjar"; \
a90ef4bf 7700 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7703 "RANLIB=$${RANLIB}" \
0c24b341 7704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7705 dvi) \
2a4cbe27
NN
7706 || exit 1
7707
a90ef4bf 7708@endif fastjar
2a4cbe27 7709
a90ef4bf
JM
7710.PHONY: maybe-pdf-fastjar pdf-fastjar
7711maybe-pdf-fastjar:
7712@if fastjar
7713maybe-pdf-fastjar: pdf-fastjar
56a8fe78 7714
a90ef4bf
JM
7715pdf-fastjar: \
7716 configure-fastjar
56a8fe78 7717 @: $(MAKE); $(unstage)
a90ef4bf 7718 @[ -f ./fastjar/Makefile ] || exit 0; \
56a8fe78
DD
7719 r=`${PWD_COMMAND}`; export r; \
7720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7721 $(HOST_EXPORTS) \
7722 for flag in $(EXTRA_HOST_FLAGS) ; do \
7723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7724 done; \
22121df0 7725 echo "Doing pdf in fastjar"; \
a90ef4bf 7726 (cd $(HOST_SUBDIR)/fastjar && \
56a8fe78
DD
7727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7729 "RANLIB=$${RANLIB}" \
0c24b341 7730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7731 pdf) \
7732 || exit 1
7733
a90ef4bf 7734@endif fastjar
56a8fe78 7735
a90ef4bf
JM
7736.PHONY: maybe-html-fastjar html-fastjar
7737maybe-html-fastjar:
7738@if fastjar
7739maybe-html-fastjar: html-fastjar
6d389afc 7740
a90ef4bf
JM
7741html-fastjar: \
7742 configure-fastjar
0aed8855 7743 @: $(MAKE); $(unstage)
a90ef4bf 7744 @[ -f ./fastjar/Makefile ] || exit 0; \
6d389afc
MS
7745 r=`${PWD_COMMAND}`; export r; \
7746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7747 $(HOST_EXPORTS) \
7748 for flag in $(EXTRA_HOST_FLAGS) ; do \
7749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7750 done; \
22121df0 7751 echo "Doing html in fastjar"; \
a90ef4bf 7752 (cd $(HOST_SUBDIR)/fastjar && \
6d389afc
MS
7753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7755 "RANLIB=$${RANLIB}" \
0c24b341 7756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7757 html) \
7758 || exit 1
7759
a90ef4bf 7760@endif fastjar
6d389afc 7761
a90ef4bf
JM
7762.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7763maybe-TAGS-fastjar:
7764@if fastjar
7765maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 7766
a90ef4bf
JM
7767TAGS-fastjar: \
7768 configure-fastjar
0aed8855 7769 @: $(MAKE); $(unstage)
a90ef4bf 7770 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7771 r=`${PWD_COMMAND}`; export r; \
7772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7773 $(HOST_EXPORTS) \
b813574b 7774 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7776 done; \
22121df0 7777 echo "Doing TAGS in fastjar"; \
a90ef4bf 7778 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7781 "RANLIB=$${RANLIB}" \
0c24b341 7782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7783 TAGS) \
2a4cbe27
NN
7784 || exit 1
7785
a90ef4bf 7786@endif fastjar
2a4cbe27 7787
a90ef4bf
JM
7788.PHONY: maybe-install-info-fastjar install-info-fastjar
7789maybe-install-info-fastjar:
7790@if fastjar
7791maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 7792
a90ef4bf
JM
7793install-info-fastjar: \
7794 configure-fastjar \
7795 info-fastjar
0aed8855 7796 @: $(MAKE); $(unstage)
a90ef4bf 7797 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7798 r=`${PWD_COMMAND}`; export r; \
7799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7800 $(HOST_EXPORTS) \
b813574b 7801 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7803 done; \
22121df0 7804 echo "Doing install-info in fastjar"; \
a90ef4bf 7805 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7808 "RANLIB=$${RANLIB}" \
0c24b341 7809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7810 install-info) \
2a4cbe27
NN
7811 || exit 1
7812
a90ef4bf 7813@endif fastjar
2a4cbe27 7814
a90ef4bf
JM
7815.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
7816maybe-install-pdf-fastjar:
7817@if fastjar
7818maybe-install-pdf-fastjar: install-pdf-fastjar
a3ca38d2 7819
a90ef4bf
JM
7820install-pdf-fastjar: \
7821 configure-fastjar \
7822 pdf-fastjar
a3ca38d2 7823 @: $(MAKE); $(unstage)
a90ef4bf 7824 @[ -f ./fastjar/Makefile ] || exit 0; \
a3ca38d2
DD
7825 r=`${PWD_COMMAND}`; export r; \
7826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7827 $(HOST_EXPORTS) \
7828 for flag in $(EXTRA_HOST_FLAGS) ; do \
7829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7830 done; \
22121df0 7831 echo "Doing install-pdf in fastjar"; \
a90ef4bf 7832 (cd $(HOST_SUBDIR)/fastjar && \
a3ca38d2
DD
7833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7835 "RANLIB=$${RANLIB}" \
0c24b341 7836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7837 install-pdf) \
7838 || exit 1
7839
a90ef4bf 7840@endif fastjar
a3ca38d2 7841
a90ef4bf
JM
7842.PHONY: maybe-install-html-fastjar install-html-fastjar
7843maybe-install-html-fastjar:
7844@if fastjar
7845maybe-install-html-fastjar: install-html-fastjar
108a6f8e 7846
a90ef4bf
JM
7847install-html-fastjar: \
7848 configure-fastjar \
7849 html-fastjar
108a6f8e 7850 @: $(MAKE); $(unstage)
a90ef4bf 7851 @[ -f ./fastjar/Makefile ] || exit 0; \
108a6f8e
CD
7852 r=`${PWD_COMMAND}`; export r; \
7853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7854 $(HOST_EXPORTS) \
7855 for flag in $(EXTRA_HOST_FLAGS) ; do \
7856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7857 done; \
22121df0 7858 echo "Doing install-html in fastjar"; \
a90ef4bf 7859 (cd $(HOST_SUBDIR)/fastjar && \
108a6f8e
CD
7860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7862 "RANLIB=$${RANLIB}" \
0c24b341 7863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7864 install-html) \
7865 || exit 1
7866
a90ef4bf 7867@endif fastjar
108a6f8e 7868
a90ef4bf
JM
7869.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7870maybe-installcheck-fastjar:
7871@if fastjar
7872maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 7873
a90ef4bf
JM
7874installcheck-fastjar: \
7875 configure-fastjar
0aed8855 7876 @: $(MAKE); $(unstage)
a90ef4bf 7877 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7878 r=`${PWD_COMMAND}`; export r; \
7879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7880 $(HOST_EXPORTS) \
b813574b 7881 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7883 done; \
22121df0 7884 echo "Doing installcheck in fastjar"; \
a90ef4bf 7885 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7888 "RANLIB=$${RANLIB}" \
0c24b341 7889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7890 installcheck) \
2a4cbe27
NN
7891 || exit 1
7892
a90ef4bf 7893@endif fastjar
2a4cbe27 7894
a90ef4bf
JM
7895.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
7896maybe-mostlyclean-fastjar:
7897@if fastjar
7898maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 7899
a90ef4bf 7900mostlyclean-fastjar:
0aed8855 7901 @: $(MAKE); $(unstage)
a90ef4bf 7902 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7903 r=`${PWD_COMMAND}`; export r; \
7904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7905 $(HOST_EXPORTS) \
b813574b 7906 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7908 done; \
22121df0 7909 echo "Doing mostlyclean in fastjar"; \
a90ef4bf 7910 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7913 "RANLIB=$${RANLIB}" \
0c24b341 7914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7915 mostlyclean) \
2a4cbe27
NN
7916 || exit 1
7917
a90ef4bf 7918@endif fastjar
2a4cbe27 7919
a90ef4bf
JM
7920.PHONY: maybe-clean-fastjar clean-fastjar
7921maybe-clean-fastjar:
7922@if fastjar
7923maybe-clean-fastjar: clean-fastjar
2a4cbe27 7924
a90ef4bf 7925clean-fastjar:
0aed8855 7926 @: $(MAKE); $(unstage)
a90ef4bf 7927 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7928 r=`${PWD_COMMAND}`; export r; \
7929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7930 $(HOST_EXPORTS) \
b813574b 7931 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7933 done; \
22121df0 7934 echo "Doing clean in fastjar"; \
a90ef4bf 7935 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7938 "RANLIB=$${RANLIB}" \
0c24b341 7939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7940 clean) \
2a4cbe27
NN
7941 || exit 1
7942
a90ef4bf 7943@endif fastjar
2a4cbe27 7944
a90ef4bf
JM
7945.PHONY: maybe-distclean-fastjar distclean-fastjar
7946maybe-distclean-fastjar:
7947@if fastjar
7948maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 7949
a90ef4bf 7950distclean-fastjar:
0aed8855 7951 @: $(MAKE); $(unstage)
a90ef4bf 7952 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7953 r=`${PWD_COMMAND}`; export r; \
7954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7955 $(HOST_EXPORTS) \
b813574b 7956 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7958 done; \
22121df0 7959 echo "Doing distclean in fastjar"; \
a90ef4bf 7960 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7963 "RANLIB=$${RANLIB}" \
0c24b341 7964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7965 distclean) \
2a4cbe27
NN
7966 || exit 1
7967
a90ef4bf 7968@endif fastjar
2a4cbe27 7969
a90ef4bf
JM
7970.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
7971maybe-maintainer-clean-fastjar:
7972@if fastjar
7973maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
7974
7975maintainer-clean-fastjar:
0aed8855 7976 @: $(MAKE); $(unstage)
a90ef4bf 7977 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7978 r=`${PWD_COMMAND}`; export r; \
7979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7980 $(HOST_EXPORTS) \
b813574b 7981 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7983 done; \
22121df0 7984 echo "Doing maintainer-clean in fastjar"; \
a90ef4bf 7985 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7988 "RANLIB=$${RANLIB}" \
0c24b341 7989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7990 maintainer-clean) \
2a4cbe27
NN
7991 || exit 1
7992
a90ef4bf 7993@endif fastjar
2a4cbe27 7994
2a4cbe27 7995
a7254363 7996
a90ef4bf
JM
7997.PHONY: configure-fixincludes maybe-configure-fixincludes
7998maybe-configure-fixincludes:
4f0ef2d8 7999@if gcc-bootstrap
a90ef4bf 8000configure-fixincludes: stage_current
4f0ef2d8 8001@endif gcc-bootstrap
a90ef4bf
JM
8002@if fixincludes
8003maybe-configure-fixincludes: configure-fixincludes
8004configure-fixincludes:
c52c6897 8005 @r=`${PWD_COMMAND}`; export r; \
4fa63067 8006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8007 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 8008 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
1f53ca9a 8009 $(HOST_EXPORTS) \
a90ef4bf
JM
8010 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
8011 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
4fa63067 8012 case $(srcdir) in \
b00612cc 8013 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8014 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
b00612cc 8015 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 8016 esac; \
1b6c0831
L
8017 module_srcdir=fixincludes; \
8018 $(SHELL) \
8019 $$s/$$module_srcdir/configure \
8020 --srcdir=$${topdir}/$$module_srcdir \
4b900473 8021 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8022 --target=${target_alias} \
4fa63067 8023 || exit 1
a90ef4bf 8024@endif fixincludes
4fa63067 8025
a7254363
PB
8026
8027
201f096f 8028.PHONY: configure-stage1-fixincludes maybe-configure-stage1-fixincludes
8029maybe-configure-stage1-fixincludes:
8030@if fixincludes-bootstrap
8031maybe-configure-stage1-fixincludes: configure-stage1-fixincludes
8032configure-stage1-fixincludes:
8033 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8034 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8035 @r=`${PWD_COMMAND}`; export r; \
8036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8037 TFLAGS="$(STAGE1_TFLAGS)"; \
8038 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8039 $(HOST_EXPORTS) \
8040 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8041 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8042 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
8043 echo Configuring stage 1 in $(HOST_SUBDIR)/fixincludes; \
8044 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8045 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8046 case $(srcdir) in \
8047 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8048 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8049 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8050 esac; \
1b6c0831
L
8051 module_srcdir=fixincludes; \
8052 $(SHELL) $$s/$$module_srcdir/configure \
8053 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8054 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8055 --target=${target_alias} \
8056 \
201f096f 8057 $(STAGE1_CONFIGURE_FLAGS)
8058@endif fixincludes-bootstrap
8059
8060.PHONY: configure-stage2-fixincludes maybe-configure-stage2-fixincludes
8061maybe-configure-stage2-fixincludes:
8062@if fixincludes-bootstrap
8063maybe-configure-stage2-fixincludes: configure-stage2-fixincludes
8064configure-stage2-fixincludes:
8065 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8066 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8067 @r=`${PWD_COMMAND}`; export r; \
8068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8069 TFLAGS="$(STAGE2_TFLAGS)"; \
8070 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8071 $(HOST_EXPORTS) \
8072 $(POSTSTAGE1_HOST_EXPORTS) \
8073 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8074 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8075 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8076 echo Configuring stage 2 in $(HOST_SUBDIR)/fixincludes; \
8077 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8078 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8079 case $(srcdir) in \
8080 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8081 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8082 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8083 esac; \
1b6c0831
L
8084 module_srcdir=fixincludes; \
8085 $(SHELL) $$s/$$module_srcdir/configure \
8086 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8087 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8088 --target=${target_alias} \
22121df0 8089 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8090 $(STAGE2_CONFIGURE_FLAGS)
8091@endif fixincludes-bootstrap
8092
8093.PHONY: configure-stage3-fixincludes maybe-configure-stage3-fixincludes
8094maybe-configure-stage3-fixincludes:
8095@if fixincludes-bootstrap
8096maybe-configure-stage3-fixincludes: configure-stage3-fixincludes
8097configure-stage3-fixincludes:
8098 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8099 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8100 @r=`${PWD_COMMAND}`; export r; \
8101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8102 TFLAGS="$(STAGE3_TFLAGS)"; \
8103 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8104 $(HOST_EXPORTS) \
8105 $(POSTSTAGE1_HOST_EXPORTS) \
8106 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8107 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8108 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8109 echo Configuring stage 3 in $(HOST_SUBDIR)/fixincludes; \
8110 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8111 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8112 case $(srcdir) in \
8113 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8114 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8115 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8116 esac; \
1b6c0831
L
8117 module_srcdir=fixincludes; \
8118 $(SHELL) $$s/$$module_srcdir/configure \
8119 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8120 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8121 --target=${target_alias} \
22121df0 8122 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8123 $(STAGE3_CONFIGURE_FLAGS)
8124@endif fixincludes-bootstrap
8125
8126.PHONY: configure-stage4-fixincludes maybe-configure-stage4-fixincludes
8127maybe-configure-stage4-fixincludes:
8128@if fixincludes-bootstrap
8129maybe-configure-stage4-fixincludes: configure-stage4-fixincludes
8130configure-stage4-fixincludes:
8131 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8132 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8133 @r=`${PWD_COMMAND}`; export r; \
8134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8135 TFLAGS="$(STAGE4_TFLAGS)"; \
8136 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8137 $(HOST_EXPORTS) \
8138 $(POSTSTAGE1_HOST_EXPORTS) \
8139 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8140 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8141 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8142 echo Configuring stage 4 in $(HOST_SUBDIR)/fixincludes; \
8143 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8144 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8145 case $(srcdir) in \
8146 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8147 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8148 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8149 esac; \
1b6c0831
L
8150 module_srcdir=fixincludes; \
8151 $(SHELL) $$s/$$module_srcdir/configure \
8152 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8153 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8154 --target=${target_alias} \
22121df0 8155 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8156 $(STAGE4_CONFIGURE_FLAGS)
8157@endif fixincludes-bootstrap
8158
8159.PHONY: configure-stageprofile-fixincludes maybe-configure-stageprofile-fixincludes
8160maybe-configure-stageprofile-fixincludes:
8161@if fixincludes-bootstrap
8162maybe-configure-stageprofile-fixincludes: configure-stageprofile-fixincludes
8163configure-stageprofile-fixincludes:
8164 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8165 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8166 @r=`${PWD_COMMAND}`; export r; \
8167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8168 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8169 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8170 $(HOST_EXPORTS) \
8171 $(POSTSTAGE1_HOST_EXPORTS) \
8172 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8173 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8174 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8175 echo Configuring stage profile in $(HOST_SUBDIR)/fixincludes; \
8176 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8177 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8178 case $(srcdir) in \
8179 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8180 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8181 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8182 esac; \
1b6c0831
L
8183 module_srcdir=fixincludes; \
8184 $(SHELL) $$s/$$module_srcdir/configure \
8185 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8186 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8187 --target=${target_alias} \
22121df0 8188 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8189 $(STAGEprofile_CONFIGURE_FLAGS)
8190@endif fixincludes-bootstrap
8191
8192.PHONY: configure-stagefeedback-fixincludes maybe-configure-stagefeedback-fixincludes
8193maybe-configure-stagefeedback-fixincludes:
8194@if fixincludes-bootstrap
8195maybe-configure-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8196configure-stagefeedback-fixincludes:
8197 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8198 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8199 @r=`${PWD_COMMAND}`; export r; \
8200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8201 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8202 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8203 $(HOST_EXPORTS) \
8204 $(POSTSTAGE1_HOST_EXPORTS) \
8205 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
8206 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
8207 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8208 echo Configuring stage feedback in $(HOST_SUBDIR)/fixincludes; \
8209 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8210 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8211 case $(srcdir) in \
8212 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8213 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8214 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8215 esac; \
1b6c0831
L
8216 module_srcdir=fixincludes; \
8217 $(SHELL) $$s/$$module_srcdir/configure \
8218 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8219 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8220 --target=${target_alias} \
22121df0 8221 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8222 $(STAGEfeedback_CONFIGURE_FLAGS)
8223@endif fixincludes-bootstrap
8224
8225
8226
d545f33b
PB
8227
8228
a90ef4bf
JM
8229.PHONY: all-fixincludes maybe-all-fixincludes
8230maybe-all-fixincludes:
4f0ef2d8 8231@if gcc-bootstrap
a90ef4bf 8232all-fixincludes: stage_current
4f0ef2d8 8233@endif gcc-bootstrap
a90ef4bf
JM
8234@if fixincludes
8235TARGET-fixincludes=all
8236maybe-all-fixincludes: all-fixincludes
8237all-fixincludes: configure-fixincludes
4fa63067
NN
8238 @r=`${PWD_COMMAND}`; export r; \
8239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8240 $(HOST_EXPORTS) \
a90ef4bf 8241 (cd $(HOST_SUBDIR)/fixincludes && \
b3676d82 8242 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8243 $(TARGET-fixincludes))
8244@endif fixincludes
4fa63067 8245
a7254363 8246
d545f33b 8247
201f096f 8248.PHONY: all-stage1-fixincludes maybe-all-stage1-fixincludes
8249.PHONY: clean-stage1-fixincludes maybe-clean-stage1-fixincludes
8250maybe-all-stage1-fixincludes:
8251maybe-clean-stage1-fixincludes:
8252@if fixincludes-bootstrap
8253maybe-all-stage1-fixincludes: all-stage1-fixincludes
8254all-stage1: all-stage1-fixincludes
8255TARGET-stage1-fixincludes = $(TARGET-fixincludes)
8256all-stage1-fixincludes: configure-stage1-fixincludes
8257 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8258 @r=`${PWD_COMMAND}`; export r; \
8259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8260 TFLAGS="$(STAGE1_TFLAGS)"; \
8261 $(HOST_EXPORTS) \
8262 cd $(HOST_SUBDIR)/fixincludes && \
8263 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8264 CFLAGS="$(STAGE1_CFLAGS)" \
8265 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
8266 LIBCFLAGS="$(LIBCFLAGS)" \
8267 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8268 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8269 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8270 $(EXTRA_HOST_FLAGS) \
8271 $(STAGE1_FLAGS_TO_PASS) \
8272 TFLAGS="$(STAGE1_TFLAGS)" \
8273 $(TARGET-stage1-fixincludes)
8274
8275maybe-clean-stage1-fixincludes: clean-stage1-fixincludes
8276clean-stage1: clean-stage1-fixincludes
8277clean-stage1-fixincludes:
8278 @if [ $(current_stage) = stage1 ]; then \
8279 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8280 else \
8281 [ -f $(HOST_SUBDIR)/stage1-fixincludes/Makefile ] || exit 0; \
8282 $(MAKE) stage1-start; \
8283 fi; \
8284 cd $(HOST_SUBDIR)/fixincludes && \
8285 $(MAKE) $(EXTRA_HOST_FLAGS) \
8286 $(STAGE1_FLAGS_TO_PASS) clean
8287@endif fixincludes-bootstrap
8288
8289
8290.PHONY: all-stage2-fixincludes maybe-all-stage2-fixincludes
8291.PHONY: clean-stage2-fixincludes maybe-clean-stage2-fixincludes
8292maybe-all-stage2-fixincludes:
8293maybe-clean-stage2-fixincludes:
8294@if fixincludes-bootstrap
8295maybe-all-stage2-fixincludes: all-stage2-fixincludes
8296all-stage2: all-stage2-fixincludes
8297TARGET-stage2-fixincludes = $(TARGET-fixincludes)
8298all-stage2-fixincludes: configure-stage2-fixincludes
8299 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8300 @r=`${PWD_COMMAND}`; export r; \
8301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8302 TFLAGS="$(STAGE2_TFLAGS)"; \
8303 $(HOST_EXPORTS) \
8304 $(POSTSTAGE1_HOST_EXPORTS) \
8305 cd $(HOST_SUBDIR)/fixincludes && \
8306 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8307 CFLAGS="$(STAGE2_CFLAGS)" \
8308 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
8309 LIBCFLAGS="$(STAGE2_CFLAGS)" \
8310 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8311 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8312 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8313 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8314 TFLAGS="$(STAGE2_TFLAGS)" \
8315 $(TARGET-stage2-fixincludes)
8316
8317maybe-clean-stage2-fixincludes: clean-stage2-fixincludes
8318clean-stage2: clean-stage2-fixincludes
8319clean-stage2-fixincludes:
8320 @if [ $(current_stage) = stage2 ]; then \
8321 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8322 else \
8323 [ -f $(HOST_SUBDIR)/stage2-fixincludes/Makefile ] || exit 0; \
8324 $(MAKE) stage2-start; \
8325 fi; \
8326 cd $(HOST_SUBDIR)/fixincludes && \
8327 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8328@endif fixincludes-bootstrap
8329
8330
8331.PHONY: all-stage3-fixincludes maybe-all-stage3-fixincludes
8332.PHONY: clean-stage3-fixincludes maybe-clean-stage3-fixincludes
8333maybe-all-stage3-fixincludes:
8334maybe-clean-stage3-fixincludes:
8335@if fixincludes-bootstrap
8336maybe-all-stage3-fixincludes: all-stage3-fixincludes
8337all-stage3: all-stage3-fixincludes
8338TARGET-stage3-fixincludes = $(TARGET-fixincludes)
8339all-stage3-fixincludes: configure-stage3-fixincludes
8340 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8341 @r=`${PWD_COMMAND}`; export r; \
8342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8343 TFLAGS="$(STAGE3_TFLAGS)"; \
8344 $(HOST_EXPORTS) \
8345 $(POSTSTAGE1_HOST_EXPORTS) \
8346 cd $(HOST_SUBDIR)/fixincludes && \
8347 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8348 CFLAGS="$(STAGE3_CFLAGS)" \
8349 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
8350 LIBCFLAGS="$(STAGE3_CFLAGS)" \
8351 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8352 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8353 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8354 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8355 TFLAGS="$(STAGE3_TFLAGS)" \
8356 $(TARGET-stage3-fixincludes)
8357
8358maybe-clean-stage3-fixincludes: clean-stage3-fixincludes
8359clean-stage3: clean-stage3-fixincludes
8360clean-stage3-fixincludes:
8361 @if [ $(current_stage) = stage3 ]; then \
8362 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8363 else \
8364 [ -f $(HOST_SUBDIR)/stage3-fixincludes/Makefile ] || exit 0; \
8365 $(MAKE) stage3-start; \
8366 fi; \
8367 cd $(HOST_SUBDIR)/fixincludes && \
8368 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8369@endif fixincludes-bootstrap
8370
8371
8372.PHONY: all-stage4-fixincludes maybe-all-stage4-fixincludes
8373.PHONY: clean-stage4-fixincludes maybe-clean-stage4-fixincludes
8374maybe-all-stage4-fixincludes:
8375maybe-clean-stage4-fixincludes:
8376@if fixincludes-bootstrap
8377maybe-all-stage4-fixincludes: all-stage4-fixincludes
8378all-stage4: all-stage4-fixincludes
8379TARGET-stage4-fixincludes = $(TARGET-fixincludes)
8380all-stage4-fixincludes: configure-stage4-fixincludes
8381 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8382 @r=`${PWD_COMMAND}`; export r; \
8383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8384 TFLAGS="$(STAGE4_TFLAGS)"; \
8385 $(HOST_EXPORTS) \
8386 $(POSTSTAGE1_HOST_EXPORTS) \
8387 cd $(HOST_SUBDIR)/fixincludes && \
8388 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8389 CFLAGS="$(STAGE4_CFLAGS)" \
8390 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
8391 LIBCFLAGS="$(STAGE4_CFLAGS)" \
8392 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8393 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8394 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8395 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8396 TFLAGS="$(STAGE4_TFLAGS)" \
8397 $(TARGET-stage4-fixincludes)
8398
8399maybe-clean-stage4-fixincludes: clean-stage4-fixincludes
8400clean-stage4: clean-stage4-fixincludes
8401clean-stage4-fixincludes:
8402 @if [ $(current_stage) = stage4 ]; then \
8403 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8404 else \
8405 [ -f $(HOST_SUBDIR)/stage4-fixincludes/Makefile ] || exit 0; \
8406 $(MAKE) stage4-start; \
8407 fi; \
8408 cd $(HOST_SUBDIR)/fixincludes && \
8409 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8410@endif fixincludes-bootstrap
8411
8412
8413.PHONY: all-stageprofile-fixincludes maybe-all-stageprofile-fixincludes
8414.PHONY: clean-stageprofile-fixincludes maybe-clean-stageprofile-fixincludes
8415maybe-all-stageprofile-fixincludes:
8416maybe-clean-stageprofile-fixincludes:
8417@if fixincludes-bootstrap
8418maybe-all-stageprofile-fixincludes: all-stageprofile-fixincludes
8419all-stageprofile: all-stageprofile-fixincludes
8420TARGET-stageprofile-fixincludes = $(TARGET-fixincludes)
8421all-stageprofile-fixincludes: configure-stageprofile-fixincludes
8422 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8423 @r=`${PWD_COMMAND}`; export r; \
8424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8425 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8426 $(HOST_EXPORTS) \
8427 $(POSTSTAGE1_HOST_EXPORTS) \
8428 cd $(HOST_SUBDIR)/fixincludes && \
8429 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8430 CFLAGS="$(STAGEprofile_CFLAGS)" \
8431 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
8432 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
8433 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8434 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8435 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8436 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8437 TFLAGS="$(STAGEprofile_TFLAGS)" \
8438 $(TARGET-stageprofile-fixincludes)
8439
8440maybe-clean-stageprofile-fixincludes: clean-stageprofile-fixincludes
8441clean-stageprofile: clean-stageprofile-fixincludes
8442clean-stageprofile-fixincludes:
8443 @if [ $(current_stage) = stageprofile ]; then \
8444 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8445 else \
8446 [ -f $(HOST_SUBDIR)/stageprofile-fixincludes/Makefile ] || exit 0; \
8447 $(MAKE) stageprofile-start; \
8448 fi; \
8449 cd $(HOST_SUBDIR)/fixincludes && \
8450 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8451@endif fixincludes-bootstrap
8452
8453
8454.PHONY: all-stagefeedback-fixincludes maybe-all-stagefeedback-fixincludes
8455.PHONY: clean-stagefeedback-fixincludes maybe-clean-stagefeedback-fixincludes
8456maybe-all-stagefeedback-fixincludes:
8457maybe-clean-stagefeedback-fixincludes:
8458@if fixincludes-bootstrap
8459maybe-all-stagefeedback-fixincludes: all-stagefeedback-fixincludes
8460all-stagefeedback: all-stagefeedback-fixincludes
8461TARGET-stagefeedback-fixincludes = $(TARGET-fixincludes)
8462all-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8463 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8464 @r=`${PWD_COMMAND}`; export r; \
8465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8466 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8467 $(HOST_EXPORTS) \
8468 $(POSTSTAGE1_HOST_EXPORTS) \
8469 cd $(HOST_SUBDIR)/fixincludes && \
8470 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8471 CFLAGS="$(STAGEfeedback_CFLAGS)" \
8472 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
8473 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
8474 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8475 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8476 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8477 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
8478 TFLAGS="$(STAGEfeedback_TFLAGS)" \
8479 $(TARGET-stagefeedback-fixincludes)
8480
8481maybe-clean-stagefeedback-fixincludes: clean-stagefeedback-fixincludes
8482clean-stagefeedback: clean-stagefeedback-fixincludes
8483clean-stagefeedback-fixincludes:
8484 @if [ $(current_stage) = stagefeedback ]; then \
8485 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8486 else \
8487 [ -f $(HOST_SUBDIR)/stagefeedback-fixincludes/Makefile ] || exit 0; \
8488 $(MAKE) stagefeedback-start; \
8489 fi; \
8490 cd $(HOST_SUBDIR)/fixincludes && \
8491 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8492@endif fixincludes-bootstrap
8493
8494
8495
8496
d545f33b 8497
a90ef4bf
JM
8498.PHONY: check-fixincludes maybe-check-fixincludes
8499maybe-check-fixincludes:
8500@if fixincludes
8501maybe-check-fixincludes: check-fixincludes
4fa63067 8502
a90ef4bf 8503check-fixincludes:
0aed8855 8504 @: $(MAKE); $(unstage)
4fa63067
NN
8505 @r=`${PWD_COMMAND}`; export r; \
8506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8507 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 8508 (cd $(HOST_SUBDIR)/fixincludes && \
f91ca6bc 8509 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 8510
a90ef4bf 8511@endif fixincludes
4fa63067 8512
a90ef4bf
JM
8513.PHONY: install-fixincludes maybe-install-fixincludes
8514maybe-install-fixincludes:
8515@if fixincludes
8516maybe-install-fixincludes: install-fixincludes
4fa63067 8517
a90ef4bf 8518install-fixincludes: installdirs
0aed8855 8519 @: $(MAKE); $(unstage)
4fa63067
NN
8520 @r=`${PWD_COMMAND}`; export r; \
8521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8522 $(HOST_EXPORTS) \
a90ef4bf 8523 (cd $(HOST_SUBDIR)/fixincludes && \
2da12f12 8524 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8525
a90ef4bf 8526@endif fixincludes
4fa63067 8527
a90ef4bf
JM
8528.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
8529maybe-install-strip-fixincludes:
8530@if fixincludes
8531maybe-install-strip-fixincludes: install-strip-fixincludes
9b980aa1 8532
a90ef4bf 8533install-strip-fixincludes: installdirs
9b980aa1
RW
8534 @: $(MAKE); $(unstage)
8535 @r=`${PWD_COMMAND}`; export r; \
8536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8537 $(HOST_EXPORTS) \
a90ef4bf 8538 (cd $(HOST_SUBDIR)/fixincludes && \
9b980aa1
RW
8539 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8540
a90ef4bf 8541@endif fixincludes
9b980aa1 8542
56a8fe78 8543# Other targets (info, dvi, pdf, etc.)
4fa63067 8544
a90ef4bf
JM
8545.PHONY: maybe-info-fixincludes info-fixincludes
8546maybe-info-fixincludes:
8547@if fixincludes
8548maybe-info-fixincludes: info-fixincludes
4fa63067 8549
a90ef4bf
JM
8550info-fixincludes: \
8551 configure-fixincludes
a90ef4bf 8552 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8553 r=`${PWD_COMMAND}`; export r; \
8554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8555 $(HOST_EXPORTS) \
b813574b 8556 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8558 done; \
22121df0 8559 echo "Doing info in fixincludes"; \
a90ef4bf 8560 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8563 "RANLIB=$${RANLIB}" \
0c24b341 8564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8565 info) \
2a4cbe27
NN
8566 || exit 1
8567
a90ef4bf 8568@endif fixincludes
2a4cbe27 8569
a90ef4bf
JM
8570.PHONY: maybe-dvi-fixincludes dvi-fixincludes
8571maybe-dvi-fixincludes:
8572@if fixincludes
8573maybe-dvi-fixincludes: dvi-fixincludes
2a4cbe27 8574
a90ef4bf
JM
8575dvi-fixincludes: \
8576 configure-fixincludes
a90ef4bf 8577 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8578 r=`${PWD_COMMAND}`; export r; \
8579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8580 $(HOST_EXPORTS) \
b813574b 8581 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8583 done; \
22121df0 8584 echo "Doing dvi in fixincludes"; \
a90ef4bf 8585 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8588 "RANLIB=$${RANLIB}" \
0c24b341 8589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8590 dvi) \
2a4cbe27
NN
8591 || exit 1
8592
a90ef4bf 8593@endif fixincludes
2a4cbe27 8594
a90ef4bf
JM
8595.PHONY: maybe-pdf-fixincludes pdf-fixincludes
8596maybe-pdf-fixincludes:
8597@if fixincludes
8598maybe-pdf-fixincludes: pdf-fixincludes
56a8fe78 8599
a90ef4bf
JM
8600pdf-fixincludes: \
8601 configure-fixincludes
a90ef4bf 8602 @[ -f ./fixincludes/Makefile ] || exit 0; \
56a8fe78
DD
8603 r=`${PWD_COMMAND}`; export r; \
8604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8605 $(HOST_EXPORTS) \
8606 for flag in $(EXTRA_HOST_FLAGS) ; do \
8607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8608 done; \
22121df0 8609 echo "Doing pdf in fixincludes"; \
a90ef4bf 8610 (cd $(HOST_SUBDIR)/fixincludes && \
56a8fe78
DD
8611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8613 "RANLIB=$${RANLIB}" \
0c24b341 8614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
8615 pdf) \
8616 || exit 1
8617
a90ef4bf 8618@endif fixincludes
56a8fe78 8619
a90ef4bf
JM
8620.PHONY: maybe-html-fixincludes html-fixincludes
8621maybe-html-fixincludes:
8622@if fixincludes
8623maybe-html-fixincludes: html-fixincludes
6d389afc 8624
a90ef4bf
JM
8625html-fixincludes: \
8626 configure-fixincludes
a90ef4bf 8627 @[ -f ./fixincludes/Makefile ] || exit 0; \
6d389afc
MS
8628 r=`${PWD_COMMAND}`; export r; \
8629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
8630 $(HOST_EXPORTS) \
8631 for flag in $(EXTRA_HOST_FLAGS) ; do \
8632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8633 done; \
22121df0 8634 echo "Doing html in fixincludes"; \
a90ef4bf 8635 (cd $(HOST_SUBDIR)/fixincludes && \
6d389afc
MS
8636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8638 "RANLIB=$${RANLIB}" \
0c24b341 8639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
8640 html) \
8641 || exit 1
8642
a90ef4bf 8643@endif fixincludes
6d389afc 8644
a90ef4bf
JM
8645.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
8646maybe-TAGS-fixincludes:
8647@if fixincludes
8648maybe-TAGS-fixincludes: TAGS-fixincludes
2a4cbe27 8649
a90ef4bf
JM
8650# fixincludes doesn't support TAGS.
8651TAGS-fixincludes:
2a4cbe27 8652
a90ef4bf 8653@endif fixincludes
2a4cbe27 8654
a90ef4bf
JM
8655.PHONY: maybe-install-info-fixincludes install-info-fixincludes
8656maybe-install-info-fixincludes:
8657@if fixincludes
8658maybe-install-info-fixincludes: install-info-fixincludes
2a4cbe27 8659
a90ef4bf
JM
8660install-info-fixincludes: \
8661 configure-fixincludes \
8662 info-fixincludes
a90ef4bf 8663 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8664 r=`${PWD_COMMAND}`; export r; \
8665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8666 $(HOST_EXPORTS) \
b813574b 8667 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8669 done; \
22121df0 8670 echo "Doing install-info in fixincludes"; \
a90ef4bf 8671 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8674 "RANLIB=$${RANLIB}" \
0c24b341 8675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8676 install-info) \
2a4cbe27
NN
8677 || exit 1
8678
a90ef4bf 8679@endif fixincludes
2a4cbe27 8680
a90ef4bf
JM
8681.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
8682maybe-install-pdf-fixincludes:
8683@if fixincludes
8684maybe-install-pdf-fixincludes: install-pdf-fixincludes
a3ca38d2 8685
a90ef4bf
JM
8686install-pdf-fixincludes: \
8687 configure-fixincludes \
8688 pdf-fixincludes
a90ef4bf 8689 @[ -f ./fixincludes/Makefile ] || exit 0; \
a3ca38d2
DD
8690 r=`${PWD_COMMAND}`; export r; \
8691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8692 $(HOST_EXPORTS) \
8693 for flag in $(EXTRA_HOST_FLAGS) ; do \
8694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8695 done; \
22121df0 8696 echo "Doing install-pdf in fixincludes"; \
a90ef4bf 8697 (cd $(HOST_SUBDIR)/fixincludes && \
a3ca38d2
DD
8698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8700 "RANLIB=$${RANLIB}" \
0c24b341 8701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8702 install-pdf) \
8703 || exit 1
8704
a90ef4bf 8705@endif fixincludes
a3ca38d2 8706
a90ef4bf
JM
8707.PHONY: maybe-install-html-fixincludes install-html-fixincludes
8708maybe-install-html-fixincludes:
8709@if fixincludes
8710maybe-install-html-fixincludes: install-html-fixincludes
108a6f8e 8711
a90ef4bf
JM
8712install-html-fixincludes: \
8713 configure-fixincludes \
8714 html-fixincludes
a90ef4bf 8715 @[ -f ./fixincludes/Makefile ] || exit 0; \
108a6f8e
CD
8716 r=`${PWD_COMMAND}`; export r; \
8717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8718 $(HOST_EXPORTS) \
8719 for flag in $(EXTRA_HOST_FLAGS) ; do \
8720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8721 done; \
22121df0 8722 echo "Doing install-html in fixincludes"; \
a90ef4bf 8723 (cd $(HOST_SUBDIR)/fixincludes && \
108a6f8e
CD
8724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8726 "RANLIB=$${RANLIB}" \
0c24b341 8727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
8728 install-html) \
8729 || exit 1
8730
a90ef4bf 8731@endif fixincludes
108a6f8e 8732
a90ef4bf
JM
8733.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8734maybe-installcheck-fixincludes:
8735@if fixincludes
8736maybe-installcheck-fixincludes: installcheck-fixincludes
2a4cbe27 8737
a90ef4bf
JM
8738installcheck-fixincludes: \
8739 configure-fixincludes
a90ef4bf 8740 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8741 r=`${PWD_COMMAND}`; export r; \
8742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8743 $(HOST_EXPORTS) \
b813574b 8744 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8746 done; \
22121df0 8747 echo "Doing installcheck in fixincludes"; \
a90ef4bf 8748 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8751 "RANLIB=$${RANLIB}" \
0c24b341 8752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8753 installcheck) \
2a4cbe27
NN
8754 || exit 1
8755
a90ef4bf 8756@endif fixincludes
2a4cbe27 8757
a90ef4bf
JM
8758.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8759maybe-mostlyclean-fixincludes:
8760@if fixincludes
8761maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
2a4cbe27 8762
a90ef4bf 8763mostlyclean-fixincludes:
a90ef4bf 8764 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8765 r=`${PWD_COMMAND}`; export r; \
8766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8767 $(HOST_EXPORTS) \
b813574b 8768 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8770 done; \
22121df0 8771 echo "Doing mostlyclean in fixincludes"; \
a90ef4bf 8772 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8775 "RANLIB=$${RANLIB}" \
0c24b341 8776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8777 mostlyclean) \
2a4cbe27
NN
8778 || exit 1
8779
a90ef4bf 8780@endif fixincludes
2a4cbe27 8781
a90ef4bf
JM
8782.PHONY: maybe-clean-fixincludes clean-fixincludes
8783maybe-clean-fixincludes:
8784@if fixincludes
8785maybe-clean-fixincludes: clean-fixincludes
2a4cbe27 8786
a90ef4bf 8787clean-fixincludes:
a90ef4bf 8788 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8789 r=`${PWD_COMMAND}`; export r; \
8790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8791 $(HOST_EXPORTS) \
b813574b 8792 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8794 done; \
22121df0 8795 echo "Doing clean in fixincludes"; \
a90ef4bf 8796 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8799 "RANLIB=$${RANLIB}" \
0c24b341 8800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8801 clean) \
2a4cbe27
NN
8802 || exit 1
8803
a90ef4bf 8804@endif fixincludes
2a4cbe27 8805
a90ef4bf
JM
8806.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8807maybe-distclean-fixincludes:
8808@if fixincludes
8809maybe-distclean-fixincludes: distclean-fixincludes
2a4cbe27 8810
a90ef4bf 8811distclean-fixincludes:
a90ef4bf 8812 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8813 r=`${PWD_COMMAND}`; export r; \
8814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8815 $(HOST_EXPORTS) \
b813574b 8816 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8818 done; \
22121df0 8819 echo "Doing distclean in fixincludes"; \
a90ef4bf 8820 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8823 "RANLIB=$${RANLIB}" \
0c24b341 8824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8825 distclean) \
2a4cbe27
NN
8826 || exit 1
8827
a90ef4bf 8828@endif fixincludes
2a4cbe27 8829
a90ef4bf
JM
8830.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8831maybe-maintainer-clean-fixincludes:
8832@if fixincludes
8833maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
2a4cbe27 8834
a90ef4bf 8835maintainer-clean-fixincludes:
a90ef4bf 8836 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8837 r=`${PWD_COMMAND}`; export r; \
8838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8839 $(HOST_EXPORTS) \
b813574b 8840 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8842 done; \
22121df0 8843 echo "Doing maintainer-clean in fixincludes"; \
a90ef4bf 8844 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8847 "RANLIB=$${RANLIB}" \
0c24b341 8848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8849 maintainer-clean) \
2a4cbe27
NN
8850 || exit 1
8851
a90ef4bf 8852@endif fixincludes
2a4cbe27 8853
2a4cbe27 8854
a7254363 8855
a90ef4bf
JM
8856.PHONY: configure-flex maybe-configure-flex
8857maybe-configure-flex:
f9806fa5 8858@if gcc-bootstrap
a90ef4bf 8859configure-flex: stage_current
f9806fa5 8860@endif gcc-bootstrap
a90ef4bf
JM
8861@if flex
8862maybe-configure-flex: configure-flex
8863configure-flex:
f9806fa5
DE
8864 @: $(MAKE); $(unstage)
8865 @r=`${PWD_COMMAND}`; export r; \
8866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8867 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
22121df0 8868 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex; \
1f53ca9a 8869 $(HOST_EXPORTS) \
a90ef4bf
JM
8870 echo Configuring in $(HOST_SUBDIR)/flex; \
8871 cd "$(HOST_SUBDIR)/flex" || exit 1; \
f9806fa5
DE
8872 case $(srcdir) in \
8873 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8874 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
f9806fa5
DE
8875 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8876 esac; \
1b6c0831
L
8877 module_srcdir=flex; \
8878 $(SHELL) \
8879 $$s/$$module_srcdir/configure \
8880 --srcdir=$${topdir}/$$module_srcdir \
f9806fa5 8881 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8882 --target=${target_alias} \
f9806fa5 8883 || exit 1
a90ef4bf 8884@endif flex
f9806fa5
DE
8885
8886
8887
8888
8889
a90ef4bf
JM
8890.PHONY: all-flex maybe-all-flex
8891maybe-all-flex:
f9806fa5 8892@if gcc-bootstrap
a90ef4bf 8893all-flex: stage_current
f9806fa5 8894@endif gcc-bootstrap
a90ef4bf
JM
8895@if flex
8896TARGET-flex=all
8897maybe-all-flex: all-flex
8898all-flex: configure-flex
f9806fa5
DE
8899 @: $(MAKE); $(unstage)
8900 @r=`${PWD_COMMAND}`; export r; \
8901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8902 $(HOST_EXPORTS) \
a90ef4bf 8903 (cd $(HOST_SUBDIR)/flex && \
b3676d82 8904 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8905 $(TARGET-flex))
8906@endif flex
f9806fa5
DE
8907
8908
8909
8910
a90ef4bf
JM
8911.PHONY: check-flex maybe-check-flex
8912maybe-check-flex:
8913@if flex
8914maybe-check-flex: check-flex
f9806fa5 8915
a90ef4bf
JM
8916# This module is only tested in a native toolchain.
8917check-flex:
f9806fa5 8918 @: $(MAKE); $(unstage)
22121df0 8919 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
8920 r=`${PWD_COMMAND}`; export r; \
8921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8922 $(HOST_EXPORTS) \
a90ef4bf 8923 (cd $(HOST_SUBDIR)/flex && \
f91ca6bc 8924 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 8925 fi
f9806fa5 8926
a90ef4bf 8927@endif flex
f9806fa5 8928
a90ef4bf
JM
8929.PHONY: install-flex maybe-install-flex
8930maybe-install-flex:
8931@if flex
8932maybe-install-flex: install-flex
f9806fa5 8933
a90ef4bf 8934install-flex: installdirs
f9806fa5
DE
8935 @: $(MAKE); $(unstage)
8936 @r=`${PWD_COMMAND}`; export r; \
8937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8938 $(HOST_EXPORTS) \
a90ef4bf 8939 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8940 $(MAKE) $(FLAGS_TO_PASS) install)
8941
a90ef4bf 8942@endif flex
f9806fa5 8943
a90ef4bf
JM
8944.PHONY: install-strip-flex maybe-install-strip-flex
8945maybe-install-strip-flex:
8946@if flex
8947maybe-install-strip-flex: install-strip-flex
9b980aa1 8948
a90ef4bf 8949install-strip-flex: installdirs
9b980aa1
RW
8950 @: $(MAKE); $(unstage)
8951 @r=`${PWD_COMMAND}`; export r; \
8952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8953 $(HOST_EXPORTS) \
a90ef4bf 8954 (cd $(HOST_SUBDIR)/flex && \
9b980aa1
RW
8955 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8956
a90ef4bf 8957@endif flex
9b980aa1 8958
f9806fa5
DE
8959# Other targets (info, dvi, pdf, etc.)
8960
a90ef4bf
JM
8961.PHONY: maybe-info-flex info-flex
8962maybe-info-flex:
8963@if flex
8964maybe-info-flex: info-flex
f9806fa5 8965
a90ef4bf
JM
8966info-flex: \
8967 configure-flex
f9806fa5 8968 @: $(MAKE); $(unstage)
a90ef4bf 8969 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8970 r=`${PWD_COMMAND}`; export r; \
8971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8972 $(HOST_EXPORTS) \
8973 for flag in $(EXTRA_HOST_FLAGS) ; do \
8974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8975 done; \
22121df0 8976 echo "Doing info in flex"; \
a90ef4bf 8977 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8980 "RANLIB=$${RANLIB}" \
8981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8982 info) \
8983 || exit 1
8984
a90ef4bf 8985@endif flex
f9806fa5 8986
a90ef4bf
JM
8987.PHONY: maybe-dvi-flex dvi-flex
8988maybe-dvi-flex:
8989@if flex
8990maybe-dvi-flex: dvi-flex
f9806fa5 8991
a90ef4bf
JM
8992dvi-flex: \
8993 configure-flex
f9806fa5 8994 @: $(MAKE); $(unstage)
a90ef4bf 8995 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8996 r=`${PWD_COMMAND}`; export r; \
8997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8998 $(HOST_EXPORTS) \
8999 for flag in $(EXTRA_HOST_FLAGS) ; do \
9000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9001 done; \
22121df0 9002 echo "Doing dvi in flex"; \
a90ef4bf 9003 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9006 "RANLIB=$${RANLIB}" \
9007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9008 dvi) \
9009 || exit 1
9010
a90ef4bf 9011@endif flex
f9806fa5 9012
a90ef4bf
JM
9013.PHONY: maybe-pdf-flex pdf-flex
9014maybe-pdf-flex:
9015@if flex
9016maybe-pdf-flex: pdf-flex
f9806fa5 9017
a90ef4bf
JM
9018pdf-flex: \
9019 configure-flex
f9806fa5 9020 @: $(MAKE); $(unstage)
a90ef4bf 9021 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9022 r=`${PWD_COMMAND}`; export r; \
9023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9024 $(HOST_EXPORTS) \
9025 for flag in $(EXTRA_HOST_FLAGS) ; do \
9026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9027 done; \
22121df0 9028 echo "Doing pdf in flex"; \
a90ef4bf 9029 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9032 "RANLIB=$${RANLIB}" \
9033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9034 pdf) \
9035 || exit 1
9036
a90ef4bf 9037@endif flex
f9806fa5 9038
a90ef4bf
JM
9039.PHONY: maybe-html-flex html-flex
9040maybe-html-flex:
9041@if flex
9042maybe-html-flex: html-flex
f9806fa5 9043
a90ef4bf
JM
9044html-flex: \
9045 configure-flex
f9806fa5 9046 @: $(MAKE); $(unstage)
a90ef4bf 9047 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9048 r=`${PWD_COMMAND}`; export r; \
9049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9050 $(HOST_EXPORTS) \
9051 for flag in $(EXTRA_HOST_FLAGS) ; do \
9052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9053 done; \
22121df0 9054 echo "Doing html in flex"; \
a90ef4bf 9055 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9058 "RANLIB=$${RANLIB}" \
9059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9060 html) \
9061 || exit 1
9062
a90ef4bf 9063@endif flex
f9806fa5 9064
a90ef4bf
JM
9065.PHONY: maybe-TAGS-flex TAGS-flex
9066maybe-TAGS-flex:
9067@if flex
9068maybe-TAGS-flex: TAGS-flex
f9806fa5 9069
a90ef4bf
JM
9070TAGS-flex: \
9071 configure-flex
f9806fa5 9072 @: $(MAKE); $(unstage)
a90ef4bf 9073 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9074 r=`${PWD_COMMAND}`; export r; \
9075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9076 $(HOST_EXPORTS) \
9077 for flag in $(EXTRA_HOST_FLAGS) ; do \
9078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9079 done; \
22121df0 9080 echo "Doing TAGS in flex"; \
a90ef4bf 9081 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9084 "RANLIB=$${RANLIB}" \
9085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9086 TAGS) \
9087 || exit 1
9088
a90ef4bf 9089@endif flex
f9806fa5 9090
a90ef4bf
JM
9091.PHONY: maybe-install-info-flex install-info-flex
9092maybe-install-info-flex:
9093@if flex
9094maybe-install-info-flex: install-info-flex
f9806fa5 9095
a90ef4bf
JM
9096install-info-flex: \
9097 configure-flex \
9098 info-flex
f9806fa5 9099 @: $(MAKE); $(unstage)
a90ef4bf 9100 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9101 r=`${PWD_COMMAND}`; export r; \
9102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9103 $(HOST_EXPORTS) \
9104 for flag in $(EXTRA_HOST_FLAGS) ; do \
9105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9106 done; \
22121df0 9107 echo "Doing install-info in flex"; \
a90ef4bf 9108 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9111 "RANLIB=$${RANLIB}" \
9112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9113 install-info) \
9114 || exit 1
9115
a90ef4bf 9116@endif flex
f9806fa5 9117
a90ef4bf
JM
9118.PHONY: maybe-install-pdf-flex install-pdf-flex
9119maybe-install-pdf-flex:
9120@if flex
9121maybe-install-pdf-flex: install-pdf-flex
f9806fa5 9122
a90ef4bf
JM
9123install-pdf-flex: \
9124 configure-flex \
9125 pdf-flex
f9806fa5 9126 @: $(MAKE); $(unstage)
a90ef4bf 9127 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9128 r=`${PWD_COMMAND}`; export r; \
9129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9130 $(HOST_EXPORTS) \
9131 for flag in $(EXTRA_HOST_FLAGS) ; do \
9132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9133 done; \
22121df0 9134 echo "Doing install-pdf in flex"; \
a90ef4bf 9135 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9138 "RANLIB=$${RANLIB}" \
9139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9140 install-pdf) \
9141 || exit 1
9142
a90ef4bf 9143@endif flex
f9806fa5 9144
a90ef4bf
JM
9145.PHONY: maybe-install-html-flex install-html-flex
9146maybe-install-html-flex:
9147@if flex
9148maybe-install-html-flex: install-html-flex
f9806fa5 9149
a90ef4bf
JM
9150install-html-flex: \
9151 configure-flex \
9152 html-flex
f9806fa5 9153 @: $(MAKE); $(unstage)
a90ef4bf 9154 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9155 r=`${PWD_COMMAND}`; export r; \
9156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9157 $(HOST_EXPORTS) \
9158 for flag in $(EXTRA_HOST_FLAGS) ; do \
9159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9160 done; \
22121df0 9161 echo "Doing install-html in flex"; \
a90ef4bf 9162 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9165 "RANLIB=$${RANLIB}" \
9166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9167 install-html) \
9168 || exit 1
9169
a90ef4bf 9170@endif flex
f9806fa5 9171
a90ef4bf
JM
9172.PHONY: maybe-installcheck-flex installcheck-flex
9173maybe-installcheck-flex:
9174@if flex
9175maybe-installcheck-flex: installcheck-flex
f9806fa5 9176
a90ef4bf
JM
9177installcheck-flex: \
9178 configure-flex
f9806fa5 9179 @: $(MAKE); $(unstage)
a90ef4bf 9180 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9181 r=`${PWD_COMMAND}`; export r; \
9182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9183 $(HOST_EXPORTS) \
9184 for flag in $(EXTRA_HOST_FLAGS) ; do \
9185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9186 done; \
22121df0 9187 echo "Doing installcheck in flex"; \
a90ef4bf 9188 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9191 "RANLIB=$${RANLIB}" \
9192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9193 installcheck) \
9194 || exit 1
9195
a90ef4bf 9196@endif flex
f9806fa5 9197
a90ef4bf
JM
9198.PHONY: maybe-mostlyclean-flex mostlyclean-flex
9199maybe-mostlyclean-flex:
9200@if flex
9201maybe-mostlyclean-flex: mostlyclean-flex
f9806fa5 9202
a90ef4bf 9203mostlyclean-flex:
f9806fa5 9204 @: $(MAKE); $(unstage)
a90ef4bf 9205 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9206 r=`${PWD_COMMAND}`; export r; \
9207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9208 $(HOST_EXPORTS) \
9209 for flag in $(EXTRA_HOST_FLAGS) ; do \
9210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9211 done; \
22121df0 9212 echo "Doing mostlyclean in flex"; \
a90ef4bf 9213 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9216 "RANLIB=$${RANLIB}" \
9217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9218 mostlyclean) \
9219 || exit 1
9220
a90ef4bf 9221@endif flex
f9806fa5 9222
a90ef4bf
JM
9223.PHONY: maybe-clean-flex clean-flex
9224maybe-clean-flex:
9225@if flex
9226maybe-clean-flex: clean-flex
f9806fa5 9227
a90ef4bf 9228clean-flex:
f9806fa5 9229 @: $(MAKE); $(unstage)
a90ef4bf 9230 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9231 r=`${PWD_COMMAND}`; export r; \
9232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9233 $(HOST_EXPORTS) \
9234 for flag in $(EXTRA_HOST_FLAGS) ; do \
9235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9236 done; \
22121df0 9237 echo "Doing clean in flex"; \
a90ef4bf 9238 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9241 "RANLIB=$${RANLIB}" \
9242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9243 clean) \
9244 || exit 1
9245
a90ef4bf 9246@endif flex
f9806fa5 9247
a90ef4bf
JM
9248.PHONY: maybe-distclean-flex distclean-flex
9249maybe-distclean-flex:
9250@if flex
9251maybe-distclean-flex: distclean-flex
f9806fa5 9252
a90ef4bf 9253distclean-flex:
f9806fa5 9254 @: $(MAKE); $(unstage)
a90ef4bf 9255 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9256 r=`${PWD_COMMAND}`; export r; \
9257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9258 $(HOST_EXPORTS) \
9259 for flag in $(EXTRA_HOST_FLAGS) ; do \
9260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9261 done; \
22121df0 9262 echo "Doing distclean in flex"; \
a90ef4bf 9263 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9266 "RANLIB=$${RANLIB}" \
9267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9268 distclean) \
9269 || exit 1
9270
a90ef4bf 9271@endif flex
f9806fa5 9272
a90ef4bf
JM
9273.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
9274maybe-maintainer-clean-flex:
9275@if flex
9276maybe-maintainer-clean-flex: maintainer-clean-flex
f9806fa5 9277
a90ef4bf 9278maintainer-clean-flex:
f9806fa5 9279 @: $(MAKE); $(unstage)
a90ef4bf 9280 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9281 r=`${PWD_COMMAND}`; export r; \
9282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9283 $(HOST_EXPORTS) \
9284 for flag in $(EXTRA_HOST_FLAGS) ; do \
9285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9286 done; \
22121df0 9287 echo "Doing maintainer-clean in flex"; \
a90ef4bf 9288 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9291 "RANLIB=$${RANLIB}" \
9292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9293 maintainer-clean) \
9294 || exit 1
9295
a90ef4bf 9296@endif flex
f9806fa5
DE
9297
9298
9299
a90ef4bf
JM
9300.PHONY: configure-gas maybe-configure-gas
9301maybe-configure-gas:
4f0ef2d8 9302@if gcc-bootstrap
a90ef4bf 9303configure-gas: stage_current
4f0ef2d8 9304@endif gcc-bootstrap
a90ef4bf
JM
9305@if gas
9306maybe-configure-gas: configure-gas
9307configure-gas:
c52c6897 9308 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9310 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
22121df0 9311 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
1f53ca9a 9312 $(HOST_EXPORTS) \
a90ef4bf
JM
9313 echo Configuring in $(HOST_SUBDIR)/gas; \
9314 cd "$(HOST_SUBDIR)/gas" || exit 1; \
4fa63067 9315 case $(srcdir) in \
b00612cc 9316 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9317 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
b00612cc 9318 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 9319 esac; \
1b6c0831
L
9320 module_srcdir=gas; \
9321 $(SHELL) \
9322 $$s/$$module_srcdir/configure \
9323 --srcdir=$${topdir}/$$module_srcdir \
4b900473 9324 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9325 --target=${target_alias} \
4fa63067 9326 || exit 1
a90ef4bf 9327@endif gas
a7254363 9328
d545f33b
PB
9329
9330
a90ef4bf
JM
9331.PHONY: configure-stage1-gas maybe-configure-stage1-gas
9332maybe-configure-stage1-gas:
9333@if gas-bootstrap
9334maybe-configure-stage1-gas: configure-stage1-gas
9335configure-stage1-gas:
9336 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9337 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9338 @r=`${PWD_COMMAND}`; export r; \
9339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9340 TFLAGS="$(STAGE1_TFLAGS)"; \
9341 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9342 $(HOST_EXPORTS) \
9343 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
9344 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
9345 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
9346 echo Configuring stage 1 in $(HOST_SUBDIR)/gas; \
9347 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9348 cd $(HOST_SUBDIR)/gas || exit 1; \
9349 case $(srcdir) in \
9350 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9351 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9352 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9353 esac; \
1b6c0831
L
9354 module_srcdir=gas; \
9355 $(SHELL) $$s/$$module_srcdir/configure \
9356 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9357 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9358 --target=${target_alias} \
9359 \
a90ef4bf
JM
9360 $(STAGE1_CONFIGURE_FLAGS)
9361@endif gas-bootstrap
4fa63067 9362
a90ef4bf
JM
9363.PHONY: configure-stage2-gas maybe-configure-stage2-gas
9364maybe-configure-stage2-gas:
9365@if gas-bootstrap
9366maybe-configure-stage2-gas: configure-stage2-gas
9367configure-stage2-gas:
9368 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9369 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9370 @r=`${PWD_COMMAND}`; export r; \
9371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9372 TFLAGS="$(STAGE2_TFLAGS)"; \
9373 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9374 $(HOST_EXPORTS) \
a90ef4bf
JM
9375 $(POSTSTAGE1_HOST_EXPORTS) \
9376 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
9377 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
9378 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9379 echo Configuring stage 2 in $(HOST_SUBDIR)/gas; \
9380 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9381 cd $(HOST_SUBDIR)/gas || exit 1; \
9382 case $(srcdir) in \
9383 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9384 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9385 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9386 esac; \
1b6c0831
L
9387 module_srcdir=gas; \
9388 $(SHELL) $$s/$$module_srcdir/configure \
9389 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9390 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9391 --target=${target_alias} \
22121df0 9392 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9393 $(STAGE2_CONFIGURE_FLAGS)
9394@endif gas-bootstrap
4fa63067 9395
a90ef4bf
JM
9396.PHONY: configure-stage3-gas maybe-configure-stage3-gas
9397maybe-configure-stage3-gas:
9398@if gas-bootstrap
9399maybe-configure-stage3-gas: configure-stage3-gas
9400configure-stage3-gas:
9401 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9402 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9403 @r=`${PWD_COMMAND}`; export r; \
9404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9405 TFLAGS="$(STAGE3_TFLAGS)"; \
9406 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9407 $(HOST_EXPORTS) \
a90ef4bf
JM
9408 $(POSTSTAGE1_HOST_EXPORTS) \
9409 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
9410 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
9411 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9412 echo Configuring stage 3 in $(HOST_SUBDIR)/gas; \
9413 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9414 cd $(HOST_SUBDIR)/gas || exit 1; \
9415 case $(srcdir) in \
9416 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9417 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9418 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9419 esac; \
1b6c0831
L
9420 module_srcdir=gas; \
9421 $(SHELL) $$s/$$module_srcdir/configure \
9422 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9423 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9424 --target=${target_alias} \
22121df0 9425 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9426 $(STAGE3_CONFIGURE_FLAGS)
9427@endif gas-bootstrap
9b980aa1 9428
a90ef4bf
JM
9429.PHONY: configure-stage4-gas maybe-configure-stage4-gas
9430maybe-configure-stage4-gas:
9431@if gas-bootstrap
9432maybe-configure-stage4-gas: configure-stage4-gas
9433configure-stage4-gas:
9434 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9435 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9b980aa1
RW
9436 @r=`${PWD_COMMAND}`; export r; \
9437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9438 TFLAGS="$(STAGE4_TFLAGS)"; \
9439 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9b980aa1 9440 $(HOST_EXPORTS) \
a90ef4bf
JM
9441 $(POSTSTAGE1_HOST_EXPORTS) \
9442 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
9443 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
9444 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9445 echo Configuring stage 4 in $(HOST_SUBDIR)/gas; \
9446 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9447 cd $(HOST_SUBDIR)/gas || exit 1; \
9448 case $(srcdir) in \
9449 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9450 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9451 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9452 esac; \
1b6c0831
L
9453 module_srcdir=gas; \
9454 $(SHELL) $$s/$$module_srcdir/configure \
9455 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9456 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9457 --target=${target_alias} \
22121df0 9458 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9459 $(STAGE4_CONFIGURE_FLAGS)
9460@endif gas-bootstrap
4fa63067 9461
a90ef4bf
JM
9462.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
9463maybe-configure-stageprofile-gas:
9464@if gas-bootstrap
9465maybe-configure-stageprofile-gas: configure-stageprofile-gas
9466configure-stageprofile-gas:
9467 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9468 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9469 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9471 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9472 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9473 $(HOST_EXPORTS) \
a90ef4bf
JM
9474 $(POSTSTAGE1_HOST_EXPORTS) \
9475 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
9476 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
9477 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9478 echo Configuring stage profile in $(HOST_SUBDIR)/gas; \
9479 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9480 cd $(HOST_SUBDIR)/gas || exit 1; \
9481 case $(srcdir) in \
9482 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9483 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9484 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9485 esac; \
1b6c0831
L
9486 module_srcdir=gas; \
9487 $(SHELL) $$s/$$module_srcdir/configure \
9488 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9489 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9490 --target=${target_alias} \
22121df0 9491 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9492 $(STAGEprofile_CONFIGURE_FLAGS)
9493@endif gas-bootstrap
2a4cbe27 9494
a90ef4bf
JM
9495.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
9496maybe-configure-stagefeedback-gas:
9497@if gas-bootstrap
9498maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
9499configure-stagefeedback-gas:
9500 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9501 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9502 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9504 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9505 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9506 $(HOST_EXPORTS) \
a90ef4bf
JM
9507 $(POSTSTAGE1_HOST_EXPORTS) \
9508 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9509 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9510 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9511 echo Configuring stage feedback in $(HOST_SUBDIR)/gas; \
9512 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9513 cd $(HOST_SUBDIR)/gas || exit 1; \
9514 case $(srcdir) in \
9515 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9516 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9517 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9518 esac; \
1b6c0831
L
9519 module_srcdir=gas; \
9520 $(SHELL) $$s/$$module_srcdir/configure \
9521 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9522 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9523 --target=${target_alias} \
22121df0 9524 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9525 $(STAGEfeedback_CONFIGURE_FLAGS)
9526@endif gas-bootstrap
2a4cbe27 9527
56a8fe78 9528
56a8fe78 9529
56a8fe78 9530
6d389afc 9531
a90ef4bf
JM
9532.PHONY: all-gas maybe-all-gas
9533maybe-all-gas:
9534@if gcc-bootstrap
9535all-gas: stage_current
9536@endif gcc-bootstrap
9537@if gas
9538TARGET-gas=all
9539maybe-all-gas: all-gas
9540all-gas: configure-gas
9541 @r=`${PWD_COMMAND}`; export r; \
6d389afc 9542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9543 $(HOST_EXPORTS) \
9544 (cd $(HOST_SUBDIR)/gas && \
b3676d82 9545 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9546 $(TARGET-gas))
9547@endif gas
6d389afc 9548
6d389afc 9549
2a4cbe27 9550
a90ef4bf
JM
9551.PHONY: all-stage1-gas maybe-all-stage1-gas
9552.PHONY: clean-stage1-gas maybe-clean-stage1-gas
9553maybe-all-stage1-gas:
9554maybe-clean-stage1-gas:
9555@if gas-bootstrap
9556maybe-all-stage1-gas: all-stage1-gas
9557all-stage1: all-stage1-gas
9558TARGET-stage1-gas = $(TARGET-gas)
9559all-stage1-gas: configure-stage1-gas
9560 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9561 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9563 TFLAGS="$(STAGE1_TFLAGS)"; \
9564 $(HOST_EXPORTS) \
9565 cd $(HOST_SUBDIR)/gas && \
9566 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9567 CFLAGS="$(STAGE1_CFLAGS)" \
9568 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9569 LIBCFLAGS="$(LIBCFLAGS)" \
9570 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9571 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9572 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
9573 $(EXTRA_HOST_FLAGS) \
9574 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9575 TFLAGS="$(STAGE1_TFLAGS)" \
9576 $(TARGET-stage1-gas)
2a4cbe27 9577
a90ef4bf
JM
9578maybe-clean-stage1-gas: clean-stage1-gas
9579clean-stage1: clean-stage1-gas
9580clean-stage1-gas:
9581 @if [ $(current_stage) = stage1 ]; then \
9582 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9583 else \
9584 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
9585 $(MAKE) stage1-start; \
9586 fi; \
9587 cd $(HOST_SUBDIR)/gas && \
9588 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 9589 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9590@endif gas-bootstrap
2a4cbe27 9591
2a4cbe27 9592
a90ef4bf
JM
9593.PHONY: all-stage2-gas maybe-all-stage2-gas
9594.PHONY: clean-stage2-gas maybe-clean-stage2-gas
9595maybe-all-stage2-gas:
9596maybe-clean-stage2-gas:
9597@if gas-bootstrap
9598maybe-all-stage2-gas: all-stage2-gas
9599all-stage2: all-stage2-gas
9600TARGET-stage2-gas = $(TARGET-gas)
9601all-stage2-gas: configure-stage2-gas
9602 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9603 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9605 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 9606 $(HOST_EXPORTS) \
a90ef4bf
JM
9607 $(POSTSTAGE1_HOST_EXPORTS) \
9608 cd $(HOST_SUBDIR)/gas && \
9609 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9610 CFLAGS="$(STAGE2_CFLAGS)" \
9611 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9612 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9613 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9614 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9615 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9616 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9617 TFLAGS="$(STAGE2_TFLAGS)" \
9618 $(TARGET-stage2-gas)
2a4cbe27 9619
a90ef4bf
JM
9620maybe-clean-stage2-gas: clean-stage2-gas
9621clean-stage2: clean-stage2-gas
9622clean-stage2-gas:
9623 @if [ $(current_stage) = stage2 ]; then \
9624 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9625 else \
9626 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
9627 $(MAKE) stage2-start; \
9628 fi; \
9629 cd $(HOST_SUBDIR)/gas && \
b3676d82 9630 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9631@endif gas-bootstrap
2a4cbe27 9632
2a4cbe27 9633
a90ef4bf
JM
9634.PHONY: all-stage3-gas maybe-all-stage3-gas
9635.PHONY: clean-stage3-gas maybe-clean-stage3-gas
9636maybe-all-stage3-gas:
9637maybe-clean-stage3-gas:
9638@if gas-bootstrap
9639maybe-all-stage3-gas: all-stage3-gas
9640all-stage3: all-stage3-gas
9641TARGET-stage3-gas = $(TARGET-gas)
9642all-stage3-gas: configure-stage3-gas
9643 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9644 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9646 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 9647 $(HOST_EXPORTS) \
a90ef4bf
JM
9648 $(POSTSTAGE1_HOST_EXPORTS) \
9649 cd $(HOST_SUBDIR)/gas && \
9650 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9651 CFLAGS="$(STAGE3_CFLAGS)" \
9652 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9653 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9654 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9655 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9656 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9657 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9658 TFLAGS="$(STAGE3_TFLAGS)" \
9659 $(TARGET-stage3-gas)
2a4cbe27 9660
a90ef4bf
JM
9661maybe-clean-stage3-gas: clean-stage3-gas
9662clean-stage3: clean-stage3-gas
9663clean-stage3-gas:
9664 @if [ $(current_stage) = stage3 ]; then \
9665 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9666 else \
9667 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
9668 $(MAKE) stage3-start; \
9669 fi; \
9670 cd $(HOST_SUBDIR)/gas && \
b3676d82 9671 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9672@endif gas-bootstrap
2a4cbe27 9673
2a4cbe27 9674
a90ef4bf
JM
9675.PHONY: all-stage4-gas maybe-all-stage4-gas
9676.PHONY: clean-stage4-gas maybe-clean-stage4-gas
9677maybe-all-stage4-gas:
9678maybe-clean-stage4-gas:
9679@if gas-bootstrap
9680maybe-all-stage4-gas: all-stage4-gas
9681all-stage4: all-stage4-gas
9682TARGET-stage4-gas = $(TARGET-gas)
9683all-stage4-gas: configure-stage4-gas
9684 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9685 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9687 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 9688 $(HOST_EXPORTS) \
a90ef4bf
JM
9689 $(POSTSTAGE1_HOST_EXPORTS) \
9690 cd $(HOST_SUBDIR)/gas && \
9691 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9692 CFLAGS="$(STAGE4_CFLAGS)" \
9693 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9694 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9695 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9696 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9697 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9698 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9699 TFLAGS="$(STAGE4_TFLAGS)" \
9700 $(TARGET-stage4-gas)
2a4cbe27 9701
a90ef4bf
JM
9702maybe-clean-stage4-gas: clean-stage4-gas
9703clean-stage4: clean-stage4-gas
9704clean-stage4-gas:
9705 @if [ $(current_stage) = stage4 ]; then \
9706 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9707 else \
9708 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
9709 $(MAKE) stage4-start; \
9710 fi; \
9711 cd $(HOST_SUBDIR)/gas && \
b3676d82 9712 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9713@endif gas-bootstrap
2a4cbe27 9714
2a4cbe27 9715
a90ef4bf
JM
9716.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
9717.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9718maybe-all-stageprofile-gas:
9719maybe-clean-stageprofile-gas:
9720@if gas-bootstrap
9721maybe-all-stageprofile-gas: all-stageprofile-gas
9722all-stageprofile: all-stageprofile-gas
9723TARGET-stageprofile-gas = $(TARGET-gas)
9724all-stageprofile-gas: configure-stageprofile-gas
9725 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9726 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9728 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 9729 $(HOST_EXPORTS) \
a90ef4bf
JM
9730 $(POSTSTAGE1_HOST_EXPORTS) \
9731 cd $(HOST_SUBDIR)/gas && \
9732 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9733 CFLAGS="$(STAGEprofile_CFLAGS)" \
9734 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9735 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9736 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9737 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9738 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9739 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9740 TFLAGS="$(STAGEprofile_TFLAGS)" \
9741 $(TARGET-stageprofile-gas)
4fa63067 9742
a90ef4bf
JM
9743maybe-clean-stageprofile-gas: clean-stageprofile-gas
9744clean-stageprofile: clean-stageprofile-gas
9745clean-stageprofile-gas:
9746 @if [ $(current_stage) = stageprofile ]; then \
9747 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9748 else \
9749 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
9750 $(MAKE) stageprofile-start; \
9751 fi; \
9752 cd $(HOST_SUBDIR)/gas && \
b3676d82 9753 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9754@endif gas-bootstrap
4fa63067 9755
a7254363 9756
a90ef4bf
JM
9757.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
9758.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9759maybe-all-stagefeedback-gas:
9760maybe-clean-stagefeedback-gas:
9761@if gas-bootstrap
9762maybe-all-stagefeedback-gas: all-stagefeedback-gas
9763all-stagefeedback: all-stagefeedback-gas
9764TARGET-stagefeedback-gas = $(TARGET-gas)
9765all-stagefeedback-gas: configure-stagefeedback-gas
9766 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 9767 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9769 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9770 $(HOST_EXPORTS) \
9771 $(POSTSTAGE1_HOST_EXPORTS) \
9772 cd $(HOST_SUBDIR)/gas && \
9773 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9774 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9775 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9776 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9777 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9778 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9779 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9780 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9781 TFLAGS="$(STAGEfeedback_TFLAGS)" \
9782 $(TARGET-stagefeedback-gas)
d545f33b 9783
a90ef4bf
JM
9784maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
9785clean-stagefeedback: clean-stagefeedback-gas
9786clean-stagefeedback-gas:
9787 @if [ $(current_stage) = stagefeedback ]; then \
9788 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9789 else \
9790 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
9791 $(MAKE) stagefeedback-start; \
9792 fi; \
9793 cd $(HOST_SUBDIR)/gas && \
b3676d82 9794 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9795@endif gas-bootstrap
d545f33b 9796
2a4cbe27 9797
a7254363 9798
d545f33b
PB
9799
9800
a90ef4bf
JM
9801.PHONY: check-gas maybe-check-gas
9802maybe-check-gas:
9803@if gas
9804maybe-check-gas: check-gas
2a4cbe27 9805
a90ef4bf 9806check-gas:
0aed8855 9807 @: $(MAKE); $(unstage)
4fa63067 9808 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 9810 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 9811 (cd $(HOST_SUBDIR)/gas && \
f91ca6bc 9812 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 9813
a90ef4bf 9814@endif gas
2a4cbe27 9815
a90ef4bf
JM
9816.PHONY: install-gas maybe-install-gas
9817maybe-install-gas:
9818@if gas
9819maybe-install-gas: install-gas
2a4cbe27 9820
a90ef4bf 9821install-gas: installdirs
0aed8855 9822 @: $(MAKE); $(unstage)
4fa63067 9823 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9825 $(HOST_EXPORTS) \
a90ef4bf 9826 (cd $(HOST_SUBDIR)/gas && \
2da12f12 9827 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9828
a90ef4bf 9829@endif gas
2a4cbe27 9830
a90ef4bf
JM
9831.PHONY: install-strip-gas maybe-install-strip-gas
9832maybe-install-strip-gas:
9833@if gas
9834maybe-install-strip-gas: install-strip-gas
9b980aa1 9835
a90ef4bf 9836install-strip-gas: installdirs
9b980aa1
RW
9837 @: $(MAKE); $(unstage)
9838 @r=`${PWD_COMMAND}`; export r; \
9839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9840 $(HOST_EXPORTS) \
a90ef4bf 9841 (cd $(HOST_SUBDIR)/gas && \
9b980aa1
RW
9842 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9843
a90ef4bf 9844@endif gas
9b980aa1 9845
56a8fe78 9846# Other targets (info, dvi, pdf, etc.)
2a4cbe27 9847
a90ef4bf
JM
9848.PHONY: maybe-info-gas info-gas
9849maybe-info-gas:
9850@if gas
9851maybe-info-gas: info-gas
2a4cbe27 9852
a90ef4bf
JM
9853info-gas: \
9854 configure-gas
9855 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9856 r=`${PWD_COMMAND}`; export r; \
9857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9858 $(HOST_EXPORTS) \
b813574b 9859 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9861 done; \
22121df0 9862 echo "Doing info in gas"; \
a90ef4bf 9863 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9866 "RANLIB=$${RANLIB}" \
0c24b341 9867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9868 info) \
2a4cbe27
NN
9869 || exit 1
9870
a90ef4bf 9871@endif gas
2a4cbe27 9872
a90ef4bf
JM
9873.PHONY: maybe-dvi-gas dvi-gas
9874maybe-dvi-gas:
9875@if gas
9876maybe-dvi-gas: dvi-gas
2a4cbe27 9877
a90ef4bf
JM
9878dvi-gas: \
9879 configure-gas
9880 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9881 r=`${PWD_COMMAND}`; export r; \
9882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9883 $(HOST_EXPORTS) \
b813574b 9884 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9886 done; \
22121df0 9887 echo "Doing dvi in gas"; \
a90ef4bf 9888 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9891 "RANLIB=$${RANLIB}" \
0c24b341 9892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9893 dvi) \
2a4cbe27
NN
9894 || exit 1
9895
a90ef4bf 9896@endif gas
2a4cbe27 9897
a90ef4bf
JM
9898.PHONY: maybe-pdf-gas pdf-gas
9899maybe-pdf-gas:
9900@if gas
9901maybe-pdf-gas: pdf-gas
56a8fe78 9902
a90ef4bf
JM
9903pdf-gas: \
9904 configure-gas
9905 @[ -f ./gas/Makefile ] || exit 0; \
56a8fe78
DD
9906 r=`${PWD_COMMAND}`; export r; \
9907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9908 $(HOST_EXPORTS) \
9909 for flag in $(EXTRA_HOST_FLAGS) ; do \
9910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9911 done; \
22121df0 9912 echo "Doing pdf in gas"; \
a90ef4bf 9913 (cd $(HOST_SUBDIR)/gas && \
56a8fe78
DD
9914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9916 "RANLIB=$${RANLIB}" \
0c24b341 9917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
9918 pdf) \
9919 || exit 1
9920
a90ef4bf 9921@endif gas
56a8fe78 9922
a90ef4bf
JM
9923.PHONY: maybe-html-gas html-gas
9924maybe-html-gas:
9925@if gas
9926maybe-html-gas: html-gas
6d389afc 9927
a90ef4bf
JM
9928html-gas: \
9929 configure-gas
9930 @[ -f ./gas/Makefile ] || exit 0; \
6d389afc
MS
9931 r=`${PWD_COMMAND}`; export r; \
9932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
9933 $(HOST_EXPORTS) \
9934 for flag in $(EXTRA_HOST_FLAGS) ; do \
9935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9936 done; \
22121df0 9937 echo "Doing html in gas"; \
a90ef4bf 9938 (cd $(HOST_SUBDIR)/gas && \
6d389afc
MS
9939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9941 "RANLIB=$${RANLIB}" \
0c24b341 9942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
9943 html) \
9944 || exit 1
9945
a90ef4bf 9946@endif gas
6d389afc 9947
a90ef4bf
JM
9948.PHONY: maybe-TAGS-gas TAGS-gas
9949maybe-TAGS-gas:
9950@if gas
9951maybe-TAGS-gas: TAGS-gas
2a4cbe27 9952
a90ef4bf
JM
9953TAGS-gas: \
9954 configure-gas
9955 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9956 r=`${PWD_COMMAND}`; export r; \
9957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9958 $(HOST_EXPORTS) \
b813574b 9959 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9961 done; \
22121df0 9962 echo "Doing TAGS in gas"; \
a90ef4bf 9963 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9966 "RANLIB=$${RANLIB}" \
0c24b341 9967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9968 TAGS) \
2a4cbe27
NN
9969 || exit 1
9970
a90ef4bf 9971@endif gas
2a4cbe27 9972
a90ef4bf
JM
9973.PHONY: maybe-install-info-gas install-info-gas
9974maybe-install-info-gas:
9975@if gas
9976maybe-install-info-gas: install-info-gas
2a4cbe27 9977
a90ef4bf
JM
9978install-info-gas: \
9979 configure-gas \
9980 info-gas
9981 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9982 r=`${PWD_COMMAND}`; export r; \
9983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9984 $(HOST_EXPORTS) \
b813574b 9985 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9987 done; \
22121df0 9988 echo "Doing install-info in gas"; \
a90ef4bf 9989 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9992 "RANLIB=$${RANLIB}" \
0c24b341 9993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9994 install-info) \
2a4cbe27
NN
9995 || exit 1
9996
a90ef4bf 9997@endif gas
2a4cbe27 9998
a90ef4bf
JM
9999.PHONY: maybe-install-pdf-gas install-pdf-gas
10000maybe-install-pdf-gas:
10001@if gas
10002maybe-install-pdf-gas: install-pdf-gas
a3ca38d2 10003
a90ef4bf
JM
10004install-pdf-gas: \
10005 configure-gas \
10006 pdf-gas
10007 @[ -f ./gas/Makefile ] || exit 0; \
a3ca38d2
DD
10008 r=`${PWD_COMMAND}`; export r; \
10009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10010 $(HOST_EXPORTS) \
10011 for flag in $(EXTRA_HOST_FLAGS) ; do \
10012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10013 done; \
22121df0 10014 echo "Doing install-pdf in gas"; \
a90ef4bf 10015 (cd $(HOST_SUBDIR)/gas && \
a3ca38d2
DD
10016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10018 "RANLIB=$${RANLIB}" \
0c24b341 10019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10020 install-pdf) \
10021 || exit 1
10022
a90ef4bf 10023@endif gas
a3ca38d2 10024
a90ef4bf
JM
10025.PHONY: maybe-install-html-gas install-html-gas
10026maybe-install-html-gas:
10027@if gas
10028maybe-install-html-gas: install-html-gas
108a6f8e 10029
a90ef4bf
JM
10030install-html-gas: \
10031 configure-gas \
10032 html-gas
10033 @[ -f ./gas/Makefile ] || exit 0; \
108a6f8e
CD
10034 r=`${PWD_COMMAND}`; export r; \
10035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10036 $(HOST_EXPORTS) \
10037 for flag in $(EXTRA_HOST_FLAGS) ; do \
10038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10039 done; \
22121df0 10040 echo "Doing install-html in gas"; \
a90ef4bf 10041 (cd $(HOST_SUBDIR)/gas && \
108a6f8e
CD
10042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10044 "RANLIB=$${RANLIB}" \
0c24b341 10045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10046 install-html) \
10047 || exit 1
10048
a90ef4bf 10049@endif gas
108a6f8e 10050
a90ef4bf
JM
10051.PHONY: maybe-installcheck-gas installcheck-gas
10052maybe-installcheck-gas:
10053@if gas
10054maybe-installcheck-gas: installcheck-gas
2a4cbe27 10055
a90ef4bf
JM
10056installcheck-gas: \
10057 configure-gas
10058 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10059 r=`${PWD_COMMAND}`; export r; \
10060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10061 $(HOST_EXPORTS) \
b813574b 10062 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10064 done; \
22121df0 10065 echo "Doing installcheck in gas"; \
a90ef4bf 10066 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10069 "RANLIB=$${RANLIB}" \
0c24b341 10070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10071 installcheck) \
2a4cbe27
NN
10072 || exit 1
10073
a90ef4bf 10074@endif gas
2a4cbe27 10075
a90ef4bf
JM
10076.PHONY: maybe-mostlyclean-gas mostlyclean-gas
10077maybe-mostlyclean-gas:
10078@if gas
10079maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 10080
a90ef4bf
JM
10081mostlyclean-gas:
10082 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10083 r=`${PWD_COMMAND}`; export r; \
10084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10085 $(HOST_EXPORTS) \
b813574b 10086 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10088 done; \
22121df0 10089 echo "Doing mostlyclean in gas"; \
a90ef4bf 10090 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10093 "RANLIB=$${RANLIB}" \
0c24b341 10094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10095 mostlyclean) \
2a4cbe27
NN
10096 || exit 1
10097
a90ef4bf 10098@endif gas
2a4cbe27 10099
a90ef4bf
JM
10100.PHONY: maybe-clean-gas clean-gas
10101maybe-clean-gas:
10102@if gas
10103maybe-clean-gas: clean-gas
2a4cbe27 10104
a90ef4bf
JM
10105clean-gas:
10106 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10107 r=`${PWD_COMMAND}`; export r; \
10108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10109 $(HOST_EXPORTS) \
b813574b 10110 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10112 done; \
22121df0 10113 echo "Doing clean in gas"; \
a90ef4bf 10114 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10117 "RANLIB=$${RANLIB}" \
0c24b341 10118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10119 clean) \
2a4cbe27
NN
10120 || exit 1
10121
a90ef4bf 10122@endif gas
2a4cbe27 10123
a90ef4bf
JM
10124.PHONY: maybe-distclean-gas distclean-gas
10125maybe-distclean-gas:
10126@if gas
10127maybe-distclean-gas: distclean-gas
2a4cbe27 10128
a90ef4bf
JM
10129distclean-gas:
10130 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10131 r=`${PWD_COMMAND}`; export r; \
10132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10133 $(HOST_EXPORTS) \
b813574b 10134 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10136 done; \
22121df0 10137 echo "Doing distclean in gas"; \
a90ef4bf 10138 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10141 "RANLIB=$${RANLIB}" \
0c24b341 10142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10143 distclean) \
2a4cbe27
NN
10144 || exit 1
10145
a90ef4bf 10146@endif gas
2a4cbe27 10147
a90ef4bf
JM
10148.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
10149maybe-maintainer-clean-gas:
10150@if gas
10151maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 10152
a90ef4bf
JM
10153maintainer-clean-gas:
10154 @[ -f ./gas/Makefile ] || exit 0; \
10155 r=`${PWD_COMMAND}`; export r; \
b40e3958 10156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10157 $(HOST_EXPORTS) \
b813574b 10158 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10160 done; \
22121df0 10161 echo "Doing maintainer-clean in gas"; \
a90ef4bf 10162 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10165 "RANLIB=$${RANLIB}" \
0c24b341 10166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10167 maintainer-clean) \
2a4cbe27
NN
10168 || exit 1
10169
a90ef4bf 10170@endif gas
2a4cbe27 10171
2a4cbe27 10172
a7254363 10173
a90ef4bf
JM
10174.PHONY: configure-gcc maybe-configure-gcc
10175maybe-configure-gcc:
4f0ef2d8 10176@if gcc-bootstrap
a90ef4bf 10177configure-gcc: stage_current
4f0ef2d8 10178@endif gcc-bootstrap
a90ef4bf
JM
10179@if gcc
10180maybe-configure-gcc: configure-gcc
10181configure-gcc:
c52c6897 10182 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10184 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
22121df0 10185 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
1f53ca9a 10186 $(HOST_EXPORTS) \
a90ef4bf
JM
10187 echo Configuring in $(HOST_SUBDIR)/gcc; \
10188 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
4fa63067 10189 case $(srcdir) in \
b00612cc 10190 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 10191 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
b00612cc 10192 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 10193 esac; \
1b6c0831
L
10194 module_srcdir=gcc; \
10195 $(SHELL) \
10196 $$s/$$module_srcdir/configure \
10197 --srcdir=$${topdir}/$$module_srcdir \
4b900473 10198 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10199 --target=${target_alias} \
4fa63067 10200 || exit 1
a90ef4bf 10201@endif gcc
a7254363 10202
d545f33b
PB
10203
10204
a90ef4bf
JM
10205.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
10206maybe-configure-stage1-gcc:
4f0ef2d8 10207@if gcc-bootstrap
a90ef4bf
JM
10208maybe-configure-stage1-gcc: configure-stage1-gcc
10209configure-stage1-gcc:
10210 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10211 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067
NN
10212 @r=`${PWD_COMMAND}`; export r; \
10213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10214 TFLAGS="$(STAGE1_TFLAGS)"; \
10215 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
10216 $(HOST_EXPORTS) \
10217 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10218 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10219 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
10220 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc; \
10221 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10222 cd $(HOST_SUBDIR)/gcc || exit 1; \
10223 case $(srcdir) in \
10224 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10225 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10226 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10227 esac; \
1b6c0831
L
10228 module_srcdir=gcc; \
10229 $(SHELL) $$s/$$module_srcdir/configure \
10230 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10231 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10232 --target=${target_alias} \
10233 \
a90ef4bf
JM
10234 $(STAGE1_CONFIGURE_FLAGS)
10235@endif gcc-bootstrap
4fa63067 10236
a90ef4bf
JM
10237.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
10238maybe-configure-stage2-gcc:
10239@if gcc-bootstrap
10240maybe-configure-stage2-gcc: configure-stage2-gcc
10241configure-stage2-gcc:
10242 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10243 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067 10244 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10246 TFLAGS="$(STAGE2_TFLAGS)"; \
10247 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10248 $(HOST_EXPORTS) \
a90ef4bf
JM
10249 $(POSTSTAGE1_HOST_EXPORTS) \
10250 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10251 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10252 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10253 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc; \
10254 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10255 cd $(HOST_SUBDIR)/gcc || exit 1; \
10256 case $(srcdir) in \
10257 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10258 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10259 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10260 esac; \
1b6c0831
L
10261 module_srcdir=gcc; \
10262 $(SHELL) $$s/$$module_srcdir/configure \
10263 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10264 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10265 --target=${target_alias} \
22121df0 10266 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10267 $(STAGE2_CONFIGURE_FLAGS)
10268@endif gcc-bootstrap
9b980aa1 10269
a90ef4bf
JM
10270.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
10271maybe-configure-stage3-gcc:
10272@if gcc-bootstrap
10273maybe-configure-stage3-gcc: configure-stage3-gcc
10274configure-stage3-gcc:
10275 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10276 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9b980aa1
RW
10277 @r=`${PWD_COMMAND}`; export r; \
10278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10279 TFLAGS="$(STAGE3_TFLAGS)"; \
10280 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9b980aa1 10281 $(HOST_EXPORTS) \
a90ef4bf
JM
10282 $(POSTSTAGE1_HOST_EXPORTS) \
10283 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10284 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10285 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10286 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc; \
10287 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10288 cd $(HOST_SUBDIR)/gcc || exit 1; \
10289 case $(srcdir) in \
10290 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10291 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10292 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10293 esac; \
1b6c0831
L
10294 module_srcdir=gcc; \
10295 $(SHELL) $$s/$$module_srcdir/configure \
10296 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10297 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10298 --target=${target_alias} \
22121df0 10299 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10300 $(STAGE3_CONFIGURE_FLAGS)
10301@endif gcc-bootstrap
4fa63067 10302
a90ef4bf
JM
10303.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
10304maybe-configure-stage4-gcc:
10305@if gcc-bootstrap
10306maybe-configure-stage4-gcc: configure-stage4-gcc
10307configure-stage4-gcc:
10308 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10309 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10310 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10312 TFLAGS="$(STAGE4_TFLAGS)"; \
10313 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10314 $(HOST_EXPORTS) \
a90ef4bf
JM
10315 $(POSTSTAGE1_HOST_EXPORTS) \
10316 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10317 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10318 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10319 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc; \
10320 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10321 cd $(HOST_SUBDIR)/gcc || exit 1; \
10322 case $(srcdir) in \
10323 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10324 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10325 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10326 esac; \
1b6c0831
L
10327 module_srcdir=gcc; \
10328 $(SHELL) $$s/$$module_srcdir/configure \
10329 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10330 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10331 --target=${target_alias} \
22121df0 10332 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10333 $(STAGE4_CONFIGURE_FLAGS)
10334@endif gcc-bootstrap
2a4cbe27 10335
a90ef4bf
JM
10336.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
10337maybe-configure-stageprofile-gcc:
10338@if gcc-bootstrap
10339maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
10340configure-stageprofile-gcc:
10341 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10342 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10343 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10345 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10346 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10347 $(HOST_EXPORTS) \
a90ef4bf
JM
10348 $(POSTSTAGE1_HOST_EXPORTS) \
10349 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10350 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10351 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10352 echo Configuring stage profile in $(HOST_SUBDIR)/gcc; \
10353 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10354 cd $(HOST_SUBDIR)/gcc || exit 1; \
10355 case $(srcdir) in \
10356 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10357 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10358 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10359 esac; \
1b6c0831
L
10360 module_srcdir=gcc; \
10361 $(SHELL) $$s/$$module_srcdir/configure \
10362 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10363 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10364 --target=${target_alias} \
22121df0 10365 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10366 $(STAGEprofile_CONFIGURE_FLAGS)
10367@endif gcc-bootstrap
56a8fe78 10368
a90ef4bf
JM
10369.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
10370maybe-configure-stagefeedback-gcc:
10371@if gcc-bootstrap
10372maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
10373configure-stagefeedback-gcc:
10374 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10375 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10376 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 10377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10378 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10379 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
56a8fe78 10380 $(HOST_EXPORTS) \
a90ef4bf
JM
10381 $(POSTSTAGE1_HOST_EXPORTS) \
10382 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10383 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10384 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10385 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc; \
10386 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10387 cd $(HOST_SUBDIR)/gcc || exit 1; \
10388 case $(srcdir) in \
10389 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10390 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10391 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10392 esac; \
1b6c0831
L
10393 module_srcdir=gcc; \
10394 $(SHELL) $$s/$$module_srcdir/configure \
10395 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10396 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10397 --target=${target_alias} \
22121df0 10398 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10399 $(STAGEfeedback_CONFIGURE_FLAGS)
10400@endif gcc-bootstrap
56a8fe78 10401
2a4cbe27 10402
2a4cbe27
NN
10403
10404
2a4cbe27 10405
a90ef4bf
JM
10406.PHONY: all-gcc maybe-all-gcc
10407maybe-all-gcc:
10408@if gcc-bootstrap
10409all-gcc: stage_current
10410@endif gcc-bootstrap
10411@if gcc
10412TARGET-gcc=all
10413maybe-all-gcc: all-gcc
10414all-gcc: configure-gcc
10415 @r=`${PWD_COMMAND}`; export r; \
6d389afc 10416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10417 $(HOST_EXPORTS) \
10418 (cd $(HOST_SUBDIR)/gcc && \
b3676d82 10419 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10420 $(TARGET-gcc))
10421@endif gcc
6d389afc 10422
6d389afc 10423
6d389afc 10424
a90ef4bf
JM
10425.PHONY: all-stage1-gcc maybe-all-stage1-gcc
10426.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
10427maybe-all-stage1-gcc:
10428maybe-clean-stage1-gcc:
10429@if gcc-bootstrap
10430maybe-all-stage1-gcc: all-stage1-gcc
10431all-stage1: all-stage1-gcc
10432TARGET-stage1-gcc = $(TARGET-gcc)
10433all-stage1-gcc: configure-stage1-gcc
10434 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10435 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10437 TFLAGS="$(STAGE1_TFLAGS)"; \
10438 $(HOST_EXPORTS) \
10439 cd $(HOST_SUBDIR)/gcc && \
10440 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10441 CFLAGS="$(STAGE1_CFLAGS)" \
10442 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10443 LIBCFLAGS="$(LIBCFLAGS)" \
10444 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10445 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10446 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
10447 $(EXTRA_HOST_FLAGS) \
10448 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10449 TFLAGS="$(STAGE1_TFLAGS)" \
10450 $(TARGET-stage1-gcc)
2a4cbe27 10451
a90ef4bf
JM
10452maybe-clean-stage1-gcc: clean-stage1-gcc
10453clean-stage1: clean-stage1-gcc
10454clean-stage1-gcc:
10455 @if [ $(current_stage) = stage1 ]; then \
10456 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10457 else \
10458 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
10459 $(MAKE) stage1-start; \
10460 fi; \
10461 cd $(HOST_SUBDIR)/gcc && \
10462 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 10463 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10464@endif gcc-bootstrap
2a4cbe27 10465
a3ca38d2 10466
a90ef4bf
JM
10467.PHONY: all-stage2-gcc maybe-all-stage2-gcc
10468.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
10469maybe-all-stage2-gcc:
10470maybe-clean-stage2-gcc:
10471@if gcc-bootstrap
10472maybe-all-stage2-gcc: all-stage2-gcc
10473all-stage2: all-stage2-gcc
10474TARGET-stage2-gcc = $(TARGET-gcc)
10475all-stage2-gcc: configure-stage2-gcc
10476 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10477 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 10478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10479 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 10480 $(HOST_EXPORTS) \
a90ef4bf
JM
10481 $(POSTSTAGE1_HOST_EXPORTS) \
10482 cd $(HOST_SUBDIR)/gcc && \
10483 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10484 CFLAGS="$(STAGE2_CFLAGS)" \
10485 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10486 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10487 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10488 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10489 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10490 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10491 TFLAGS="$(STAGE2_TFLAGS)" \
10492 $(TARGET-stage2-gcc)
a3ca38d2 10493
a90ef4bf
JM
10494maybe-clean-stage2-gcc: clean-stage2-gcc
10495clean-stage2: clean-stage2-gcc
10496clean-stage2-gcc:
10497 @if [ $(current_stage) = stage2 ]; then \
10498 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10499 else \
10500 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
10501 $(MAKE) stage2-start; \
10502 fi; \
10503 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10504 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10505@endif gcc-bootstrap
a3ca38d2 10506
108a6f8e 10507
a90ef4bf
JM
10508.PHONY: all-stage3-gcc maybe-all-stage3-gcc
10509.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
10510maybe-all-stage3-gcc:
10511maybe-clean-stage3-gcc:
10512@if gcc-bootstrap
10513maybe-all-stage3-gcc: all-stage3-gcc
10514all-stage3: all-stage3-gcc
10515TARGET-stage3-gcc = $(TARGET-gcc)
10516all-stage3-gcc: configure-stage3-gcc
10517 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10518 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 10519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10520 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 10521 $(HOST_EXPORTS) \
a90ef4bf
JM
10522 $(POSTSTAGE1_HOST_EXPORTS) \
10523 cd $(HOST_SUBDIR)/gcc && \
10524 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10525 CFLAGS="$(STAGE3_CFLAGS)" \
10526 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10527 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10528 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10529 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10530 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10531 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10532 TFLAGS="$(STAGE3_TFLAGS)" \
10533 $(TARGET-stage3-gcc)
108a6f8e 10534
a90ef4bf
JM
10535maybe-clean-stage3-gcc: clean-stage3-gcc
10536clean-stage3: clean-stage3-gcc
10537clean-stage3-gcc:
10538 @if [ $(current_stage) = stage3 ]; then \
10539 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10540 else \
10541 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
10542 $(MAKE) stage3-start; \
10543 fi; \
10544 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10545 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10546@endif gcc-bootstrap
108a6f8e 10547
2a4cbe27 10548
a90ef4bf
JM
10549.PHONY: all-stage4-gcc maybe-all-stage4-gcc
10550.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
10551maybe-all-stage4-gcc:
10552maybe-clean-stage4-gcc:
10553@if gcc-bootstrap
10554maybe-all-stage4-gcc: all-stage4-gcc
10555all-stage4: all-stage4-gcc
10556TARGET-stage4-gcc = $(TARGET-gcc)
10557all-stage4-gcc: configure-stage4-gcc
10558 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10559 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10561 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 10562 $(HOST_EXPORTS) \
a90ef4bf
JM
10563 $(POSTSTAGE1_HOST_EXPORTS) \
10564 cd $(HOST_SUBDIR)/gcc && \
10565 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10566 CFLAGS="$(STAGE4_CFLAGS)" \
10567 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10568 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10569 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10570 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10571 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10572 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10573 TFLAGS="$(STAGE4_TFLAGS)" \
10574 $(TARGET-stage4-gcc)
2a4cbe27 10575
a90ef4bf
JM
10576maybe-clean-stage4-gcc: clean-stage4-gcc
10577clean-stage4: clean-stage4-gcc
10578clean-stage4-gcc:
10579 @if [ $(current_stage) = stage4 ]; then \
10580 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10581 else \
10582 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
10583 $(MAKE) stage4-start; \
10584 fi; \
10585 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10586 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10587@endif gcc-bootstrap
2a4cbe27 10588
a2592b1b 10589
a90ef4bf
JM
10590.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
10591.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
10592maybe-all-stageprofile-gcc:
10593maybe-clean-stageprofile-gcc:
10594@if gcc-bootstrap
10595maybe-all-stageprofile-gcc: all-stageprofile-gcc
10596all-stageprofile: all-stageprofile-gcc
10597TARGET-stageprofile-gcc = $(TARGET-gcc)
10598all-stageprofile-gcc: configure-stageprofile-gcc
10599 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10600 @r=`${PWD_COMMAND}`; export r; \
a2592b1b 10601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10602 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 10603 $(HOST_EXPORTS) \
a90ef4bf
JM
10604 $(POSTSTAGE1_HOST_EXPORTS) \
10605 cd $(HOST_SUBDIR)/gcc && \
10606 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10607 CFLAGS="$(STAGEprofile_CFLAGS)" \
10608 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10609 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10610 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10611 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10612 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10613 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10614 TFLAGS="$(STAGEprofile_TFLAGS)" \
10615 $(TARGET-stageprofile-gcc)
2a4cbe27 10616
a90ef4bf
JM
10617maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
10618clean-stageprofile: clean-stageprofile-gcc
10619clean-stageprofile-gcc:
10620 @if [ $(current_stage) = stageprofile ]; then \
10621 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10622 else \
10623 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
10624 $(MAKE) stageprofile-start; \
10625 fi; \
10626 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10627 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10628@endif gcc-bootstrap
2a4cbe27 10629
a7254363 10630
a90ef4bf
JM
10631.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
10632.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
10633maybe-all-stagefeedback-gcc:
10634maybe-clean-stagefeedback-gcc:
4f0ef2d8 10635@if gcc-bootstrap
a90ef4bf
JM
10636maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
10637all-stagefeedback: all-stagefeedback-gcc
10638TARGET-stagefeedback-gcc = $(TARGET-gcc)
10639all-stagefeedback-gcc: configure-stagefeedback-gcc
10640 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 10641 @r=`${PWD_COMMAND}`; export r; \
4fa63067 10642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10643 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10644 $(HOST_EXPORTS) \
10645 $(POSTSTAGE1_HOST_EXPORTS) \
10646 cd $(HOST_SUBDIR)/gcc && \
10647 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10648 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10649 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10650 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10651 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10652 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10653 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10654 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
10655 TFLAGS="$(STAGEfeedback_TFLAGS)" \
10656 $(TARGET-stagefeedback-gcc)
d545f33b 10657
a90ef4bf
JM
10658maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
10659clean-stagefeedback: clean-stagefeedback-gcc
10660clean-stagefeedback-gcc:
10661 @if [ $(current_stage) = stagefeedback ]; then \
10662 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10663 else \
10664 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
10665 $(MAKE) stagefeedback-start; \
10666 fi; \
10667 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10668 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
4f0ef2d8 10669@endif gcc-bootstrap
4fa63067 10670
a7254363 10671
d545f33b
PB
10672
10673
4fa63067 10674
a90ef4bf
JM
10675.PHONY: check-gcc maybe-check-gcc
10676maybe-check-gcc:
10677@if gcc
10678maybe-check-gcc: check-gcc
10679
10680check-gcc:
0aed8855 10681 @: $(MAKE); $(unstage)
4fa63067
NN
10682 @r=`${PWD_COMMAND}`; export r; \
10683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 10684 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 10685 (cd $(HOST_SUBDIR)/gcc && \
f91ca6bc 10686 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 10687
a90ef4bf 10688@endif gcc
4fa63067 10689
a90ef4bf
JM
10690.PHONY: install-gcc maybe-install-gcc
10691maybe-install-gcc:
10692@if gcc
10693maybe-install-gcc: install-gcc
4fa63067 10694
a90ef4bf 10695install-gcc: installdirs
0aed8855 10696 @: $(MAKE); $(unstage)
4fa63067
NN
10697 @r=`${PWD_COMMAND}`; export r; \
10698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10699 $(HOST_EXPORTS) \
a90ef4bf
JM
10700 (cd $(HOST_SUBDIR)/gcc && \
10701 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
4fa63067 10702
a90ef4bf 10703@endif gcc
4fa63067 10704
a90ef4bf
JM
10705.PHONY: install-strip-gcc maybe-install-strip-gcc
10706maybe-install-strip-gcc:
10707@if gcc
10708maybe-install-strip-gcc: install-strip-gcc
9b980aa1 10709
a90ef4bf 10710install-strip-gcc: installdirs
9b980aa1
RW
10711 @: $(MAKE); $(unstage)
10712 @r=`${PWD_COMMAND}`; export r; \
10713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10714 $(HOST_EXPORTS) \
a90ef4bf
JM
10715 (cd $(HOST_SUBDIR)/gcc && \
10716 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
9b980aa1 10717
a90ef4bf 10718@endif gcc
9b980aa1 10719
56a8fe78 10720# Other targets (info, dvi, pdf, etc.)
4fa63067 10721
a90ef4bf
JM
10722.PHONY: maybe-info-gcc info-gcc
10723maybe-info-gcc:
10724@if gcc
10725maybe-info-gcc: info-gcc
4fa63067 10726
a90ef4bf
JM
10727info-gcc: \
10728 configure-gcc
10729 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10730 r=`${PWD_COMMAND}`; export r; \
10731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10732 $(HOST_EXPORTS) \
a90ef4bf 10733 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10735 done; \
22121df0 10736 echo "Doing info in gcc"; \
a90ef4bf 10737 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10740 "RANLIB=$${RANLIB}" \
0c24b341 10741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10742 info) \
2a4cbe27
NN
10743 || exit 1
10744
a90ef4bf 10745@endif gcc
2a4cbe27 10746
a90ef4bf
JM
10747.PHONY: maybe-dvi-gcc dvi-gcc
10748maybe-dvi-gcc:
10749@if gcc
10750maybe-dvi-gcc: dvi-gcc
2a4cbe27 10751
a90ef4bf
JM
10752dvi-gcc: \
10753 configure-gcc
10754 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10755 r=`${PWD_COMMAND}`; export r; \
10756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10757 $(HOST_EXPORTS) \
a90ef4bf 10758 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10760 done; \
22121df0 10761 echo "Doing dvi in gcc"; \
a90ef4bf 10762 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10765 "RANLIB=$${RANLIB}" \
0c24b341 10766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10767 dvi) \
2a4cbe27
NN
10768 || exit 1
10769
a90ef4bf 10770@endif gcc
2a4cbe27 10771
a90ef4bf
JM
10772.PHONY: maybe-pdf-gcc pdf-gcc
10773maybe-pdf-gcc:
10774@if gcc
10775maybe-pdf-gcc: pdf-gcc
56a8fe78 10776
a90ef4bf
JM
10777pdf-gcc: \
10778 configure-gcc
10779 @[ -f ./gcc/Makefile ] || exit 0; \
56a8fe78
DD
10780 r=`${PWD_COMMAND}`; export r; \
10781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10782 $(HOST_EXPORTS) \
a90ef4bf 10783 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
56a8fe78
DD
10784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10785 done; \
22121df0 10786 echo "Doing pdf in gcc"; \
a90ef4bf 10787 (cd $(HOST_SUBDIR)/gcc && \
56a8fe78
DD
10788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10790 "RANLIB=$${RANLIB}" \
0c24b341 10791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
10792 pdf) \
10793 || exit 1
10794
a90ef4bf 10795@endif gcc
56a8fe78 10796
a90ef4bf
JM
10797.PHONY: maybe-html-gcc html-gcc
10798maybe-html-gcc:
10799@if gcc
10800maybe-html-gcc: html-gcc
6d389afc 10801
a90ef4bf
JM
10802html-gcc: \
10803 configure-gcc
10804 @[ -f ./gcc/Makefile ] || exit 0; \
6d389afc
MS
10805 r=`${PWD_COMMAND}`; export r; \
10806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 10807 $(HOST_EXPORTS) \
a90ef4bf 10808 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
6d389afc
MS
10809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10810 done; \
22121df0 10811 echo "Doing html in gcc"; \
a90ef4bf 10812 (cd $(HOST_SUBDIR)/gcc && \
6d389afc
MS
10813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10815 "RANLIB=$${RANLIB}" \
0c24b341 10816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10817 html) \
10818 || exit 1
10819
a90ef4bf 10820@endif gcc
6d389afc 10821
a90ef4bf
JM
10822.PHONY: maybe-TAGS-gcc TAGS-gcc
10823maybe-TAGS-gcc:
10824@if gcc
10825maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 10826
a90ef4bf
JM
10827TAGS-gcc: \
10828 configure-gcc
10829 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10830 r=`${PWD_COMMAND}`; export r; \
10831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10832 $(HOST_EXPORTS) \
a90ef4bf 10833 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10835 done; \
22121df0 10836 echo "Doing TAGS in gcc"; \
a90ef4bf 10837 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10840 "RANLIB=$${RANLIB}" \
0c24b341 10841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10842 TAGS) \
2a4cbe27
NN
10843 || exit 1
10844
a90ef4bf 10845@endif gcc
2a4cbe27 10846
a90ef4bf
JM
10847.PHONY: maybe-install-info-gcc install-info-gcc
10848maybe-install-info-gcc:
10849@if gcc
10850maybe-install-info-gcc: install-info-gcc
2a4cbe27 10851
a90ef4bf
JM
10852install-info-gcc: \
10853 configure-gcc \
10854 info-gcc
10855 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10856 r=`${PWD_COMMAND}`; export r; \
10857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10858 $(HOST_EXPORTS) \
a90ef4bf 10859 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10861 done; \
22121df0 10862 echo "Doing install-info in gcc"; \
a90ef4bf 10863 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10866 "RANLIB=$${RANLIB}" \
0c24b341 10867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10868 install-info) \
2a4cbe27
NN
10869 || exit 1
10870
a90ef4bf 10871@endif gcc
2a4cbe27 10872
a90ef4bf
JM
10873.PHONY: maybe-install-pdf-gcc install-pdf-gcc
10874maybe-install-pdf-gcc:
10875@if gcc
10876maybe-install-pdf-gcc: install-pdf-gcc
a3ca38d2 10877
a90ef4bf
JM
10878install-pdf-gcc: \
10879 configure-gcc \
10880 pdf-gcc
10881 @[ -f ./gcc/Makefile ] || exit 0; \
a3ca38d2
DD
10882 r=`${PWD_COMMAND}`; export r; \
10883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10884 $(HOST_EXPORTS) \
a90ef4bf 10885 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a3ca38d2
DD
10886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10887 done; \
22121df0 10888 echo "Doing install-pdf in gcc"; \
a90ef4bf 10889 (cd $(HOST_SUBDIR)/gcc && \
a3ca38d2
DD
10890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10892 "RANLIB=$${RANLIB}" \
0c24b341 10893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10894 install-pdf) \
10895 || exit 1
10896
a90ef4bf 10897@endif gcc
a3ca38d2 10898
a90ef4bf
JM
10899.PHONY: maybe-install-html-gcc install-html-gcc
10900maybe-install-html-gcc:
10901@if gcc
10902maybe-install-html-gcc: install-html-gcc
108a6f8e 10903
a90ef4bf
JM
10904install-html-gcc: \
10905 configure-gcc \
10906 html-gcc
10907 @[ -f ./gcc/Makefile ] || exit 0; \
108a6f8e
CD
10908 r=`${PWD_COMMAND}`; export r; \
10909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10910 $(HOST_EXPORTS) \
a90ef4bf 10911 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
108a6f8e
CD
10912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10913 done; \
22121df0 10914 echo "Doing install-html in gcc"; \
a90ef4bf 10915 (cd $(HOST_SUBDIR)/gcc && \
108a6f8e
CD
10916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10918 "RANLIB=$${RANLIB}" \
0c24b341 10919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10920 install-html) \
10921 || exit 1
10922
a90ef4bf 10923@endif gcc
108a6f8e 10924
a90ef4bf
JM
10925.PHONY: maybe-installcheck-gcc installcheck-gcc
10926maybe-installcheck-gcc:
10927@if gcc
10928maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 10929
a90ef4bf
JM
10930installcheck-gcc: \
10931 configure-gcc
10932 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10933 r=`${PWD_COMMAND}`; export r; \
10934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10935 $(HOST_EXPORTS) \
a90ef4bf 10936 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10938 done; \
22121df0 10939 echo "Doing installcheck in gcc"; \
a90ef4bf 10940 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10943 "RANLIB=$${RANLIB}" \
0c24b341 10944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10945 installcheck) \
2a4cbe27
NN
10946 || exit 1
10947
a90ef4bf 10948@endif gcc
2a4cbe27 10949
a90ef4bf
JM
10950.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
10951maybe-mostlyclean-gcc:
10952@if gcc
10953maybe-mostlyclean-gcc: mostlyclean-gcc
2a4cbe27 10954
a90ef4bf
JM
10955mostlyclean-gcc:
10956 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10957 r=`${PWD_COMMAND}`; export r; \
10958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10959 $(HOST_EXPORTS) \
a90ef4bf 10960 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10962 done; \
22121df0 10963 echo "Doing mostlyclean in gcc"; \
a90ef4bf 10964 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10967 "RANLIB=$${RANLIB}" \
0c24b341 10968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10969 mostlyclean) \
2a4cbe27
NN
10970 || exit 1
10971
a90ef4bf 10972@endif gcc
2a4cbe27 10973
a90ef4bf
JM
10974.PHONY: maybe-clean-gcc clean-gcc
10975maybe-clean-gcc:
10976@if gcc
10977maybe-clean-gcc: clean-gcc
2a4cbe27 10978
a90ef4bf
JM
10979clean-gcc:
10980 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10981 r=`${PWD_COMMAND}`; export r; \
10982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10983 $(HOST_EXPORTS) \
a90ef4bf 10984 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10986 done; \
22121df0 10987 echo "Doing clean in gcc"; \
a90ef4bf 10988 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10991 "RANLIB=$${RANLIB}" \
0c24b341 10992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10993 clean) \
2a4cbe27
NN
10994 || exit 1
10995
a90ef4bf 10996@endif gcc
2a4cbe27 10997
a90ef4bf
JM
10998.PHONY: maybe-distclean-gcc distclean-gcc
10999maybe-distclean-gcc:
11000@if gcc
11001maybe-distclean-gcc: distclean-gcc
2a4cbe27 11002
a90ef4bf
JM
11003distclean-gcc:
11004 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11005 r=`${PWD_COMMAND}`; export r; \
11006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11007 $(HOST_EXPORTS) \
a90ef4bf 11008 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11010 done; \
22121df0 11011 echo "Doing distclean in gcc"; \
a90ef4bf 11012 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11015 "RANLIB=$${RANLIB}" \
0c24b341 11016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11017 distclean) \
2a4cbe27
NN
11018 || exit 1
11019
a90ef4bf 11020@endif gcc
2a4cbe27 11021
a90ef4bf
JM
11022.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
11023maybe-maintainer-clean-gcc:
11024@if gcc
11025maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 11026
a90ef4bf
JM
11027maintainer-clean-gcc:
11028 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11029 r=`${PWD_COMMAND}`; export r; \
11030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11031 $(HOST_EXPORTS) \
a90ef4bf 11032 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11034 done; \
22121df0 11035 echo "Doing maintainer-clean in gcc"; \
a90ef4bf 11036 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11039 "RANLIB=$${RANLIB}" \
0c24b341 11040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11041 maintainer-clean) \
2a4cbe27
NN
11042 || exit 1
11043
a90ef4bf 11044@endif gcc
2a4cbe27 11045
2a4cbe27 11046
a7254363 11047
a90ef4bf
JM
11048.PHONY: configure-gmp maybe-configure-gmp
11049maybe-configure-gmp:
4f0ef2d8 11050@if gcc-bootstrap
a90ef4bf 11051configure-gmp: stage_current
4f0ef2d8 11052@endif gcc-bootstrap
a90ef4bf
JM
11053@if gmp
11054maybe-configure-gmp: configure-gmp
11055configure-gmp:
c52c6897 11056 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11058 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
22121df0 11059 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
1f53ca9a 11060 $(HOST_EXPORTS) \
a90ef4bf
JM
11061 echo Configuring in $(HOST_SUBDIR)/gmp; \
11062 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
4fa63067 11063 case $(srcdir) in \
b00612cc 11064 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11065 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
b00612cc 11066 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11067 esac; \
1b6c0831
L
11068 module_srcdir=gmp; \
11069 $(SHELL) \
11070 $$s/$$module_srcdir/configure \
11071 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11072 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11073 --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \
4fa63067 11074 || exit 1
a90ef4bf 11075@endif gmp
a7254363 11076
d545f33b
PB
11077
11078
a90ef4bf
JM
11079.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
11080maybe-configure-stage1-gmp:
11081@if gmp-bootstrap
11082maybe-configure-stage1-gmp: configure-stage1-gmp
11083configure-stage1-gmp:
11084 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11085 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067
NN
11086 @r=`${PWD_COMMAND}`; export r; \
11087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11088 TFLAGS="$(STAGE1_TFLAGS)"; \
11089 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11090 $(HOST_EXPORTS) \
11091 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11092 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11093 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11094 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp; \
11095 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11096 cd $(HOST_SUBDIR)/gmp || exit 1; \
11097 case $(srcdir) in \
11098 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11099 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11100 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11101 esac; \
1b6c0831
L
11102 module_srcdir=gmp; \
11103 $(SHELL) $$s/$$module_srcdir/configure \
11104 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11105 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11106 --target=none-${host_vendor}-${host_os} \
11107 \
a90ef4bf 11108 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 11109 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11110@endif gmp-bootstrap
4fa63067 11111
a90ef4bf
JM
11112.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
11113maybe-configure-stage2-gmp:
11114@if gmp-bootstrap
11115maybe-configure-stage2-gmp: configure-stage2-gmp
11116configure-stage2-gmp:
11117 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11118 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11119 @r=`${PWD_COMMAND}`; export r; \
11120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11121 TFLAGS="$(STAGE2_TFLAGS)"; \
11122 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11123 $(HOST_EXPORTS) \
11124 $(POSTSTAGE1_HOST_EXPORTS) \
11125 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11126 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11127 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11128 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp; \
11129 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11130 cd $(HOST_SUBDIR)/gmp || exit 1; \
11131 case $(srcdir) in \
11132 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11133 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11134 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11135 esac; \
1b6c0831
L
11136 module_srcdir=gmp; \
11137 $(SHELL) $$s/$$module_srcdir/configure \
11138 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11139 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11140 --target=none-${host_vendor}-${host_os} \
22121df0 11141 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11142 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 11143 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11144@endif gmp-bootstrap
4fa63067 11145
a90ef4bf
JM
11146.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
11147maybe-configure-stage3-gmp:
11148@if gmp-bootstrap
11149maybe-configure-stage3-gmp: configure-stage3-gmp
11150configure-stage3-gmp:
11151 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11152 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067 11153 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11155 TFLAGS="$(STAGE3_TFLAGS)"; \
11156 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
378fce5b 11157 $(HOST_EXPORTS) \
a90ef4bf
JM
11158 $(POSTSTAGE1_HOST_EXPORTS) \
11159 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11160 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11161 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11162 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp; \
11163 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11164 cd $(HOST_SUBDIR)/gmp || exit 1; \
11165 case $(srcdir) in \
11166 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11167 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11168 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11169 esac; \
1b6c0831
L
11170 module_srcdir=gmp; \
11171 $(SHELL) $$s/$$module_srcdir/configure \
11172 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11173 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11174 --target=none-${host_vendor}-${host_os} \
22121df0 11175 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11176 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 11177 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11178@endif gmp-bootstrap
2a4cbe27 11179
a90ef4bf
JM
11180.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
11181maybe-configure-stage4-gmp:
11182@if gmp-bootstrap
11183maybe-configure-stage4-gmp: configure-stage4-gmp
11184configure-stage4-gmp:
11185 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11186 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11187 @r=`${PWD_COMMAND}`; export r; \
11188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11189 TFLAGS="$(STAGE4_TFLAGS)"; \
11190 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11191 $(HOST_EXPORTS) \
11192 $(POSTSTAGE1_HOST_EXPORTS) \
11193 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11194 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11195 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11196 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp; \
11197 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11198 cd $(HOST_SUBDIR)/gmp || exit 1; \
11199 case $(srcdir) in \
11200 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11201 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11202 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11203 esac; \
1b6c0831
L
11204 module_srcdir=gmp; \
11205 $(SHELL) $$s/$$module_srcdir/configure \
11206 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11207 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11208 --target=none-${host_vendor}-${host_os} \
22121df0 11209 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11210 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 11211 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11212@endif gmp-bootstrap
2a4cbe27 11213
a90ef4bf
JM
11214.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
11215maybe-configure-stageprofile-gmp:
11216@if gmp-bootstrap
11217maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
11218configure-stageprofile-gmp:
11219 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11220 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11221 @r=`${PWD_COMMAND}`; export r; \
11222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11223 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11224 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11225 $(HOST_EXPORTS) \
11226 $(POSTSTAGE1_HOST_EXPORTS) \
11227 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11228 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11229 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11230 echo Configuring stage profile in $(HOST_SUBDIR)/gmp; \
11231 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11232 cd $(HOST_SUBDIR)/gmp || exit 1; \
11233 case $(srcdir) in \
11234 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11235 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11236 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11237 esac; \
1b6c0831
L
11238 module_srcdir=gmp; \
11239 $(SHELL) $$s/$$module_srcdir/configure \
11240 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11241 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11242 --target=none-${host_vendor}-${host_os} \
22121df0 11243 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11244 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 11245 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11246@endif gmp-bootstrap
9b980aa1 11247
a90ef4bf
JM
11248.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
11249maybe-configure-stagefeedback-gmp:
11250@if gmp-bootstrap
11251maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
11252configure-stagefeedback-gmp:
11253 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11254 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
9b980aa1
RW
11255 @r=`${PWD_COMMAND}`; export r; \
11256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11257 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11258 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
9b980aa1 11259 $(HOST_EXPORTS) \
a90ef4bf
JM
11260 $(POSTSTAGE1_HOST_EXPORTS) \
11261 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11262 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11263 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11264 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp; \
11265 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11266 cd $(HOST_SUBDIR)/gmp || exit 1; \
11267 case $(srcdir) in \
11268 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11269 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11270 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11271 esac; \
1b6c0831
L
11272 module_srcdir=gmp; \
11273 $(SHELL) $$s/$$module_srcdir/configure \
11274 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11275 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11276 --target=none-${host_vendor}-${host_os} \
22121df0 11277 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11278 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 11279 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11280@endif gmp-bootstrap
9b980aa1 11281
9b980aa1 11282
2a4cbe27 11283
4fa63067 11284
a90ef4bf
JM
11285
11286.PHONY: all-gmp maybe-all-gmp
11287maybe-all-gmp:
11288@if gcc-bootstrap
11289all-gmp: stage_current
11290@endif gcc-bootstrap
11291@if gmp
11292TARGET-gmp=all
11293maybe-all-gmp: all-gmp
11294all-gmp: configure-gmp
11295 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11297 $(HOST_EXPORTS) \
11298 (cd $(HOST_SUBDIR)/gmp && \
b3676d82 11299 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
11300 $(TARGET-gmp))
11301@endif gmp
2a4cbe27
NN
11302
11303
2a4cbe27 11304
a90ef4bf
JM
11305.PHONY: all-stage1-gmp maybe-all-stage1-gmp
11306.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
11307maybe-all-stage1-gmp:
11308maybe-clean-stage1-gmp:
11309@if gmp-bootstrap
11310maybe-all-stage1-gmp: all-stage1-gmp
11311all-stage1: all-stage1-gmp
11312TARGET-stage1-gmp = $(TARGET-gmp)
11313all-stage1-gmp: configure-stage1-gmp
11314 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11315 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11317 TFLAGS="$(STAGE1_TFLAGS)"; \
11318 $(HOST_EXPORTS) \
11319 cd $(HOST_SUBDIR)/gmp && \
11320 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11321 CFLAGS="$(STAGE1_CFLAGS)" \
11322 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11323 LIBCFLAGS="$(LIBCFLAGS)" \
11324 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11325 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11326 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
11327 $(EXTRA_HOST_FLAGS) \
11328 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
11329 TFLAGS="$(STAGE1_TFLAGS)" \
11330 $(TARGET-stage1-gmp)
2a4cbe27 11331
a90ef4bf
JM
11332maybe-clean-stage1-gmp: clean-stage1-gmp
11333clean-stage1: clean-stage1-gmp
11334clean-stage1-gmp:
11335 @if [ $(current_stage) = stage1 ]; then \
11336 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11337 else \
11338 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
11339 $(MAKE) stage1-start; \
11340 fi; \
11341 cd $(HOST_SUBDIR)/gmp && \
11342 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 11343 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11344@endif gmp-bootstrap
2a4cbe27 11345
56a8fe78 11346
a90ef4bf
JM
11347.PHONY: all-stage2-gmp maybe-all-stage2-gmp
11348.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
11349maybe-all-stage2-gmp:
11350maybe-clean-stage2-gmp:
11351@if gmp-bootstrap
11352maybe-all-stage2-gmp: all-stage2-gmp
11353all-stage2: all-stage2-gmp
11354TARGET-stage2-gmp = $(TARGET-gmp)
11355all-stage2-gmp: configure-stage2-gmp
11356 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11357 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 11358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11359 TFLAGS="$(STAGE2_TFLAGS)"; \
56a8fe78 11360 $(HOST_EXPORTS) \
a90ef4bf
JM
11361 $(POSTSTAGE1_HOST_EXPORTS) \
11362 cd $(HOST_SUBDIR)/gmp && \
11363 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11364 CFLAGS="$(STAGE2_CFLAGS)" \
11365 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11366 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11367 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11368 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11369 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11370 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11371 TFLAGS="$(STAGE2_TFLAGS)" \
11372 $(TARGET-stage2-gmp)
56a8fe78 11373
a90ef4bf
JM
11374maybe-clean-stage2-gmp: clean-stage2-gmp
11375clean-stage2: clean-stage2-gmp
11376clean-stage2-gmp:
11377 @if [ $(current_stage) = stage2 ]; then \
11378 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11379 else \
11380 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
11381 $(MAKE) stage2-start; \
11382 fi; \
11383 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11384 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11385@endif gmp-bootstrap
56a8fe78 11386
6d389afc 11387
a90ef4bf
JM
11388.PHONY: all-stage3-gmp maybe-all-stage3-gmp
11389.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
11390maybe-all-stage3-gmp:
11391maybe-clean-stage3-gmp:
11392@if gmp-bootstrap
11393maybe-all-stage3-gmp: all-stage3-gmp
11394all-stage3: all-stage3-gmp
11395TARGET-stage3-gmp = $(TARGET-gmp)
11396all-stage3-gmp: configure-stage3-gmp
11397 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11398 @r=`${PWD_COMMAND}`; export r; \
6d389afc 11399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11400 TFLAGS="$(STAGE3_TFLAGS)"; \
6d389afc 11401 $(HOST_EXPORTS) \
a90ef4bf
JM
11402 $(POSTSTAGE1_HOST_EXPORTS) \
11403 cd $(HOST_SUBDIR)/gmp && \
11404 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11405 CFLAGS="$(STAGE3_CFLAGS)" \
11406 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11407 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11408 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11409 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11410 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11411 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11412 TFLAGS="$(STAGE3_TFLAGS)" \
11413 $(TARGET-stage3-gmp)
6d389afc 11414
a90ef4bf
JM
11415maybe-clean-stage3-gmp: clean-stage3-gmp
11416clean-stage3: clean-stage3-gmp
11417clean-stage3-gmp:
11418 @if [ $(current_stage) = stage3 ]; then \
11419 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11420 else \
11421 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
11422 $(MAKE) stage3-start; \
11423 fi; \
11424 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11425 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11426@endif gmp-bootstrap
6d389afc 11427
2a4cbe27 11428
a90ef4bf
JM
11429.PHONY: all-stage4-gmp maybe-all-stage4-gmp
11430.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
11431maybe-all-stage4-gmp:
11432maybe-clean-stage4-gmp:
11433@if gmp-bootstrap
11434maybe-all-stage4-gmp: all-stage4-gmp
11435all-stage4: all-stage4-gmp
11436TARGET-stage4-gmp = $(TARGET-gmp)
11437all-stage4-gmp: configure-stage4-gmp
11438 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11439 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11441 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 11442 $(HOST_EXPORTS) \
a90ef4bf
JM
11443 $(POSTSTAGE1_HOST_EXPORTS) \
11444 cd $(HOST_SUBDIR)/gmp && \
11445 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11446 CFLAGS="$(STAGE4_CFLAGS)" \
11447 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11448 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11449 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11450 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11451 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11452 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11453 TFLAGS="$(STAGE4_TFLAGS)" \
11454 $(TARGET-stage4-gmp)
2a4cbe27 11455
a90ef4bf
JM
11456maybe-clean-stage4-gmp: clean-stage4-gmp
11457clean-stage4: clean-stage4-gmp
11458clean-stage4-gmp:
11459 @if [ $(current_stage) = stage4 ]; then \
11460 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11461 else \
11462 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
11463 $(MAKE) stage4-start; \
11464 fi; \
11465 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11466 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11467@endif gmp-bootstrap
2a4cbe27 11468
2a4cbe27 11469
a90ef4bf
JM
11470.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
11471.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
11472maybe-all-stageprofile-gmp:
11473maybe-clean-stageprofile-gmp:
11474@if gmp-bootstrap
11475maybe-all-stageprofile-gmp: all-stageprofile-gmp
11476all-stageprofile: all-stageprofile-gmp
11477TARGET-stageprofile-gmp = $(TARGET-gmp)
11478all-stageprofile-gmp: configure-stageprofile-gmp
11479 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11480 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11482 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 11483 $(HOST_EXPORTS) \
a90ef4bf
JM
11484 $(POSTSTAGE1_HOST_EXPORTS) \
11485 cd $(HOST_SUBDIR)/gmp && \
11486 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11487 CFLAGS="$(STAGEprofile_CFLAGS)" \
11488 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
11489 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
11490 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11491 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11492 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11493 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11494 TFLAGS="$(STAGEprofile_TFLAGS)" \
11495 $(TARGET-stageprofile-gmp)
2a4cbe27 11496
a90ef4bf
JM
11497maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
11498clean-stageprofile: clean-stageprofile-gmp
11499clean-stageprofile-gmp:
11500 @if [ $(current_stage) = stageprofile ]; then \
11501 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11502 else \
11503 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
11504 $(MAKE) stageprofile-start; \
11505 fi; \
11506 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11507 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11508@endif gmp-bootstrap
2a4cbe27 11509
a7254363 11510
a90ef4bf
JM
11511.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
11512.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
11513maybe-all-stagefeedback-gmp:
11514maybe-clean-stagefeedback-gmp:
11515@if gmp-bootstrap
11516maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
11517all-stagefeedback: all-stagefeedback-gmp
11518TARGET-stagefeedback-gmp = $(TARGET-gmp)
11519all-stagefeedback-gmp: configure-stagefeedback-gmp
11520 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 11521 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11523 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11524 $(HOST_EXPORTS) \
11525 $(POSTSTAGE1_HOST_EXPORTS) \
11526 cd $(HOST_SUBDIR)/gmp && \
11527 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11528 CFLAGS="$(STAGEfeedback_CFLAGS)" \
11529 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
11530 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
11531 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11532 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11533 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11534 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11535 TFLAGS="$(STAGEfeedback_TFLAGS)" \
11536 $(TARGET-stagefeedback-gmp)
d545f33b 11537
a90ef4bf
JM
11538maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
11539clean-stagefeedback: clean-stagefeedback-gmp
11540clean-stagefeedback-gmp:
11541 @if [ $(current_stage) = stagefeedback ]; then \
11542 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11543 else \
11544 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
11545 $(MAKE) stagefeedback-start; \
11546 fi; \
11547 cd $(HOST_SUBDIR)/gmp && \
b3676d82 11548 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11549@endif gmp-bootstrap
d545f33b 11550
4fa63067 11551
a7254363 11552
d545f33b
PB
11553
11554
a90ef4bf
JM
11555.PHONY: check-gmp maybe-check-gmp
11556maybe-check-gmp:
11557@if gmp
11558maybe-check-gmp: check-gmp
4fa63067 11559
a90ef4bf 11560check-gmp:
0aed8855 11561 @: $(MAKE); $(unstage)
4fa63067
NN
11562 @r=`${PWD_COMMAND}`; export r; \
11563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 11564 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 11565 (cd $(HOST_SUBDIR)/gmp && \
f91ca6bc 11566 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 11567
a90ef4bf 11568@endif gmp
2a4cbe27 11569
a90ef4bf
JM
11570.PHONY: install-gmp maybe-install-gmp
11571maybe-install-gmp:
11572@if gmp
11573maybe-install-gmp: install-gmp
2a4cbe27 11574
a90ef4bf 11575install-gmp:
2a4cbe27 11576
a90ef4bf 11577@endif gmp
2a4cbe27 11578
a90ef4bf
JM
11579.PHONY: install-strip-gmp maybe-install-strip-gmp
11580maybe-install-strip-gmp:
11581@if gmp
11582maybe-install-strip-gmp: install-strip-gmp
9b980aa1 11583
a90ef4bf 11584install-strip-gmp:
9b980aa1 11585
a90ef4bf 11586@endif gmp
9b980aa1 11587
56a8fe78 11588# Other targets (info, dvi, pdf, etc.)
2a4cbe27 11589
a90ef4bf
JM
11590.PHONY: maybe-info-gmp info-gmp
11591maybe-info-gmp:
11592@if gmp
11593maybe-info-gmp: info-gmp
4fa63067 11594
a90ef4bf
JM
11595info-gmp: \
11596 configure-gmp
11597 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11598 r=`${PWD_COMMAND}`; export r; \
11599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11600 $(HOST_EXPORTS) \
b813574b 11601 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11603 done; \
22121df0 11604 echo "Doing info in gmp"; \
a90ef4bf 11605 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11608 "RANLIB=$${RANLIB}" \
0c24b341 11609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11610 info) \
2a4cbe27
NN
11611 || exit 1
11612
a90ef4bf 11613@endif gmp
2a4cbe27 11614
a90ef4bf
JM
11615.PHONY: maybe-dvi-gmp dvi-gmp
11616maybe-dvi-gmp:
11617@if gmp
11618maybe-dvi-gmp: dvi-gmp
2a4cbe27 11619
a90ef4bf
JM
11620dvi-gmp: \
11621 configure-gmp
11622 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11623 r=`${PWD_COMMAND}`; export r; \
11624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11625 $(HOST_EXPORTS) \
b813574b 11626 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11628 done; \
22121df0 11629 echo "Doing dvi in gmp"; \
a90ef4bf 11630 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11633 "RANLIB=$${RANLIB}" \
0c24b341 11634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11635 dvi) \
2a4cbe27
NN
11636 || exit 1
11637
a90ef4bf 11638@endif gmp
2a4cbe27 11639
a90ef4bf
JM
11640.PHONY: maybe-pdf-gmp pdf-gmp
11641maybe-pdf-gmp:
11642@if gmp
11643maybe-pdf-gmp: pdf-gmp
56a8fe78 11644
a90ef4bf
JM
11645pdf-gmp: \
11646 configure-gmp
11647 @[ -f ./gmp/Makefile ] || exit 0; \
56a8fe78
DD
11648 r=`${PWD_COMMAND}`; export r; \
11649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11650 $(HOST_EXPORTS) \
11651 for flag in $(EXTRA_HOST_FLAGS) ; do \
11652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11653 done; \
22121df0 11654 echo "Doing pdf in gmp"; \
a90ef4bf 11655 (cd $(HOST_SUBDIR)/gmp && \
56a8fe78
DD
11656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11658 "RANLIB=$${RANLIB}" \
0c24b341 11659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11660 pdf) \
11661 || exit 1
11662
a90ef4bf 11663@endif gmp
56a8fe78 11664
a90ef4bf
JM
11665.PHONY: maybe-html-gmp html-gmp
11666maybe-html-gmp:
11667@if gmp
11668maybe-html-gmp: html-gmp
6d389afc 11669
a90ef4bf
JM
11670html-gmp: \
11671 configure-gmp
11672 @[ -f ./gmp/Makefile ] || exit 0; \
6d389afc
MS
11673 r=`${PWD_COMMAND}`; export r; \
11674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
11675 $(HOST_EXPORTS) \
11676 for flag in $(EXTRA_HOST_FLAGS) ; do \
11677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11678 done; \
22121df0 11679 echo "Doing html in gmp"; \
a90ef4bf 11680 (cd $(HOST_SUBDIR)/gmp && \
6d389afc
MS
11681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11683 "RANLIB=$${RANLIB}" \
0c24b341 11684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11685 html) \
11686 || exit 1
11687
a90ef4bf 11688@endif gmp
6d389afc 11689
a90ef4bf
JM
11690.PHONY: maybe-TAGS-gmp TAGS-gmp
11691maybe-TAGS-gmp:
11692@if gmp
11693maybe-TAGS-gmp: TAGS-gmp
2a4cbe27 11694
a90ef4bf
JM
11695TAGS-gmp: \
11696 configure-gmp
11697 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11698 r=`${PWD_COMMAND}`; export r; \
11699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11700 $(HOST_EXPORTS) \
b813574b 11701 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11703 done; \
22121df0 11704 echo "Doing TAGS in gmp"; \
a90ef4bf 11705 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11708 "RANLIB=$${RANLIB}" \
0c24b341 11709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11710 TAGS) \
2a4cbe27
NN
11711 || exit 1
11712
a90ef4bf 11713@endif gmp
2a4cbe27 11714
a90ef4bf
JM
11715.PHONY: maybe-install-info-gmp install-info-gmp
11716maybe-install-info-gmp:
11717@if gmp
11718maybe-install-info-gmp: install-info-gmp
2a4cbe27 11719
a90ef4bf
JM
11720install-info-gmp: \
11721 configure-gmp \
11722 info-gmp
11723 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11724 r=`${PWD_COMMAND}`; export r; \
11725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11726 $(HOST_EXPORTS) \
b813574b 11727 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11729 done; \
22121df0 11730 echo "Doing install-info in gmp"; \
a90ef4bf 11731 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11734 "RANLIB=$${RANLIB}" \
0c24b341 11735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11736 install-info) \
2a4cbe27
NN
11737 || exit 1
11738
a90ef4bf 11739@endif gmp
2a4cbe27 11740
a90ef4bf
JM
11741.PHONY: maybe-install-pdf-gmp install-pdf-gmp
11742maybe-install-pdf-gmp:
11743@if gmp
11744maybe-install-pdf-gmp: install-pdf-gmp
a3ca38d2 11745
a90ef4bf
JM
11746install-pdf-gmp: \
11747 configure-gmp \
11748 pdf-gmp
11749 @[ -f ./gmp/Makefile ] || exit 0; \
a3ca38d2
DD
11750 r=`${PWD_COMMAND}`; export r; \
11751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11752 $(HOST_EXPORTS) \
11753 for flag in $(EXTRA_HOST_FLAGS) ; do \
11754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11755 done; \
22121df0 11756 echo "Doing install-pdf in gmp"; \
a90ef4bf 11757 (cd $(HOST_SUBDIR)/gmp && \
a3ca38d2
DD
11758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11760 "RANLIB=$${RANLIB}" \
0c24b341 11761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11762 install-pdf) \
11763 || exit 1
11764
a90ef4bf 11765@endif gmp
a3ca38d2 11766
a90ef4bf
JM
11767.PHONY: maybe-install-html-gmp install-html-gmp
11768maybe-install-html-gmp:
11769@if gmp
11770maybe-install-html-gmp: install-html-gmp
108a6f8e 11771
a90ef4bf
JM
11772install-html-gmp: \
11773 configure-gmp \
11774 html-gmp
11775 @[ -f ./gmp/Makefile ] || exit 0; \
108a6f8e
CD
11776 r=`${PWD_COMMAND}`; export r; \
11777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11778 $(HOST_EXPORTS) \
11779 for flag in $(EXTRA_HOST_FLAGS) ; do \
11780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11781 done; \
22121df0 11782 echo "Doing install-html in gmp"; \
a90ef4bf 11783 (cd $(HOST_SUBDIR)/gmp && \
108a6f8e
CD
11784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11786 "RANLIB=$${RANLIB}" \
0c24b341 11787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
11788 install-html) \
11789 || exit 1
11790
a90ef4bf 11791@endif gmp
108a6f8e 11792
a90ef4bf
JM
11793.PHONY: maybe-installcheck-gmp installcheck-gmp
11794maybe-installcheck-gmp:
11795@if gmp
11796maybe-installcheck-gmp: installcheck-gmp
2a4cbe27 11797
a90ef4bf
JM
11798installcheck-gmp: \
11799 configure-gmp
11800 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11801 r=`${PWD_COMMAND}`; export r; \
11802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11803 $(HOST_EXPORTS) \
b813574b 11804 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11806 done; \
22121df0 11807 echo "Doing installcheck in gmp"; \
a90ef4bf 11808 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11811 "RANLIB=$${RANLIB}" \
0c24b341 11812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11813 installcheck) \
2a4cbe27
NN
11814 || exit 1
11815
a90ef4bf 11816@endif gmp
2a4cbe27 11817
a90ef4bf
JM
11818.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
11819maybe-mostlyclean-gmp:
11820@if gmp
11821maybe-mostlyclean-gmp: mostlyclean-gmp
2a4cbe27 11822
a90ef4bf
JM
11823mostlyclean-gmp:
11824 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11825 r=`${PWD_COMMAND}`; export r; \
11826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11827 $(HOST_EXPORTS) \
b813574b 11828 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11830 done; \
22121df0 11831 echo "Doing mostlyclean in gmp"; \
a90ef4bf 11832 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11835 "RANLIB=$${RANLIB}" \
0c24b341 11836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11837 mostlyclean) \
2a4cbe27
NN
11838 || exit 1
11839
a90ef4bf 11840@endif gmp
2a4cbe27 11841
a90ef4bf
JM
11842.PHONY: maybe-clean-gmp clean-gmp
11843maybe-clean-gmp:
11844@if gmp
11845maybe-clean-gmp: clean-gmp
2a4cbe27 11846
a90ef4bf
JM
11847clean-gmp:
11848 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11849 r=`${PWD_COMMAND}`; export r; \
11850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11851 $(HOST_EXPORTS) \
b813574b 11852 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11854 done; \
22121df0 11855 echo "Doing clean in gmp"; \
a90ef4bf 11856 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11859 "RANLIB=$${RANLIB}" \
0c24b341 11860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11861 clean) \
2a4cbe27
NN
11862 || exit 1
11863
a90ef4bf 11864@endif gmp
2a4cbe27 11865
a90ef4bf
JM
11866.PHONY: maybe-distclean-gmp distclean-gmp
11867maybe-distclean-gmp:
11868@if gmp
11869maybe-distclean-gmp: distclean-gmp
2a4cbe27 11870
a90ef4bf
JM
11871distclean-gmp:
11872 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11873 r=`${PWD_COMMAND}`; export r; \
11874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11875 $(HOST_EXPORTS) \
b813574b 11876 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11878 done; \
22121df0 11879 echo "Doing distclean in gmp"; \
a90ef4bf 11880 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11883 "RANLIB=$${RANLIB}" \
0c24b341 11884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11885 distclean) \
2a4cbe27
NN
11886 || exit 1
11887
a90ef4bf 11888@endif gmp
2a4cbe27 11889
a90ef4bf
JM
11890.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
11891maybe-maintainer-clean-gmp:
11892@if gmp
11893maybe-maintainer-clean-gmp: maintainer-clean-gmp
2a4cbe27 11894
a90ef4bf
JM
11895maintainer-clean-gmp:
11896 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11897 r=`${PWD_COMMAND}`; export r; \
11898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11899 $(HOST_EXPORTS) \
b813574b 11900 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11902 done; \
22121df0 11903 echo "Doing maintainer-clean in gmp"; \
a90ef4bf 11904 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11907 "RANLIB=$${RANLIB}" \
0c24b341 11908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11909 maintainer-clean) \
2a4cbe27
NN
11910 || exit 1
11911
a90ef4bf 11912@endif gmp
2a4cbe27 11913
2a4cbe27 11914
a7254363 11915
a90ef4bf
JM
11916.PHONY: configure-mpfr maybe-configure-mpfr
11917maybe-configure-mpfr:
4f0ef2d8 11918@if gcc-bootstrap
a90ef4bf 11919configure-mpfr: stage_current
4f0ef2d8 11920@endif gcc-bootstrap
a90ef4bf
JM
11921@if mpfr
11922maybe-configure-mpfr: configure-mpfr
11923configure-mpfr:
11924 @r=`${PWD_COMMAND}`; export r; \
11925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11926 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
22121df0 11927 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
1f53ca9a 11928 $(HOST_EXPORTS) \
a90ef4bf
JM
11929 echo Configuring in $(HOST_SUBDIR)/mpfr; \
11930 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
4fa63067 11931 case $(srcdir) in \
b00612cc 11932 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11933 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
b00612cc 11934 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11935 esac; \
1b6c0831
L
11936 module_srcdir=mpfr; \
11937 $(SHELL) \
11938 $$s/$$module_srcdir/configure \
11939 --srcdir=$${topdir}/$$module_srcdir \
4b900473 11940 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11941 --target=${target_alias} --disable-shared @extra_mpfr_configure_flags@ \
2a4cbe27 11942 || exit 1
a90ef4bf 11943@endif mpfr
d545f33b
PB
11944
11945
2a4cbe27 11946
a90ef4bf
JM
11947.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
11948maybe-configure-stage1-mpfr:
11949@if mpfr-bootstrap
11950maybe-configure-stage1-mpfr: configure-stage1-mpfr
11951configure-stage1-mpfr:
11952 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11953 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 11954 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11956 TFLAGS="$(STAGE1_TFLAGS)"; \
11957 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11958 $(HOST_EXPORTS) \
a90ef4bf
JM
11959 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11960 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11961 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11962 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr; \
11963 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
11964 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11965 case $(srcdir) in \
11966 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11967 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
11968 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11969 esac; \
1b6c0831
L
11970 module_srcdir=mpfr; \
11971 $(SHELL) $$s/$$module_srcdir/configure \
11972 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11973 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
11974 --target=${target_alias} \
11975 \
a90ef4bf
JM
11976 $(STAGE1_CONFIGURE_FLAGS) \
11977 --disable-shared @extra_mpfr_configure_flags@
11978@endif mpfr-bootstrap
2a4cbe27 11979
a90ef4bf
JM
11980.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
11981maybe-configure-stage2-mpfr:
11982@if mpfr-bootstrap
11983maybe-configure-stage2-mpfr: configure-stage2-mpfr
11984configure-stage2-mpfr:
11985 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11986 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 11987 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11989 TFLAGS="$(STAGE2_TFLAGS)"; \
11990 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11991 $(HOST_EXPORTS) \
a90ef4bf
JM
11992 $(POSTSTAGE1_HOST_EXPORTS) \
11993 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11994 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11995 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11996 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr; \
11997 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
11998 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11999 case $(srcdir) in \
12000 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12001 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12002 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12003 esac; \
1b6c0831
L
12004 module_srcdir=mpfr; \
12005 $(SHELL) $$s/$$module_srcdir/configure \
12006 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12007 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12008 --target=${target_alias} \
22121df0 12009 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12010 $(STAGE2_CONFIGURE_FLAGS) \
12011 --disable-shared @extra_mpfr_configure_flags@
12012@endif mpfr-bootstrap
9b980aa1 12013
a90ef4bf
JM
12014.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
12015maybe-configure-stage3-mpfr:
12016@if mpfr-bootstrap
12017maybe-configure-stage3-mpfr: configure-stage3-mpfr
12018configure-stage3-mpfr:
12019 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12020 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
9b980aa1
RW
12021 @r=`${PWD_COMMAND}`; export r; \
12022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12023 TFLAGS="$(STAGE3_TFLAGS)"; \
12024 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
9b980aa1 12025 $(HOST_EXPORTS) \
a90ef4bf
JM
12026 $(POSTSTAGE1_HOST_EXPORTS) \
12027 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12028 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12029 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12030 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr; \
12031 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12032 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12033 case $(srcdir) in \
12034 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12035 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12036 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12037 esac; \
1b6c0831
L
12038 module_srcdir=mpfr; \
12039 $(SHELL) $$s/$$module_srcdir/configure \
12040 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12041 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12042 --target=${target_alias} \
22121df0 12043 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12044 $(STAGE3_CONFIGURE_FLAGS) \
12045 --disable-shared @extra_mpfr_configure_flags@
12046@endif mpfr-bootstrap
2a4cbe27 12047
a90ef4bf
JM
12048.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
12049maybe-configure-stage4-mpfr:
12050@if mpfr-bootstrap
12051maybe-configure-stage4-mpfr: configure-stage4-mpfr
12052configure-stage4-mpfr:
12053 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12054 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12055 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12057 TFLAGS="$(STAGE4_TFLAGS)"; \
12058 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12059 $(HOST_EXPORTS) \
a90ef4bf
JM
12060 $(POSTSTAGE1_HOST_EXPORTS) \
12061 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12062 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12063 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12064 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr; \
12065 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12066 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12067 case $(srcdir) in \
12068 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12069 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12070 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12071 esac; \
1b6c0831
L
12072 module_srcdir=mpfr; \
12073 $(SHELL) $$s/$$module_srcdir/configure \
12074 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12075 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12076 --target=${target_alias} \
22121df0 12077 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12078 $(STAGE4_CONFIGURE_FLAGS) \
12079 --disable-shared @extra_mpfr_configure_flags@
12080@endif mpfr-bootstrap
2a4cbe27 12081
a90ef4bf
JM
12082.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
12083maybe-configure-stageprofile-mpfr:
12084@if mpfr-bootstrap
12085maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
12086configure-stageprofile-mpfr:
12087 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12088 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12089 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12091 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12092 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12093 $(HOST_EXPORTS) \
a90ef4bf
JM
12094 $(POSTSTAGE1_HOST_EXPORTS) \
12095 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12096 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12097 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12098 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr; \
12099 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12100 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12101 case $(srcdir) in \
12102 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12103 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12104 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12105 esac; \
1b6c0831
L
12106 module_srcdir=mpfr; \
12107 $(SHELL) $$s/$$module_srcdir/configure \
12108 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12109 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12110 --target=${target_alias} \
22121df0 12111 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12112 $(STAGEprofile_CONFIGURE_FLAGS) \
12113 --disable-shared @extra_mpfr_configure_flags@
12114@endif mpfr-bootstrap
56a8fe78 12115
a90ef4bf
JM
12116.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
12117maybe-configure-stagefeedback-mpfr:
12118@if mpfr-bootstrap
12119maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
12120configure-stagefeedback-mpfr:
12121 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12122 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12123 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 12124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12125 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12126 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
56a8fe78 12127 $(HOST_EXPORTS) \
a90ef4bf
JM
12128 $(POSTSTAGE1_HOST_EXPORTS) \
12129 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12130 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12131 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12132 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr; \
12133 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12134 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12135 case $(srcdir) in \
12136 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12137 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12138 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12139 esac; \
1b6c0831
L
12140 module_srcdir=mpfr; \
12141 $(SHELL) $$s/$$module_srcdir/configure \
12142 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12143 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12144 --target=${target_alias} \
22121df0 12145 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12146 $(STAGEfeedback_CONFIGURE_FLAGS) \
12147 --disable-shared @extra_mpfr_configure_flags@
12148@endif mpfr-bootstrap
56a8fe78 12149
6d389afc 12150
6d389afc 12151
6d389afc 12152
2a4cbe27 12153
a90ef4bf
JM
12154.PHONY: all-mpfr maybe-all-mpfr
12155maybe-all-mpfr:
12156@if gcc-bootstrap
12157all-mpfr: stage_current
12158@endif gcc-bootstrap
12159@if mpfr
12160TARGET-mpfr=all
12161maybe-all-mpfr: all-mpfr
12162all-mpfr: configure-mpfr
12163 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12165 $(HOST_EXPORTS) \
12166 (cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12167 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
12168 $(TARGET-mpfr))
12169@endif mpfr
2a4cbe27
NN
12170
12171
2a4cbe27 12172
a90ef4bf
JM
12173.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
12174.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
12175maybe-all-stage1-mpfr:
12176maybe-clean-stage1-mpfr:
12177@if mpfr-bootstrap
12178maybe-all-stage1-mpfr: all-stage1-mpfr
12179all-stage1: all-stage1-mpfr
12180TARGET-stage1-mpfr = $(TARGET-mpfr)
12181all-stage1-mpfr: configure-stage1-mpfr
12182 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12183 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12185 TFLAGS="$(STAGE1_TFLAGS)"; \
12186 $(HOST_EXPORTS) \
12187 cd $(HOST_SUBDIR)/mpfr && \
12188 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12189 CFLAGS="$(STAGE1_CFLAGS)" \
12190 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12191 LIBCFLAGS="$(LIBCFLAGS)" \
12192 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12193 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12194 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
12195 $(EXTRA_HOST_FLAGS) \
12196 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
12197 TFLAGS="$(STAGE1_TFLAGS)" \
12198 $(TARGET-stage1-mpfr)
2a4cbe27 12199
a90ef4bf
JM
12200maybe-clean-stage1-mpfr: clean-stage1-mpfr
12201clean-stage1: clean-stage1-mpfr
12202clean-stage1-mpfr:
12203 @if [ $(current_stage) = stage1 ]; then \
12204 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12205 else \
12206 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
12207 $(MAKE) stage1-start; \
12208 fi; \
12209 cd $(HOST_SUBDIR)/mpfr && \
12210 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 12211 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12212@endif mpfr-bootstrap
2a4cbe27 12213
a3ca38d2 12214
a90ef4bf
JM
12215.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
12216.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
12217maybe-all-stage2-mpfr:
12218maybe-clean-stage2-mpfr:
12219@if mpfr-bootstrap
12220maybe-all-stage2-mpfr: all-stage2-mpfr
12221all-stage2: all-stage2-mpfr
12222TARGET-stage2-mpfr = $(TARGET-mpfr)
12223all-stage2-mpfr: configure-stage2-mpfr
12224 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12225 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 12226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12227 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 12228 $(HOST_EXPORTS) \
a90ef4bf
JM
12229 $(POSTSTAGE1_HOST_EXPORTS) \
12230 cd $(HOST_SUBDIR)/mpfr && \
12231 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12232 CFLAGS="$(STAGE2_CFLAGS)" \
12233 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
12234 LIBCFLAGS="$(STAGE2_CFLAGS)" \
12235 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12236 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12237 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12238 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12239 TFLAGS="$(STAGE2_TFLAGS)" \
12240 $(TARGET-stage2-mpfr)
a3ca38d2 12241
a90ef4bf
JM
12242maybe-clean-stage2-mpfr: clean-stage2-mpfr
12243clean-stage2: clean-stage2-mpfr
12244clean-stage2-mpfr:
12245 @if [ $(current_stage) = stage2 ]; then \
12246 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12247 else \
12248 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
12249 $(MAKE) stage2-start; \
12250 fi; \
12251 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12252 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12253@endif mpfr-bootstrap
a3ca38d2 12254
108a6f8e 12255
a90ef4bf
JM
12256.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
12257.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
12258maybe-all-stage3-mpfr:
12259maybe-clean-stage3-mpfr:
12260@if mpfr-bootstrap
12261maybe-all-stage3-mpfr: all-stage3-mpfr
12262all-stage3: all-stage3-mpfr
12263TARGET-stage3-mpfr = $(TARGET-mpfr)
12264all-stage3-mpfr: configure-stage3-mpfr
12265 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12266 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 12267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12268 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 12269 $(HOST_EXPORTS) \
a90ef4bf
JM
12270 $(POSTSTAGE1_HOST_EXPORTS) \
12271 cd $(HOST_SUBDIR)/mpfr && \
12272 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12273 CFLAGS="$(STAGE3_CFLAGS)" \
12274 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
12275 LIBCFLAGS="$(STAGE3_CFLAGS)" \
12276 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12277 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12278 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12279 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12280 TFLAGS="$(STAGE3_TFLAGS)" \
12281 $(TARGET-stage3-mpfr)
108a6f8e 12282
a90ef4bf
JM
12283maybe-clean-stage3-mpfr: clean-stage3-mpfr
12284clean-stage3: clean-stage3-mpfr
12285clean-stage3-mpfr:
12286 @if [ $(current_stage) = stage3 ]; then \
12287 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12288 else \
12289 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
12290 $(MAKE) stage3-start; \
12291 fi; \
12292 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12293 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12294@endif mpfr-bootstrap
108a6f8e 12295
2a4cbe27 12296
a90ef4bf
JM
12297.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
12298.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
12299maybe-all-stage4-mpfr:
12300maybe-clean-stage4-mpfr:
12301@if mpfr-bootstrap
12302maybe-all-stage4-mpfr: all-stage4-mpfr
12303all-stage4: all-stage4-mpfr
12304TARGET-stage4-mpfr = $(TARGET-mpfr)
12305all-stage4-mpfr: configure-stage4-mpfr
12306 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12307 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12309 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 12310 $(HOST_EXPORTS) \
a90ef4bf
JM
12311 $(POSTSTAGE1_HOST_EXPORTS) \
12312 cd $(HOST_SUBDIR)/mpfr && \
12313 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12314 CFLAGS="$(STAGE4_CFLAGS)" \
12315 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
12316 LIBCFLAGS="$(STAGE4_CFLAGS)" \
12317 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12318 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12319 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12320 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12321 TFLAGS="$(STAGE4_TFLAGS)" \
12322 $(TARGET-stage4-mpfr)
2a4cbe27 12323
a90ef4bf
JM
12324maybe-clean-stage4-mpfr: clean-stage4-mpfr
12325clean-stage4: clean-stage4-mpfr
12326clean-stage4-mpfr:
12327 @if [ $(current_stage) = stage4 ]; then \
12328 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12329 else \
12330 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
12331 $(MAKE) stage4-start; \
12332 fi; \
12333 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12334 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12335@endif mpfr-bootstrap
2a4cbe27 12336
2a4cbe27 12337
a90ef4bf
JM
12338.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
12339.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
12340maybe-all-stageprofile-mpfr:
12341maybe-clean-stageprofile-mpfr:
12342@if mpfr-bootstrap
12343maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
12344all-stageprofile: all-stageprofile-mpfr
12345TARGET-stageprofile-mpfr = $(TARGET-mpfr)
12346all-stageprofile-mpfr: configure-stageprofile-mpfr
12347 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12348 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12350 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 12351 $(HOST_EXPORTS) \
a90ef4bf
JM
12352 $(POSTSTAGE1_HOST_EXPORTS) \
12353 cd $(HOST_SUBDIR)/mpfr && \
12354 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12355 CFLAGS="$(STAGEprofile_CFLAGS)" \
12356 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12357 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12358 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12359 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12360 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12361 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12362 TFLAGS="$(STAGEprofile_TFLAGS)" \
12363 $(TARGET-stageprofile-mpfr)
2a4cbe27 12364
a90ef4bf
JM
12365maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
12366clean-stageprofile: clean-stageprofile-mpfr
12367clean-stageprofile-mpfr:
12368 @if [ $(current_stage) = stageprofile ]; then \
12369 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12370 else \
12371 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
12372 $(MAKE) stageprofile-start; \
12373 fi; \
12374 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12375 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12376@endif mpfr-bootstrap
2a4cbe27 12377
a7254363 12378
a90ef4bf
JM
12379.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
12380.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
12381maybe-all-stagefeedback-mpfr:
12382maybe-clean-stagefeedback-mpfr:
12383@if mpfr-bootstrap
12384maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
12385all-stagefeedback: all-stagefeedback-mpfr
12386TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
12387all-stagefeedback-mpfr: configure-stagefeedback-mpfr
12388 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 12389 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12391 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12392 $(HOST_EXPORTS) \
12393 $(POSTSTAGE1_HOST_EXPORTS) \
12394 cd $(HOST_SUBDIR)/mpfr && \
12395 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12396 CFLAGS="$(STAGEfeedback_CFLAGS)" \
12397 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12398 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12399 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12400 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12401 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12402 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12403 TFLAGS="$(STAGEfeedback_TFLAGS)" \
12404 $(TARGET-stagefeedback-mpfr)
d545f33b 12405
a90ef4bf
JM
12406maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
12407clean-stagefeedback: clean-stagefeedback-mpfr
12408clean-stagefeedback-mpfr:
12409 @if [ $(current_stage) = stagefeedback ]; then \
12410 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12411 else \
12412 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
12413 $(MAKE) stagefeedback-start; \
12414 fi; \
12415 cd $(HOST_SUBDIR)/mpfr && \
b3676d82 12416 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 12417@endif mpfr-bootstrap
d545f33b 12418
2a4cbe27 12419
a7254363 12420
d545f33b
PB
12421
12422
a90ef4bf
JM
12423.PHONY: check-mpfr maybe-check-mpfr
12424maybe-check-mpfr:
12425@if mpfr
12426maybe-check-mpfr: check-mpfr
2a4cbe27 12427
a90ef4bf 12428check-mpfr:
0aed8855 12429 @: $(MAKE); $(unstage)
4fa63067 12430 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 12432 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 12433 (cd $(HOST_SUBDIR)/mpfr && \
f91ca6bc 12434 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 12435
a90ef4bf 12436@endif mpfr
2a4cbe27 12437
a90ef4bf
JM
12438.PHONY: install-mpfr maybe-install-mpfr
12439maybe-install-mpfr:
12440@if mpfr
12441maybe-install-mpfr: install-mpfr
2a4cbe27 12442
a90ef4bf 12443install-mpfr:
4fa63067 12444
a90ef4bf 12445@endif mpfr
4fa63067 12446
a90ef4bf
JM
12447.PHONY: install-strip-mpfr maybe-install-strip-mpfr
12448maybe-install-strip-mpfr:
12449@if mpfr
12450maybe-install-strip-mpfr: install-strip-mpfr
9b980aa1 12451
a90ef4bf 12452install-strip-mpfr:
9b980aa1 12453
a90ef4bf 12454@endif mpfr
9b980aa1 12455
56a8fe78 12456# Other targets (info, dvi, pdf, etc.)
4fa63067 12457
a90ef4bf
JM
12458.PHONY: maybe-info-mpfr info-mpfr
12459maybe-info-mpfr:
12460@if mpfr
12461maybe-info-mpfr: info-mpfr
4fa63067 12462
a90ef4bf
JM
12463info-mpfr: \
12464 configure-mpfr
12465 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12466 r=`${PWD_COMMAND}`; export r; \
12467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12468 $(HOST_EXPORTS) \
b813574b 12469 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12471 done; \
22121df0 12472 echo "Doing info in mpfr"; \
a90ef4bf 12473 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12476 "RANLIB=$${RANLIB}" \
0c24b341 12477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12478 info) \
2a4cbe27
NN
12479 || exit 1
12480
a90ef4bf 12481@endif mpfr
2a4cbe27 12482
a90ef4bf
JM
12483.PHONY: maybe-dvi-mpfr dvi-mpfr
12484maybe-dvi-mpfr:
12485@if mpfr
12486maybe-dvi-mpfr: dvi-mpfr
2a4cbe27 12487
a90ef4bf
JM
12488dvi-mpfr: \
12489 configure-mpfr
12490 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12491 r=`${PWD_COMMAND}`; export r; \
12492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12493 $(HOST_EXPORTS) \
b813574b 12494 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12496 done; \
22121df0 12497 echo "Doing dvi in mpfr"; \
a90ef4bf 12498 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12501 "RANLIB=$${RANLIB}" \
0c24b341 12502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12503 dvi) \
2a4cbe27
NN
12504 || exit 1
12505
a90ef4bf 12506@endif mpfr
2a4cbe27 12507
a90ef4bf
JM
12508.PHONY: maybe-pdf-mpfr pdf-mpfr
12509maybe-pdf-mpfr:
12510@if mpfr
12511maybe-pdf-mpfr: pdf-mpfr
56a8fe78 12512
a90ef4bf
JM
12513pdf-mpfr: \
12514 configure-mpfr
12515 @[ -f ./mpfr/Makefile ] || exit 0; \
56a8fe78
DD
12516 r=`${PWD_COMMAND}`; export r; \
12517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12518 $(HOST_EXPORTS) \
12519 for flag in $(EXTRA_HOST_FLAGS) ; do \
12520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12521 done; \
22121df0 12522 echo "Doing pdf in mpfr"; \
a90ef4bf 12523 (cd $(HOST_SUBDIR)/mpfr && \
56a8fe78
DD
12524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12526 "RANLIB=$${RANLIB}" \
0c24b341 12527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
12528 pdf) \
12529 || exit 1
12530
a90ef4bf 12531@endif mpfr
56a8fe78 12532
a90ef4bf
JM
12533.PHONY: maybe-html-mpfr html-mpfr
12534maybe-html-mpfr:
12535@if mpfr
12536maybe-html-mpfr: html-mpfr
6d389afc 12537
a90ef4bf
JM
12538html-mpfr: \
12539 configure-mpfr
12540 @[ -f ./mpfr/Makefile ] || exit 0; \
6d389afc
MS
12541 r=`${PWD_COMMAND}`; export r; \
12542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
12543 $(HOST_EXPORTS) \
12544 for flag in $(EXTRA_HOST_FLAGS) ; do \
12545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12546 done; \
22121df0 12547 echo "Doing html in mpfr"; \
a90ef4bf 12548 (cd $(HOST_SUBDIR)/mpfr && \
6d389afc
MS
12549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12551 "RANLIB=$${RANLIB}" \
0c24b341 12552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
12553 html) \
12554 || exit 1
12555
a90ef4bf 12556@endif mpfr
6d389afc 12557
a90ef4bf
JM
12558.PHONY: maybe-TAGS-mpfr TAGS-mpfr
12559maybe-TAGS-mpfr:
12560@if mpfr
12561maybe-TAGS-mpfr: TAGS-mpfr
4fa63067 12562
a90ef4bf
JM
12563TAGS-mpfr: \
12564 configure-mpfr
12565 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12566 r=`${PWD_COMMAND}`; export r; \
12567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12568 $(HOST_EXPORTS) \
b813574b 12569 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12571 done; \
22121df0 12572 echo "Doing TAGS in mpfr"; \
a90ef4bf 12573 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12576 "RANLIB=$${RANLIB}" \
0c24b341 12577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12578 TAGS) \
2a4cbe27
NN
12579 || exit 1
12580
a90ef4bf 12581@endif mpfr
2a4cbe27 12582
a90ef4bf
JM
12583.PHONY: maybe-install-info-mpfr install-info-mpfr
12584maybe-install-info-mpfr:
12585@if mpfr
12586maybe-install-info-mpfr: install-info-mpfr
2a4cbe27 12587
a90ef4bf
JM
12588install-info-mpfr: \
12589 configure-mpfr \
12590 info-mpfr
12591 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12592 r=`${PWD_COMMAND}`; export r; \
12593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12594 $(HOST_EXPORTS) \
b813574b 12595 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12597 done; \
22121df0 12598 echo "Doing install-info in mpfr"; \
a90ef4bf 12599 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12602 "RANLIB=$${RANLIB}" \
0c24b341 12603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12604 install-info) \
2a4cbe27
NN
12605 || exit 1
12606
a90ef4bf 12607@endif mpfr
2a4cbe27 12608
a90ef4bf
JM
12609.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
12610maybe-install-pdf-mpfr:
12611@if mpfr
12612maybe-install-pdf-mpfr: install-pdf-mpfr
a3ca38d2 12613
a90ef4bf
JM
12614install-pdf-mpfr: \
12615 configure-mpfr \
12616 pdf-mpfr
12617 @[ -f ./mpfr/Makefile ] || exit 0; \
a3ca38d2
DD
12618 r=`${PWD_COMMAND}`; export r; \
12619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12620 $(HOST_EXPORTS) \
12621 for flag in $(EXTRA_HOST_FLAGS) ; do \
12622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12623 done; \
22121df0 12624 echo "Doing install-pdf in mpfr"; \
a90ef4bf 12625 (cd $(HOST_SUBDIR)/mpfr && \
a3ca38d2
DD
12626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12628 "RANLIB=$${RANLIB}" \
0c24b341 12629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
12630 install-pdf) \
12631 || exit 1
12632
a90ef4bf 12633@endif mpfr
a3ca38d2 12634
a90ef4bf
JM
12635.PHONY: maybe-install-html-mpfr install-html-mpfr
12636maybe-install-html-mpfr:
12637@if mpfr
12638maybe-install-html-mpfr: install-html-mpfr
108a6f8e 12639
a90ef4bf
JM
12640install-html-mpfr: \
12641 configure-mpfr \
12642 html-mpfr
12643 @[ -f ./mpfr/Makefile ] || exit 0; \
108a6f8e
CD
12644 r=`${PWD_COMMAND}`; export r; \
12645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12646 $(HOST_EXPORTS) \
12647 for flag in $(EXTRA_HOST_FLAGS) ; do \
12648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12649 done; \
22121df0 12650 echo "Doing install-html in mpfr"; \
a90ef4bf 12651 (cd $(HOST_SUBDIR)/mpfr && \
108a6f8e
CD
12652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12654 "RANLIB=$${RANLIB}" \
0c24b341 12655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
12656 install-html) \
12657 || exit 1
12658
a90ef4bf 12659@endif mpfr
108a6f8e 12660
a90ef4bf
JM
12661.PHONY: maybe-installcheck-mpfr installcheck-mpfr
12662maybe-installcheck-mpfr:
12663@if mpfr
12664maybe-installcheck-mpfr: installcheck-mpfr
2a4cbe27 12665
a90ef4bf
JM
12666installcheck-mpfr: \
12667 configure-mpfr
12668 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12669 r=`${PWD_COMMAND}`; export r; \
12670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12671 $(HOST_EXPORTS) \
b813574b 12672 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12674 done; \
22121df0 12675 echo "Doing installcheck in mpfr"; \
a90ef4bf 12676 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12679 "RANLIB=$${RANLIB}" \
0c24b341 12680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12681 installcheck) \
2a4cbe27
NN
12682 || exit 1
12683
a90ef4bf 12684@endif mpfr
2a4cbe27 12685
a90ef4bf
JM
12686.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
12687maybe-mostlyclean-mpfr:
12688@if mpfr
12689maybe-mostlyclean-mpfr: mostlyclean-mpfr
2a4cbe27 12690
a90ef4bf
JM
12691mostlyclean-mpfr:
12692 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12693 r=`${PWD_COMMAND}`; export r; \
12694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12695 $(HOST_EXPORTS) \
b813574b 12696 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12698 done; \
22121df0 12699 echo "Doing mostlyclean in mpfr"; \
a90ef4bf 12700 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12703 "RANLIB=$${RANLIB}" \
0c24b341 12704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12705 mostlyclean) \
2a4cbe27
NN
12706 || exit 1
12707
a90ef4bf 12708@endif mpfr
2a4cbe27 12709
a90ef4bf
JM
12710.PHONY: maybe-clean-mpfr clean-mpfr
12711maybe-clean-mpfr:
12712@if mpfr
12713maybe-clean-mpfr: clean-mpfr
2a4cbe27 12714
a90ef4bf
JM
12715clean-mpfr:
12716 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12717 r=`${PWD_COMMAND}`; export r; \
12718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12719 $(HOST_EXPORTS) \
b813574b 12720 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12722 done; \
22121df0 12723 echo "Doing clean in mpfr"; \
a90ef4bf 12724 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12727 "RANLIB=$${RANLIB}" \
0c24b341 12728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12729 clean) \
2a4cbe27
NN
12730 || exit 1
12731
a90ef4bf 12732@endif mpfr
2a4cbe27 12733
a90ef4bf
JM
12734.PHONY: maybe-distclean-mpfr distclean-mpfr
12735maybe-distclean-mpfr:
12736@if mpfr
12737maybe-distclean-mpfr: distclean-mpfr
2a4cbe27 12738
a90ef4bf
JM
12739distclean-mpfr:
12740 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12741 r=`${PWD_COMMAND}`; export r; \
12742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12743 $(HOST_EXPORTS) \
b813574b 12744 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12746 done; \
22121df0 12747 echo "Doing distclean in mpfr"; \
a90ef4bf 12748 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12751 "RANLIB=$${RANLIB}" \
0c24b341 12752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12753 distclean) \
2a4cbe27
NN
12754 || exit 1
12755
a90ef4bf 12756@endif mpfr
2a4cbe27 12757
a90ef4bf
JM
12758.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
12759maybe-maintainer-clean-mpfr:
12760@if mpfr
12761maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
2a4cbe27 12762
a90ef4bf
JM
12763maintainer-clean-mpfr:
12764 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12765 r=`${PWD_COMMAND}`; export r; \
12766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12767 $(HOST_EXPORTS) \
b813574b 12768 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
12769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12770 done; \
22121df0 12771 echo "Doing maintainer-clean in mpfr"; \
a90ef4bf 12772 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12775 "RANLIB=$${RANLIB}" \
0c24b341 12776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12777 maintainer-clean) \
2a4cbe27
NN
12778 || exit 1
12779
a90ef4bf 12780@endif mpfr
2a4cbe27 12781
2a4cbe27 12782
a7254363 12783
a90ef4bf
JM
12784.PHONY: configure-mpc maybe-configure-mpc
12785maybe-configure-mpc:
4f0ef2d8 12786@if gcc-bootstrap
a90ef4bf 12787configure-mpc: stage_current
4f0ef2d8 12788@endif gcc-bootstrap
a90ef4bf
JM
12789@if mpc
12790maybe-configure-mpc: configure-mpc
12791configure-mpc:
c52c6897 12792 @r=`${PWD_COMMAND}`; export r; \
d3ed111c 12793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12794 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
22121df0 12795 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
1f53ca9a 12796 $(HOST_EXPORTS) \
a90ef4bf
JM
12797 echo Configuring in $(HOST_SUBDIR)/mpc; \
12798 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
d3ed111c 12799 case $(srcdir) in \
b00612cc 12800 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12801 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
b00612cc 12802 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d3ed111c 12803 esac; \
1b6c0831
L
12804 module_srcdir=mpc; \
12805 $(SHELL) \
12806 $$s/$$module_srcdir/configure \
12807 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12808 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12809 --target=${target_alias} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
d3ed111c 12810 || exit 1
a90ef4bf 12811@endif mpc
d545f33b
PB
12812
12813
d3ed111c 12814
a90ef4bf
JM
12815.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
12816maybe-configure-stage1-mpc:
12817@if mpc-bootstrap
12818maybe-configure-stage1-mpc: configure-stage1-mpc
12819configure-stage1-mpc:
12820 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12821 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12822 @r=`${PWD_COMMAND}`; export r; \
12823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12824 TFLAGS="$(STAGE1_TFLAGS)"; \
12825 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12826 $(HOST_EXPORTS) \
a90ef4bf
JM
12827 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12828 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12829 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12830 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc; \
12831 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12832 cd $(HOST_SUBDIR)/mpc || exit 1; \
12833 case $(srcdir) in \
12834 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12835 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12836 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12837 esac; \
1b6c0831
L
12838 module_srcdir=mpc; \
12839 $(SHELL) $$s/$$module_srcdir/configure \
12840 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12841 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12842 --target=${target_alias} \
12843 \
a90ef4bf
JM
12844 $(STAGE1_CONFIGURE_FLAGS) \
12845 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12846@endif mpc-bootstrap
d3ed111c 12847
a90ef4bf
JM
12848.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
12849maybe-configure-stage2-mpc:
12850@if mpc-bootstrap
12851maybe-configure-stage2-mpc: configure-stage2-mpc
12852configure-stage2-mpc:
12853 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12854 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12855 @r=`${PWD_COMMAND}`; export r; \
12856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12857 TFLAGS="$(STAGE2_TFLAGS)"; \
12858 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12859 $(HOST_EXPORTS) \
a90ef4bf
JM
12860 $(POSTSTAGE1_HOST_EXPORTS) \
12861 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12862 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12863 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12864 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc; \
12865 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12866 cd $(HOST_SUBDIR)/mpc || exit 1; \
12867 case $(srcdir) in \
12868 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12869 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12870 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12871 esac; \
1b6c0831
L
12872 module_srcdir=mpc; \
12873 $(SHELL) $$s/$$module_srcdir/configure \
12874 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12875 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12876 --target=${target_alias} \
22121df0 12877 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12878 $(STAGE2_CONFIGURE_FLAGS) \
12879 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12880@endif mpc-bootstrap
9b980aa1 12881
a90ef4bf
JM
12882.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
12883maybe-configure-stage3-mpc:
12884@if mpc-bootstrap
12885maybe-configure-stage3-mpc: configure-stage3-mpc
12886configure-stage3-mpc:
12887 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12888 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
9b980aa1
RW
12889 @r=`${PWD_COMMAND}`; export r; \
12890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12891 TFLAGS="$(STAGE3_TFLAGS)"; \
12892 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
9b980aa1 12893 $(HOST_EXPORTS) \
a90ef4bf
JM
12894 $(POSTSTAGE1_HOST_EXPORTS) \
12895 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12896 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12897 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12898 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc; \
12899 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12900 cd $(HOST_SUBDIR)/mpc || exit 1; \
12901 case $(srcdir) in \
12902 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12903 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12904 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12905 esac; \
1b6c0831
L
12906 module_srcdir=mpc; \
12907 $(SHELL) $$s/$$module_srcdir/configure \
12908 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12909 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12910 --target=${target_alias} \
22121df0 12911 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12912 $(STAGE3_CONFIGURE_FLAGS) \
12913 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12914@endif mpc-bootstrap
d3ed111c 12915
a90ef4bf
JM
12916.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
12917maybe-configure-stage4-mpc:
12918@if mpc-bootstrap
12919maybe-configure-stage4-mpc: configure-stage4-mpc
12920configure-stage4-mpc:
12921 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12922 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12923 @r=`${PWD_COMMAND}`; export r; \
12924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12925 TFLAGS="$(STAGE4_TFLAGS)"; \
12926 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12927 $(HOST_EXPORTS) \
12928 $(POSTSTAGE1_HOST_EXPORTS) \
12929 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12930 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12931 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12932 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc; \
12933 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12934 cd $(HOST_SUBDIR)/mpc || exit 1; \
12935 case $(srcdir) in \
12936 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12937 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12938 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12939 esac; \
1b6c0831
L
12940 module_srcdir=mpc; \
12941 $(SHELL) $$s/$$module_srcdir/configure \
12942 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12943 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12944 --target=${target_alias} \
22121df0 12945 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12946 $(STAGE4_CONFIGURE_FLAGS) \
12947 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12948@endif mpc-bootstrap
12949
12950.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
12951maybe-configure-stageprofile-mpc:
12952@if mpc-bootstrap
12953maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
12954configure-stageprofile-mpc:
12955 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12956 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12957 @r=`${PWD_COMMAND}`; export r; \
12958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12959 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12960 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12961 $(HOST_EXPORTS) \
12962 $(POSTSTAGE1_HOST_EXPORTS) \
12963 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12964 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12965 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12966 echo Configuring stage profile in $(HOST_SUBDIR)/mpc; \
12967 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12968 cd $(HOST_SUBDIR)/mpc || exit 1; \
12969 case $(srcdir) in \
12970 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12971 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12972 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12973 esac; \
1b6c0831
L
12974 module_srcdir=mpc; \
12975 $(SHELL) $$s/$$module_srcdir/configure \
12976 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12977 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12978 --target=${target_alias} \
22121df0 12979 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12980 $(STAGEprofile_CONFIGURE_FLAGS) \
12981 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
12982@endif mpc-bootstrap
12983
12984.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
12985maybe-configure-stagefeedback-mpc:
12986@if mpc-bootstrap
12987maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
12988configure-stagefeedback-mpc:
12989 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12990 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12991 @r=`${PWD_COMMAND}`; export r; \
12992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12993 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12994 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12995 $(HOST_EXPORTS) \
12996 $(POSTSTAGE1_HOST_EXPORTS) \
12997 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12998 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12999 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13000 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc; \
13001 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13002 cd $(HOST_SUBDIR)/mpc || exit 1; \
13003 case $(srcdir) in \
13004 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13005 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13006 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13007 esac; \
1b6c0831
L
13008 module_srcdir=mpc; \
13009 $(SHELL) $$s/$$module_srcdir/configure \
13010 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13011 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13012 --target=${target_alias} \
22121df0 13013 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
13014 $(STAGEfeedback_CONFIGURE_FLAGS) \
13015 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
13016@endif mpc-bootstrap
13017
13018
13019
13020
13021
13022.PHONY: all-mpc maybe-all-mpc
13023maybe-all-mpc:
13024@if gcc-bootstrap
13025all-mpc: stage_current
13026@endif gcc-bootstrap
13027@if mpc
13028TARGET-mpc=all
13029maybe-all-mpc: all-mpc
13030all-mpc: configure-mpc
13031 @r=`${PWD_COMMAND}`; export r; \
13032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13033 $(HOST_EXPORTS) \
13034 (cd $(HOST_SUBDIR)/mpc && \
b3676d82 13035 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13036 $(TARGET-mpc))
13037@endif mpc
13038
13039
13040
13041.PHONY: all-stage1-mpc maybe-all-stage1-mpc
13042.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
13043maybe-all-stage1-mpc:
13044maybe-clean-stage1-mpc:
13045@if mpc-bootstrap
13046maybe-all-stage1-mpc: all-stage1-mpc
13047all-stage1: all-stage1-mpc
13048TARGET-stage1-mpc = $(TARGET-mpc)
13049all-stage1-mpc: configure-stage1-mpc
13050 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
13051 @r=`${PWD_COMMAND}`; export r; \
13052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13053 TFLAGS="$(STAGE1_TFLAGS)"; \
13054 $(HOST_EXPORTS) \
13055 cd $(HOST_SUBDIR)/mpc && \
13056 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13057 CFLAGS="$(STAGE1_CFLAGS)" \
13058 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13059 LIBCFLAGS="$(LIBCFLAGS)" \
13060 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13061 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13062 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13063 $(EXTRA_HOST_FLAGS) \
13064 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13065 TFLAGS="$(STAGE1_TFLAGS)" \
13066 $(TARGET-stage1-mpc)
13067
13068maybe-clean-stage1-mpc: clean-stage1-mpc
13069clean-stage1: clean-stage1-mpc
13070clean-stage1-mpc:
13071 @if [ $(current_stage) = stage1 ]; then \
13072 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13073 else \
13074 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
13075 $(MAKE) stage1-start; \
13076 fi; \
13077 cd $(HOST_SUBDIR)/mpc && \
13078 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13079 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13080@endif mpc-bootstrap
13081
13082
13083.PHONY: all-stage2-mpc maybe-all-stage2-mpc
13084.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
13085maybe-all-stage2-mpc:
13086maybe-clean-stage2-mpc:
13087@if mpc-bootstrap
13088maybe-all-stage2-mpc: all-stage2-mpc
13089all-stage2: all-stage2-mpc
13090TARGET-stage2-mpc = $(TARGET-mpc)
13091all-stage2-mpc: configure-stage2-mpc
13092 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13093 @r=`${PWD_COMMAND}`; export r; \
13094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13095 TFLAGS="$(STAGE2_TFLAGS)"; \
13096 $(HOST_EXPORTS) \
13097 $(POSTSTAGE1_HOST_EXPORTS) \
13098 cd $(HOST_SUBDIR)/mpc && \
13099 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13100 CFLAGS="$(STAGE2_CFLAGS)" \
13101 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13102 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13103 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13104 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13105 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13106 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13107 TFLAGS="$(STAGE2_TFLAGS)" \
13108 $(TARGET-stage2-mpc)
13109
13110maybe-clean-stage2-mpc: clean-stage2-mpc
13111clean-stage2: clean-stage2-mpc
13112clean-stage2-mpc:
13113 @if [ $(current_stage) = stage2 ]; then \
13114 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13115 else \
13116 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
13117 $(MAKE) stage2-start; \
13118 fi; \
13119 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13120 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13121@endif mpc-bootstrap
13122
13123
13124.PHONY: all-stage3-mpc maybe-all-stage3-mpc
13125.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
13126maybe-all-stage3-mpc:
13127maybe-clean-stage3-mpc:
13128@if mpc-bootstrap
13129maybe-all-stage3-mpc: all-stage3-mpc
13130all-stage3: all-stage3-mpc
13131TARGET-stage3-mpc = $(TARGET-mpc)
13132all-stage3-mpc: configure-stage3-mpc
13133 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13134 @r=`${PWD_COMMAND}`; export r; \
13135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13136 TFLAGS="$(STAGE3_TFLAGS)"; \
13137 $(HOST_EXPORTS) \
13138 $(POSTSTAGE1_HOST_EXPORTS) \
13139 cd $(HOST_SUBDIR)/mpc && \
13140 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13141 CFLAGS="$(STAGE3_CFLAGS)" \
13142 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13143 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13144 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13145 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13146 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13147 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13148 TFLAGS="$(STAGE3_TFLAGS)" \
13149 $(TARGET-stage3-mpc)
13150
13151maybe-clean-stage3-mpc: clean-stage3-mpc
13152clean-stage3: clean-stage3-mpc
13153clean-stage3-mpc:
13154 @if [ $(current_stage) = stage3 ]; then \
13155 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13156 else \
13157 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
13158 $(MAKE) stage3-start; \
13159 fi; \
13160 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13161 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13162@endif mpc-bootstrap
13163
13164
13165.PHONY: all-stage4-mpc maybe-all-stage4-mpc
13166.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
13167maybe-all-stage4-mpc:
13168maybe-clean-stage4-mpc:
13169@if mpc-bootstrap
13170maybe-all-stage4-mpc: all-stage4-mpc
13171all-stage4: all-stage4-mpc
13172TARGET-stage4-mpc = $(TARGET-mpc)
13173all-stage4-mpc: configure-stage4-mpc
13174 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13175 @r=`${PWD_COMMAND}`; export r; \
13176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13177 TFLAGS="$(STAGE4_TFLAGS)"; \
13178 $(HOST_EXPORTS) \
13179 $(POSTSTAGE1_HOST_EXPORTS) \
13180 cd $(HOST_SUBDIR)/mpc && \
13181 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13182 CFLAGS="$(STAGE4_CFLAGS)" \
13183 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13184 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13185 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13186 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13187 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13188 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13189 TFLAGS="$(STAGE4_TFLAGS)" \
13190 $(TARGET-stage4-mpc)
13191
13192maybe-clean-stage4-mpc: clean-stage4-mpc
13193clean-stage4: clean-stage4-mpc
13194clean-stage4-mpc:
13195 @if [ $(current_stage) = stage4 ]; then \
13196 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13197 else \
13198 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
13199 $(MAKE) stage4-start; \
13200 fi; \
13201 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13202 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13203@endif mpc-bootstrap
13204
13205
13206.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
13207.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
13208maybe-all-stageprofile-mpc:
13209maybe-clean-stageprofile-mpc:
13210@if mpc-bootstrap
13211maybe-all-stageprofile-mpc: all-stageprofile-mpc
13212all-stageprofile: all-stageprofile-mpc
13213TARGET-stageprofile-mpc = $(TARGET-mpc)
13214all-stageprofile-mpc: configure-stageprofile-mpc
13215 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13216 @r=`${PWD_COMMAND}`; export r; \
13217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13218 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13219 $(HOST_EXPORTS) \
13220 $(POSTSTAGE1_HOST_EXPORTS) \
13221 cd $(HOST_SUBDIR)/mpc && \
13222 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13223 CFLAGS="$(STAGEprofile_CFLAGS)" \
13224 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13225 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13226 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13227 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13228 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13229 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13230 TFLAGS="$(STAGEprofile_TFLAGS)" \
13231 $(TARGET-stageprofile-mpc)
13232
13233maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
13234clean-stageprofile: clean-stageprofile-mpc
13235clean-stageprofile-mpc:
13236 @if [ $(current_stage) = stageprofile ]; then \
13237 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13238 else \
13239 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
13240 $(MAKE) stageprofile-start; \
13241 fi; \
13242 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13243 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13244@endif mpc-bootstrap
13245
13246
13247.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
13248.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
13249maybe-all-stagefeedback-mpc:
13250maybe-clean-stagefeedback-mpc:
13251@if mpc-bootstrap
13252maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
13253all-stagefeedback: all-stagefeedback-mpc
13254TARGET-stagefeedback-mpc = $(TARGET-mpc)
13255all-stagefeedback-mpc: configure-stagefeedback-mpc
13256 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13257 @r=`${PWD_COMMAND}`; export r; \
13258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13259 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13260 $(HOST_EXPORTS) \
13261 $(POSTSTAGE1_HOST_EXPORTS) \
13262 cd $(HOST_SUBDIR)/mpc && \
13263 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13264 CFLAGS="$(STAGEfeedback_CFLAGS)" \
13265 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13266 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13267 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13268 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13269 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13270 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
13271 TFLAGS="$(STAGEfeedback_TFLAGS)" \
13272 $(TARGET-stagefeedback-mpc)
13273
13274maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
13275clean-stagefeedback: clean-stagefeedback-mpc
13276clean-stagefeedback-mpc:
13277 @if [ $(current_stage) = stagefeedback ]; then \
13278 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13279 else \
13280 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
13281 $(MAKE) stagefeedback-start; \
13282 fi; \
13283 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13284 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13285@endif mpc-bootstrap
13286
13287
13288
13289
13290
13291.PHONY: check-mpc maybe-check-mpc
13292maybe-check-mpc:
13293@if mpc
13294maybe-check-mpc: check-mpc
13295
13296check-mpc:
13297 @: $(MAKE); $(unstage)
13298 @r=`${PWD_COMMAND}`; export r; \
13299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 13300 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 13301 (cd $(HOST_SUBDIR)/mpc && \
f91ca6bc 13302 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf
JM
13303
13304@endif mpc
13305
13306.PHONY: install-mpc maybe-install-mpc
13307maybe-install-mpc:
13308@if mpc
13309maybe-install-mpc: install-mpc
13310
13311install-mpc:
13312
13313@endif mpc
13314
13315.PHONY: install-strip-mpc maybe-install-strip-mpc
13316maybe-install-strip-mpc:
13317@if mpc
13318maybe-install-strip-mpc: install-strip-mpc
13319
13320install-strip-mpc:
13321
13322@endif mpc
13323
13324# Other targets (info, dvi, pdf, etc.)
13325
13326.PHONY: maybe-info-mpc info-mpc
13327maybe-info-mpc:
13328@if mpc
13329maybe-info-mpc: info-mpc
13330
13331info-mpc: \
13332 configure-mpc
13333 @[ -f ./mpc/Makefile ] || exit 0; \
13334 r=`${PWD_COMMAND}`; export r; \
a4fd3374
DD
13335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13336 $(HOST_EXPORTS) \
13337 for flag in $(EXTRA_HOST_FLAGS) ; do \
13338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13339 done; \
22121df0 13340 echo "Doing info in mpc"; \
a90ef4bf 13341 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13344 "RANLIB=$${RANLIB}" \
0c24b341 13345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13346 info) \
13347 || exit 1
d3ed111c 13348
a90ef4bf 13349@endif mpc
d3ed111c 13350
a90ef4bf
JM
13351.PHONY: maybe-dvi-mpc dvi-mpc
13352maybe-dvi-mpc:
13353@if mpc
13354maybe-dvi-mpc: dvi-mpc
d3ed111c 13355
a90ef4bf
JM
13356dvi-mpc: \
13357 configure-mpc
13358 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13359 r=`${PWD_COMMAND}`; export r; \
13360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13361 $(HOST_EXPORTS) \
13362 for flag in $(EXTRA_HOST_FLAGS) ; do \
13363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13364 done; \
22121df0 13365 echo "Doing dvi in mpc"; \
a90ef4bf 13366 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13369 "RANLIB=$${RANLIB}" \
0c24b341 13370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13371 dvi) \
13372 || exit 1
d3ed111c 13373
a90ef4bf 13374@endif mpc
d3ed111c 13375
a90ef4bf
JM
13376.PHONY: maybe-pdf-mpc pdf-mpc
13377maybe-pdf-mpc:
13378@if mpc
13379maybe-pdf-mpc: pdf-mpc
56a8fe78 13380
a90ef4bf
JM
13381pdf-mpc: \
13382 configure-mpc
13383 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13384 r=`${PWD_COMMAND}`; export r; \
13385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13386 $(HOST_EXPORTS) \
13387 for flag in $(EXTRA_HOST_FLAGS) ; do \
13388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13389 done; \
22121df0 13390 echo "Doing pdf in mpc"; \
a90ef4bf 13391 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13394 "RANLIB=$${RANLIB}" \
0c24b341 13395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13396 pdf) \
13397 || exit 1
56a8fe78 13398
a90ef4bf 13399@endif mpc
56a8fe78 13400
a90ef4bf
JM
13401.PHONY: maybe-html-mpc html-mpc
13402maybe-html-mpc:
13403@if mpc
13404maybe-html-mpc: html-mpc
6d389afc 13405
a90ef4bf
JM
13406html-mpc: \
13407 configure-mpc
13408 @[ -f ./mpc/Makefile ] || exit 0; \
6d389afc
MS
13409 r=`${PWD_COMMAND}`; export r; \
13410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
13411 $(HOST_EXPORTS) \
13412 for flag in $(EXTRA_HOST_FLAGS) ; do \
13413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13414 done; \
22121df0 13415 echo "Doing html in mpc"; \
a90ef4bf 13416 (cd $(HOST_SUBDIR)/mpc && \
6d389afc
MS
13417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13419 "RANLIB=$${RANLIB}" \
0c24b341 13420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
13421 html) \
13422 || exit 1
13423
a90ef4bf 13424@endif mpc
d3ed111c 13425
a90ef4bf
JM
13426.PHONY: maybe-TAGS-mpc TAGS-mpc
13427maybe-TAGS-mpc:
13428@if mpc
13429maybe-TAGS-mpc: TAGS-mpc
d3ed111c 13430
a90ef4bf
JM
13431TAGS-mpc: \
13432 configure-mpc
13433 @[ -f ./mpc/Makefile ] || exit 0; \
13434 r=`${PWD_COMMAND}`; export r; \
13435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4fd3374
DD
13436 $(HOST_EXPORTS) \
13437 for flag in $(EXTRA_HOST_FLAGS) ; do \
13438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13439 done; \
22121df0 13440 echo "Doing TAGS in mpc"; \
a90ef4bf
JM
13441 (cd $(HOST_SUBDIR)/mpc && \
13442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13444 "RANLIB=$${RANLIB}" \
13445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
13446 TAGS) \
13447 || exit 1
13448
13449@endif mpc
13450
13451.PHONY: maybe-install-info-mpc install-info-mpc
13452maybe-install-info-mpc:
13453@if mpc
13454maybe-install-info-mpc: install-info-mpc
13455
13456install-info-mpc: \
13457 configure-mpc \
13458 info-mpc
13459 @[ -f ./mpc/Makefile ] || exit 0; \
13460 r=`${PWD_COMMAND}`; export r; \
13461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13462 $(HOST_EXPORTS) \
13463 for flag in $(EXTRA_HOST_FLAGS) ; do \
13464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13465 done; \
22121df0 13466 echo "Doing install-info in mpc"; \
a90ef4bf 13467 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13470 "RANLIB=$${RANLIB}" \
0c24b341 13471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13472 install-info) \
13473 || exit 1
d3ed111c 13474
a90ef4bf 13475@endif mpc
d3ed111c 13476
a90ef4bf
JM
13477.PHONY: maybe-install-pdf-mpc install-pdf-mpc
13478maybe-install-pdf-mpc:
13479@if mpc
13480maybe-install-pdf-mpc: install-pdf-mpc
a3ca38d2 13481
a90ef4bf
JM
13482install-pdf-mpc: \
13483 configure-mpc \
13484 pdf-mpc
13485 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13486 r=`${PWD_COMMAND}`; export r; \
13487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13488 $(HOST_EXPORTS) \
13489 for flag in $(EXTRA_HOST_FLAGS) ; do \
13490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13491 done; \
22121df0 13492 echo "Doing install-pdf in mpc"; \
a90ef4bf 13493 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13496 "RANLIB=$${RANLIB}" \
0c24b341 13497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13498 install-pdf) \
13499 || exit 1
a3ca38d2 13500
a90ef4bf 13501@endif mpc
a3ca38d2 13502
a90ef4bf
JM
13503.PHONY: maybe-install-html-mpc install-html-mpc
13504maybe-install-html-mpc:
13505@if mpc
13506maybe-install-html-mpc: install-html-mpc
108a6f8e 13507
a90ef4bf
JM
13508install-html-mpc: \
13509 configure-mpc \
13510 html-mpc
13511 @[ -f ./mpc/Makefile ] || exit 0; \
108a6f8e
CD
13512 r=`${PWD_COMMAND}`; export r; \
13513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13514 $(HOST_EXPORTS) \
13515 for flag in $(EXTRA_HOST_FLAGS) ; do \
13516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13517 done; \
22121df0 13518 echo "Doing install-html in mpc"; \
a90ef4bf 13519 (cd $(HOST_SUBDIR)/mpc && \
108a6f8e
CD
13520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13522 "RANLIB=$${RANLIB}" \
0c24b341 13523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
13524 install-html) \
13525 || exit 1
13526
a90ef4bf 13527@endif mpc
108a6f8e 13528
a90ef4bf
JM
13529.PHONY: maybe-installcheck-mpc installcheck-mpc
13530maybe-installcheck-mpc:
13531@if mpc
13532maybe-installcheck-mpc: installcheck-mpc
d3ed111c 13533
a90ef4bf
JM
13534installcheck-mpc: \
13535 configure-mpc
13536 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13537 r=`${PWD_COMMAND}`; export r; \
13538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13539 $(HOST_EXPORTS) \
13540 for flag in $(EXTRA_HOST_FLAGS) ; do \
13541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13542 done; \
22121df0 13543 echo "Doing installcheck in mpc"; \
a90ef4bf 13544 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13547 "RANLIB=$${RANLIB}" \
0c24b341 13548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13549 installcheck) \
13550 || exit 1
d3ed111c 13551
a90ef4bf 13552@endif mpc
d3ed111c 13553
a90ef4bf
JM
13554.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
13555maybe-mostlyclean-mpc:
13556@if mpc
13557maybe-mostlyclean-mpc: mostlyclean-mpc
d3ed111c 13558
a90ef4bf
JM
13559mostlyclean-mpc:
13560 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13561 r=`${PWD_COMMAND}`; export r; \
13562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13563 $(HOST_EXPORTS) \
13564 for flag in $(EXTRA_HOST_FLAGS) ; do \
13565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13566 done; \
22121df0 13567 echo "Doing mostlyclean in mpc"; \
a90ef4bf 13568 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13571 "RANLIB=$${RANLIB}" \
0c24b341 13572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13573 mostlyclean) \
13574 || exit 1
13575
a90ef4bf 13576@endif mpc
d3ed111c 13577
a90ef4bf
JM
13578.PHONY: maybe-clean-mpc clean-mpc
13579maybe-clean-mpc:
13580@if mpc
13581maybe-clean-mpc: clean-mpc
d3ed111c 13582
a90ef4bf
JM
13583clean-mpc:
13584 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13585 r=`${PWD_COMMAND}`; export r; \
13586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13587 $(HOST_EXPORTS) \
13588 for flag in $(EXTRA_HOST_FLAGS) ; do \
13589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13590 done; \
22121df0 13591 echo "Doing clean in mpc"; \
a90ef4bf 13592 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13595 "RANLIB=$${RANLIB}" \
0c24b341 13596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13597 clean) \
13598 || exit 1
13599
a90ef4bf 13600@endif mpc
d3ed111c 13601
a90ef4bf
JM
13602.PHONY: maybe-distclean-mpc distclean-mpc
13603maybe-distclean-mpc:
13604@if mpc
13605maybe-distclean-mpc: distclean-mpc
d3ed111c 13606
a90ef4bf
JM
13607distclean-mpc:
13608 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13609 r=`${PWD_COMMAND}`; export r; \
13610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13611 $(HOST_EXPORTS) \
13612 for flag in $(EXTRA_HOST_FLAGS) ; do \
13613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13614 done; \
22121df0 13615 echo "Doing distclean in mpc"; \
a90ef4bf 13616 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13619 "RANLIB=$${RANLIB}" \
0c24b341 13620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13621 distclean) \
13622 || exit 1
13623
a90ef4bf 13624@endif mpc
d3ed111c 13625
a90ef4bf
JM
13626.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
13627maybe-maintainer-clean-mpc:
13628@if mpc
13629maybe-maintainer-clean-mpc: maintainer-clean-mpc
d3ed111c 13630
a90ef4bf
JM
13631maintainer-clean-mpc:
13632 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13633 r=`${PWD_COMMAND}`; export r; \
13634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13635 $(HOST_EXPORTS) \
13636 for flag in $(EXTRA_HOST_FLAGS) ; do \
13637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13638 done; \
22121df0 13639 echo "Doing maintainer-clean in mpc"; \
a90ef4bf 13640 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13643 "RANLIB=$${RANLIB}" \
0c24b341 13644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13645 maintainer-clean) \
13646 || exit 1
13647
a90ef4bf 13648@endif mpc
d3ed111c
GK
13649
13650
a7254363 13651
7ec59b9e
L
13652.PHONY: configure-isl maybe-configure-isl
13653maybe-configure-isl:
4f0ef2d8 13654@if gcc-bootstrap
7ec59b9e 13655configure-isl: stage_current
4f0ef2d8 13656@endif gcc-bootstrap
7ec59b9e
L
13657@if isl
13658maybe-configure-isl: configure-isl
13659configure-isl:
c52c6897 13660 @r=`${PWD_COMMAND}`; export r; \
4fa63067 13661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e 13662 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
22121df0 13663 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
1f53ca9a 13664 $(HOST_EXPORTS) \
7ec59b9e
L
13665 echo Configuring in $(HOST_SUBDIR)/isl; \
13666 cd "$(HOST_SUBDIR)/isl" || exit 1; \
4fa63067 13667 case $(srcdir) in \
b00612cc 13668 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13669 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
b00612cc 13670 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13671 esac; \
1b6c0831
L
13672 module_srcdir=isl; \
13673 $(SHELL) \
13674 $$s/$$module_srcdir/configure \
13675 --srcdir=$${topdir}/$$module_srcdir \
4b900473 13676 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13677 --target=${target_alias} --disable-shared @extra_isl_gmp_configure_flags@ \
4fa63067 13678 || exit 1
7ec59b9e 13679@endif isl
4fa63067 13680
a7254363
PB
13681
13682
7ec59b9e
L
13683.PHONY: configure-stage1-isl maybe-configure-stage1-isl
13684maybe-configure-stage1-isl:
13685@if isl-bootstrap
13686maybe-configure-stage1-isl: configure-stage1-isl
13687configure-stage1-isl:
a90ef4bf 13688 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
7ec59b9e 13689 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13690 @r=`${PWD_COMMAND}`; export r; \
13691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13692 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 13693 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13694 $(HOST_EXPORTS) \
13695 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13696 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13697 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
13698 echo Configuring stage 1 in $(HOST_SUBDIR)/isl; \
13699 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13700 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13701 case $(srcdir) in \
13702 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13703 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13704 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13705 esac; \
1b6c0831
L
13706 module_srcdir=isl; \
13707 $(SHELL) $$s/$$module_srcdir/configure \
13708 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13709 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13710 --target=${target_alias} \
13711 \
a90ef4bf 13712 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e
L
13713 --disable-shared @extra_isl_gmp_configure_flags@
13714@endif isl-bootstrap
13715
13716.PHONY: configure-stage2-isl maybe-configure-stage2-isl
13717maybe-configure-stage2-isl:
13718@if isl-bootstrap
13719maybe-configure-stage2-isl: configure-stage2-isl
13720configure-stage2-isl:
a90ef4bf 13721 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
7ec59b9e 13722 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13723 @r=`${PWD_COMMAND}`; export r; \
13724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13725 TFLAGS="$(STAGE2_TFLAGS)"; \
7ec59b9e 13726 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13727 $(HOST_EXPORTS) \
13728 $(POSTSTAGE1_HOST_EXPORTS) \
13729 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13730 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13731 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13732 echo Configuring stage 2 in $(HOST_SUBDIR)/isl; \
13733 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13734 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13735 case $(srcdir) in \
13736 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13737 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13738 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13739 esac; \
1b6c0831
L
13740 module_srcdir=isl; \
13741 $(SHELL) $$s/$$module_srcdir/configure \
13742 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13743 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13744 --target=${target_alias} \
22121df0 13745 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13746 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e
L
13747 --disable-shared @extra_isl_gmp_configure_flags@
13748@endif isl-bootstrap
13749
13750.PHONY: configure-stage3-isl maybe-configure-stage3-isl
13751maybe-configure-stage3-isl:
13752@if isl-bootstrap
13753maybe-configure-stage3-isl: configure-stage3-isl
13754configure-stage3-isl:
a90ef4bf 13755 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
7ec59b9e 13756 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
4fa63067
NN
13757 @r=`${PWD_COMMAND}`; export r; \
13758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13759 TFLAGS="$(STAGE3_TFLAGS)"; \
7ec59b9e 13760 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13761 $(HOST_EXPORTS) \
13762 $(POSTSTAGE1_HOST_EXPORTS) \
13763 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13764 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13765 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13766 echo Configuring stage 3 in $(HOST_SUBDIR)/isl; \
13767 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13768 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13769 case $(srcdir) in \
13770 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13771 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13772 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13773 esac; \
1b6c0831
L
13774 module_srcdir=isl; \
13775 $(SHELL) $$s/$$module_srcdir/configure \
13776 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13777 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13778 --target=${target_alias} \
22121df0 13779 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13780 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e
L
13781 --disable-shared @extra_isl_gmp_configure_flags@
13782@endif isl-bootstrap
13783
13784.PHONY: configure-stage4-isl maybe-configure-stage4-isl
13785maybe-configure-stage4-isl:
13786@if isl-bootstrap
13787maybe-configure-stage4-isl: configure-stage4-isl
13788configure-stage4-isl:
a90ef4bf 13789 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
7ec59b9e 13790 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13791 @r=`${PWD_COMMAND}`; export r; \
13792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13793 TFLAGS="$(STAGE4_TFLAGS)"; \
7ec59b9e 13794 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13795 $(HOST_EXPORTS) \
13796 $(POSTSTAGE1_HOST_EXPORTS) \
13797 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13798 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13799 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13800 echo Configuring stage 4 in $(HOST_SUBDIR)/isl; \
13801 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13802 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13803 case $(srcdir) in \
13804 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13805 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13806 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13807 esac; \
1b6c0831
L
13808 module_srcdir=isl; \
13809 $(SHELL) $$s/$$module_srcdir/configure \
13810 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13811 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13812 --target=${target_alias} \
22121df0 13813 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13814 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e
L
13815 --disable-shared @extra_isl_gmp_configure_flags@
13816@endif isl-bootstrap
13817
13818.PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl
13819maybe-configure-stageprofile-isl:
13820@if isl-bootstrap
13821maybe-configure-stageprofile-isl: configure-stageprofile-isl
13822configure-stageprofile-isl:
a90ef4bf 13823 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
7ec59b9e 13824 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13825 @r=`${PWD_COMMAND}`; export r; \
13826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13827 TFLAGS="$(STAGEprofile_TFLAGS)"; \
7ec59b9e 13828 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13829 $(HOST_EXPORTS) \
13830 $(POSTSTAGE1_HOST_EXPORTS) \
13831 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13832 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13833 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13834 echo Configuring stage profile in $(HOST_SUBDIR)/isl; \
13835 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13836 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13837 case $(srcdir) in \
13838 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13839 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13840 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13841 esac; \
1b6c0831
L
13842 module_srcdir=isl; \
13843 $(SHELL) $$s/$$module_srcdir/configure \
13844 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13845 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13846 --target=${target_alias} \
22121df0 13847 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13848 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e
L
13849 --disable-shared @extra_isl_gmp_configure_flags@
13850@endif isl-bootstrap
13851
13852.PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl
13853maybe-configure-stagefeedback-isl:
13854@if isl-bootstrap
13855maybe-configure-stagefeedback-isl: configure-stagefeedback-isl
13856configure-stagefeedback-isl:
a90ef4bf 13857 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
7ec59b9e 13858 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13859 @r=`${PWD_COMMAND}`; export r; \
13860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13861 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
7ec59b9e 13862 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13863 $(HOST_EXPORTS) \
13864 $(POSTSTAGE1_HOST_EXPORTS) \
13865 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13866 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13867 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13868 echo Configuring stage feedback in $(HOST_SUBDIR)/isl; \
13869 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13870 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13871 case $(srcdir) in \
13872 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13873 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13874 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13875 esac; \
1b6c0831
L
13876 module_srcdir=isl; \
13877 $(SHELL) $$s/$$module_srcdir/configure \
13878 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13879 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13880 --target=${target_alias} \
22121df0 13881 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13882 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e
L
13883 --disable-shared @extra_isl_gmp_configure_flags@
13884@endif isl-bootstrap
d545f33b 13885
4fa63067 13886
4fa63067
NN
13887
13888
4fa63067 13889
7ec59b9e
L
13890.PHONY: all-isl maybe-all-isl
13891maybe-all-isl:
a90ef4bf 13892@if gcc-bootstrap
7ec59b9e 13893all-isl: stage_current
a90ef4bf 13894@endif gcc-bootstrap
7ec59b9e
L
13895@if isl
13896TARGET-isl=all
13897maybe-all-isl: all-isl
13898all-isl: configure-isl
4fa63067
NN
13899 @r=`${PWD_COMMAND}`; export r; \
13900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13901 $(HOST_EXPORTS) \
7ec59b9e 13902 (cd $(HOST_SUBDIR)/isl && \
b3676d82 13903 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \
7ec59b9e
L
13904 $(TARGET-isl))
13905@endif isl
13906
13907
13908
13909.PHONY: all-stage1-isl maybe-all-stage1-isl
13910.PHONY: clean-stage1-isl maybe-clean-stage1-isl
13911maybe-all-stage1-isl:
13912maybe-clean-stage1-isl:
13913@if isl-bootstrap
13914maybe-all-stage1-isl: all-stage1-isl
13915all-stage1: all-stage1-isl
13916TARGET-stage1-isl = $(TARGET-isl)
13917all-stage1-isl: configure-stage1-isl
a90ef4bf 13918 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9b980aa1
RW
13919 @r=`${PWD_COMMAND}`; export r; \
13920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13921 TFLAGS="$(STAGE1_TFLAGS)"; \
13922 $(HOST_EXPORTS) \
7ec59b9e 13923 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13924 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13925 CFLAGS="$(STAGE1_CFLAGS)" \
13926 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13927 LIBCFLAGS="$(LIBCFLAGS)" \
13928 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13929 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13930 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13931 $(EXTRA_HOST_FLAGS) \
13932 $(STAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13933 TFLAGS="$(STAGE1_TFLAGS)" \
7ec59b9e 13934 $(TARGET-stage1-isl)
9b980aa1 13935
7ec59b9e
L
13936maybe-clean-stage1-isl: clean-stage1-isl
13937clean-stage1: clean-stage1-isl
13938clean-stage1-isl:
a90ef4bf 13939 @if [ $(current_stage) = stage1 ]; then \
7ec59b9e 13940 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13941 else \
7ec59b9e 13942 [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13943 $(MAKE) stage1-start; \
13944 fi; \
7ec59b9e 13945 cd $(HOST_SUBDIR)/isl && \
a90ef4bf 13946 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13947 $(STAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13948@endif isl-bootstrap
13949
13950
13951.PHONY: all-stage2-isl maybe-all-stage2-isl
13952.PHONY: clean-stage2-isl maybe-clean-stage2-isl
13953maybe-all-stage2-isl:
13954maybe-clean-stage2-isl:
13955@if isl-bootstrap
13956maybe-all-stage2-isl: all-stage2-isl
13957all-stage2: all-stage2-isl
13958TARGET-stage2-isl = $(TARGET-isl)
13959all-stage2-isl: configure-stage2-isl
a90ef4bf
JM
13960 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13961 @r=`${PWD_COMMAND}`; export r; \
13962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13963 TFLAGS="$(STAGE2_TFLAGS)"; \
13964 $(HOST_EXPORTS) \
13965 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 13966 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
13967 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13968 CFLAGS="$(STAGE2_CFLAGS)" \
13969 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13970 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13971 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13972 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13973 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 13974 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 13975 TFLAGS="$(STAGE2_TFLAGS)" \
7ec59b9e 13976 $(TARGET-stage2-isl)
a90ef4bf 13977
7ec59b9e
L
13978maybe-clean-stage2-isl: clean-stage2-isl
13979clean-stage2: clean-stage2-isl
13980clean-stage2-isl:
a90ef4bf 13981 @if [ $(current_stage) = stage2 ]; then \
7ec59b9e 13982 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13983 else \
7ec59b9e 13984 [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13985 $(MAKE) stage2-start; \
13986 fi; \
7ec59b9e 13987 cd $(HOST_SUBDIR)/isl && \
b3676d82 13988 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13989@endif isl-bootstrap
13990
13991
13992.PHONY: all-stage3-isl maybe-all-stage3-isl
13993.PHONY: clean-stage3-isl maybe-clean-stage3-isl
13994maybe-all-stage3-isl:
13995maybe-clean-stage3-isl:
13996@if isl-bootstrap
13997maybe-all-stage3-isl: all-stage3-isl
13998all-stage3: all-stage3-isl
13999TARGET-stage3-isl = $(TARGET-isl)
14000all-stage3-isl: configure-stage3-isl
a90ef4bf
JM
14001 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
14002 @r=`${PWD_COMMAND}`; export r; \
14003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14004 TFLAGS="$(STAGE3_TFLAGS)"; \
14005 $(HOST_EXPORTS) \
14006 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14007 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14008 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14009 CFLAGS="$(STAGE3_CFLAGS)" \
14010 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
14011 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14012 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14013 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14014 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14015 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14016 TFLAGS="$(STAGE3_TFLAGS)" \
7ec59b9e 14017 $(TARGET-stage3-isl)
a90ef4bf 14018
7ec59b9e
L
14019maybe-clean-stage3-isl: clean-stage3-isl
14020clean-stage3: clean-stage3-isl
14021clean-stage3-isl:
a90ef4bf 14022 @if [ $(current_stage) = stage3 ]; then \
7ec59b9e 14023 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14024 else \
7ec59b9e 14025 [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14026 $(MAKE) stage3-start; \
14027 fi; \
7ec59b9e 14028 cd $(HOST_SUBDIR)/isl && \
b3676d82 14029 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14030@endif isl-bootstrap
14031
14032
14033.PHONY: all-stage4-isl maybe-all-stage4-isl
14034.PHONY: clean-stage4-isl maybe-clean-stage4-isl
14035maybe-all-stage4-isl:
14036maybe-clean-stage4-isl:
14037@if isl-bootstrap
14038maybe-all-stage4-isl: all-stage4-isl
14039all-stage4: all-stage4-isl
14040TARGET-stage4-isl = $(TARGET-isl)
14041all-stage4-isl: configure-stage4-isl
a90ef4bf
JM
14042 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
14043 @r=`${PWD_COMMAND}`; export r; \
14044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14045 TFLAGS="$(STAGE4_TFLAGS)"; \
14046 $(HOST_EXPORTS) \
14047 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14048 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14049 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14050 CFLAGS="$(STAGE4_CFLAGS)" \
14051 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
14052 LIBCFLAGS="$(STAGE4_CFLAGS)" \
14053 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14054 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14055 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14056 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14057 TFLAGS="$(STAGE4_TFLAGS)" \
7ec59b9e 14058 $(TARGET-stage4-isl)
a90ef4bf 14059
7ec59b9e
L
14060maybe-clean-stage4-isl: clean-stage4-isl
14061clean-stage4: clean-stage4-isl
14062clean-stage4-isl:
a90ef4bf 14063 @if [ $(current_stage) = stage4 ]; then \
7ec59b9e 14064 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14065 else \
7ec59b9e 14066 [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14067 $(MAKE) stage4-start; \
14068 fi; \
7ec59b9e 14069 cd $(HOST_SUBDIR)/isl && \
b3676d82 14070 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14071@endif isl-bootstrap
14072
14073
14074.PHONY: all-stageprofile-isl maybe-all-stageprofile-isl
14075.PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl
14076maybe-all-stageprofile-isl:
14077maybe-clean-stageprofile-isl:
14078@if isl-bootstrap
14079maybe-all-stageprofile-isl: all-stageprofile-isl
14080all-stageprofile: all-stageprofile-isl
14081TARGET-stageprofile-isl = $(TARGET-isl)
14082all-stageprofile-isl: configure-stageprofile-isl
a90ef4bf
JM
14083 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
14084 @r=`${PWD_COMMAND}`; export r; \
14085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14086 TFLAGS="$(STAGEprofile_TFLAGS)"; \
14087 $(HOST_EXPORTS) \
14088 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14089 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14090 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14091 CFLAGS="$(STAGEprofile_CFLAGS)" \
14092 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
14093 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14094 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14095 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14096 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14097 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14098 TFLAGS="$(STAGEprofile_TFLAGS)" \
7ec59b9e 14099 $(TARGET-stageprofile-isl)
a90ef4bf 14100
7ec59b9e
L
14101maybe-clean-stageprofile-isl: clean-stageprofile-isl
14102clean-stageprofile: clean-stageprofile-isl
14103clean-stageprofile-isl:
a90ef4bf 14104 @if [ $(current_stage) = stageprofile ]; then \
7ec59b9e 14105 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14106 else \
7ec59b9e 14107 [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14108 $(MAKE) stageprofile-start; \
14109 fi; \
7ec59b9e 14110 cd $(HOST_SUBDIR)/isl && \
b3676d82 14111 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14112@endif isl-bootstrap
14113
14114
14115.PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl
14116.PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl
14117maybe-all-stagefeedback-isl:
14118maybe-clean-stagefeedback-isl:
14119@if isl-bootstrap
14120maybe-all-stagefeedback-isl: all-stagefeedback-isl
14121all-stagefeedback: all-stagefeedback-isl
14122TARGET-stagefeedback-isl = $(TARGET-isl)
14123all-stagefeedback-isl: configure-stagefeedback-isl
a90ef4bf
JM
14124 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
14125 @r=`${PWD_COMMAND}`; export r; \
14126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14127 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
14128 $(HOST_EXPORTS) \
14129 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14130 cd $(HOST_SUBDIR)/isl && \
a90ef4bf
JM
14131 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14132 CFLAGS="$(STAGEfeedback_CFLAGS)" \
14133 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
14134 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14135 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14136 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14137 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14138 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
a90ef4bf 14139 TFLAGS="$(STAGEfeedback_TFLAGS)" \
7ec59b9e 14140 $(TARGET-stagefeedback-isl)
a90ef4bf 14141
7ec59b9e
L
14142maybe-clean-stagefeedback-isl: clean-stagefeedback-isl
14143clean-stagefeedback: clean-stagefeedback-isl
14144clean-stagefeedback-isl:
a90ef4bf 14145 @if [ $(current_stage) = stagefeedback ]; then \
7ec59b9e 14146 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14147 else \
7ec59b9e 14148 [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14149 $(MAKE) stagefeedback-start; \
14150 fi; \
7ec59b9e 14151 cd $(HOST_SUBDIR)/isl && \
b3676d82 14152 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e 14153@endif isl-bootstrap
a90ef4bf
JM
14154
14155
14156
14157
14158
7ec59b9e
L
14159.PHONY: check-isl maybe-check-isl
14160maybe-check-isl:
14161@if isl
14162maybe-check-isl: check-isl
a90ef4bf 14163
7ec59b9e 14164check-isl:
0aed8855 14165 @: $(MAKE); $(unstage)
a90ef4bf
JM
14166 @r=`${PWD_COMMAND}`; export r; \
14167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 14168 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
7ec59b9e 14169 (cd $(HOST_SUBDIR)/isl && \
f91ca6bc 14170 $(MAKE) $(FLAGS_TO_PASS) V=1 $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf 14171
7ec59b9e 14172@endif isl
a90ef4bf 14173
7ec59b9e
L
14174.PHONY: install-isl maybe-install-isl
14175maybe-install-isl:
14176@if isl
14177maybe-install-isl: install-isl
a90ef4bf 14178
7ec59b9e 14179install-isl:
a90ef4bf 14180
7ec59b9e 14181@endif isl
a90ef4bf 14182
7ec59b9e
L
14183.PHONY: install-strip-isl maybe-install-strip-isl
14184maybe-install-strip-isl:
14185@if isl
14186maybe-install-strip-isl: install-strip-isl
a90ef4bf 14187
7ec59b9e 14188install-strip-isl:
a90ef4bf 14189
7ec59b9e 14190@endif isl
a90ef4bf
JM
14191
14192# Other targets (info, dvi, pdf, etc.)
14193
7ec59b9e
L
14194.PHONY: maybe-info-isl info-isl
14195maybe-info-isl:
14196@if isl
14197maybe-info-isl: info-isl
a90ef4bf 14198
7ec59b9e
L
14199info-isl: \
14200 configure-isl
14201 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14202 r=`${PWD_COMMAND}`; export r; \
14203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14204 $(HOST_EXPORTS) \
7ec59b9e 14205 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14207 done; \
22121df0 14208 echo "Doing info in isl"; \
7ec59b9e 14209 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14212 "RANLIB=$${RANLIB}" \
0c24b341 14213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14214 info) \
2a4cbe27
NN
14215 || exit 1
14216
7ec59b9e 14217@endif isl
2a4cbe27 14218
7ec59b9e
L
14219.PHONY: maybe-dvi-isl dvi-isl
14220maybe-dvi-isl:
14221@if isl
14222maybe-dvi-isl: dvi-isl
2a4cbe27 14223
7ec59b9e
L
14224dvi-isl: \
14225 configure-isl
14226 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14227 r=`${PWD_COMMAND}`; export r; \
14228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14229 $(HOST_EXPORTS) \
7ec59b9e 14230 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14232 done; \
22121df0 14233 echo "Doing dvi in isl"; \
7ec59b9e 14234 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14237 "RANLIB=$${RANLIB}" \
0c24b341 14238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14239 dvi) \
2a4cbe27
NN
14240 || exit 1
14241
7ec59b9e 14242@endif isl
2a4cbe27 14243
7ec59b9e
L
14244.PHONY: maybe-pdf-isl pdf-isl
14245maybe-pdf-isl:
14246@if isl
14247maybe-pdf-isl: pdf-isl
56a8fe78 14248
7ec59b9e
L
14249pdf-isl: \
14250 configure-isl
14251 @[ -f ./isl/Makefile ] || exit 0; \
56a8fe78
DD
14252 r=`${PWD_COMMAND}`; export r; \
14253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14254 $(HOST_EXPORTS) \
7ec59b9e 14255 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
56a8fe78
DD
14256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14257 done; \
22121df0 14258 echo "Doing pdf in isl"; \
7ec59b9e 14259 (cd $(HOST_SUBDIR)/isl && \
56a8fe78
DD
14260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14262 "RANLIB=$${RANLIB}" \
0c24b341 14263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
14264 pdf) \
14265 || exit 1
14266
7ec59b9e 14267@endif isl
56a8fe78 14268
7ec59b9e
L
14269.PHONY: maybe-html-isl html-isl
14270maybe-html-isl:
14271@if isl
14272maybe-html-isl: html-isl
6d389afc 14273
7ec59b9e
L
14274html-isl: \
14275 configure-isl
14276 @[ -f ./isl/Makefile ] || exit 0; \
6d389afc
MS
14277 r=`${PWD_COMMAND}`; export r; \
14278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 14279 $(HOST_EXPORTS) \
7ec59b9e 14280 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
6d389afc
MS
14281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14282 done; \
22121df0 14283 echo "Doing html in isl"; \
7ec59b9e 14284 (cd $(HOST_SUBDIR)/isl && \
6d389afc
MS
14285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14287 "RANLIB=$${RANLIB}" \
0c24b341 14288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
14289 html) \
14290 || exit 1
14291
7ec59b9e 14292@endif isl
6d389afc 14293
7ec59b9e
L
14294.PHONY: maybe-TAGS-isl TAGS-isl
14295maybe-TAGS-isl:
14296@if isl
14297maybe-TAGS-isl: TAGS-isl
2a4cbe27 14298
7ec59b9e
L
14299TAGS-isl: \
14300 configure-isl
14301 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14302 r=`${PWD_COMMAND}`; export r; \
14303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14304 $(HOST_EXPORTS) \
7ec59b9e 14305 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14307 done; \
22121df0 14308 echo "Doing TAGS in isl"; \
7ec59b9e 14309 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14312 "RANLIB=$${RANLIB}" \
0c24b341 14313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14314 TAGS) \
2a4cbe27
NN
14315 || exit 1
14316
7ec59b9e 14317@endif isl
2a4cbe27 14318
7ec59b9e
L
14319.PHONY: maybe-install-info-isl install-info-isl
14320maybe-install-info-isl:
14321@if isl
14322maybe-install-info-isl: install-info-isl
2a4cbe27 14323
7ec59b9e
L
14324install-info-isl: \
14325 configure-isl \
14326 info-isl
14327 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14328 r=`${PWD_COMMAND}`; export r; \
14329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14330 $(HOST_EXPORTS) \
7ec59b9e 14331 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14333 done; \
22121df0 14334 echo "Doing install-info in isl"; \
7ec59b9e 14335 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14338 "RANLIB=$${RANLIB}" \
0c24b341 14339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14340 install-info) \
2a4cbe27
NN
14341 || exit 1
14342
7ec59b9e 14343@endif isl
2a4cbe27 14344
7ec59b9e
L
14345.PHONY: maybe-install-pdf-isl install-pdf-isl
14346maybe-install-pdf-isl:
14347@if isl
14348maybe-install-pdf-isl: install-pdf-isl
a3ca38d2 14349
7ec59b9e
L
14350install-pdf-isl: \
14351 configure-isl \
14352 pdf-isl
14353 @[ -f ./isl/Makefile ] || exit 0; \
a3ca38d2
DD
14354 r=`${PWD_COMMAND}`; export r; \
14355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14356 $(HOST_EXPORTS) \
7ec59b9e 14357 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
a3ca38d2
DD
14358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14359 done; \
22121df0 14360 echo "Doing install-pdf in isl"; \
7ec59b9e 14361 (cd $(HOST_SUBDIR)/isl && \
a3ca38d2
DD
14362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14364 "RANLIB=$${RANLIB}" \
0c24b341 14365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
14366 install-pdf) \
14367 || exit 1
14368
7ec59b9e 14369@endif isl
a3ca38d2 14370
7ec59b9e
L
14371.PHONY: maybe-install-html-isl install-html-isl
14372maybe-install-html-isl:
14373@if isl
14374maybe-install-html-isl: install-html-isl
108a6f8e 14375
7ec59b9e
L
14376install-html-isl: \
14377 configure-isl \
14378 html-isl
14379 @[ -f ./isl/Makefile ] || exit 0; \
108a6f8e
CD
14380 r=`${PWD_COMMAND}`; export r; \
14381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14382 $(HOST_EXPORTS) \
7ec59b9e 14383 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
108a6f8e
CD
14384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14385 done; \
22121df0 14386 echo "Doing install-html in isl"; \
7ec59b9e 14387 (cd $(HOST_SUBDIR)/isl && \
108a6f8e
CD
14388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14390 "RANLIB=$${RANLIB}" \
0c24b341 14391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
14392 install-html) \
14393 || exit 1
14394
7ec59b9e 14395@endif isl
108a6f8e 14396
7ec59b9e
L
14397.PHONY: maybe-installcheck-isl installcheck-isl
14398maybe-installcheck-isl:
14399@if isl
14400maybe-installcheck-isl: installcheck-isl
2a4cbe27 14401
7ec59b9e
L
14402installcheck-isl: \
14403 configure-isl
14404 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14405 r=`${PWD_COMMAND}`; export r; \
14406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14407 $(HOST_EXPORTS) \
7ec59b9e 14408 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14410 done; \
22121df0 14411 echo "Doing installcheck in isl"; \
7ec59b9e 14412 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14415 "RANLIB=$${RANLIB}" \
0c24b341 14416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14417 installcheck) \
2a4cbe27
NN
14418 || exit 1
14419
7ec59b9e 14420@endif isl
2a4cbe27 14421
7ec59b9e
L
14422.PHONY: maybe-mostlyclean-isl mostlyclean-isl
14423maybe-mostlyclean-isl:
14424@if isl
14425maybe-mostlyclean-isl: mostlyclean-isl
2a4cbe27 14426
7ec59b9e
L
14427mostlyclean-isl:
14428 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14429 r=`${PWD_COMMAND}`; export r; \
14430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14431 $(HOST_EXPORTS) \
7ec59b9e 14432 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14434 done; \
22121df0 14435 echo "Doing mostlyclean in isl"; \
7ec59b9e 14436 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14439 "RANLIB=$${RANLIB}" \
0c24b341 14440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14441 mostlyclean) \
2a4cbe27
NN
14442 || exit 1
14443
7ec59b9e 14444@endif isl
2a4cbe27 14445
7ec59b9e
L
14446.PHONY: maybe-clean-isl clean-isl
14447maybe-clean-isl:
14448@if isl
14449maybe-clean-isl: clean-isl
2a4cbe27 14450
7ec59b9e
L
14451clean-isl:
14452 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14453 r=`${PWD_COMMAND}`; export r; \
14454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14455 $(HOST_EXPORTS) \
7ec59b9e 14456 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14457 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14458 done; \
22121df0 14459 echo "Doing clean in isl"; \
7ec59b9e 14460 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14463 "RANLIB=$${RANLIB}" \
0c24b341 14464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14465 clean) \
2a4cbe27
NN
14466 || exit 1
14467
7ec59b9e 14468@endif isl
2a4cbe27 14469
7ec59b9e
L
14470.PHONY: maybe-distclean-isl distclean-isl
14471maybe-distclean-isl:
14472@if isl
14473maybe-distclean-isl: distclean-isl
2a4cbe27 14474
7ec59b9e
L
14475distclean-isl:
14476 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14477 r=`${PWD_COMMAND}`; export r; \
14478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14479 $(HOST_EXPORTS) \
7ec59b9e 14480 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14482 done; \
22121df0 14483 echo "Doing distclean in isl"; \
7ec59b9e 14484 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14487 "RANLIB=$${RANLIB}" \
0c24b341 14488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14489 distclean) \
2a4cbe27
NN
14490 || exit 1
14491
7ec59b9e 14492@endif isl
2a4cbe27 14493
7ec59b9e
L
14494.PHONY: maybe-maintainer-clean-isl maintainer-clean-isl
14495maybe-maintainer-clean-isl:
14496@if isl
14497maybe-maintainer-clean-isl: maintainer-clean-isl
2a4cbe27 14498
7ec59b9e
L
14499maintainer-clean-isl:
14500 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14501 r=`${PWD_COMMAND}`; export r; \
14502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14503 $(HOST_EXPORTS) \
7ec59b9e 14504 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14506 done; \
22121df0 14507 echo "Doing maintainer-clean in isl"; \
7ec59b9e 14508 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14511 "RANLIB=$${RANLIB}" \
0c24b341 14512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14513 maintainer-clean) \
2a4cbe27
NN
14514 || exit 1
14515
7ec59b9e 14516@endif isl
2a4cbe27 14517
2a4cbe27 14518
a7254363 14519
a90ef4bf
JM
14520.PHONY: configure-libelf maybe-configure-libelf
14521maybe-configure-libelf:
c52c6897 14522@if gcc-bootstrap
a90ef4bf 14523configure-libelf: stage_current
c52c6897 14524@endif gcc-bootstrap
a90ef4bf
JM
14525@if libelf
14526maybe-configure-libelf: configure-libelf
14527configure-libelf:
c52c6897
PB
14528 @r=`${PWD_COMMAND}`; export r; \
14529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14530 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
22121df0 14531 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
1f53ca9a 14532 $(HOST_EXPORTS) \
a90ef4bf
JM
14533 echo Configuring in $(HOST_SUBDIR)/libelf; \
14534 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
4fa63067 14535 case $(srcdir) in \
b00612cc 14536 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14537 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
b00612cc 14538 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 14539 esac; \
1b6c0831
L
14540 module_srcdir=libelf; \
14541 $(SHELL) \
14542 $$s/$$module_srcdir/configure \
14543 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14544 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14545 --target=${target_alias} --disable-shared \
4fa63067 14546 || exit 1
a90ef4bf 14547@endif libelf
4fa63067 14548
a7254363
PB
14549
14550
a90ef4bf
JM
14551.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
14552maybe-configure-stage1-libelf:
14553@if libelf-bootstrap
14554maybe-configure-stage1-libelf: configure-stage1-libelf
14555configure-stage1-libelf:
c52c6897 14556 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 14557 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14558 @r=`${PWD_COMMAND}`; export r; \
14559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14560 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 14561 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
1b05fbbd 14562 $(HOST_EXPORTS) \
8ee82aff 14563 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14564 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14565 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
14566 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf; \
14567 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14568 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14569 case $(srcdir) in \
14570 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14571 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14572 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14573 esac; \
1b6c0831
L
14574 module_srcdir=libelf; \
14575 $(SHELL) $$s/$$module_srcdir/configure \
14576 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14577 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14578 --target=${target_alias} \
14579 \
a90ef4bf
JM
14580 $(STAGE1_CONFIGURE_FLAGS) \
14581 --disable-shared
14582@endif libelf-bootstrap
d545f33b 14583
a90ef4bf
JM
14584.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
14585maybe-configure-stage2-libelf:
14586@if libelf-bootstrap
14587maybe-configure-stage2-libelf: configure-stage2-libelf
14588configure-stage2-libelf:
c52c6897 14589 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 14590 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14591 @r=`${PWD_COMMAND}`; export r; \
14592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14593 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 14594 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14595 $(HOST_EXPORTS) \
1b05fbbd 14596 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14597 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14598 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14599 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14600 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf; \
14601 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14602 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14603 case $(srcdir) in \
14604 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14605 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14606 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14607 esac; \
1b6c0831
L
14608 module_srcdir=libelf; \
14609 $(SHELL) $$s/$$module_srcdir/configure \
14610 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14611 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14612 --target=${target_alias} \
22121df0 14613 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14614 $(STAGE2_CONFIGURE_FLAGS) \
14615 --disable-shared
14616@endif libelf-bootstrap
8520c408 14617
a90ef4bf
JM
14618.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
14619maybe-configure-stage3-libelf:
14620@if libelf-bootstrap
14621maybe-configure-stage3-libelf: configure-stage3-libelf
14622configure-stage3-libelf:
c52c6897 14623 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 14624 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14625 @r=`${PWD_COMMAND}`; export r; \
14626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14627 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 14628 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14629 $(HOST_EXPORTS) \
1b05fbbd 14630 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14631 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14632 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14633 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14634 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf; \
14635 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14636 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14637 case $(srcdir) in \
14638 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14639 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14640 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14641 esac; \
1b6c0831
L
14642 module_srcdir=libelf; \
14643 $(SHELL) $$s/$$module_srcdir/configure \
14644 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14645 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14646 --target=${target_alias} \
22121df0 14647 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14648 $(STAGE3_CONFIGURE_FLAGS) \
14649 --disable-shared
14650@endif libelf-bootstrap
8520c408 14651
a90ef4bf
JM
14652.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
14653maybe-configure-stage4-libelf:
14654@if libelf-bootstrap
14655maybe-configure-stage4-libelf: configure-stage4-libelf
14656configure-stage4-libelf:
c52c6897 14657 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 14658 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14659 @r=`${PWD_COMMAND}`; export r; \
14660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14661 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 14662 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14663 $(HOST_EXPORTS) \
1b05fbbd 14664 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14665 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14666 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14667 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14668 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf; \
14669 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14670 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14671 case $(srcdir) in \
14672 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14673 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14674 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14675 esac; \
1b6c0831
L
14676 module_srcdir=libelf; \
14677 $(SHELL) $$s/$$module_srcdir/configure \
14678 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14679 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14680 --target=${target_alias} \
22121df0 14681 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14682 $(STAGE4_CONFIGURE_FLAGS) \
14683 --disable-shared
14684@endif libelf-bootstrap
d545f33b 14685
a90ef4bf
JM
14686.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
14687maybe-configure-stageprofile-libelf:
14688@if libelf-bootstrap
14689maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
14690configure-stageprofile-libelf:
c52c6897 14691 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 14692 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14693 @r=`${PWD_COMMAND}`; export r; \
14694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14695 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 14696 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14697 $(HOST_EXPORTS) \
1b05fbbd
AO
14698 $(POSTSTAGE1_HOST_EXPORTS) \
14699 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14700 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14701 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14702 echo Configuring stage profile in $(HOST_SUBDIR)/libelf; \
14703 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14704 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14705 case $(srcdir) in \
14706 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14707 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14708 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14709 esac; \
1b6c0831
L
14710 module_srcdir=libelf; \
14711 $(SHELL) $$s/$$module_srcdir/configure \
14712 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14713 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14714 --target=${target_alias} \
22121df0 14715 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14716 $(STAGEprofile_CONFIGURE_FLAGS) \
14717 --disable-shared
14718@endif libelf-bootstrap
d545f33b 14719
a90ef4bf
JM
14720.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
14721maybe-configure-stagefeedback-libelf:
14722@if libelf-bootstrap
14723maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
14724configure-stagefeedback-libelf:
c52c6897 14725 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 14726 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14727 @r=`${PWD_COMMAND}`; export r; \
14728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14729 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 14730 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14731 $(HOST_EXPORTS) \
1b05fbbd
AO
14732 $(POSTSTAGE1_HOST_EXPORTS) \
14733 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14734 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14735 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14736 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf; \
14737 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14738 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14739 case $(srcdir) in \
14740 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14741 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14742 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14743 esac; \
1b6c0831
L
14744 module_srcdir=libelf; \
14745 $(SHELL) $$s/$$module_srcdir/configure \
14746 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14747 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14748 --target=${target_alias} \
22121df0 14749 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14750 $(STAGEfeedback_CONFIGURE_FLAGS) \
14751 --disable-shared
14752@endif libelf-bootstrap
d545f33b
PB
14753
14754
14755
14756
14757
a90ef4bf
JM
14758.PHONY: all-libelf maybe-all-libelf
14759maybe-all-libelf:
4f0ef2d8 14760@if gcc-bootstrap
a90ef4bf 14761all-libelf: stage_current
4f0ef2d8 14762@endif gcc-bootstrap
a90ef4bf
JM
14763@if libelf
14764TARGET-libelf=all
14765maybe-all-libelf: all-libelf
14766all-libelf: configure-libelf
c52c6897 14767 @r=`${PWD_COMMAND}`; export r; \
4fa63067 14768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 14769 $(HOST_EXPORTS) \
a90ef4bf 14770 (cd $(HOST_SUBDIR)/libelf && \
b3676d82 14771 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
14772 $(TARGET-libelf))
14773@endif libelf
4fa63067 14774
a7254363 14775
d545f33b 14776
a90ef4bf
JM
14777.PHONY: all-stage1-libelf maybe-all-stage1-libelf
14778.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
14779maybe-all-stage1-libelf:
14780maybe-clean-stage1-libelf:
14781@if libelf-bootstrap
14782maybe-all-stage1-libelf: all-stage1-libelf
14783all-stage1: all-stage1-libelf
14784TARGET-stage1-libelf = $(TARGET-libelf)
14785all-stage1-libelf: configure-stage1-libelf
c52c6897 14786 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
14787 @r=`${PWD_COMMAND}`; export r; \
14788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14789 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 14790 $(HOST_EXPORTS) \
a90ef4bf 14791 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14792 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14793 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 14794 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
14795 LIBCFLAGS="$(LIBCFLAGS)" \
14796 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14797 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14798 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14799 $(EXTRA_HOST_FLAGS) \
14800 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 14801 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 14802 $(TARGET-stage1-libelf)
d545f33b 14803
a90ef4bf
JM
14804maybe-clean-stage1-libelf: clean-stage1-libelf
14805clean-stage1: clean-stage1-libelf
14806clean-stage1-libelf:
9dbaa842 14807 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 14808 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14809 else \
a90ef4bf 14810 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14811 $(MAKE) stage1-start; \
14812 fi; \
a90ef4bf 14813 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14814 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14815 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14816@endif libelf-bootstrap
d545f33b
PB
14817
14818
a90ef4bf
JM
14819.PHONY: all-stage2-libelf maybe-all-stage2-libelf
14820.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
14821maybe-all-stage2-libelf:
14822maybe-clean-stage2-libelf:
14823@if libelf-bootstrap
14824maybe-all-stage2-libelf: all-stage2-libelf
14825all-stage2: all-stage2-libelf
14826TARGET-stage2-libelf = $(TARGET-libelf)
14827all-stage2-libelf: configure-stage2-libelf
c52c6897 14828 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
14829 @r=`${PWD_COMMAND}`; export r; \
14830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14831 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 14832 $(HOST_EXPORTS) \
1f53ca9a 14833 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14834 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14835 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14836 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 14837 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
14838 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14839 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14840 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14841 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14842 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14843 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 14844 $(TARGET-stage2-libelf)
d545f33b 14845
a90ef4bf
JM
14846maybe-clean-stage2-libelf: clean-stage2-libelf
14847clean-stage2: clean-stage2-libelf
14848clean-stage2-libelf:
9dbaa842 14849 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 14850 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14851 else \
a90ef4bf 14852 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14853 $(MAKE) stage2-start; \
14854 fi; \
a90ef4bf 14855 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14856 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14857@endif libelf-bootstrap
d545f33b
PB
14858
14859
a90ef4bf
JM
14860.PHONY: all-stage3-libelf maybe-all-stage3-libelf
14861.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
14862maybe-all-stage3-libelf:
14863maybe-clean-stage3-libelf:
14864@if libelf-bootstrap
14865maybe-all-stage3-libelf: all-stage3-libelf
14866all-stage3: all-stage3-libelf
14867TARGET-stage3-libelf = $(TARGET-libelf)
14868all-stage3-libelf: configure-stage3-libelf
c52c6897 14869 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
14870 @r=`${PWD_COMMAND}`; export r; \
14871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14872 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 14873 $(HOST_EXPORTS) \
1f53ca9a 14874 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14875 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14876 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14877 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 14878 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
14879 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14880 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14881 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14882 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14883 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14884 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 14885 $(TARGET-stage3-libelf)
d545f33b 14886
a90ef4bf
JM
14887maybe-clean-stage3-libelf: clean-stage3-libelf
14888clean-stage3: clean-stage3-libelf
14889clean-stage3-libelf:
9dbaa842 14890 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 14891 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14892 else \
a90ef4bf 14893 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14894 $(MAKE) stage3-start; \
14895 fi; \
a90ef4bf 14896 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14897 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14898@endif libelf-bootstrap
d545f33b
PB
14899
14900
a90ef4bf
JM
14901.PHONY: all-stage4-libelf maybe-all-stage4-libelf
14902.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
14903maybe-all-stage4-libelf:
14904maybe-clean-stage4-libelf:
14905@if libelf-bootstrap
14906maybe-all-stage4-libelf: all-stage4-libelf
14907all-stage4: all-stage4-libelf
14908TARGET-stage4-libelf = $(TARGET-libelf)
14909all-stage4-libelf: configure-stage4-libelf
c52c6897 14910 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
14911 @r=`${PWD_COMMAND}`; export r; \
14912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14913 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 14914 $(HOST_EXPORTS) \
1f53ca9a 14915 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14916 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14917 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14918 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 14919 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 14920 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
14921 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14922 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14923 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14924 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14925 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 14926 $(TARGET-stage4-libelf)
d545f33b 14927
a90ef4bf
JM
14928maybe-clean-stage4-libelf: clean-stage4-libelf
14929clean-stage4: clean-stage4-libelf
14930clean-stage4-libelf:
9dbaa842 14931 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 14932 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14933 else \
a90ef4bf 14934 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14935 $(MAKE) stage4-start; \
14936 fi; \
a90ef4bf 14937 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14938 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14939@endif libelf-bootstrap
d545f33b
PB
14940
14941
a90ef4bf
JM
14942.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
14943.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
14944maybe-all-stageprofile-libelf:
14945maybe-clean-stageprofile-libelf:
14946@if libelf-bootstrap
14947maybe-all-stageprofile-libelf: all-stageprofile-libelf
14948all-stageprofile: all-stageprofile-libelf
14949TARGET-stageprofile-libelf = $(TARGET-libelf)
14950all-stageprofile-libelf: configure-stageprofile-libelf
c52c6897 14951 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
14952 @r=`${PWD_COMMAND}`; export r; \
14953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14954 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 14955 $(HOST_EXPORTS) \
1f53ca9a 14956 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14957 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14958 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14959 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 14960 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
14961 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14962 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14963 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14964 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14965 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 14966 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 14967 $(TARGET-stageprofile-libelf)
d545f33b 14968
a90ef4bf
JM
14969maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
14970clean-stageprofile: clean-stageprofile-libelf
14971clean-stageprofile-libelf:
9dbaa842 14972 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 14973 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14974 else \
a90ef4bf 14975 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14976 $(MAKE) stageprofile-start; \
14977 fi; \
a90ef4bf 14978 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14979 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14980@endif libelf-bootstrap
d545f33b
PB
14981
14982
a90ef4bf
JM
14983.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
14984.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
14985maybe-all-stagefeedback-libelf:
14986maybe-clean-stagefeedback-libelf:
14987@if libelf-bootstrap
14988maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
14989all-stagefeedback: all-stagefeedback-libelf
14990TARGET-stagefeedback-libelf = $(TARGET-libelf)
14991all-stagefeedback-libelf: configure-stagefeedback-libelf
c52c6897 14992 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
14993 @r=`${PWD_COMMAND}`; export r; \
14994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14995 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 14996 $(HOST_EXPORTS) \
1f53ca9a 14997 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14998 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14999 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15000 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 15001 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
15002 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15003 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15004 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15005 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15006 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 15007 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15008 $(TARGET-stagefeedback-libelf)
d545f33b 15009
a90ef4bf
JM
15010maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
15011clean-stagefeedback: clean-stagefeedback-libelf
15012clean-stagefeedback-libelf:
9dbaa842 15013 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 15014 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15015 else \
a90ef4bf 15016 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15017 $(MAKE) stagefeedback-start; \
15018 fi; \
a90ef4bf 15019 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15020 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15021@endif libelf-bootstrap
d545f33b
PB
15022
15023
15024
15025
15026
a90ef4bf
JM
15027.PHONY: check-libelf maybe-check-libelf
15028maybe-check-libelf:
15029@if libelf
15030maybe-check-libelf: check-libelf
4fa63067 15031
a90ef4bf 15032check-libelf:
0aed8855 15033 @: $(MAKE); $(unstage)
4fa63067
NN
15034 @r=`${PWD_COMMAND}`; export r; \
15035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15036 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15037 (cd $(HOST_SUBDIR)/libelf && \
f91ca6bc 15038 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15039
a90ef4bf 15040@endif libelf
4fa63067 15041
a90ef4bf
JM
15042.PHONY: install-libelf maybe-install-libelf
15043maybe-install-libelf:
15044@if libelf
15045maybe-install-libelf: install-libelf
4fa63067 15046
a90ef4bf 15047install-libelf:
4fa63067 15048
a90ef4bf 15049@endif libelf
4fa63067 15050
a90ef4bf
JM
15051.PHONY: install-strip-libelf maybe-install-strip-libelf
15052maybe-install-strip-libelf:
15053@if libelf
15054maybe-install-strip-libelf: install-strip-libelf
9b980aa1 15055
a90ef4bf 15056install-strip-libelf:
9b980aa1 15057
a90ef4bf 15058@endif libelf
9b980aa1 15059
56a8fe78 15060# Other targets (info, dvi, pdf, etc.)
4fa63067 15061
a90ef4bf
JM
15062.PHONY: maybe-info-libelf info-libelf
15063maybe-info-libelf:
15064@if libelf
15065maybe-info-libelf: info-libelf
4fa63067 15066
a90ef4bf
JM
15067info-libelf: \
15068 configure-libelf
15069 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15070 r=`${PWD_COMMAND}`; export r; \
15071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15072 $(HOST_EXPORTS) \
a90ef4bf 15073 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15075 done; \
22121df0 15076 echo "Doing info in libelf"; \
a90ef4bf 15077 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15080 "RANLIB=$${RANLIB}" \
0c24b341 15081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15082 info) \
2a4cbe27
NN
15083 || exit 1
15084
a90ef4bf 15085@endif libelf
2a4cbe27 15086
a90ef4bf
JM
15087.PHONY: maybe-dvi-libelf dvi-libelf
15088maybe-dvi-libelf:
15089@if libelf
15090maybe-dvi-libelf: dvi-libelf
2a4cbe27 15091
a90ef4bf
JM
15092dvi-libelf: \
15093 configure-libelf
15094 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15095 r=`${PWD_COMMAND}`; export r; \
15096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15097 $(HOST_EXPORTS) \
a90ef4bf 15098 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15100 done; \
22121df0 15101 echo "Doing dvi in libelf"; \
a90ef4bf 15102 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15105 "RANLIB=$${RANLIB}" \
0c24b341 15106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15107 dvi) \
2a4cbe27
NN
15108 || exit 1
15109
a90ef4bf 15110@endif libelf
2a4cbe27 15111
a90ef4bf
JM
15112.PHONY: maybe-pdf-libelf pdf-libelf
15113maybe-pdf-libelf:
15114@if libelf
15115maybe-pdf-libelf: pdf-libelf
56a8fe78 15116
a90ef4bf
JM
15117pdf-libelf: \
15118 configure-libelf
15119 @[ -f ./libelf/Makefile ] || exit 0; \
56a8fe78
DD
15120 r=`${PWD_COMMAND}`; export r; \
15121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15122 $(HOST_EXPORTS) \
a90ef4bf 15123 for flag in $(EXTRA_HOST_FLAGS) ; do \
56a8fe78
DD
15124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15125 done; \
22121df0 15126 echo "Doing pdf in libelf"; \
a90ef4bf 15127 (cd $(HOST_SUBDIR)/libelf && \
56a8fe78
DD
15128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15130 "RANLIB=$${RANLIB}" \
0c24b341 15131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15132 pdf) \
15133 || exit 1
15134
a90ef4bf 15135@endif libelf
56a8fe78 15136
a90ef4bf
JM
15137.PHONY: maybe-html-libelf html-libelf
15138maybe-html-libelf:
15139@if libelf
15140maybe-html-libelf: html-libelf
6d389afc 15141
a90ef4bf
JM
15142html-libelf: \
15143 configure-libelf
15144 @[ -f ./libelf/Makefile ] || exit 0; \
6d389afc
MS
15145 r=`${PWD_COMMAND}`; export r; \
15146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 15147 $(HOST_EXPORTS) \
a90ef4bf 15148 for flag in $(EXTRA_HOST_FLAGS) ; do \
6d389afc
MS
15149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15150 done; \
22121df0 15151 echo "Doing html in libelf"; \
a90ef4bf 15152 (cd $(HOST_SUBDIR)/libelf && \
6d389afc
MS
15153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15155 "RANLIB=$${RANLIB}" \
0c24b341 15156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
15157 html) \
15158 || exit 1
15159
a90ef4bf 15160@endif libelf
6d389afc 15161
a90ef4bf
JM
15162.PHONY: maybe-TAGS-libelf TAGS-libelf
15163maybe-TAGS-libelf:
15164@if libelf
15165maybe-TAGS-libelf: TAGS-libelf
2a4cbe27 15166
a90ef4bf
JM
15167TAGS-libelf: \
15168 configure-libelf
15169 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15170 r=`${PWD_COMMAND}`; export r; \
15171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15172 $(HOST_EXPORTS) \
a90ef4bf 15173 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15175 done; \
22121df0 15176 echo "Doing TAGS in libelf"; \
a90ef4bf 15177 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15180 "RANLIB=$${RANLIB}" \
0c24b341 15181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15182 TAGS) \
2a4cbe27
NN
15183 || exit 1
15184
a90ef4bf 15185@endif libelf
2a4cbe27 15186
a90ef4bf
JM
15187.PHONY: maybe-install-info-libelf install-info-libelf
15188maybe-install-info-libelf:
15189@if libelf
15190maybe-install-info-libelf: install-info-libelf
a2592b1b 15191
a90ef4bf
JM
15192install-info-libelf: \
15193 configure-libelf \
15194 info-libelf
15195 @[ -f ./libelf/Makefile ] || exit 0; \
a2592b1b
DD
15196 r=`${PWD_COMMAND}`; export r; \
15197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15198 $(HOST_EXPORTS) \
a90ef4bf 15199 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
15200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15201 done; \
22121df0 15202 echo "Doing install-info in libelf"; \
a90ef4bf 15203 (cd $(HOST_SUBDIR)/libelf && \
a2592b1b
DD
15204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15206 "RANLIB=$${RANLIB}" \
0c24b341 15207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15208 install-info) \
a2592b1b
DD
15209 || exit 1
15210
a90ef4bf 15211@endif libelf
a2592b1b 15212
a90ef4bf
JM
15213.PHONY: maybe-install-pdf-libelf install-pdf-libelf
15214maybe-install-pdf-libelf:
15215@if libelf
15216maybe-install-pdf-libelf: install-pdf-libelf
a3ca38d2 15217
a90ef4bf
JM
15218install-pdf-libelf: \
15219 configure-libelf \
15220 pdf-libelf
15221 @[ -f ./libelf/Makefile ] || exit 0; \
a3ca38d2
DD
15222 r=`${PWD_COMMAND}`; export r; \
15223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15224 $(HOST_EXPORTS) \
a90ef4bf 15225 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
15226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15227 done; \
22121df0 15228 echo "Doing install-pdf in libelf"; \
a90ef4bf 15229 (cd $(HOST_SUBDIR)/libelf && \
a3ca38d2
DD
15230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15232 "RANLIB=$${RANLIB}" \
0c24b341 15233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
15234 install-pdf) \
15235 || exit 1
15236
a90ef4bf 15237@endif libelf
a3ca38d2 15238
a90ef4bf
JM
15239.PHONY: maybe-install-html-libelf install-html-libelf
15240maybe-install-html-libelf:
15241@if libelf
15242maybe-install-html-libelf: install-html-libelf
108a6f8e 15243
a90ef4bf
JM
15244install-html-libelf: \
15245 configure-libelf \
15246 html-libelf
15247 @[ -f ./libelf/Makefile ] || exit 0; \
108a6f8e
CD
15248 r=`${PWD_COMMAND}`; export r; \
15249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15250 $(HOST_EXPORTS) \
a90ef4bf 15251 for flag in $(EXTRA_HOST_FLAGS) ; do \
108a6f8e
CD
15252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15253 done; \
22121df0 15254 echo "Doing install-html in libelf"; \
a90ef4bf 15255 (cd $(HOST_SUBDIR)/libelf && \
108a6f8e
CD
15256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15258 "RANLIB=$${RANLIB}" \
0c24b341 15259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
15260 install-html) \
15261 || exit 1
15262
a90ef4bf 15263@endif libelf
108a6f8e 15264
a90ef4bf
JM
15265.PHONY: maybe-installcheck-libelf installcheck-libelf
15266maybe-installcheck-libelf:
15267@if libelf
15268maybe-installcheck-libelf: installcheck-libelf
2a4cbe27 15269
a90ef4bf
JM
15270installcheck-libelf: \
15271 configure-libelf
15272 @[ -f ./libelf/Makefile ] || exit 0; \
4fa63067
NN
15273 r=`${PWD_COMMAND}`; export r; \
15274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15275 $(HOST_EXPORTS) \
a90ef4bf 15276 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15278 done; \
22121df0 15279 echo "Doing installcheck in libelf"; \
a90ef4bf 15280 (cd $(HOST_SUBDIR)/libelf && \
4fa63067
NN
15281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15283 "RANLIB=$${RANLIB}" \
0c24b341 15284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15285 installcheck) \
4fa63067 15286 || exit 1
2a4cbe27 15287
a90ef4bf 15288@endif libelf
4fa63067 15289
a90ef4bf
JM
15290.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
15291maybe-mostlyclean-libelf:
15292@if libelf
15293maybe-mostlyclean-libelf: mostlyclean-libelf
4fa63067 15294
a90ef4bf
JM
15295mostlyclean-libelf:
15296 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15297 r=`${PWD_COMMAND}`; export r; \
15298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15299 $(HOST_EXPORTS) \
a90ef4bf 15300 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15302 done; \
22121df0 15303 echo "Doing mostlyclean in libelf"; \
a90ef4bf 15304 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15307 "RANLIB=$${RANLIB}" \
0c24b341 15308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15309 mostlyclean) \
2a4cbe27
NN
15310 || exit 1
15311
a90ef4bf 15312@endif libelf
2a4cbe27 15313
a90ef4bf
JM
15314.PHONY: maybe-clean-libelf clean-libelf
15315maybe-clean-libelf:
15316@if libelf
15317maybe-clean-libelf: clean-libelf
2a4cbe27 15318
a90ef4bf
JM
15319clean-libelf:
15320 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15321 r=`${PWD_COMMAND}`; export r; \
15322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15323 $(HOST_EXPORTS) \
a90ef4bf 15324 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15326 done; \
22121df0 15327 echo "Doing clean in libelf"; \
a90ef4bf 15328 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15331 "RANLIB=$${RANLIB}" \
0c24b341 15332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15333 clean) \
2a4cbe27
NN
15334 || exit 1
15335
a90ef4bf 15336@endif libelf
2a4cbe27 15337
a90ef4bf
JM
15338.PHONY: maybe-distclean-libelf distclean-libelf
15339maybe-distclean-libelf:
15340@if libelf
15341maybe-distclean-libelf: distclean-libelf
2a4cbe27 15342
a90ef4bf
JM
15343distclean-libelf:
15344 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15345 r=`${PWD_COMMAND}`; export r; \
15346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15347 $(HOST_EXPORTS) \
a90ef4bf 15348 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15350 done; \
22121df0 15351 echo "Doing distclean in libelf"; \
a90ef4bf 15352 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15355 "RANLIB=$${RANLIB}" \
0c24b341 15356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15357 distclean) \
2a4cbe27
NN
15358 || exit 1
15359
a90ef4bf 15360@endif libelf
2a4cbe27 15361
a90ef4bf
JM
15362.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
15363maybe-maintainer-clean-libelf:
15364@if libelf
15365maybe-maintainer-clean-libelf: maintainer-clean-libelf
2a4cbe27 15366
a90ef4bf
JM
15367maintainer-clean-libelf:
15368 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15369 r=`${PWD_COMMAND}`; export r; \
15370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15371 $(HOST_EXPORTS) \
a90ef4bf 15372 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15374 done; \
22121df0 15375 echo "Doing maintainer-clean in libelf"; \
a90ef4bf 15376 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15379 "RANLIB=$${RANLIB}" \
0c24b341 15380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15381 maintainer-clean) \
2a4cbe27
NN
15382 || exit 1
15383
a90ef4bf 15384@endif libelf
2a4cbe27 15385
2a4cbe27 15386
a7254363 15387
a90ef4bf
JM
15388.PHONY: configure-gold maybe-configure-gold
15389maybe-configure-gold:
4f0ef2d8 15390@if gcc-bootstrap
a90ef4bf 15391configure-gold: stage_current
4f0ef2d8 15392@endif gcc-bootstrap
a90ef4bf
JM
15393@if gold
15394maybe-configure-gold: configure-gold
15395configure-gold:
c52c6897 15396 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15398 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22121df0 15399 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
1f53ca9a 15400 $(HOST_EXPORTS) \
a90ef4bf
JM
15401 echo Configuring in $(HOST_SUBDIR)/gold; \
15402 cd "$(HOST_SUBDIR)/gold" || exit 1; \
4fa63067 15403 case $(srcdir) in \
b00612cc 15404 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 15405 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
b00612cc 15406 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 15407 esac; \
1b6c0831
L
15408 module_srcdir=gold; \
15409 $(SHELL) \
15410 $$s/$$module_srcdir/configure \
15411 --srcdir=$${topdir}/$$module_srcdir \
4b900473 15412 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15413 --target=${target_alias} \
4fa63067 15414 || exit 1
a90ef4bf 15415@endif gold
a7254363 15416
d545f33b
PB
15417
15418
a90ef4bf
JM
15419.PHONY: configure-stage1-gold maybe-configure-stage1-gold
15420maybe-configure-stage1-gold:
15421@if gold-bootstrap
15422maybe-configure-stage1-gold: configure-stage1-gold
15423configure-stage1-gold:
15424 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15425 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15426 @r=`${PWD_COMMAND}`; export r; \
15427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15428 TFLAGS="$(STAGE1_TFLAGS)"; \
15429 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15430 $(HOST_EXPORTS) \
15431 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15432 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15433 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
15434 echo Configuring stage 1 in $(HOST_SUBDIR)/gold; \
15435 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15436 cd $(HOST_SUBDIR)/gold || exit 1; \
15437 case $(srcdir) in \
15438 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15439 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15440 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15441 esac; \
1b6c0831
L
15442 module_srcdir=gold; \
15443 $(SHELL) $$s/$$module_srcdir/configure \
15444 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15445 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15446 --target=${target_alias} \
15447 \
a90ef4bf
JM
15448 $(STAGE1_CONFIGURE_FLAGS)
15449@endif gold-bootstrap
4fa63067 15450
a90ef4bf
JM
15451.PHONY: configure-stage2-gold maybe-configure-stage2-gold
15452maybe-configure-stage2-gold:
15453@if gold-bootstrap
15454maybe-configure-stage2-gold: configure-stage2-gold
15455configure-stage2-gold:
15456 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15457 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15458 @r=`${PWD_COMMAND}`; export r; \
15459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15460 TFLAGS="$(STAGE2_TFLAGS)"; \
15461 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15462 $(HOST_EXPORTS) \
a90ef4bf
JM
15463 $(POSTSTAGE1_HOST_EXPORTS) \
15464 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15465 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15466 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15467 echo Configuring stage 2 in $(HOST_SUBDIR)/gold; \
15468 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15469 cd $(HOST_SUBDIR)/gold || exit 1; \
15470 case $(srcdir) in \
15471 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15472 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15473 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15474 esac; \
1b6c0831
L
15475 module_srcdir=gold; \
15476 $(SHELL) $$s/$$module_srcdir/configure \
15477 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15478 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15479 --target=${target_alias} \
22121df0 15480 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15481 $(STAGE2_CONFIGURE_FLAGS)
15482@endif gold-bootstrap
4fa63067 15483
a90ef4bf
JM
15484.PHONY: configure-stage3-gold maybe-configure-stage3-gold
15485maybe-configure-stage3-gold:
15486@if gold-bootstrap
15487maybe-configure-stage3-gold: configure-stage3-gold
15488configure-stage3-gold:
15489 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15490 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15491 @r=`${PWD_COMMAND}`; export r; \
15492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15493 TFLAGS="$(STAGE3_TFLAGS)"; \
15494 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15495 $(HOST_EXPORTS) \
a90ef4bf
JM
15496 $(POSTSTAGE1_HOST_EXPORTS) \
15497 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
15498 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
15499 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15500 echo Configuring stage 3 in $(HOST_SUBDIR)/gold; \
15501 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15502 cd $(HOST_SUBDIR)/gold || exit 1; \
15503 case $(srcdir) in \
15504 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15505 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15506 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15507 esac; \
1b6c0831
L
15508 module_srcdir=gold; \
15509 $(SHELL) $$s/$$module_srcdir/configure \
15510 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15511 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15512 --target=${target_alias} \
22121df0 15513 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15514 $(STAGE3_CONFIGURE_FLAGS)
15515@endif gold-bootstrap
9b980aa1 15516
a90ef4bf
JM
15517.PHONY: configure-stage4-gold maybe-configure-stage4-gold
15518maybe-configure-stage4-gold:
15519@if gold-bootstrap
15520maybe-configure-stage4-gold: configure-stage4-gold
15521configure-stage4-gold:
15522 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15523 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
9b980aa1
RW
15524 @r=`${PWD_COMMAND}`; export r; \
15525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15526 TFLAGS="$(STAGE4_TFLAGS)"; \
15527 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
9b980aa1 15528 $(HOST_EXPORTS) \
a90ef4bf
JM
15529 $(POSTSTAGE1_HOST_EXPORTS) \
15530 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
15531 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
15532 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15533 echo Configuring stage 4 in $(HOST_SUBDIR)/gold; \
15534 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15535 cd $(HOST_SUBDIR)/gold || exit 1; \
15536 case $(srcdir) in \
15537 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15538 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15539 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15540 esac; \
1b6c0831
L
15541 module_srcdir=gold; \
15542 $(SHELL) $$s/$$module_srcdir/configure \
15543 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15544 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15545 --target=${target_alias} \
22121df0 15546 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15547 $(STAGE4_CONFIGURE_FLAGS)
15548@endif gold-bootstrap
4fa63067 15549
a90ef4bf
JM
15550.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
15551maybe-configure-stageprofile-gold:
15552@if gold-bootstrap
15553maybe-configure-stageprofile-gold: configure-stageprofile-gold
15554configure-stageprofile-gold:
15555 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15556 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15557 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15559 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15560 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15561 $(HOST_EXPORTS) \
a90ef4bf
JM
15562 $(POSTSTAGE1_HOST_EXPORTS) \
15563 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
15564 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
15565 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15566 echo Configuring stage profile in $(HOST_SUBDIR)/gold; \
15567 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15568 cd $(HOST_SUBDIR)/gold || exit 1; \
15569 case $(srcdir) in \
15570 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15571 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15572 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15573 esac; \
1b6c0831
L
15574 module_srcdir=gold; \
15575 $(SHELL) $$s/$$module_srcdir/configure \
15576 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15577 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15578 --target=${target_alias} \
22121df0 15579 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15580 $(STAGEprofile_CONFIGURE_FLAGS)
15581@endif gold-bootstrap
2a4cbe27 15582
a90ef4bf
JM
15583.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
15584maybe-configure-stagefeedback-gold:
15585@if gold-bootstrap
15586maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
15587configure-stagefeedback-gold:
15588 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15589 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15590 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15592 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15593 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15594 $(HOST_EXPORTS) \
a90ef4bf
JM
15595 $(POSTSTAGE1_HOST_EXPORTS) \
15596 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15597 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15598 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15599 echo Configuring stage feedback in $(HOST_SUBDIR)/gold; \
15600 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15601 cd $(HOST_SUBDIR)/gold || exit 1; \
15602 case $(srcdir) in \
15603 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15604 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15605 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15606 esac; \
1b6c0831
L
15607 module_srcdir=gold; \
15608 $(SHELL) $$s/$$module_srcdir/configure \
15609 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15610 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15611 --target=${target_alias} \
22121df0 15612 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15613 $(STAGEfeedback_CONFIGURE_FLAGS)
15614@endif gold-bootstrap
2a4cbe27 15615
56a8fe78 15616
56a8fe78 15617
56a8fe78 15618
6d389afc 15619
a90ef4bf
JM
15620.PHONY: all-gold maybe-all-gold
15621maybe-all-gold:
15622@if gcc-bootstrap
15623all-gold: stage_current
15624@endif gcc-bootstrap
15625@if gold
15626TARGET-gold=all
15627maybe-all-gold: all-gold
15628all-gold: configure-gold
15629 @r=`${PWD_COMMAND}`; export r; \
6d389afc 15630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15631 $(HOST_EXPORTS) \
15632 (cd $(HOST_SUBDIR)/gold && \
b3676d82 15633 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15634 $(TARGET-gold))
15635@endif gold
6d389afc 15636
6d389afc 15637
2a4cbe27 15638
a90ef4bf
JM
15639.PHONY: all-stage1-gold maybe-all-stage1-gold
15640.PHONY: clean-stage1-gold maybe-clean-stage1-gold
15641maybe-all-stage1-gold:
15642maybe-clean-stage1-gold:
15643@if gold-bootstrap
15644maybe-all-stage1-gold: all-stage1-gold
15645all-stage1: all-stage1-gold
15646TARGET-stage1-gold = $(TARGET-gold)
15647all-stage1-gold: configure-stage1-gold
15648 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15649 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15651 TFLAGS="$(STAGE1_TFLAGS)"; \
15652 $(HOST_EXPORTS) \
15653 cd $(HOST_SUBDIR)/gold && \
15654 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15655 CFLAGS="$(STAGE1_CFLAGS)" \
15656 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15657 LIBCFLAGS="$(LIBCFLAGS)" \
15658 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15659 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15660 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15661 $(EXTRA_HOST_FLAGS) \
15662 $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15663 TFLAGS="$(STAGE1_TFLAGS)" \
15664 $(TARGET-stage1-gold)
2a4cbe27 15665
a90ef4bf
JM
15666maybe-clean-stage1-gold: clean-stage1-gold
15667clean-stage1: clean-stage1-gold
15668clean-stage1-gold:
15669 @if [ $(current_stage) = stage1 ]; then \
15670 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15671 else \
15672 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
15673 $(MAKE) stage1-start; \
15674 fi; \
15675 cd $(HOST_SUBDIR)/gold && \
15676 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15677 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15678@endif gold-bootstrap
2a4cbe27 15679
2a4cbe27 15680
a90ef4bf
JM
15681.PHONY: all-stage2-gold maybe-all-stage2-gold
15682.PHONY: clean-stage2-gold maybe-clean-stage2-gold
15683maybe-all-stage2-gold:
15684maybe-clean-stage2-gold:
15685@if gold-bootstrap
15686maybe-all-stage2-gold: all-stage2-gold
15687all-stage2: all-stage2-gold
15688TARGET-stage2-gold = $(TARGET-gold)
15689all-stage2-gold: configure-stage2-gold
15690 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15691 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15693 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 15694 $(HOST_EXPORTS) \
a90ef4bf
JM
15695 $(POSTSTAGE1_HOST_EXPORTS) \
15696 cd $(HOST_SUBDIR)/gold && \
15697 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15698 CFLAGS="$(STAGE2_CFLAGS)" \
15699 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15700 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15701 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15702 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15703 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15704 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15705 TFLAGS="$(STAGE2_TFLAGS)" \
15706 $(TARGET-stage2-gold)
2a4cbe27 15707
a90ef4bf
JM
15708maybe-clean-stage2-gold: clean-stage2-gold
15709clean-stage2: clean-stage2-gold
15710clean-stage2-gold:
15711 @if [ $(current_stage) = stage2 ]; then \
15712 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15713 else \
15714 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
15715 $(MAKE) stage2-start; \
15716 fi; \
15717 cd $(HOST_SUBDIR)/gold && \
b3676d82 15718 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15719@endif gold-bootstrap
2a4cbe27 15720
a3ca38d2 15721
a90ef4bf
JM
15722.PHONY: all-stage3-gold maybe-all-stage3-gold
15723.PHONY: clean-stage3-gold maybe-clean-stage3-gold
15724maybe-all-stage3-gold:
15725maybe-clean-stage3-gold:
15726@if gold-bootstrap
15727maybe-all-stage3-gold: all-stage3-gold
15728all-stage3: all-stage3-gold
15729TARGET-stage3-gold = $(TARGET-gold)
15730all-stage3-gold: configure-stage3-gold
15731 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15732 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15734 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 15735 $(HOST_EXPORTS) \
a90ef4bf
JM
15736 $(POSTSTAGE1_HOST_EXPORTS) \
15737 cd $(HOST_SUBDIR)/gold && \
15738 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15739 CFLAGS="$(STAGE3_CFLAGS)" \
15740 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15741 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15742 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15743 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15744 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15745 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15746 TFLAGS="$(STAGE3_TFLAGS)" \
15747 $(TARGET-stage3-gold)
2a4cbe27 15748
a90ef4bf
JM
15749maybe-clean-stage3-gold: clean-stage3-gold
15750clean-stage3: clean-stage3-gold
15751clean-stage3-gold:
15752 @if [ $(current_stage) = stage3 ]; then \
15753 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15754 else \
15755 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
15756 $(MAKE) stage3-start; \
15757 fi; \
15758 cd $(HOST_SUBDIR)/gold && \
b3676d82 15759 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15760@endif gold-bootstrap
2a4cbe27 15761
2a4cbe27 15762
a90ef4bf
JM
15763.PHONY: all-stage4-gold maybe-all-stage4-gold
15764.PHONY: clean-stage4-gold maybe-clean-stage4-gold
15765maybe-all-stage4-gold:
15766maybe-clean-stage4-gold:
15767@if gold-bootstrap
15768maybe-all-stage4-gold: all-stage4-gold
15769all-stage4: all-stage4-gold
15770TARGET-stage4-gold = $(TARGET-gold)
15771all-stage4-gold: configure-stage4-gold
15772 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15773 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15775 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 15776 $(HOST_EXPORTS) \
a90ef4bf
JM
15777 $(POSTSTAGE1_HOST_EXPORTS) \
15778 cd $(HOST_SUBDIR)/gold && \
15779 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15780 CFLAGS="$(STAGE4_CFLAGS)" \
15781 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15782 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15783 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15784 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15785 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15786 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15787 TFLAGS="$(STAGE4_TFLAGS)" \
15788 $(TARGET-stage4-gold)
2a4cbe27 15789
a90ef4bf
JM
15790maybe-clean-stage4-gold: clean-stage4-gold
15791clean-stage4: clean-stage4-gold
15792clean-stage4-gold:
15793 @if [ $(current_stage) = stage4 ]; then \
15794 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15795 else \
15796 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
15797 $(MAKE) stage4-start; \
15798 fi; \
15799 cd $(HOST_SUBDIR)/gold && \
b3676d82 15800 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15801@endif gold-bootstrap
2a4cbe27 15802
2a4cbe27 15803
a90ef4bf
JM
15804.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
15805.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
15806maybe-all-stageprofile-gold:
15807maybe-clean-stageprofile-gold:
15808@if gold-bootstrap
15809maybe-all-stageprofile-gold: all-stageprofile-gold
15810all-stageprofile: all-stageprofile-gold
15811TARGET-stageprofile-gold = $(TARGET-gold)
15812all-stageprofile-gold: configure-stageprofile-gold
15813 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15814 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15816 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 15817 $(HOST_EXPORTS) \
a90ef4bf
JM
15818 $(POSTSTAGE1_HOST_EXPORTS) \
15819 cd $(HOST_SUBDIR)/gold && \
15820 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15821 CFLAGS="$(STAGEprofile_CFLAGS)" \
15822 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
15823 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15824 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15825 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15826 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15827 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15828 TFLAGS="$(STAGEprofile_TFLAGS)" \
15829 $(TARGET-stageprofile-gold)
2a4cbe27 15830
a90ef4bf
JM
15831maybe-clean-stageprofile-gold: clean-stageprofile-gold
15832clean-stageprofile: clean-stageprofile-gold
15833clean-stageprofile-gold:
15834 @if [ $(current_stage) = stageprofile ]; then \
15835 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15836 else \
15837 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
15838 $(MAKE) stageprofile-start; \
15839 fi; \
15840 cd $(HOST_SUBDIR)/gold && \
b3676d82 15841 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15842@endif gold-bootstrap
2a4cbe27 15843
a7254363 15844
a90ef4bf
JM
15845.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
15846.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
15847maybe-all-stagefeedback-gold:
15848maybe-clean-stagefeedback-gold:
15849@if gold-bootstrap
15850maybe-all-stagefeedback-gold: all-stagefeedback-gold
15851all-stagefeedback: all-stagefeedback-gold
15852TARGET-stagefeedback-gold = $(TARGET-gold)
15853all-stagefeedback-gold: configure-stagefeedback-gold
15854 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 15855 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15857 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15858 $(HOST_EXPORTS) \
15859 $(POSTSTAGE1_HOST_EXPORTS) \
15860 cd $(HOST_SUBDIR)/gold && \
15861 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15862 CFLAGS="$(STAGEfeedback_CFLAGS)" \
15863 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
15864 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15865 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15866 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15867 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15868 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15869 TFLAGS="$(STAGEfeedback_TFLAGS)" \
15870 $(TARGET-stagefeedback-gold)
d545f33b 15871
a90ef4bf
JM
15872maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
15873clean-stagefeedback: clean-stagefeedback-gold
15874clean-stagefeedback-gold:
15875 @if [ $(current_stage) = stagefeedback ]; then \
15876 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15877 else \
15878 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
15879 $(MAKE) stagefeedback-start; \
15880 fi; \
15881 cd $(HOST_SUBDIR)/gold && \
b3676d82 15882 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15883@endif gold-bootstrap
d545f33b 15884
4fa63067 15885
a7254363 15886
d545f33b
PB
15887
15888
a90ef4bf
JM
15889.PHONY: check-gold maybe-check-gold
15890maybe-check-gold:
15891@if gold
15892maybe-check-gold: check-gold
4fa63067 15893
a90ef4bf 15894check-gold:
0aed8855 15895 @: $(MAKE); $(unstage)
4fa63067
NN
15896 @r=`${PWD_COMMAND}`; export r; \
15897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15898 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15899 (cd $(HOST_SUBDIR)/gold && \
f91ca6bc 15900 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15901
a90ef4bf 15902@endif gold
4fa63067 15903
a90ef4bf
JM
15904.PHONY: install-gold maybe-install-gold
15905maybe-install-gold:
15906@if gold
15907maybe-install-gold: install-gold
4fa63067 15908
a90ef4bf 15909install-gold: installdirs
0aed8855 15910 @: $(MAKE); $(unstage)
4fa63067
NN
15911 @r=`${PWD_COMMAND}`; export r; \
15912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15913 $(HOST_EXPORTS) \
a90ef4bf 15914 (cd $(HOST_SUBDIR)/gold && \
2da12f12 15915 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 15916
a90ef4bf 15917@endif gold
4fa63067 15918
a90ef4bf
JM
15919.PHONY: install-strip-gold maybe-install-strip-gold
15920maybe-install-strip-gold:
15921@if gold
15922maybe-install-strip-gold: install-strip-gold
9b980aa1 15923
a90ef4bf 15924install-strip-gold: installdirs
9b980aa1
RW
15925 @: $(MAKE); $(unstage)
15926 @r=`${PWD_COMMAND}`; export r; \
15927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15928 $(HOST_EXPORTS) \
a90ef4bf 15929 (cd $(HOST_SUBDIR)/gold && \
9b980aa1
RW
15930 $(MAKE) $(FLAGS_TO_PASS) install-strip)
15931
a90ef4bf 15932@endif gold
9b980aa1 15933
56a8fe78 15934# Other targets (info, dvi, pdf, etc.)
4fa63067 15935
a90ef4bf
JM
15936.PHONY: maybe-info-gold info-gold
15937maybe-info-gold:
15938@if gold
15939maybe-info-gold: info-gold
4fa63067 15940
a90ef4bf
JM
15941info-gold: \
15942 configure-gold
15943 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
15944 r=`${PWD_COMMAND}`; export r; \
15945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15946 $(HOST_EXPORTS) \
b813574b 15947 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15949 done; \
22121df0 15950 echo "Doing info in gold"; \
a90ef4bf 15951 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
15952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15954 "RANLIB=$${RANLIB}" \
0c24b341 15955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15956 info) \
2a4cbe27
NN
15957 || exit 1
15958
a90ef4bf 15959@endif gold
2a4cbe27 15960
a90ef4bf
JM
15961.PHONY: maybe-dvi-gold dvi-gold
15962maybe-dvi-gold:
15963@if gold
15964maybe-dvi-gold: dvi-gold
2a4cbe27 15965
a90ef4bf
JM
15966dvi-gold: \
15967 configure-gold
15968 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
15969 r=`${PWD_COMMAND}`; export r; \
15970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15971 $(HOST_EXPORTS) \
b813574b 15972 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15974 done; \
22121df0 15975 echo "Doing dvi in gold"; \
a90ef4bf 15976 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
15977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15979 "RANLIB=$${RANLIB}" \
0c24b341 15980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15981 dvi) \
2a4cbe27
NN
15982 || exit 1
15983
a90ef4bf 15984@endif gold
2a4cbe27 15985
a90ef4bf
JM
15986.PHONY: maybe-pdf-gold pdf-gold
15987maybe-pdf-gold:
15988@if gold
15989maybe-pdf-gold: pdf-gold
56a8fe78 15990
a90ef4bf
JM
15991pdf-gold: \
15992 configure-gold
15993 @[ -f ./gold/Makefile ] || exit 0; \
56a8fe78
DD
15994 r=`${PWD_COMMAND}`; export r; \
15995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15996 $(HOST_EXPORTS) \
15997 for flag in $(EXTRA_HOST_FLAGS) ; do \
15998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15999 done; \
22121df0 16000 echo "Doing pdf in gold"; \
a90ef4bf 16001 (cd $(HOST_SUBDIR)/gold && \
56a8fe78
DD
16002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16004 "RANLIB=$${RANLIB}" \
0c24b341 16005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
16006 pdf) \
16007 || exit 1
16008
a90ef4bf 16009@endif gold
56a8fe78 16010
a90ef4bf
JM
16011.PHONY: maybe-html-gold html-gold
16012maybe-html-gold:
16013@if gold
16014maybe-html-gold: html-gold
6d389afc 16015
a90ef4bf
JM
16016html-gold: \
16017 configure-gold
16018 @[ -f ./gold/Makefile ] || exit 0; \
6d389afc
MS
16019 r=`${PWD_COMMAND}`; export r; \
16020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
16021 $(HOST_EXPORTS) \
16022 for flag in $(EXTRA_HOST_FLAGS) ; do \
16023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16024 done; \
22121df0 16025 echo "Doing html in gold"; \
a90ef4bf 16026 (cd $(HOST_SUBDIR)/gold && \
6d389afc
MS
16027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16029 "RANLIB=$${RANLIB}" \
0c24b341 16030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
16031 html) \
16032 || exit 1
16033
a90ef4bf 16034@endif gold
6d389afc 16035
a90ef4bf
JM
16036.PHONY: maybe-TAGS-gold TAGS-gold
16037maybe-TAGS-gold:
16038@if gold
16039maybe-TAGS-gold: TAGS-gold
2a4cbe27 16040
a90ef4bf
JM
16041TAGS-gold: \
16042 configure-gold
16043 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16044 r=`${PWD_COMMAND}`; export r; \
16045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16046 $(HOST_EXPORTS) \
b813574b 16047 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16049 done; \
22121df0 16050 echo "Doing TAGS in gold"; \
a90ef4bf 16051 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16054 "RANLIB=$${RANLIB}" \
0c24b341 16055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16056 TAGS) \
2a4cbe27
NN
16057 || exit 1
16058
a90ef4bf 16059@endif gold
2a4cbe27 16060
a90ef4bf
JM
16061.PHONY: maybe-install-info-gold install-info-gold
16062maybe-install-info-gold:
16063@if gold
16064maybe-install-info-gold: install-info-gold
b813574b 16065
a90ef4bf
JM
16066install-info-gold: \
16067 configure-gold \
16068 info-gold
16069 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16070 r=`${PWD_COMMAND}`; export r; \
16071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16072 $(HOST_EXPORTS) \
b813574b 16073 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16075 done; \
22121df0 16076 echo "Doing install-info in gold"; \
a90ef4bf 16077 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16080 "RANLIB=$${RANLIB}" \
0c24b341 16081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16082 install-info) \
2a4cbe27
NN
16083 || exit 1
16084
a90ef4bf 16085@endif gold
2a4cbe27 16086
a90ef4bf
JM
16087.PHONY: maybe-install-pdf-gold install-pdf-gold
16088maybe-install-pdf-gold:
16089@if gold
16090maybe-install-pdf-gold: install-pdf-gold
a3ca38d2 16091
a90ef4bf
JM
16092install-pdf-gold: \
16093 configure-gold \
16094 pdf-gold
16095 @[ -f ./gold/Makefile ] || exit 0; \
a3ca38d2
DD
16096 r=`${PWD_COMMAND}`; export r; \
16097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16098 $(HOST_EXPORTS) \
16099 for flag in $(EXTRA_HOST_FLAGS) ; do \
16100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16101 done; \
22121df0 16102 echo "Doing install-pdf in gold"; \
a90ef4bf 16103 (cd $(HOST_SUBDIR)/gold && \
a3ca38d2
DD
16104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16106 "RANLIB=$${RANLIB}" \
0c24b341 16107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16108 install-pdf) \
16109 || exit 1
16110
a90ef4bf 16111@endif gold
a3ca38d2 16112
a90ef4bf
JM
16113.PHONY: maybe-install-html-gold install-html-gold
16114maybe-install-html-gold:
16115@if gold
16116maybe-install-html-gold: install-html-gold
108a6f8e 16117
a90ef4bf
JM
16118install-html-gold: \
16119 configure-gold \
16120 html-gold
16121 @[ -f ./gold/Makefile ] || exit 0; \
108a6f8e
CD
16122 r=`${PWD_COMMAND}`; export r; \
16123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16124 $(HOST_EXPORTS) \
16125 for flag in $(EXTRA_HOST_FLAGS) ; do \
16126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16127 done; \
22121df0 16128 echo "Doing install-html in gold"; \
a90ef4bf 16129 (cd $(HOST_SUBDIR)/gold && \
108a6f8e
CD
16130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16132 "RANLIB=$${RANLIB}" \
0c24b341 16133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
16134 install-html) \
16135 || exit 1
16136
a90ef4bf 16137@endif gold
108a6f8e 16138
a90ef4bf
JM
16139.PHONY: maybe-installcheck-gold installcheck-gold
16140maybe-installcheck-gold:
16141@if gold
16142maybe-installcheck-gold: installcheck-gold
2a4cbe27 16143
a90ef4bf
JM
16144installcheck-gold: \
16145 configure-gold
16146 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16147 r=`${PWD_COMMAND}`; export r; \
16148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16149 $(HOST_EXPORTS) \
b813574b 16150 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16152 done; \
22121df0 16153 echo "Doing installcheck in gold"; \
a90ef4bf 16154 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16157 "RANLIB=$${RANLIB}" \
0c24b341 16158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16159 installcheck) \
2a4cbe27
NN
16160 || exit 1
16161
a90ef4bf 16162@endif gold
2a4cbe27 16163
a90ef4bf
JM
16164.PHONY: maybe-mostlyclean-gold mostlyclean-gold
16165maybe-mostlyclean-gold:
16166@if gold
16167maybe-mostlyclean-gold: mostlyclean-gold
2a4cbe27 16168
a90ef4bf
JM
16169mostlyclean-gold:
16170 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16171 r=`${PWD_COMMAND}`; export r; \
16172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16173 $(HOST_EXPORTS) \
b813574b 16174 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16176 done; \
22121df0 16177 echo "Doing mostlyclean in gold"; \
a90ef4bf 16178 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16181 "RANLIB=$${RANLIB}" \
0c24b341 16182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16183 mostlyclean) \
2a4cbe27
NN
16184 || exit 1
16185
a90ef4bf 16186@endif gold
2a4cbe27 16187
a90ef4bf
JM
16188.PHONY: maybe-clean-gold clean-gold
16189maybe-clean-gold:
16190@if gold
16191maybe-clean-gold: clean-gold
2a4cbe27 16192
a90ef4bf
JM
16193clean-gold:
16194 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16195 r=`${PWD_COMMAND}`; export r; \
16196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16197 $(HOST_EXPORTS) \
b813574b 16198 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16200 done; \
22121df0 16201 echo "Doing clean in gold"; \
a90ef4bf 16202 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16205 "RANLIB=$${RANLIB}" \
0c24b341 16206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16207 clean) \
2a4cbe27
NN
16208 || exit 1
16209
a90ef4bf 16210@endif gold
2a4cbe27 16211
a90ef4bf
JM
16212.PHONY: maybe-distclean-gold distclean-gold
16213maybe-distclean-gold:
16214@if gold
16215maybe-distclean-gold: distclean-gold
2a4cbe27 16216
a90ef4bf
JM
16217distclean-gold:
16218 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16219 r=`${PWD_COMMAND}`; export r; \
16220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16221 $(HOST_EXPORTS) \
b813574b 16222 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16224 done; \
22121df0 16225 echo "Doing distclean in gold"; \
a90ef4bf 16226 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16229 "RANLIB=$${RANLIB}" \
0c24b341 16230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16231 distclean) \
2a4cbe27
NN
16232 || exit 1
16233
a90ef4bf 16234@endif gold
2a4cbe27 16235
a90ef4bf
JM
16236.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
16237maybe-maintainer-clean-gold:
16238@if gold
16239maybe-maintainer-clean-gold: maintainer-clean-gold
2a4cbe27 16240
a90ef4bf
JM
16241maintainer-clean-gold:
16242 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16243 r=`${PWD_COMMAND}`; export r; \
16244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16245 $(HOST_EXPORTS) \
b813574b 16246 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16248 done; \
22121df0 16249 echo "Doing maintainer-clean in gold"; \
a90ef4bf 16250 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16253 "RANLIB=$${RANLIB}" \
0c24b341 16254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16255 maintainer-clean) \
4fa63067
NN
16256 || exit 1
16257
a90ef4bf 16258@endif gold
4fa63067
NN
16259
16260
a7254363 16261
a90ef4bf
JM
16262.PHONY: configure-gprof maybe-configure-gprof
16263maybe-configure-gprof:
4b900473 16264@if gcc-bootstrap
a90ef4bf 16265configure-gprof: stage_current
4b900473 16266@endif gcc-bootstrap
a90ef4bf
JM
16267@if gprof
16268maybe-configure-gprof: configure-gprof
16269configure-gprof:
16270 @: $(MAKE); $(unstage)
4b900473
PB
16271 @r=`${PWD_COMMAND}`; export r; \
16272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16273 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
22121df0 16274 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof; \
1f53ca9a 16275 $(HOST_EXPORTS) \
a90ef4bf
JM
16276 echo Configuring in $(HOST_SUBDIR)/gprof; \
16277 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
4b900473
PB
16278 case $(srcdir) in \
16279 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16280 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
4b900473
PB
16281 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16282 esac; \
1b6c0831
L
16283 module_srcdir=gprof; \
16284 $(SHELL) \
16285 $$s/$$module_srcdir/configure \
16286 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16287 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16288 --target=${target_alias} \
4b900473 16289 || exit 1
a90ef4bf 16290@endif gprof
4b900473
PB
16291
16292
16293
4b900473 16294
a90ef4bf
JM
16295
16296.PHONY: all-gprof maybe-all-gprof
16297maybe-all-gprof:
16298@if gcc-bootstrap
16299all-gprof: stage_current
16300@endif gcc-bootstrap
16301@if gprof
16302TARGET-gprof=all
16303maybe-all-gprof: all-gprof
16304all-gprof: configure-gprof
16305 @: $(MAKE); $(unstage)
4b900473
PB
16306 @r=`${PWD_COMMAND}`; export r; \
16307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16308 $(HOST_EXPORTS) \
a90ef4bf 16309 (cd $(HOST_SUBDIR)/gprof && \
b3676d82 16310 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16311 $(TARGET-gprof))
16312@endif gprof
4b900473
PB
16313
16314
4b900473 16315
4b900473 16316
a90ef4bf
JM
16317.PHONY: check-gprof maybe-check-gprof
16318maybe-check-gprof:
16319@if gprof
16320maybe-check-gprof: check-gprof
4b900473 16321
a90ef4bf
JM
16322check-gprof:
16323 @: $(MAKE); $(unstage)
4b900473
PB
16324 @r=`${PWD_COMMAND}`; export r; \
16325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 16326 $(HOST_EXPORTS) \
a90ef4bf
JM
16327 (cd $(HOST_SUBDIR)/gprof && \
16328 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 16329
a90ef4bf 16330@endif gprof
4b900473 16331
a90ef4bf
JM
16332.PHONY: install-gprof maybe-install-gprof
16333maybe-install-gprof:
16334@if gprof
16335maybe-install-gprof: install-gprof
4b900473 16336
a90ef4bf
JM
16337install-gprof: installdirs
16338 @: $(MAKE); $(unstage)
4b900473
PB
16339 @r=`${PWD_COMMAND}`; export r; \
16340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16341 $(HOST_EXPORTS) \
a90ef4bf
JM
16342 (cd $(HOST_SUBDIR)/gprof && \
16343 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 16344
a90ef4bf 16345@endif gprof
4b900473 16346
a90ef4bf
JM
16347.PHONY: install-strip-gprof maybe-install-strip-gprof
16348maybe-install-strip-gprof:
16349@if gprof
16350maybe-install-strip-gprof: install-strip-gprof
4b900473 16351
a90ef4bf 16352install-strip-gprof: installdirs
4b900473
PB
16353 @: $(MAKE); $(unstage)
16354 @r=`${PWD_COMMAND}`; export r; \
16355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16356 $(HOST_EXPORTS) \
a90ef4bf
JM
16357 (cd $(HOST_SUBDIR)/gprof && \
16358 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 16359
a90ef4bf 16360@endif gprof
9b980aa1 16361
4b900473
PB
16362# Other targets (info, dvi, pdf, etc.)
16363
a90ef4bf
JM
16364.PHONY: maybe-info-gprof info-gprof
16365maybe-info-gprof:
16366@if gprof
16367maybe-info-gprof: info-gprof
4b900473 16368
a90ef4bf
JM
16369info-gprof: \
16370 configure-gprof
16371 @: $(MAKE); $(unstage)
16372 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16373 r=`${PWD_COMMAND}`; export r; \
16374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16375 $(HOST_EXPORTS) \
16376 for flag in $(EXTRA_HOST_FLAGS) ; do \
16377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16378 done; \
22121df0 16379 echo "Doing info in gprof"; \
a90ef4bf 16380 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16383 "RANLIB=$${RANLIB}" \
0c24b341 16384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16385 info) \
16386 || exit 1
16387
a90ef4bf 16388@endif gprof
4b900473 16389
a90ef4bf
JM
16390.PHONY: maybe-dvi-gprof dvi-gprof
16391maybe-dvi-gprof:
16392@if gprof
16393maybe-dvi-gprof: dvi-gprof
4b900473 16394
a90ef4bf
JM
16395dvi-gprof: \
16396 configure-gprof
16397 @: $(MAKE); $(unstage)
16398 @[ -f ./gprof/Makefile ] || exit 0; \
16399 r=`${PWD_COMMAND}`; export r; \
16400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16401 $(HOST_EXPORTS) \
4b900473
PB
16402 for flag in $(EXTRA_HOST_FLAGS) ; do \
16403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16404 done; \
22121df0 16405 echo "Doing dvi in gprof"; \
a90ef4bf 16406 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16409 "RANLIB=$${RANLIB}" \
0c24b341 16410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16411 dvi) \
16412 || exit 1
16413
a90ef4bf 16414@endif gprof
4b900473 16415
a90ef4bf
JM
16416.PHONY: maybe-pdf-gprof pdf-gprof
16417maybe-pdf-gprof:
16418@if gprof
16419maybe-pdf-gprof: pdf-gprof
4b900473 16420
a90ef4bf
JM
16421pdf-gprof: \
16422 configure-gprof
16423 @: $(MAKE); $(unstage)
16424 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16425 r=`${PWD_COMMAND}`; export r; \
16426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16427 $(HOST_EXPORTS) \
16428 for flag in $(EXTRA_HOST_FLAGS) ; do \
16429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16430 done; \
22121df0 16431 echo "Doing pdf in gprof"; \
a90ef4bf 16432 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16435 "RANLIB=$${RANLIB}" \
0c24b341 16436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16437 pdf) \
16438 || exit 1
16439
a90ef4bf 16440@endif gprof
4b900473 16441
a90ef4bf
JM
16442.PHONY: maybe-html-gprof html-gprof
16443maybe-html-gprof:
16444@if gprof
16445maybe-html-gprof: html-gprof
4b900473 16446
a90ef4bf
JM
16447html-gprof: \
16448 configure-gprof
16449 @: $(MAKE); $(unstage)
16450 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16451 r=`${PWD_COMMAND}`; export r; \
16452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16453 $(HOST_EXPORTS) \
16454 for flag in $(EXTRA_HOST_FLAGS) ; do \
16455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16456 done; \
22121df0 16457 echo "Doing html in gprof"; \
a90ef4bf 16458 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16461 "RANLIB=$${RANLIB}" \
0c24b341 16462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16463 html) \
16464 || exit 1
16465
a90ef4bf 16466@endif gprof
4b900473 16467
a90ef4bf
JM
16468.PHONY: maybe-TAGS-gprof TAGS-gprof
16469maybe-TAGS-gprof:
16470@if gprof
16471maybe-TAGS-gprof: TAGS-gprof
4b900473 16472
a90ef4bf
JM
16473TAGS-gprof: \
16474 configure-gprof
16475 @: $(MAKE); $(unstage)
16476 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16477 r=`${PWD_COMMAND}`; export r; \
16478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16479 $(HOST_EXPORTS) \
16480 for flag in $(EXTRA_HOST_FLAGS) ; do \
16481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16482 done; \
22121df0 16483 echo "Doing TAGS in gprof"; \
a90ef4bf 16484 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16487 "RANLIB=$${RANLIB}" \
0c24b341 16488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16489 TAGS) \
16490 || exit 1
16491
a90ef4bf 16492@endif gprof
4b900473 16493
a90ef4bf
JM
16494.PHONY: maybe-install-info-gprof install-info-gprof
16495maybe-install-info-gprof:
16496@if gprof
16497maybe-install-info-gprof: install-info-gprof
4b900473 16498
a90ef4bf
JM
16499install-info-gprof: \
16500 configure-gprof \
16501 info-gprof
16502 @: $(MAKE); $(unstage)
16503 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16504 r=`${PWD_COMMAND}`; export r; \
16505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16506 $(HOST_EXPORTS) \
16507 for flag in $(EXTRA_HOST_FLAGS) ; do \
16508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16509 done; \
22121df0 16510 echo "Doing install-info in gprof"; \
a90ef4bf 16511 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16514 "RANLIB=$${RANLIB}" \
0c24b341 16515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16516 install-info) \
16517 || exit 1
16518
a90ef4bf 16519@endif gprof
4b900473 16520
a90ef4bf
JM
16521.PHONY: maybe-install-pdf-gprof install-pdf-gprof
16522maybe-install-pdf-gprof:
16523@if gprof
16524maybe-install-pdf-gprof: install-pdf-gprof
a3ca38d2 16525
a90ef4bf
JM
16526install-pdf-gprof: \
16527 configure-gprof \
16528 pdf-gprof
16529 @: $(MAKE); $(unstage)
16530 @[ -f ./gprof/Makefile ] || exit 0; \
a3ca38d2
DD
16531 r=`${PWD_COMMAND}`; export r; \
16532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16533 $(HOST_EXPORTS) \
16534 for flag in $(EXTRA_HOST_FLAGS) ; do \
16535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16536 done; \
22121df0 16537 echo "Doing install-pdf in gprof"; \
a90ef4bf 16538 (cd $(HOST_SUBDIR)/gprof && \
a3ca38d2
DD
16539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16541 "RANLIB=$${RANLIB}" \
0c24b341 16542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16543 install-pdf) \
16544 || exit 1
16545
a90ef4bf 16546@endif gprof
a3ca38d2 16547
a90ef4bf
JM
16548.PHONY: maybe-install-html-gprof install-html-gprof
16549maybe-install-html-gprof:
16550@if gprof
16551maybe-install-html-gprof: install-html-gprof
4b900473 16552
a90ef4bf
JM
16553install-html-gprof: \
16554 configure-gprof \
16555 html-gprof
16556 @: $(MAKE); $(unstage)
16557 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16558 r=`${PWD_COMMAND}`; export r; \
16559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16560 $(HOST_EXPORTS) \
16561 for flag in $(EXTRA_HOST_FLAGS) ; do \
16562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16563 done; \
22121df0 16564 echo "Doing install-html in gprof"; \
a90ef4bf 16565 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16568 "RANLIB=$${RANLIB}" \
0c24b341 16569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16570 install-html) \
16571 || exit 1
16572
a90ef4bf 16573@endif gprof
4b900473 16574
a90ef4bf
JM
16575.PHONY: maybe-installcheck-gprof installcheck-gprof
16576maybe-installcheck-gprof:
16577@if gprof
16578maybe-installcheck-gprof: installcheck-gprof
4b900473 16579
a90ef4bf
JM
16580installcheck-gprof: \
16581 configure-gprof
16582 @: $(MAKE); $(unstage)
16583 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16584 r=`${PWD_COMMAND}`; export r; \
16585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16586 $(HOST_EXPORTS) \
16587 for flag in $(EXTRA_HOST_FLAGS) ; do \
16588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16589 done; \
22121df0 16590 echo "Doing installcheck in gprof"; \
a90ef4bf 16591 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16594 "RANLIB=$${RANLIB}" \
16595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16596 installcheck) \
16597 || exit 1
16598
a90ef4bf 16599@endif gprof
e28c595f 16600
a90ef4bf
JM
16601.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
16602maybe-mostlyclean-gprof:
16603@if gprof
16604maybe-mostlyclean-gprof: mostlyclean-gprof
e28c595f 16605
a90ef4bf
JM
16606mostlyclean-gprof:
16607 @: $(MAKE); $(unstage)
16608 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16609 r=`${PWD_COMMAND}`; export r; \
16610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16611 $(HOST_EXPORTS) \
16612 for flag in $(EXTRA_HOST_FLAGS) ; do \
16613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16614 done; \
22121df0 16615 echo "Doing mostlyclean in gprof"; \
a90ef4bf 16616 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16619 "RANLIB=$${RANLIB}" \
16620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16621 mostlyclean) \
16622 || exit 1
16623
a90ef4bf 16624@endif gprof
e28c595f 16625
a90ef4bf
JM
16626.PHONY: maybe-clean-gprof clean-gprof
16627maybe-clean-gprof:
16628@if gprof
16629maybe-clean-gprof: clean-gprof
e28c595f 16630
a90ef4bf
JM
16631clean-gprof:
16632 @: $(MAKE); $(unstage)
16633 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16634 r=`${PWD_COMMAND}`; export r; \
16635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16636 $(HOST_EXPORTS) \
16637 for flag in $(EXTRA_HOST_FLAGS) ; do \
16638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16639 done; \
22121df0 16640 echo "Doing clean in gprof"; \
a90ef4bf 16641 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16644 "RANLIB=$${RANLIB}" \
16645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16646 clean) \
16647 || exit 1
16648
a90ef4bf 16649@endif gprof
e28c595f 16650
a90ef4bf
JM
16651.PHONY: maybe-distclean-gprof distclean-gprof
16652maybe-distclean-gprof:
16653@if gprof
16654maybe-distclean-gprof: distclean-gprof
e28c595f 16655
a90ef4bf
JM
16656distclean-gprof:
16657 @: $(MAKE); $(unstage)
16658 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16659 r=`${PWD_COMMAND}`; export r; \
16660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16661 $(HOST_EXPORTS) \
16662 for flag in $(EXTRA_HOST_FLAGS) ; do \
16663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16664 done; \
22121df0 16665 echo "Doing distclean in gprof"; \
a90ef4bf 16666 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16669 "RANLIB=$${RANLIB}" \
16670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16671 distclean) \
16672 || exit 1
16673
a90ef4bf 16674@endif gprof
e28c595f 16675
a90ef4bf
JM
16676.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
16677maybe-maintainer-clean-gprof:
16678@if gprof
16679maybe-maintainer-clean-gprof: maintainer-clean-gprof
e28c595f 16680
a90ef4bf
JM
16681maintainer-clean-gprof:
16682 @: $(MAKE); $(unstage)
16683 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16684 r=`${PWD_COMMAND}`; export r; \
16685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16686 $(HOST_EXPORTS) \
16687 for flag in $(EXTRA_HOST_FLAGS) ; do \
16688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16689 done; \
22121df0 16690 echo "Doing maintainer-clean in gprof"; \
a90ef4bf 16691 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16694 "RANLIB=$${RANLIB}" \
16695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16696 maintainer-clean) \
16697 || exit 1
16698
a90ef4bf 16699@endif gprof
e28c595f
JM
16700
16701
16702
a90ef4bf
JM
16703.PHONY: configure-intl maybe-configure-intl
16704maybe-configure-intl:
e28c595f 16705@if gcc-bootstrap
a90ef4bf 16706configure-intl: stage_current
e28c595f 16707@endif gcc-bootstrap
a90ef4bf
JM
16708@if intl
16709maybe-configure-intl: configure-intl
16710configure-intl:
e28c595f
JM
16711 @r=`${PWD_COMMAND}`; export r; \
16712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16713 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
22121df0 16714 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
1f53ca9a 16715 $(HOST_EXPORTS) \
a90ef4bf
JM
16716 echo Configuring in $(HOST_SUBDIR)/intl; \
16717 cd "$(HOST_SUBDIR)/intl" || exit 1; \
e28c595f
JM
16718 case $(srcdir) in \
16719 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16720 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16721 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16722 esac; \
1b6c0831
L
16723 module_srcdir=intl; \
16724 $(SHELL) \
16725 $$s/$$module_srcdir/configure \
16726 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16727 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16728 --target=${target_alias} \
e28c595f 16729 || exit 1
a90ef4bf 16730@endif intl
e28c595f
JM
16731
16732
16733
a90ef4bf
JM
16734.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16735maybe-configure-stage1-intl:
16736@if intl-bootstrap
16737maybe-configure-stage1-intl: configure-stage1-intl
16738configure-stage1-intl:
e28c595f 16739 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 16740 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16741 @r=`${PWD_COMMAND}`; export r; \
16742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16743 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 16744 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
1b05fbbd 16745 $(HOST_EXPORTS) \
e28c595f 16746 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16747 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16748 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
16749 echo Configuring stage 1 in $(HOST_SUBDIR)/intl; \
16750 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16751 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16752 case $(srcdir) in \
16753 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16754 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16755 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16756 esac; \
1b6c0831
L
16757 module_srcdir=intl; \
16758 $(SHELL) $$s/$$module_srcdir/configure \
16759 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16760 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16761 --target=${target_alias} \
16762 \
a90ef4bf
JM
16763 $(STAGE1_CONFIGURE_FLAGS)
16764@endif intl-bootstrap
e28c595f 16765
a90ef4bf
JM
16766.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16767maybe-configure-stage2-intl:
16768@if intl-bootstrap
16769maybe-configure-stage2-intl: configure-stage2-intl
16770configure-stage2-intl:
e28c595f 16771 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 16772 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16773 @r=`${PWD_COMMAND}`; export r; \
16774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16775 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 16776 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16777 $(HOST_EXPORTS) \
1b05fbbd 16778 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16779 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16780 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16781 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16782 echo Configuring stage 2 in $(HOST_SUBDIR)/intl; \
16783 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16784 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16785 case $(srcdir) in \
16786 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16787 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16788 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16789 esac; \
1b6c0831
L
16790 module_srcdir=intl; \
16791 $(SHELL) $$s/$$module_srcdir/configure \
16792 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16793 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16794 --target=${target_alias} \
22121df0 16795 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16796 $(STAGE2_CONFIGURE_FLAGS)
16797@endif intl-bootstrap
e28c595f 16798
a90ef4bf
JM
16799.PHONY: configure-stage3-intl maybe-configure-stage3-intl
16800maybe-configure-stage3-intl:
16801@if intl-bootstrap
16802maybe-configure-stage3-intl: configure-stage3-intl
16803configure-stage3-intl:
e28c595f 16804 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 16805 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16806 @r=`${PWD_COMMAND}`; export r; \
16807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16808 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 16809 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16810 $(HOST_EXPORTS) \
1b05fbbd 16811 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16812 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16813 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
16814 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16815 echo Configuring stage 3 in $(HOST_SUBDIR)/intl; \
16816 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16817 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16818 case $(srcdir) in \
16819 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16820 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16821 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16822 esac; \
1b6c0831
L
16823 module_srcdir=intl; \
16824 $(SHELL) $$s/$$module_srcdir/configure \
16825 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16826 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16827 --target=${target_alias} \
22121df0 16828 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16829 $(STAGE3_CONFIGURE_FLAGS)
16830@endif intl-bootstrap
e28c595f 16831
a90ef4bf
JM
16832.PHONY: configure-stage4-intl maybe-configure-stage4-intl
16833maybe-configure-stage4-intl:
16834@if intl-bootstrap
16835maybe-configure-stage4-intl: configure-stage4-intl
16836configure-stage4-intl:
e28c595f 16837 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 16838 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16839 @r=`${PWD_COMMAND}`; export r; \
16840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16841 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 16842 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16843 $(HOST_EXPORTS) \
1b05fbbd 16844 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16845 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16846 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
16847 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16848 echo Configuring stage 4 in $(HOST_SUBDIR)/intl; \
16849 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16850 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16851 case $(srcdir) in \
16852 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16853 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16854 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16855 esac; \
1b6c0831
L
16856 module_srcdir=intl; \
16857 $(SHELL) $$s/$$module_srcdir/configure \
16858 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16859 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16860 --target=${target_alias} \
22121df0 16861 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16862 $(STAGE4_CONFIGURE_FLAGS)
16863@endif intl-bootstrap
e28c595f 16864
a90ef4bf
JM
16865.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
16866maybe-configure-stageprofile-intl:
16867@if intl-bootstrap
16868maybe-configure-stageprofile-intl: configure-stageprofile-intl
16869configure-stageprofile-intl:
e28c595f 16870 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 16871 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16872 @r=`${PWD_COMMAND}`; export r; \
16873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16874 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 16875 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16876 $(HOST_EXPORTS) \
1b05fbbd
AO
16877 $(POSTSTAGE1_HOST_EXPORTS) \
16878 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16879 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
16880 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16881 echo Configuring stage profile in $(HOST_SUBDIR)/intl; \
16882 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16883 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16884 case $(srcdir) in \
16885 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16886 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16887 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16888 esac; \
1b6c0831
L
16889 module_srcdir=intl; \
16890 $(SHELL) $$s/$$module_srcdir/configure \
16891 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16892 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16893 --target=${target_alias} \
22121df0 16894 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16895 $(STAGEprofile_CONFIGURE_FLAGS)
16896@endif intl-bootstrap
e28c595f 16897
a90ef4bf
JM
16898.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
16899maybe-configure-stagefeedback-intl:
16900@if intl-bootstrap
16901maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
16902configure-stagefeedback-intl:
e28c595f 16903 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 16904 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16905 @r=`${PWD_COMMAND}`; export r; \
16906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16907 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 16908 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16909 $(HOST_EXPORTS) \
1b05fbbd
AO
16910 $(POSTSTAGE1_HOST_EXPORTS) \
16911 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16912 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
16913 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16914 echo Configuring stage feedback in $(HOST_SUBDIR)/intl; \
16915 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16916 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16917 case $(srcdir) in \
16918 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16919 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16920 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16921 esac; \
1b6c0831
L
16922 module_srcdir=intl; \
16923 $(SHELL) $$s/$$module_srcdir/configure \
16924 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16925 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16926 --target=${target_alias} \
22121df0 16927 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16928 $(STAGEfeedback_CONFIGURE_FLAGS)
16929@endif intl-bootstrap
e28c595f
JM
16930
16931
16932
16933
16934
a90ef4bf
JM
16935.PHONY: all-intl maybe-all-intl
16936maybe-all-intl:
e28c595f 16937@if gcc-bootstrap
a90ef4bf 16938all-intl: stage_current
e28c595f 16939@endif gcc-bootstrap
a90ef4bf
JM
16940@if intl
16941TARGET-intl=all
16942maybe-all-intl: all-intl
16943all-intl: configure-intl
e28c595f
JM
16944 @r=`${PWD_COMMAND}`; export r; \
16945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16946 $(HOST_EXPORTS) \
a90ef4bf 16947 (cd $(HOST_SUBDIR)/intl && \
b3676d82 16948 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16949 $(TARGET-intl))
16950@endif intl
e28c595f
JM
16951
16952
16953
a90ef4bf
JM
16954.PHONY: all-stage1-intl maybe-all-stage1-intl
16955.PHONY: clean-stage1-intl maybe-clean-stage1-intl
16956maybe-all-stage1-intl:
16957maybe-clean-stage1-intl:
16958@if intl-bootstrap
16959maybe-all-stage1-intl: all-stage1-intl
16960all-stage1: all-stage1-intl
16961TARGET-stage1-intl = $(TARGET-intl)
16962all-stage1-intl: configure-stage1-intl
e28c595f
JM
16963 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
16964 @r=`${PWD_COMMAND}`; export r; \
16965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16966 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 16967 $(HOST_EXPORTS) \
a90ef4bf 16968 cd $(HOST_SUBDIR)/intl && \
e28c595f 16969 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 16970 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 16971 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
16972 LIBCFLAGS="$(LIBCFLAGS)" \
16973 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16974 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16975 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
16976 $(EXTRA_HOST_FLAGS) \
16977 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 16978 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 16979 $(TARGET-stage1-intl)
e28c595f 16980
a90ef4bf
JM
16981maybe-clean-stage1-intl: clean-stage1-intl
16982clean-stage1: clean-stage1-intl
16983clean-stage1-intl:
e28c595f 16984 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 16985 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 16986 else \
a90ef4bf 16987 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
e28c595f
JM
16988 $(MAKE) stage1-start; \
16989 fi; \
a90ef4bf 16990 cd $(HOST_SUBDIR)/intl && \
e28c595f 16991 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 16992 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 16993@endif intl-bootstrap
e28c595f
JM
16994
16995
a90ef4bf
JM
16996.PHONY: all-stage2-intl maybe-all-stage2-intl
16997.PHONY: clean-stage2-intl maybe-clean-stage2-intl
16998maybe-all-stage2-intl:
16999maybe-clean-stage2-intl:
17000@if intl-bootstrap
17001maybe-all-stage2-intl: all-stage2-intl
17002all-stage2: all-stage2-intl
17003TARGET-stage2-intl = $(TARGET-intl)
17004all-stage2-intl: configure-stage2-intl
e28c595f
JM
17005 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17006 @r=`${PWD_COMMAND}`; export r; \
17007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17008 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 17009 $(HOST_EXPORTS) \
1f53ca9a 17010 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17011 cd $(HOST_SUBDIR)/intl && \
e28c595f 17012 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17013 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 17014 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
17015 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17016 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17017 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17018 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17019 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17020 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 17021 $(TARGET-stage2-intl)
e28c595f 17022
a90ef4bf
JM
17023maybe-clean-stage2-intl: clean-stage2-intl
17024clean-stage2: clean-stage2-intl
17025clean-stage2-intl:
e28c595f 17026 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 17027 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17028 else \
a90ef4bf 17029 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
e28c595f
JM
17030 $(MAKE) stage2-start; \
17031 fi; \
a90ef4bf 17032 cd $(HOST_SUBDIR)/intl && \
b3676d82 17033 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17034@endif intl-bootstrap
e28c595f
JM
17035
17036
a90ef4bf
JM
17037.PHONY: all-stage3-intl maybe-all-stage3-intl
17038.PHONY: clean-stage3-intl maybe-clean-stage3-intl
17039maybe-all-stage3-intl:
17040maybe-clean-stage3-intl:
17041@if intl-bootstrap
17042maybe-all-stage3-intl: all-stage3-intl
17043all-stage3: all-stage3-intl
17044TARGET-stage3-intl = $(TARGET-intl)
17045all-stage3-intl: configure-stage3-intl
e28c595f
JM
17046 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17047 @r=`${PWD_COMMAND}`; export r; \
17048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17049 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 17050 $(HOST_EXPORTS) \
1f53ca9a 17051 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17052 cd $(HOST_SUBDIR)/intl && \
e28c595f 17053 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17054 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 17055 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
17056 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17057 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17058 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17059 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17060 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17061 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 17062 $(TARGET-stage3-intl)
e28c595f 17063
a90ef4bf
JM
17064maybe-clean-stage3-intl: clean-stage3-intl
17065clean-stage3: clean-stage3-intl
17066clean-stage3-intl:
e28c595f 17067 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 17068 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17069 else \
a90ef4bf 17070 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
e28c595f
JM
17071 $(MAKE) stage3-start; \
17072 fi; \
a90ef4bf 17073 cd $(HOST_SUBDIR)/intl && \
b3676d82 17074 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17075@endif intl-bootstrap
e28c595f
JM
17076
17077
a90ef4bf
JM
17078.PHONY: all-stage4-intl maybe-all-stage4-intl
17079.PHONY: clean-stage4-intl maybe-clean-stage4-intl
17080maybe-all-stage4-intl:
17081maybe-clean-stage4-intl:
17082@if intl-bootstrap
17083maybe-all-stage4-intl: all-stage4-intl
17084all-stage4: all-stage4-intl
17085TARGET-stage4-intl = $(TARGET-intl)
17086all-stage4-intl: configure-stage4-intl
e28c595f
JM
17087 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17088 @r=`${PWD_COMMAND}`; export r; \
17089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17090 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 17091 $(HOST_EXPORTS) \
1f53ca9a 17092 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17093 cd $(HOST_SUBDIR)/intl && \
e28c595f 17094 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17095 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 17096 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 17097 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
17098 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17099 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17100 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17101 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17102 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 17103 $(TARGET-stage4-intl)
e28c595f 17104
a90ef4bf
JM
17105maybe-clean-stage4-intl: clean-stage4-intl
17106clean-stage4: clean-stage4-intl
17107clean-stage4-intl:
e28c595f 17108 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 17109 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17110 else \
a90ef4bf 17111 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
e28c595f
JM
17112 $(MAKE) stage4-start; \
17113 fi; \
a90ef4bf 17114 cd $(HOST_SUBDIR)/intl && \
b3676d82 17115 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17116@endif intl-bootstrap
e28c595f
JM
17117
17118
a90ef4bf
JM
17119.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
17120.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
17121maybe-all-stageprofile-intl:
17122maybe-clean-stageprofile-intl:
17123@if intl-bootstrap
17124maybe-all-stageprofile-intl: all-stageprofile-intl
17125all-stageprofile: all-stageprofile-intl
17126TARGET-stageprofile-intl = $(TARGET-intl)
17127all-stageprofile-intl: configure-stageprofile-intl
e28c595f
JM
17128 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17129 @r=`${PWD_COMMAND}`; export r; \
17130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17131 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 17132 $(HOST_EXPORTS) \
1f53ca9a 17133 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17134 cd $(HOST_SUBDIR)/intl && \
e28c595f 17135 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17136 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 17137 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
17138 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17139 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17140 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17141 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17142 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17143 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 17144 $(TARGET-stageprofile-intl)
e28c595f 17145
a90ef4bf
JM
17146maybe-clean-stageprofile-intl: clean-stageprofile-intl
17147clean-stageprofile: clean-stageprofile-intl
17148clean-stageprofile-intl:
e28c595f 17149 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 17150 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17151 else \
a90ef4bf 17152 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
e28c595f
JM
17153 $(MAKE) stageprofile-start; \
17154 fi; \
a90ef4bf 17155 cd $(HOST_SUBDIR)/intl && \
b3676d82 17156 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17157@endif intl-bootstrap
e28c595f
JM
17158
17159
a90ef4bf
JM
17160.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
17161.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
17162maybe-all-stagefeedback-intl:
17163maybe-clean-stagefeedback-intl:
17164@if intl-bootstrap
17165maybe-all-stagefeedback-intl: all-stagefeedback-intl
17166all-stagefeedback: all-stagefeedback-intl
17167TARGET-stagefeedback-intl = $(TARGET-intl)
17168all-stagefeedback-intl: configure-stagefeedback-intl
e28c595f
JM
17169 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17170 @r=`${PWD_COMMAND}`; export r; \
17171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17172 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 17173 $(HOST_EXPORTS) \
1f53ca9a 17174 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17175 cd $(HOST_SUBDIR)/intl && \
e28c595f 17176 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17177 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 17178 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
17179 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17180 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17181 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17182 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17183 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17184 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 17185 $(TARGET-stagefeedback-intl)
e28c595f 17186
a90ef4bf
JM
17187maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
17188clean-stagefeedback: clean-stagefeedback-intl
17189clean-stagefeedback-intl:
e28c595f 17190 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 17191 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17192 else \
a90ef4bf 17193 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
e28c595f
JM
17194 $(MAKE) stagefeedback-start; \
17195 fi; \
a90ef4bf 17196 cd $(HOST_SUBDIR)/intl && \
b3676d82 17197 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17198@endif intl-bootstrap
e28c595f
JM
17199
17200
17201
17202
17203
a90ef4bf
JM
17204.PHONY: check-intl maybe-check-intl
17205maybe-check-intl:
17206@if intl
17207maybe-check-intl: check-intl
e28c595f 17208
a90ef4bf 17209check-intl:
e28c595f
JM
17210 @: $(MAKE); $(unstage)
17211 @r=`${PWD_COMMAND}`; export r; \
17212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17213 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 17214 (cd $(HOST_SUBDIR)/intl && \
f91ca6bc 17215 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 17216
a90ef4bf 17217@endif intl
e28c595f 17218
a90ef4bf
JM
17219.PHONY: install-intl maybe-install-intl
17220maybe-install-intl:
17221@if intl
17222maybe-install-intl: install-intl
e28c595f 17223
a90ef4bf
JM
17224install-intl: installdirs
17225 @: $(MAKE); $(unstage)
17226 @r=`${PWD_COMMAND}`; export r; \
17227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17228 $(HOST_EXPORTS) \
17229 (cd $(HOST_SUBDIR)/intl && \
17230 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 17231
a90ef4bf 17232@endif intl
e28c595f 17233
a90ef4bf
JM
17234.PHONY: install-strip-intl maybe-install-strip-intl
17235maybe-install-strip-intl:
17236@if intl
17237maybe-install-strip-intl: install-strip-intl
9b980aa1 17238
a90ef4bf
JM
17239install-strip-intl: installdirs
17240 @: $(MAKE); $(unstage)
17241 @r=`${PWD_COMMAND}`; export r; \
17242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17243 $(HOST_EXPORTS) \
17244 (cd $(HOST_SUBDIR)/intl && \
17245 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 17246
a90ef4bf 17247@endif intl
9b980aa1 17248
e28c595f
JM
17249# Other targets (info, dvi, pdf, etc.)
17250
a90ef4bf
JM
17251.PHONY: maybe-info-intl info-intl
17252maybe-info-intl:
17253@if intl
17254maybe-info-intl: info-intl
e28c595f 17255
a90ef4bf
JM
17256info-intl: \
17257 configure-intl
17258 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17259 r=`${PWD_COMMAND}`; export r; \
17260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17261 $(HOST_EXPORTS) \
17262 for flag in $(EXTRA_HOST_FLAGS) ; do \
17263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17264 done; \
22121df0 17265 echo "Doing info in intl"; \
a90ef4bf 17266 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17269 "RANLIB=$${RANLIB}" \
17270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17271 info) \
17272 || exit 1
17273
a90ef4bf 17274@endif intl
e28c595f 17275
a90ef4bf
JM
17276.PHONY: maybe-dvi-intl dvi-intl
17277maybe-dvi-intl:
17278@if intl
17279maybe-dvi-intl: dvi-intl
e28c595f 17280
a90ef4bf
JM
17281dvi-intl: \
17282 configure-intl
17283 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17284 r=`${PWD_COMMAND}`; export r; \
17285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17286 $(HOST_EXPORTS) \
17287 for flag in $(EXTRA_HOST_FLAGS) ; do \
17288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17289 done; \
22121df0 17290 echo "Doing dvi in intl"; \
a90ef4bf 17291 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17294 "RANLIB=$${RANLIB}" \
17295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17296 dvi) \
17297 || exit 1
17298
a90ef4bf 17299@endif intl
e28c595f 17300
a90ef4bf
JM
17301.PHONY: maybe-pdf-intl pdf-intl
17302maybe-pdf-intl:
17303@if intl
17304maybe-pdf-intl: pdf-intl
e28c595f 17305
a90ef4bf
JM
17306pdf-intl: \
17307 configure-intl
17308 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17309 r=`${PWD_COMMAND}`; export r; \
17310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17311 $(HOST_EXPORTS) \
17312 for flag in $(EXTRA_HOST_FLAGS) ; do \
17313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17314 done; \
22121df0 17315 echo "Doing pdf in intl"; \
a90ef4bf 17316 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17319 "RANLIB=$${RANLIB}" \
17320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17321 pdf) \
17322 || exit 1
17323
a90ef4bf 17324@endif intl
e28c595f 17325
a90ef4bf
JM
17326.PHONY: maybe-html-intl html-intl
17327maybe-html-intl:
17328@if intl
17329maybe-html-intl: html-intl
e28c595f 17330
a90ef4bf
JM
17331html-intl: \
17332 configure-intl
17333 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17334 r=`${PWD_COMMAND}`; export r; \
17335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17336 $(HOST_EXPORTS) \
17337 for flag in $(EXTRA_HOST_FLAGS) ; do \
17338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17339 done; \
22121df0 17340 echo "Doing html in intl"; \
a90ef4bf 17341 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17344 "RANLIB=$${RANLIB}" \
17345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17346 html) \
17347 || exit 1
17348
a90ef4bf 17349@endif intl
e28c595f 17350
a90ef4bf
JM
17351.PHONY: maybe-TAGS-intl TAGS-intl
17352maybe-TAGS-intl:
17353@if intl
17354maybe-TAGS-intl: TAGS-intl
e28c595f 17355
a90ef4bf
JM
17356TAGS-intl: \
17357 configure-intl
17358 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17359 r=`${PWD_COMMAND}`; export r; \
17360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17361 $(HOST_EXPORTS) \
17362 for flag in $(EXTRA_HOST_FLAGS) ; do \
17363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17364 done; \
22121df0 17365 echo "Doing TAGS in intl"; \
a90ef4bf 17366 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17369 "RANLIB=$${RANLIB}" \
17370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17371 TAGS) \
17372 || exit 1
17373
a90ef4bf 17374@endif intl
e28c595f 17375
a90ef4bf
JM
17376.PHONY: maybe-install-info-intl install-info-intl
17377maybe-install-info-intl:
17378@if intl
17379maybe-install-info-intl: install-info-intl
e28c595f 17380
a90ef4bf
JM
17381install-info-intl: \
17382 configure-intl \
17383 info-intl
17384 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17385 r=`${PWD_COMMAND}`; export r; \
17386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17387 $(HOST_EXPORTS) \
17388 for flag in $(EXTRA_HOST_FLAGS) ; do \
17389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17390 done; \
22121df0 17391 echo "Doing install-info in intl"; \
a90ef4bf 17392 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17395 "RANLIB=$${RANLIB}" \
17396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17397 install-info) \
17398 || exit 1
17399
a90ef4bf 17400@endif intl
e28c595f 17401
a90ef4bf
JM
17402.PHONY: maybe-install-pdf-intl install-pdf-intl
17403maybe-install-pdf-intl:
17404@if intl
17405maybe-install-pdf-intl: install-pdf-intl
e28c595f 17406
a90ef4bf
JM
17407install-pdf-intl: \
17408 configure-intl \
17409 pdf-intl
17410 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17411 r=`${PWD_COMMAND}`; export r; \
17412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17413 $(HOST_EXPORTS) \
17414 for flag in $(EXTRA_HOST_FLAGS) ; do \
17415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17416 done; \
22121df0 17417 echo "Doing install-pdf in intl"; \
a90ef4bf 17418 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17421 "RANLIB=$${RANLIB}" \
17422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17423 install-pdf) \
17424 || exit 1
17425
a90ef4bf 17426@endif intl
e28c595f 17427
a90ef4bf
JM
17428.PHONY: maybe-install-html-intl install-html-intl
17429maybe-install-html-intl:
17430@if intl
17431maybe-install-html-intl: install-html-intl
e28c595f 17432
a90ef4bf
JM
17433install-html-intl: \
17434 configure-intl \
17435 html-intl
17436 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17437 r=`${PWD_COMMAND}`; export r; \
17438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17439 $(HOST_EXPORTS) \
17440 for flag in $(EXTRA_HOST_FLAGS) ; do \
17441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17442 done; \
22121df0 17443 echo "Doing install-html in intl"; \
a90ef4bf 17444 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17445 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17446 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17447 "RANLIB=$${RANLIB}" \
17448 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17449 install-html) \
17450 || exit 1
17451
a90ef4bf 17452@endif intl
e28c595f 17453
a90ef4bf
JM
17454.PHONY: maybe-installcheck-intl installcheck-intl
17455maybe-installcheck-intl:
17456@if intl
17457maybe-installcheck-intl: installcheck-intl
e28c595f 17458
a90ef4bf
JM
17459installcheck-intl: \
17460 configure-intl
17461 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17462 r=`${PWD_COMMAND}`; export r; \
17463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17464 $(HOST_EXPORTS) \
17465 for flag in $(EXTRA_HOST_FLAGS) ; do \
17466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17467 done; \
22121df0 17468 echo "Doing installcheck in intl"; \
a90ef4bf 17469 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17472 "RANLIB=$${RANLIB}" \
17473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17474 installcheck) \
17475 || exit 1
17476
a90ef4bf 17477@endif intl
e28c595f 17478
a90ef4bf
JM
17479.PHONY: maybe-mostlyclean-intl mostlyclean-intl
17480maybe-mostlyclean-intl:
17481@if intl
17482maybe-mostlyclean-intl: mostlyclean-intl
e28c595f 17483
a90ef4bf
JM
17484mostlyclean-intl:
17485 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17486 r=`${PWD_COMMAND}`; export r; \
17487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17488 $(HOST_EXPORTS) \
17489 for flag in $(EXTRA_HOST_FLAGS) ; do \
17490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17491 done; \
22121df0 17492 echo "Doing mostlyclean in intl"; \
a90ef4bf 17493 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17496 "RANLIB=$${RANLIB}" \
17497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17498 mostlyclean) \
17499 || exit 1
17500
a90ef4bf 17501@endif intl
e28c595f 17502
a90ef4bf
JM
17503.PHONY: maybe-clean-intl clean-intl
17504maybe-clean-intl:
17505@if intl
17506maybe-clean-intl: clean-intl
e28c595f 17507
a90ef4bf
JM
17508clean-intl:
17509 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17510 r=`${PWD_COMMAND}`; export r; \
17511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17512 $(HOST_EXPORTS) \
17513 for flag in $(EXTRA_HOST_FLAGS) ; do \
17514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17515 done; \
22121df0 17516 echo "Doing clean in intl"; \
a90ef4bf 17517 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17518 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17519 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17520 "RANLIB=$${RANLIB}" \
17521 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17522 clean) \
17523 || exit 1
17524
a90ef4bf 17525@endif intl
e28c595f 17526
a90ef4bf
JM
17527.PHONY: maybe-distclean-intl distclean-intl
17528maybe-distclean-intl:
17529@if intl
17530maybe-distclean-intl: distclean-intl
e28c595f 17531
a90ef4bf
JM
17532distclean-intl:
17533 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17534 r=`${PWD_COMMAND}`; export r; \
17535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17536 $(HOST_EXPORTS) \
17537 for flag in $(EXTRA_HOST_FLAGS) ; do \
17538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17539 done; \
22121df0 17540 echo "Doing distclean in intl"; \
a90ef4bf 17541 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17544 "RANLIB=$${RANLIB}" \
17545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17546 distclean) \
17547 || exit 1
17548
a90ef4bf 17549@endif intl
e28c595f 17550
a90ef4bf
JM
17551.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
17552maybe-maintainer-clean-intl:
17553@if intl
17554maybe-maintainer-clean-intl: maintainer-clean-intl
e28c595f 17555
a90ef4bf
JM
17556maintainer-clean-intl:
17557 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17558 r=`${PWD_COMMAND}`; export r; \
17559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17560 $(HOST_EXPORTS) \
17561 for flag in $(EXTRA_HOST_FLAGS) ; do \
17562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17563 done; \
22121df0 17564 echo "Doing maintainer-clean in intl"; \
a90ef4bf 17565 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17568 "RANLIB=$${RANLIB}" \
17569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17570 maintainer-clean) \
17571 || exit 1
17572
a90ef4bf 17573@endif intl
e28c595f
JM
17574
17575
17576
a90ef4bf
JM
17577.PHONY: configure-tcl maybe-configure-tcl
17578maybe-configure-tcl:
e8a5fa9c 17579@if gcc-bootstrap
a90ef4bf 17580configure-tcl: stage_current
e8a5fa9c 17581@endif gcc-bootstrap
a90ef4bf
JM
17582@if tcl
17583maybe-configure-tcl: configure-tcl
17584configure-tcl:
17585 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17586 @r=`${PWD_COMMAND}`; export r; \
17587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 17588 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
22121df0 17589 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl; \
1f53ca9a 17590 $(HOST_EXPORTS) \
a90ef4bf
JM
17591 echo Configuring in $(HOST_SUBDIR)/tcl; \
17592 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
e8a5fa9c
RW
17593 case $(srcdir) in \
17594 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17595 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
e8a5fa9c
RW
17596 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17597 esac; \
1b6c0831
L
17598 module_srcdir=tcl; \
17599 $(SHELL) \
17600 $$s/$$module_srcdir/configure \
17601 --srcdir=$${topdir}/$$module_srcdir \
e8a5fa9c 17602 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17603 --target=${target_alias} \
e8a5fa9c 17604 || exit 1
a90ef4bf 17605@endif tcl
e8a5fa9c
RW
17606
17607
17608
e8a5fa9c 17609
e8a5fa9c 17610
a90ef4bf
JM
17611.PHONY: all-tcl maybe-all-tcl
17612maybe-all-tcl:
17613@if gcc-bootstrap
17614all-tcl: stage_current
17615@endif gcc-bootstrap
17616@if tcl
17617TARGET-tcl=all
17618maybe-all-tcl: all-tcl
17619all-tcl: configure-tcl
17620 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17621 @r=`${PWD_COMMAND}`; export r; \
17622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17623 $(HOST_EXPORTS) \
17624 (cd $(HOST_SUBDIR)/tcl && \
b3676d82 17625 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17626 $(TARGET-tcl))
17627@endif tcl
e8a5fa9c 17628
a90ef4bf
JM
17629
17630
17631
17632.PHONY: check-tcl maybe-check-tcl
17633maybe-check-tcl:
17634@if tcl
17635maybe-check-tcl: check-tcl
17636
17637check-tcl:
17638 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17639 @r=`${PWD_COMMAND}`; export r; \
17640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17641 $(HOST_EXPORTS) \
a90ef4bf
JM
17642 (cd $(HOST_SUBDIR)/tcl && \
17643 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 17644
a90ef4bf
JM
17645@endif tcl
17646
17647.PHONY: install-tcl maybe-install-tcl
17648maybe-install-tcl:
17649@if tcl
17650maybe-install-tcl: install-tcl
17651
17652install-tcl: installdirs
17653 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17654 @r=`${PWD_COMMAND}`; export r; \
17655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17656 $(HOST_EXPORTS) \
a90ef4bf
JM
17657 (cd $(HOST_SUBDIR)/tcl && \
17658 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 17659
a90ef4bf
JM
17660@endif tcl
17661
17662.PHONY: install-strip-tcl maybe-install-strip-tcl
17663maybe-install-strip-tcl:
17664@if tcl
17665maybe-install-strip-tcl: install-strip-tcl
17666
17667install-strip-tcl: installdirs
17668 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17669 @r=`${PWD_COMMAND}`; export r; \
17670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17671 $(HOST_EXPORTS) \
a90ef4bf
JM
17672 (cd $(HOST_SUBDIR)/tcl && \
17673 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 17674
a90ef4bf 17675@endif tcl
e8a5fa9c 17676
a90ef4bf 17677# Other targets (info, dvi, pdf, etc.)
e8a5fa9c 17678
a90ef4bf
JM
17679.PHONY: maybe-info-tcl info-tcl
17680maybe-info-tcl:
17681@if tcl
17682maybe-info-tcl: info-tcl
e8a5fa9c 17683
a90ef4bf
JM
17684info-tcl: \
17685 configure-tcl
17686 @: $(MAKE); $(unstage)
17687 @[ -f ./tcl/Makefile ] || exit 0; \
17688 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17690 $(HOST_EXPORTS) \
17691 for flag in $(EXTRA_HOST_FLAGS) ; do \
17692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17693 done; \
22121df0 17694 echo "Doing info in tcl"; \
a90ef4bf
JM
17695 (cd $(HOST_SUBDIR)/tcl && \
17696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17698 "RANLIB=$${RANLIB}" \
17699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17700 info) \
17701 || exit 1
e8a5fa9c 17702
a90ef4bf 17703@endif tcl
e8a5fa9c 17704
a90ef4bf
JM
17705.PHONY: maybe-dvi-tcl dvi-tcl
17706maybe-dvi-tcl:
17707@if tcl
17708maybe-dvi-tcl: dvi-tcl
e8a5fa9c 17709
a90ef4bf
JM
17710dvi-tcl: \
17711 configure-tcl
17712 @: $(MAKE); $(unstage)
17713 @[ -f ./tcl/Makefile ] || exit 0; \
17714 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17716 $(HOST_EXPORTS) \
17717 for flag in $(EXTRA_HOST_FLAGS) ; do \
17718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17719 done; \
22121df0 17720 echo "Doing dvi in tcl"; \
a90ef4bf
JM
17721 (cd $(HOST_SUBDIR)/tcl && \
17722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17724 "RANLIB=$${RANLIB}" \
17725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17726 dvi) \
17727 || exit 1
e8a5fa9c 17728
a90ef4bf 17729@endif tcl
e8a5fa9c 17730
a90ef4bf
JM
17731.PHONY: maybe-pdf-tcl pdf-tcl
17732maybe-pdf-tcl:
17733@if tcl
17734maybe-pdf-tcl: pdf-tcl
e8a5fa9c 17735
a90ef4bf
JM
17736pdf-tcl: \
17737 configure-tcl
17738 @: $(MAKE); $(unstage)
17739 @[ -f ./tcl/Makefile ] || exit 0; \
17740 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17742 $(HOST_EXPORTS) \
a90ef4bf
JM
17743 for flag in $(EXTRA_HOST_FLAGS) ; do \
17744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17745 done; \
22121df0 17746 echo "Doing pdf in tcl"; \
a90ef4bf
JM
17747 (cd $(HOST_SUBDIR)/tcl && \
17748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17750 "RANLIB=$${RANLIB}" \
17751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17752 pdf) \
17753 || exit 1
e8a5fa9c 17754
a90ef4bf 17755@endif tcl
e8a5fa9c 17756
a90ef4bf
JM
17757.PHONY: maybe-html-tcl html-tcl
17758maybe-html-tcl:
17759@if tcl
17760maybe-html-tcl: html-tcl
e8a5fa9c 17761
a90ef4bf
JM
17762html-tcl: \
17763 configure-tcl
17764 @: $(MAKE); $(unstage)
17765 @[ -f ./tcl/Makefile ] || exit 0; \
17766 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17768 $(HOST_EXPORTS) \
a90ef4bf
JM
17769 for flag in $(EXTRA_HOST_FLAGS) ; do \
17770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17771 done; \
22121df0 17772 echo "Doing html in tcl"; \
a90ef4bf
JM
17773 (cd $(HOST_SUBDIR)/tcl && \
17774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17776 "RANLIB=$${RANLIB}" \
17777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17778 html) \
17779 || exit 1
e8a5fa9c 17780
a90ef4bf 17781@endif tcl
e8a5fa9c 17782
a90ef4bf
JM
17783.PHONY: maybe-TAGS-tcl TAGS-tcl
17784maybe-TAGS-tcl:
17785@if tcl
17786maybe-TAGS-tcl: TAGS-tcl
e8a5fa9c 17787
a90ef4bf
JM
17788TAGS-tcl: \
17789 configure-tcl
17790 @: $(MAKE); $(unstage)
17791 @[ -f ./tcl/Makefile ] || exit 0; \
17792 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17794 $(HOST_EXPORTS) \
a90ef4bf
JM
17795 for flag in $(EXTRA_HOST_FLAGS) ; do \
17796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17797 done; \
22121df0 17798 echo "Doing TAGS in tcl"; \
a90ef4bf
JM
17799 (cd $(HOST_SUBDIR)/tcl && \
17800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17802 "RANLIB=$${RANLIB}" \
17803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17804 TAGS) \
17805 || exit 1
e8a5fa9c 17806
a90ef4bf 17807@endif tcl
e8a5fa9c 17808
a90ef4bf
JM
17809.PHONY: maybe-install-info-tcl install-info-tcl
17810maybe-install-info-tcl:
17811@if tcl
17812maybe-install-info-tcl: install-info-tcl
e8a5fa9c 17813
a90ef4bf
JM
17814install-info-tcl: \
17815 configure-tcl \
17816 info-tcl
e8a5fa9c 17817 @: $(MAKE); $(unstage)
a90ef4bf 17818 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17819 r=`${PWD_COMMAND}`; export r; \
17820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17821 $(HOST_EXPORTS) \
17822 for flag in $(EXTRA_HOST_FLAGS) ; do \
17823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17824 done; \
22121df0 17825 echo "Doing install-info in tcl"; \
a90ef4bf 17826 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17829 "RANLIB=$${RANLIB}" \
17830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17831 install-info) \
e8a5fa9c
RW
17832 || exit 1
17833
a90ef4bf 17834@endif tcl
e8a5fa9c 17835
a90ef4bf
JM
17836.PHONY: maybe-install-pdf-tcl install-pdf-tcl
17837maybe-install-pdf-tcl:
17838@if tcl
17839maybe-install-pdf-tcl: install-pdf-tcl
e8a5fa9c 17840
a90ef4bf
JM
17841install-pdf-tcl: \
17842 configure-tcl \
17843 pdf-tcl
17844 @: $(MAKE); $(unstage)
17845 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17846 r=`${PWD_COMMAND}`; export r; \
17847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17848 $(HOST_EXPORTS) \
17849 for flag in $(EXTRA_HOST_FLAGS) ; do \
17850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17851 done; \
22121df0 17852 echo "Doing install-pdf in tcl"; \
a90ef4bf 17853 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17856 "RANLIB=$${RANLIB}" \
17857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17858 install-pdf) \
e8a5fa9c
RW
17859 || exit 1
17860
a90ef4bf 17861@endif tcl
e8a5fa9c 17862
a90ef4bf
JM
17863.PHONY: maybe-install-html-tcl install-html-tcl
17864maybe-install-html-tcl:
17865@if tcl
17866maybe-install-html-tcl: install-html-tcl
e8a5fa9c 17867
a90ef4bf
JM
17868install-html-tcl: \
17869 configure-tcl \
17870 html-tcl
17871 @: $(MAKE); $(unstage)
17872 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17873 r=`${PWD_COMMAND}`; export r; \
17874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17875 $(HOST_EXPORTS) \
17876 for flag in $(EXTRA_HOST_FLAGS) ; do \
17877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17878 done; \
22121df0 17879 echo "Doing install-html in tcl"; \
a90ef4bf 17880 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17883 "RANLIB=$${RANLIB}" \
17884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17885 install-html) \
e8a5fa9c
RW
17886 || exit 1
17887
a90ef4bf 17888@endif tcl
e8a5fa9c 17889
a90ef4bf
JM
17890.PHONY: maybe-installcheck-tcl installcheck-tcl
17891maybe-installcheck-tcl:
17892@if tcl
17893maybe-installcheck-tcl: installcheck-tcl
e8a5fa9c 17894
a90ef4bf
JM
17895installcheck-tcl: \
17896 configure-tcl
17897 @: $(MAKE); $(unstage)
17898 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17899 r=`${PWD_COMMAND}`; export r; \
17900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17901 $(HOST_EXPORTS) \
17902 for flag in $(EXTRA_HOST_FLAGS) ; do \
17903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17904 done; \
22121df0 17905 echo "Doing installcheck in tcl"; \
a90ef4bf 17906 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17909 "RANLIB=$${RANLIB}" \
17910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17911 installcheck) \
e8a5fa9c
RW
17912 || exit 1
17913
a90ef4bf 17914@endif tcl
e8a5fa9c 17915
a90ef4bf
JM
17916.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
17917maybe-mostlyclean-tcl:
17918@if tcl
17919maybe-mostlyclean-tcl: mostlyclean-tcl
e8a5fa9c 17920
a90ef4bf
JM
17921# tcl doesn't support mostlyclean.
17922mostlyclean-tcl:
17923
17924@endif tcl
17925
17926.PHONY: maybe-clean-tcl clean-tcl
17927maybe-clean-tcl:
17928@if tcl
17929maybe-clean-tcl: clean-tcl
17930
17931clean-tcl:
17932 @: $(MAKE); $(unstage)
17933 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17934 r=`${PWD_COMMAND}`; export r; \
17935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17936 $(HOST_EXPORTS) \
17937 for flag in $(EXTRA_HOST_FLAGS) ; do \
17938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17939 done; \
22121df0 17940 echo "Doing clean in tcl"; \
a90ef4bf 17941 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17944 "RANLIB=$${RANLIB}" \
17945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17946 clean) \
e8a5fa9c
RW
17947 || exit 1
17948
a90ef4bf 17949@endif tcl
e8a5fa9c 17950
a90ef4bf
JM
17951.PHONY: maybe-distclean-tcl distclean-tcl
17952maybe-distclean-tcl:
17953@if tcl
17954maybe-distclean-tcl: distclean-tcl
e8a5fa9c 17955
a90ef4bf
JM
17956distclean-tcl:
17957 @: $(MAKE); $(unstage)
17958 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17959 r=`${PWD_COMMAND}`; export r; \
17960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17961 $(HOST_EXPORTS) \
17962 for flag in $(EXTRA_HOST_FLAGS) ; do \
17963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17964 done; \
22121df0 17965 echo "Doing distclean in tcl"; \
a90ef4bf 17966 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17969 "RANLIB=$${RANLIB}" \
17970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17971 distclean) \
e8a5fa9c
RW
17972 || exit 1
17973
a90ef4bf 17974@endif tcl
e8a5fa9c 17975
a90ef4bf
JM
17976.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
17977maybe-maintainer-clean-tcl:
17978@if tcl
17979maybe-maintainer-clean-tcl: maintainer-clean-tcl
e8a5fa9c 17980
a90ef4bf
JM
17981maintainer-clean-tcl:
17982 @: $(MAKE); $(unstage)
17983 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17984 r=`${PWD_COMMAND}`; export r; \
17985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17986 $(HOST_EXPORTS) \
17987 for flag in $(EXTRA_HOST_FLAGS) ; do \
17988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17989 done; \
22121df0 17990 echo "Doing maintainer-clean in tcl"; \
a90ef4bf 17991 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17994 "RANLIB=$${RANLIB}" \
17995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17996 maintainer-clean) \
e8a5fa9c
RW
17997 || exit 1
17998
a90ef4bf 17999@endif tcl
e8a5fa9c 18000
e8a5fa9c 18001
a90ef4bf
JM
18002
18003.PHONY: configure-itcl maybe-configure-itcl
18004maybe-configure-itcl:
18005@if gcc-bootstrap
18006configure-itcl: stage_current
18007@endif gcc-bootstrap
18008@if itcl
18009maybe-configure-itcl: configure-itcl
18010configure-itcl:
18011 @: $(MAKE); $(unstage)
18012 @r=`${PWD_COMMAND}`; export r; \
18013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18014 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
22121df0 18015 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl; \
a90ef4bf
JM
18016 $(HOST_EXPORTS) \
18017 echo Configuring in $(HOST_SUBDIR)/itcl; \
18018 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
18019 case $(srcdir) in \
18020 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18021 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
18022 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18023 esac; \
1b6c0831
L
18024 module_srcdir=itcl; \
18025 $(SHELL) \
18026 $$s/$$module_srcdir/configure \
18027 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18028 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18029 --target=${target_alias} \
a90ef4bf
JM
18030 || exit 1
18031@endif itcl
18032
18033
18034
18035
18036
18037.PHONY: all-itcl maybe-all-itcl
18038maybe-all-itcl:
18039@if gcc-bootstrap
18040all-itcl: stage_current
18041@endif gcc-bootstrap
18042@if itcl
18043TARGET-itcl=all
18044maybe-all-itcl: all-itcl
18045all-itcl: configure-itcl
18046 @: $(MAKE); $(unstage)
18047 @r=`${PWD_COMMAND}`; export r; \
18048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18049 $(HOST_EXPORTS) \
18050 (cd $(HOST_SUBDIR)/itcl && \
b3676d82 18051 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18052 $(TARGET-itcl))
18053@endif itcl
18054
18055
18056
18057
18058.PHONY: check-itcl maybe-check-itcl
18059maybe-check-itcl:
18060@if itcl
18061maybe-check-itcl: check-itcl
18062
18063check-itcl:
18064 @: $(MAKE); $(unstage)
18065 @r=`${PWD_COMMAND}`; export r; \
18066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18067 $(HOST_EXPORTS) \
a90ef4bf
JM
18068 (cd $(HOST_SUBDIR)/itcl && \
18069 $(MAKE) $(FLAGS_TO_PASS) check)
18070
18071@endif itcl
18072
18073.PHONY: install-itcl maybe-install-itcl
18074maybe-install-itcl:
18075@if itcl
18076maybe-install-itcl: install-itcl
18077
18078install-itcl: installdirs
18079 @: $(MAKE); $(unstage)
18080 @r=`${PWD_COMMAND}`; export r; \
18081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18082 $(HOST_EXPORTS) \
18083 (cd $(HOST_SUBDIR)/itcl && \
18084 $(MAKE) $(FLAGS_TO_PASS) install)
18085
18086@endif itcl
18087
18088.PHONY: install-strip-itcl maybe-install-strip-itcl
18089maybe-install-strip-itcl:
18090@if itcl
18091maybe-install-strip-itcl: install-strip-itcl
18092
18093install-strip-itcl: installdirs
18094 @: $(MAKE); $(unstage)
18095 @r=`${PWD_COMMAND}`; export r; \
18096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18097 $(HOST_EXPORTS) \
18098 (cd $(HOST_SUBDIR)/itcl && \
18099 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18100
18101@endif itcl
18102
18103# Other targets (info, dvi, pdf, etc.)
18104
18105.PHONY: maybe-info-itcl info-itcl
18106maybe-info-itcl:
18107@if itcl
18108maybe-info-itcl: info-itcl
18109
18110info-itcl: \
18111 configure-itcl
18112 @: $(MAKE); $(unstage)
18113 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18114 r=`${PWD_COMMAND}`; export r; \
18115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18116 $(HOST_EXPORTS) \
18117 for flag in $(EXTRA_HOST_FLAGS) ; do \
18118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18119 done; \
22121df0 18120 echo "Doing info in itcl"; \
a90ef4bf 18121 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18124 "RANLIB=$${RANLIB}" \
18125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18126 info) \
e8a5fa9c
RW
18127 || exit 1
18128
a90ef4bf 18129@endif itcl
e8a5fa9c 18130
a90ef4bf
JM
18131.PHONY: maybe-dvi-itcl dvi-itcl
18132maybe-dvi-itcl:
18133@if itcl
18134maybe-dvi-itcl: dvi-itcl
e8a5fa9c 18135
a90ef4bf
JM
18136dvi-itcl: \
18137 configure-itcl
18138 @: $(MAKE); $(unstage)
18139 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18140 r=`${PWD_COMMAND}`; export r; \
18141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18142 $(HOST_EXPORTS) \
18143 for flag in $(EXTRA_HOST_FLAGS) ; do \
18144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18145 done; \
22121df0 18146 echo "Doing dvi in itcl"; \
a90ef4bf 18147 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18150 "RANLIB=$${RANLIB}" \
18151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18152 dvi) \
e8a5fa9c
RW
18153 || exit 1
18154
a90ef4bf 18155@endif itcl
e8a5fa9c 18156
a90ef4bf
JM
18157.PHONY: maybe-pdf-itcl pdf-itcl
18158maybe-pdf-itcl:
18159@if itcl
18160maybe-pdf-itcl: pdf-itcl
e8a5fa9c 18161
a90ef4bf
JM
18162pdf-itcl: \
18163 configure-itcl
18164 @: $(MAKE); $(unstage)
18165 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18166 r=`${PWD_COMMAND}`; export r; \
18167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18168 $(HOST_EXPORTS) \
18169 for flag in $(EXTRA_HOST_FLAGS) ; do \
18170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18171 done; \
22121df0 18172 echo "Doing pdf in itcl"; \
a90ef4bf 18173 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18176 "RANLIB=$${RANLIB}" \
18177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18178 pdf) \
e8a5fa9c
RW
18179 || exit 1
18180
a90ef4bf 18181@endif itcl
e8a5fa9c 18182
a90ef4bf
JM
18183.PHONY: maybe-html-itcl html-itcl
18184maybe-html-itcl:
18185@if itcl
18186maybe-html-itcl: html-itcl
e8a5fa9c 18187
a90ef4bf
JM
18188html-itcl: \
18189 configure-itcl
18190 @: $(MAKE); $(unstage)
18191 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18192 r=`${PWD_COMMAND}`; export r; \
18193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18194 $(HOST_EXPORTS) \
18195 for flag in $(EXTRA_HOST_FLAGS) ; do \
18196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18197 done; \
22121df0 18198 echo "Doing html in itcl"; \
a90ef4bf 18199 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18202 "RANLIB=$${RANLIB}" \
18203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18204 html) \
e8a5fa9c
RW
18205 || exit 1
18206
a90ef4bf 18207@endif itcl
e8a5fa9c 18208
a90ef4bf
JM
18209.PHONY: maybe-TAGS-itcl TAGS-itcl
18210maybe-TAGS-itcl:
18211@if itcl
18212maybe-TAGS-itcl: TAGS-itcl
e8a5fa9c 18213
a90ef4bf
JM
18214TAGS-itcl: \
18215 configure-itcl
18216 @: $(MAKE); $(unstage)
18217 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18218 r=`${PWD_COMMAND}`; export r; \
18219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18220 $(HOST_EXPORTS) \
18221 for flag in $(EXTRA_HOST_FLAGS) ; do \
18222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18223 done; \
22121df0 18224 echo "Doing TAGS in itcl"; \
a90ef4bf
JM
18225 (cd $(HOST_SUBDIR)/itcl && \
18226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18228 "RANLIB=$${RANLIB}" \
18229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18230 TAGS) \
18231 || exit 1
18232
18233@endif itcl
18234
18235.PHONY: maybe-install-info-itcl install-info-itcl
18236maybe-install-info-itcl:
18237@if itcl
18238maybe-install-info-itcl: install-info-itcl
18239
18240install-info-itcl: \
18241 configure-itcl \
18242 info-itcl
18243 @: $(MAKE); $(unstage)
18244 @[ -f ./itcl/Makefile ] || exit 0; \
18245 r=`${PWD_COMMAND}`; export r; \
18246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18247 $(HOST_EXPORTS) \
18248 for flag in $(EXTRA_HOST_FLAGS) ; do \
18249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18250 done; \
22121df0 18251 echo "Doing install-info in itcl"; \
a90ef4bf
JM
18252 (cd $(HOST_SUBDIR)/itcl && \
18253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18255 "RANLIB=$${RANLIB}" \
18256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18257 install-info) \
18258 || exit 1
18259
18260@endif itcl
18261
18262.PHONY: maybe-install-pdf-itcl install-pdf-itcl
18263maybe-install-pdf-itcl:
18264@if itcl
18265maybe-install-pdf-itcl: install-pdf-itcl
18266
18267install-pdf-itcl: \
18268 configure-itcl \
18269 pdf-itcl
18270 @: $(MAKE); $(unstage)
18271 @[ -f ./itcl/Makefile ] || exit 0; \
18272 r=`${PWD_COMMAND}`; export r; \
18273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18274 $(HOST_EXPORTS) \
18275 for flag in $(EXTRA_HOST_FLAGS) ; do \
18276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18277 done; \
22121df0 18278 echo "Doing install-pdf in itcl"; \
a90ef4bf
JM
18279 (cd $(HOST_SUBDIR)/itcl && \
18280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18282 "RANLIB=$${RANLIB}" \
18283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18284 install-pdf) \
18285 || exit 1
18286
18287@endif itcl
18288
18289.PHONY: maybe-install-html-itcl install-html-itcl
18290maybe-install-html-itcl:
18291@if itcl
18292maybe-install-html-itcl: install-html-itcl
18293
18294install-html-itcl: \
18295 configure-itcl \
18296 html-itcl
18297 @: $(MAKE); $(unstage)
18298 @[ -f ./itcl/Makefile ] || exit 0; \
18299 r=`${PWD_COMMAND}`; export r; \
18300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18301 $(HOST_EXPORTS) \
18302 for flag in $(EXTRA_HOST_FLAGS) ; do \
18303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18304 done; \
22121df0 18305 echo "Doing install-html in itcl"; \
a90ef4bf
JM
18306 (cd $(HOST_SUBDIR)/itcl && \
18307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18309 "RANLIB=$${RANLIB}" \
18310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18311 install-html) \
18312 || exit 1
18313
18314@endif itcl
18315
18316.PHONY: maybe-installcheck-itcl installcheck-itcl
18317maybe-installcheck-itcl:
18318@if itcl
18319maybe-installcheck-itcl: installcheck-itcl
18320
18321installcheck-itcl: \
18322 configure-itcl
18323 @: $(MAKE); $(unstage)
18324 @[ -f ./itcl/Makefile ] || exit 0; \
18325 r=`${PWD_COMMAND}`; export r; \
18326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18327 $(HOST_EXPORTS) \
18328 for flag in $(EXTRA_HOST_FLAGS) ; do \
18329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18330 done; \
22121df0 18331 echo "Doing installcheck in itcl"; \
a90ef4bf
JM
18332 (cd $(HOST_SUBDIR)/itcl && \
18333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18335 "RANLIB=$${RANLIB}" \
18336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18337 installcheck) \
18338 || exit 1
18339
18340@endif itcl
18341
18342.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
18343maybe-mostlyclean-itcl:
18344@if itcl
18345maybe-mostlyclean-itcl: mostlyclean-itcl
18346
18347mostlyclean-itcl:
18348 @: $(MAKE); $(unstage)
18349 @[ -f ./itcl/Makefile ] || exit 0; \
18350 r=`${PWD_COMMAND}`; export r; \
18351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18352 $(HOST_EXPORTS) \
18353 for flag in $(EXTRA_HOST_FLAGS) ; do \
18354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18355 done; \
22121df0 18356 echo "Doing mostlyclean in itcl"; \
a90ef4bf
JM
18357 (cd $(HOST_SUBDIR)/itcl && \
18358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18360 "RANLIB=$${RANLIB}" \
18361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18362 mostlyclean) \
18363 || exit 1
18364
18365@endif itcl
18366
18367.PHONY: maybe-clean-itcl clean-itcl
18368maybe-clean-itcl:
18369@if itcl
18370maybe-clean-itcl: clean-itcl
18371
18372clean-itcl:
18373 @: $(MAKE); $(unstage)
18374 @[ -f ./itcl/Makefile ] || exit 0; \
18375 r=`${PWD_COMMAND}`; export r; \
18376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18377 $(HOST_EXPORTS) \
18378 for flag in $(EXTRA_HOST_FLAGS) ; do \
18379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18380 done; \
22121df0 18381 echo "Doing clean in itcl"; \
a90ef4bf
JM
18382 (cd $(HOST_SUBDIR)/itcl && \
18383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18385 "RANLIB=$${RANLIB}" \
18386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18387 clean) \
18388 || exit 1
18389
18390@endif itcl
18391
18392.PHONY: maybe-distclean-itcl distclean-itcl
18393maybe-distclean-itcl:
18394@if itcl
18395maybe-distclean-itcl: distclean-itcl
18396
18397distclean-itcl:
18398 @: $(MAKE); $(unstage)
18399 @[ -f ./itcl/Makefile ] || exit 0; \
18400 r=`${PWD_COMMAND}`; export r; \
18401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18402 $(HOST_EXPORTS) \
18403 for flag in $(EXTRA_HOST_FLAGS) ; do \
18404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18405 done; \
22121df0 18406 echo "Doing distclean in itcl"; \
a90ef4bf 18407 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18410 "RANLIB=$${RANLIB}" \
18411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18412 distclean) \
18413 || exit 1
18414
a90ef4bf 18415@endif itcl
e8a5fa9c 18416
a90ef4bf
JM
18417.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
18418maybe-maintainer-clean-itcl:
18419@if itcl
18420maybe-maintainer-clean-itcl: maintainer-clean-itcl
e8a5fa9c 18421
a90ef4bf
JM
18422maintainer-clean-itcl:
18423 @: $(MAKE); $(unstage)
18424 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18425 r=`${PWD_COMMAND}`; export r; \
18426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18427 $(HOST_EXPORTS) \
18428 for flag in $(EXTRA_HOST_FLAGS) ; do \
18429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18430 done; \
22121df0 18431 echo "Doing maintainer-clean in itcl"; \
a90ef4bf 18432 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18435 "RANLIB=$${RANLIB}" \
18436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18437 maintainer-clean) \
18438 || exit 1
18439
a90ef4bf 18440@endif itcl
e8a5fa9c
RW
18441
18442
18443
a90ef4bf
JM
18444.PHONY: configure-ld maybe-configure-ld
18445maybe-configure-ld:
e28c595f 18446@if gcc-bootstrap
a90ef4bf 18447configure-ld: stage_current
e28c595f 18448@endif gcc-bootstrap
a90ef4bf
JM
18449@if ld
18450maybe-configure-ld: configure-ld
18451configure-ld:
e28c595f
JM
18452 @r=`${PWD_COMMAND}`; export r; \
18453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18454 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
22121df0 18455 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
1f53ca9a 18456 $(HOST_EXPORTS) \
a90ef4bf
JM
18457 echo Configuring in $(HOST_SUBDIR)/ld; \
18458 cd "$(HOST_SUBDIR)/ld" || exit 1; \
e28c595f
JM
18459 case $(srcdir) in \
18460 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18461 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18462 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18463 esac; \
1b6c0831
L
18464 module_srcdir=ld; \
18465 $(SHELL) \
18466 $$s/$$module_srcdir/configure \
18467 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18468 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18469 --target=${target_alias} \
e28c595f 18470 || exit 1
a90ef4bf 18471@endif ld
e28c595f
JM
18472
18473
18474
a90ef4bf
JM
18475.PHONY: configure-stage1-ld maybe-configure-stage1-ld
18476maybe-configure-stage1-ld:
18477@if ld-bootstrap
18478maybe-configure-stage1-ld: configure-stage1-ld
18479configure-stage1-ld:
e28c595f 18480 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 18481 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18482 @r=`${PWD_COMMAND}`; export r; \
18483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18484 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 18485 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
1b05fbbd 18486 $(HOST_EXPORTS) \
e28c595f 18487 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18488 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18489 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
18490 echo Configuring stage 1 in $(HOST_SUBDIR)/ld; \
18491 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18492 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18493 case $(srcdir) in \
18494 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18495 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18496 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18497 esac; \
1b6c0831
L
18498 module_srcdir=ld; \
18499 $(SHELL) $$s/$$module_srcdir/configure \
18500 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18501 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18502 --target=${target_alias} \
18503 \
a90ef4bf
JM
18504 $(STAGE1_CONFIGURE_FLAGS)
18505@endif ld-bootstrap
e28c595f 18506
a90ef4bf
JM
18507.PHONY: configure-stage2-ld maybe-configure-stage2-ld
18508maybe-configure-stage2-ld:
18509@if ld-bootstrap
18510maybe-configure-stage2-ld: configure-stage2-ld
18511configure-stage2-ld:
e28c595f 18512 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 18513 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18514 @r=`${PWD_COMMAND}`; export r; \
18515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18516 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 18517 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18518 $(HOST_EXPORTS) \
1b05fbbd 18519 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18520 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18521 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18522 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18523 echo Configuring stage 2 in $(HOST_SUBDIR)/ld; \
18524 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18525 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18526 case $(srcdir) in \
18527 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18528 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18529 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18530 esac; \
1b6c0831
L
18531 module_srcdir=ld; \
18532 $(SHELL) $$s/$$module_srcdir/configure \
18533 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18534 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18535 --target=${target_alias} \
22121df0 18536 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18537 $(STAGE2_CONFIGURE_FLAGS)
18538@endif ld-bootstrap
e28c595f 18539
a90ef4bf
JM
18540.PHONY: configure-stage3-ld maybe-configure-stage3-ld
18541maybe-configure-stage3-ld:
18542@if ld-bootstrap
18543maybe-configure-stage3-ld: configure-stage3-ld
18544configure-stage3-ld:
e28c595f 18545 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 18546 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18547 @r=`${PWD_COMMAND}`; export r; \
18548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18549 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 18550 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18551 $(HOST_EXPORTS) \
1b05fbbd 18552 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18553 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18554 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18555 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18556 echo Configuring stage 3 in $(HOST_SUBDIR)/ld; \
18557 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18558 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18559 case $(srcdir) in \
18560 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18561 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18562 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18563 esac; \
1b6c0831
L
18564 module_srcdir=ld; \
18565 $(SHELL) $$s/$$module_srcdir/configure \
18566 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18567 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18568 --target=${target_alias} \
22121df0 18569 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18570 $(STAGE3_CONFIGURE_FLAGS)
18571@endif ld-bootstrap
e28c595f 18572
a90ef4bf
JM
18573.PHONY: configure-stage4-ld maybe-configure-stage4-ld
18574maybe-configure-stage4-ld:
18575@if ld-bootstrap
18576maybe-configure-stage4-ld: configure-stage4-ld
18577configure-stage4-ld:
e28c595f 18578 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 18579 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18580 @r=`${PWD_COMMAND}`; export r; \
18581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18582 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 18583 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18584 $(HOST_EXPORTS) \
1b05fbbd 18585 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18586 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18587 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18588 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18589 echo Configuring stage 4 in $(HOST_SUBDIR)/ld; \
18590 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18591 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18592 case $(srcdir) in \
18593 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18594 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18595 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18596 esac; \
1b6c0831
L
18597 module_srcdir=ld; \
18598 $(SHELL) $$s/$$module_srcdir/configure \
18599 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18600 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18601 --target=${target_alias} \
22121df0 18602 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18603 $(STAGE4_CONFIGURE_FLAGS)
18604@endif ld-bootstrap
e28c595f 18605
a90ef4bf
JM
18606.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
18607maybe-configure-stageprofile-ld:
18608@if ld-bootstrap
18609maybe-configure-stageprofile-ld: configure-stageprofile-ld
18610configure-stageprofile-ld:
e28c595f 18611 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 18612 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18613 @r=`${PWD_COMMAND}`; export r; \
18614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18615 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 18616 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18617 $(HOST_EXPORTS) \
1b05fbbd
AO
18618 $(POSTSTAGE1_HOST_EXPORTS) \
18619 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18620 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18621 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18622 echo Configuring stage profile in $(HOST_SUBDIR)/ld; \
18623 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18624 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18625 case $(srcdir) in \
18626 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18627 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18628 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18629 esac; \
1b6c0831
L
18630 module_srcdir=ld; \
18631 $(SHELL) $$s/$$module_srcdir/configure \
18632 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18633 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18634 --target=${target_alias} \
22121df0 18635 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18636 $(STAGEprofile_CONFIGURE_FLAGS)
18637@endif ld-bootstrap
e28c595f 18638
a90ef4bf
JM
18639.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
18640maybe-configure-stagefeedback-ld:
18641@if ld-bootstrap
18642maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
18643configure-stagefeedback-ld:
e28c595f 18644 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 18645 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18646 @r=`${PWD_COMMAND}`; export r; \
18647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18648 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 18649 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18650 $(HOST_EXPORTS) \
1b05fbbd
AO
18651 $(POSTSTAGE1_HOST_EXPORTS) \
18652 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18653 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18654 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18655 echo Configuring stage feedback in $(HOST_SUBDIR)/ld; \
18656 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18657 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18658 case $(srcdir) in \
18659 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18660 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18661 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18662 esac; \
1b6c0831
L
18663 module_srcdir=ld; \
18664 $(SHELL) $$s/$$module_srcdir/configure \
18665 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18666 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18667 --target=${target_alias} \
22121df0 18668 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18669 $(STAGEfeedback_CONFIGURE_FLAGS)
18670@endif ld-bootstrap
e28c595f
JM
18671
18672
18673
18674
18675
a90ef4bf
JM
18676.PHONY: all-ld maybe-all-ld
18677maybe-all-ld:
e28c595f 18678@if gcc-bootstrap
a90ef4bf 18679all-ld: stage_current
e28c595f 18680@endif gcc-bootstrap
a90ef4bf
JM
18681@if ld
18682TARGET-ld=all
18683maybe-all-ld: all-ld
18684all-ld: configure-ld
e28c595f
JM
18685 @r=`${PWD_COMMAND}`; export r; \
18686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 18687 $(HOST_EXPORTS) \
a90ef4bf 18688 (cd $(HOST_SUBDIR)/ld && \
b3676d82 18689 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18690 $(TARGET-ld))
18691@endif ld
e28c595f
JM
18692
18693
18694
a90ef4bf
JM
18695.PHONY: all-stage1-ld maybe-all-stage1-ld
18696.PHONY: clean-stage1-ld maybe-clean-stage1-ld
18697maybe-all-stage1-ld:
18698maybe-clean-stage1-ld:
18699@if ld-bootstrap
18700maybe-all-stage1-ld: all-stage1-ld
18701all-stage1: all-stage1-ld
18702TARGET-stage1-ld = $(TARGET-ld)
18703all-stage1-ld: configure-stage1-ld
e28c595f
JM
18704 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18705 @r=`${PWD_COMMAND}`; export r; \
18706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18707 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 18708 $(HOST_EXPORTS) \
a90ef4bf 18709 cd $(HOST_SUBDIR)/ld && \
e28c595f 18710 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18711 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 18712 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
18713 LIBCFLAGS="$(LIBCFLAGS)" \
18714 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18715 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18716 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
18717 $(EXTRA_HOST_FLAGS) \
18718 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 18719 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 18720 $(TARGET-stage1-ld)
e28c595f 18721
a90ef4bf
JM
18722maybe-clean-stage1-ld: clean-stage1-ld
18723clean-stage1: clean-stage1-ld
18724clean-stage1-ld:
e28c595f 18725 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 18726 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18727 else \
a90ef4bf 18728 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
e28c595f
JM
18729 $(MAKE) stage1-start; \
18730 fi; \
a90ef4bf 18731 cd $(HOST_SUBDIR)/ld && \
e28c595f 18732 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 18733 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18734@endif ld-bootstrap
e28c595f
JM
18735
18736
a90ef4bf
JM
18737.PHONY: all-stage2-ld maybe-all-stage2-ld
18738.PHONY: clean-stage2-ld maybe-clean-stage2-ld
18739maybe-all-stage2-ld:
18740maybe-clean-stage2-ld:
18741@if ld-bootstrap
18742maybe-all-stage2-ld: all-stage2-ld
18743all-stage2: all-stage2-ld
18744TARGET-stage2-ld = $(TARGET-ld)
18745all-stage2-ld: configure-stage2-ld
e28c595f
JM
18746 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18747 @r=`${PWD_COMMAND}`; export r; \
18748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18749 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 18750 $(HOST_EXPORTS) \
1f53ca9a 18751 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18752 cd $(HOST_SUBDIR)/ld && \
e28c595f 18753 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18754 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 18755 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
18756 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18757 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18758 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18759 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18760 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18761 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 18762 $(TARGET-stage2-ld)
e28c595f 18763
a90ef4bf
JM
18764maybe-clean-stage2-ld: clean-stage2-ld
18765clean-stage2: clean-stage2-ld
18766clean-stage2-ld:
e28c595f 18767 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 18768 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18769 else \
a90ef4bf 18770 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
e28c595f
JM
18771 $(MAKE) stage2-start; \
18772 fi; \
a90ef4bf 18773 cd $(HOST_SUBDIR)/ld && \
b3676d82 18774 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18775@endif ld-bootstrap
e28c595f
JM
18776
18777
a90ef4bf
JM
18778.PHONY: all-stage3-ld maybe-all-stage3-ld
18779.PHONY: clean-stage3-ld maybe-clean-stage3-ld
18780maybe-all-stage3-ld:
18781maybe-clean-stage3-ld:
18782@if ld-bootstrap
18783maybe-all-stage3-ld: all-stage3-ld
18784all-stage3: all-stage3-ld
18785TARGET-stage3-ld = $(TARGET-ld)
18786all-stage3-ld: configure-stage3-ld
e28c595f
JM
18787 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18788 @r=`${PWD_COMMAND}`; export r; \
18789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18790 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 18791 $(HOST_EXPORTS) \
1f53ca9a 18792 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18793 cd $(HOST_SUBDIR)/ld && \
e28c595f 18794 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18795 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 18796 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
18797 LIBCFLAGS="$(STAGE3_CFLAGS)" \
18798 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18799 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18800 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18801 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18802 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 18803 $(TARGET-stage3-ld)
e28c595f 18804
a90ef4bf
JM
18805maybe-clean-stage3-ld: clean-stage3-ld
18806clean-stage3: clean-stage3-ld
18807clean-stage3-ld:
e28c595f 18808 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 18809 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18810 else \
a90ef4bf 18811 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
e28c595f
JM
18812 $(MAKE) stage3-start; \
18813 fi; \
a90ef4bf 18814 cd $(HOST_SUBDIR)/ld && \
b3676d82 18815 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18816@endif ld-bootstrap
e28c595f
JM
18817
18818
a90ef4bf
JM
18819.PHONY: all-stage4-ld maybe-all-stage4-ld
18820.PHONY: clean-stage4-ld maybe-clean-stage4-ld
18821maybe-all-stage4-ld:
18822maybe-clean-stage4-ld:
18823@if ld-bootstrap
18824maybe-all-stage4-ld: all-stage4-ld
18825all-stage4: all-stage4-ld
18826TARGET-stage4-ld = $(TARGET-ld)
18827all-stage4-ld: configure-stage4-ld
e28c595f
JM
18828 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18829 @r=`${PWD_COMMAND}`; export r; \
18830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18831 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 18832 $(HOST_EXPORTS) \
1f53ca9a 18833 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18834 cd $(HOST_SUBDIR)/ld && \
e28c595f 18835 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18836 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 18837 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 18838 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
18839 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18840 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18841 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18842 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18843 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 18844 $(TARGET-stage4-ld)
e28c595f 18845
a90ef4bf
JM
18846maybe-clean-stage4-ld: clean-stage4-ld
18847clean-stage4: clean-stage4-ld
18848clean-stage4-ld:
e28c595f 18849 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 18850 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18851 else \
a90ef4bf 18852 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
e28c595f
JM
18853 $(MAKE) stage4-start; \
18854 fi; \
a90ef4bf 18855 cd $(HOST_SUBDIR)/ld && \
b3676d82 18856 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18857@endif ld-bootstrap
e28c595f
JM
18858
18859
a90ef4bf
JM
18860.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
18861.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
18862maybe-all-stageprofile-ld:
18863maybe-clean-stageprofile-ld:
18864@if ld-bootstrap
18865maybe-all-stageprofile-ld: all-stageprofile-ld
18866all-stageprofile: all-stageprofile-ld
18867TARGET-stageprofile-ld = $(TARGET-ld)
18868all-stageprofile-ld: configure-stageprofile-ld
e28c595f
JM
18869 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18870 @r=`${PWD_COMMAND}`; export r; \
18871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18872 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 18873 $(HOST_EXPORTS) \
1f53ca9a 18874 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18875 cd $(HOST_SUBDIR)/ld && \
e28c595f 18876 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18877 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 18878 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
18879 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
18880 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18881 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18882 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18883 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18884 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 18885 $(TARGET-stageprofile-ld)
e28c595f 18886
a90ef4bf
JM
18887maybe-clean-stageprofile-ld: clean-stageprofile-ld
18888clean-stageprofile: clean-stageprofile-ld
18889clean-stageprofile-ld:
e28c595f 18890 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 18891 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18892 else \
a90ef4bf 18893 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
e28c595f
JM
18894 $(MAKE) stageprofile-start; \
18895 fi; \
a90ef4bf 18896 cd $(HOST_SUBDIR)/ld && \
b3676d82 18897 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18898@endif ld-bootstrap
e28c595f
JM
18899
18900
a90ef4bf
JM
18901.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
18902.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
18903maybe-all-stagefeedback-ld:
18904maybe-clean-stagefeedback-ld:
18905@if ld-bootstrap
18906maybe-all-stagefeedback-ld: all-stagefeedback-ld
18907all-stagefeedback: all-stagefeedback-ld
18908TARGET-stagefeedback-ld = $(TARGET-ld)
18909all-stagefeedback-ld: configure-stagefeedback-ld
e28c595f
JM
18910 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
18911 @r=`${PWD_COMMAND}`; export r; \
18912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18913 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 18914 $(HOST_EXPORTS) \
1f53ca9a 18915 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18916 cd $(HOST_SUBDIR)/ld && \
e28c595f 18917 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18918 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 18919 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
18920 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
18921 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18922 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18923 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18924 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18925 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 18926 $(TARGET-stagefeedback-ld)
e28c595f 18927
a90ef4bf
JM
18928maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
18929clean-stagefeedback: clean-stagefeedback-ld
18930clean-stagefeedback-ld:
e28c595f 18931 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 18932 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18933 else \
a90ef4bf 18934 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
e28c595f
JM
18935 $(MAKE) stagefeedback-start; \
18936 fi; \
a90ef4bf 18937 cd $(HOST_SUBDIR)/ld && \
b3676d82 18938 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18939@endif ld-bootstrap
e28c595f
JM
18940
18941
18942
18943
18944
a90ef4bf
JM
18945.PHONY: check-ld maybe-check-ld
18946maybe-check-ld:
18947@if ld
18948maybe-check-ld: check-ld
e28c595f 18949
a90ef4bf 18950check-ld:
e28c595f
JM
18951 @: $(MAKE); $(unstage)
18952 @r=`${PWD_COMMAND}`; export r; \
18953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18954 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 18955 (cd $(HOST_SUBDIR)/ld && \
f91ca6bc 18956 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 18957
a90ef4bf 18958@endif ld
e28c595f 18959
a90ef4bf
JM
18960.PHONY: install-ld maybe-install-ld
18961maybe-install-ld:
18962@if ld
18963maybe-install-ld: install-ld
e28c595f 18964
a90ef4bf
JM
18965install-ld: installdirs
18966 @: $(MAKE); $(unstage)
18967 @r=`${PWD_COMMAND}`; export r; \
18968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18969 $(HOST_EXPORTS) \
18970 (cd $(HOST_SUBDIR)/ld && \
18971 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 18972
a90ef4bf 18973@endif ld
e28c595f 18974
a90ef4bf
JM
18975.PHONY: install-strip-ld maybe-install-strip-ld
18976maybe-install-strip-ld:
18977@if ld
18978maybe-install-strip-ld: install-strip-ld
9b980aa1 18979
a90ef4bf
JM
18980install-strip-ld: installdirs
18981 @: $(MAKE); $(unstage)
18982 @r=`${PWD_COMMAND}`; export r; \
18983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18984 $(HOST_EXPORTS) \
18985 (cd $(HOST_SUBDIR)/ld && \
18986 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 18987
a90ef4bf 18988@endif ld
9b980aa1 18989
e28c595f
JM
18990# Other targets (info, dvi, pdf, etc.)
18991
a90ef4bf
JM
18992.PHONY: maybe-info-ld info-ld
18993maybe-info-ld:
18994@if ld
18995maybe-info-ld: info-ld
e28c595f 18996
a90ef4bf
JM
18997info-ld: \
18998 configure-ld
18999 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19000 r=`${PWD_COMMAND}`; export r; \
19001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19002 $(HOST_EXPORTS) \
19003 for flag in $(EXTRA_HOST_FLAGS) ; do \
19004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19005 done; \
22121df0 19006 echo "Doing info in ld"; \
a90ef4bf 19007 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19010 "RANLIB=$${RANLIB}" \
19011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19012 info) \
19013 || exit 1
19014
a90ef4bf 19015@endif ld
e28c595f 19016
a90ef4bf
JM
19017.PHONY: maybe-dvi-ld dvi-ld
19018maybe-dvi-ld:
19019@if ld
19020maybe-dvi-ld: dvi-ld
e28c595f 19021
a90ef4bf
JM
19022dvi-ld: \
19023 configure-ld
19024 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19025 r=`${PWD_COMMAND}`; export r; \
19026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19027 $(HOST_EXPORTS) \
19028 for flag in $(EXTRA_HOST_FLAGS) ; do \
19029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19030 done; \
22121df0 19031 echo "Doing dvi in ld"; \
a90ef4bf 19032 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19035 "RANLIB=$${RANLIB}" \
19036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19037 dvi) \
19038 || exit 1
19039
a90ef4bf 19040@endif ld
e28c595f 19041
a90ef4bf
JM
19042.PHONY: maybe-pdf-ld pdf-ld
19043maybe-pdf-ld:
19044@if ld
19045maybe-pdf-ld: pdf-ld
e28c595f 19046
a90ef4bf
JM
19047pdf-ld: \
19048 configure-ld
19049 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19050 r=`${PWD_COMMAND}`; export r; \
19051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19052 $(HOST_EXPORTS) \
19053 for flag in $(EXTRA_HOST_FLAGS) ; do \
19054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19055 done; \
22121df0 19056 echo "Doing pdf in ld"; \
a90ef4bf 19057 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19060 "RANLIB=$${RANLIB}" \
19061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19062 pdf) \
19063 || exit 1
19064
a90ef4bf 19065@endif ld
e28c595f 19066
a90ef4bf
JM
19067.PHONY: maybe-html-ld html-ld
19068maybe-html-ld:
19069@if ld
19070maybe-html-ld: html-ld
e28c595f 19071
a90ef4bf
JM
19072html-ld: \
19073 configure-ld
19074 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19075 r=`${PWD_COMMAND}`; export r; \
19076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19077 $(HOST_EXPORTS) \
19078 for flag in $(EXTRA_HOST_FLAGS) ; do \
19079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19080 done; \
22121df0 19081 echo "Doing html in ld"; \
a90ef4bf 19082 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19085 "RANLIB=$${RANLIB}" \
19086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19087 html) \
19088 || exit 1
19089
a90ef4bf 19090@endif ld
e28c595f 19091
a90ef4bf
JM
19092.PHONY: maybe-TAGS-ld TAGS-ld
19093maybe-TAGS-ld:
19094@if ld
19095maybe-TAGS-ld: TAGS-ld
e28c595f 19096
a90ef4bf
JM
19097TAGS-ld: \
19098 configure-ld
19099 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19100 r=`${PWD_COMMAND}`; export r; \
19101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19102 $(HOST_EXPORTS) \
19103 for flag in $(EXTRA_HOST_FLAGS) ; do \
19104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19105 done; \
22121df0 19106 echo "Doing TAGS in ld"; \
a90ef4bf 19107 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19110 "RANLIB=$${RANLIB}" \
19111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19112 TAGS) \
19113 || exit 1
19114
a90ef4bf 19115@endif ld
e28c595f 19116
a90ef4bf
JM
19117.PHONY: maybe-install-info-ld install-info-ld
19118maybe-install-info-ld:
19119@if ld
19120maybe-install-info-ld: install-info-ld
e28c595f 19121
a90ef4bf
JM
19122install-info-ld: \
19123 configure-ld \
19124 info-ld
19125 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19126 r=`${PWD_COMMAND}`; export r; \
19127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19128 $(HOST_EXPORTS) \
19129 for flag in $(EXTRA_HOST_FLAGS) ; do \
19130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19131 done; \
22121df0 19132 echo "Doing install-info in ld"; \
a90ef4bf 19133 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19136 "RANLIB=$${RANLIB}" \
19137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19138 install-info) \
19139 || exit 1
19140
a90ef4bf 19141@endif ld
e28c595f 19142
a90ef4bf
JM
19143.PHONY: maybe-install-pdf-ld install-pdf-ld
19144maybe-install-pdf-ld:
19145@if ld
19146maybe-install-pdf-ld: install-pdf-ld
e28c595f 19147
a90ef4bf
JM
19148install-pdf-ld: \
19149 configure-ld \
19150 pdf-ld
19151 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19152 r=`${PWD_COMMAND}`; export r; \
19153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19154 $(HOST_EXPORTS) \
19155 for flag in $(EXTRA_HOST_FLAGS) ; do \
19156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19157 done; \
22121df0 19158 echo "Doing install-pdf in ld"; \
a90ef4bf 19159 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19162 "RANLIB=$${RANLIB}" \
19163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19164 install-pdf) \
19165 || exit 1
19166
a90ef4bf 19167@endif ld
e28c595f 19168
a90ef4bf
JM
19169.PHONY: maybe-install-html-ld install-html-ld
19170maybe-install-html-ld:
19171@if ld
19172maybe-install-html-ld: install-html-ld
e28c595f 19173
a90ef4bf
JM
19174install-html-ld: \
19175 configure-ld \
19176 html-ld
19177 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19178 r=`${PWD_COMMAND}`; export r; \
19179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19180 $(HOST_EXPORTS) \
19181 for flag in $(EXTRA_HOST_FLAGS) ; do \
19182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19183 done; \
22121df0 19184 echo "Doing install-html in ld"; \
a90ef4bf 19185 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19188 "RANLIB=$${RANLIB}" \
19189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19190 install-html) \
19191 || exit 1
19192
a90ef4bf 19193@endif ld
e28c595f 19194
a90ef4bf
JM
19195.PHONY: maybe-installcheck-ld installcheck-ld
19196maybe-installcheck-ld:
19197@if ld
19198maybe-installcheck-ld: installcheck-ld
e28c595f 19199
a90ef4bf
JM
19200installcheck-ld: \
19201 configure-ld
19202 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19203 r=`${PWD_COMMAND}`; export r; \
19204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19205 $(HOST_EXPORTS) \
19206 for flag in $(EXTRA_HOST_FLAGS) ; do \
19207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19208 done; \
22121df0 19209 echo "Doing installcheck in ld"; \
a90ef4bf 19210 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19213 "RANLIB=$${RANLIB}" \
0c24b341 19214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19215 installcheck) \
19216 || exit 1
19217
a90ef4bf 19218@endif ld
4b900473 19219
a90ef4bf
JM
19220.PHONY: maybe-mostlyclean-ld mostlyclean-ld
19221maybe-mostlyclean-ld:
19222@if ld
19223maybe-mostlyclean-ld: mostlyclean-ld
4b900473 19224
a90ef4bf
JM
19225mostlyclean-ld:
19226 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19227 r=`${PWD_COMMAND}`; export r; \
19228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19229 $(HOST_EXPORTS) \
19230 for flag in $(EXTRA_HOST_FLAGS) ; do \
19231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19232 done; \
22121df0 19233 echo "Doing mostlyclean in ld"; \
a90ef4bf 19234 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19237 "RANLIB=$${RANLIB}" \
0c24b341 19238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19239 mostlyclean) \
19240 || exit 1
19241
a90ef4bf 19242@endif ld
4b900473 19243
a90ef4bf
JM
19244.PHONY: maybe-clean-ld clean-ld
19245maybe-clean-ld:
19246@if ld
19247maybe-clean-ld: clean-ld
4b900473 19248
a90ef4bf
JM
19249clean-ld:
19250 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19251 r=`${PWD_COMMAND}`; export r; \
19252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19253 $(HOST_EXPORTS) \
19254 for flag in $(EXTRA_HOST_FLAGS) ; do \
19255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19256 done; \
22121df0 19257 echo "Doing clean in ld"; \
a90ef4bf 19258 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19261 "RANLIB=$${RANLIB}" \
0c24b341 19262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19263 clean) \
19264 || exit 1
19265
a90ef4bf 19266@endif ld
4b900473 19267
a90ef4bf
JM
19268.PHONY: maybe-distclean-ld distclean-ld
19269maybe-distclean-ld:
19270@if ld
19271maybe-distclean-ld: distclean-ld
4b900473 19272
a90ef4bf
JM
19273distclean-ld:
19274 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19275 r=`${PWD_COMMAND}`; export r; \
19276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19277 $(HOST_EXPORTS) \
19278 for flag in $(EXTRA_HOST_FLAGS) ; do \
19279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19280 done; \
22121df0 19281 echo "Doing distclean in ld"; \
a90ef4bf 19282 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19285 "RANLIB=$${RANLIB}" \
0c24b341 19286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19287 distclean) \
19288 || exit 1
19289
a90ef4bf 19290@endif ld
4b900473 19291
a90ef4bf
JM
19292.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
19293maybe-maintainer-clean-ld:
19294@if ld
19295maybe-maintainer-clean-ld: maintainer-clean-ld
4b900473 19296
a90ef4bf
JM
19297maintainer-clean-ld:
19298 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19299 r=`${PWD_COMMAND}`; export r; \
19300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19301 $(HOST_EXPORTS) \
19302 for flag in $(EXTRA_HOST_FLAGS) ; do \
19303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19304 done; \
22121df0 19305 echo "Doing maintainer-clean in ld"; \
a90ef4bf 19306 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19309 "RANLIB=$${RANLIB}" \
0c24b341 19310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19311 maintainer-clean) \
19312 || exit 1
19313
a90ef4bf 19314@endif ld
4b900473
PB
19315
19316
19317
2bf680c4
ILT
19318.PHONY: configure-libbacktrace maybe-configure-libbacktrace
19319maybe-configure-libbacktrace:
19320@if gcc-bootstrap
19321configure-libbacktrace: stage_current
19322@endif gcc-bootstrap
19323@if libbacktrace
19324maybe-configure-libbacktrace: configure-libbacktrace
19325configure-libbacktrace:
19326 @r=`${PWD_COMMAND}`; export r; \
19327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19328 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 19329 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19330 $(HOST_EXPORTS) \
19331 echo Configuring in $(HOST_SUBDIR)/libbacktrace; \
19332 cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \
19333 case $(srcdir) in \
19334 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19335 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19336 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19337 esac; \
1b6c0831
L
19338 module_srcdir=libbacktrace; \
19339 $(SHELL) \
19340 $$s/$$module_srcdir/configure \
19341 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19342 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19343 --target=${target_alias} \
2bf680c4
ILT
19344 || exit 1
19345@endif libbacktrace
19346
19347
19348
19349.PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace
19350maybe-configure-stage1-libbacktrace:
19351@if libbacktrace-bootstrap
19352maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace
19353configure-stage1-libbacktrace:
19354 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19355 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19356 @r=`${PWD_COMMAND}`; export r; \
19357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19358 TFLAGS="$(STAGE1_TFLAGS)"; \
19359 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19360 $(HOST_EXPORTS) \
19361 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
19362 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19363 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
19364 echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace; \
19365 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19366 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19367 case $(srcdir) in \
19368 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19369 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19370 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19371 esac; \
1b6c0831
L
19372 module_srcdir=libbacktrace; \
19373 $(SHELL) $$s/$$module_srcdir/configure \
19374 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19375 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19376 --target=${target_alias} \
19377 \
2bf680c4
ILT
19378 $(STAGE1_CONFIGURE_FLAGS)
19379@endif libbacktrace-bootstrap
19380
19381.PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace
19382maybe-configure-stage2-libbacktrace:
19383@if libbacktrace-bootstrap
19384maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace
19385configure-stage2-libbacktrace:
19386 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19387 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19388 @r=`${PWD_COMMAND}`; export r; \
19389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19390 TFLAGS="$(STAGE2_TFLAGS)"; \
19391 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19392 $(HOST_EXPORTS) \
19393 $(POSTSTAGE1_HOST_EXPORTS) \
19394 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
19395 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19396 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19397 echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace; \
19398 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19399 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19400 case $(srcdir) in \
19401 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19402 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19403 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19404 esac; \
1b6c0831
L
19405 module_srcdir=libbacktrace; \
19406 $(SHELL) $$s/$$module_srcdir/configure \
19407 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19408 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19409 --target=${target_alias} \
22121df0 19410 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19411 $(STAGE2_CONFIGURE_FLAGS)
19412@endif libbacktrace-bootstrap
19413
19414.PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace
19415maybe-configure-stage3-libbacktrace:
19416@if libbacktrace-bootstrap
19417maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace
19418configure-stage3-libbacktrace:
19419 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19420 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19421 @r=`${PWD_COMMAND}`; export r; \
19422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19423 TFLAGS="$(STAGE3_TFLAGS)"; \
19424 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19425 $(HOST_EXPORTS) \
19426 $(POSTSTAGE1_HOST_EXPORTS) \
19427 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
19428 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19429 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19430 echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace; \
19431 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19432 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19433 case $(srcdir) in \
19434 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19435 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19436 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19437 esac; \
1b6c0831
L
19438 module_srcdir=libbacktrace; \
19439 $(SHELL) $$s/$$module_srcdir/configure \
19440 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19441 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19442 --target=${target_alias} \
22121df0 19443 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19444 $(STAGE3_CONFIGURE_FLAGS)
19445@endif libbacktrace-bootstrap
19446
19447.PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace
19448maybe-configure-stage4-libbacktrace:
19449@if libbacktrace-bootstrap
19450maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace
19451configure-stage4-libbacktrace:
19452 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19453 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19454 @r=`${PWD_COMMAND}`; export r; \
19455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19456 TFLAGS="$(STAGE4_TFLAGS)"; \
19457 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19458 $(HOST_EXPORTS) \
19459 $(POSTSTAGE1_HOST_EXPORTS) \
19460 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
19461 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19462 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19463 echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace; \
19464 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19465 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19466 case $(srcdir) in \
19467 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19468 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19469 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19470 esac; \
1b6c0831
L
19471 module_srcdir=libbacktrace; \
19472 $(SHELL) $$s/$$module_srcdir/configure \
19473 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19474 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19475 --target=${target_alias} \
22121df0 19476 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19477 $(STAGE4_CONFIGURE_FLAGS)
19478@endif libbacktrace-bootstrap
19479
19480.PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace
19481maybe-configure-stageprofile-libbacktrace:
19482@if libbacktrace-bootstrap
19483maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19484configure-stageprofile-libbacktrace:
19485 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19486 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19487 @r=`${PWD_COMMAND}`; export r; \
19488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19489 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19490 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19491 $(HOST_EXPORTS) \
19492 $(POSTSTAGE1_HOST_EXPORTS) \
19493 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
19494 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19495 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19496 echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace; \
19497 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19498 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19499 case $(srcdir) in \
19500 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19501 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19502 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19503 esac; \
1b6c0831
L
19504 module_srcdir=libbacktrace; \
19505 $(SHELL) $$s/$$module_srcdir/configure \
19506 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19507 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19508 --target=${target_alias} \
22121df0 19509 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19510 $(STAGEprofile_CONFIGURE_FLAGS)
19511@endif libbacktrace-bootstrap
19512
19513.PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace
19514maybe-configure-stagefeedback-libbacktrace:
19515@if libbacktrace-bootstrap
19516maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19517configure-stagefeedback-libbacktrace:
19518 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19519 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19520 @r=`${PWD_COMMAND}`; export r; \
19521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19522 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19523 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19524 $(HOST_EXPORTS) \
19525 $(POSTSTAGE1_HOST_EXPORTS) \
19526 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
19527 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19528 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19529 echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace; \
19530 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19531 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19532 case $(srcdir) in \
19533 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19534 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19535 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19536 esac; \
1b6c0831
L
19537 module_srcdir=libbacktrace; \
19538 $(SHELL) $$s/$$module_srcdir/configure \
19539 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19540 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19541 --target=${target_alias} \
22121df0 19542 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19543 $(STAGEfeedback_CONFIGURE_FLAGS)
19544@endif libbacktrace-bootstrap
19545
19546
19547
19548
19549
19550.PHONY: all-libbacktrace maybe-all-libbacktrace
19551maybe-all-libbacktrace:
19552@if gcc-bootstrap
19553all-libbacktrace: stage_current
19554@endif gcc-bootstrap
19555@if libbacktrace
19556TARGET-libbacktrace=all
19557maybe-all-libbacktrace: all-libbacktrace
19558all-libbacktrace: configure-libbacktrace
19559 @r=`${PWD_COMMAND}`; export r; \
19560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19561 $(HOST_EXPORTS) \
19562 (cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19563 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19564 $(TARGET-libbacktrace))
19565@endif libbacktrace
19566
19567
19568
19569.PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace
19570.PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace
19571maybe-all-stage1-libbacktrace:
19572maybe-clean-stage1-libbacktrace:
19573@if libbacktrace-bootstrap
19574maybe-all-stage1-libbacktrace: all-stage1-libbacktrace
19575all-stage1: all-stage1-libbacktrace
19576TARGET-stage1-libbacktrace = $(TARGET-libbacktrace)
19577all-stage1-libbacktrace: configure-stage1-libbacktrace
19578 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19579 @r=`${PWD_COMMAND}`; export r; \
19580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19581 TFLAGS="$(STAGE1_TFLAGS)"; \
19582 $(HOST_EXPORTS) \
19583 cd $(HOST_SUBDIR)/libbacktrace && \
19584 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19585 CFLAGS="$(STAGE1_CFLAGS)" \
19586 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
19587 LIBCFLAGS="$(LIBCFLAGS)" \
19588 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19589 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19590 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
19591 $(EXTRA_HOST_FLAGS) \
19592 $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19593 TFLAGS="$(STAGE1_TFLAGS)" \
19594 $(TARGET-stage1-libbacktrace)
19595
19596maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace
19597clean-stage1: clean-stage1-libbacktrace
19598clean-stage1-libbacktrace:
19599 @if [ $(current_stage) = stage1 ]; then \
19600 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19601 else \
19602 [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \
19603 $(MAKE) stage1-start; \
19604 fi; \
19605 cd $(HOST_SUBDIR)/libbacktrace && \
19606 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 19607 $(STAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19608@endif libbacktrace-bootstrap
19609
19610
19611.PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace
19612.PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace
19613maybe-all-stage2-libbacktrace:
19614maybe-clean-stage2-libbacktrace:
19615@if libbacktrace-bootstrap
19616maybe-all-stage2-libbacktrace: all-stage2-libbacktrace
19617all-stage2: all-stage2-libbacktrace
19618TARGET-stage2-libbacktrace = $(TARGET-libbacktrace)
19619all-stage2-libbacktrace: configure-stage2-libbacktrace
19620 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19621 @r=`${PWD_COMMAND}`; export r; \
19622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19623 TFLAGS="$(STAGE2_TFLAGS)"; \
19624 $(HOST_EXPORTS) \
19625 $(POSTSTAGE1_HOST_EXPORTS) \
19626 cd $(HOST_SUBDIR)/libbacktrace && \
19627 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19628 CFLAGS="$(STAGE2_CFLAGS)" \
19629 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
19630 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19631 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19632 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19633 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19634 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19635 TFLAGS="$(STAGE2_TFLAGS)" \
19636 $(TARGET-stage2-libbacktrace)
19637
19638maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace
19639clean-stage2: clean-stage2-libbacktrace
19640clean-stage2-libbacktrace:
19641 @if [ $(current_stage) = stage2 ]; then \
19642 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19643 else \
19644 [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \
19645 $(MAKE) stage2-start; \
19646 fi; \
19647 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19648 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19649@endif libbacktrace-bootstrap
19650
19651
19652.PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace
19653.PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace
19654maybe-all-stage3-libbacktrace:
19655maybe-clean-stage3-libbacktrace:
19656@if libbacktrace-bootstrap
19657maybe-all-stage3-libbacktrace: all-stage3-libbacktrace
19658all-stage3: all-stage3-libbacktrace
19659TARGET-stage3-libbacktrace = $(TARGET-libbacktrace)
19660all-stage3-libbacktrace: configure-stage3-libbacktrace
19661 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19662 @r=`${PWD_COMMAND}`; export r; \
19663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19664 TFLAGS="$(STAGE3_TFLAGS)"; \
19665 $(HOST_EXPORTS) \
19666 $(POSTSTAGE1_HOST_EXPORTS) \
19667 cd $(HOST_SUBDIR)/libbacktrace && \
19668 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19669 CFLAGS="$(STAGE3_CFLAGS)" \
19670 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
19671 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19672 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19673 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19674 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19675 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19676 TFLAGS="$(STAGE3_TFLAGS)" \
19677 $(TARGET-stage3-libbacktrace)
19678
19679maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace
19680clean-stage3: clean-stage3-libbacktrace
19681clean-stage3-libbacktrace:
19682 @if [ $(current_stage) = stage3 ]; then \
19683 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19684 else \
19685 [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \
19686 $(MAKE) stage3-start; \
19687 fi; \
19688 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19689 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19690@endif libbacktrace-bootstrap
19691
19692
19693.PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace
19694.PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace
19695maybe-all-stage4-libbacktrace:
19696maybe-clean-stage4-libbacktrace:
19697@if libbacktrace-bootstrap
19698maybe-all-stage4-libbacktrace: all-stage4-libbacktrace
19699all-stage4: all-stage4-libbacktrace
19700TARGET-stage4-libbacktrace = $(TARGET-libbacktrace)
19701all-stage4-libbacktrace: configure-stage4-libbacktrace
19702 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19703 @r=`${PWD_COMMAND}`; export r; \
19704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19705 TFLAGS="$(STAGE4_TFLAGS)"; \
19706 $(HOST_EXPORTS) \
19707 $(POSTSTAGE1_HOST_EXPORTS) \
19708 cd $(HOST_SUBDIR)/libbacktrace && \
19709 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19710 CFLAGS="$(STAGE4_CFLAGS)" \
19711 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
19712 LIBCFLAGS="$(STAGE4_CFLAGS)" \
19713 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19714 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19715 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19716 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19717 TFLAGS="$(STAGE4_TFLAGS)" \
19718 $(TARGET-stage4-libbacktrace)
19719
19720maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace
19721clean-stage4: clean-stage4-libbacktrace
19722clean-stage4-libbacktrace:
19723 @if [ $(current_stage) = stage4 ]; then \
19724 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19725 else \
19726 [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \
19727 $(MAKE) stage4-start; \
19728 fi; \
19729 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19730 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19731@endif libbacktrace-bootstrap
19732
19733
19734.PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace
19735.PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace
19736maybe-all-stageprofile-libbacktrace:
19737maybe-clean-stageprofile-libbacktrace:
19738@if libbacktrace-bootstrap
19739maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace
19740all-stageprofile: all-stageprofile-libbacktrace
19741TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace)
19742all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19743 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19744 @r=`${PWD_COMMAND}`; export r; \
19745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19746 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19747 $(HOST_EXPORTS) \
19748 $(POSTSTAGE1_HOST_EXPORTS) \
19749 cd $(HOST_SUBDIR)/libbacktrace && \
19750 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19751 CFLAGS="$(STAGEprofile_CFLAGS)" \
19752 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
19753 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19754 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19755 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19756 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19757 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19758 TFLAGS="$(STAGEprofile_TFLAGS)" \
19759 $(TARGET-stageprofile-libbacktrace)
19760
19761maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace
19762clean-stageprofile: clean-stageprofile-libbacktrace
19763clean-stageprofile-libbacktrace:
19764 @if [ $(current_stage) = stageprofile ]; then \
19765 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19766 else \
19767 [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \
19768 $(MAKE) stageprofile-start; \
19769 fi; \
19770 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19771 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19772@endif libbacktrace-bootstrap
19773
19774
19775.PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace
19776.PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace
19777maybe-all-stagefeedback-libbacktrace:
19778maybe-clean-stagefeedback-libbacktrace:
19779@if libbacktrace-bootstrap
19780maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace
19781all-stagefeedback: all-stagefeedback-libbacktrace
19782TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace)
19783all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19784 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19785 @r=`${PWD_COMMAND}`; export r; \
19786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19787 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19788 $(HOST_EXPORTS) \
19789 $(POSTSTAGE1_HOST_EXPORTS) \
19790 cd $(HOST_SUBDIR)/libbacktrace && \
19791 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19792 CFLAGS="$(STAGEfeedback_CFLAGS)" \
19793 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
19794 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19795 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19796 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19797 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19798 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19799 TFLAGS="$(STAGEfeedback_TFLAGS)" \
19800 $(TARGET-stagefeedback-libbacktrace)
19801
19802maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace
19803clean-stagefeedback: clean-stagefeedback-libbacktrace
19804clean-stagefeedback-libbacktrace:
19805 @if [ $(current_stage) = stagefeedback ]; then \
19806 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19807 else \
19808 [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \
19809 $(MAKE) stagefeedback-start; \
19810 fi; \
19811 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19812 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19813@endif libbacktrace-bootstrap
19814
19815
19816
19817
19818
19819.PHONY: check-libbacktrace maybe-check-libbacktrace
19820maybe-check-libbacktrace:
19821@if libbacktrace
19822maybe-check-libbacktrace: check-libbacktrace
19823
19824check-libbacktrace:
19825 @: $(MAKE); $(unstage)
19826 @r=`${PWD_COMMAND}`; export r; \
19827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19828 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
2bf680c4 19829 (cd $(HOST_SUBDIR)/libbacktrace && \
f91ca6bc 19830 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2bf680c4
ILT
19831
19832@endif libbacktrace
19833
19834.PHONY: install-libbacktrace maybe-install-libbacktrace
19835maybe-install-libbacktrace:
19836@if libbacktrace
19837maybe-install-libbacktrace: install-libbacktrace
19838
19839install-libbacktrace: installdirs
19840 @: $(MAKE); $(unstage)
19841 @r=`${PWD_COMMAND}`; export r; \
19842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19843 $(HOST_EXPORTS) \
19844 (cd $(HOST_SUBDIR)/libbacktrace && \
19845 $(MAKE) $(FLAGS_TO_PASS) install)
19846
19847@endif libbacktrace
19848
19849.PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace
19850maybe-install-strip-libbacktrace:
19851@if libbacktrace
19852maybe-install-strip-libbacktrace: install-strip-libbacktrace
19853
19854install-strip-libbacktrace: installdirs
19855 @: $(MAKE); $(unstage)
19856 @r=`${PWD_COMMAND}`; export r; \
19857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19858 $(HOST_EXPORTS) \
19859 (cd $(HOST_SUBDIR)/libbacktrace && \
19860 $(MAKE) $(FLAGS_TO_PASS) install-strip)
19861
19862@endif libbacktrace
19863
19864# Other targets (info, dvi, pdf, etc.)
19865
19866.PHONY: maybe-info-libbacktrace info-libbacktrace
19867maybe-info-libbacktrace:
19868@if libbacktrace
19869maybe-info-libbacktrace: info-libbacktrace
19870
19871info-libbacktrace: \
19872 configure-libbacktrace
19873 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19874 r=`${PWD_COMMAND}`; export r; \
19875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19876 $(HOST_EXPORTS) \
19877 for flag in $(EXTRA_HOST_FLAGS) ; do \
19878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19879 done; \
22121df0 19880 echo "Doing info in libbacktrace"; \
2bf680c4
ILT
19881 (cd $(HOST_SUBDIR)/libbacktrace && \
19882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19884 "RANLIB=$${RANLIB}" \
19885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19886 info) \
19887 || exit 1
19888
19889@endif libbacktrace
19890
19891.PHONY: maybe-dvi-libbacktrace dvi-libbacktrace
19892maybe-dvi-libbacktrace:
19893@if libbacktrace
19894maybe-dvi-libbacktrace: dvi-libbacktrace
19895
19896dvi-libbacktrace: \
19897 configure-libbacktrace
19898 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19899 r=`${PWD_COMMAND}`; export r; \
19900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19901 $(HOST_EXPORTS) \
19902 for flag in $(EXTRA_HOST_FLAGS) ; do \
19903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19904 done; \
22121df0 19905 echo "Doing dvi in libbacktrace"; \
2bf680c4
ILT
19906 (cd $(HOST_SUBDIR)/libbacktrace && \
19907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19909 "RANLIB=$${RANLIB}" \
19910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19911 dvi) \
19912 || exit 1
19913
19914@endif libbacktrace
19915
19916.PHONY: maybe-pdf-libbacktrace pdf-libbacktrace
19917maybe-pdf-libbacktrace:
19918@if libbacktrace
19919maybe-pdf-libbacktrace: pdf-libbacktrace
19920
19921pdf-libbacktrace: \
19922 configure-libbacktrace
19923 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19924 r=`${PWD_COMMAND}`; export r; \
19925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19926 $(HOST_EXPORTS) \
19927 for flag in $(EXTRA_HOST_FLAGS) ; do \
19928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19929 done; \
22121df0 19930 echo "Doing pdf in libbacktrace"; \
2bf680c4
ILT
19931 (cd $(HOST_SUBDIR)/libbacktrace && \
19932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19934 "RANLIB=$${RANLIB}" \
19935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19936 pdf) \
19937 || exit 1
19938
19939@endif libbacktrace
19940
19941.PHONY: maybe-html-libbacktrace html-libbacktrace
19942maybe-html-libbacktrace:
19943@if libbacktrace
19944maybe-html-libbacktrace: html-libbacktrace
19945
19946html-libbacktrace: \
19947 configure-libbacktrace
19948 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19949 r=`${PWD_COMMAND}`; export r; \
19950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19951 $(HOST_EXPORTS) \
19952 for flag in $(EXTRA_HOST_FLAGS) ; do \
19953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19954 done; \
22121df0 19955 echo "Doing html in libbacktrace"; \
2bf680c4
ILT
19956 (cd $(HOST_SUBDIR)/libbacktrace && \
19957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19959 "RANLIB=$${RANLIB}" \
19960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19961 html) \
19962 || exit 1
19963
19964@endif libbacktrace
19965
19966.PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace
19967maybe-TAGS-libbacktrace:
19968@if libbacktrace
19969maybe-TAGS-libbacktrace: TAGS-libbacktrace
19970
19971TAGS-libbacktrace: \
19972 configure-libbacktrace
19973 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19974 r=`${PWD_COMMAND}`; export r; \
19975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19976 $(HOST_EXPORTS) \
19977 for flag in $(EXTRA_HOST_FLAGS) ; do \
19978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19979 done; \
22121df0 19980 echo "Doing TAGS in libbacktrace"; \
2bf680c4
ILT
19981 (cd $(HOST_SUBDIR)/libbacktrace && \
19982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19984 "RANLIB=$${RANLIB}" \
19985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19986 TAGS) \
19987 || exit 1
19988
19989@endif libbacktrace
19990
19991.PHONY: maybe-install-info-libbacktrace install-info-libbacktrace
19992maybe-install-info-libbacktrace:
19993@if libbacktrace
19994maybe-install-info-libbacktrace: install-info-libbacktrace
19995
19996install-info-libbacktrace: \
19997 configure-libbacktrace \
19998 info-libbacktrace
19999 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20000 r=`${PWD_COMMAND}`; export r; \
20001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20002 $(HOST_EXPORTS) \
20003 for flag in $(EXTRA_HOST_FLAGS) ; do \
20004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20005 done; \
22121df0 20006 echo "Doing install-info in libbacktrace"; \
2bf680c4
ILT
20007 (cd $(HOST_SUBDIR)/libbacktrace && \
20008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20010 "RANLIB=$${RANLIB}" \
20011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20012 install-info) \
20013 || exit 1
20014
20015@endif libbacktrace
20016
20017.PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace
20018maybe-install-pdf-libbacktrace:
20019@if libbacktrace
20020maybe-install-pdf-libbacktrace: install-pdf-libbacktrace
20021
20022install-pdf-libbacktrace: \
20023 configure-libbacktrace \
20024 pdf-libbacktrace
20025 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20026 r=`${PWD_COMMAND}`; export r; \
20027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20028 $(HOST_EXPORTS) \
20029 for flag in $(EXTRA_HOST_FLAGS) ; do \
20030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20031 done; \
22121df0 20032 echo "Doing install-pdf in libbacktrace"; \
2bf680c4
ILT
20033 (cd $(HOST_SUBDIR)/libbacktrace && \
20034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20036 "RANLIB=$${RANLIB}" \
20037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20038 install-pdf) \
20039 || exit 1
20040
20041@endif libbacktrace
20042
20043.PHONY: maybe-install-html-libbacktrace install-html-libbacktrace
20044maybe-install-html-libbacktrace:
20045@if libbacktrace
20046maybe-install-html-libbacktrace: install-html-libbacktrace
20047
20048install-html-libbacktrace: \
20049 configure-libbacktrace \
20050 html-libbacktrace
20051 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20052 r=`${PWD_COMMAND}`; export r; \
20053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20054 $(HOST_EXPORTS) \
20055 for flag in $(EXTRA_HOST_FLAGS) ; do \
20056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20057 done; \
22121df0 20058 echo "Doing install-html in libbacktrace"; \
2bf680c4
ILT
20059 (cd $(HOST_SUBDIR)/libbacktrace && \
20060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20062 "RANLIB=$${RANLIB}" \
20063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20064 install-html) \
20065 || exit 1
20066
20067@endif libbacktrace
20068
20069.PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace
20070maybe-installcheck-libbacktrace:
20071@if libbacktrace
20072maybe-installcheck-libbacktrace: installcheck-libbacktrace
20073
20074installcheck-libbacktrace: \
20075 configure-libbacktrace
20076 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20077 r=`${PWD_COMMAND}`; export r; \
20078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20079 $(HOST_EXPORTS) \
20080 for flag in $(EXTRA_HOST_FLAGS) ; do \
20081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20082 done; \
22121df0 20083 echo "Doing installcheck in libbacktrace"; \
2bf680c4
ILT
20084 (cd $(HOST_SUBDIR)/libbacktrace && \
20085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20087 "RANLIB=$${RANLIB}" \
20088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20089 installcheck) \
20090 || exit 1
20091
20092@endif libbacktrace
20093
20094.PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace
20095maybe-mostlyclean-libbacktrace:
20096@if libbacktrace
20097maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace
20098
20099mostlyclean-libbacktrace:
20100 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20101 r=`${PWD_COMMAND}`; export r; \
20102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20103 $(HOST_EXPORTS) \
20104 for flag in $(EXTRA_HOST_FLAGS) ; do \
20105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20106 done; \
22121df0 20107 echo "Doing mostlyclean in libbacktrace"; \
2bf680c4
ILT
20108 (cd $(HOST_SUBDIR)/libbacktrace && \
20109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20111 "RANLIB=$${RANLIB}" \
20112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20113 mostlyclean) \
20114 || exit 1
20115
20116@endif libbacktrace
20117
20118.PHONY: maybe-clean-libbacktrace clean-libbacktrace
20119maybe-clean-libbacktrace:
20120@if libbacktrace
20121maybe-clean-libbacktrace: clean-libbacktrace
20122
20123clean-libbacktrace:
20124 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20125 r=`${PWD_COMMAND}`; export r; \
20126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20127 $(HOST_EXPORTS) \
20128 for flag in $(EXTRA_HOST_FLAGS) ; do \
20129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20130 done; \
22121df0 20131 echo "Doing clean in libbacktrace"; \
2bf680c4
ILT
20132 (cd $(HOST_SUBDIR)/libbacktrace && \
20133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20135 "RANLIB=$${RANLIB}" \
20136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20137 clean) \
20138 || exit 1
20139
20140@endif libbacktrace
20141
20142.PHONY: maybe-distclean-libbacktrace distclean-libbacktrace
20143maybe-distclean-libbacktrace:
20144@if libbacktrace
20145maybe-distclean-libbacktrace: distclean-libbacktrace
20146
20147distclean-libbacktrace:
20148 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20149 r=`${PWD_COMMAND}`; export r; \
20150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20151 $(HOST_EXPORTS) \
20152 for flag in $(EXTRA_HOST_FLAGS) ; do \
20153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20154 done; \
22121df0 20155 echo "Doing distclean in libbacktrace"; \
2bf680c4
ILT
20156 (cd $(HOST_SUBDIR)/libbacktrace && \
20157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20159 "RANLIB=$${RANLIB}" \
20160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20161 distclean) \
20162 || exit 1
20163
20164@endif libbacktrace
20165
20166.PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace
20167maybe-maintainer-clean-libbacktrace:
20168@if libbacktrace
20169maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace
20170
20171maintainer-clean-libbacktrace:
20172 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20173 r=`${PWD_COMMAND}`; export r; \
20174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20175 $(HOST_EXPORTS) \
20176 for flag in $(EXTRA_HOST_FLAGS) ; do \
20177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20178 done; \
22121df0 20179 echo "Doing maintainer-clean in libbacktrace"; \
2bf680c4
ILT
20180 (cd $(HOST_SUBDIR)/libbacktrace && \
20181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20183 "RANLIB=$${RANLIB}" \
20184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20185 maintainer-clean) \
20186 || exit 1
20187
20188@endif libbacktrace
20189
20190
20191
a90ef4bf
JM
20192.PHONY: configure-libcpp maybe-configure-libcpp
20193maybe-configure-libcpp:
4b900473 20194@if gcc-bootstrap
a90ef4bf 20195configure-libcpp: stage_current
4b900473 20196@endif gcc-bootstrap
a90ef4bf
JM
20197@if libcpp
20198maybe-configure-libcpp: configure-libcpp
20199configure-libcpp:
4b900473
PB
20200 @r=`${PWD_COMMAND}`; export r; \
20201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 20202 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 20203 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf
JM
20204 $(HOST_EXPORTS) \
20205 echo Configuring in $(HOST_SUBDIR)/libcpp; \
20206 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
4b900473
PB
20207 case $(srcdir) in \
20208 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20209 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20210 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20211 esac; \
1b6c0831
L
20212 module_srcdir=libcpp; \
20213 $(SHELL) \
20214 $$s/$$module_srcdir/configure \
20215 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20216 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20217 --target=${target_alias} \
4b900473 20218 || exit 1
a90ef4bf 20219@endif libcpp
4b900473
PB
20220
20221
20222
a90ef4bf
JM
20223.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
20224maybe-configure-stage1-libcpp:
20225@if libcpp-bootstrap
20226maybe-configure-stage1-libcpp: configure-stage1-libcpp
20227configure-stage1-libcpp:
4b900473 20228 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 20229 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20230 @r=`${PWD_COMMAND}`; export r; \
20231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20232 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 20233 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
1b05fbbd 20234 $(HOST_EXPORTS) \
8ee82aff 20235 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 20236 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20237 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
20238 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp; \
20239 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20240 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20241 case $(srcdir) in \
20242 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20243 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20244 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20245 esac; \
1b6c0831
L
20246 module_srcdir=libcpp; \
20247 $(SHELL) $$s/$$module_srcdir/configure \
20248 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20249 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20250 --target=${target_alias} \
20251 \
a90ef4bf
JM
20252 $(STAGE1_CONFIGURE_FLAGS)
20253@endif libcpp-bootstrap
e28c595f 20254
a90ef4bf
JM
20255.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
20256maybe-configure-stage2-libcpp:
20257@if libcpp-bootstrap
20258maybe-configure-stage2-libcpp: configure-stage2-libcpp
20259configure-stage2-libcpp:
4b900473 20260 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 20261 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20262 @r=`${PWD_COMMAND}`; export r; \
20263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20264 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 20265 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20266 $(HOST_EXPORTS) \
1b05fbbd 20267 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20268 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 20269 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20270 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20271 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp; \
20272 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20273 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20274 case $(srcdir) in \
20275 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20276 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20277 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20278 esac; \
1b6c0831
L
20279 module_srcdir=libcpp; \
20280 $(SHELL) $$s/$$module_srcdir/configure \
20281 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20282 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20283 --target=${target_alias} \
22121df0 20284 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20285 $(STAGE2_CONFIGURE_FLAGS)
20286@endif libcpp-bootstrap
e28c595f 20287
a90ef4bf
JM
20288.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
20289maybe-configure-stage3-libcpp:
20290@if libcpp-bootstrap
20291maybe-configure-stage3-libcpp: configure-stage3-libcpp
20292configure-stage3-libcpp:
4b900473 20293 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 20294 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20295 @r=`${PWD_COMMAND}`; export r; \
20296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20297 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 20298 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20299 $(HOST_EXPORTS) \
1b05fbbd 20300 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20301 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 20302 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20303 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20304 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp; \
20305 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20306 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20307 case $(srcdir) in \
20308 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20309 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20310 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20311 esac; \
1b6c0831
L
20312 module_srcdir=libcpp; \
20313 $(SHELL) $$s/$$module_srcdir/configure \
20314 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20315 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20316 --target=${target_alias} \
22121df0 20317 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20318 $(STAGE3_CONFIGURE_FLAGS)
20319@endif libcpp-bootstrap
e28c595f 20320
a90ef4bf
JM
20321.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
20322maybe-configure-stage4-libcpp:
20323@if libcpp-bootstrap
20324maybe-configure-stage4-libcpp: configure-stage4-libcpp
20325configure-stage4-libcpp:
4b900473 20326 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 20327 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20328 @r=`${PWD_COMMAND}`; export r; \
20329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20330 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 20331 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20332 $(HOST_EXPORTS) \
1b05fbbd 20333 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20334 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 20335 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20336 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20337 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp; \
20338 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20339 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20340 case $(srcdir) in \
20341 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20342 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20343 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20344 esac; \
1b6c0831
L
20345 module_srcdir=libcpp; \
20346 $(SHELL) $$s/$$module_srcdir/configure \
20347 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20348 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20349 --target=${target_alias} \
22121df0 20350 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20351 $(STAGE4_CONFIGURE_FLAGS)
20352@endif libcpp-bootstrap
e28c595f 20353
a90ef4bf
JM
20354.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
20355maybe-configure-stageprofile-libcpp:
20356@if libcpp-bootstrap
20357maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
20358configure-stageprofile-libcpp:
4b900473 20359 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 20360 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20361 @r=`${PWD_COMMAND}`; export r; \
20362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20363 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 20364 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20365 $(HOST_EXPORTS) \
1b05fbbd
AO
20366 $(POSTSTAGE1_HOST_EXPORTS) \
20367 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 20368 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20369 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20370 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp; \
20371 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20372 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20373 case $(srcdir) in \
20374 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20375 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20376 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20377 esac; \
1b6c0831
L
20378 module_srcdir=libcpp; \
20379 $(SHELL) $$s/$$module_srcdir/configure \
20380 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20381 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20382 --target=${target_alias} \
22121df0 20383 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20384 $(STAGEprofile_CONFIGURE_FLAGS)
20385@endif libcpp-bootstrap
e28c595f 20386
a90ef4bf
JM
20387.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
20388maybe-configure-stagefeedback-libcpp:
20389@if libcpp-bootstrap
20390maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
20391configure-stagefeedback-libcpp:
4b900473 20392 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 20393 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20394 @r=`${PWD_COMMAND}`; export r; \
20395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20396 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 20397 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20398 $(HOST_EXPORTS) \
1b05fbbd
AO
20399 $(POSTSTAGE1_HOST_EXPORTS) \
20400 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 20401 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20402 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20403 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp; \
20404 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20405 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20406 case $(srcdir) in \
20407 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20408 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20409 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20410 esac; \
1b6c0831
L
20411 module_srcdir=libcpp; \
20412 $(SHELL) $$s/$$module_srcdir/configure \
20413 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20414 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20415 --target=${target_alias} \
22121df0 20416 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20417 $(STAGEfeedback_CONFIGURE_FLAGS)
20418@endif libcpp-bootstrap
4b900473
PB
20419
20420
20421
20422
20423
a90ef4bf
JM
20424.PHONY: all-libcpp maybe-all-libcpp
20425maybe-all-libcpp:
4b900473 20426@if gcc-bootstrap
a90ef4bf 20427all-libcpp: stage_current
4b900473 20428@endif gcc-bootstrap
a90ef4bf
JM
20429@if libcpp
20430TARGET-libcpp=all
20431maybe-all-libcpp: all-libcpp
20432all-libcpp: configure-libcpp
4b900473
PB
20433 @r=`${PWD_COMMAND}`; export r; \
20434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20435 $(HOST_EXPORTS) \
20436 (cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20437 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20438 $(TARGET-libcpp))
20439@endif libcpp
4b900473
PB
20440
20441
20442
a90ef4bf
JM
20443.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
20444.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
20445maybe-all-stage1-libcpp:
20446maybe-clean-stage1-libcpp:
20447@if libcpp-bootstrap
20448maybe-all-stage1-libcpp: all-stage1-libcpp
20449all-stage1: all-stage1-libcpp
20450TARGET-stage1-libcpp = $(TARGET-libcpp)
20451all-stage1-libcpp: configure-stage1-libcpp
4b900473
PB
20452 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20453 @r=`${PWD_COMMAND}`; export r; \
20454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20455 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf
JM
20456 $(HOST_EXPORTS) \
20457 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20458 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20459 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 20460 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
20461 LIBCFLAGS="$(LIBCFLAGS)" \
20462 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20463 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20464 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
20465 $(EXTRA_HOST_FLAGS) \
20466 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 20467 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 20468 $(TARGET-stage1-libcpp)
4b900473 20469
a90ef4bf
JM
20470maybe-clean-stage1-libcpp: clean-stage1-libcpp
20471clean-stage1: clean-stage1-libcpp
20472clean-stage1-libcpp:
4b900473 20473 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 20474 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20475 else \
a90ef4bf 20476 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
4b900473
PB
20477 $(MAKE) stage1-start; \
20478 fi; \
a90ef4bf 20479 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20480 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 20481 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20482@endif libcpp-bootstrap
e28c595f
JM
20483
20484
a90ef4bf
JM
20485.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
20486.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
20487maybe-all-stage2-libcpp:
20488maybe-clean-stage2-libcpp:
20489@if libcpp-bootstrap
20490maybe-all-stage2-libcpp: all-stage2-libcpp
20491all-stage2: all-stage2-libcpp
20492TARGET-stage2-libcpp = $(TARGET-libcpp)
20493all-stage2-libcpp: configure-stage2-libcpp
4b900473
PB
20494 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20495 @r=`${PWD_COMMAND}`; export r; \
20496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20497 TFLAGS="$(STAGE2_TFLAGS)"; \
4b900473 20498 $(HOST_EXPORTS) \
a90ef4bf
JM
20499 $(POSTSTAGE1_HOST_EXPORTS) \
20500 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20501 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20502 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 20503 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
20504 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20505 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20506 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20507 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20508 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20509 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 20510 $(TARGET-stage2-libcpp)
4b900473 20511
a90ef4bf
JM
20512maybe-clean-stage2-libcpp: clean-stage2-libcpp
20513clean-stage2: clean-stage2-libcpp
20514clean-stage2-libcpp:
4b900473 20515 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 20516 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20517 else \
a90ef4bf 20518 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
4b900473
PB
20519 $(MAKE) stage2-start; \
20520 fi; \
a90ef4bf 20521 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20522 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20523@endif libcpp-bootstrap
e28c595f
JM
20524
20525
a90ef4bf
JM
20526.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
20527.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
20528maybe-all-stage3-libcpp:
20529maybe-clean-stage3-libcpp:
20530@if libcpp-bootstrap
20531maybe-all-stage3-libcpp: all-stage3-libcpp
20532all-stage3: all-stage3-libcpp
20533TARGET-stage3-libcpp = $(TARGET-libcpp)
20534all-stage3-libcpp: configure-stage3-libcpp
4b900473
PB
20535 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20536 @r=`${PWD_COMMAND}`; export r; \
20537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20538 TFLAGS="$(STAGE3_TFLAGS)"; \
4b900473 20539 $(HOST_EXPORTS) \
a90ef4bf
JM
20540 $(POSTSTAGE1_HOST_EXPORTS) \
20541 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20542 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20543 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 20544 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
20545 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20546 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20547 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20548 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20549 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20550 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 20551 $(TARGET-stage3-libcpp)
4b900473 20552
a90ef4bf
JM
20553maybe-clean-stage3-libcpp: clean-stage3-libcpp
20554clean-stage3: clean-stage3-libcpp
20555clean-stage3-libcpp:
4b900473 20556 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 20557 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20558 else \
a90ef4bf 20559 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
4b900473
PB
20560 $(MAKE) stage3-start; \
20561 fi; \
a90ef4bf 20562 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20563 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20564@endif libcpp-bootstrap
e28c595f
JM
20565
20566
a90ef4bf
JM
20567.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
20568.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
20569maybe-all-stage4-libcpp:
20570maybe-clean-stage4-libcpp:
20571@if libcpp-bootstrap
20572maybe-all-stage4-libcpp: all-stage4-libcpp
20573all-stage4: all-stage4-libcpp
20574TARGET-stage4-libcpp = $(TARGET-libcpp)
20575all-stage4-libcpp: configure-stage4-libcpp
4b900473
PB
20576 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20577 @r=`${PWD_COMMAND}`; export r; \
20578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20579 TFLAGS="$(STAGE4_TFLAGS)"; \
4b900473 20580 $(HOST_EXPORTS) \
a90ef4bf
JM
20581 $(POSTSTAGE1_HOST_EXPORTS) \
20582 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20583 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20584 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 20585 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 20586 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
20587 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20588 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20589 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20590 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20591 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 20592 $(TARGET-stage4-libcpp)
4b900473 20593
a90ef4bf
JM
20594maybe-clean-stage4-libcpp: clean-stage4-libcpp
20595clean-stage4: clean-stage4-libcpp
20596clean-stage4-libcpp:
4b900473 20597 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 20598 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20599 else \
a90ef4bf 20600 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
4b900473
PB
20601 $(MAKE) stage4-start; \
20602 fi; \
a90ef4bf 20603 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20604 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20605@endif libcpp-bootstrap
e28c595f
JM
20606
20607
a90ef4bf
JM
20608.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
20609.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
20610maybe-all-stageprofile-libcpp:
20611maybe-clean-stageprofile-libcpp:
20612@if libcpp-bootstrap
20613maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
20614all-stageprofile: all-stageprofile-libcpp
20615TARGET-stageprofile-libcpp = $(TARGET-libcpp)
20616all-stageprofile-libcpp: configure-stageprofile-libcpp
4b900473
PB
20617 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20618 @r=`${PWD_COMMAND}`; export r; \
20619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20620 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4b900473 20621 $(HOST_EXPORTS) \
a90ef4bf
JM
20622 $(POSTSTAGE1_HOST_EXPORTS) \
20623 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20624 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20625 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 20626 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
20627 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20628 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20629 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20630 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20631 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20632 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 20633 $(TARGET-stageprofile-libcpp)
4b900473 20634
a90ef4bf
JM
20635maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
20636clean-stageprofile: clean-stageprofile-libcpp
20637clean-stageprofile-libcpp:
4b900473 20638 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 20639 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20640 else \
a90ef4bf 20641 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
4b900473
PB
20642 $(MAKE) stageprofile-start; \
20643 fi; \
a90ef4bf 20644 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20645 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20646@endif libcpp-bootstrap
e28c595f
JM
20647
20648
a90ef4bf
JM
20649.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
20650.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
20651maybe-all-stagefeedback-libcpp:
20652maybe-clean-stagefeedback-libcpp:
20653@if libcpp-bootstrap
20654maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
20655all-stagefeedback: all-stagefeedback-libcpp
20656TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
20657all-stagefeedback-libcpp: configure-stagefeedback-libcpp
4b900473
PB
20658 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20659 @r=`${PWD_COMMAND}`; export r; \
20660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20661 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4b900473 20662 $(HOST_EXPORTS) \
a90ef4bf
JM
20663 $(POSTSTAGE1_HOST_EXPORTS) \
20664 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20665 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20666 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 20667 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
20668 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20669 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20670 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20671 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20672 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
1b05fbbd 20673 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 20674 $(TARGET-stagefeedback-libcpp)
4b900473 20675
a90ef4bf
JM
20676maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
20677clean-stagefeedback: clean-stagefeedback-libcpp
20678clean-stagefeedback-libcpp:
4b900473 20679 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 20680 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20681 else \
a90ef4bf 20682 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
4b900473
PB
20683 $(MAKE) stagefeedback-start; \
20684 fi; \
a90ef4bf 20685 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20686 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20687@endif libcpp-bootstrap
4b900473
PB
20688
20689
20690
20691
20692
a90ef4bf
JM
20693.PHONY: check-libcpp maybe-check-libcpp
20694maybe-check-libcpp:
20695@if libcpp
20696maybe-check-libcpp: check-libcpp
4b900473 20697
a90ef4bf 20698check-libcpp:
4b900473
PB
20699 @: $(MAKE); $(unstage)
20700 @r=`${PWD_COMMAND}`; export r; \
20701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 20702 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 20703 (cd $(HOST_SUBDIR)/libcpp && \
f91ca6bc 20704 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4b900473 20705
a90ef4bf 20706@endif libcpp
4b900473 20707
a90ef4bf
JM
20708.PHONY: install-libcpp maybe-install-libcpp
20709maybe-install-libcpp:
20710@if libcpp
20711maybe-install-libcpp: install-libcpp
4b900473 20712
a90ef4bf
JM
20713install-libcpp: installdirs
20714 @: $(MAKE); $(unstage)
20715 @r=`${PWD_COMMAND}`; export r; \
20716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20717 $(HOST_EXPORTS) \
20718 (cd $(HOST_SUBDIR)/libcpp && \
20719 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 20720
a90ef4bf 20721@endif libcpp
4b900473 20722
a90ef4bf
JM
20723.PHONY: install-strip-libcpp maybe-install-strip-libcpp
20724maybe-install-strip-libcpp:
20725@if libcpp
20726maybe-install-strip-libcpp: install-strip-libcpp
9b980aa1 20727
a90ef4bf
JM
20728install-strip-libcpp: installdirs
20729 @: $(MAKE); $(unstage)
20730 @r=`${PWD_COMMAND}`; export r; \
20731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20732 $(HOST_EXPORTS) \
20733 (cd $(HOST_SUBDIR)/libcpp && \
20734 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 20735
a90ef4bf 20736@endif libcpp
9b980aa1 20737
4b900473
PB
20738# Other targets (info, dvi, pdf, etc.)
20739
a90ef4bf
JM
20740.PHONY: maybe-info-libcpp info-libcpp
20741maybe-info-libcpp:
20742@if libcpp
20743maybe-info-libcpp: info-libcpp
4b900473 20744
a90ef4bf
JM
20745info-libcpp: \
20746 configure-libcpp
20747 @[ -f ./libcpp/Makefile ] || exit 0; \
20748 r=`${PWD_COMMAND}`; export r; \
4b900473
PB
20749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20750 $(HOST_EXPORTS) \
a90ef4bf 20751 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20753 done; \
22121df0 20754 echo "Doing info in libcpp"; \
a90ef4bf 20755 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20758 "RANLIB=$${RANLIB}" \
0c24b341 20759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20760 info) \
20761 || exit 1
20762
a90ef4bf 20763@endif libcpp
4b900473 20764
a90ef4bf
JM
20765.PHONY: maybe-dvi-libcpp dvi-libcpp
20766maybe-dvi-libcpp:
20767@if libcpp
20768maybe-dvi-libcpp: dvi-libcpp
4b900473 20769
a90ef4bf
JM
20770dvi-libcpp: \
20771 configure-libcpp
20772 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20773 r=`${PWD_COMMAND}`; export r; \
20774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20775 $(HOST_EXPORTS) \
a90ef4bf 20776 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20778 done; \
22121df0 20779 echo "Doing dvi in libcpp"; \
a90ef4bf 20780 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20783 "RANLIB=$${RANLIB}" \
0c24b341 20784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20785 dvi) \
20786 || exit 1
20787
a90ef4bf 20788@endif libcpp
4b900473 20789
a90ef4bf
JM
20790.PHONY: maybe-pdf-libcpp pdf-libcpp
20791maybe-pdf-libcpp:
20792@if libcpp
20793maybe-pdf-libcpp: pdf-libcpp
4b900473 20794
a90ef4bf
JM
20795pdf-libcpp: \
20796 configure-libcpp
20797 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20798 r=`${PWD_COMMAND}`; export r; \
20799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20800 $(HOST_EXPORTS) \
a90ef4bf 20801 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20803 done; \
22121df0 20804 echo "Doing pdf in libcpp"; \
a90ef4bf 20805 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20808 "RANLIB=$${RANLIB}" \
0c24b341 20809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20810 pdf) \
20811 || exit 1
20812
a90ef4bf 20813@endif libcpp
4b900473 20814
a90ef4bf
JM
20815.PHONY: maybe-html-libcpp html-libcpp
20816maybe-html-libcpp:
20817@if libcpp
20818maybe-html-libcpp: html-libcpp
4b900473 20819
a90ef4bf
JM
20820html-libcpp: \
20821 configure-libcpp
20822 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20823 r=`${PWD_COMMAND}`; export r; \
20824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20825 $(HOST_EXPORTS) \
a90ef4bf 20826 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20828 done; \
22121df0 20829 echo "Doing html in libcpp"; \
a90ef4bf 20830 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20833 "RANLIB=$${RANLIB}" \
0c24b341 20834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20835 html) \
20836 || exit 1
20837
a90ef4bf 20838@endif libcpp
4b900473 20839
a90ef4bf
JM
20840.PHONY: maybe-TAGS-libcpp TAGS-libcpp
20841maybe-TAGS-libcpp:
20842@if libcpp
20843maybe-TAGS-libcpp: TAGS-libcpp
4b900473 20844
a90ef4bf
JM
20845TAGS-libcpp: \
20846 configure-libcpp
20847 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20848 r=`${PWD_COMMAND}`; export r; \
20849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20850 $(HOST_EXPORTS) \
a90ef4bf 20851 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20853 done; \
22121df0 20854 echo "Doing TAGS in libcpp"; \
a90ef4bf 20855 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20858 "RANLIB=$${RANLIB}" \
0c24b341 20859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20860 TAGS) \
20861 || exit 1
20862
a90ef4bf 20863@endif libcpp
4b900473 20864
a90ef4bf
JM
20865.PHONY: maybe-install-info-libcpp install-info-libcpp
20866maybe-install-info-libcpp:
20867@if libcpp
20868maybe-install-info-libcpp: install-info-libcpp
4b900473 20869
a90ef4bf
JM
20870install-info-libcpp: \
20871 configure-libcpp \
20872 info-libcpp
20873 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20874 r=`${PWD_COMMAND}`; export r; \
20875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20876 $(HOST_EXPORTS) \
a90ef4bf 20877 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20879 done; \
22121df0 20880 echo "Doing install-info in libcpp"; \
a90ef4bf 20881 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20884 "RANLIB=$${RANLIB}" \
0c24b341 20885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20886 install-info) \
20887 || exit 1
20888
a90ef4bf 20889@endif libcpp
4b900473 20890
a90ef4bf
JM
20891.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
20892maybe-install-pdf-libcpp:
20893@if libcpp
20894maybe-install-pdf-libcpp: install-pdf-libcpp
a3ca38d2 20895
a90ef4bf
JM
20896install-pdf-libcpp: \
20897 configure-libcpp \
20898 pdf-libcpp
20899 @[ -f ./libcpp/Makefile ] || exit 0; \
a3ca38d2
DD
20900 r=`${PWD_COMMAND}`; export r; \
20901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20902 $(HOST_EXPORTS) \
a90ef4bf 20903 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
20904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20905 done; \
22121df0 20906 echo "Doing install-pdf in libcpp"; \
a90ef4bf 20907 (cd $(HOST_SUBDIR)/libcpp && \
a3ca38d2
DD
20908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20910 "RANLIB=$${RANLIB}" \
0c24b341 20911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
20912 install-pdf) \
20913 || exit 1
20914
a90ef4bf 20915@endif libcpp
a3ca38d2 20916
a90ef4bf
JM
20917.PHONY: maybe-install-html-libcpp install-html-libcpp
20918maybe-install-html-libcpp:
20919@if libcpp
20920maybe-install-html-libcpp: install-html-libcpp
4b900473 20921
a90ef4bf
JM
20922install-html-libcpp: \
20923 configure-libcpp \
20924 html-libcpp
20925 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20926 r=`${PWD_COMMAND}`; export r; \
20927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20928 $(HOST_EXPORTS) \
a90ef4bf 20929 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20931 done; \
22121df0 20932 echo "Doing install-html in libcpp"; \
a90ef4bf 20933 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20936 "RANLIB=$${RANLIB}" \
0c24b341 20937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20938 install-html) \
20939 || exit 1
20940
a90ef4bf 20941@endif libcpp
4b900473 20942
a90ef4bf
JM
20943.PHONY: maybe-installcheck-libcpp installcheck-libcpp
20944maybe-installcheck-libcpp:
20945@if libcpp
20946maybe-installcheck-libcpp: installcheck-libcpp
4b900473 20947
a90ef4bf
JM
20948installcheck-libcpp: \
20949 configure-libcpp
20950 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20951 r=`${PWD_COMMAND}`; export r; \
20952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20953 $(HOST_EXPORTS) \
a90ef4bf 20954 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20956 done; \
22121df0 20957 echo "Doing installcheck in libcpp"; \
a90ef4bf 20958 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20961 "RANLIB=$${RANLIB}" \
0c24b341 20962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20963 installcheck) \
20964 || exit 1
20965
a90ef4bf 20966@endif libcpp
4b900473 20967
a90ef4bf
JM
20968.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
20969maybe-mostlyclean-libcpp:
20970@if libcpp
20971maybe-mostlyclean-libcpp: mostlyclean-libcpp
4b900473 20972
a90ef4bf
JM
20973mostlyclean-libcpp:
20974 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20975 r=`${PWD_COMMAND}`; export r; \
20976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20977 $(HOST_EXPORTS) \
a90ef4bf 20978 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20980 done; \
22121df0 20981 echo "Doing mostlyclean in libcpp"; \
a90ef4bf 20982 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20985 "RANLIB=$${RANLIB}" \
0c24b341 20986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20987 mostlyclean) \
20988 || exit 1
20989
a90ef4bf 20990@endif libcpp
4b900473 20991
a90ef4bf
JM
20992.PHONY: maybe-clean-libcpp clean-libcpp
20993maybe-clean-libcpp:
20994@if libcpp
20995maybe-clean-libcpp: clean-libcpp
4b900473 20996
a90ef4bf
JM
20997clean-libcpp:
20998 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20999 r=`${PWD_COMMAND}`; export r; \
21000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21001 $(HOST_EXPORTS) \
a90ef4bf 21002 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21004 done; \
22121df0 21005 echo "Doing clean in libcpp"; \
a90ef4bf 21006 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21009 "RANLIB=$${RANLIB}" \
0c24b341 21010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21011 clean) \
21012 || exit 1
21013
a90ef4bf 21014@endif libcpp
4b900473 21015
a90ef4bf
JM
21016.PHONY: maybe-distclean-libcpp distclean-libcpp
21017maybe-distclean-libcpp:
21018@if libcpp
21019maybe-distclean-libcpp: distclean-libcpp
4b900473 21020
a90ef4bf
JM
21021distclean-libcpp:
21022 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21023 r=`${PWD_COMMAND}`; export r; \
21024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21025 $(HOST_EXPORTS) \
a90ef4bf 21026 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21028 done; \
22121df0 21029 echo "Doing distclean in libcpp"; \
a90ef4bf 21030 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21033 "RANLIB=$${RANLIB}" \
0c24b341 21034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21035 distclean) \
21036 || exit 1
21037
a90ef4bf 21038@endif libcpp
4b900473 21039
a90ef4bf
JM
21040.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
21041maybe-maintainer-clean-libcpp:
21042@if libcpp
21043maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
4b900473 21044
a90ef4bf
JM
21045maintainer-clean-libcpp:
21046 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21047 r=`${PWD_COMMAND}`; export r; \
21048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21049 $(HOST_EXPORTS) \
a90ef4bf 21050 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21052 done; \
22121df0 21053 echo "Doing maintainer-clean in libcpp"; \
a90ef4bf 21054 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21057 "RANLIB=$${RANLIB}" \
0c24b341 21058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21059 maintainer-clean) \
21060 || exit 1
21061
a90ef4bf 21062@endif libcpp
4b900473
PB
21063
21064
21065
a90ef4bf
JM
21066.PHONY: configure-libdecnumber maybe-configure-libdecnumber
21067maybe-configure-libdecnumber:
1f53ca9a 21068@if gcc-bootstrap
a90ef4bf 21069configure-libdecnumber: stage_current
1f53ca9a 21070@endif gcc-bootstrap
a90ef4bf
JM
21071@if libdecnumber
21072maybe-configure-libdecnumber: configure-libdecnumber
21073configure-libdecnumber:
1f53ca9a
AO
21074 @r=`${PWD_COMMAND}`; export r; \
21075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21076 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
22121df0 21077 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
1f53ca9a 21078 $(HOST_EXPORTS) \
a90ef4bf
JM
21079 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
21080 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
1f53ca9a
AO
21081 case $(srcdir) in \
21082 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21083 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21084 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21085 esac; \
1b6c0831
L
21086 module_srcdir=libdecnumber; \
21087 $(SHELL) \
21088 $$s/$$module_srcdir/configure \
21089 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21090 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21091 --target=${target_alias} \
1f53ca9a 21092 || exit 1
a90ef4bf 21093@endif libdecnumber
1f53ca9a
AO
21094
21095
21096
a90ef4bf
JM
21097.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
21098maybe-configure-stage1-libdecnumber:
21099@if libdecnumber-bootstrap
21100maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
21101configure-stage1-libdecnumber:
1f53ca9a 21102 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 21103 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21104 @r=`${PWD_COMMAND}`; export r; \
21105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21106 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 21107 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21108 $(HOST_EXPORTS) \
21109 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
21110 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21111 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
21112 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber; \
21113 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21114 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21115 case $(srcdir) in \
21116 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21117 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21118 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21119 esac; \
1b6c0831
L
21120 module_srcdir=libdecnumber; \
21121 $(SHELL) $$s/$$module_srcdir/configure \
21122 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21123 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21124 --target=${target_alias} \
21125 \
a90ef4bf
JM
21126 $(STAGE1_CONFIGURE_FLAGS)
21127@endif libdecnumber-bootstrap
1f53ca9a 21128
a90ef4bf
JM
21129.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
21130maybe-configure-stage2-libdecnumber:
21131@if libdecnumber-bootstrap
21132maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
21133configure-stage2-libdecnumber:
1f53ca9a 21134 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 21135 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21136 @r=`${PWD_COMMAND}`; export r; \
21137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21138 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 21139 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21140 $(HOST_EXPORTS) \
21141 $(POSTSTAGE1_HOST_EXPORTS) \
21142 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
21143 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21144 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21145 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber; \
21146 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21147 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21148 case $(srcdir) in \
21149 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21150 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21151 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21152 esac; \
1b6c0831
L
21153 module_srcdir=libdecnumber; \
21154 $(SHELL) $$s/$$module_srcdir/configure \
21155 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21156 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21157 --target=${target_alias} \
22121df0 21158 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21159 $(STAGE2_CONFIGURE_FLAGS)
21160@endif libdecnumber-bootstrap
1f53ca9a 21161
a90ef4bf
JM
21162.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
21163maybe-configure-stage3-libdecnumber:
21164@if libdecnumber-bootstrap
21165maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
21166configure-stage3-libdecnumber:
1f53ca9a 21167 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 21168 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21169 @r=`${PWD_COMMAND}`; export r; \
21170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21171 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 21172 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21173 $(HOST_EXPORTS) \
21174 $(POSTSTAGE1_HOST_EXPORTS) \
21175 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
21176 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21177 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21178 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber; \
21179 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21180 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21181 case $(srcdir) in \
21182 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21183 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21184 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21185 esac; \
1b6c0831
L
21186 module_srcdir=libdecnumber; \
21187 $(SHELL) $$s/$$module_srcdir/configure \
21188 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21189 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21190 --target=${target_alias} \
22121df0 21191 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21192 $(STAGE3_CONFIGURE_FLAGS)
21193@endif libdecnumber-bootstrap
1f53ca9a 21194
a90ef4bf
JM
21195.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
21196maybe-configure-stage4-libdecnumber:
21197@if libdecnumber-bootstrap
21198maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
21199configure-stage4-libdecnumber:
1f53ca9a 21200 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 21201 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21202 @r=`${PWD_COMMAND}`; export r; \
21203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21204 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 21205 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21206 $(HOST_EXPORTS) \
21207 $(POSTSTAGE1_HOST_EXPORTS) \
21208 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
21209 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21210 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21211 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber; \
21212 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21213 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21214 case $(srcdir) in \
21215 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21216 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21217 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21218 esac; \
1b6c0831
L
21219 module_srcdir=libdecnumber; \
21220 $(SHELL) $$s/$$module_srcdir/configure \
21221 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21222 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21223 --target=${target_alias} \
22121df0 21224 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21225 $(STAGE4_CONFIGURE_FLAGS)
21226@endif libdecnumber-bootstrap
1f53ca9a 21227
a90ef4bf
JM
21228.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
21229maybe-configure-stageprofile-libdecnumber:
21230@if libdecnumber-bootstrap
21231maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
21232configure-stageprofile-libdecnumber:
1f53ca9a 21233 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 21234 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21235 @r=`${PWD_COMMAND}`; export r; \
21236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21237 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 21238 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21239 $(HOST_EXPORTS) \
21240 $(POSTSTAGE1_HOST_EXPORTS) \
21241 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
21242 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21243 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21244 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber; \
21245 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21246 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21247 case $(srcdir) in \
21248 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21249 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21250 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21251 esac; \
1b6c0831
L
21252 module_srcdir=libdecnumber; \
21253 $(SHELL) $$s/$$module_srcdir/configure \
21254 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21255 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21256 --target=${target_alias} \
22121df0 21257 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21258 $(STAGEprofile_CONFIGURE_FLAGS)
21259@endif libdecnumber-bootstrap
1f53ca9a 21260
a90ef4bf
JM
21261.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
21262maybe-configure-stagefeedback-libdecnumber:
21263@if libdecnumber-bootstrap
21264maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
21265configure-stagefeedback-libdecnumber:
1f53ca9a 21266 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 21267 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21268 @r=`${PWD_COMMAND}`; export r; \
21269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21270 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 21271 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21272 $(HOST_EXPORTS) \
21273 $(POSTSTAGE1_HOST_EXPORTS) \
21274 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
21275 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21276 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21277 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber; \
21278 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21279 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21280 case $(srcdir) in \
21281 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21282 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21283 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21284 esac; \
1b6c0831
L
21285 module_srcdir=libdecnumber; \
21286 $(SHELL) $$s/$$module_srcdir/configure \
21287 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21288 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21289 --target=${target_alias} \
22121df0 21290 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21291 $(STAGEfeedback_CONFIGURE_FLAGS)
21292@endif libdecnumber-bootstrap
1f53ca9a
AO
21293
21294
21295
21296
21297
a90ef4bf
JM
21298.PHONY: all-libdecnumber maybe-all-libdecnumber
21299maybe-all-libdecnumber:
1f53ca9a 21300@if gcc-bootstrap
a90ef4bf 21301all-libdecnumber: stage_current
1f53ca9a 21302@endif gcc-bootstrap
a90ef4bf
JM
21303@if libdecnumber
21304TARGET-libdecnumber=all
21305maybe-all-libdecnumber: all-libdecnumber
21306all-libdecnumber: configure-libdecnumber
1f53ca9a
AO
21307 @r=`${PWD_COMMAND}`; export r; \
21308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21309 $(HOST_EXPORTS) \
a90ef4bf 21310 (cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21311 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21312 $(TARGET-libdecnumber))
21313@endif libdecnumber
1f53ca9a
AO
21314
21315
21316
a90ef4bf
JM
21317.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
21318.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
21319maybe-all-stage1-libdecnumber:
21320maybe-clean-stage1-libdecnumber:
21321@if libdecnumber-bootstrap
21322maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
21323all-stage1: all-stage1-libdecnumber
21324TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
21325all-stage1-libdecnumber: configure-stage1-libdecnumber
1f53ca9a
AO
21326 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
21327 @r=`${PWD_COMMAND}`; export r; \
21328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21329 TFLAGS="$(STAGE1_TFLAGS)"; \
21330 $(HOST_EXPORTS) \
a90ef4bf 21331 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21332 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21333 CFLAGS="$(STAGE1_CFLAGS)" \
21334 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
21335 LIBCFLAGS="$(LIBCFLAGS)" \
21336 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21337 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21338 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
21339 $(EXTRA_HOST_FLAGS) \
21340 $(STAGE1_FLAGS_TO_PASS) \
1f53ca9a 21341 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 21342 $(TARGET-stage1-libdecnumber)
1f53ca9a 21343
a90ef4bf
JM
21344maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
21345clean-stage1: clean-stage1-libdecnumber
21346clean-stage1-libdecnumber:
1f53ca9a 21347 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 21348 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21349 else \
a90ef4bf 21350 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21351 $(MAKE) stage1-start; \
21352 fi; \
a90ef4bf 21353 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a 21354 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 21355 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21356@endif libdecnumber-bootstrap
1f53ca9a
AO
21357
21358
a90ef4bf
JM
21359.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
21360.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
21361maybe-all-stage2-libdecnumber:
21362maybe-clean-stage2-libdecnumber:
21363@if libdecnumber-bootstrap
21364maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
21365all-stage2: all-stage2-libdecnumber
21366TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
21367all-stage2-libdecnumber: configure-stage2-libdecnumber
1f53ca9a
AO
21368 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
21369 @r=`${PWD_COMMAND}`; export r; \
21370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21371 TFLAGS="$(STAGE2_TFLAGS)"; \
21372 $(HOST_EXPORTS) \
21373 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21374 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21375 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21376 CFLAGS="$(STAGE2_CFLAGS)" \
21377 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
21378 LIBCFLAGS="$(STAGE2_CFLAGS)" \
21379 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21380 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21381 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21382 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21383 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 21384 $(TARGET-stage2-libdecnumber)
1f53ca9a 21385
a90ef4bf
JM
21386maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
21387clean-stage2: clean-stage2-libdecnumber
21388clean-stage2-libdecnumber:
1f53ca9a 21389 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 21390 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21391 else \
a90ef4bf 21392 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21393 $(MAKE) stage2-start; \
21394 fi; \
a90ef4bf 21395 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21396 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21397@endif libdecnumber-bootstrap
1f53ca9a
AO
21398
21399
a90ef4bf
JM
21400.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
21401.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
21402maybe-all-stage3-libdecnumber:
21403maybe-clean-stage3-libdecnumber:
21404@if libdecnumber-bootstrap
21405maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
21406all-stage3: all-stage3-libdecnumber
21407TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
21408all-stage3-libdecnumber: configure-stage3-libdecnumber
1f53ca9a
AO
21409 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
21410 @r=`${PWD_COMMAND}`; export r; \
21411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21412 TFLAGS="$(STAGE3_TFLAGS)"; \
21413 $(HOST_EXPORTS) \
21414 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21415 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21416 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21417 CFLAGS="$(STAGE3_CFLAGS)" \
21418 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
21419 LIBCFLAGS="$(STAGE3_CFLAGS)" \
21420 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21421 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21422 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21423 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21424 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 21425 $(TARGET-stage3-libdecnumber)
1f53ca9a 21426
a90ef4bf
JM
21427maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
21428clean-stage3: clean-stage3-libdecnumber
21429clean-stage3-libdecnumber:
1f53ca9a 21430 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 21431 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21432 else \
a90ef4bf 21433 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21434 $(MAKE) stage3-start; \
21435 fi; \
a90ef4bf 21436 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21437 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21438@endif libdecnumber-bootstrap
1f53ca9a
AO
21439
21440
a90ef4bf
JM
21441.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
21442.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
21443maybe-all-stage4-libdecnumber:
21444maybe-clean-stage4-libdecnumber:
21445@if libdecnumber-bootstrap
21446maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
21447all-stage4: all-stage4-libdecnumber
21448TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
21449all-stage4-libdecnumber: configure-stage4-libdecnumber
1f53ca9a
AO
21450 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
21451 @r=`${PWD_COMMAND}`; export r; \
21452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21453 TFLAGS="$(STAGE4_TFLAGS)"; \
21454 $(HOST_EXPORTS) \
21455 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21456 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21457 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21458 CFLAGS="$(STAGE4_CFLAGS)" \
21459 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
21460 LIBCFLAGS="$(STAGE4_CFLAGS)" \
21461 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21462 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21463 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21464 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21465 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 21466 $(TARGET-stage4-libdecnumber)
1f53ca9a 21467
a90ef4bf
JM
21468maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
21469clean-stage4: clean-stage4-libdecnumber
21470clean-stage4-libdecnumber:
1f53ca9a 21471 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 21472 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21473 else \
a90ef4bf 21474 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21475 $(MAKE) stage4-start; \
21476 fi; \
a90ef4bf 21477 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21478 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21479@endif libdecnumber-bootstrap
1f53ca9a
AO
21480
21481
a90ef4bf
JM
21482.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
21483.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
21484maybe-all-stageprofile-libdecnumber:
21485maybe-clean-stageprofile-libdecnumber:
21486@if libdecnumber-bootstrap
21487maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
21488all-stageprofile: all-stageprofile-libdecnumber
21489TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
21490all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
1f53ca9a
AO
21491 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
21492 @r=`${PWD_COMMAND}`; export r; \
21493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21494 TFLAGS="$(STAGEprofile_TFLAGS)"; \
21495 $(HOST_EXPORTS) \
21496 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21497 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21498 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21499 CFLAGS="$(STAGEprofile_CFLAGS)" \
21500 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
21501 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
21502 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21503 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21504 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21505 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21506 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 21507 $(TARGET-stageprofile-libdecnumber)
1f53ca9a 21508
a90ef4bf
JM
21509maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
21510clean-stageprofile: clean-stageprofile-libdecnumber
21511clean-stageprofile-libdecnumber:
1f53ca9a 21512 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 21513 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21514 else \
a90ef4bf 21515 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21516 $(MAKE) stageprofile-start; \
21517 fi; \
a90ef4bf 21518 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21519 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21520@endif libdecnumber-bootstrap
1f53ca9a
AO
21521
21522
a90ef4bf
JM
21523.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
21524.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
21525maybe-all-stagefeedback-libdecnumber:
21526maybe-clean-stagefeedback-libdecnumber:
21527@if libdecnumber-bootstrap
21528maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
21529all-stagefeedback: all-stagefeedback-libdecnumber
21530TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
21531all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
1f53ca9a
AO
21532 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
21533 @r=`${PWD_COMMAND}`; export r; \
21534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21535 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
21536 $(HOST_EXPORTS) \
21537 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21538 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21539 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21540 CFLAGS="$(STAGEfeedback_CFLAGS)" \
21541 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
21542 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
21543 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21544 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21545 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21546 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
21547 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 21548 $(TARGET-stagefeedback-libdecnumber)
1f53ca9a 21549
a90ef4bf
JM
21550maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
21551clean-stagefeedback: clean-stagefeedback-libdecnumber
21552clean-stagefeedback-libdecnumber:
1f53ca9a 21553 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 21554 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21555 else \
a90ef4bf 21556 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21557 $(MAKE) stagefeedback-start; \
21558 fi; \
a90ef4bf 21559 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21560 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21561@endif libdecnumber-bootstrap
1f53ca9a
AO
21562
21563
21564
21565
21566
a90ef4bf
JM
21567.PHONY: check-libdecnumber maybe-check-libdecnumber
21568maybe-check-libdecnumber:
21569@if libdecnumber
21570maybe-check-libdecnumber: check-libdecnumber
1f53ca9a 21571
a90ef4bf 21572check-libdecnumber:
1f53ca9a
AO
21573 @: $(MAKE); $(unstage)
21574 @r=`${PWD_COMMAND}`; export r; \
21575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 21576 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 21577 (cd $(HOST_SUBDIR)/libdecnumber && \
f91ca6bc 21578 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
1f53ca9a 21579
a90ef4bf 21580@endif libdecnumber
1f53ca9a 21581
a90ef4bf
JM
21582.PHONY: install-libdecnumber maybe-install-libdecnumber
21583maybe-install-libdecnumber:
21584@if libdecnumber
21585maybe-install-libdecnumber: install-libdecnumber
1f53ca9a 21586
a90ef4bf
JM
21587install-libdecnumber: installdirs
21588 @: $(MAKE); $(unstage)
21589 @r=`${PWD_COMMAND}`; export r; \
21590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21591 $(HOST_EXPORTS) \
21592 (cd $(HOST_SUBDIR)/libdecnumber && \
21593 $(MAKE) $(FLAGS_TO_PASS) install)
1f53ca9a 21594
a90ef4bf 21595@endif libdecnumber
1f53ca9a 21596
a90ef4bf
JM
21597.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
21598maybe-install-strip-libdecnumber:
21599@if libdecnumber
21600maybe-install-strip-libdecnumber: install-strip-libdecnumber
9b980aa1 21601
a90ef4bf
JM
21602install-strip-libdecnumber: installdirs
21603 @: $(MAKE); $(unstage)
21604 @r=`${PWD_COMMAND}`; export r; \
21605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21606 $(HOST_EXPORTS) \
21607 (cd $(HOST_SUBDIR)/libdecnumber && \
21608 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 21609
a90ef4bf 21610@endif libdecnumber
9b980aa1 21611
1f53ca9a
AO
21612# Other targets (info, dvi, pdf, etc.)
21613
a90ef4bf
JM
21614.PHONY: maybe-info-libdecnumber info-libdecnumber
21615maybe-info-libdecnumber:
21616@if libdecnumber
21617maybe-info-libdecnumber: info-libdecnumber
1f53ca9a 21618
a90ef4bf
JM
21619info-libdecnumber: \
21620 configure-libdecnumber
21621 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21622 r=`${PWD_COMMAND}`; export r; \
21623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21624 $(HOST_EXPORTS) \
21625 for flag in $(EXTRA_HOST_FLAGS) ; do \
21626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21627 done; \
22121df0 21628 echo "Doing info in libdecnumber"; \
a90ef4bf 21629 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21632 "RANLIB=$${RANLIB}" \
21633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21634 info) \
21635 || exit 1
21636
a90ef4bf 21637@endif libdecnumber
1f53ca9a 21638
a90ef4bf
JM
21639.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
21640maybe-dvi-libdecnumber:
21641@if libdecnumber
21642maybe-dvi-libdecnumber: dvi-libdecnumber
1f53ca9a 21643
a90ef4bf
JM
21644dvi-libdecnumber: \
21645 configure-libdecnumber
21646 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21647 r=`${PWD_COMMAND}`; export r; \
21648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21649 $(HOST_EXPORTS) \
21650 for flag in $(EXTRA_HOST_FLAGS) ; do \
21651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21652 done; \
22121df0 21653 echo "Doing dvi in libdecnumber"; \
a90ef4bf 21654 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21657 "RANLIB=$${RANLIB}" \
21658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21659 dvi) \
21660 || exit 1
21661
a90ef4bf 21662@endif libdecnumber
1f53ca9a 21663
a90ef4bf
JM
21664.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
21665maybe-pdf-libdecnumber:
21666@if libdecnumber
21667maybe-pdf-libdecnumber: pdf-libdecnumber
1f53ca9a 21668
a90ef4bf
JM
21669pdf-libdecnumber: \
21670 configure-libdecnumber
21671 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21672 r=`${PWD_COMMAND}`; export r; \
21673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21674 $(HOST_EXPORTS) \
21675 for flag in $(EXTRA_HOST_FLAGS) ; do \
21676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21677 done; \
22121df0 21678 echo "Doing pdf in libdecnumber"; \
a90ef4bf 21679 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21682 "RANLIB=$${RANLIB}" \
21683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21684 pdf) \
21685 || exit 1
21686
a90ef4bf 21687@endif libdecnumber
1f53ca9a 21688
a90ef4bf
JM
21689.PHONY: maybe-html-libdecnumber html-libdecnumber
21690maybe-html-libdecnumber:
21691@if libdecnumber
21692maybe-html-libdecnumber: html-libdecnumber
1f53ca9a 21693
a90ef4bf
JM
21694html-libdecnumber: \
21695 configure-libdecnumber
21696 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21697 r=`${PWD_COMMAND}`; export r; \
21698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21699 $(HOST_EXPORTS) \
21700 for flag in $(EXTRA_HOST_FLAGS) ; do \
21701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21702 done; \
22121df0 21703 echo "Doing html in libdecnumber"; \
a90ef4bf 21704 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21707 "RANLIB=$${RANLIB}" \
21708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21709 html) \
21710 || exit 1
21711
a90ef4bf 21712@endif libdecnumber
1f53ca9a 21713
a90ef4bf
JM
21714.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
21715maybe-TAGS-libdecnumber:
21716@if libdecnumber
21717maybe-TAGS-libdecnumber: TAGS-libdecnumber
1f53ca9a 21718
a90ef4bf
JM
21719TAGS-libdecnumber: \
21720 configure-libdecnumber
21721 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21722 r=`${PWD_COMMAND}`; export r; \
21723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21724 $(HOST_EXPORTS) \
21725 for flag in $(EXTRA_HOST_FLAGS) ; do \
21726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21727 done; \
22121df0 21728 echo "Doing TAGS in libdecnumber"; \
a90ef4bf 21729 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21732 "RANLIB=$${RANLIB}" \
21733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21734 TAGS) \
21735 || exit 1
21736
a90ef4bf 21737@endif libdecnumber
1f53ca9a 21738
a90ef4bf
JM
21739.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
21740maybe-install-info-libdecnumber:
21741@if libdecnumber
21742maybe-install-info-libdecnumber: install-info-libdecnumber
1f53ca9a 21743
a90ef4bf
JM
21744install-info-libdecnumber: \
21745 configure-libdecnumber \
21746 info-libdecnumber
21747 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21748 r=`${PWD_COMMAND}`; export r; \
21749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21750 $(HOST_EXPORTS) \
21751 for flag in $(EXTRA_HOST_FLAGS) ; do \
21752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21753 done; \
22121df0 21754 echo "Doing install-info in libdecnumber"; \
a90ef4bf 21755 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21758 "RANLIB=$${RANLIB}" \
21759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21760 install-info) \
21761 || exit 1
21762
a90ef4bf 21763@endif libdecnumber
1f53ca9a 21764
a90ef4bf
JM
21765.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
21766maybe-install-pdf-libdecnumber:
21767@if libdecnumber
21768maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
1f53ca9a 21769
a90ef4bf
JM
21770install-pdf-libdecnumber: \
21771 configure-libdecnumber \
21772 pdf-libdecnumber
21773 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21774 r=`${PWD_COMMAND}`; export r; \
21775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21776 $(HOST_EXPORTS) \
21777 for flag in $(EXTRA_HOST_FLAGS) ; do \
21778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21779 done; \
22121df0 21780 echo "Doing install-pdf in libdecnumber"; \
a90ef4bf 21781 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21784 "RANLIB=$${RANLIB}" \
21785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21786 install-pdf) \
21787 || exit 1
21788
a90ef4bf 21789@endif libdecnumber
1f53ca9a 21790
a90ef4bf
JM
21791.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
21792maybe-install-html-libdecnumber:
21793@if libdecnumber
21794maybe-install-html-libdecnumber: install-html-libdecnumber
1f53ca9a 21795
a90ef4bf
JM
21796install-html-libdecnumber: \
21797 configure-libdecnumber \
21798 html-libdecnumber
21799 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21800 r=`${PWD_COMMAND}`; export r; \
21801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21802 $(HOST_EXPORTS) \
21803 for flag in $(EXTRA_HOST_FLAGS) ; do \
21804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21805 done; \
22121df0 21806 echo "Doing install-html in libdecnumber"; \
a90ef4bf 21807 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21810 "RANLIB=$${RANLIB}" \
21811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21812 install-html) \
21813 || exit 1
21814
a90ef4bf 21815@endif libdecnumber
1f53ca9a 21816
a90ef4bf
JM
21817.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
21818maybe-installcheck-libdecnumber:
21819@if libdecnumber
21820maybe-installcheck-libdecnumber: installcheck-libdecnumber
1f53ca9a 21821
a90ef4bf
JM
21822installcheck-libdecnumber: \
21823 configure-libdecnumber
21824 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21825 r=`${PWD_COMMAND}`; export r; \
21826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21827 $(HOST_EXPORTS) \
21828 for flag in $(EXTRA_HOST_FLAGS) ; do \
21829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21830 done; \
22121df0 21831 echo "Doing installcheck in libdecnumber"; \
a90ef4bf 21832 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21835 "RANLIB=$${RANLIB}" \
21836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21837 installcheck) \
21838 || exit 1
21839
a90ef4bf 21840@endif libdecnumber
1f53ca9a 21841
a90ef4bf
JM
21842.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
21843maybe-mostlyclean-libdecnumber:
21844@if libdecnumber
21845maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
1f53ca9a 21846
a90ef4bf
JM
21847mostlyclean-libdecnumber:
21848 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21849 r=`${PWD_COMMAND}`; export r; \
21850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21851 $(HOST_EXPORTS) \
21852 for flag in $(EXTRA_HOST_FLAGS) ; do \
21853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21854 done; \
22121df0 21855 echo "Doing mostlyclean in libdecnumber"; \
a90ef4bf 21856 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21859 "RANLIB=$${RANLIB}" \
21860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21861 mostlyclean) \
21862 || exit 1
21863
a90ef4bf 21864@endif libdecnumber
1f53ca9a 21865
a90ef4bf
JM
21866.PHONY: maybe-clean-libdecnumber clean-libdecnumber
21867maybe-clean-libdecnumber:
21868@if libdecnumber
21869maybe-clean-libdecnumber: clean-libdecnumber
1f53ca9a 21870
a90ef4bf
JM
21871clean-libdecnumber:
21872 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21873 r=`${PWD_COMMAND}`; export r; \
21874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21875 $(HOST_EXPORTS) \
21876 for flag in $(EXTRA_HOST_FLAGS) ; do \
21877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21878 done; \
22121df0 21879 echo "Doing clean in libdecnumber"; \
a90ef4bf 21880 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21883 "RANLIB=$${RANLIB}" \
21884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21885 clean) \
21886 || exit 1
21887
a90ef4bf 21888@endif libdecnumber
1f53ca9a 21889
a90ef4bf
JM
21890.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
21891maybe-distclean-libdecnumber:
21892@if libdecnumber
21893maybe-distclean-libdecnumber: distclean-libdecnumber
1f53ca9a 21894
a90ef4bf
JM
21895distclean-libdecnumber:
21896 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21897 r=`${PWD_COMMAND}`; export r; \
21898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21899 $(HOST_EXPORTS) \
21900 for flag in $(EXTRA_HOST_FLAGS) ; do \
21901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21902 done; \
22121df0 21903 echo "Doing distclean in libdecnumber"; \
a90ef4bf 21904 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21907 "RANLIB=$${RANLIB}" \
21908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21909 distclean) \
21910 || exit 1
21911
a90ef4bf 21912@endif libdecnumber
1f53ca9a 21913
a90ef4bf
JM
21914.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
21915maybe-maintainer-clean-libdecnumber:
21916@if libdecnumber
21917maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
1f53ca9a 21918
a90ef4bf
JM
21919maintainer-clean-libdecnumber:
21920 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21921 r=`${PWD_COMMAND}`; export r; \
21922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21923 $(HOST_EXPORTS) \
21924 for flag in $(EXTRA_HOST_FLAGS) ; do \
21925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21926 done; \
22121df0 21927 echo "Doing maintainer-clean in libdecnumber"; \
a90ef4bf 21928 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21931 "RANLIB=$${RANLIB}" \
21932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21933 maintainer-clean) \
21934 || exit 1
21935
a90ef4bf 21936@endif libdecnumber
1f53ca9a
AO
21937
21938
21939
a90ef4bf
JM
21940.PHONY: configure-libgui maybe-configure-libgui
21941maybe-configure-libgui:
4f0ef2d8 21942@if gcc-bootstrap
a90ef4bf 21943configure-libgui: stage_current
4f0ef2d8 21944@endif gcc-bootstrap
a90ef4bf
JM
21945@if libgui
21946maybe-configure-libgui: configure-libgui
21947configure-libgui:
0aed8855 21948 @: $(MAKE); $(unstage)
c52c6897 21949 @r=`${PWD_COMMAND}`; export r; \
4fa63067 21950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21951 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
22121df0 21952 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui; \
1f53ca9a 21953 $(HOST_EXPORTS) \
a90ef4bf
JM
21954 echo Configuring in $(HOST_SUBDIR)/libgui; \
21955 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
4fa63067 21956 case $(srcdir) in \
b00612cc 21957 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21958 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
b00612cc 21959 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 21960 esac; \
1b6c0831
L
21961 module_srcdir=libgui; \
21962 $(SHELL) \
21963 $$s/$$module_srcdir/configure \
21964 --srcdir=$${topdir}/$$module_srcdir \
4b900473 21965 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21966 --target=${target_alias} \
2a4cbe27 21967 || exit 1
a90ef4bf 21968@endif libgui
2a4cbe27 21969
a7254363
PB
21970
21971
d545f33b
PB
21972
21973
a90ef4bf
JM
21974.PHONY: all-libgui maybe-all-libgui
21975maybe-all-libgui:
4f0ef2d8 21976@if gcc-bootstrap
a90ef4bf 21977all-libgui: stage_current
4f0ef2d8 21978@endif gcc-bootstrap
a90ef4bf
JM
21979@if libgui
21980TARGET-libgui=all
21981maybe-all-libgui: all-libgui
21982all-libgui: configure-libgui
0aed8855 21983 @: $(MAKE); $(unstage)
4fa63067
NN
21984 @r=`${PWD_COMMAND}`; export r; \
21985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 21986 $(HOST_EXPORTS) \
a90ef4bf 21987 (cd $(HOST_SUBDIR)/libgui && \
b3676d82 21988 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21989 $(TARGET-libgui))
21990@endif libgui
2a4cbe27 21991
a7254363 21992
d545f33b
PB
21993
21994
a90ef4bf
JM
21995.PHONY: check-libgui maybe-check-libgui
21996maybe-check-libgui:
21997@if libgui
21998maybe-check-libgui: check-libgui
2a4cbe27 21999
a90ef4bf 22000check-libgui:
0aed8855 22001 @: $(MAKE); $(unstage)
4fa63067 22002 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22004 $(HOST_EXPORTS) \
a90ef4bf 22005 (cd $(HOST_SUBDIR)/libgui && \
b00612cc 22006 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 22007
a90ef4bf 22008@endif libgui
2a4cbe27 22009
a90ef4bf
JM
22010.PHONY: install-libgui maybe-install-libgui
22011maybe-install-libgui:
22012@if libgui
22013maybe-install-libgui: install-libgui
2a4cbe27 22014
a90ef4bf 22015install-libgui: installdirs
0aed8855 22016 @: $(MAKE); $(unstage)
4fa63067 22017 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22019 $(HOST_EXPORTS) \
a90ef4bf 22020 (cd $(HOST_SUBDIR)/libgui && \
2da12f12 22021 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 22022
a90ef4bf 22023@endif libgui
2a4cbe27 22024
a90ef4bf
JM
22025.PHONY: install-strip-libgui maybe-install-strip-libgui
22026maybe-install-strip-libgui:
22027@if libgui
22028maybe-install-strip-libgui: install-strip-libgui
9b980aa1 22029
a90ef4bf 22030install-strip-libgui: installdirs
9b980aa1
RW
22031 @: $(MAKE); $(unstage)
22032 @r=`${PWD_COMMAND}`; export r; \
22033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22034 $(HOST_EXPORTS) \
a90ef4bf 22035 (cd $(HOST_SUBDIR)/libgui && \
9b980aa1
RW
22036 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22037
a90ef4bf 22038@endif libgui
9b980aa1 22039
56a8fe78 22040# Other targets (info, dvi, pdf, etc.)
2a4cbe27 22041
a90ef4bf
JM
22042.PHONY: maybe-info-libgui info-libgui
22043maybe-info-libgui:
22044@if libgui
22045maybe-info-libgui: info-libgui
4fa63067 22046
a90ef4bf
JM
22047info-libgui: \
22048 configure-libgui
0aed8855 22049 @: $(MAKE); $(unstage)
a90ef4bf 22050 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22051 r=`${PWD_COMMAND}`; export r; \
22052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22053 $(HOST_EXPORTS) \
b813574b 22054 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22056 done; \
22121df0 22057 echo "Doing info in libgui"; \
a90ef4bf 22058 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22061 "RANLIB=$${RANLIB}" \
0c24b341 22062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22063 info) \
2a4cbe27
NN
22064 || exit 1
22065
a90ef4bf 22066@endif libgui
2a4cbe27 22067
a90ef4bf
JM
22068.PHONY: maybe-dvi-libgui dvi-libgui
22069maybe-dvi-libgui:
22070@if libgui
22071maybe-dvi-libgui: dvi-libgui
2a4cbe27 22072
a90ef4bf
JM
22073dvi-libgui: \
22074 configure-libgui
0aed8855 22075 @: $(MAKE); $(unstage)
a90ef4bf 22076 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22077 r=`${PWD_COMMAND}`; export r; \
22078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22079 $(HOST_EXPORTS) \
b813574b 22080 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22082 done; \
22121df0 22083 echo "Doing dvi in libgui"; \
a90ef4bf 22084 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22087 "RANLIB=$${RANLIB}" \
0c24b341 22088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22089 dvi) \
2a4cbe27
NN
22090 || exit 1
22091
a90ef4bf 22092@endif libgui
2a4cbe27 22093
a90ef4bf
JM
22094.PHONY: maybe-pdf-libgui pdf-libgui
22095maybe-pdf-libgui:
22096@if libgui
22097maybe-pdf-libgui: pdf-libgui
56a8fe78 22098
a90ef4bf
JM
22099pdf-libgui: \
22100 configure-libgui
56a8fe78 22101 @: $(MAKE); $(unstage)
a90ef4bf 22102 @[ -f ./libgui/Makefile ] || exit 0; \
56a8fe78
DD
22103 r=`${PWD_COMMAND}`; export r; \
22104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22105 $(HOST_EXPORTS) \
22106 for flag in $(EXTRA_HOST_FLAGS) ; do \
22107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22108 done; \
22121df0 22109 echo "Doing pdf in libgui"; \
a90ef4bf 22110 (cd $(HOST_SUBDIR)/libgui && \
56a8fe78
DD
22111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22113 "RANLIB=$${RANLIB}" \
0c24b341 22114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
22115 pdf) \
22116 || exit 1
22117
a90ef4bf 22118@endif libgui
56a8fe78 22119
a90ef4bf
JM
22120.PHONY: maybe-html-libgui html-libgui
22121maybe-html-libgui:
22122@if libgui
22123maybe-html-libgui: html-libgui
6d389afc 22124
a90ef4bf
JM
22125html-libgui: \
22126 configure-libgui
0aed8855 22127 @: $(MAKE); $(unstage)
a90ef4bf 22128 @[ -f ./libgui/Makefile ] || exit 0; \
6d389afc
MS
22129 r=`${PWD_COMMAND}`; export r; \
22130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
22131 $(HOST_EXPORTS) \
22132 for flag in $(EXTRA_HOST_FLAGS) ; do \
22133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22134 done; \
22121df0 22135 echo "Doing html in libgui"; \
a90ef4bf 22136 (cd $(HOST_SUBDIR)/libgui && \
6d389afc
MS
22137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22139 "RANLIB=$${RANLIB}" \
0c24b341 22140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
22141 html) \
22142 || exit 1
22143
a90ef4bf 22144@endif libgui
6d389afc 22145
a90ef4bf
JM
22146.PHONY: maybe-TAGS-libgui TAGS-libgui
22147maybe-TAGS-libgui:
22148@if libgui
22149maybe-TAGS-libgui: TAGS-libgui
2a4cbe27 22150
a90ef4bf
JM
22151TAGS-libgui: \
22152 configure-libgui
0aed8855 22153 @: $(MAKE); $(unstage)
a90ef4bf 22154 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22155 r=`${PWD_COMMAND}`; export r; \
22156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22157 $(HOST_EXPORTS) \
b813574b 22158 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22160 done; \
22121df0 22161 echo "Doing TAGS in libgui"; \
a90ef4bf 22162 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22165 "RANLIB=$${RANLIB}" \
0c24b341 22166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22167 TAGS) \
2a4cbe27
NN
22168 || exit 1
22169
a90ef4bf 22170@endif libgui
2a4cbe27 22171
a90ef4bf
JM
22172.PHONY: maybe-install-info-libgui install-info-libgui
22173maybe-install-info-libgui:
22174@if libgui
22175maybe-install-info-libgui: install-info-libgui
2a4cbe27 22176
a90ef4bf
JM
22177install-info-libgui: \
22178 configure-libgui \
22179 info-libgui
0aed8855 22180 @: $(MAKE); $(unstage)
a90ef4bf 22181 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22182 r=`${PWD_COMMAND}`; export r; \
22183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22184 $(HOST_EXPORTS) \
b813574b 22185 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22187 done; \
22121df0 22188 echo "Doing install-info in libgui"; \
a90ef4bf 22189 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22192 "RANLIB=$${RANLIB}" \
0c24b341 22193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22194 install-info) \
2a4cbe27
NN
22195 || exit 1
22196
a90ef4bf 22197@endif libgui
2a4cbe27 22198
a90ef4bf
JM
22199.PHONY: maybe-install-pdf-libgui install-pdf-libgui
22200maybe-install-pdf-libgui:
22201@if libgui
22202maybe-install-pdf-libgui: install-pdf-libgui
a3ca38d2 22203
a90ef4bf
JM
22204install-pdf-libgui: \
22205 configure-libgui \
22206 pdf-libgui
a3ca38d2 22207 @: $(MAKE); $(unstage)
a90ef4bf 22208 @[ -f ./libgui/Makefile ] || exit 0; \
a3ca38d2
DD
22209 r=`${PWD_COMMAND}`; export r; \
22210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22211 $(HOST_EXPORTS) \
22212 for flag in $(EXTRA_HOST_FLAGS) ; do \
22213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22214 done; \
22121df0 22215 echo "Doing install-pdf in libgui"; \
a90ef4bf 22216 (cd $(HOST_SUBDIR)/libgui && \
a3ca38d2
DD
22217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22219 "RANLIB=$${RANLIB}" \
0c24b341 22220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
22221 install-pdf) \
22222 || exit 1
22223
a90ef4bf 22224@endif libgui
a3ca38d2 22225
a90ef4bf
JM
22226.PHONY: maybe-install-html-libgui install-html-libgui
22227maybe-install-html-libgui:
22228@if libgui
22229maybe-install-html-libgui: install-html-libgui
108a6f8e 22230
a90ef4bf
JM
22231install-html-libgui: \
22232 configure-libgui \
22233 html-libgui
108a6f8e 22234 @: $(MAKE); $(unstage)
a90ef4bf 22235 @[ -f ./libgui/Makefile ] || exit 0; \
108a6f8e
CD
22236 r=`${PWD_COMMAND}`; export r; \
22237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22238 $(HOST_EXPORTS) \
22239 for flag in $(EXTRA_HOST_FLAGS) ; do \
22240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22241 done; \
22121df0 22242 echo "Doing install-html in libgui"; \
a90ef4bf 22243 (cd $(HOST_SUBDIR)/libgui && \
108a6f8e
CD
22244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22246 "RANLIB=$${RANLIB}" \
0c24b341 22247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
22248 install-html) \
22249 || exit 1
22250
a90ef4bf 22251@endif libgui
108a6f8e 22252
a90ef4bf
JM
22253.PHONY: maybe-installcheck-libgui installcheck-libgui
22254maybe-installcheck-libgui:
22255@if libgui
22256maybe-installcheck-libgui: installcheck-libgui
2a4cbe27 22257
a90ef4bf
JM
22258installcheck-libgui: \
22259 configure-libgui
0aed8855 22260 @: $(MAKE); $(unstage)
a90ef4bf 22261 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22262 r=`${PWD_COMMAND}`; export r; \
22263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22264 $(HOST_EXPORTS) \
b813574b 22265 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22267 done; \
22121df0 22268 echo "Doing installcheck in libgui"; \
a90ef4bf 22269 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22272 "RANLIB=$${RANLIB}" \
0c24b341 22273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22274 installcheck) \
2a4cbe27
NN
22275 || exit 1
22276
a90ef4bf 22277@endif libgui
2a4cbe27 22278
a90ef4bf
JM
22279.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
22280maybe-mostlyclean-libgui:
22281@if libgui
22282maybe-mostlyclean-libgui: mostlyclean-libgui
2a4cbe27 22283
a90ef4bf 22284mostlyclean-libgui:
0aed8855 22285 @: $(MAKE); $(unstage)
a90ef4bf 22286 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22287 r=`${PWD_COMMAND}`; export r; \
22288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22289 $(HOST_EXPORTS) \
b813574b 22290 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22292 done; \
22121df0 22293 echo "Doing mostlyclean in libgui"; \
a90ef4bf 22294 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22297 "RANLIB=$${RANLIB}" \
0c24b341 22298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22299 mostlyclean) \
2a4cbe27
NN
22300 || exit 1
22301
a90ef4bf 22302@endif libgui
2a4cbe27 22303
a90ef4bf
JM
22304.PHONY: maybe-clean-libgui clean-libgui
22305maybe-clean-libgui:
22306@if libgui
22307maybe-clean-libgui: clean-libgui
2a4cbe27 22308
a90ef4bf 22309clean-libgui:
0aed8855 22310 @: $(MAKE); $(unstage)
a90ef4bf 22311 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22312 r=`${PWD_COMMAND}`; export r; \
22313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22314 $(HOST_EXPORTS) \
b813574b 22315 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22317 done; \
22121df0 22318 echo "Doing clean in libgui"; \
a90ef4bf 22319 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22322 "RANLIB=$${RANLIB}" \
0c24b341 22323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22324 clean) \
2a4cbe27
NN
22325 || exit 1
22326
a90ef4bf 22327@endif libgui
2a4cbe27 22328
a90ef4bf
JM
22329.PHONY: maybe-distclean-libgui distclean-libgui
22330maybe-distclean-libgui:
22331@if libgui
22332maybe-distclean-libgui: distclean-libgui
2a4cbe27 22333
a90ef4bf 22334distclean-libgui:
0aed8855 22335 @: $(MAKE); $(unstage)
a90ef4bf 22336 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22337 r=`${PWD_COMMAND}`; export r; \
22338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22339 $(HOST_EXPORTS) \
b813574b 22340 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22342 done; \
22121df0 22343 echo "Doing distclean in libgui"; \
a90ef4bf 22344 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22347 "RANLIB=$${RANLIB}" \
0c24b341 22348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22349 distclean) \
2a4cbe27
NN
22350 || exit 1
22351
a90ef4bf 22352@endif libgui
2a4cbe27 22353
a90ef4bf
JM
22354.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
22355maybe-maintainer-clean-libgui:
22356@if libgui
22357maybe-maintainer-clean-libgui: maintainer-clean-libgui
2a4cbe27 22358
a90ef4bf 22359maintainer-clean-libgui:
0aed8855 22360 @: $(MAKE); $(unstage)
a90ef4bf 22361 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22362 r=`${PWD_COMMAND}`; export r; \
22363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22364 $(HOST_EXPORTS) \
b813574b 22365 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22367 done; \
22121df0 22368 echo "Doing maintainer-clean in libgui"; \
a90ef4bf 22369 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22372 "RANLIB=$${RANLIB}" \
0c24b341 22373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22374 maintainer-clean) \
2a4cbe27
NN
22375 || exit 1
22376
a90ef4bf 22377@endif libgui
2a4cbe27 22378
2a4cbe27 22379
a7254363 22380
a90ef4bf
JM
22381.PHONY: configure-libiberty maybe-configure-libiberty
22382maybe-configure-libiberty:
93f9b408 22383@if gcc-bootstrap
a90ef4bf 22384configure-libiberty: stage_current
93f9b408 22385@endif gcc-bootstrap
a90ef4bf
JM
22386@if libiberty
22387maybe-configure-libiberty: configure-libiberty
22388configure-libiberty:
93f9b408
ILT
22389 @r=`${PWD_COMMAND}`; export r; \
22390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22391 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 22392 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
1f53ca9a 22393 $(HOST_EXPORTS) \
a90ef4bf
JM
22394 echo Configuring in $(HOST_SUBDIR)/libiberty; \
22395 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
93f9b408
ILT
22396 case $(srcdir) in \
22397 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22398 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22399 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22400 esac; \
1b6c0831
L
22401 module_srcdir=libiberty; \
22402 $(SHELL) \
22403 $$s/$$module_srcdir/configure \
22404 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22405 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22406 --target=${target_alias} @extra_host_libiberty_configure_flags@ \
93f9b408 22407 || exit 1
a90ef4bf 22408@endif libiberty
93f9b408
ILT
22409
22410
22411
a90ef4bf
JM
22412.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
22413maybe-configure-stage1-libiberty:
22414@if libiberty-bootstrap
22415maybe-configure-stage1-libiberty: configure-stage1-libiberty
22416configure-stage1-libiberty:
93f9b408 22417 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 22418 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22419 @r=`${PWD_COMMAND}`; export r; \
22420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22421 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 22422 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
1b05fbbd 22423 $(HOST_EXPORTS) \
93f9b408 22424 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22425 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
22426 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
22427 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty; \
22428 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22429 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22430 case $(srcdir) in \
22431 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22432 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22433 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22434 esac; \
1b6c0831
L
22435 module_srcdir=libiberty; \
22436 $(SHELL) $$s/$$module_srcdir/configure \
22437 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22438 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22439 --target=${target_alias} \
22440 \
a90ef4bf
JM
22441 $(STAGE1_CONFIGURE_FLAGS) \
22442 @extra_host_libiberty_configure_flags@
22443@endif libiberty-bootstrap
93f9b408 22444
a90ef4bf
JM
22445.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
22446maybe-configure-stage2-libiberty:
22447@if libiberty-bootstrap
22448maybe-configure-stage2-libiberty: configure-stage2-libiberty
22449configure-stage2-libiberty:
93f9b408 22450 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 22451 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22452 @r=`${PWD_COMMAND}`; export r; \
22453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22454 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 22455 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22456 $(HOST_EXPORTS) \
1b05fbbd 22457 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22458 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22459 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
22460 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22461 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty; \
22462 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22463 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22464 case $(srcdir) in \
22465 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22466 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22467 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22468 esac; \
1b6c0831
L
22469 module_srcdir=libiberty; \
22470 $(SHELL) $$s/$$module_srcdir/configure \
22471 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22472 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22473 --target=${target_alias} \
22121df0 22474 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22475 $(STAGE2_CONFIGURE_FLAGS) \
22476 @extra_host_libiberty_configure_flags@
22477@endif libiberty-bootstrap
93f9b408 22478
a90ef4bf
JM
22479.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
22480maybe-configure-stage3-libiberty:
22481@if libiberty-bootstrap
22482maybe-configure-stage3-libiberty: configure-stage3-libiberty
22483configure-stage3-libiberty:
93f9b408 22484 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 22485 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22486 @r=`${PWD_COMMAND}`; export r; \
22487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22488 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 22489 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22490 $(HOST_EXPORTS) \
1b05fbbd 22491 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22492 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22493 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22494 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22495 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty; \
22496 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22497 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22498 case $(srcdir) in \
22499 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22500 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22501 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22502 esac; \
1b6c0831
L
22503 module_srcdir=libiberty; \
22504 $(SHELL) $$s/$$module_srcdir/configure \
22505 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22506 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22507 --target=${target_alias} \
22121df0 22508 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22509 $(STAGE3_CONFIGURE_FLAGS) \
22510 @extra_host_libiberty_configure_flags@
22511@endif libiberty-bootstrap
93f9b408 22512
a90ef4bf
JM
22513.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
22514maybe-configure-stage4-libiberty:
22515@if libiberty-bootstrap
22516maybe-configure-stage4-libiberty: configure-stage4-libiberty
22517configure-stage4-libiberty:
93f9b408 22518 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 22519 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22520 @r=`${PWD_COMMAND}`; export r; \
22521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22522 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 22523 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22524 $(HOST_EXPORTS) \
1b05fbbd 22525 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22526 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22527 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22528 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22529 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty; \
22530 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22531 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22532 case $(srcdir) in \
22533 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22534 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22535 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22536 esac; \
1b6c0831
L
22537 module_srcdir=libiberty; \
22538 $(SHELL) $$s/$$module_srcdir/configure \
22539 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22540 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22541 --target=${target_alias} \
22121df0 22542 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22543 $(STAGE4_CONFIGURE_FLAGS) \
22544 @extra_host_libiberty_configure_flags@
22545@endif libiberty-bootstrap
93f9b408 22546
a90ef4bf
JM
22547.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
22548maybe-configure-stageprofile-libiberty:
22549@if libiberty-bootstrap
22550maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
22551configure-stageprofile-libiberty:
93f9b408 22552 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 22553 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22554 @r=`${PWD_COMMAND}`; export r; \
22555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22556 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 22557 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22558 $(HOST_EXPORTS) \
1b05fbbd
AO
22559 $(POSTSTAGE1_HOST_EXPORTS) \
22560 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22561 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22562 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22563 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty; \
22564 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22565 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22566 case $(srcdir) in \
22567 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22568 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22569 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22570 esac; \
1b6c0831
L
22571 module_srcdir=libiberty; \
22572 $(SHELL) $$s/$$module_srcdir/configure \
22573 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22574 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22575 --target=${target_alias} \
22121df0 22576 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22577 $(STAGEprofile_CONFIGURE_FLAGS) \
22578 @extra_host_libiberty_configure_flags@
22579@endif libiberty-bootstrap
93f9b408 22580
a90ef4bf
JM
22581.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
22582maybe-configure-stagefeedback-libiberty:
22583@if libiberty-bootstrap
22584maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
22585configure-stagefeedback-libiberty:
93f9b408 22586 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 22587 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22588 @r=`${PWD_COMMAND}`; export r; \
22589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22590 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 22591 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22592 $(HOST_EXPORTS) \
1b05fbbd
AO
22593 $(POSTSTAGE1_HOST_EXPORTS) \
22594 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22595 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
22596 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22597 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty; \
22598 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22599 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22600 case $(srcdir) in \
22601 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22602 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22603 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22604 esac; \
1b6c0831
L
22605 module_srcdir=libiberty; \
22606 $(SHELL) $$s/$$module_srcdir/configure \
22607 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22608 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22609 --target=${target_alias} \
22121df0 22610 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22611 $(STAGEfeedback_CONFIGURE_FLAGS) \
22612 @extra_host_libiberty_configure_flags@
22613@endif libiberty-bootstrap
93f9b408
ILT
22614
22615
22616
22617
22618
a90ef4bf
JM
22619.PHONY: all-libiberty maybe-all-libiberty
22620maybe-all-libiberty:
93f9b408 22621@if gcc-bootstrap
a90ef4bf 22622all-libiberty: stage_current
93f9b408 22623@endif gcc-bootstrap
a90ef4bf
JM
22624@if libiberty
22625TARGET-libiberty=all
22626maybe-all-libiberty: all-libiberty
22627all-libiberty: configure-libiberty
93f9b408
ILT
22628 @r=`${PWD_COMMAND}`; export r; \
22629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22630 $(HOST_EXPORTS) \
a90ef4bf 22631 (cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22632 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22633 $(TARGET-libiberty))
22634@endif libiberty
93f9b408
ILT
22635
22636
22637
a90ef4bf
JM
22638.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
22639.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
22640maybe-all-stage1-libiberty:
22641maybe-clean-stage1-libiberty:
22642@if libiberty-bootstrap
22643maybe-all-stage1-libiberty: all-stage1-libiberty
22644all-stage1: all-stage1-libiberty
22645TARGET-stage1-libiberty = $(TARGET-libiberty)
22646all-stage1-libiberty: configure-stage1-libiberty
93f9b408
ILT
22647 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22648 @r=`${PWD_COMMAND}`; export r; \
22649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22650 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 22651 $(HOST_EXPORTS) \
a90ef4bf 22652 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22653 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22654 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 22655 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
22656 LIBCFLAGS="$(LIBCFLAGS)" \
22657 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22658 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22659 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
22660 $(EXTRA_HOST_FLAGS) \
22661 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 22662 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 22663 $(TARGET-stage1-libiberty)
93f9b408 22664
a90ef4bf
JM
22665maybe-clean-stage1-libiberty: clean-stage1-libiberty
22666clean-stage1: clean-stage1-libiberty
22667clean-stage1-libiberty:
93f9b408 22668 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 22669 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22670 else \
a90ef4bf 22671 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22672 $(MAKE) stage1-start; \
22673 fi; \
a90ef4bf 22674 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22675 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 22676 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22677@endif libiberty-bootstrap
93f9b408
ILT
22678
22679
a90ef4bf
JM
22680.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
22681.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
22682maybe-all-stage2-libiberty:
22683maybe-clean-stage2-libiberty:
22684@if libiberty-bootstrap
22685maybe-all-stage2-libiberty: all-stage2-libiberty
22686all-stage2: all-stage2-libiberty
22687TARGET-stage2-libiberty = $(TARGET-libiberty)
22688all-stage2-libiberty: configure-stage2-libiberty
93f9b408
ILT
22689 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22690 @r=`${PWD_COMMAND}`; export r; \
22691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22692 TFLAGS="$(STAGE2_TFLAGS)"; \
93f9b408 22693 $(HOST_EXPORTS) \
1f53ca9a 22694 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22695 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22696 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22697 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 22698 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
22699 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22700 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22701 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22702 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22703 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22704 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 22705 $(TARGET-stage2-libiberty)
93f9b408 22706
a90ef4bf
JM
22707maybe-clean-stage2-libiberty: clean-stage2-libiberty
22708clean-stage2: clean-stage2-libiberty
22709clean-stage2-libiberty:
93f9b408 22710 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 22711 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22712 else \
a90ef4bf 22713 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22714 $(MAKE) stage2-start; \
22715 fi; \
a90ef4bf 22716 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22717 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22718@endif libiberty-bootstrap
93f9b408
ILT
22719
22720
a90ef4bf
JM
22721.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
22722.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
22723maybe-all-stage3-libiberty:
22724maybe-clean-stage3-libiberty:
22725@if libiberty-bootstrap
22726maybe-all-stage3-libiberty: all-stage3-libiberty
22727all-stage3: all-stage3-libiberty
22728TARGET-stage3-libiberty = $(TARGET-libiberty)
22729all-stage3-libiberty: configure-stage3-libiberty
93f9b408
ILT
22730 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22731 @r=`${PWD_COMMAND}`; export r; \
22732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22733 TFLAGS="$(STAGE3_TFLAGS)"; \
93f9b408 22734 $(HOST_EXPORTS) \
1f53ca9a 22735 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22736 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22737 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22738 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 22739 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
22740 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22741 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22742 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22743 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22744 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22745 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 22746 $(TARGET-stage3-libiberty)
93f9b408 22747
a90ef4bf
JM
22748maybe-clean-stage3-libiberty: clean-stage3-libiberty
22749clean-stage3: clean-stage3-libiberty
22750clean-stage3-libiberty:
93f9b408 22751 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 22752 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22753 else \
a90ef4bf 22754 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22755 $(MAKE) stage3-start; \
22756 fi; \
a90ef4bf 22757 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22758 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22759@endif libiberty-bootstrap
93f9b408
ILT
22760
22761
a90ef4bf
JM
22762.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
22763.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
22764maybe-all-stage4-libiberty:
22765maybe-clean-stage4-libiberty:
22766@if libiberty-bootstrap
22767maybe-all-stage4-libiberty: all-stage4-libiberty
22768all-stage4: all-stage4-libiberty
22769TARGET-stage4-libiberty = $(TARGET-libiberty)
22770all-stage4-libiberty: configure-stage4-libiberty
93f9b408
ILT
22771 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22772 @r=`${PWD_COMMAND}`; export r; \
22773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22774 TFLAGS="$(STAGE4_TFLAGS)"; \
93f9b408 22775 $(HOST_EXPORTS) \
1f53ca9a 22776 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22777 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22778 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22779 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 22780 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
93f9b408 22781 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
22782 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22783 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22784 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22785 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22786 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 22787 $(TARGET-stage4-libiberty)
93f9b408 22788
a90ef4bf
JM
22789maybe-clean-stage4-libiberty: clean-stage4-libiberty
22790clean-stage4: clean-stage4-libiberty
22791clean-stage4-libiberty:
93f9b408 22792 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 22793 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22794 else \
a90ef4bf 22795 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22796 $(MAKE) stage4-start; \
22797 fi; \
a90ef4bf 22798 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22799 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22800@endif libiberty-bootstrap
93f9b408
ILT
22801
22802
a90ef4bf
JM
22803.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
22804.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
22805maybe-all-stageprofile-libiberty:
22806maybe-clean-stageprofile-libiberty:
22807@if libiberty-bootstrap
22808maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
22809all-stageprofile: all-stageprofile-libiberty
22810TARGET-stageprofile-libiberty = $(TARGET-libiberty)
22811all-stageprofile-libiberty: configure-stageprofile-libiberty
93f9b408
ILT
22812 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22813 @r=`${PWD_COMMAND}`; export r; \
22814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22815 TFLAGS="$(STAGEprofile_TFLAGS)"; \
93f9b408 22816 $(HOST_EXPORTS) \
1f53ca9a 22817 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22818 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22819 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22820 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 22821 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
22822 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
22823 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22824 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22825 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22826 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22827 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 22828 $(TARGET-stageprofile-libiberty)
93f9b408 22829
a90ef4bf
JM
22830maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
22831clean-stageprofile: clean-stageprofile-libiberty
22832clean-stageprofile-libiberty:
93f9b408 22833 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 22834 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22835 else \
a90ef4bf 22836 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22837 $(MAKE) stageprofile-start; \
22838 fi; \
a90ef4bf 22839 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22840 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22841@endif libiberty-bootstrap
93f9b408
ILT
22842
22843
a90ef4bf
JM
22844.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
22845.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
22846maybe-all-stagefeedback-libiberty:
22847maybe-clean-stagefeedback-libiberty:
22848@if libiberty-bootstrap
22849maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
22850all-stagefeedback: all-stagefeedback-libiberty
22851TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
22852all-stagefeedback-libiberty: configure-stagefeedback-libiberty
93f9b408
ILT
22853 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
22854 @r=`${PWD_COMMAND}`; export r; \
22855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22856 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
93f9b408 22857 $(HOST_EXPORTS) \
1f53ca9a 22858 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22859 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22860 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22861 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 22862 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
22863 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
22864 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22865 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22866 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22867 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22868 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 22869 $(TARGET-stagefeedback-libiberty)
93f9b408 22870
a90ef4bf
JM
22871maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
22872clean-stagefeedback: clean-stagefeedback-libiberty
22873clean-stagefeedback-libiberty:
93f9b408 22874 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 22875 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22876 else \
a90ef4bf 22877 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22878 $(MAKE) stagefeedback-start; \
22879 fi; \
a90ef4bf 22880 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22881 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22882@endif libiberty-bootstrap
93f9b408
ILT
22883
22884
22885
22886
22887
a90ef4bf
JM
22888.PHONY: check-libiberty maybe-check-libiberty
22889maybe-check-libiberty:
22890@if libiberty
22891maybe-check-libiberty: check-libiberty
93f9b408 22892
a90ef4bf 22893check-libiberty:
93f9b408
ILT
22894 @: $(MAKE); $(unstage)
22895 @r=`${PWD_COMMAND}`; export r; \
22896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22897 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 22898 (cd $(HOST_SUBDIR)/libiberty && \
f91ca6bc 22899 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
93f9b408 22900
a90ef4bf 22901@endif libiberty
93f9b408 22902
a90ef4bf
JM
22903.PHONY: install-libiberty maybe-install-libiberty
22904maybe-install-libiberty:
22905@if libiberty
22906maybe-install-libiberty: install-libiberty
93f9b408 22907
a90ef4bf 22908install-libiberty: installdirs
93f9b408
ILT
22909 @: $(MAKE); $(unstage)
22910 @r=`${PWD_COMMAND}`; export r; \
22911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22912 $(HOST_EXPORTS) \
a90ef4bf 22913 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22914 $(MAKE) $(FLAGS_TO_PASS) install)
22915
a90ef4bf 22916@endif libiberty
93f9b408 22917
a90ef4bf
JM
22918.PHONY: install-strip-libiberty maybe-install-strip-libiberty
22919maybe-install-strip-libiberty:
22920@if libiberty
22921maybe-install-strip-libiberty: install-strip-libiberty
9b980aa1 22922
a90ef4bf 22923install-strip-libiberty: installdirs
9b980aa1
RW
22924 @: $(MAKE); $(unstage)
22925 @r=`${PWD_COMMAND}`; export r; \
22926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22927 $(HOST_EXPORTS) \
a90ef4bf 22928 (cd $(HOST_SUBDIR)/libiberty && \
9b980aa1
RW
22929 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22930
a90ef4bf 22931@endif libiberty
9b980aa1 22932
93f9b408
ILT
22933# Other targets (info, dvi, pdf, etc.)
22934
a90ef4bf
JM
22935.PHONY: maybe-info-libiberty info-libiberty
22936maybe-info-libiberty:
22937@if libiberty
22938maybe-info-libiberty: info-libiberty
93f9b408 22939
a90ef4bf
JM
22940info-libiberty: \
22941 configure-libiberty
22942 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22943 r=`${PWD_COMMAND}`; export r; \
22944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22945 $(HOST_EXPORTS) \
22946 for flag in $(EXTRA_HOST_FLAGS) ; do \
22947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22948 done; \
22121df0 22949 echo "Doing info in libiberty"; \
a90ef4bf 22950 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22953 "RANLIB=$${RANLIB}" \
22954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22955 info) \
22956 || exit 1
22957
a90ef4bf 22958@endif libiberty
93f9b408 22959
a90ef4bf
JM
22960.PHONY: maybe-dvi-libiberty dvi-libiberty
22961maybe-dvi-libiberty:
22962@if libiberty
22963maybe-dvi-libiberty: dvi-libiberty
93f9b408 22964
a90ef4bf
JM
22965dvi-libiberty: \
22966 configure-libiberty
22967 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22968 r=`${PWD_COMMAND}`; export r; \
22969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22970 $(HOST_EXPORTS) \
22971 for flag in $(EXTRA_HOST_FLAGS) ; do \
22972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22973 done; \
22121df0 22974 echo "Doing dvi in libiberty"; \
a90ef4bf 22975 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
22976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22978 "RANLIB=$${RANLIB}" \
22979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22980 dvi) \
22981 || exit 1
22982
a90ef4bf 22983@endif libiberty
93f9b408 22984
a90ef4bf
JM
22985.PHONY: maybe-pdf-libiberty pdf-libiberty
22986maybe-pdf-libiberty:
22987@if libiberty
22988maybe-pdf-libiberty: pdf-libiberty
93f9b408 22989
a90ef4bf
JM
22990pdf-libiberty: \
22991 configure-libiberty
22992 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22993 r=`${PWD_COMMAND}`; export r; \
22994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22995 $(HOST_EXPORTS) \
22996 for flag in $(EXTRA_HOST_FLAGS) ; do \
22997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22998 done; \
22121df0 22999 echo "Doing pdf in libiberty"; \
a90ef4bf 23000 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23003 "RANLIB=$${RANLIB}" \
23004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23005 pdf) \
23006 || exit 1
23007
a90ef4bf 23008@endif libiberty
93f9b408 23009
a90ef4bf
JM
23010.PHONY: maybe-html-libiberty html-libiberty
23011maybe-html-libiberty:
23012@if libiberty
23013maybe-html-libiberty: html-libiberty
93f9b408 23014
a90ef4bf
JM
23015html-libiberty: \
23016 configure-libiberty
23017 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23018 r=`${PWD_COMMAND}`; export r; \
23019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23020 $(HOST_EXPORTS) \
23021 for flag in $(EXTRA_HOST_FLAGS) ; do \
23022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23023 done; \
22121df0 23024 echo "Doing html in libiberty"; \
a90ef4bf 23025 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23028 "RANLIB=$${RANLIB}" \
23029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23030 html) \
23031 || exit 1
23032
a90ef4bf 23033@endif libiberty
93f9b408 23034
a90ef4bf
JM
23035.PHONY: maybe-TAGS-libiberty TAGS-libiberty
23036maybe-TAGS-libiberty:
23037@if libiberty
23038maybe-TAGS-libiberty: TAGS-libiberty
93f9b408 23039
a90ef4bf
JM
23040TAGS-libiberty: \
23041 configure-libiberty
23042 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23043 r=`${PWD_COMMAND}`; export r; \
23044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23045 $(HOST_EXPORTS) \
23046 for flag in $(EXTRA_HOST_FLAGS) ; do \
23047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23048 done; \
22121df0 23049 echo "Doing TAGS in libiberty"; \
a90ef4bf 23050 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23053 "RANLIB=$${RANLIB}" \
23054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23055 TAGS) \
23056 || exit 1
23057
a90ef4bf 23058@endif libiberty
93f9b408 23059
a90ef4bf
JM
23060.PHONY: maybe-install-info-libiberty install-info-libiberty
23061maybe-install-info-libiberty:
23062@if libiberty
23063maybe-install-info-libiberty: install-info-libiberty
93f9b408 23064
a90ef4bf
JM
23065install-info-libiberty: \
23066 configure-libiberty \
23067 info-libiberty
23068 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23069 r=`${PWD_COMMAND}`; export r; \
23070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23071 $(HOST_EXPORTS) \
23072 for flag in $(EXTRA_HOST_FLAGS) ; do \
23073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23074 done; \
22121df0 23075 echo "Doing install-info in libiberty"; \
a90ef4bf 23076 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23079 "RANLIB=$${RANLIB}" \
23080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23081 install-info) \
23082 || exit 1
23083
a90ef4bf 23084@endif libiberty
93f9b408 23085
a90ef4bf
JM
23086.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
23087maybe-install-pdf-libiberty:
23088@if libiberty
23089maybe-install-pdf-libiberty: install-pdf-libiberty
93f9b408 23090
a90ef4bf
JM
23091install-pdf-libiberty: \
23092 configure-libiberty \
23093 pdf-libiberty
23094 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23095 r=`${PWD_COMMAND}`; export r; \
23096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23097 $(HOST_EXPORTS) \
23098 for flag in $(EXTRA_HOST_FLAGS) ; do \
23099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23100 done; \
22121df0 23101 echo "Doing install-pdf in libiberty"; \
a90ef4bf 23102 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23105 "RANLIB=$${RANLIB}" \
23106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23107 install-pdf) \
23108 || exit 1
23109
a90ef4bf 23110@endif libiberty
93f9b408 23111
a90ef4bf
JM
23112.PHONY: maybe-install-html-libiberty install-html-libiberty
23113maybe-install-html-libiberty:
23114@if libiberty
23115maybe-install-html-libiberty: install-html-libiberty
93f9b408 23116
a90ef4bf
JM
23117install-html-libiberty: \
23118 configure-libiberty \
23119 html-libiberty
23120 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23121 r=`${PWD_COMMAND}`; export r; \
23122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23123 $(HOST_EXPORTS) \
23124 for flag in $(EXTRA_HOST_FLAGS) ; do \
23125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23126 done; \
22121df0 23127 echo "Doing install-html in libiberty"; \
a90ef4bf 23128 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23131 "RANLIB=$${RANLIB}" \
23132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23133 install-html) \
23134 || exit 1
23135
a90ef4bf 23136@endif libiberty
93f9b408 23137
a90ef4bf
JM
23138.PHONY: maybe-installcheck-libiberty installcheck-libiberty
23139maybe-installcheck-libiberty:
23140@if libiberty
23141maybe-installcheck-libiberty: installcheck-libiberty
93f9b408 23142
a90ef4bf
JM
23143installcheck-libiberty: \
23144 configure-libiberty
23145 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23146 r=`${PWD_COMMAND}`; export r; \
23147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23148 $(HOST_EXPORTS) \
23149 for flag in $(EXTRA_HOST_FLAGS) ; do \
23150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23151 done; \
22121df0 23152 echo "Doing installcheck in libiberty"; \
a90ef4bf 23153 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23156 "RANLIB=$${RANLIB}" \
23157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23158 installcheck) \
23159 || exit 1
23160
a90ef4bf 23161@endif libiberty
93f9b408 23162
a90ef4bf
JM
23163.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
23164maybe-mostlyclean-libiberty:
23165@if libiberty
23166maybe-mostlyclean-libiberty: mostlyclean-libiberty
93f9b408 23167
a90ef4bf
JM
23168mostlyclean-libiberty:
23169 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23170 r=`${PWD_COMMAND}`; export r; \
23171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23172 $(HOST_EXPORTS) \
23173 for flag in $(EXTRA_HOST_FLAGS) ; do \
23174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23175 done; \
22121df0 23176 echo "Doing mostlyclean in libiberty"; \
a90ef4bf 23177 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23180 "RANLIB=$${RANLIB}" \
23181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23182 mostlyclean) \
23183 || exit 1
23184
a90ef4bf 23185@endif libiberty
93f9b408 23186
a90ef4bf
JM
23187.PHONY: maybe-clean-libiberty clean-libiberty
23188maybe-clean-libiberty:
23189@if libiberty
23190maybe-clean-libiberty: clean-libiberty
93f9b408 23191
a90ef4bf
JM
23192clean-libiberty:
23193 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23194 r=`${PWD_COMMAND}`; export r; \
23195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23196 $(HOST_EXPORTS) \
23197 for flag in $(EXTRA_HOST_FLAGS) ; do \
23198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23199 done; \
22121df0 23200 echo "Doing clean in libiberty"; \
a90ef4bf 23201 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23204 "RANLIB=$${RANLIB}" \
23205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23206 clean) \
23207 || exit 1
23208
a90ef4bf 23209@endif libiberty
93f9b408 23210
a90ef4bf
JM
23211.PHONY: maybe-distclean-libiberty distclean-libiberty
23212maybe-distclean-libiberty:
23213@if libiberty
23214maybe-distclean-libiberty: distclean-libiberty
93f9b408 23215
a90ef4bf
JM
23216distclean-libiberty:
23217 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23218 r=`${PWD_COMMAND}`; export r; \
23219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23220 $(HOST_EXPORTS) \
23221 for flag in $(EXTRA_HOST_FLAGS) ; do \
23222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23223 done; \
22121df0 23224 echo "Doing distclean in libiberty"; \
a90ef4bf 23225 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23228 "RANLIB=$${RANLIB}" \
23229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23230 distclean) \
23231 || exit 1
23232
a90ef4bf 23233@endif libiberty
93f9b408 23234
a90ef4bf
JM
23235.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
23236maybe-maintainer-clean-libiberty:
23237@if libiberty
23238maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
93f9b408 23239
a90ef4bf
JM
23240maintainer-clean-libiberty:
23241 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23242 r=`${PWD_COMMAND}`; export r; \
23243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23244 $(HOST_EXPORTS) \
23245 for flag in $(EXTRA_HOST_FLAGS) ; do \
23246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23247 done; \
22121df0 23248 echo "Doing maintainer-clean in libiberty"; \
a90ef4bf 23249 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23252 "RANLIB=$${RANLIB}" \
23253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23254 maintainer-clean) \
23255 || exit 1
23256
a90ef4bf 23257@endif libiberty
93f9b408
ILT
23258
23259
23260
1b6c0831
L
23261.PHONY: configure-libiberty-linker-plugin maybe-configure-libiberty-linker-plugin
23262maybe-configure-libiberty-linker-plugin:
23263@if gcc-bootstrap
23264configure-libiberty-linker-plugin: stage_current
23265@endif gcc-bootstrap
23266@if libiberty-linker-plugin
23267maybe-configure-libiberty-linker-plugin: configure-libiberty-linker-plugin
23268configure-libiberty-linker-plugin:
23269 @r=`${PWD_COMMAND}`; export r; \
23270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23271 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
22121df0 23272 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23273 $(HOST_EXPORTS) \
23274 echo Configuring in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23275 cd "$(HOST_SUBDIR)/libiberty-linker-plugin" || exit 1; \
23276 case $(srcdir) in \
23277 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23278 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23279 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23280 esac; \
23281 module_srcdir=libiberty; \
23282 $(SHELL) \
23283 $$s/$$module_srcdir/configure \
23284 --srcdir=$${topdir}/$$module_srcdir \
23285 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23286 --target=${target_alias} @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
23287 || exit 1
23288@endif libiberty-linker-plugin
23289
23290
23291
23292.PHONY: configure-stage1-libiberty-linker-plugin maybe-configure-stage1-libiberty-linker-plugin
23293maybe-configure-stage1-libiberty-linker-plugin:
23294@if libiberty-linker-plugin-bootstrap
23295maybe-configure-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23296configure-stage1-libiberty-linker-plugin:
23297 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23298 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23299 @r=`${PWD_COMMAND}`; export r; \
23300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23301 TFLAGS="$(STAGE1_TFLAGS)"; \
23302 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23303 $(HOST_EXPORTS) \
23304 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
23305 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
23306 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
23307 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23308 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23309 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23310 case $(srcdir) in \
23311 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23312 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23313 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23314 esac; \
23315 module_srcdir=libiberty; \
23316 $(SHELL) $$s/$$module_srcdir/configure \
23317 --srcdir=$${topdir}/$$module_srcdir \
23318 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23319 --target=${target_alias} \
23320 \
23321 $(STAGE1_CONFIGURE_FLAGS) \
23322 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23323@endif libiberty-linker-plugin-bootstrap
23324
23325.PHONY: configure-stage2-libiberty-linker-plugin maybe-configure-stage2-libiberty-linker-plugin
23326maybe-configure-stage2-libiberty-linker-plugin:
23327@if libiberty-linker-plugin-bootstrap
23328maybe-configure-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23329configure-stage2-libiberty-linker-plugin:
23330 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23331 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23332 @r=`${PWD_COMMAND}`; export r; \
23333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23334 TFLAGS="$(STAGE2_TFLAGS)"; \
23335 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23336 $(HOST_EXPORTS) \
23337 $(POSTSTAGE1_HOST_EXPORTS) \
23338 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
23339 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
23340 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23341 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23342 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23343 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23344 case $(srcdir) in \
23345 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23346 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23347 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23348 esac; \
23349 module_srcdir=libiberty; \
23350 $(SHELL) $$s/$$module_srcdir/configure \
23351 --srcdir=$${topdir}/$$module_srcdir \
23352 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23353 --target=${target_alias} \
22121df0 23354 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23355 $(STAGE2_CONFIGURE_FLAGS) \
23356 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23357@endif libiberty-linker-plugin-bootstrap
23358
23359.PHONY: configure-stage3-libiberty-linker-plugin maybe-configure-stage3-libiberty-linker-plugin
23360maybe-configure-stage3-libiberty-linker-plugin:
23361@if libiberty-linker-plugin-bootstrap
23362maybe-configure-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23363configure-stage3-libiberty-linker-plugin:
23364 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23365 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23366 @r=`${PWD_COMMAND}`; export r; \
23367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23368 TFLAGS="$(STAGE3_TFLAGS)"; \
23369 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23370 $(HOST_EXPORTS) \
23371 $(POSTSTAGE1_HOST_EXPORTS) \
23372 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
23373 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
23374 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23375 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23376 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23377 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23378 case $(srcdir) in \
23379 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23380 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23381 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23382 esac; \
23383 module_srcdir=libiberty; \
23384 $(SHELL) $$s/$$module_srcdir/configure \
23385 --srcdir=$${topdir}/$$module_srcdir \
23386 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23387 --target=${target_alias} \
22121df0 23388 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23389 $(STAGE3_CONFIGURE_FLAGS) \
23390 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23391@endif libiberty-linker-plugin-bootstrap
23392
23393.PHONY: configure-stage4-libiberty-linker-plugin maybe-configure-stage4-libiberty-linker-plugin
23394maybe-configure-stage4-libiberty-linker-plugin:
23395@if libiberty-linker-plugin-bootstrap
23396maybe-configure-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23397configure-stage4-libiberty-linker-plugin:
23398 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23399 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23400 @r=`${PWD_COMMAND}`; export r; \
23401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23402 TFLAGS="$(STAGE4_TFLAGS)"; \
23403 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23404 $(HOST_EXPORTS) \
23405 $(POSTSTAGE1_HOST_EXPORTS) \
23406 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
23407 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
23408 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23409 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23410 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23411 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23412 case $(srcdir) in \
23413 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23414 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23415 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23416 esac; \
23417 module_srcdir=libiberty; \
23418 $(SHELL) $$s/$$module_srcdir/configure \
23419 --srcdir=$${topdir}/$$module_srcdir \
23420 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23421 --target=${target_alias} \
22121df0 23422 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23423 $(STAGE4_CONFIGURE_FLAGS) \
23424 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23425@endif libiberty-linker-plugin-bootstrap
23426
23427.PHONY: configure-stageprofile-libiberty-linker-plugin maybe-configure-stageprofile-libiberty-linker-plugin
23428maybe-configure-stageprofile-libiberty-linker-plugin:
23429@if libiberty-linker-plugin-bootstrap
23430maybe-configure-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23431configure-stageprofile-libiberty-linker-plugin:
23432 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23433 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23434 @r=`${PWD_COMMAND}`; export r; \
23435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23436 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23437 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23438 $(HOST_EXPORTS) \
23439 $(POSTSTAGE1_HOST_EXPORTS) \
23440 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
23441 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
23442 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23443 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23444 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23445 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23446 case $(srcdir) in \
23447 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23448 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23449 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23450 esac; \
23451 module_srcdir=libiberty; \
23452 $(SHELL) $$s/$$module_srcdir/configure \
23453 --srcdir=$${topdir}/$$module_srcdir \
23454 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23455 --target=${target_alias} \
22121df0 23456 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23457 $(STAGEprofile_CONFIGURE_FLAGS) \
23458 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23459@endif libiberty-linker-plugin-bootstrap
23460
23461.PHONY: configure-stagefeedback-libiberty-linker-plugin maybe-configure-stagefeedback-libiberty-linker-plugin
23462maybe-configure-stagefeedback-libiberty-linker-plugin:
23463@if libiberty-linker-plugin-bootstrap
23464maybe-configure-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23465configure-stagefeedback-libiberty-linker-plugin:
23466 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23467 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23468 @r=`${PWD_COMMAND}`; export r; \
23469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23470 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23471 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23472 $(HOST_EXPORTS) \
23473 $(POSTSTAGE1_HOST_EXPORTS) \
23474 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
23475 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
23476 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23477 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23478 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23479 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23480 case $(srcdir) in \
23481 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23482 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23483 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23484 esac; \
23485 module_srcdir=libiberty; \
23486 $(SHELL) $$s/$$module_srcdir/configure \
23487 --srcdir=$${topdir}/$$module_srcdir \
23488 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23489 --target=${target_alias} \
22121df0 23490 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23491 $(STAGEfeedback_CONFIGURE_FLAGS) \
23492 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23493@endif libiberty-linker-plugin-bootstrap
23494
23495
23496
23497
23498
23499.PHONY: all-libiberty-linker-plugin maybe-all-libiberty-linker-plugin
23500maybe-all-libiberty-linker-plugin:
23501@if gcc-bootstrap
23502all-libiberty-linker-plugin: stage_current
23503@endif gcc-bootstrap
23504@if libiberty-linker-plugin
23505TARGET-libiberty-linker-plugin=all
23506maybe-all-libiberty-linker-plugin: all-libiberty-linker-plugin
23507all-libiberty-linker-plugin: configure-libiberty-linker-plugin
23508 @r=`${PWD_COMMAND}`; export r; \
23509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23510 $(HOST_EXPORTS) \
23511 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23512 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23513 $(TARGET-libiberty-linker-plugin))
23514@endif libiberty-linker-plugin
23515
23516
23517
23518.PHONY: all-stage1-libiberty-linker-plugin maybe-all-stage1-libiberty-linker-plugin
23519.PHONY: clean-stage1-libiberty-linker-plugin maybe-clean-stage1-libiberty-linker-plugin
23520maybe-all-stage1-libiberty-linker-plugin:
23521maybe-clean-stage1-libiberty-linker-plugin:
23522@if libiberty-linker-plugin-bootstrap
23523maybe-all-stage1-libiberty-linker-plugin: all-stage1-libiberty-linker-plugin
23524all-stage1: all-stage1-libiberty-linker-plugin
23525TARGET-stage1-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23526all-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23527 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23528 @r=`${PWD_COMMAND}`; export r; \
23529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23530 TFLAGS="$(STAGE1_TFLAGS)"; \
23531 $(HOST_EXPORTS) \
23532 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23533 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23534 CFLAGS="$(STAGE1_CFLAGS)" \
23535 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
23536 LIBCFLAGS="$(LIBCFLAGS)" \
23537 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23538 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23539 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23540 $(EXTRA_HOST_FLAGS) \
23541 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23542 TFLAGS="$(STAGE1_TFLAGS)" \
23543 $(TARGET-stage1-libiberty-linker-plugin)
23544
23545maybe-clean-stage1-libiberty-linker-plugin: clean-stage1-libiberty-linker-plugin
23546clean-stage1: clean-stage1-libiberty-linker-plugin
23547clean-stage1-libiberty-linker-plugin:
23548 @if [ $(current_stage) = stage1 ]; then \
23549 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23550 else \
23551 [ -f $(HOST_SUBDIR)/stage1-libiberty-linker-plugin/Makefile ] || exit 0; \
23552 $(MAKE) stage1-start; \
23553 fi; \
23554 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23555 $(MAKE) $(EXTRA_HOST_FLAGS) \
23556 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23557@endif libiberty-linker-plugin-bootstrap
23558
23559
23560.PHONY: all-stage2-libiberty-linker-plugin maybe-all-stage2-libiberty-linker-plugin
23561.PHONY: clean-stage2-libiberty-linker-plugin maybe-clean-stage2-libiberty-linker-plugin
23562maybe-all-stage2-libiberty-linker-plugin:
23563maybe-clean-stage2-libiberty-linker-plugin:
23564@if libiberty-linker-plugin-bootstrap
23565maybe-all-stage2-libiberty-linker-plugin: all-stage2-libiberty-linker-plugin
23566all-stage2: all-stage2-libiberty-linker-plugin
23567TARGET-stage2-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23568all-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23569 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23570 @r=`${PWD_COMMAND}`; export r; \
23571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23572 TFLAGS="$(STAGE2_TFLAGS)"; \
23573 $(HOST_EXPORTS) \
23574 $(POSTSTAGE1_HOST_EXPORTS) \
23575 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23576 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23577 CFLAGS="$(STAGE2_CFLAGS)" \
23578 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
23579 LIBCFLAGS="$(STAGE2_CFLAGS)" \
23580 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23581 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23582 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23583 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23584 TFLAGS="$(STAGE2_TFLAGS)" \
23585 $(TARGET-stage2-libiberty-linker-plugin)
23586
23587maybe-clean-stage2-libiberty-linker-plugin: clean-stage2-libiberty-linker-plugin
23588clean-stage2: clean-stage2-libiberty-linker-plugin
23589clean-stage2-libiberty-linker-plugin:
23590 @if [ $(current_stage) = stage2 ]; then \
23591 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23592 else \
23593 [ -f $(HOST_SUBDIR)/stage2-libiberty-linker-plugin/Makefile ] || exit 0; \
23594 $(MAKE) stage2-start; \
23595 fi; \
23596 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23597 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23598@endif libiberty-linker-plugin-bootstrap
23599
23600
23601.PHONY: all-stage3-libiberty-linker-plugin maybe-all-stage3-libiberty-linker-plugin
23602.PHONY: clean-stage3-libiberty-linker-plugin maybe-clean-stage3-libiberty-linker-plugin
23603maybe-all-stage3-libiberty-linker-plugin:
23604maybe-clean-stage3-libiberty-linker-plugin:
23605@if libiberty-linker-plugin-bootstrap
23606maybe-all-stage3-libiberty-linker-plugin: all-stage3-libiberty-linker-plugin
23607all-stage3: all-stage3-libiberty-linker-plugin
23608TARGET-stage3-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23609all-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23610 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23611 @r=`${PWD_COMMAND}`; export r; \
23612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23613 TFLAGS="$(STAGE3_TFLAGS)"; \
23614 $(HOST_EXPORTS) \
23615 $(POSTSTAGE1_HOST_EXPORTS) \
23616 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23617 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23618 CFLAGS="$(STAGE3_CFLAGS)" \
23619 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
23620 LIBCFLAGS="$(STAGE3_CFLAGS)" \
23621 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23622 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23623 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23624 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23625 TFLAGS="$(STAGE3_TFLAGS)" \
23626 $(TARGET-stage3-libiberty-linker-plugin)
23627
23628maybe-clean-stage3-libiberty-linker-plugin: clean-stage3-libiberty-linker-plugin
23629clean-stage3: clean-stage3-libiberty-linker-plugin
23630clean-stage3-libiberty-linker-plugin:
23631 @if [ $(current_stage) = stage3 ]; then \
23632 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23633 else \
23634 [ -f $(HOST_SUBDIR)/stage3-libiberty-linker-plugin/Makefile ] || exit 0; \
23635 $(MAKE) stage3-start; \
23636 fi; \
23637 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23638 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23639@endif libiberty-linker-plugin-bootstrap
23640
23641
23642.PHONY: all-stage4-libiberty-linker-plugin maybe-all-stage4-libiberty-linker-plugin
23643.PHONY: clean-stage4-libiberty-linker-plugin maybe-clean-stage4-libiberty-linker-plugin
23644maybe-all-stage4-libiberty-linker-plugin:
23645maybe-clean-stage4-libiberty-linker-plugin:
23646@if libiberty-linker-plugin-bootstrap
23647maybe-all-stage4-libiberty-linker-plugin: all-stage4-libiberty-linker-plugin
23648all-stage4: all-stage4-libiberty-linker-plugin
23649TARGET-stage4-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23650all-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23651 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23652 @r=`${PWD_COMMAND}`; export r; \
23653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23654 TFLAGS="$(STAGE4_TFLAGS)"; \
23655 $(HOST_EXPORTS) \
23656 $(POSTSTAGE1_HOST_EXPORTS) \
23657 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23658 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23659 CFLAGS="$(STAGE4_CFLAGS)" \
23660 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
23661 LIBCFLAGS="$(STAGE4_CFLAGS)" \
23662 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23663 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23664 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23665 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23666 TFLAGS="$(STAGE4_TFLAGS)" \
23667 $(TARGET-stage4-libiberty-linker-plugin)
23668
23669maybe-clean-stage4-libiberty-linker-plugin: clean-stage4-libiberty-linker-plugin
23670clean-stage4: clean-stage4-libiberty-linker-plugin
23671clean-stage4-libiberty-linker-plugin:
23672 @if [ $(current_stage) = stage4 ]; then \
23673 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23674 else \
23675 [ -f $(HOST_SUBDIR)/stage4-libiberty-linker-plugin/Makefile ] || exit 0; \
23676 $(MAKE) stage4-start; \
23677 fi; \
23678 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23679 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23680@endif libiberty-linker-plugin-bootstrap
23681
23682
23683.PHONY: all-stageprofile-libiberty-linker-plugin maybe-all-stageprofile-libiberty-linker-plugin
23684.PHONY: clean-stageprofile-libiberty-linker-plugin maybe-clean-stageprofile-libiberty-linker-plugin
23685maybe-all-stageprofile-libiberty-linker-plugin:
23686maybe-clean-stageprofile-libiberty-linker-plugin:
23687@if libiberty-linker-plugin-bootstrap
23688maybe-all-stageprofile-libiberty-linker-plugin: all-stageprofile-libiberty-linker-plugin
23689all-stageprofile: all-stageprofile-libiberty-linker-plugin
23690TARGET-stageprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23691all-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23692 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23693 @r=`${PWD_COMMAND}`; export r; \
23694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23695 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23696 $(HOST_EXPORTS) \
23697 $(POSTSTAGE1_HOST_EXPORTS) \
23698 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23699 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23700 CFLAGS="$(STAGEprofile_CFLAGS)" \
23701 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
23702 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23703 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23704 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23705 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23706 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23707 TFLAGS="$(STAGEprofile_TFLAGS)" \
23708 $(TARGET-stageprofile-libiberty-linker-plugin)
23709
23710maybe-clean-stageprofile-libiberty-linker-plugin: clean-stageprofile-libiberty-linker-plugin
23711clean-stageprofile: clean-stageprofile-libiberty-linker-plugin
23712clean-stageprofile-libiberty-linker-plugin:
23713 @if [ $(current_stage) = stageprofile ]; then \
23714 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23715 else \
23716 [ -f $(HOST_SUBDIR)/stageprofile-libiberty-linker-plugin/Makefile ] || exit 0; \
23717 $(MAKE) stageprofile-start; \
23718 fi; \
23719 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23720 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23721@endif libiberty-linker-plugin-bootstrap
23722
23723
23724.PHONY: all-stagefeedback-libiberty-linker-plugin maybe-all-stagefeedback-libiberty-linker-plugin
23725.PHONY: clean-stagefeedback-libiberty-linker-plugin maybe-clean-stagefeedback-libiberty-linker-plugin
23726maybe-all-stagefeedback-libiberty-linker-plugin:
23727maybe-clean-stagefeedback-libiberty-linker-plugin:
23728@if libiberty-linker-plugin-bootstrap
23729maybe-all-stagefeedback-libiberty-linker-plugin: all-stagefeedback-libiberty-linker-plugin
23730all-stagefeedback: all-stagefeedback-libiberty-linker-plugin
23731TARGET-stagefeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23732all-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23733 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23734 @r=`${PWD_COMMAND}`; export r; \
23735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23736 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23737 $(HOST_EXPORTS) \
23738 $(POSTSTAGE1_HOST_EXPORTS) \
23739 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23740 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23741 CFLAGS="$(STAGEfeedback_CFLAGS)" \
23742 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
23743 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23744 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23745 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23746 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23747 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23748 TFLAGS="$(STAGEfeedback_TFLAGS)" \
23749 $(TARGET-stagefeedback-libiberty-linker-plugin)
23750
23751maybe-clean-stagefeedback-libiberty-linker-plugin: clean-stagefeedback-libiberty-linker-plugin
23752clean-stagefeedback: clean-stagefeedback-libiberty-linker-plugin
23753clean-stagefeedback-libiberty-linker-plugin:
23754 @if [ $(current_stage) = stagefeedback ]; then \
23755 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23756 else \
23757 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty-linker-plugin/Makefile ] || exit 0; \
23758 $(MAKE) stagefeedback-start; \
23759 fi; \
23760 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23761 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23762@endif libiberty-linker-plugin-bootstrap
23763
23764
23765
23766
23767
23768.PHONY: check-libiberty-linker-plugin maybe-check-libiberty-linker-plugin
23769maybe-check-libiberty-linker-plugin:
23770@if libiberty-linker-plugin
23771maybe-check-libiberty-linker-plugin: check-libiberty-linker-plugin
23772
23773check-libiberty-linker-plugin:
23774 @: $(MAKE); $(unstage)
23775 @r=`${PWD_COMMAND}`; export r; \
23776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23777 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
1b6c0831 23778 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
f91ca6bc 23779 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
1b6c0831
L
23780
23781@endif libiberty-linker-plugin
23782
23783.PHONY: install-libiberty-linker-plugin maybe-install-libiberty-linker-plugin
23784maybe-install-libiberty-linker-plugin:
23785@if libiberty-linker-plugin
23786maybe-install-libiberty-linker-plugin: install-libiberty-linker-plugin
23787
23788install-libiberty-linker-plugin: installdirs
23789 @: $(MAKE); $(unstage)
23790 @r=`${PWD_COMMAND}`; export r; \
23791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23792 $(HOST_EXPORTS) \
23793 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23794 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
23795
23796@endif libiberty-linker-plugin
23797
23798.PHONY: install-strip-libiberty-linker-plugin maybe-install-strip-libiberty-linker-plugin
23799maybe-install-strip-libiberty-linker-plugin:
23800@if libiberty-linker-plugin
23801maybe-install-strip-libiberty-linker-plugin: install-strip-libiberty-linker-plugin
23802
23803install-strip-libiberty-linker-plugin: installdirs
23804 @: $(MAKE); $(unstage)
23805 @r=`${PWD_COMMAND}`; export r; \
23806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23807 $(HOST_EXPORTS) \
23808 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23809 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
23810
23811@endif libiberty-linker-plugin
23812
23813# Other targets (info, dvi, pdf, etc.)
23814
23815.PHONY: maybe-info-libiberty-linker-plugin info-libiberty-linker-plugin
23816maybe-info-libiberty-linker-plugin:
23817@if libiberty-linker-plugin
23818maybe-info-libiberty-linker-plugin: info-libiberty-linker-plugin
23819
23820info-libiberty-linker-plugin: \
23821 configure-libiberty-linker-plugin
23822 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23823 r=`${PWD_COMMAND}`; export r; \
23824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23825 $(HOST_EXPORTS) \
23826 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23828 done; \
22121df0 23829 echo "Doing info in libiberty-linker-plugin"; \
1b6c0831
L
23830 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23833 "RANLIB=$${RANLIB}" \
23834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23835 info) \
23836 || exit 1
23837
23838@endif libiberty-linker-plugin
23839
23840.PHONY: maybe-dvi-libiberty-linker-plugin dvi-libiberty-linker-plugin
23841maybe-dvi-libiberty-linker-plugin:
23842@if libiberty-linker-plugin
23843maybe-dvi-libiberty-linker-plugin: dvi-libiberty-linker-plugin
23844
23845dvi-libiberty-linker-plugin: \
23846 configure-libiberty-linker-plugin
23847 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23848 r=`${PWD_COMMAND}`; export r; \
23849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23850 $(HOST_EXPORTS) \
23851 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23853 done; \
22121df0 23854 echo "Doing dvi in libiberty-linker-plugin"; \
1b6c0831
L
23855 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23858 "RANLIB=$${RANLIB}" \
23859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23860 dvi) \
23861 || exit 1
23862
23863@endif libiberty-linker-plugin
23864
23865.PHONY: maybe-pdf-libiberty-linker-plugin pdf-libiberty-linker-plugin
23866maybe-pdf-libiberty-linker-plugin:
23867@if libiberty-linker-plugin
23868maybe-pdf-libiberty-linker-plugin: pdf-libiberty-linker-plugin
23869
23870pdf-libiberty-linker-plugin: \
23871 configure-libiberty-linker-plugin
23872 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23873 r=`${PWD_COMMAND}`; export r; \
23874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23875 $(HOST_EXPORTS) \
23876 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23878 done; \
22121df0 23879 echo "Doing pdf in libiberty-linker-plugin"; \
1b6c0831
L
23880 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23883 "RANLIB=$${RANLIB}" \
23884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23885 pdf) \
23886 || exit 1
23887
23888@endif libiberty-linker-plugin
23889
23890.PHONY: maybe-html-libiberty-linker-plugin html-libiberty-linker-plugin
23891maybe-html-libiberty-linker-plugin:
23892@if libiberty-linker-plugin
23893maybe-html-libiberty-linker-plugin: html-libiberty-linker-plugin
23894
23895html-libiberty-linker-plugin: \
23896 configure-libiberty-linker-plugin
23897 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23898 r=`${PWD_COMMAND}`; export r; \
23899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23900 $(HOST_EXPORTS) \
23901 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23903 done; \
22121df0 23904 echo "Doing html in libiberty-linker-plugin"; \
1b6c0831
L
23905 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23908 "RANLIB=$${RANLIB}" \
23909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23910 html) \
23911 || exit 1
23912
23913@endif libiberty-linker-plugin
23914
23915.PHONY: maybe-TAGS-libiberty-linker-plugin TAGS-libiberty-linker-plugin
23916maybe-TAGS-libiberty-linker-plugin:
23917@if libiberty-linker-plugin
23918maybe-TAGS-libiberty-linker-plugin: TAGS-libiberty-linker-plugin
23919
23920TAGS-libiberty-linker-plugin: \
23921 configure-libiberty-linker-plugin
23922 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23923 r=`${PWD_COMMAND}`; export r; \
23924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23925 $(HOST_EXPORTS) \
23926 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23928 done; \
22121df0 23929 echo "Doing TAGS in libiberty-linker-plugin"; \
1b6c0831
L
23930 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23933 "RANLIB=$${RANLIB}" \
23934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23935 TAGS) \
23936 || exit 1
23937
23938@endif libiberty-linker-plugin
23939
23940.PHONY: maybe-install-info-libiberty-linker-plugin install-info-libiberty-linker-plugin
23941maybe-install-info-libiberty-linker-plugin:
23942@if libiberty-linker-plugin
23943maybe-install-info-libiberty-linker-plugin: install-info-libiberty-linker-plugin
23944
23945install-info-libiberty-linker-plugin: \
23946 configure-libiberty-linker-plugin \
23947 info-libiberty-linker-plugin
23948 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23949 r=`${PWD_COMMAND}`; export r; \
23950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23951 $(HOST_EXPORTS) \
23952 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23954 done; \
22121df0 23955 echo "Doing install-info in libiberty-linker-plugin"; \
1b6c0831
L
23956 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23959 "RANLIB=$${RANLIB}" \
23960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23961 install-info) \
23962 || exit 1
23963
23964@endif libiberty-linker-plugin
23965
23966.PHONY: maybe-install-pdf-libiberty-linker-plugin install-pdf-libiberty-linker-plugin
23967maybe-install-pdf-libiberty-linker-plugin:
23968@if libiberty-linker-plugin
23969maybe-install-pdf-libiberty-linker-plugin: install-pdf-libiberty-linker-plugin
23970
23971install-pdf-libiberty-linker-plugin: \
23972 configure-libiberty-linker-plugin \
23973 pdf-libiberty-linker-plugin
23974 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23975 r=`${PWD_COMMAND}`; export r; \
23976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23977 $(HOST_EXPORTS) \
23978 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23980 done; \
22121df0 23981 echo "Doing install-pdf in libiberty-linker-plugin"; \
1b6c0831
L
23982 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23985 "RANLIB=$${RANLIB}" \
23986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23987 install-pdf) \
23988 || exit 1
23989
23990@endif libiberty-linker-plugin
23991
23992.PHONY: maybe-install-html-libiberty-linker-plugin install-html-libiberty-linker-plugin
23993maybe-install-html-libiberty-linker-plugin:
23994@if libiberty-linker-plugin
23995maybe-install-html-libiberty-linker-plugin: install-html-libiberty-linker-plugin
23996
23997install-html-libiberty-linker-plugin: \
23998 configure-libiberty-linker-plugin \
23999 html-libiberty-linker-plugin
24000 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24001 r=`${PWD_COMMAND}`; export r; \
24002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24003 $(HOST_EXPORTS) \
24004 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24006 done; \
22121df0 24007 echo "Doing install-html in libiberty-linker-plugin"; \
1b6c0831
L
24008 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24011 "RANLIB=$${RANLIB}" \
24012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24013 install-html) \
24014 || exit 1
24015
24016@endif libiberty-linker-plugin
24017
24018.PHONY: maybe-installcheck-libiberty-linker-plugin installcheck-libiberty-linker-plugin
24019maybe-installcheck-libiberty-linker-plugin:
24020@if libiberty-linker-plugin
24021maybe-installcheck-libiberty-linker-plugin: installcheck-libiberty-linker-plugin
24022
24023installcheck-libiberty-linker-plugin: \
24024 configure-libiberty-linker-plugin
24025 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24026 r=`${PWD_COMMAND}`; export r; \
24027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24028 $(HOST_EXPORTS) \
24029 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24031 done; \
22121df0 24032 echo "Doing installcheck in libiberty-linker-plugin"; \
1b6c0831
L
24033 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24036 "RANLIB=$${RANLIB}" \
24037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24038 installcheck) \
24039 || exit 1
24040
24041@endif libiberty-linker-plugin
24042
24043.PHONY: maybe-mostlyclean-libiberty-linker-plugin mostlyclean-libiberty-linker-plugin
24044maybe-mostlyclean-libiberty-linker-plugin:
24045@if libiberty-linker-plugin
24046maybe-mostlyclean-libiberty-linker-plugin: mostlyclean-libiberty-linker-plugin
24047
24048mostlyclean-libiberty-linker-plugin:
24049 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24050 r=`${PWD_COMMAND}`; export r; \
24051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24052 $(HOST_EXPORTS) \
24053 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24055 done; \
22121df0 24056 echo "Doing mostlyclean in libiberty-linker-plugin"; \
1b6c0831
L
24057 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24060 "RANLIB=$${RANLIB}" \
24061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24062 mostlyclean) \
24063 || exit 1
24064
24065@endif libiberty-linker-plugin
24066
24067.PHONY: maybe-clean-libiberty-linker-plugin clean-libiberty-linker-plugin
24068maybe-clean-libiberty-linker-plugin:
24069@if libiberty-linker-plugin
24070maybe-clean-libiberty-linker-plugin: clean-libiberty-linker-plugin
24071
24072clean-libiberty-linker-plugin:
24073 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24074 r=`${PWD_COMMAND}`; export r; \
24075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24076 $(HOST_EXPORTS) \
24077 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24079 done; \
22121df0 24080 echo "Doing clean in libiberty-linker-plugin"; \
1b6c0831
L
24081 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24084 "RANLIB=$${RANLIB}" \
24085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24086 clean) \
24087 || exit 1
24088
24089@endif libiberty-linker-plugin
24090
24091.PHONY: maybe-distclean-libiberty-linker-plugin distclean-libiberty-linker-plugin
24092maybe-distclean-libiberty-linker-plugin:
24093@if libiberty-linker-plugin
24094maybe-distclean-libiberty-linker-plugin: distclean-libiberty-linker-plugin
24095
24096distclean-libiberty-linker-plugin:
24097 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24098 r=`${PWD_COMMAND}`; export r; \
24099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24100 $(HOST_EXPORTS) \
24101 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24103 done; \
22121df0 24104 echo "Doing distclean in libiberty-linker-plugin"; \
1b6c0831
L
24105 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24108 "RANLIB=$${RANLIB}" \
24109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24110 distclean) \
24111 || exit 1
24112
24113@endif libiberty-linker-plugin
24114
24115.PHONY: maybe-maintainer-clean-libiberty-linker-plugin maintainer-clean-libiberty-linker-plugin
24116maybe-maintainer-clean-libiberty-linker-plugin:
24117@if libiberty-linker-plugin
24118maybe-maintainer-clean-libiberty-linker-plugin: maintainer-clean-libiberty-linker-plugin
24119
24120maintainer-clean-libiberty-linker-plugin:
24121 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24122 r=`${PWD_COMMAND}`; export r; \
24123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24124 $(HOST_EXPORTS) \
24125 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24127 done; \
22121df0 24128 echo "Doing maintainer-clean in libiberty-linker-plugin"; \
1b6c0831
L
24129 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24132 "RANLIB=$${RANLIB}" \
24133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24134 maintainer-clean) \
24135 || exit 1
24136
24137@endif libiberty-linker-plugin
24138
24139
24140
a90ef4bf
JM
24141.PHONY: configure-libiconv maybe-configure-libiconv
24142maybe-configure-libiconv:
4f0ef2d8 24143@if gcc-bootstrap
a90ef4bf 24144configure-libiconv: stage_current
4f0ef2d8 24145@endif gcc-bootstrap
a90ef4bf
JM
24146@if libiconv
24147maybe-configure-libiconv: configure-libiconv
24148configure-libiconv:
c52c6897 24149 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 24151 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
22121df0 24152 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
1f53ca9a 24153 $(HOST_EXPORTS) \
a90ef4bf
JM
24154 echo Configuring in $(HOST_SUBDIR)/libiconv; \
24155 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
4fa63067 24156 case $(srcdir) in \
b00612cc 24157 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24158 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
b00612cc 24159 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24160 esac; \
1b6c0831
L
24161 module_srcdir=libiconv; \
24162 $(SHELL) \
24163 $$s/$$module_srcdir/configure \
24164 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24165 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24166 --target=${target_alias} --disable-shared \
2a4cbe27 24167 || exit 1
a90ef4bf 24168@endif libiconv
2a4cbe27 24169
a7254363
PB
24170
24171
016a3251
DD
24172.PHONY: configure-stage1-libiconv maybe-configure-stage1-libiconv
24173maybe-configure-stage1-libiconv:
24174@if libiconv-bootstrap
24175maybe-configure-stage1-libiconv: configure-stage1-libiconv
24176configure-stage1-libiconv:
24177 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24178 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24179 @r=`${PWD_COMMAND}`; export r; \
24180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24181 TFLAGS="$(STAGE1_TFLAGS)"; \
24182 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24183 $(HOST_EXPORTS) \
24184 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
24185 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
24186 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
24187 echo Configuring stage 1 in $(HOST_SUBDIR)/libiconv; \
24188 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24189 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24190 case $(srcdir) in \
24191 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24192 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24193 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24194 esac; \
24195 module_srcdir=libiconv; \
24196 $(SHELL) $$s/$$module_srcdir/configure \
24197 --srcdir=$${topdir}/$$module_srcdir \
24198 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24199 --target=${target_alias} \
24200 \
24201 $(STAGE1_CONFIGURE_FLAGS) \
24202 --disable-shared
24203@endif libiconv-bootstrap
24204
24205.PHONY: configure-stage2-libiconv maybe-configure-stage2-libiconv
24206maybe-configure-stage2-libiconv:
24207@if libiconv-bootstrap
24208maybe-configure-stage2-libiconv: configure-stage2-libiconv
24209configure-stage2-libiconv:
24210 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24211 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24212 @r=`${PWD_COMMAND}`; export r; \
24213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24214 TFLAGS="$(STAGE2_TFLAGS)"; \
24215 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24216 $(HOST_EXPORTS) \
24217 $(POSTSTAGE1_HOST_EXPORTS) \
24218 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
24219 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
24220 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
24221 echo Configuring stage 2 in $(HOST_SUBDIR)/libiconv; \
24222 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24223 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24224 case $(srcdir) in \
24225 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24226 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24227 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24228 esac; \
24229 module_srcdir=libiconv; \
24230 $(SHELL) $$s/$$module_srcdir/configure \
24231 --srcdir=$${topdir}/$$module_srcdir \
24232 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24233 --target=${target_alias} \
24234 --with-build-libsubdir=$(HOST_SUBDIR) \
24235 $(STAGE2_CONFIGURE_FLAGS) \
24236 --disable-shared
24237@endif libiconv-bootstrap
24238
24239.PHONY: configure-stage3-libiconv maybe-configure-stage3-libiconv
24240maybe-configure-stage3-libiconv:
24241@if libiconv-bootstrap
24242maybe-configure-stage3-libiconv: configure-stage3-libiconv
24243configure-stage3-libiconv:
24244 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24245 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24246 @r=`${PWD_COMMAND}`; export r; \
24247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24248 TFLAGS="$(STAGE3_TFLAGS)"; \
24249 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24250 $(HOST_EXPORTS) \
24251 $(POSTSTAGE1_HOST_EXPORTS) \
24252 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
24253 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
24254 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
24255 echo Configuring stage 3 in $(HOST_SUBDIR)/libiconv; \
24256 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24257 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24258 case $(srcdir) in \
24259 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24260 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24261 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24262 esac; \
24263 module_srcdir=libiconv; \
24264 $(SHELL) $$s/$$module_srcdir/configure \
24265 --srcdir=$${topdir}/$$module_srcdir \
24266 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24267 --target=${target_alias} \
24268 --with-build-libsubdir=$(HOST_SUBDIR) \
24269 $(STAGE3_CONFIGURE_FLAGS) \
24270 --disable-shared
24271@endif libiconv-bootstrap
24272
24273.PHONY: configure-stage4-libiconv maybe-configure-stage4-libiconv
24274maybe-configure-stage4-libiconv:
24275@if libiconv-bootstrap
24276maybe-configure-stage4-libiconv: configure-stage4-libiconv
24277configure-stage4-libiconv:
24278 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24279 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24280 @r=`${PWD_COMMAND}`; export r; \
24281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24282 TFLAGS="$(STAGE4_TFLAGS)"; \
24283 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24284 $(HOST_EXPORTS) \
24285 $(POSTSTAGE1_HOST_EXPORTS) \
24286 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
24287 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
24288 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
24289 echo Configuring stage 4 in $(HOST_SUBDIR)/libiconv; \
24290 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24291 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24292 case $(srcdir) in \
24293 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24294 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24295 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24296 esac; \
24297 module_srcdir=libiconv; \
24298 $(SHELL) $$s/$$module_srcdir/configure \
24299 --srcdir=$${topdir}/$$module_srcdir \
24300 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24301 --target=${target_alias} \
24302 --with-build-libsubdir=$(HOST_SUBDIR) \
24303 $(STAGE4_CONFIGURE_FLAGS) \
24304 --disable-shared
24305@endif libiconv-bootstrap
24306
24307.PHONY: configure-stageprofile-libiconv maybe-configure-stageprofile-libiconv
24308maybe-configure-stageprofile-libiconv:
24309@if libiconv-bootstrap
24310maybe-configure-stageprofile-libiconv: configure-stageprofile-libiconv
24311configure-stageprofile-libiconv:
24312 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24313 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24314 @r=`${PWD_COMMAND}`; export r; \
24315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24316 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24317 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24318 $(HOST_EXPORTS) \
24319 $(POSTSTAGE1_HOST_EXPORTS) \
24320 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
24321 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
24322 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
24323 echo Configuring stage profile in $(HOST_SUBDIR)/libiconv; \
24324 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24325 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24326 case $(srcdir) in \
24327 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24328 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24329 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24330 esac; \
24331 module_srcdir=libiconv; \
24332 $(SHELL) $$s/$$module_srcdir/configure \
24333 --srcdir=$${topdir}/$$module_srcdir \
24334 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24335 --target=${target_alias} \
24336 --with-build-libsubdir=$(HOST_SUBDIR) \
24337 $(STAGEprofile_CONFIGURE_FLAGS) \
24338 --disable-shared
24339@endif libiconv-bootstrap
24340
24341.PHONY: configure-stagefeedback-libiconv maybe-configure-stagefeedback-libiconv
24342maybe-configure-stagefeedback-libiconv:
24343@if libiconv-bootstrap
24344maybe-configure-stagefeedback-libiconv: configure-stagefeedback-libiconv
24345configure-stagefeedback-libiconv:
24346 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24347 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24348 @r=`${PWD_COMMAND}`; export r; \
24349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24350 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24351 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24352 $(HOST_EXPORTS) \
24353 $(POSTSTAGE1_HOST_EXPORTS) \
24354 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
24355 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
24356 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
24357 echo Configuring stage feedback in $(HOST_SUBDIR)/libiconv; \
24358 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24359 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24360 case $(srcdir) in \
24361 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24362 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24363 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24364 esac; \
24365 module_srcdir=libiconv; \
24366 $(SHELL) $$s/$$module_srcdir/configure \
24367 --srcdir=$${topdir}/$$module_srcdir \
24368 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24369 --target=${target_alias} \
24370 --with-build-libsubdir=$(HOST_SUBDIR) \
24371 $(STAGEfeedback_CONFIGURE_FLAGS) \
24372 --disable-shared
24373@endif libiconv-bootstrap
24374
24375
24376
d545f33b
PB
24377
24378
a90ef4bf
JM
24379.PHONY: all-libiconv maybe-all-libiconv
24380maybe-all-libiconv:
4f0ef2d8 24381@if gcc-bootstrap
a90ef4bf 24382all-libiconv: stage_current
4f0ef2d8 24383@endif gcc-bootstrap
a90ef4bf
JM
24384@if libiconv
24385TARGET-libiconv=all
24386maybe-all-libiconv: all-libiconv
24387all-libiconv: configure-libiconv
4fa63067
NN
24388 @r=`${PWD_COMMAND}`; export r; \
24389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24390 $(HOST_EXPORTS) \
a90ef4bf 24391 (cd $(HOST_SUBDIR)/libiconv && \
b3676d82 24392 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24393 $(TARGET-libiconv))
24394@endif libiconv
2a4cbe27 24395
a7254363 24396
d545f33b 24397
016a3251
DD
24398.PHONY: all-stage1-libiconv maybe-all-stage1-libiconv
24399.PHONY: clean-stage1-libiconv maybe-clean-stage1-libiconv
24400maybe-all-stage1-libiconv:
24401maybe-clean-stage1-libiconv:
24402@if libiconv-bootstrap
24403maybe-all-stage1-libiconv: all-stage1-libiconv
24404all-stage1: all-stage1-libiconv
24405TARGET-stage1-libiconv = $(TARGET-libiconv)
24406all-stage1-libiconv: configure-stage1-libiconv
24407 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24408 @r=`${PWD_COMMAND}`; export r; \
24409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24410 TFLAGS="$(STAGE1_TFLAGS)"; \
24411 $(HOST_EXPORTS) \
24412 cd $(HOST_SUBDIR)/libiconv && \
24413 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24414 CFLAGS="$(STAGE1_CFLAGS)" \
24415 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
24416 LIBCFLAGS="$(LIBCFLAGS)" \
24417 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24418 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24419 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24420 $(EXTRA_HOST_FLAGS) \
24421 $(STAGE1_FLAGS_TO_PASS) \
24422 TFLAGS="$(STAGE1_TFLAGS)" \
24423 $(TARGET-stage1-libiconv)
24424
24425maybe-clean-stage1-libiconv: clean-stage1-libiconv
24426clean-stage1: clean-stage1-libiconv
24427clean-stage1-libiconv:
24428 @if [ $(current_stage) = stage1 ]; then \
24429 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24430 else \
24431 [ -f $(HOST_SUBDIR)/stage1-libiconv/Makefile ] || exit 0; \
24432 $(MAKE) stage1-start; \
24433 fi; \
24434 cd $(HOST_SUBDIR)/libiconv && \
24435 $(MAKE) $(EXTRA_HOST_FLAGS) \
24436 $(STAGE1_FLAGS_TO_PASS) clean
24437@endif libiconv-bootstrap
24438
24439
24440.PHONY: all-stage2-libiconv maybe-all-stage2-libiconv
24441.PHONY: clean-stage2-libiconv maybe-clean-stage2-libiconv
24442maybe-all-stage2-libiconv:
24443maybe-clean-stage2-libiconv:
24444@if libiconv-bootstrap
24445maybe-all-stage2-libiconv: all-stage2-libiconv
24446all-stage2: all-stage2-libiconv
24447TARGET-stage2-libiconv = $(TARGET-libiconv)
24448all-stage2-libiconv: configure-stage2-libiconv
24449 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24450 @r=`${PWD_COMMAND}`; export r; \
24451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24452 TFLAGS="$(STAGE2_TFLAGS)"; \
24453 $(HOST_EXPORTS) \
24454 $(POSTSTAGE1_HOST_EXPORTS) \
24455 cd $(HOST_SUBDIR)/libiconv && \
24456 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24457 CFLAGS="$(STAGE2_CFLAGS)" \
24458 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
24459 LIBCFLAGS="$(STAGE2_CFLAGS)" \
24460 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24461 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24462 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24463 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24464 TFLAGS="$(STAGE2_TFLAGS)" \
24465 $(TARGET-stage2-libiconv)
24466
24467maybe-clean-stage2-libiconv: clean-stage2-libiconv
24468clean-stage2: clean-stage2-libiconv
24469clean-stage2-libiconv:
24470 @if [ $(current_stage) = stage2 ]; then \
24471 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24472 else \
24473 [ -f $(HOST_SUBDIR)/stage2-libiconv/Makefile ] || exit 0; \
24474 $(MAKE) stage2-start; \
24475 fi; \
24476 cd $(HOST_SUBDIR)/libiconv && \
24477 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24478@endif libiconv-bootstrap
24479
24480
24481.PHONY: all-stage3-libiconv maybe-all-stage3-libiconv
24482.PHONY: clean-stage3-libiconv maybe-clean-stage3-libiconv
24483maybe-all-stage3-libiconv:
24484maybe-clean-stage3-libiconv:
24485@if libiconv-bootstrap
24486maybe-all-stage3-libiconv: all-stage3-libiconv
24487all-stage3: all-stage3-libiconv
24488TARGET-stage3-libiconv = $(TARGET-libiconv)
24489all-stage3-libiconv: configure-stage3-libiconv
24490 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24491 @r=`${PWD_COMMAND}`; export r; \
24492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24493 TFLAGS="$(STAGE3_TFLAGS)"; \
24494 $(HOST_EXPORTS) \
24495 $(POSTSTAGE1_HOST_EXPORTS) \
24496 cd $(HOST_SUBDIR)/libiconv && \
24497 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24498 CFLAGS="$(STAGE3_CFLAGS)" \
24499 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
24500 LIBCFLAGS="$(STAGE3_CFLAGS)" \
24501 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24502 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24503 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24504 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24505 TFLAGS="$(STAGE3_TFLAGS)" \
24506 $(TARGET-stage3-libiconv)
24507
24508maybe-clean-stage3-libiconv: clean-stage3-libiconv
24509clean-stage3: clean-stage3-libiconv
24510clean-stage3-libiconv:
24511 @if [ $(current_stage) = stage3 ]; then \
24512 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24513 else \
24514 [ -f $(HOST_SUBDIR)/stage3-libiconv/Makefile ] || exit 0; \
24515 $(MAKE) stage3-start; \
24516 fi; \
24517 cd $(HOST_SUBDIR)/libiconv && \
24518 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24519@endif libiconv-bootstrap
24520
24521
24522.PHONY: all-stage4-libiconv maybe-all-stage4-libiconv
24523.PHONY: clean-stage4-libiconv maybe-clean-stage4-libiconv
24524maybe-all-stage4-libiconv:
24525maybe-clean-stage4-libiconv:
24526@if libiconv-bootstrap
24527maybe-all-stage4-libiconv: all-stage4-libiconv
24528all-stage4: all-stage4-libiconv
24529TARGET-stage4-libiconv = $(TARGET-libiconv)
24530all-stage4-libiconv: configure-stage4-libiconv
24531 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24532 @r=`${PWD_COMMAND}`; export r; \
24533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24534 TFLAGS="$(STAGE4_TFLAGS)"; \
24535 $(HOST_EXPORTS) \
24536 $(POSTSTAGE1_HOST_EXPORTS) \
24537 cd $(HOST_SUBDIR)/libiconv && \
24538 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24539 CFLAGS="$(STAGE4_CFLAGS)" \
24540 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
24541 LIBCFLAGS="$(STAGE4_CFLAGS)" \
24542 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24543 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24544 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24545 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24546 TFLAGS="$(STAGE4_TFLAGS)" \
24547 $(TARGET-stage4-libiconv)
24548
24549maybe-clean-stage4-libiconv: clean-stage4-libiconv
24550clean-stage4: clean-stage4-libiconv
24551clean-stage4-libiconv:
24552 @if [ $(current_stage) = stage4 ]; then \
24553 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24554 else \
24555 [ -f $(HOST_SUBDIR)/stage4-libiconv/Makefile ] || exit 0; \
24556 $(MAKE) stage4-start; \
24557 fi; \
24558 cd $(HOST_SUBDIR)/libiconv && \
24559 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24560@endif libiconv-bootstrap
24561
24562
24563.PHONY: all-stageprofile-libiconv maybe-all-stageprofile-libiconv
24564.PHONY: clean-stageprofile-libiconv maybe-clean-stageprofile-libiconv
24565maybe-all-stageprofile-libiconv:
24566maybe-clean-stageprofile-libiconv:
24567@if libiconv-bootstrap
24568maybe-all-stageprofile-libiconv: all-stageprofile-libiconv
24569all-stageprofile: all-stageprofile-libiconv
24570TARGET-stageprofile-libiconv = $(TARGET-libiconv)
24571all-stageprofile-libiconv: configure-stageprofile-libiconv
24572 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24573 @r=`${PWD_COMMAND}`; export r; \
24574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24575 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24576 $(HOST_EXPORTS) \
24577 $(POSTSTAGE1_HOST_EXPORTS) \
24578 cd $(HOST_SUBDIR)/libiconv && \
24579 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24580 CFLAGS="$(STAGEprofile_CFLAGS)" \
24581 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
24582 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
24583 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24584 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24585 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24586 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24587 TFLAGS="$(STAGEprofile_TFLAGS)" \
24588 $(TARGET-stageprofile-libiconv)
24589
24590maybe-clean-stageprofile-libiconv: clean-stageprofile-libiconv
24591clean-stageprofile: clean-stageprofile-libiconv
24592clean-stageprofile-libiconv:
24593 @if [ $(current_stage) = stageprofile ]; then \
24594 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24595 else \
24596 [ -f $(HOST_SUBDIR)/stageprofile-libiconv/Makefile ] || exit 0; \
24597 $(MAKE) stageprofile-start; \
24598 fi; \
24599 cd $(HOST_SUBDIR)/libiconv && \
24600 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24601@endif libiconv-bootstrap
24602
24603
24604.PHONY: all-stagefeedback-libiconv maybe-all-stagefeedback-libiconv
24605.PHONY: clean-stagefeedback-libiconv maybe-clean-stagefeedback-libiconv
24606maybe-all-stagefeedback-libiconv:
24607maybe-clean-stagefeedback-libiconv:
24608@if libiconv-bootstrap
24609maybe-all-stagefeedback-libiconv: all-stagefeedback-libiconv
24610all-stagefeedback: all-stagefeedback-libiconv
24611TARGET-stagefeedback-libiconv = $(TARGET-libiconv)
24612all-stagefeedback-libiconv: configure-stagefeedback-libiconv
24613 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24614 @r=`${PWD_COMMAND}`; export r; \
24615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24616 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24617 $(HOST_EXPORTS) \
24618 $(POSTSTAGE1_HOST_EXPORTS) \
24619 cd $(HOST_SUBDIR)/libiconv && \
24620 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24621 CFLAGS="$(STAGEfeedback_CFLAGS)" \
24622 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
24623 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
24624 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24625 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24626 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24627 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24628 TFLAGS="$(STAGEfeedback_TFLAGS)" \
24629 $(TARGET-stagefeedback-libiconv)
24630
24631maybe-clean-stagefeedback-libiconv: clean-stagefeedback-libiconv
24632clean-stagefeedback: clean-stagefeedback-libiconv
24633clean-stagefeedback-libiconv:
24634 @if [ $(current_stage) = stagefeedback ]; then \
24635 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24636 else \
24637 [ -f $(HOST_SUBDIR)/stagefeedback-libiconv/Makefile ] || exit 0; \
24638 $(MAKE) stagefeedback-start; \
24639 fi; \
24640 cd $(HOST_SUBDIR)/libiconv && \
24641 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24642@endif libiconv-bootstrap
24643
24644
24645
24646
d545f33b 24647
a90ef4bf
JM
24648.PHONY: check-libiconv maybe-check-libiconv
24649maybe-check-libiconv:
24650@if libiconv
24651maybe-check-libiconv: check-libiconv
2a4cbe27 24652
a90ef4bf 24653check-libiconv:
0aed8855 24654 @: $(MAKE); $(unstage)
4fa63067 24655 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
016a3251 24657 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 24658 (cd $(HOST_SUBDIR)/libiconv && \
016a3251 24659 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 24660
a90ef4bf 24661@endif libiconv
4fa63067 24662
a90ef4bf
JM
24663.PHONY: install-libiconv maybe-install-libiconv
24664maybe-install-libiconv:
24665@if libiconv
24666maybe-install-libiconv: install-libiconv
2a4cbe27 24667
a90ef4bf 24668install-libiconv:
2a4cbe27 24669
a90ef4bf 24670@endif libiconv
9b980aa1 24671
a90ef4bf
JM
24672.PHONY: install-strip-libiconv maybe-install-strip-libiconv
24673maybe-install-strip-libiconv:
24674@if libiconv
24675maybe-install-strip-libiconv: install-strip-libiconv
9b980aa1 24676
a90ef4bf
JM
24677install-strip-libiconv:
24678
24679@endif libiconv
9b980aa1 24680
56a8fe78 24681# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24682
a90ef4bf
JM
24683.PHONY: maybe-info-libiconv info-libiconv
24684maybe-info-libiconv:
24685@if libiconv
24686maybe-info-libiconv: info-libiconv
4fa63067 24687
016a3251
DD
24688# libiconv doesn't support info.
24689info-libiconv:
2a4cbe27 24690
a90ef4bf 24691@endif libiconv
2a4cbe27 24692
a90ef4bf
JM
24693.PHONY: maybe-dvi-libiconv dvi-libiconv
24694maybe-dvi-libiconv:
24695@if libiconv
24696maybe-dvi-libiconv: dvi-libiconv
2a4cbe27 24697
a90ef4bf
JM
24698dvi-libiconv: \
24699 configure-libiconv
a90ef4bf 24700 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24701 r=`${PWD_COMMAND}`; export r; \
24702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24703 $(HOST_EXPORTS) \
b813574b 24704 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24706 done; \
22121df0 24707 echo "Doing dvi in libiconv"; \
a90ef4bf 24708 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24711 "RANLIB=$${RANLIB}" \
0c24b341 24712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24713 dvi) \
2a4cbe27
NN
24714 || exit 1
24715
a90ef4bf 24716@endif libiconv
2a4cbe27 24717
a90ef4bf
JM
24718.PHONY: maybe-pdf-libiconv pdf-libiconv
24719maybe-pdf-libiconv:
24720@if libiconv
24721maybe-pdf-libiconv: pdf-libiconv
56a8fe78 24722
016a3251
DD
24723# libiconv doesn't support pdf.
24724pdf-libiconv:
56a8fe78 24725
a90ef4bf 24726@endif libiconv
56a8fe78 24727
a90ef4bf
JM
24728.PHONY: maybe-html-libiconv html-libiconv
24729maybe-html-libiconv:
24730@if libiconv
24731maybe-html-libiconv: html-libiconv
6d389afc 24732
016a3251
DD
24733# libiconv doesn't support html.
24734html-libiconv:
6d389afc 24735
a90ef4bf 24736@endif libiconv
6d389afc 24737
a90ef4bf
JM
24738.PHONY: maybe-TAGS-libiconv TAGS-libiconv
24739maybe-TAGS-libiconv:
24740@if libiconv
24741maybe-TAGS-libiconv: TAGS-libiconv
2a4cbe27 24742
a90ef4bf
JM
24743TAGS-libiconv: \
24744 configure-libiconv
a90ef4bf 24745 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24746 r=`${PWD_COMMAND}`; export r; \
24747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24748 $(HOST_EXPORTS) \
b813574b 24749 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24751 done; \
22121df0 24752 echo "Doing TAGS in libiconv"; \
a90ef4bf 24753 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24756 "RANLIB=$${RANLIB}" \
0c24b341 24757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24758 TAGS) \
2a4cbe27
NN
24759 || exit 1
24760
a90ef4bf 24761@endif libiconv
2a4cbe27 24762
a90ef4bf
JM
24763.PHONY: maybe-install-info-libiconv install-info-libiconv
24764maybe-install-info-libiconv:
24765@if libiconv
24766maybe-install-info-libiconv: install-info-libiconv
2a4cbe27 24767
a90ef4bf
JM
24768# libiconv doesn't support install-info.
24769install-info-libiconv:
2a4cbe27 24770
a90ef4bf 24771@endif libiconv
2a4cbe27 24772
a90ef4bf
JM
24773.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
24774maybe-install-pdf-libiconv:
24775@if libiconv
24776maybe-install-pdf-libiconv: install-pdf-libiconv
a3ca38d2 24777
a90ef4bf
JM
24778# libiconv doesn't support install-pdf.
24779install-pdf-libiconv:
a3ca38d2 24780
a90ef4bf 24781@endif libiconv
a3ca38d2 24782
a90ef4bf
JM
24783.PHONY: maybe-install-html-libiconv install-html-libiconv
24784maybe-install-html-libiconv:
24785@if libiconv
24786maybe-install-html-libiconv: install-html-libiconv
108a6f8e 24787
a90ef4bf
JM
24788# libiconv doesn't support install-html.
24789install-html-libiconv:
108a6f8e 24790
a90ef4bf 24791@endif libiconv
108a6f8e 24792
a90ef4bf
JM
24793.PHONY: maybe-installcheck-libiconv installcheck-libiconv
24794maybe-installcheck-libiconv:
24795@if libiconv
24796maybe-installcheck-libiconv: installcheck-libiconv
2a4cbe27 24797
a90ef4bf
JM
24798installcheck-libiconv: \
24799 configure-libiconv
a90ef4bf 24800 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24801 r=`${PWD_COMMAND}`; export r; \
24802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24803 $(HOST_EXPORTS) \
b813574b 24804 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24806 done; \
22121df0 24807 echo "Doing installcheck in libiconv"; \
a90ef4bf 24808 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24811 "RANLIB=$${RANLIB}" \
0c24b341 24812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24813 installcheck) \
2a4cbe27
NN
24814 || exit 1
24815
a90ef4bf 24816@endif libiconv
2a4cbe27 24817
a90ef4bf
JM
24818.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
24819maybe-mostlyclean-libiconv:
24820@if libiconv
24821maybe-mostlyclean-libiconv: mostlyclean-libiconv
2a4cbe27 24822
a90ef4bf 24823mostlyclean-libiconv:
a90ef4bf 24824 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24825 r=`${PWD_COMMAND}`; export r; \
24826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24827 $(HOST_EXPORTS) \
b813574b 24828 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24830 done; \
22121df0 24831 echo "Doing mostlyclean in libiconv"; \
a90ef4bf 24832 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24835 "RANLIB=$${RANLIB}" \
0c24b341 24836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24837 mostlyclean) \
2a4cbe27
NN
24838 || exit 1
24839
a90ef4bf 24840@endif libiconv
2a4cbe27 24841
a90ef4bf
JM
24842.PHONY: maybe-clean-libiconv clean-libiconv
24843maybe-clean-libiconv:
24844@if libiconv
24845maybe-clean-libiconv: clean-libiconv
2a4cbe27 24846
a90ef4bf 24847clean-libiconv:
a90ef4bf 24848 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24849 r=`${PWD_COMMAND}`; export r; \
24850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24851 $(HOST_EXPORTS) \
b813574b 24852 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24854 done; \
22121df0 24855 echo "Doing clean in libiconv"; \
a90ef4bf 24856 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24859 "RANLIB=$${RANLIB}" \
0c24b341 24860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24861 clean) \
2a4cbe27
NN
24862 || exit 1
24863
a90ef4bf 24864@endif libiconv
2a4cbe27 24865
a90ef4bf
JM
24866.PHONY: maybe-distclean-libiconv distclean-libiconv
24867maybe-distclean-libiconv:
24868@if libiconv
24869maybe-distclean-libiconv: distclean-libiconv
2a4cbe27 24870
a90ef4bf 24871distclean-libiconv:
a90ef4bf 24872 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24873 r=`${PWD_COMMAND}`; export r; \
24874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24875 $(HOST_EXPORTS) \
b813574b 24876 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24878 done; \
22121df0 24879 echo "Doing distclean in libiconv"; \
a90ef4bf 24880 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24883 "RANLIB=$${RANLIB}" \
0c24b341 24884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24885 distclean) \
2a4cbe27
NN
24886 || exit 1
24887
a90ef4bf 24888@endif libiconv
2a4cbe27 24889
a90ef4bf
JM
24890.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
24891maybe-maintainer-clean-libiconv:
24892@if libiconv
24893maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
2a4cbe27 24894
a90ef4bf 24895maintainer-clean-libiconv:
a90ef4bf 24896 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24897 r=`${PWD_COMMAND}`; export r; \
24898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24899 $(HOST_EXPORTS) \
b813574b 24900 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24902 done; \
22121df0 24903 echo "Doing maintainer-clean in libiconv"; \
a90ef4bf 24904 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24907 "RANLIB=$${RANLIB}" \
0c24b341 24908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24909 maintainer-clean) \
2a4cbe27
NN
24910 || exit 1
24911
a90ef4bf 24912@endif libiconv
2a4cbe27 24913
2a4cbe27 24914
a7254363 24915
a90ef4bf
JM
24916.PHONY: configure-m4 maybe-configure-m4
24917maybe-configure-m4:
4f0ef2d8 24918@if gcc-bootstrap
a90ef4bf 24919configure-m4: stage_current
4f0ef2d8 24920@endif gcc-bootstrap
a90ef4bf
JM
24921@if m4
24922maybe-configure-m4: configure-m4
24923configure-m4:
0aed8855 24924 @: $(MAKE); $(unstage)
c52c6897 24925 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 24927 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
22121df0 24928 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4; \
1f53ca9a 24929 $(HOST_EXPORTS) \
a90ef4bf
JM
24930 echo Configuring in $(HOST_SUBDIR)/m4; \
24931 cd "$(HOST_SUBDIR)/m4" || exit 1; \
4fa63067 24932 case $(srcdir) in \
b00612cc 24933 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24934 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
b00612cc 24935 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24936 esac; \
1b6c0831
L
24937 module_srcdir=m4; \
24938 $(SHELL) \
24939 $$s/$$module_srcdir/configure \
24940 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24941 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24942 --target=${target_alias} \
2a4cbe27 24943 || exit 1
a90ef4bf 24944@endif m4
2a4cbe27 24945
a7254363
PB
24946
24947
d545f33b
PB
24948
24949
a90ef4bf
JM
24950.PHONY: all-m4 maybe-all-m4
24951maybe-all-m4:
4f0ef2d8 24952@if gcc-bootstrap
a90ef4bf 24953all-m4: stage_current
4f0ef2d8 24954@endif gcc-bootstrap
a90ef4bf
JM
24955@if m4
24956TARGET-m4=all
24957maybe-all-m4: all-m4
24958all-m4: configure-m4
0aed8855 24959 @: $(MAKE); $(unstage)
4fa63067
NN
24960 @r=`${PWD_COMMAND}`; export r; \
24961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24962 $(HOST_EXPORTS) \
a90ef4bf 24963 (cd $(HOST_SUBDIR)/m4 && \
b3676d82 24964 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24965 $(TARGET-m4))
24966@endif m4
2a4cbe27 24967
a7254363 24968
d545f33b
PB
24969
24970
a90ef4bf
JM
24971.PHONY: check-m4 maybe-check-m4
24972maybe-check-m4:
24973@if m4
24974maybe-check-m4: check-m4
2a4cbe27 24975
a90ef4bf 24976check-m4:
0aed8855 24977 @: $(MAKE); $(unstage)
4fa63067 24978 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 24980 $(HOST_EXPORTS) \
a90ef4bf 24981 (cd $(HOST_SUBDIR)/m4 && \
b00612cc 24982 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 24983
a90ef4bf 24984@endif m4
2a4cbe27 24985
a90ef4bf
JM
24986.PHONY: install-m4 maybe-install-m4
24987maybe-install-m4:
24988@if m4
24989maybe-install-m4: install-m4
2a4cbe27 24990
a90ef4bf 24991install-m4: installdirs
0aed8855 24992 @: $(MAKE); $(unstage)
4fa63067 24993 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24995 $(HOST_EXPORTS) \
a90ef4bf 24996 (cd $(HOST_SUBDIR)/m4 && \
2da12f12 24997 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 24998
a90ef4bf 24999@endif m4
2a4cbe27 25000
a90ef4bf
JM
25001.PHONY: install-strip-m4 maybe-install-strip-m4
25002maybe-install-strip-m4:
25003@if m4
25004maybe-install-strip-m4: install-strip-m4
9b980aa1 25005
a90ef4bf 25006install-strip-m4: installdirs
9b980aa1
RW
25007 @: $(MAKE); $(unstage)
25008 @r=`${PWD_COMMAND}`; export r; \
25009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25010 $(HOST_EXPORTS) \
a90ef4bf 25011 (cd $(HOST_SUBDIR)/m4 && \
9b980aa1
RW
25012 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25013
a90ef4bf 25014@endif m4
9b980aa1 25015
56a8fe78 25016# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25017
a90ef4bf
JM
25018.PHONY: maybe-info-m4 info-m4
25019maybe-info-m4:
25020@if m4
25021maybe-info-m4: info-m4
4fa63067 25022
a90ef4bf
JM
25023info-m4: \
25024 configure-m4
0aed8855 25025 @: $(MAKE); $(unstage)
a90ef4bf 25026 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25027 r=`${PWD_COMMAND}`; export r; \
25028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25029 $(HOST_EXPORTS) \
b813574b 25030 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25032 done; \
22121df0 25033 echo "Doing info in m4"; \
a90ef4bf 25034 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25037 "RANLIB=$${RANLIB}" \
0c24b341 25038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25039 info) \
2a4cbe27
NN
25040 || exit 1
25041
a90ef4bf 25042@endif m4
2a4cbe27 25043
a90ef4bf
JM
25044.PHONY: maybe-dvi-m4 dvi-m4
25045maybe-dvi-m4:
25046@if m4
25047maybe-dvi-m4: dvi-m4
2a4cbe27 25048
a90ef4bf
JM
25049dvi-m4: \
25050 configure-m4
0aed8855 25051 @: $(MAKE); $(unstage)
a90ef4bf 25052 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25053 r=`${PWD_COMMAND}`; export r; \
25054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25055 $(HOST_EXPORTS) \
b813574b 25056 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25058 done; \
22121df0 25059 echo "Doing dvi in m4"; \
a90ef4bf 25060 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25063 "RANLIB=$${RANLIB}" \
0c24b341 25064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25065 dvi) \
2a4cbe27
NN
25066 || exit 1
25067
a90ef4bf 25068@endif m4
2a4cbe27 25069
a90ef4bf
JM
25070.PHONY: maybe-pdf-m4 pdf-m4
25071maybe-pdf-m4:
25072@if m4
25073maybe-pdf-m4: pdf-m4
56a8fe78 25074
a90ef4bf
JM
25075pdf-m4: \
25076 configure-m4
56a8fe78 25077 @: $(MAKE); $(unstage)
a90ef4bf 25078 @[ -f ./m4/Makefile ] || exit 0; \
56a8fe78
DD
25079 r=`${PWD_COMMAND}`; export r; \
25080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25081 $(HOST_EXPORTS) \
25082 for flag in $(EXTRA_HOST_FLAGS) ; do \
25083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25084 done; \
22121df0 25085 echo "Doing pdf in m4"; \
a90ef4bf 25086 (cd $(HOST_SUBDIR)/m4 && \
56a8fe78
DD
25087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25089 "RANLIB=$${RANLIB}" \
0c24b341 25090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25091 pdf) \
25092 || exit 1
25093
a90ef4bf 25094@endif m4
56a8fe78 25095
a90ef4bf
JM
25096.PHONY: maybe-html-m4 html-m4
25097maybe-html-m4:
25098@if m4
25099maybe-html-m4: html-m4
6d389afc 25100
a90ef4bf
JM
25101html-m4: \
25102 configure-m4
0aed8855 25103 @: $(MAKE); $(unstage)
a90ef4bf 25104 @[ -f ./m4/Makefile ] || exit 0; \
6d389afc
MS
25105 r=`${PWD_COMMAND}`; export r; \
25106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25107 $(HOST_EXPORTS) \
25108 for flag in $(EXTRA_HOST_FLAGS) ; do \
25109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25110 done; \
22121df0 25111 echo "Doing html in m4"; \
a90ef4bf 25112 (cd $(HOST_SUBDIR)/m4 && \
6d389afc
MS
25113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25115 "RANLIB=$${RANLIB}" \
0c24b341 25116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25117 html) \
25118 || exit 1
25119
a90ef4bf 25120@endif m4
6d389afc 25121
a90ef4bf
JM
25122.PHONY: maybe-TAGS-m4 TAGS-m4
25123maybe-TAGS-m4:
25124@if m4
25125maybe-TAGS-m4: TAGS-m4
2a4cbe27 25126
a90ef4bf
JM
25127TAGS-m4: \
25128 configure-m4
0aed8855 25129 @: $(MAKE); $(unstage)
a90ef4bf 25130 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25131 r=`${PWD_COMMAND}`; export r; \
25132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25133 $(HOST_EXPORTS) \
b813574b 25134 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25136 done; \
22121df0 25137 echo "Doing TAGS in m4"; \
a90ef4bf 25138 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25141 "RANLIB=$${RANLIB}" \
0c24b341 25142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25143 TAGS) \
2a4cbe27
NN
25144 || exit 1
25145
a90ef4bf 25146@endif m4
2a4cbe27 25147
a90ef4bf
JM
25148.PHONY: maybe-install-info-m4 install-info-m4
25149maybe-install-info-m4:
25150@if m4
25151maybe-install-info-m4: install-info-m4
2a4cbe27 25152
a90ef4bf
JM
25153install-info-m4: \
25154 configure-m4 \
25155 info-m4
0aed8855 25156 @: $(MAKE); $(unstage)
a90ef4bf 25157 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25158 r=`${PWD_COMMAND}`; export r; \
25159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25160 $(HOST_EXPORTS) \
b813574b 25161 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25163 done; \
22121df0 25164 echo "Doing install-info in m4"; \
a90ef4bf 25165 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25168 "RANLIB=$${RANLIB}" \
0c24b341 25169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25170 install-info) \
2a4cbe27
NN
25171 || exit 1
25172
a90ef4bf 25173@endif m4
2a4cbe27 25174
a90ef4bf
JM
25175.PHONY: maybe-install-pdf-m4 install-pdf-m4
25176maybe-install-pdf-m4:
25177@if m4
25178maybe-install-pdf-m4: install-pdf-m4
a3ca38d2 25179
a90ef4bf
JM
25180install-pdf-m4: \
25181 configure-m4 \
25182 pdf-m4
a3ca38d2 25183 @: $(MAKE); $(unstage)
a90ef4bf 25184 @[ -f ./m4/Makefile ] || exit 0; \
a3ca38d2
DD
25185 r=`${PWD_COMMAND}`; export r; \
25186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25187 $(HOST_EXPORTS) \
25188 for flag in $(EXTRA_HOST_FLAGS) ; do \
25189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25190 done; \
22121df0 25191 echo "Doing install-pdf in m4"; \
a90ef4bf 25192 (cd $(HOST_SUBDIR)/m4 && \
a3ca38d2
DD
25193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25195 "RANLIB=$${RANLIB}" \
0c24b341 25196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25197 install-pdf) \
25198 || exit 1
25199
a90ef4bf 25200@endif m4
a3ca38d2 25201
a90ef4bf
JM
25202.PHONY: maybe-install-html-m4 install-html-m4
25203maybe-install-html-m4:
25204@if m4
25205maybe-install-html-m4: install-html-m4
108a6f8e 25206
a90ef4bf
JM
25207install-html-m4: \
25208 configure-m4 \
25209 html-m4
108a6f8e 25210 @: $(MAKE); $(unstage)
a90ef4bf 25211 @[ -f ./m4/Makefile ] || exit 0; \
108a6f8e
CD
25212 r=`${PWD_COMMAND}`; export r; \
25213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25214 $(HOST_EXPORTS) \
25215 for flag in $(EXTRA_HOST_FLAGS) ; do \
25216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25217 done; \
22121df0 25218 echo "Doing install-html in m4"; \
a90ef4bf 25219 (cd $(HOST_SUBDIR)/m4 && \
108a6f8e
CD
25220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25222 "RANLIB=$${RANLIB}" \
0c24b341 25223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25224 install-html) \
25225 || exit 1
25226
a90ef4bf 25227@endif m4
108a6f8e 25228
a90ef4bf
JM
25229.PHONY: maybe-installcheck-m4 installcheck-m4
25230maybe-installcheck-m4:
25231@if m4
25232maybe-installcheck-m4: installcheck-m4
2a4cbe27 25233
a90ef4bf
JM
25234installcheck-m4: \
25235 configure-m4
0aed8855 25236 @: $(MAKE); $(unstage)
a90ef4bf 25237 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25238 r=`${PWD_COMMAND}`; export r; \
25239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25240 $(HOST_EXPORTS) \
b813574b 25241 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25243 done; \
22121df0 25244 echo "Doing installcheck in m4"; \
a90ef4bf 25245 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25248 "RANLIB=$${RANLIB}" \
0c24b341 25249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25250 installcheck) \
2a4cbe27
NN
25251 || exit 1
25252
a90ef4bf 25253@endif m4
2a4cbe27 25254
a90ef4bf
JM
25255.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
25256maybe-mostlyclean-m4:
25257@if m4
25258maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 25259
a90ef4bf 25260mostlyclean-m4:
0aed8855 25261 @: $(MAKE); $(unstage)
a90ef4bf 25262 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25263 r=`${PWD_COMMAND}`; export r; \
25264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25265 $(HOST_EXPORTS) \
b813574b 25266 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25268 done; \
22121df0 25269 echo "Doing mostlyclean in m4"; \
a90ef4bf 25270 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25273 "RANLIB=$${RANLIB}" \
0c24b341 25274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25275 mostlyclean) \
2a4cbe27
NN
25276 || exit 1
25277
a90ef4bf 25278@endif m4
2a4cbe27 25279
a90ef4bf
JM
25280.PHONY: maybe-clean-m4 clean-m4
25281maybe-clean-m4:
25282@if m4
25283maybe-clean-m4: clean-m4
2a4cbe27 25284
a90ef4bf 25285clean-m4:
0aed8855 25286 @: $(MAKE); $(unstage)
a90ef4bf 25287 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25288 r=`${PWD_COMMAND}`; export r; \
25289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25290 $(HOST_EXPORTS) \
b813574b 25291 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25293 done; \
22121df0 25294 echo "Doing clean in m4"; \
a90ef4bf 25295 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25298 "RANLIB=$${RANLIB}" \
0c24b341 25299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25300 clean) \
2a4cbe27
NN
25301 || exit 1
25302
a90ef4bf 25303@endif m4
2a4cbe27 25304
a90ef4bf
JM
25305.PHONY: maybe-distclean-m4 distclean-m4
25306maybe-distclean-m4:
25307@if m4
25308maybe-distclean-m4: distclean-m4
2a4cbe27 25309
a90ef4bf 25310distclean-m4:
0aed8855 25311 @: $(MAKE); $(unstage)
a90ef4bf 25312 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25313 r=`${PWD_COMMAND}`; export r; \
25314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25315 $(HOST_EXPORTS) \
b813574b 25316 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25318 done; \
22121df0 25319 echo "Doing distclean in m4"; \
a90ef4bf 25320 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25323 "RANLIB=$${RANLIB}" \
0c24b341 25324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25325 distclean) \
2a4cbe27
NN
25326 || exit 1
25327
a90ef4bf 25328@endif m4
2a4cbe27 25329
a90ef4bf
JM
25330.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
25331maybe-maintainer-clean-m4:
25332@if m4
25333maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 25334
a90ef4bf 25335maintainer-clean-m4:
0aed8855 25336 @: $(MAKE); $(unstage)
a90ef4bf 25337 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25338 r=`${PWD_COMMAND}`; export r; \
25339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25340 $(HOST_EXPORTS) \
b813574b 25341 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25343 done; \
22121df0 25344 echo "Doing maintainer-clean in m4"; \
a90ef4bf 25345 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25348 "RANLIB=$${RANLIB}" \
0c24b341 25349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25350 maintainer-clean) \
2a4cbe27
NN
25351 || exit 1
25352
a90ef4bf 25353@endif m4
2a4cbe27 25354
2a4cbe27 25355
a7254363 25356
a90ef4bf
JM
25357.PHONY: configure-readline maybe-configure-readline
25358maybe-configure-readline:
4f0ef2d8 25359@if gcc-bootstrap
a90ef4bf 25360configure-readline: stage_current
4f0ef2d8 25361@endif gcc-bootstrap
a90ef4bf
JM
25362@if readline
25363maybe-configure-readline: configure-readline
25364configure-readline:
0aed8855 25365 @: $(MAKE); $(unstage)
c52c6897 25366 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25368 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
22121df0 25369 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline; \
1f53ca9a 25370 $(HOST_EXPORTS) \
a90ef4bf
JM
25371 echo Configuring in $(HOST_SUBDIR)/readline; \
25372 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4fa63067 25373 case $(srcdir) in \
b00612cc 25374 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25375 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
b00612cc 25376 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25377 esac; \
1b6c0831
L
25378 module_srcdir=readline; \
25379 $(SHELL) \
25380 $$s/$$module_srcdir/configure \
25381 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25382 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25383 --target=${target_alias} \
2a4cbe27 25384 || exit 1
a90ef4bf 25385@endif readline
2a4cbe27 25386
a7254363
PB
25387
25388
d545f33b
PB
25389
25390
a90ef4bf
JM
25391.PHONY: all-readline maybe-all-readline
25392maybe-all-readline:
4f0ef2d8 25393@if gcc-bootstrap
a90ef4bf 25394all-readline: stage_current
4f0ef2d8 25395@endif gcc-bootstrap
a90ef4bf
JM
25396@if readline
25397TARGET-readline=all
25398maybe-all-readline: all-readline
25399all-readline: configure-readline
0aed8855 25400 @: $(MAKE); $(unstage)
4fa63067
NN
25401 @r=`${PWD_COMMAND}`; export r; \
25402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25403 $(HOST_EXPORTS) \
a90ef4bf 25404 (cd $(HOST_SUBDIR)/readline && \
b3676d82 25405 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25406 $(TARGET-readline))
25407@endif readline
2a4cbe27 25408
a7254363 25409
d545f33b
PB
25410
25411
a90ef4bf
JM
25412.PHONY: check-readline maybe-check-readline
25413maybe-check-readline:
25414@if readline
25415maybe-check-readline: check-readline
2a4cbe27 25416
a90ef4bf 25417check-readline:
0aed8855 25418 @: $(MAKE); $(unstage)
4fa63067 25419 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25421 $(HOST_EXPORTS) \
a90ef4bf 25422 (cd $(HOST_SUBDIR)/readline && \
b00612cc 25423 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25424
a90ef4bf 25425@endif readline
2a4cbe27 25426
a90ef4bf
JM
25427.PHONY: install-readline maybe-install-readline
25428maybe-install-readline:
25429@if readline
25430maybe-install-readline: install-readline
2a4cbe27 25431
a90ef4bf 25432install-readline: installdirs
0aed8855 25433 @: $(MAKE); $(unstage)
4fa63067
NN
25434 @r=`${PWD_COMMAND}`; export r; \
25435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25436 $(HOST_EXPORTS) \
a90ef4bf 25437 (cd $(HOST_SUBDIR)/readline && \
2da12f12 25438 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 25439
a90ef4bf 25440@endif readline
9b980aa1 25441
a90ef4bf
JM
25442.PHONY: install-strip-readline maybe-install-strip-readline
25443maybe-install-strip-readline:
25444@if readline
25445maybe-install-strip-readline: install-strip-readline
25446
25447install-strip-readline: installdirs
9b980aa1
RW
25448 @: $(MAKE); $(unstage)
25449 @r=`${PWD_COMMAND}`; export r; \
25450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25451 $(HOST_EXPORTS) \
a90ef4bf 25452 (cd $(HOST_SUBDIR)/readline && \
9b980aa1
RW
25453 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25454
a90ef4bf 25455@endif readline
9b980aa1 25456
56a8fe78 25457# Other targets (info, dvi, pdf, etc.)
4fa63067 25458
a90ef4bf
JM
25459.PHONY: maybe-info-readline info-readline
25460maybe-info-readline:
25461@if readline
25462maybe-info-readline: info-readline
4fa63067 25463
a90ef4bf
JM
25464info-readline: \
25465 configure-readline
0aed8855 25466 @: $(MAKE); $(unstage)
a90ef4bf 25467 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25468 r=`${PWD_COMMAND}`; export r; \
25469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25470 $(HOST_EXPORTS) \
b813574b 25471 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25473 done; \
22121df0 25474 echo "Doing info in readline"; \
a90ef4bf 25475 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25478 "RANLIB=$${RANLIB}" \
0c24b341 25479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25480 info) \
2a4cbe27
NN
25481 || exit 1
25482
a90ef4bf 25483@endif readline
2a4cbe27 25484
a90ef4bf
JM
25485.PHONY: maybe-dvi-readline dvi-readline
25486maybe-dvi-readline:
25487@if readline
25488maybe-dvi-readline: dvi-readline
2a4cbe27 25489
a90ef4bf
JM
25490dvi-readline: \
25491 configure-readline
0aed8855 25492 @: $(MAKE); $(unstage)
a90ef4bf 25493 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25494 r=`${PWD_COMMAND}`; export r; \
25495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25496 $(HOST_EXPORTS) \
b813574b 25497 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25499 done; \
22121df0 25500 echo "Doing dvi in readline"; \
a90ef4bf 25501 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25504 "RANLIB=$${RANLIB}" \
0c24b341 25505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25506 dvi) \
2a4cbe27
NN
25507 || exit 1
25508
a90ef4bf 25509@endif readline
2a4cbe27 25510
a90ef4bf
JM
25511.PHONY: maybe-pdf-readline pdf-readline
25512maybe-pdf-readline:
25513@if readline
25514maybe-pdf-readline: pdf-readline
56a8fe78 25515
a90ef4bf
JM
25516pdf-readline: \
25517 configure-readline
56a8fe78 25518 @: $(MAKE); $(unstage)
a90ef4bf 25519 @[ -f ./readline/Makefile ] || exit 0; \
56a8fe78
DD
25520 r=`${PWD_COMMAND}`; export r; \
25521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25522 $(HOST_EXPORTS) \
25523 for flag in $(EXTRA_HOST_FLAGS) ; do \
25524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25525 done; \
22121df0 25526 echo "Doing pdf in readline"; \
a90ef4bf 25527 (cd $(HOST_SUBDIR)/readline && \
56a8fe78
DD
25528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25530 "RANLIB=$${RANLIB}" \
0c24b341 25531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25532 pdf) \
25533 || exit 1
25534
a90ef4bf 25535@endif readline
56a8fe78 25536
a90ef4bf
JM
25537.PHONY: maybe-html-readline html-readline
25538maybe-html-readline:
25539@if readline
25540maybe-html-readline: html-readline
6d389afc 25541
a90ef4bf
JM
25542html-readline: \
25543 configure-readline
0aed8855 25544 @: $(MAKE); $(unstage)
a90ef4bf 25545 @[ -f ./readline/Makefile ] || exit 0; \
6d389afc
MS
25546 r=`${PWD_COMMAND}`; export r; \
25547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25548 $(HOST_EXPORTS) \
25549 for flag in $(EXTRA_HOST_FLAGS) ; do \
25550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25551 done; \
22121df0 25552 echo "Doing html in readline"; \
a90ef4bf 25553 (cd $(HOST_SUBDIR)/readline && \
6d389afc
MS
25554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25556 "RANLIB=$${RANLIB}" \
0c24b341 25557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25558 html) \
25559 || exit 1
25560
a90ef4bf 25561@endif readline
6d389afc 25562
a90ef4bf
JM
25563.PHONY: maybe-TAGS-readline TAGS-readline
25564maybe-TAGS-readline:
25565@if readline
25566maybe-TAGS-readline: TAGS-readline
2a4cbe27 25567
a90ef4bf
JM
25568TAGS-readline: \
25569 configure-readline
0aed8855 25570 @: $(MAKE); $(unstage)
a90ef4bf 25571 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25572 r=`${PWD_COMMAND}`; export r; \
25573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25574 $(HOST_EXPORTS) \
b813574b 25575 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25577 done; \
22121df0 25578 echo "Doing TAGS in readline"; \
a90ef4bf 25579 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25582 "RANLIB=$${RANLIB}" \
0c24b341 25583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25584 TAGS) \
2a4cbe27
NN
25585 || exit 1
25586
a90ef4bf 25587@endif readline
2a4cbe27 25588
a90ef4bf
JM
25589.PHONY: maybe-install-info-readline install-info-readline
25590maybe-install-info-readline:
25591@if readline
25592maybe-install-info-readline: install-info-readline
2a4cbe27 25593
a90ef4bf
JM
25594install-info-readline: \
25595 configure-readline \
25596 info-readline
0aed8855 25597 @: $(MAKE); $(unstage)
a90ef4bf 25598 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25599 r=`${PWD_COMMAND}`; export r; \
25600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25601 $(HOST_EXPORTS) \
b813574b 25602 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25604 done; \
22121df0 25605 echo "Doing install-info in readline"; \
a90ef4bf 25606 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25609 "RANLIB=$${RANLIB}" \
0c24b341 25610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25611 install-info) \
2a4cbe27
NN
25612 || exit 1
25613
a90ef4bf 25614@endif readline
2a4cbe27 25615
a90ef4bf
JM
25616.PHONY: maybe-install-pdf-readline install-pdf-readline
25617maybe-install-pdf-readline:
25618@if readline
25619maybe-install-pdf-readline: install-pdf-readline
a3ca38d2 25620
a90ef4bf
JM
25621install-pdf-readline: \
25622 configure-readline \
25623 pdf-readline
a3ca38d2 25624 @: $(MAKE); $(unstage)
a90ef4bf 25625 @[ -f ./readline/Makefile ] || exit 0; \
a3ca38d2
DD
25626 r=`${PWD_COMMAND}`; export r; \
25627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25628 $(HOST_EXPORTS) \
25629 for flag in $(EXTRA_HOST_FLAGS) ; do \
25630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25631 done; \
22121df0 25632 echo "Doing install-pdf in readline"; \
a90ef4bf 25633 (cd $(HOST_SUBDIR)/readline && \
a3ca38d2
DD
25634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25636 "RANLIB=$${RANLIB}" \
0c24b341 25637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25638 install-pdf) \
25639 || exit 1
25640
a90ef4bf 25641@endif readline
a3ca38d2 25642
a90ef4bf
JM
25643.PHONY: maybe-install-html-readline install-html-readline
25644maybe-install-html-readline:
25645@if readline
25646maybe-install-html-readline: install-html-readline
108a6f8e 25647
a90ef4bf
JM
25648install-html-readline: \
25649 configure-readline \
25650 html-readline
108a6f8e 25651 @: $(MAKE); $(unstage)
a90ef4bf 25652 @[ -f ./readline/Makefile ] || exit 0; \
108a6f8e
CD
25653 r=`${PWD_COMMAND}`; export r; \
25654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25655 $(HOST_EXPORTS) \
25656 for flag in $(EXTRA_HOST_FLAGS) ; do \
25657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25658 done; \
22121df0 25659 echo "Doing install-html in readline"; \
a90ef4bf 25660 (cd $(HOST_SUBDIR)/readline && \
108a6f8e
CD
25661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25663 "RANLIB=$${RANLIB}" \
0c24b341 25664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25665 install-html) \
25666 || exit 1
25667
a90ef4bf 25668@endif readline
108a6f8e 25669
a90ef4bf
JM
25670.PHONY: maybe-installcheck-readline installcheck-readline
25671maybe-installcheck-readline:
25672@if readline
25673maybe-installcheck-readline: installcheck-readline
2a4cbe27 25674
a90ef4bf
JM
25675installcheck-readline: \
25676 configure-readline
0aed8855 25677 @: $(MAKE); $(unstage)
a90ef4bf 25678 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25679 r=`${PWD_COMMAND}`; export r; \
25680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25681 $(HOST_EXPORTS) \
b813574b 25682 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25684 done; \
22121df0 25685 echo "Doing installcheck in readline"; \
a90ef4bf 25686 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25689 "RANLIB=$${RANLIB}" \
0c24b341 25690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25691 installcheck) \
2a4cbe27
NN
25692 || exit 1
25693
a90ef4bf 25694@endif readline
2a4cbe27 25695
a90ef4bf
JM
25696.PHONY: maybe-mostlyclean-readline mostlyclean-readline
25697maybe-mostlyclean-readline:
25698@if readline
25699maybe-mostlyclean-readline: mostlyclean-readline
2a4cbe27 25700
a90ef4bf 25701mostlyclean-readline:
0aed8855 25702 @: $(MAKE); $(unstage)
a90ef4bf 25703 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25704 r=`${PWD_COMMAND}`; export r; \
25705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25706 $(HOST_EXPORTS) \
b813574b 25707 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25709 done; \
22121df0 25710 echo "Doing mostlyclean in readline"; \
a90ef4bf 25711 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25714 "RANLIB=$${RANLIB}" \
0c24b341 25715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25716 mostlyclean) \
2a4cbe27
NN
25717 || exit 1
25718
a90ef4bf 25719@endif readline
2a4cbe27 25720
a90ef4bf
JM
25721.PHONY: maybe-clean-readline clean-readline
25722maybe-clean-readline:
25723@if readline
25724maybe-clean-readline: clean-readline
2a4cbe27 25725
a90ef4bf 25726clean-readline:
0aed8855 25727 @: $(MAKE); $(unstage)
a90ef4bf 25728 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25729 r=`${PWD_COMMAND}`; export r; \
25730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25731 $(HOST_EXPORTS) \
b813574b 25732 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25734 done; \
22121df0 25735 echo "Doing clean in readline"; \
a90ef4bf 25736 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25739 "RANLIB=$${RANLIB}" \
0c24b341 25740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25741 clean) \
2a4cbe27
NN
25742 || exit 1
25743
a90ef4bf 25744@endif readline
2a4cbe27 25745
a90ef4bf
JM
25746.PHONY: maybe-distclean-readline distclean-readline
25747maybe-distclean-readline:
25748@if readline
25749maybe-distclean-readline: distclean-readline
2a4cbe27 25750
a90ef4bf 25751distclean-readline:
0aed8855 25752 @: $(MAKE); $(unstage)
a90ef4bf 25753 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25754 r=`${PWD_COMMAND}`; export r; \
25755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25756 $(HOST_EXPORTS) \
b813574b 25757 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25759 done; \
22121df0 25760 echo "Doing distclean in readline"; \
a90ef4bf 25761 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25764 "RANLIB=$${RANLIB}" \
0c24b341 25765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25766 distclean) \
2a4cbe27
NN
25767 || exit 1
25768
a90ef4bf 25769@endif readline
2a4cbe27 25770
a90ef4bf
JM
25771.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
25772maybe-maintainer-clean-readline:
25773@if readline
25774maybe-maintainer-clean-readline: maintainer-clean-readline
2a4cbe27 25775
a90ef4bf 25776maintainer-clean-readline:
0aed8855 25777 @: $(MAKE); $(unstage)
a90ef4bf 25778 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25779 r=`${PWD_COMMAND}`; export r; \
25780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25781 $(HOST_EXPORTS) \
b813574b 25782 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25784 done; \
22121df0 25785 echo "Doing maintainer-clean in readline"; \
a90ef4bf 25786 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25789 "RANLIB=$${RANLIB}" \
0c24b341 25790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25791 maintainer-clean) \
2a4cbe27
NN
25792 || exit 1
25793
a90ef4bf 25794@endif readline
2a4cbe27 25795
2a4cbe27 25796
a7254363 25797
a90ef4bf
JM
25798.PHONY: configure-sid maybe-configure-sid
25799maybe-configure-sid:
4f0ef2d8 25800@if gcc-bootstrap
a90ef4bf 25801configure-sid: stage_current
4f0ef2d8 25802@endif gcc-bootstrap
a90ef4bf
JM
25803@if sid
25804maybe-configure-sid: configure-sid
25805configure-sid:
0aed8855 25806 @: $(MAKE); $(unstage)
c52c6897 25807 @r=`${PWD_COMMAND}`; export r; \
4fa63067 25808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25809 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
22121df0 25810 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid; \
1f53ca9a 25811 $(HOST_EXPORTS) \
a90ef4bf
JM
25812 echo Configuring in $(HOST_SUBDIR)/sid; \
25813 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4fa63067 25814 case $(srcdir) in \
b00612cc 25815 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25816 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
b00612cc 25817 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25818 esac; \
1b6c0831
L
25819 module_srcdir=sid; \
25820 $(SHELL) \
25821 $$s/$$module_srcdir/configure \
25822 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25823 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25824 --target=${target_alias} \
4fa63067 25825 || exit 1
a90ef4bf 25826@endif sid
2a4cbe27 25827
a7254363
PB
25828
25829
d545f33b
PB
25830
25831
a90ef4bf
JM
25832.PHONY: all-sid maybe-all-sid
25833maybe-all-sid:
4f0ef2d8 25834@if gcc-bootstrap
a90ef4bf 25835all-sid: stage_current
4f0ef2d8 25836@endif gcc-bootstrap
a90ef4bf
JM
25837@if sid
25838TARGET-sid=all
25839maybe-all-sid: all-sid
25840all-sid: configure-sid
0aed8855 25841 @: $(MAKE); $(unstage)
4fa63067
NN
25842 @r=`${PWD_COMMAND}`; export r; \
25843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25844 $(HOST_EXPORTS) \
a90ef4bf 25845 (cd $(HOST_SUBDIR)/sid && \
b3676d82 25846 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25847 $(TARGET-sid))
25848@endif sid
2a4cbe27 25849
a7254363 25850
d545f33b
PB
25851
25852
a90ef4bf
JM
25853.PHONY: check-sid maybe-check-sid
25854maybe-check-sid:
25855@if sid
25856maybe-check-sid: check-sid
2a4cbe27 25857
a90ef4bf 25858check-sid:
0aed8855 25859 @: $(MAKE); $(unstage)
4fa63067 25860 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25862 $(HOST_EXPORTS) \
a90ef4bf 25863 (cd $(HOST_SUBDIR)/sid && \
b00612cc 25864 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25865
a90ef4bf 25866@endif sid
2a4cbe27 25867
a90ef4bf
JM
25868.PHONY: install-sid maybe-install-sid
25869maybe-install-sid:
25870@if sid
25871maybe-install-sid: install-sid
2a4cbe27 25872
a90ef4bf 25873install-sid: installdirs
0aed8855 25874 @: $(MAKE); $(unstage)
4fa63067 25875 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25877 $(HOST_EXPORTS) \
a90ef4bf 25878 (cd $(HOST_SUBDIR)/sid && \
2da12f12 25879 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25880
a90ef4bf 25881@endif sid
2a4cbe27 25882
a90ef4bf
JM
25883.PHONY: install-strip-sid maybe-install-strip-sid
25884maybe-install-strip-sid:
25885@if sid
25886maybe-install-strip-sid: install-strip-sid
9b980aa1 25887
a90ef4bf 25888install-strip-sid: installdirs
9b980aa1
RW
25889 @: $(MAKE); $(unstage)
25890 @r=`${PWD_COMMAND}`; export r; \
25891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25892 $(HOST_EXPORTS) \
a90ef4bf 25893 (cd $(HOST_SUBDIR)/sid && \
9b980aa1
RW
25894 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25895
a90ef4bf 25896@endif sid
9b980aa1 25897
56a8fe78 25898# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25899
a90ef4bf
JM
25900.PHONY: maybe-info-sid info-sid
25901maybe-info-sid:
25902@if sid
25903maybe-info-sid: info-sid
4fa63067 25904
a90ef4bf
JM
25905info-sid: \
25906 configure-sid
0aed8855 25907 @: $(MAKE); $(unstage)
a90ef4bf 25908 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25909 r=`${PWD_COMMAND}`; export r; \
25910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25911 $(HOST_EXPORTS) \
b813574b 25912 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25914 done; \
22121df0 25915 echo "Doing info in sid"; \
a90ef4bf 25916 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25919 "RANLIB=$${RANLIB}" \
0c24b341 25920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25921 info) \
2a4cbe27
NN
25922 || exit 1
25923
a90ef4bf 25924@endif sid
2a4cbe27 25925
a90ef4bf
JM
25926.PHONY: maybe-dvi-sid dvi-sid
25927maybe-dvi-sid:
25928@if sid
25929maybe-dvi-sid: dvi-sid
2a4cbe27 25930
a90ef4bf
JM
25931dvi-sid: \
25932 configure-sid
0aed8855 25933 @: $(MAKE); $(unstage)
a90ef4bf 25934 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
25935 r=`${PWD_COMMAND}`; export r; \
25936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25937 $(HOST_EXPORTS) \
b813574b 25938 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25940 done; \
22121df0 25941 echo "Doing dvi in sid"; \
a90ef4bf 25942 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
25943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25945 "RANLIB=$${RANLIB}" \
0c24b341 25946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25947 dvi) \
2a4cbe27
NN
25948 || exit 1
25949
a90ef4bf 25950@endif sid
2a4cbe27 25951
a90ef4bf
JM
25952.PHONY: maybe-pdf-sid pdf-sid
25953maybe-pdf-sid:
25954@if sid
25955maybe-pdf-sid: pdf-sid
56a8fe78 25956
a90ef4bf
JM
25957pdf-sid: \
25958 configure-sid
56a8fe78 25959 @: $(MAKE); $(unstage)
a90ef4bf 25960 @[ -f ./sid/Makefile ] || exit 0; \
56a8fe78
DD
25961 r=`${PWD_COMMAND}`; export r; \
25962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25963 $(HOST_EXPORTS) \
25964 for flag in $(EXTRA_HOST_FLAGS) ; do \
25965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25966 done; \
22121df0 25967 echo "Doing pdf in sid"; \
a90ef4bf 25968 (cd $(HOST_SUBDIR)/sid && \
56a8fe78
DD
25969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25971 "RANLIB=$${RANLIB}" \
0c24b341 25972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25973 pdf) \
25974 || exit 1
25975
a90ef4bf 25976@endif sid
56a8fe78 25977
a90ef4bf
JM
25978.PHONY: maybe-html-sid html-sid
25979maybe-html-sid:
25980@if sid
25981maybe-html-sid: html-sid
6d389afc 25982
a90ef4bf
JM
25983html-sid: \
25984 configure-sid
0aed8855 25985 @: $(MAKE); $(unstage)
a90ef4bf 25986 @[ -f ./sid/Makefile ] || exit 0; \
6d389afc
MS
25987 r=`${PWD_COMMAND}`; export r; \
25988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25989 $(HOST_EXPORTS) \
25990 for flag in $(EXTRA_HOST_FLAGS) ; do \
25991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25992 done; \
22121df0 25993 echo "Doing html in sid"; \
a90ef4bf 25994 (cd $(HOST_SUBDIR)/sid && \
6d389afc
MS
25995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25997 "RANLIB=$${RANLIB}" \
0c24b341 25998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25999 html) \
26000 || exit 1
26001
a90ef4bf 26002@endif sid
6d389afc 26003
a90ef4bf
JM
26004.PHONY: maybe-TAGS-sid TAGS-sid
26005maybe-TAGS-sid:
26006@if sid
26007maybe-TAGS-sid: TAGS-sid
2a4cbe27 26008
a90ef4bf
JM
26009TAGS-sid: \
26010 configure-sid
0aed8855 26011 @: $(MAKE); $(unstage)
a90ef4bf 26012 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26013 r=`${PWD_COMMAND}`; export r; \
26014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26015 $(HOST_EXPORTS) \
b813574b 26016 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26018 done; \
22121df0 26019 echo "Doing TAGS in sid"; \
a90ef4bf 26020 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26023 "RANLIB=$${RANLIB}" \
0c24b341 26024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26025 TAGS) \
2a4cbe27
NN
26026 || exit 1
26027
a90ef4bf 26028@endif sid
2a4cbe27 26029
a90ef4bf
JM
26030.PHONY: maybe-install-info-sid install-info-sid
26031maybe-install-info-sid:
26032@if sid
26033maybe-install-info-sid: install-info-sid
2a4cbe27 26034
a90ef4bf
JM
26035install-info-sid: \
26036 configure-sid \
26037 info-sid
0aed8855 26038 @: $(MAKE); $(unstage)
a90ef4bf 26039 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26040 r=`${PWD_COMMAND}`; export r; \
26041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26042 $(HOST_EXPORTS) \
b813574b 26043 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26045 done; \
22121df0 26046 echo "Doing install-info in sid"; \
a90ef4bf 26047 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26050 "RANLIB=$${RANLIB}" \
0c24b341 26051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26052 install-info) \
2a4cbe27
NN
26053 || exit 1
26054
a90ef4bf 26055@endif sid
2a4cbe27 26056
a90ef4bf
JM
26057.PHONY: maybe-install-pdf-sid install-pdf-sid
26058maybe-install-pdf-sid:
26059@if sid
26060maybe-install-pdf-sid: install-pdf-sid
a3ca38d2 26061
a90ef4bf
JM
26062install-pdf-sid: \
26063 configure-sid \
26064 pdf-sid
a3ca38d2 26065 @: $(MAKE); $(unstage)
a90ef4bf 26066 @[ -f ./sid/Makefile ] || exit 0; \
a3ca38d2
DD
26067 r=`${PWD_COMMAND}`; export r; \
26068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26069 $(HOST_EXPORTS) \
26070 for flag in $(EXTRA_HOST_FLAGS) ; do \
26071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26072 done; \
22121df0 26073 echo "Doing install-pdf in sid"; \
a90ef4bf 26074 (cd $(HOST_SUBDIR)/sid && \
a3ca38d2
DD
26075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26077 "RANLIB=$${RANLIB}" \
0c24b341 26078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26079 install-pdf) \
26080 || exit 1
26081
a90ef4bf 26082@endif sid
a3ca38d2 26083
a90ef4bf
JM
26084.PHONY: maybe-install-html-sid install-html-sid
26085maybe-install-html-sid:
26086@if sid
26087maybe-install-html-sid: install-html-sid
108a6f8e 26088
a90ef4bf
JM
26089install-html-sid: \
26090 configure-sid \
26091 html-sid
108a6f8e 26092 @: $(MAKE); $(unstage)
a90ef4bf 26093 @[ -f ./sid/Makefile ] || exit 0; \
108a6f8e
CD
26094 r=`${PWD_COMMAND}`; export r; \
26095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26096 $(HOST_EXPORTS) \
26097 for flag in $(EXTRA_HOST_FLAGS) ; do \
26098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26099 done; \
22121df0 26100 echo "Doing install-html in sid"; \
a90ef4bf 26101 (cd $(HOST_SUBDIR)/sid && \
108a6f8e
CD
26102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26104 "RANLIB=$${RANLIB}" \
0c24b341 26105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26106 install-html) \
26107 || exit 1
26108
a90ef4bf 26109@endif sid
108a6f8e 26110
a90ef4bf
JM
26111.PHONY: maybe-installcheck-sid installcheck-sid
26112maybe-installcheck-sid:
26113@if sid
26114maybe-installcheck-sid: installcheck-sid
2a4cbe27 26115
a90ef4bf
JM
26116installcheck-sid: \
26117 configure-sid
0aed8855 26118 @: $(MAKE); $(unstage)
a90ef4bf 26119 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26120 r=`${PWD_COMMAND}`; export r; \
26121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26122 $(HOST_EXPORTS) \
b813574b 26123 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26125 done; \
22121df0 26126 echo "Doing installcheck in sid"; \
a90ef4bf 26127 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26130 "RANLIB=$${RANLIB}" \
0c24b341 26131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26132 installcheck) \
2a4cbe27
NN
26133 || exit 1
26134
a90ef4bf 26135@endif sid
2a4cbe27 26136
a90ef4bf
JM
26137.PHONY: maybe-mostlyclean-sid mostlyclean-sid
26138maybe-mostlyclean-sid:
26139@if sid
26140maybe-mostlyclean-sid: mostlyclean-sid
2a4cbe27 26141
a90ef4bf 26142mostlyclean-sid:
0aed8855 26143 @: $(MAKE); $(unstage)
a90ef4bf 26144 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26145 r=`${PWD_COMMAND}`; export r; \
26146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26147 $(HOST_EXPORTS) \
b813574b 26148 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26150 done; \
22121df0 26151 echo "Doing mostlyclean in sid"; \
a90ef4bf 26152 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26155 "RANLIB=$${RANLIB}" \
0c24b341 26156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26157 mostlyclean) \
2a4cbe27
NN
26158 || exit 1
26159
a90ef4bf 26160@endif sid
2a4cbe27 26161
a90ef4bf
JM
26162.PHONY: maybe-clean-sid clean-sid
26163maybe-clean-sid:
26164@if sid
26165maybe-clean-sid: clean-sid
2a4cbe27 26166
a90ef4bf 26167clean-sid:
0aed8855 26168 @: $(MAKE); $(unstage)
a90ef4bf 26169 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26170 r=`${PWD_COMMAND}`; export r; \
26171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26172 $(HOST_EXPORTS) \
b813574b 26173 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26175 done; \
22121df0 26176 echo "Doing clean in sid"; \
a90ef4bf 26177 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26180 "RANLIB=$${RANLIB}" \
0c24b341 26181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26182 clean) \
2a4cbe27
NN
26183 || exit 1
26184
a90ef4bf 26185@endif sid
2a4cbe27 26186
a90ef4bf
JM
26187.PHONY: maybe-distclean-sid distclean-sid
26188maybe-distclean-sid:
26189@if sid
26190maybe-distclean-sid: distclean-sid
2a4cbe27 26191
a90ef4bf 26192distclean-sid:
0aed8855 26193 @: $(MAKE); $(unstage)
a90ef4bf 26194 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26195 r=`${PWD_COMMAND}`; export r; \
26196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26197 $(HOST_EXPORTS) \
b813574b 26198 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26200 done; \
22121df0 26201 echo "Doing distclean in sid"; \
a90ef4bf 26202 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26205 "RANLIB=$${RANLIB}" \
0c24b341 26206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26207 distclean) \
2a4cbe27
NN
26208 || exit 1
26209
a90ef4bf 26210@endif sid
2a4cbe27 26211
a90ef4bf
JM
26212.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
26213maybe-maintainer-clean-sid:
26214@if sid
26215maybe-maintainer-clean-sid: maintainer-clean-sid
2a4cbe27 26216
a90ef4bf 26217maintainer-clean-sid:
0aed8855 26218 @: $(MAKE); $(unstage)
a90ef4bf 26219 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26220 r=`${PWD_COMMAND}`; export r; \
26221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26222 $(HOST_EXPORTS) \
b813574b 26223 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26225 done; \
22121df0 26226 echo "Doing maintainer-clean in sid"; \
a90ef4bf 26227 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26230 "RANLIB=$${RANLIB}" \
0c24b341 26231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26232 maintainer-clean) \
2a4cbe27
NN
26233 || exit 1
26234
a90ef4bf 26235@endif sid
2a4cbe27 26236
a2592b1b 26237
a7254363 26238
a90ef4bf
JM
26239.PHONY: configure-sim maybe-configure-sim
26240maybe-configure-sim:
4f0ef2d8 26241@if gcc-bootstrap
a90ef4bf 26242configure-sim: stage_current
4f0ef2d8 26243@endif gcc-bootstrap
a90ef4bf
JM
26244@if sim
26245maybe-configure-sim: configure-sim
26246configure-sim:
26247 @: $(MAKE); $(unstage)
c52c6897
PB
26248 @r=`${PWD_COMMAND}`; export r; \
26249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26250 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
22121df0 26251 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim; \
1f53ca9a 26252 $(HOST_EXPORTS) \
a90ef4bf
JM
26253 echo Configuring in $(HOST_SUBDIR)/sim; \
26254 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4fa63067 26255 case $(srcdir) in \
b00612cc 26256 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26257 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
b00612cc 26258 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26259 esac; \
1b6c0831
L
26260 module_srcdir=sim; \
26261 $(SHELL) \
26262 $$s/$$module_srcdir/configure \
26263 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26264 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26265 --target=${target_alias} \
a2592b1b 26266 || exit 1
a90ef4bf 26267@endif sim
a2592b1b 26268
a7254363
PB
26269
26270
a90ef4bf
JM
26271
26272
26273.PHONY: all-sim maybe-all-sim
26274maybe-all-sim:
26275@if gcc-bootstrap
26276all-sim: stage_current
26277@endif gcc-bootstrap
26278@if sim
26279TARGET-sim=all
26280maybe-all-sim: all-sim
26281all-sim: configure-sim
26282 @: $(MAKE); $(unstage)
c52c6897
PB
26283 @r=`${PWD_COMMAND}`; export r; \
26284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26285 $(HOST_EXPORTS) \
26286 (cd $(HOST_SUBDIR)/sim && \
b3676d82 26287 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26288 $(TARGET-sim))
26289@endif sim
d545f33b 26290
a90ef4bf
JM
26291
26292
26293
26294.PHONY: check-sim maybe-check-sim
26295maybe-check-sim:
26296@if sim
26297maybe-check-sim: check-sim
26298
26299check-sim:
26300 @: $(MAKE); $(unstage)
c52c6897
PB
26301 @r=`${PWD_COMMAND}`; export r; \
26302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26303 $(HOST_EXPORTS) \
a90ef4bf
JM
26304 (cd $(HOST_SUBDIR)/sim && \
26305 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 26306
a90ef4bf
JM
26307@endif sim
26308
26309.PHONY: install-sim maybe-install-sim
26310maybe-install-sim:
26311@if sim
26312maybe-install-sim: install-sim
26313
26314install-sim: installdirs
26315 @: $(MAKE); $(unstage)
c52c6897
PB
26316 @r=`${PWD_COMMAND}`; export r; \
26317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26318 $(HOST_EXPORTS) \
a90ef4bf
JM
26319 (cd $(HOST_SUBDIR)/sim && \
26320 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 26321
a90ef4bf
JM
26322@endif sim
26323
26324.PHONY: install-strip-sim maybe-install-strip-sim
26325maybe-install-strip-sim:
26326@if sim
26327maybe-install-strip-sim: install-strip-sim
26328
26329install-strip-sim: installdirs
26330 @: $(MAKE); $(unstage)
c52c6897
PB
26331 @r=`${PWD_COMMAND}`; export r; \
26332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26333 $(HOST_EXPORTS) \
a90ef4bf
JM
26334 (cd $(HOST_SUBDIR)/sim && \
26335 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 26336
a90ef4bf 26337@endif sim
9b980aa1 26338
56a8fe78 26339# Other targets (info, dvi, pdf, etc.)
4fa63067 26340
a90ef4bf
JM
26341.PHONY: maybe-info-sim info-sim
26342maybe-info-sim:
26343@if sim
26344maybe-info-sim: info-sim
4fa63067 26345
a90ef4bf
JM
26346info-sim: \
26347 configure-sim
26348 @: $(MAKE); $(unstage)
26349 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26350 r=`${PWD_COMMAND}`; export r; \
26351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26352 $(HOST_EXPORTS) \
b813574b 26353 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26355 done; \
22121df0 26356 echo "Doing info in sim"; \
a90ef4bf 26357 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26360 "RANLIB=$${RANLIB}" \
0c24b341 26361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26362 info) \
2a4cbe27
NN
26363 || exit 1
26364
a90ef4bf 26365@endif sim
2a4cbe27 26366
a90ef4bf
JM
26367.PHONY: maybe-dvi-sim dvi-sim
26368maybe-dvi-sim:
26369@if sim
26370maybe-dvi-sim: dvi-sim
2a4cbe27 26371
a90ef4bf
JM
26372dvi-sim: \
26373 configure-sim
26374 @: $(MAKE); $(unstage)
26375 @[ -f ./sim/Makefile ] || exit 0; \
b813574b 26376 r=`${PWD_COMMAND}`; export r; \
b40e3958 26377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26378 $(HOST_EXPORTS) \
b813574b 26379 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26381 done; \
22121df0 26382 echo "Doing dvi in sim"; \
a90ef4bf 26383 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26386 "RANLIB=$${RANLIB}" \
0c24b341 26387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26388 dvi) \
2a4cbe27
NN
26389 || exit 1
26390
a90ef4bf 26391@endif sim
2a4cbe27 26392
a90ef4bf
JM
26393.PHONY: maybe-pdf-sim pdf-sim
26394maybe-pdf-sim:
26395@if sim
26396maybe-pdf-sim: pdf-sim
56a8fe78 26397
a90ef4bf
JM
26398pdf-sim: \
26399 configure-sim
26400 @: $(MAKE); $(unstage)
26401 @[ -f ./sim/Makefile ] || exit 0; \
56a8fe78
DD
26402 r=`${PWD_COMMAND}`; export r; \
26403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26404 $(HOST_EXPORTS) \
26405 for flag in $(EXTRA_HOST_FLAGS) ; do \
26406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26407 done; \
22121df0 26408 echo "Doing pdf in sim"; \
a90ef4bf 26409 (cd $(HOST_SUBDIR)/sim && \
56a8fe78
DD
26410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26412 "RANLIB=$${RANLIB}" \
0c24b341 26413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26414 pdf) \
26415 || exit 1
26416
a90ef4bf 26417@endif sim
56a8fe78 26418
a90ef4bf
JM
26419.PHONY: maybe-html-sim html-sim
26420maybe-html-sim:
26421@if sim
26422maybe-html-sim: html-sim
6d389afc 26423
a90ef4bf
JM
26424html-sim: \
26425 configure-sim
26426 @: $(MAKE); $(unstage)
26427 @[ -f ./sim/Makefile ] || exit 0; \
6d389afc
MS
26428 r=`${PWD_COMMAND}`; export r; \
26429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26430 $(HOST_EXPORTS) \
26431 for flag in $(EXTRA_HOST_FLAGS) ; do \
26432 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26433 done; \
22121df0 26434 echo "Doing html in sim"; \
a90ef4bf 26435 (cd $(HOST_SUBDIR)/sim && \
6d389afc
MS
26436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26438 "RANLIB=$${RANLIB}" \
0c24b341 26439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26440 html) \
26441 || exit 1
26442
a90ef4bf 26443@endif sim
6d389afc 26444
a90ef4bf
JM
26445.PHONY: maybe-TAGS-sim TAGS-sim
26446maybe-TAGS-sim:
26447@if sim
26448maybe-TAGS-sim: TAGS-sim
2a4cbe27 26449
a90ef4bf
JM
26450TAGS-sim: \
26451 configure-sim
26452 @: $(MAKE); $(unstage)
26453 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26454 r=`${PWD_COMMAND}`; export r; \
26455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26456 $(HOST_EXPORTS) \
b813574b 26457 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26459 done; \
22121df0 26460 echo "Doing TAGS in sim"; \
a90ef4bf 26461 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26464 "RANLIB=$${RANLIB}" \
0c24b341 26465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26466 TAGS) \
2a4cbe27
NN
26467 || exit 1
26468
a90ef4bf 26469@endif sim
2a4cbe27 26470
a90ef4bf
JM
26471.PHONY: maybe-install-info-sim install-info-sim
26472maybe-install-info-sim:
26473@if sim
26474maybe-install-info-sim: install-info-sim
2a4cbe27 26475
a90ef4bf
JM
26476install-info-sim: \
26477 configure-sim \
26478 info-sim
26479 @: $(MAKE); $(unstage)
26480 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26481 r=`${PWD_COMMAND}`; export r; \
26482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26483 $(HOST_EXPORTS) \
b813574b 26484 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26486 done; \
22121df0 26487 echo "Doing install-info in sim"; \
a90ef4bf
JM
26488 (cd $(HOST_SUBDIR)/sim && \
26489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2a4cbe27
NN
26490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26491 "RANLIB=$${RANLIB}" \
0c24b341 26492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26493 install-info) \
2a4cbe27
NN
26494 || exit 1
26495
a90ef4bf 26496@endif sim
2a4cbe27 26497
a90ef4bf
JM
26498.PHONY: maybe-install-pdf-sim install-pdf-sim
26499maybe-install-pdf-sim:
26500@if sim
26501maybe-install-pdf-sim: install-pdf-sim
a3ca38d2 26502
a90ef4bf
JM
26503install-pdf-sim: \
26504 configure-sim \
26505 pdf-sim
26506 @: $(MAKE); $(unstage)
26507 @[ -f ./sim/Makefile ] || exit 0; \
a3ca38d2
DD
26508 r=`${PWD_COMMAND}`; export r; \
26509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26510 $(HOST_EXPORTS) \
26511 for flag in $(EXTRA_HOST_FLAGS) ; do \
26512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26513 done; \
22121df0 26514 echo "Doing install-pdf in sim"; \
a90ef4bf 26515 (cd $(HOST_SUBDIR)/sim && \
a3ca38d2
DD
26516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26518 "RANLIB=$${RANLIB}" \
0c24b341 26519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26520 install-pdf) \
26521 || exit 1
26522
a90ef4bf 26523@endif sim
a3ca38d2 26524
a90ef4bf
JM
26525.PHONY: maybe-install-html-sim install-html-sim
26526maybe-install-html-sim:
26527@if sim
26528maybe-install-html-sim: install-html-sim
108a6f8e 26529
a90ef4bf
JM
26530install-html-sim: \
26531 configure-sim \
26532 html-sim
26533 @: $(MAKE); $(unstage)
26534 @[ -f ./sim/Makefile ] || exit 0; \
108a6f8e
CD
26535 r=`${PWD_COMMAND}`; export r; \
26536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26537 $(HOST_EXPORTS) \
26538 for flag in $(EXTRA_HOST_FLAGS) ; do \
26539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26540 done; \
22121df0 26541 echo "Doing install-html in sim"; \
a90ef4bf 26542 (cd $(HOST_SUBDIR)/sim && \
108a6f8e
CD
26543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26545 "RANLIB=$${RANLIB}" \
0c24b341 26546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26547 install-html) \
26548 || exit 1
26549
a90ef4bf 26550@endif sim
108a6f8e 26551
a90ef4bf
JM
26552.PHONY: maybe-installcheck-sim installcheck-sim
26553maybe-installcheck-sim:
26554@if sim
26555maybe-installcheck-sim: installcheck-sim
2a4cbe27 26556
a90ef4bf
JM
26557installcheck-sim: \
26558 configure-sim
26559 @: $(MAKE); $(unstage)
26560 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26561 r=`${PWD_COMMAND}`; export r; \
26562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26563 $(HOST_EXPORTS) \
b813574b 26564 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26566 done; \
22121df0 26567 echo "Doing installcheck in sim"; \
a90ef4bf 26568 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26571 "RANLIB=$${RANLIB}" \
0c24b341 26572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26573 installcheck) \
2a4cbe27
NN
26574 || exit 1
26575
a90ef4bf 26576@endif sim
2a4cbe27 26577
a90ef4bf
JM
26578.PHONY: maybe-mostlyclean-sim mostlyclean-sim
26579maybe-mostlyclean-sim:
26580@if sim
26581maybe-mostlyclean-sim: mostlyclean-sim
2a4cbe27 26582
a90ef4bf
JM
26583mostlyclean-sim:
26584 @: $(MAKE); $(unstage)
26585 @[ -f ./sim/Makefile ] || exit 0; \
b813574b
PB
26586 r=`${PWD_COMMAND}`; export r; \
26587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b
PB
26588 $(HOST_EXPORTS) \
26589 for flag in $(EXTRA_HOST_FLAGS) ; do \
26590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26591 done; \
22121df0 26592 echo "Doing mostlyclean in sim"; \
a90ef4bf 26593 (cd $(HOST_SUBDIR)/sim && \
b813574b
PB
26594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26596 "RANLIB=$${RANLIB}" \
0c24b341 26597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b
PB
26598 mostlyclean) \
26599 || exit 1
4fa63067 26600
a90ef4bf 26601@endif sim
4fa63067 26602
a90ef4bf
JM
26603.PHONY: maybe-clean-sim clean-sim
26604maybe-clean-sim:
26605@if sim
26606maybe-clean-sim: clean-sim
4fa63067 26607
a90ef4bf
JM
26608clean-sim:
26609 @: $(MAKE); $(unstage)
26610 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26611 r=`${PWD_COMMAND}`; export r; \
26612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26613 $(HOST_EXPORTS) \
b813574b 26614 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26616 done; \
22121df0 26617 echo "Doing clean in sim"; \
a90ef4bf 26618 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26621 "RANLIB=$${RANLIB}" \
0c24b341 26622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26623 clean) \
2a4cbe27
NN
26624 || exit 1
26625
a90ef4bf 26626@endif sim
2a4cbe27 26627
a90ef4bf
JM
26628.PHONY: maybe-distclean-sim distclean-sim
26629maybe-distclean-sim:
26630@if sim
26631maybe-distclean-sim: distclean-sim
2a4cbe27 26632
a90ef4bf
JM
26633distclean-sim:
26634 @: $(MAKE); $(unstage)
26635 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26636 r=`${PWD_COMMAND}`; export r; \
26637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26638 $(HOST_EXPORTS) \
b813574b 26639 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26641 done; \
22121df0 26642 echo "Doing distclean in sim"; \
a90ef4bf 26643 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26646 "RANLIB=$${RANLIB}" \
0c24b341 26647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26648 distclean) \
2a4cbe27
NN
26649 || exit 1
26650
a90ef4bf 26651@endif sim
2a4cbe27 26652
a90ef4bf
JM
26653.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
26654maybe-maintainer-clean-sim:
26655@if sim
26656maybe-maintainer-clean-sim: maintainer-clean-sim
2a4cbe27 26657
a90ef4bf
JM
26658maintainer-clean-sim:
26659 @: $(MAKE); $(unstage)
26660 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26661 r=`${PWD_COMMAND}`; export r; \
26662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26663 $(HOST_EXPORTS) \
b813574b 26664 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26666 done; \
22121df0 26667 echo "Doing maintainer-clean in sim"; \
a90ef4bf 26668 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26671 "RANLIB=$${RANLIB}" \
0c24b341 26672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26673 maintainer-clean) \
2a4cbe27
NN
26674 || exit 1
26675
a90ef4bf 26676@endif sim
2a4cbe27 26677
2a4cbe27 26678
a7254363 26679
a90ef4bf
JM
26680.PHONY: configure-texinfo maybe-configure-texinfo
26681maybe-configure-texinfo:
4f0ef2d8 26682@if gcc-bootstrap
a90ef4bf 26683configure-texinfo: stage_current
4f0ef2d8 26684@endif gcc-bootstrap
a90ef4bf
JM
26685@if texinfo
26686maybe-configure-texinfo: configure-texinfo
26687configure-texinfo:
0aed8855 26688 @: $(MAKE); $(unstage)
c52c6897 26689 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26691 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 26692 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo; \
1f53ca9a 26693 $(HOST_EXPORTS) \
a90ef4bf
JM
26694 echo Configuring in $(HOST_SUBDIR)/texinfo; \
26695 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4fa63067 26696 case $(srcdir) in \
b00612cc 26697 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26698 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
b00612cc 26699 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26700 esac; \
1b6c0831
L
26701 module_srcdir=texinfo; \
26702 $(SHELL) \
26703 $$s/$$module_srcdir/configure \
26704 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26705 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26706 --target=${target_alias} \
2a4cbe27 26707 || exit 1
a90ef4bf 26708@endif texinfo
2a4cbe27 26709
a7254363
PB
26710
26711
d545f33b
PB
26712
26713
a90ef4bf
JM
26714.PHONY: all-texinfo maybe-all-texinfo
26715maybe-all-texinfo:
4f0ef2d8 26716@if gcc-bootstrap
a90ef4bf 26717all-texinfo: stage_current
4f0ef2d8 26718@endif gcc-bootstrap
a90ef4bf
JM
26719@if texinfo
26720TARGET-texinfo=all
26721maybe-all-texinfo: all-texinfo
26722all-texinfo: configure-texinfo
0aed8855 26723 @: $(MAKE); $(unstage)
4fa63067
NN
26724 @r=`${PWD_COMMAND}`; export r; \
26725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26726 $(HOST_EXPORTS) \
a90ef4bf 26727 (cd $(HOST_SUBDIR)/texinfo && \
b3676d82 26728 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26729 $(TARGET-texinfo))
26730@endif texinfo
4fa63067 26731
a7254363 26732
d545f33b
PB
26733
26734
a90ef4bf
JM
26735.PHONY: check-texinfo maybe-check-texinfo
26736maybe-check-texinfo:
26737@if texinfo
26738maybe-check-texinfo: check-texinfo
2a4cbe27 26739
a90ef4bf 26740check-texinfo:
0aed8855 26741 @: $(MAKE); $(unstage)
4fa63067
NN
26742 @r=`${PWD_COMMAND}`; export r; \
26743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26744 $(HOST_EXPORTS) \
a90ef4bf 26745 (cd $(HOST_SUBDIR)/texinfo && \
b00612cc 26746 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26747
a90ef4bf 26748@endif texinfo
4fa63067 26749
a90ef4bf
JM
26750.PHONY: install-texinfo maybe-install-texinfo
26751maybe-install-texinfo:
26752@if texinfo
26753maybe-install-texinfo: install-texinfo
4fa63067 26754
a90ef4bf 26755install-texinfo:
4fa63067 26756
a90ef4bf 26757@endif texinfo
4fa63067 26758
a90ef4bf
JM
26759.PHONY: install-strip-texinfo maybe-install-strip-texinfo
26760maybe-install-strip-texinfo:
26761@if texinfo
26762maybe-install-strip-texinfo: install-strip-texinfo
9b980aa1 26763
a90ef4bf 26764install-strip-texinfo:
9b980aa1 26765
a90ef4bf 26766@endif texinfo
9b980aa1 26767
56a8fe78 26768# Other targets (info, dvi, pdf, etc.)
4fa63067 26769
a90ef4bf
JM
26770.PHONY: maybe-info-texinfo info-texinfo
26771maybe-info-texinfo:
26772@if texinfo
26773maybe-info-texinfo: info-texinfo
4fa63067 26774
a90ef4bf
JM
26775info-texinfo: \
26776 configure-texinfo
0aed8855 26777 @: $(MAKE); $(unstage)
a90ef4bf 26778 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26779 r=`${PWD_COMMAND}`; export r; \
26780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26781 $(HOST_EXPORTS) \
b813574b 26782 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26784 done; \
22121df0 26785 echo "Doing info in texinfo"; \
a90ef4bf 26786 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26789 "RANLIB=$${RANLIB}" \
0c24b341 26790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26791 info) \
2a4cbe27
NN
26792 || exit 1
26793
a90ef4bf 26794@endif texinfo
2a4cbe27 26795
a90ef4bf
JM
26796.PHONY: maybe-dvi-texinfo dvi-texinfo
26797maybe-dvi-texinfo:
26798@if texinfo
26799maybe-dvi-texinfo: dvi-texinfo
2a4cbe27 26800
a90ef4bf
JM
26801dvi-texinfo: \
26802 configure-texinfo
0aed8855 26803 @: $(MAKE); $(unstage)
a90ef4bf 26804 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26805 r=`${PWD_COMMAND}`; export r; \
26806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26807 $(HOST_EXPORTS) \
b813574b 26808 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26810 done; \
22121df0 26811 echo "Doing dvi in texinfo"; \
a90ef4bf 26812 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26815 "RANLIB=$${RANLIB}" \
0c24b341 26816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26817 dvi) \
2a4cbe27
NN
26818 || exit 1
26819
a90ef4bf 26820@endif texinfo
2a4cbe27 26821
a90ef4bf
JM
26822.PHONY: maybe-pdf-texinfo pdf-texinfo
26823maybe-pdf-texinfo:
26824@if texinfo
26825maybe-pdf-texinfo: pdf-texinfo
56a8fe78 26826
a90ef4bf
JM
26827pdf-texinfo: \
26828 configure-texinfo
56a8fe78 26829 @: $(MAKE); $(unstage)
a90ef4bf 26830 @[ -f ./texinfo/Makefile ] || exit 0; \
56a8fe78
DD
26831 r=`${PWD_COMMAND}`; export r; \
26832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26833 $(HOST_EXPORTS) \
26834 for flag in $(EXTRA_HOST_FLAGS) ; do \
26835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26836 done; \
22121df0 26837 echo "Doing pdf in texinfo"; \
a90ef4bf 26838 (cd $(HOST_SUBDIR)/texinfo && \
56a8fe78
DD
26839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26841 "RANLIB=$${RANLIB}" \
0c24b341 26842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26843 pdf) \
26844 || exit 1
26845
a90ef4bf 26846@endif texinfo
56a8fe78 26847
a90ef4bf
JM
26848.PHONY: maybe-html-texinfo html-texinfo
26849maybe-html-texinfo:
26850@if texinfo
26851maybe-html-texinfo: html-texinfo
6d389afc 26852
a90ef4bf
JM
26853html-texinfo: \
26854 configure-texinfo
0aed8855 26855 @: $(MAKE); $(unstage)
a90ef4bf 26856 @[ -f ./texinfo/Makefile ] || exit 0; \
6d389afc
MS
26857 r=`${PWD_COMMAND}`; export r; \
26858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26859 $(HOST_EXPORTS) \
26860 for flag in $(EXTRA_HOST_FLAGS) ; do \
26861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26862 done; \
22121df0 26863 echo "Doing html in texinfo"; \
a90ef4bf 26864 (cd $(HOST_SUBDIR)/texinfo && \
6d389afc
MS
26865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26867 "RANLIB=$${RANLIB}" \
0c24b341 26868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26869 html) \
26870 || exit 1
26871
a90ef4bf 26872@endif texinfo
6d389afc 26873
a90ef4bf
JM
26874.PHONY: maybe-TAGS-texinfo TAGS-texinfo
26875maybe-TAGS-texinfo:
26876@if texinfo
26877maybe-TAGS-texinfo: TAGS-texinfo
2a4cbe27 26878
a90ef4bf
JM
26879TAGS-texinfo: \
26880 configure-texinfo
0aed8855 26881 @: $(MAKE); $(unstage)
a90ef4bf 26882 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26883 r=`${PWD_COMMAND}`; export r; \
26884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26885 $(HOST_EXPORTS) \
b813574b 26886 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26888 done; \
22121df0 26889 echo "Doing TAGS in texinfo"; \
a90ef4bf 26890 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26893 "RANLIB=$${RANLIB}" \
0c24b341 26894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26895 TAGS) \
2a4cbe27
NN
26896 || exit 1
26897
a90ef4bf 26898@endif texinfo
2a4cbe27 26899
a90ef4bf
JM
26900.PHONY: maybe-install-info-texinfo install-info-texinfo
26901maybe-install-info-texinfo:
26902@if texinfo
26903maybe-install-info-texinfo: install-info-texinfo
2a4cbe27 26904
a90ef4bf
JM
26905install-info-texinfo: \
26906 configure-texinfo \
26907 info-texinfo
0aed8855 26908 @: $(MAKE); $(unstage)
a90ef4bf 26909 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26910 r=`${PWD_COMMAND}`; export r; \
26911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26912 $(HOST_EXPORTS) \
b813574b 26913 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26915 done; \
22121df0 26916 echo "Doing install-info in texinfo"; \
a90ef4bf 26917 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26920 "RANLIB=$${RANLIB}" \
0c24b341 26921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26922 install-info) \
2a4cbe27
NN
26923 || exit 1
26924
a90ef4bf 26925@endif texinfo
2a4cbe27 26926
a90ef4bf
JM
26927.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
26928maybe-install-pdf-texinfo:
26929@if texinfo
26930maybe-install-pdf-texinfo: install-pdf-texinfo
a3ca38d2 26931
a90ef4bf
JM
26932install-pdf-texinfo: \
26933 configure-texinfo \
26934 pdf-texinfo
a3ca38d2 26935 @: $(MAKE); $(unstage)
a90ef4bf 26936 @[ -f ./texinfo/Makefile ] || exit 0; \
a3ca38d2
DD
26937 r=`${PWD_COMMAND}`; export r; \
26938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26939 $(HOST_EXPORTS) \
26940 for flag in $(EXTRA_HOST_FLAGS) ; do \
26941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26942 done; \
22121df0 26943 echo "Doing install-pdf in texinfo"; \
a90ef4bf 26944 (cd $(HOST_SUBDIR)/texinfo && \
a3ca38d2
DD
26945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26947 "RANLIB=$${RANLIB}" \
0c24b341 26948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26949 install-pdf) \
26950 || exit 1
26951
a90ef4bf 26952@endif texinfo
a3ca38d2 26953
a90ef4bf
JM
26954.PHONY: maybe-install-html-texinfo install-html-texinfo
26955maybe-install-html-texinfo:
26956@if texinfo
26957maybe-install-html-texinfo: install-html-texinfo
108a6f8e 26958
a90ef4bf
JM
26959install-html-texinfo: \
26960 configure-texinfo \
26961 html-texinfo
108a6f8e 26962 @: $(MAKE); $(unstage)
a90ef4bf 26963 @[ -f ./texinfo/Makefile ] || exit 0; \
108a6f8e
CD
26964 r=`${PWD_COMMAND}`; export r; \
26965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26966 $(HOST_EXPORTS) \
26967 for flag in $(EXTRA_HOST_FLAGS) ; do \
26968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26969 done; \
22121df0 26970 echo "Doing install-html in texinfo"; \
a90ef4bf 26971 (cd $(HOST_SUBDIR)/texinfo && \
108a6f8e
CD
26972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26974 "RANLIB=$${RANLIB}" \
0c24b341 26975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26976 install-html) \
26977 || exit 1
26978
a90ef4bf 26979@endif texinfo
108a6f8e 26980
a90ef4bf
JM
26981.PHONY: maybe-installcheck-texinfo installcheck-texinfo
26982maybe-installcheck-texinfo:
26983@if texinfo
26984maybe-installcheck-texinfo: installcheck-texinfo
2a4cbe27 26985
a90ef4bf
JM
26986installcheck-texinfo: \
26987 configure-texinfo
0aed8855 26988 @: $(MAKE); $(unstage)
a90ef4bf 26989 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26990 r=`${PWD_COMMAND}`; export r; \
26991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26992 $(HOST_EXPORTS) \
b813574b 26993 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26995 done; \
22121df0 26996 echo "Doing installcheck in texinfo"; \
a90ef4bf 26997 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27000 "RANLIB=$${RANLIB}" \
0c24b341 27001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27002 installcheck) \
2a4cbe27
NN
27003 || exit 1
27004
a90ef4bf 27005@endif texinfo
2a4cbe27 27006
a90ef4bf
JM
27007.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
27008maybe-mostlyclean-texinfo:
27009@if texinfo
27010maybe-mostlyclean-texinfo: mostlyclean-texinfo
2a4cbe27 27011
a90ef4bf 27012mostlyclean-texinfo:
0aed8855 27013 @: $(MAKE); $(unstage)
a90ef4bf 27014 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27015 r=`${PWD_COMMAND}`; export r; \
27016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27017 $(HOST_EXPORTS) \
b813574b 27018 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27020 done; \
22121df0 27021 echo "Doing mostlyclean in texinfo"; \
a90ef4bf 27022 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27025 "RANLIB=$${RANLIB}" \
0c24b341 27026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27027 mostlyclean) \
2a4cbe27
NN
27028 || exit 1
27029
a90ef4bf 27030@endif texinfo
2a4cbe27 27031
a90ef4bf
JM
27032.PHONY: maybe-clean-texinfo clean-texinfo
27033maybe-clean-texinfo:
27034@if texinfo
27035maybe-clean-texinfo: clean-texinfo
2a4cbe27 27036
a90ef4bf 27037clean-texinfo:
0aed8855 27038 @: $(MAKE); $(unstage)
a90ef4bf 27039 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27040 r=`${PWD_COMMAND}`; export r; \
27041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27042 $(HOST_EXPORTS) \
b813574b 27043 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27045 done; \
22121df0 27046 echo "Doing clean in texinfo"; \
a90ef4bf 27047 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27050 "RANLIB=$${RANLIB}" \
0c24b341 27051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27052 clean) \
2a4cbe27
NN
27053 || exit 1
27054
a90ef4bf 27055@endif texinfo
2a4cbe27 27056
a90ef4bf
JM
27057.PHONY: maybe-distclean-texinfo distclean-texinfo
27058maybe-distclean-texinfo:
27059@if texinfo
27060maybe-distclean-texinfo: distclean-texinfo
2a4cbe27 27061
a90ef4bf 27062distclean-texinfo:
0aed8855 27063 @: $(MAKE); $(unstage)
a90ef4bf 27064 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27065 r=`${PWD_COMMAND}`; export r; \
27066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27067 $(HOST_EXPORTS) \
b813574b 27068 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27070 done; \
22121df0 27071 echo "Doing distclean in texinfo"; \
a90ef4bf 27072 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27075 "RANLIB=$${RANLIB}" \
0c24b341 27076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27077 distclean) \
2a4cbe27
NN
27078 || exit 1
27079
a90ef4bf 27080@endif texinfo
2a4cbe27 27081
a90ef4bf
JM
27082.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
27083maybe-maintainer-clean-texinfo:
27084@if texinfo
27085maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
a7254363 27086
a90ef4bf 27087maintainer-clean-texinfo:
0aed8855 27088 @: $(MAKE); $(unstage)
a90ef4bf 27089 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27090 r=`${PWD_COMMAND}`; export r; \
27091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27092 $(HOST_EXPORTS) \
b813574b 27093 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27095 done; \
22121df0 27096 echo "Doing maintainer-clean in texinfo"; \
a90ef4bf 27097 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27100 "RANLIB=$${RANLIB}" \
0c24b341 27101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27102 maintainer-clean) \
2a4cbe27
NN
27103 || exit 1
27104
a90ef4bf 27105@endif texinfo
2a4cbe27 27106
2a4cbe27 27107
a7254363 27108
a90ef4bf
JM
27109.PHONY: configure-zlib maybe-configure-zlib
27110maybe-configure-zlib:
4f0ef2d8 27111@if gcc-bootstrap
a90ef4bf 27112configure-zlib: stage_current
4f0ef2d8 27113@endif gcc-bootstrap
a90ef4bf
JM
27114@if zlib
27115maybe-configure-zlib: configure-zlib
27116configure-zlib:
c52c6897
PB
27117 @r=`${PWD_COMMAND}`; export r; \
27118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 27119 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 27120 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
1f53ca9a 27121 $(HOST_EXPORTS) \
a90ef4bf
JM
27122 echo Configuring in $(HOST_SUBDIR)/zlib; \
27123 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
04cf1b77 27124 case $(srcdir) in \
b00612cc 27125 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27126 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
b00612cc 27127 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
04cf1b77 27128 esac; \
1b6c0831
L
27129 module_srcdir=zlib; \
27130 $(SHELL) \
27131 $$s/$$module_srcdir/configure \
27132 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27133 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e81d5d05 27134 --target=${target_alias} @extra_host_zlib_configure_flags@ \
04cf1b77 27135 || exit 1
a90ef4bf 27136@endif zlib
04cf1b77 27137
a7254363
PB
27138
27139
a90ef4bf
JM
27140.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
27141maybe-configure-stage1-zlib:
27142@if zlib-bootstrap
27143maybe-configure-stage1-zlib: configure-stage1-zlib
27144configure-stage1-zlib:
c52c6897 27145 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 27146 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27147 @r=`${PWD_COMMAND}`; export r; \
27148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27149 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 27150 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
1b05fbbd 27151 $(HOST_EXPORTS) \
8ee82aff 27152 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27153 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
27154 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
27155 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib; \
27156 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27157 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27158 case $(srcdir) in \
27159 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27160 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27161 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27162 esac; \
1b6c0831
L
27163 module_srcdir=zlib; \
27164 $(SHELL) $$s/$$module_srcdir/configure \
27165 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27166 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
27167 --target=${target_alias} \
27168 \
e81d5d05
L
27169 $(STAGE1_CONFIGURE_FLAGS) \
27170 @extra_host_zlib_configure_flags@
a90ef4bf 27171@endif zlib-bootstrap
d545f33b 27172
a90ef4bf
JM
27173.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
27174maybe-configure-stage2-zlib:
27175@if zlib-bootstrap
27176maybe-configure-stage2-zlib: configure-stage2-zlib
27177configure-stage2-zlib:
c52c6897 27178 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 27179 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27180 @r=`${PWD_COMMAND}`; export r; \
27181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27182 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 27183 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27184 $(HOST_EXPORTS) \
1b05fbbd 27185 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27186 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27187 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
27188 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27189 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib; \
27190 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27191 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27192 case $(srcdir) in \
27193 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27194 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27195 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27196 esac; \
1b6c0831
L
27197 module_srcdir=zlib; \
27198 $(SHELL) $$s/$$module_srcdir/configure \
27199 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27200 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27201 --target=${target_alias} \
22121df0 27202 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27203 $(STAGE2_CONFIGURE_FLAGS) \
27204 @extra_host_zlib_configure_flags@
a90ef4bf 27205@endif zlib-bootstrap
8520c408 27206
a90ef4bf
JM
27207.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
27208maybe-configure-stage3-zlib:
27209@if zlib-bootstrap
27210maybe-configure-stage3-zlib: configure-stage3-zlib
27211configure-stage3-zlib:
c52c6897 27212 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 27213 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27214 @r=`${PWD_COMMAND}`; export r; \
27215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27216 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 27217 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27218 $(HOST_EXPORTS) \
1b05fbbd 27219 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27220 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27221 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
27222 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27223 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib; \
27224 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27225 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27226 case $(srcdir) in \
27227 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27228 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27229 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27230 esac; \
1b6c0831
L
27231 module_srcdir=zlib; \
27232 $(SHELL) $$s/$$module_srcdir/configure \
27233 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27234 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27235 --target=${target_alias} \
22121df0 27236 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27237 $(STAGE3_CONFIGURE_FLAGS) \
27238 @extra_host_zlib_configure_flags@
a90ef4bf 27239@endif zlib-bootstrap
8520c408 27240
a90ef4bf
JM
27241.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
27242maybe-configure-stage4-zlib:
27243@if zlib-bootstrap
27244maybe-configure-stage4-zlib: configure-stage4-zlib
27245configure-stage4-zlib:
c52c6897 27246 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 27247 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27248 @r=`${PWD_COMMAND}`; export r; \
27249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27250 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 27251 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27252 $(HOST_EXPORTS) \
1b05fbbd 27253 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27254 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27255 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
27256 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27257 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib; \
27258 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27259 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27260 case $(srcdir) in \
27261 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27262 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27263 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27264 esac; \
1b6c0831
L
27265 module_srcdir=zlib; \
27266 $(SHELL) $$s/$$module_srcdir/configure \
27267 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27268 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27269 --target=${target_alias} \
22121df0 27270 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27271 $(STAGE4_CONFIGURE_FLAGS) \
27272 @extra_host_zlib_configure_flags@
a90ef4bf 27273@endif zlib-bootstrap
d545f33b 27274
a90ef4bf
JM
27275.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
27276maybe-configure-stageprofile-zlib:
27277@if zlib-bootstrap
27278maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
27279configure-stageprofile-zlib:
c52c6897 27280 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 27281 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27282 @r=`${PWD_COMMAND}`; export r; \
27283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27284 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 27285 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27286 $(HOST_EXPORTS) \
1b05fbbd
AO
27287 $(POSTSTAGE1_HOST_EXPORTS) \
27288 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27289 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
27290 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27291 echo Configuring stage profile in $(HOST_SUBDIR)/zlib; \
27292 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27293 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27294 case $(srcdir) in \
27295 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27296 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27297 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27298 esac; \
1b6c0831
L
27299 module_srcdir=zlib; \
27300 $(SHELL) $$s/$$module_srcdir/configure \
27301 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27302 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27303 --target=${target_alias} \
22121df0 27304 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27305 $(STAGEprofile_CONFIGURE_FLAGS) \
27306 @extra_host_zlib_configure_flags@
a90ef4bf 27307@endif zlib-bootstrap
d545f33b 27308
a90ef4bf
JM
27309.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
27310maybe-configure-stagefeedback-zlib:
27311@if zlib-bootstrap
27312maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
27313configure-stagefeedback-zlib:
c52c6897 27314 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 27315 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27316 @r=`${PWD_COMMAND}`; export r; \
27317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27318 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 27319 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27320 $(HOST_EXPORTS) \
1b05fbbd
AO
27321 $(POSTSTAGE1_HOST_EXPORTS) \
27322 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27323 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
27324 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27325 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib; \
27326 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27327 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27328 case $(srcdir) in \
27329 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27330 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27331 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27332 esac; \
1b6c0831
L
27333 module_srcdir=zlib; \
27334 $(SHELL) $$s/$$module_srcdir/configure \
27335 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27336 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27337 --target=${target_alias} \
22121df0 27338 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27339 $(STAGEfeedback_CONFIGURE_FLAGS) \
27340 @extra_host_zlib_configure_flags@
a90ef4bf 27341@endif zlib-bootstrap
d545f33b
PB
27342
27343
27344
27345
27346
a90ef4bf
JM
27347.PHONY: all-zlib maybe-all-zlib
27348maybe-all-zlib:
4f0ef2d8 27349@if gcc-bootstrap
a90ef4bf 27350all-zlib: stage_current
4f0ef2d8 27351@endif gcc-bootstrap
a90ef4bf
JM
27352@if zlib
27353TARGET-zlib=all
27354maybe-all-zlib: all-zlib
27355all-zlib: configure-zlib
c52c6897 27356 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 27357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 27358 $(HOST_EXPORTS) \
a90ef4bf 27359 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 27360 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27361 $(TARGET-zlib))
27362@endif zlib
04cf1b77 27363
a7254363 27364
d545f33b 27365
a90ef4bf
JM
27366.PHONY: all-stage1-zlib maybe-all-stage1-zlib
27367.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
27368maybe-all-stage1-zlib:
27369maybe-clean-stage1-zlib:
27370@if zlib-bootstrap
27371maybe-all-stage1-zlib: all-stage1-zlib
27372all-stage1: all-stage1-zlib
27373TARGET-stage1-zlib = $(TARGET-zlib)
27374all-stage1-zlib: configure-stage1-zlib
c52c6897 27375 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
27376 @r=`${PWD_COMMAND}`; export r; \
27377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27378 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 27379 $(HOST_EXPORTS) \
a90ef4bf 27380 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27381 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27382 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 27383 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
27384 LIBCFLAGS="$(LIBCFLAGS)" \
27385 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27386 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27387 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
27388 $(EXTRA_HOST_FLAGS) \
27389 $(STAGE1_FLAGS_TO_PASS) \
1b05fbbd 27390 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 27391 $(TARGET-stage1-zlib)
d545f33b 27392
a90ef4bf
JM
27393maybe-clean-stage1-zlib: clean-stage1-zlib
27394clean-stage1: clean-stage1-zlib
27395clean-stage1-zlib:
9dbaa842 27396 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 27397 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27398 else \
a90ef4bf 27399 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27400 $(MAKE) stage1-start; \
27401 fi; \
a90ef4bf 27402 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27403 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 27404 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27405@endif zlib-bootstrap
d545f33b
PB
27406
27407
a90ef4bf
JM
27408.PHONY: all-stage2-zlib maybe-all-stage2-zlib
27409.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
27410maybe-all-stage2-zlib:
27411maybe-clean-stage2-zlib:
27412@if zlib-bootstrap
27413maybe-all-stage2-zlib: all-stage2-zlib
27414all-stage2: all-stage2-zlib
27415TARGET-stage2-zlib = $(TARGET-zlib)
27416all-stage2-zlib: configure-stage2-zlib
c52c6897 27417 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
27418 @r=`${PWD_COMMAND}`; export r; \
27419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27420 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 27421 $(HOST_EXPORTS) \
1f53ca9a 27422 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27423 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27424 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27425 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 27426 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
27427 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27428 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27429 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27430 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27431 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27432 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 27433 $(TARGET-stage2-zlib)
d545f33b 27434
a90ef4bf
JM
27435maybe-clean-stage2-zlib: clean-stage2-zlib
27436clean-stage2: clean-stage2-zlib
27437clean-stage2-zlib:
9dbaa842 27438 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 27439 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27440 else \
a90ef4bf 27441 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27442 $(MAKE) stage2-start; \
27443 fi; \
a90ef4bf 27444 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27445 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27446@endif zlib-bootstrap
d545f33b
PB
27447
27448
a90ef4bf
JM
27449.PHONY: all-stage3-zlib maybe-all-stage3-zlib
27450.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
27451maybe-all-stage3-zlib:
27452maybe-clean-stage3-zlib:
27453@if zlib-bootstrap
27454maybe-all-stage3-zlib: all-stage3-zlib
27455all-stage3: all-stage3-zlib
27456TARGET-stage3-zlib = $(TARGET-zlib)
27457all-stage3-zlib: configure-stage3-zlib
c52c6897 27458 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
27459 @r=`${PWD_COMMAND}`; export r; \
27460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27461 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 27462 $(HOST_EXPORTS) \
1f53ca9a 27463 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27464 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27465 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27466 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 27467 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
27468 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27469 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27470 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27471 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27472 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27473 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 27474 $(TARGET-stage3-zlib)
d545f33b 27475
a90ef4bf
JM
27476maybe-clean-stage3-zlib: clean-stage3-zlib
27477clean-stage3: clean-stage3-zlib
27478clean-stage3-zlib:
9dbaa842 27479 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 27480 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27481 else \
a90ef4bf 27482 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27483 $(MAKE) stage3-start; \
27484 fi; \
a90ef4bf 27485 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27486 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27487@endif zlib-bootstrap
d545f33b
PB
27488
27489
a90ef4bf
JM
27490.PHONY: all-stage4-zlib maybe-all-stage4-zlib
27491.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
27492maybe-all-stage4-zlib:
27493maybe-clean-stage4-zlib:
27494@if zlib-bootstrap
27495maybe-all-stage4-zlib: all-stage4-zlib
27496all-stage4: all-stage4-zlib
27497TARGET-stage4-zlib = $(TARGET-zlib)
27498all-stage4-zlib: configure-stage4-zlib
c52c6897 27499 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
27500 @r=`${PWD_COMMAND}`; export r; \
27501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27502 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 27503 $(HOST_EXPORTS) \
1f53ca9a 27504 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27505 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27506 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27507 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 27508 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 27509 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
27510 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27511 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27512 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27513 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27514 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 27515 $(TARGET-stage4-zlib)
d545f33b 27516
a90ef4bf
JM
27517maybe-clean-stage4-zlib: clean-stage4-zlib
27518clean-stage4: clean-stage4-zlib
27519clean-stage4-zlib:
9dbaa842 27520 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 27521 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27522 else \
a90ef4bf 27523 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27524 $(MAKE) stage4-start; \
27525 fi; \
a90ef4bf 27526 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27527 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27528@endif zlib-bootstrap
d545f33b
PB
27529
27530
a90ef4bf
JM
27531.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
27532.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
27533maybe-all-stageprofile-zlib:
27534maybe-clean-stageprofile-zlib:
27535@if zlib-bootstrap
27536maybe-all-stageprofile-zlib: all-stageprofile-zlib
27537all-stageprofile: all-stageprofile-zlib
27538TARGET-stageprofile-zlib = $(TARGET-zlib)
27539all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 27540 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
27541 @r=`${PWD_COMMAND}`; export r; \
27542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27543 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 27544 $(HOST_EXPORTS) \
1f53ca9a 27545 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27546 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27547 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27548 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 27549 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
27550 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27551 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27552 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27553 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27554 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27555 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 27556 $(TARGET-stageprofile-zlib)
d545f33b 27557
a90ef4bf
JM
27558maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
27559clean-stageprofile: clean-stageprofile-zlib
27560clean-stageprofile-zlib:
9dbaa842 27561 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 27562 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27563 else \
a90ef4bf 27564 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27565 $(MAKE) stageprofile-start; \
27566 fi; \
a90ef4bf 27567 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27568 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27569@endif zlib-bootstrap
d545f33b
PB
27570
27571
a90ef4bf
JM
27572.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
27573.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
27574maybe-all-stagefeedback-zlib:
27575maybe-clean-stagefeedback-zlib:
27576@if zlib-bootstrap
27577maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
27578all-stagefeedback: all-stagefeedback-zlib
27579TARGET-stagefeedback-zlib = $(TARGET-zlib)
27580all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 27581 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
27582 @r=`${PWD_COMMAND}`; export r; \
27583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27584 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 27585 $(HOST_EXPORTS) \
1f53ca9a 27586 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27587 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27588 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27589 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 27590 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
27591 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27592 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27593 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27594 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27595 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27596 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 27597 $(TARGET-stagefeedback-zlib)
d545f33b 27598
a90ef4bf
JM
27599maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
27600clean-stagefeedback: clean-stagefeedback-zlib
27601clean-stagefeedback-zlib:
9dbaa842 27602 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 27603 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27604 else \
a90ef4bf 27605 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27606 $(MAKE) stagefeedback-start; \
27607 fi; \
a90ef4bf 27608 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27609 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27610@endif zlib-bootstrap
d545f33b
PB
27611
27612
27613
27614
27615
a90ef4bf
JM
27616.PHONY: check-zlib maybe-check-zlib
27617maybe-check-zlib:
27618@if zlib
27619maybe-check-zlib: check-zlib
04cf1b77 27620
a90ef4bf 27621check-zlib:
04cf1b77 27622
a90ef4bf 27623@endif zlib
04cf1b77 27624
a90ef4bf
JM
27625.PHONY: install-zlib maybe-install-zlib
27626maybe-install-zlib:
27627@if zlib
27628maybe-install-zlib: install-zlib
04cf1b77 27629
a90ef4bf 27630install-zlib:
04cf1b77 27631
a90ef4bf 27632@endif zlib
04cf1b77 27633
a90ef4bf
JM
27634.PHONY: install-strip-zlib maybe-install-strip-zlib
27635maybe-install-strip-zlib:
27636@if zlib
27637maybe-install-strip-zlib: install-strip-zlib
9b980aa1 27638
a90ef4bf 27639install-strip-zlib:
9b980aa1 27640
a90ef4bf 27641@endif zlib
9b980aa1 27642
56a8fe78 27643# Other targets (info, dvi, pdf, etc.)
04cf1b77 27644
a90ef4bf
JM
27645.PHONY: maybe-info-zlib info-zlib
27646maybe-info-zlib:
27647@if zlib
27648maybe-info-zlib: info-zlib
04cf1b77 27649
a90ef4bf
JM
27650info-zlib: \
27651 configure-zlib
27652 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27653 r=`${PWD_COMMAND}`; export r; \
27654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27655 $(HOST_EXPORTS) \
b813574b 27656 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27658 done; \
22121df0 27659 echo "Doing info in zlib"; \
a90ef4bf 27660 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27663 "RANLIB=$${RANLIB}" \
0c24b341 27664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27665 info) \
04cf1b77
PB
27666 || exit 1
27667
a90ef4bf 27668@endif zlib
04cf1b77 27669
a90ef4bf
JM
27670.PHONY: maybe-dvi-zlib dvi-zlib
27671maybe-dvi-zlib:
27672@if zlib
27673maybe-dvi-zlib: dvi-zlib
04cf1b77 27674
a90ef4bf
JM
27675dvi-zlib: \
27676 configure-zlib
27677 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27678 r=`${PWD_COMMAND}`; export r; \
27679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27680 $(HOST_EXPORTS) \
b813574b 27681 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27683 done; \
22121df0 27684 echo "Doing dvi in zlib"; \
a90ef4bf 27685 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27688 "RANLIB=$${RANLIB}" \
0c24b341 27689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27690 dvi) \
04cf1b77
PB
27691 || exit 1
27692
a90ef4bf 27693@endif zlib
04cf1b77 27694
a90ef4bf
JM
27695.PHONY: maybe-pdf-zlib pdf-zlib
27696maybe-pdf-zlib:
27697@if zlib
27698maybe-pdf-zlib: pdf-zlib
56a8fe78 27699
a90ef4bf
JM
27700pdf-zlib: \
27701 configure-zlib
27702 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
27703 r=`${PWD_COMMAND}`; export r; \
27704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27705 $(HOST_EXPORTS) \
27706 for flag in $(EXTRA_HOST_FLAGS) ; do \
27707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27708 done; \
22121df0 27709 echo "Doing pdf in zlib"; \
a90ef4bf 27710 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
27711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27713 "RANLIB=$${RANLIB}" \
0c24b341 27714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27715 pdf) \
27716 || exit 1
27717
a90ef4bf 27718@endif zlib
56a8fe78 27719
a90ef4bf
JM
27720.PHONY: maybe-html-zlib html-zlib
27721maybe-html-zlib:
27722@if zlib
27723maybe-html-zlib: html-zlib
6d389afc 27724
a90ef4bf
JM
27725html-zlib: \
27726 configure-zlib
27727 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
27728 r=`${PWD_COMMAND}`; export r; \
27729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27730 $(HOST_EXPORTS) \
27731 for flag in $(EXTRA_HOST_FLAGS) ; do \
27732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27733 done; \
22121df0 27734 echo "Doing html in zlib"; \
a90ef4bf 27735 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
27736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27738 "RANLIB=$${RANLIB}" \
0c24b341 27739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27740 html) \
27741 || exit 1
27742
a90ef4bf 27743@endif zlib
6d389afc 27744
a90ef4bf
JM
27745.PHONY: maybe-TAGS-zlib TAGS-zlib
27746maybe-TAGS-zlib:
27747@if zlib
27748maybe-TAGS-zlib: TAGS-zlib
04cf1b77 27749
a90ef4bf
JM
27750TAGS-zlib: \
27751 configure-zlib
27752 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27753 r=`${PWD_COMMAND}`; export r; \
27754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27755 $(HOST_EXPORTS) \
b813574b 27756 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27758 done; \
22121df0 27759 echo "Doing TAGS in zlib"; \
a90ef4bf 27760 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27763 "RANLIB=$${RANLIB}" \
0c24b341 27764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27765 TAGS) \
04cf1b77
PB
27766 || exit 1
27767
a90ef4bf 27768@endif zlib
04cf1b77 27769
a90ef4bf
JM
27770.PHONY: maybe-install-info-zlib install-info-zlib
27771maybe-install-info-zlib:
27772@if zlib
27773maybe-install-info-zlib: install-info-zlib
04cf1b77 27774
a90ef4bf
JM
27775install-info-zlib: \
27776 configure-zlib \
27777 info-zlib
27778 @[ -f ./zlib/Makefile ] || exit 0; \
27779 r=`${PWD_COMMAND}`; export r; \
27780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27781 $(HOST_EXPORTS) \
b813574b 27782 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27784 done; \
22121df0 27785 echo "Doing install-info in zlib"; \
a90ef4bf 27786 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27789 "RANLIB=$${RANLIB}" \
0c24b341 27790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27791 install-info) \
04cf1b77
PB
27792 || exit 1
27793
a90ef4bf 27794@endif zlib
04cf1b77 27795
a90ef4bf
JM
27796.PHONY: maybe-install-pdf-zlib install-pdf-zlib
27797maybe-install-pdf-zlib:
27798@if zlib
27799maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 27800
a90ef4bf
JM
27801install-pdf-zlib: \
27802 configure-zlib \
27803 pdf-zlib
27804 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
27805 r=`${PWD_COMMAND}`; export r; \
27806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27807 $(HOST_EXPORTS) \
27808 for flag in $(EXTRA_HOST_FLAGS) ; do \
27809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27810 done; \
22121df0 27811 echo "Doing install-pdf in zlib"; \
a90ef4bf 27812 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
27813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27815 "RANLIB=$${RANLIB}" \
0c24b341 27816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27817 install-pdf) \
27818 || exit 1
27819
a90ef4bf 27820@endif zlib
a3ca38d2 27821
a90ef4bf
JM
27822.PHONY: maybe-install-html-zlib install-html-zlib
27823maybe-install-html-zlib:
27824@if zlib
27825maybe-install-html-zlib: install-html-zlib
108a6f8e 27826
a90ef4bf
JM
27827install-html-zlib: \
27828 configure-zlib \
27829 html-zlib
27830 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
27831 r=`${PWD_COMMAND}`; export r; \
27832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27833 $(HOST_EXPORTS) \
27834 for flag in $(EXTRA_HOST_FLAGS) ; do \
27835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27836 done; \
22121df0 27837 echo "Doing install-html in zlib"; \
a90ef4bf 27838 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
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}" \
108a6f8e
CD
27843 install-html) \
27844 || exit 1
27845
a90ef4bf 27846@endif zlib
108a6f8e 27847
a90ef4bf
JM
27848.PHONY: maybe-installcheck-zlib installcheck-zlib
27849maybe-installcheck-zlib:
27850@if zlib
27851maybe-installcheck-zlib: installcheck-zlib
04cf1b77 27852
a90ef4bf
JM
27853installcheck-zlib: \
27854 configure-zlib
27855 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27856 r=`${PWD_COMMAND}`; export r; \
27857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27858 $(HOST_EXPORTS) \
b813574b 27859 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27861 done; \
22121df0 27862 echo "Doing installcheck in zlib"; \
a90ef4bf 27863 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27866 "RANLIB=$${RANLIB}" \
0c24b341 27867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27868 installcheck) \
04cf1b77
PB
27869 || exit 1
27870
a90ef4bf 27871@endif zlib
04cf1b77 27872
a90ef4bf
JM
27873.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
27874maybe-mostlyclean-zlib:
27875@if zlib
27876maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 27877
a90ef4bf
JM
27878mostlyclean-zlib:
27879 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27880 r=`${PWD_COMMAND}`; export r; \
27881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27882 $(HOST_EXPORTS) \
b813574b 27883 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27885 done; \
22121df0 27886 echo "Doing mostlyclean in zlib"; \
a90ef4bf 27887 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27890 "RANLIB=$${RANLIB}" \
0c24b341 27891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27892 mostlyclean) \
04cf1b77
PB
27893 || exit 1
27894
a90ef4bf 27895@endif zlib
04cf1b77 27896
a90ef4bf
JM
27897.PHONY: maybe-clean-zlib clean-zlib
27898maybe-clean-zlib:
27899@if zlib
27900maybe-clean-zlib: clean-zlib
04cf1b77 27901
a90ef4bf
JM
27902clean-zlib:
27903 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27904 r=`${PWD_COMMAND}`; export r; \
27905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27906 $(HOST_EXPORTS) \
b813574b 27907 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27909 done; \
22121df0 27910 echo "Doing clean in zlib"; \
a90ef4bf 27911 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27914 "RANLIB=$${RANLIB}" \
0c24b341 27915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27916 clean) \
04cf1b77
PB
27917 || exit 1
27918
a90ef4bf 27919@endif zlib
04cf1b77 27920
a90ef4bf
JM
27921.PHONY: maybe-distclean-zlib distclean-zlib
27922maybe-distclean-zlib:
27923@if zlib
27924maybe-distclean-zlib: distclean-zlib
04cf1b77 27925
a90ef4bf
JM
27926distclean-zlib:
27927 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27928 r=`${PWD_COMMAND}`; export r; \
27929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27930 $(HOST_EXPORTS) \
b813574b 27931 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27933 done; \
22121df0 27934 echo "Doing distclean in zlib"; \
a90ef4bf 27935 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27938 "RANLIB=$${RANLIB}" \
0c24b341 27939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27940 distclean) \
04cf1b77
PB
27941 || exit 1
27942
a90ef4bf 27943@endif zlib
04cf1b77 27944
a90ef4bf
JM
27945.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
27946maybe-maintainer-clean-zlib:
27947@if zlib
27948maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 27949
a90ef4bf
JM
27950maintainer-clean-zlib:
27951 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27952 r=`${PWD_COMMAND}`; export r; \
27953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27954 $(HOST_EXPORTS) \
b813574b 27955 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27957 done; \
22121df0 27958 echo "Doing maintainer-clean in zlib"; \
a90ef4bf 27959 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27962 "RANLIB=$${RANLIB}" \
0c24b341 27963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27964 maintainer-clean) \
04cf1b77
PB
27965 || exit 1
27966
a90ef4bf 27967@endif zlib
04cf1b77
PB
27968
27969
a7254363 27970
a90ef4bf
JM
27971.PHONY: configure-gdb maybe-configure-gdb
27972maybe-configure-gdb:
4f0ef2d8 27973@if gcc-bootstrap
a90ef4bf 27974configure-gdb: stage_current
4f0ef2d8 27975@endif gcc-bootstrap
a90ef4bf
JM
27976@if gdb
27977maybe-configure-gdb: configure-gdb
27978configure-gdb:
27979 @: $(MAKE); $(unstage)
c52c6897
PB
27980 @r=`${PWD_COMMAND}`; export r; \
27981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 27982 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
22121df0 27983 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb; \
1f53ca9a 27984 $(HOST_EXPORTS) \
a90ef4bf
JM
27985 echo Configuring in $(HOST_SUBDIR)/gdb; \
27986 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 27987 case $(srcdir) in \
b00612cc 27988 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27989 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 27990 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 27991 esac; \
1b6c0831
L
27992 module_srcdir=gdb; \
27993 $(SHELL) \
27994 $$s/$$module_srcdir/configure \
27995 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27996 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27997 --target=${target_alias} \
4fa63067 27998 || exit 1
a90ef4bf 27999@endif gdb
4fa63067 28000
a7254363
PB
28001
28002
d545f33b 28003
8520c408 28004
a90ef4bf
JM
28005.PHONY: all-gdb maybe-all-gdb
28006maybe-all-gdb:
28007@if gcc-bootstrap
28008all-gdb: stage_current
28009@endif gcc-bootstrap
28010@if gdb
28011TARGET-gdb=all
28012maybe-all-gdb: all-gdb
28013all-gdb: configure-gdb
28014 @: $(MAKE); $(unstage)
c52c6897
PB
28015 @r=`${PWD_COMMAND}`; export r; \
28016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28017 $(HOST_EXPORTS) \
28018 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 28019 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28020 $(TARGET-gdb))
28021@endif gdb
8520c408 28022
a90ef4bf
JM
28023
28024
28025
28026.PHONY: check-gdb maybe-check-gdb
28027maybe-check-gdb:
28028@if gdb
28029maybe-check-gdb: check-gdb
28030
28031check-gdb:
28032 @: $(MAKE); $(unstage)
c52c6897
PB
28033 @r=`${PWD_COMMAND}`; export r; \
28034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28035 $(HOST_EXPORTS) \
a90ef4bf
JM
28036 (cd $(HOST_SUBDIR)/gdb && \
28037 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 28038
a90ef4bf
JM
28039@endif gdb
28040
28041.PHONY: install-gdb maybe-install-gdb
28042maybe-install-gdb:
28043@if gdb
28044maybe-install-gdb: install-gdb
28045
28046install-gdb: installdirs
28047 @: $(MAKE); $(unstage)
c52c6897
PB
28048 @r=`${PWD_COMMAND}`; export r; \
28049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28050 $(HOST_EXPORTS) \
a90ef4bf
JM
28051 (cd $(HOST_SUBDIR)/gdb && \
28052 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 28053
a90ef4bf
JM
28054@endif gdb
28055
28056.PHONY: install-strip-gdb maybe-install-strip-gdb
28057maybe-install-strip-gdb:
28058@if gdb
28059maybe-install-strip-gdb: install-strip-gdb
28060
28061install-strip-gdb: installdirs
28062 @: $(MAKE); $(unstage)
c52c6897
PB
28063 @r=`${PWD_COMMAND}`; export r; \
28064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28065 $(HOST_EXPORTS) \
a90ef4bf
JM
28066 (cd $(HOST_SUBDIR)/gdb && \
28067 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 28068
a90ef4bf 28069@endif gdb
d545f33b 28070
a90ef4bf 28071# Other targets (info, dvi, pdf, etc.)
d545f33b 28072
a90ef4bf
JM
28073.PHONY: maybe-info-gdb info-gdb
28074maybe-info-gdb:
28075@if gdb
28076maybe-info-gdb: info-gdb
d545f33b 28077
a90ef4bf
JM
28078info-gdb: \
28079 configure-gdb
28080 @: $(MAKE); $(unstage)
28081 @[ -f ./gdb/Makefile ] || exit 0; \
28082 r=`${PWD_COMMAND}`; export r; \
4fa63067 28083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28084 $(HOST_EXPORTS) \
28085 for flag in $(EXTRA_HOST_FLAGS) ; do \
28086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28087 done; \
22121df0 28088 echo "Doing info in gdb"; \
a90ef4bf
JM
28089 (cd $(HOST_SUBDIR)/gdb && \
28090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28092 "RANLIB=$${RANLIB}" \
28093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28094 info) \
28095 || exit 1
4fa63067 28096
a90ef4bf 28097@endif gdb
a7254363 28098
a90ef4bf
JM
28099.PHONY: maybe-dvi-gdb dvi-gdb
28100maybe-dvi-gdb:
28101@if gdb
28102maybe-dvi-gdb: dvi-gdb
d545f33b 28103
a90ef4bf
JM
28104dvi-gdb: \
28105 configure-gdb
28106 @: $(MAKE); $(unstage)
28107 @[ -f ./gdb/Makefile ] || exit 0; \
28108 r=`${PWD_COMMAND}`; export r; \
d545f33b 28109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28110 $(HOST_EXPORTS) \
28111 for flag in $(EXTRA_HOST_FLAGS) ; do \
28112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28113 done; \
22121df0 28114 echo "Doing dvi in gdb"; \
a90ef4bf
JM
28115 (cd $(HOST_SUBDIR)/gdb && \
28116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28118 "RANLIB=$${RANLIB}" \
28119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28120 dvi) \
28121 || exit 1
d545f33b 28122
a90ef4bf 28123@endif gdb
d545f33b 28124
a90ef4bf
JM
28125.PHONY: maybe-pdf-gdb pdf-gdb
28126maybe-pdf-gdb:
28127@if gdb
28128maybe-pdf-gdb: pdf-gdb
d545f33b 28129
a90ef4bf
JM
28130pdf-gdb: \
28131 configure-gdb
9b980aa1 28132 @: $(MAKE); $(unstage)
a90ef4bf 28133 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28134 r=`${PWD_COMMAND}`; export r; \
28135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28136 $(HOST_EXPORTS) \
b813574b 28137 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28139 done; \
22121df0 28140 echo "Doing pdf in gdb"; \
a90ef4bf 28141 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28144 "RANLIB=$${RANLIB}" \
0c24b341 28145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28146 pdf) \
2a4cbe27
NN
28147 || exit 1
28148
a90ef4bf 28149@endif gdb
2a4cbe27 28150
a90ef4bf
JM
28151.PHONY: maybe-html-gdb html-gdb
28152maybe-html-gdb:
28153@if gdb
28154maybe-html-gdb: html-gdb
2a4cbe27 28155
a90ef4bf
JM
28156html-gdb: \
28157 configure-gdb
28158 @: $(MAKE); $(unstage)
28159 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28160 r=`${PWD_COMMAND}`; export r; \
28161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28162 $(HOST_EXPORTS) \
b813574b 28163 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28165 done; \
22121df0 28166 echo "Doing html in gdb"; \
a90ef4bf 28167 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28170 "RANLIB=$${RANLIB}" \
0c24b341 28171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28172 html) \
2a4cbe27
NN
28173 || exit 1
28174
a90ef4bf 28175@endif gdb
2a4cbe27 28176
a90ef4bf
JM
28177.PHONY: maybe-TAGS-gdb TAGS-gdb
28178maybe-TAGS-gdb:
28179@if gdb
28180maybe-TAGS-gdb: TAGS-gdb
56a8fe78 28181
a90ef4bf
JM
28182TAGS-gdb: \
28183 configure-gdb
28184 @: $(MAKE); $(unstage)
28185 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
28186 r=`${PWD_COMMAND}`; export r; \
28187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28188 $(HOST_EXPORTS) \
28189 for flag in $(EXTRA_HOST_FLAGS) ; do \
28190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28191 done; \
22121df0 28192 echo "Doing TAGS in gdb"; \
a90ef4bf 28193 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
28194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28196 "RANLIB=$${RANLIB}" \
0c24b341 28197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28198 TAGS) \
56a8fe78
DD
28199 || exit 1
28200
a90ef4bf 28201@endif gdb
56a8fe78 28202
a90ef4bf
JM
28203.PHONY: maybe-install-info-gdb install-info-gdb
28204maybe-install-info-gdb:
28205@if gdb
28206maybe-install-info-gdb: install-info-gdb
6d389afc 28207
a90ef4bf
JM
28208install-info-gdb: \
28209 configure-gdb \
28210 info-gdb
28211 @: $(MAKE); $(unstage)
28212 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
28213 r=`${PWD_COMMAND}`; export r; \
28214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
28215 $(HOST_EXPORTS) \
28216 for flag in $(EXTRA_HOST_FLAGS) ; do \
28217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28218 done; \
22121df0 28219 echo "Doing install-info in gdb"; \
a90ef4bf 28220 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
28221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28223 "RANLIB=$${RANLIB}" \
0c24b341 28224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28225 install-info) \
6d389afc
MS
28226 || exit 1
28227
a90ef4bf 28228@endif gdb
6d389afc 28229
a90ef4bf
JM
28230.PHONY: maybe-install-pdf-gdb install-pdf-gdb
28231maybe-install-pdf-gdb:
28232@if gdb
28233maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 28234
a90ef4bf
JM
28235install-pdf-gdb: \
28236 configure-gdb \
28237 pdf-gdb
28238 @: $(MAKE); $(unstage)
28239 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28240 r=`${PWD_COMMAND}`; export r; \
28241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28242 $(HOST_EXPORTS) \
b813574b 28243 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28245 done; \
22121df0 28246 echo "Doing install-pdf in gdb"; \
a90ef4bf 28247 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28250 "RANLIB=$${RANLIB}" \
0c24b341 28251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28252 install-pdf) \
2a4cbe27
NN
28253 || exit 1
28254
a90ef4bf 28255@endif gdb
2a4cbe27 28256
a90ef4bf
JM
28257.PHONY: maybe-install-html-gdb install-html-gdb
28258maybe-install-html-gdb:
28259@if gdb
28260maybe-install-html-gdb: install-html-gdb
2a4cbe27 28261
a90ef4bf
JM
28262install-html-gdb: \
28263 configure-gdb \
28264 html-gdb
28265 @: $(MAKE); $(unstage)
28266 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28267 r=`${PWD_COMMAND}`; export r; \
28268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28269 $(HOST_EXPORTS) \
b813574b 28270 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28272 done; \
22121df0 28273 echo "Doing install-html in gdb"; \
a90ef4bf 28274 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28277 "RANLIB=$${RANLIB}" \
0c24b341 28278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28279 install-html) \
2a4cbe27
NN
28280 || exit 1
28281
a90ef4bf 28282@endif gdb
2a4cbe27 28283
a90ef4bf
JM
28284.PHONY: maybe-installcheck-gdb installcheck-gdb
28285maybe-installcheck-gdb:
28286@if gdb
28287maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 28288
a90ef4bf
JM
28289installcheck-gdb: \
28290 configure-gdb
28291 @: $(MAKE); $(unstage)
28292 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
28293 r=`${PWD_COMMAND}`; export r; \
28294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28295 $(HOST_EXPORTS) \
28296 for flag in $(EXTRA_HOST_FLAGS) ; do \
28297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28298 done; \
22121df0 28299 echo "Doing installcheck in gdb"; \
a90ef4bf 28300 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
28301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28303 "RANLIB=$${RANLIB}" \
0c24b341 28304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28305 installcheck) \
a3ca38d2
DD
28306 || exit 1
28307
a90ef4bf 28308@endif gdb
a3ca38d2 28309
a90ef4bf
JM
28310.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
28311maybe-mostlyclean-gdb:
28312@if gdb
28313maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 28314
a90ef4bf
JM
28315mostlyclean-gdb:
28316 @: $(MAKE); $(unstage)
28317 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
28318 r=`${PWD_COMMAND}`; export r; \
28319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28320 $(HOST_EXPORTS) \
28321 for flag in $(EXTRA_HOST_FLAGS) ; do \
28322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28323 done; \
22121df0 28324 echo "Doing mostlyclean in gdb"; \
a90ef4bf 28325 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
28326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28328 "RANLIB=$${RANLIB}" \
0c24b341 28329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28330 mostlyclean) \
108a6f8e
CD
28331 || exit 1
28332
a90ef4bf 28333@endif gdb
108a6f8e 28334
a90ef4bf
JM
28335.PHONY: maybe-clean-gdb clean-gdb
28336maybe-clean-gdb:
28337@if gdb
28338maybe-clean-gdb: clean-gdb
2a4cbe27 28339
a90ef4bf
JM
28340clean-gdb:
28341 @: $(MAKE); $(unstage)
28342 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28343 r=`${PWD_COMMAND}`; export r; \
28344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28345 $(HOST_EXPORTS) \
b813574b 28346 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28348 done; \
22121df0 28349 echo "Doing clean in gdb"; \
a90ef4bf 28350 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28353 "RANLIB=$${RANLIB}" \
0c24b341 28354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28355 clean) \
2a4cbe27
NN
28356 || exit 1
28357
a90ef4bf 28358@endif gdb
2a4cbe27 28359
a90ef4bf
JM
28360.PHONY: maybe-distclean-gdb distclean-gdb
28361maybe-distclean-gdb:
28362@if gdb
28363maybe-distclean-gdb: distclean-gdb
2a4cbe27 28364
a90ef4bf
JM
28365distclean-gdb:
28366 @: $(MAKE); $(unstage)
28367 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28368 r=`${PWD_COMMAND}`; export r; \
28369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28370 $(HOST_EXPORTS) \
b813574b 28371 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28373 done; \
22121df0 28374 echo "Doing distclean in gdb"; \
a90ef4bf 28375 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28378 "RANLIB=$${RANLIB}" \
0c24b341 28379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28380 distclean) \
2a4cbe27
NN
28381 || exit 1
28382
a90ef4bf 28383@endif gdb
2a4cbe27 28384
a90ef4bf
JM
28385.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
28386maybe-maintainer-clean-gdb:
28387@if gdb
28388maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 28389
a90ef4bf
JM
28390maintainer-clean-gdb:
28391 @: $(MAKE); $(unstage)
28392 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28393 r=`${PWD_COMMAND}`; export r; \
28394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28395 $(HOST_EXPORTS) \
b813574b 28396 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28398 done; \
22121df0 28399 echo "Doing maintainer-clean in gdb"; \
a90ef4bf 28400 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28403 "RANLIB=$${RANLIB}" \
0c24b341 28404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28405 maintainer-clean) \
2a4cbe27
NN
28406 || exit 1
28407
a90ef4bf 28408@endif gdb
2a4cbe27 28409
2a4cbe27 28410
a7254363 28411
a90ef4bf
JM
28412.PHONY: configure-expect maybe-configure-expect
28413maybe-configure-expect:
4f0ef2d8 28414@if gcc-bootstrap
a90ef4bf 28415configure-expect: stage_current
4f0ef2d8 28416@endif gcc-bootstrap
a90ef4bf
JM
28417@if expect
28418maybe-configure-expect: configure-expect
28419configure-expect:
28420 @: $(MAKE); $(unstage)
c52c6897
PB
28421 @r=`${PWD_COMMAND}`; export r; \
28422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 28423 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
22121df0 28424 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect; \
1f53ca9a 28425 $(HOST_EXPORTS) \
a90ef4bf
JM
28426 echo Configuring in $(HOST_SUBDIR)/expect; \
28427 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
28428 case $(srcdir) in \
28429 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28430 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
28431 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28432 esac; \
1b6c0831
L
28433 module_srcdir=expect; \
28434 $(SHELL) \
28435 $$s/$$module_srcdir/configure \
28436 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28437 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28438 --target=${target_alias} \
be01d343 28439 || exit 1
a90ef4bf 28440@endif expect
be01d343
PB
28441
28442
28443
be01d343 28444
8520c408 28445
a90ef4bf
JM
28446.PHONY: all-expect maybe-all-expect
28447maybe-all-expect:
28448@if gcc-bootstrap
28449all-expect: stage_current
28450@endif gcc-bootstrap
28451@if expect
28452TARGET-expect=all
28453maybe-all-expect: all-expect
28454all-expect: configure-expect
28455 @: $(MAKE); $(unstage)
c52c6897
PB
28456 @r=`${PWD_COMMAND}`; export r; \
28457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28458 $(HOST_EXPORTS) \
28459 (cd $(HOST_SUBDIR)/expect && \
b3676d82 28460 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28461 $(TARGET-expect))
28462@endif expect
8520c408 28463
a90ef4bf
JM
28464
28465
28466
28467.PHONY: check-expect maybe-check-expect
28468maybe-check-expect:
28469@if expect
28470maybe-check-expect: check-expect
28471
28472check-expect:
28473 @: $(MAKE); $(unstage)
c52c6897
PB
28474 @r=`${PWD_COMMAND}`; export r; \
28475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28476 $(HOST_EXPORTS) \
a90ef4bf
JM
28477 (cd $(HOST_SUBDIR)/expect && \
28478 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 28479
a90ef4bf
JM
28480@endif expect
28481
28482.PHONY: install-expect maybe-install-expect
28483maybe-install-expect:
28484@if expect
28485maybe-install-expect: install-expect
28486
28487install-expect: installdirs
28488 @: $(MAKE); $(unstage)
c52c6897
PB
28489 @r=`${PWD_COMMAND}`; export r; \
28490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28491 $(HOST_EXPORTS) \
a90ef4bf
JM
28492 (cd $(HOST_SUBDIR)/expect && \
28493 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 28494
a90ef4bf
JM
28495@endif expect
28496
28497.PHONY: install-strip-expect maybe-install-strip-expect
28498maybe-install-strip-expect:
28499@if expect
28500maybe-install-strip-expect: install-strip-expect
28501
28502install-strip-expect: installdirs
28503 @: $(MAKE); $(unstage)
c52c6897
PB
28504 @r=`${PWD_COMMAND}`; export r; \
28505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28506 $(HOST_EXPORTS) \
a90ef4bf
JM
28507 (cd $(HOST_SUBDIR)/expect && \
28508 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 28509
a90ef4bf 28510@endif expect
be01d343 28511
a90ef4bf 28512# Other targets (info, dvi, pdf, etc.)
be01d343 28513
a90ef4bf
JM
28514.PHONY: maybe-info-expect info-expect
28515maybe-info-expect:
28516@if expect
28517maybe-info-expect: info-expect
be01d343 28518
a90ef4bf
JM
28519info-expect: \
28520 configure-expect
28521 @: $(MAKE); $(unstage)
28522 @[ -f ./expect/Makefile ] || exit 0; \
28523 r=`${PWD_COMMAND}`; export r; \
be01d343 28524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28525 $(HOST_EXPORTS) \
28526 for flag in $(EXTRA_HOST_FLAGS) ; do \
28527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28528 done; \
22121df0 28529 echo "Doing info in expect"; \
a90ef4bf
JM
28530 (cd $(HOST_SUBDIR)/expect && \
28531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28533 "RANLIB=$${RANLIB}" \
28534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28535 info) \
28536 || exit 1
be01d343 28537
a90ef4bf 28538@endif expect
be01d343 28539
a90ef4bf
JM
28540.PHONY: maybe-dvi-expect dvi-expect
28541maybe-dvi-expect:
28542@if expect
28543maybe-dvi-expect: dvi-expect
be01d343 28544
a90ef4bf
JM
28545dvi-expect: \
28546 configure-expect
28547 @: $(MAKE); $(unstage)
28548 @[ -f ./expect/Makefile ] || exit 0; \
28549 r=`${PWD_COMMAND}`; export r; \
be01d343 28550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28551 $(HOST_EXPORTS) \
28552 for flag in $(EXTRA_HOST_FLAGS) ; do \
28553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28554 done; \
22121df0 28555 echo "Doing dvi in expect"; \
a90ef4bf
JM
28556 (cd $(HOST_SUBDIR)/expect && \
28557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28559 "RANLIB=$${RANLIB}" \
28560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28561 dvi) \
28562 || exit 1
be01d343 28563
a90ef4bf 28564@endif expect
be01d343 28565
a90ef4bf
JM
28566.PHONY: maybe-pdf-expect pdf-expect
28567maybe-pdf-expect:
28568@if expect
28569maybe-pdf-expect: pdf-expect
be01d343 28570
a90ef4bf
JM
28571pdf-expect: \
28572 configure-expect
28573 @: $(MAKE); $(unstage)
28574 @[ -f ./expect/Makefile ] || exit 0; \
28575 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28577 $(HOST_EXPORTS) \
a90ef4bf
JM
28578 for flag in $(EXTRA_HOST_FLAGS) ; do \
28579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28580 done; \
22121df0 28581 echo "Doing pdf in expect"; \
a90ef4bf
JM
28582 (cd $(HOST_SUBDIR)/expect && \
28583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28585 "RANLIB=$${RANLIB}" \
28586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28587 pdf) \
28588 || exit 1
be01d343 28589
a90ef4bf 28590@endif expect
be01d343 28591
a90ef4bf
JM
28592.PHONY: maybe-html-expect html-expect
28593maybe-html-expect:
28594@if expect
28595maybe-html-expect: html-expect
be01d343 28596
a90ef4bf
JM
28597html-expect: \
28598 configure-expect
28599 @: $(MAKE); $(unstage)
28600 @[ -f ./expect/Makefile ] || exit 0; \
28601 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28603 $(HOST_EXPORTS) \
a90ef4bf
JM
28604 for flag in $(EXTRA_HOST_FLAGS) ; do \
28605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28606 done; \
22121df0 28607 echo "Doing html in expect"; \
a90ef4bf
JM
28608 (cd $(HOST_SUBDIR)/expect && \
28609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28611 "RANLIB=$${RANLIB}" \
28612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28613 html) \
28614 || exit 1
be01d343 28615
a90ef4bf 28616@endif expect
be01d343 28617
a90ef4bf
JM
28618.PHONY: maybe-TAGS-expect TAGS-expect
28619maybe-TAGS-expect:
28620@if expect
28621maybe-TAGS-expect: TAGS-expect
9b980aa1 28622
a90ef4bf
JM
28623TAGS-expect: \
28624 configure-expect
9b980aa1 28625 @: $(MAKE); $(unstage)
a90ef4bf 28626 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28627 r=`${PWD_COMMAND}`; export r; \
28628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28629 $(HOST_EXPORTS) \
28630 for flag in $(EXTRA_HOST_FLAGS) ; do \
28631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28632 done; \
22121df0 28633 echo "Doing TAGS in expect"; \
a90ef4bf 28634 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28637 "RANLIB=$${RANLIB}" \
0c24b341 28638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28639 TAGS) \
28640 || exit 1
28641
a90ef4bf 28642@endif expect
be01d343 28643
a90ef4bf
JM
28644.PHONY: maybe-install-info-expect install-info-expect
28645maybe-install-info-expect:
28646@if expect
28647maybe-install-info-expect: install-info-expect
be01d343 28648
a90ef4bf
JM
28649install-info-expect: \
28650 configure-expect \
28651 info-expect
28652 @: $(MAKE); $(unstage)
28653 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28654 r=`${PWD_COMMAND}`; export r; \
28655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28656 $(HOST_EXPORTS) \
28657 for flag in $(EXTRA_HOST_FLAGS) ; do \
28658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28659 done; \
22121df0 28660 echo "Doing install-info in expect"; \
a90ef4bf 28661 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28664 "RANLIB=$${RANLIB}" \
0c24b341 28665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28666 install-info) \
28667 || exit 1
28668
a90ef4bf 28669@endif expect
be01d343 28670
a90ef4bf
JM
28671.PHONY: maybe-install-pdf-expect install-pdf-expect
28672maybe-install-pdf-expect:
28673@if expect
28674maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 28675
a90ef4bf
JM
28676install-pdf-expect: \
28677 configure-expect \
28678 pdf-expect
28679 @: $(MAKE); $(unstage)
28680 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
28681 r=`${PWD_COMMAND}`; export r; \
28682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28683 $(HOST_EXPORTS) \
28684 for flag in $(EXTRA_HOST_FLAGS) ; do \
28685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28686 done; \
22121df0 28687 echo "Doing install-pdf in expect"; \
a90ef4bf 28688 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
28689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28691 "RANLIB=$${RANLIB}" \
0c24b341 28692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
28693 install-pdf) \
28694 || exit 1
28695
a90ef4bf 28696@endif expect
a3ca38d2 28697
a90ef4bf
JM
28698.PHONY: maybe-install-html-expect install-html-expect
28699maybe-install-html-expect:
28700@if expect
28701maybe-install-html-expect: install-html-expect
108a6f8e 28702
a90ef4bf
JM
28703install-html-expect: \
28704 configure-expect \
28705 html-expect
28706 @: $(MAKE); $(unstage)
28707 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
28708 r=`${PWD_COMMAND}`; export r; \
28709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28710 $(HOST_EXPORTS) \
28711 for flag in $(EXTRA_HOST_FLAGS) ; do \
28712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28713 done; \
22121df0 28714 echo "Doing install-html in expect"; \
a90ef4bf 28715 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
28716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28718 "RANLIB=$${RANLIB}" \
0c24b341 28719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
28720 install-html) \
28721 || exit 1
28722
a90ef4bf 28723@endif expect
108a6f8e 28724
a90ef4bf
JM
28725.PHONY: maybe-installcheck-expect installcheck-expect
28726maybe-installcheck-expect:
28727@if expect
28728maybe-installcheck-expect: installcheck-expect
be01d343 28729
a90ef4bf
JM
28730installcheck-expect: \
28731 configure-expect
28732 @: $(MAKE); $(unstage)
28733 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28734 r=`${PWD_COMMAND}`; export r; \
28735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28736 $(HOST_EXPORTS) \
28737 for flag in $(EXTRA_HOST_FLAGS) ; do \
28738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28739 done; \
22121df0 28740 echo "Doing installcheck in expect"; \
a90ef4bf 28741 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28744 "RANLIB=$${RANLIB}" \
0c24b341 28745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28746 installcheck) \
28747 || exit 1
28748
a90ef4bf 28749@endif expect
be01d343 28750
a90ef4bf
JM
28751.PHONY: maybe-mostlyclean-expect mostlyclean-expect
28752maybe-mostlyclean-expect:
28753@if expect
28754maybe-mostlyclean-expect: mostlyclean-expect
be01d343 28755
a90ef4bf
JM
28756mostlyclean-expect:
28757 @: $(MAKE); $(unstage)
28758 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28759 r=`${PWD_COMMAND}`; export r; \
28760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28761 $(HOST_EXPORTS) \
28762 for flag in $(EXTRA_HOST_FLAGS) ; do \
28763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28764 done; \
22121df0 28765 echo "Doing mostlyclean in expect"; \
a90ef4bf 28766 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28769 "RANLIB=$${RANLIB}" \
0c24b341 28770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28771 mostlyclean) \
28772 || exit 1
28773
a90ef4bf 28774@endif expect
be01d343 28775
a90ef4bf
JM
28776.PHONY: maybe-clean-expect clean-expect
28777maybe-clean-expect:
28778@if expect
28779maybe-clean-expect: clean-expect
be01d343 28780
a90ef4bf
JM
28781clean-expect:
28782 @: $(MAKE); $(unstage)
28783 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28784 r=`${PWD_COMMAND}`; export r; \
28785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28786 $(HOST_EXPORTS) \
28787 for flag in $(EXTRA_HOST_FLAGS) ; do \
28788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28789 done; \
22121df0 28790 echo "Doing clean in expect"; \
a90ef4bf 28791 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28794 "RANLIB=$${RANLIB}" \
0c24b341 28795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28796 clean) \
28797 || exit 1
28798
a90ef4bf 28799@endif expect
be01d343 28800
a90ef4bf
JM
28801.PHONY: maybe-distclean-expect distclean-expect
28802maybe-distclean-expect:
28803@if expect
28804maybe-distclean-expect: distclean-expect
be01d343 28805
a90ef4bf
JM
28806distclean-expect:
28807 @: $(MAKE); $(unstage)
28808 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28809 r=`${PWD_COMMAND}`; export r; \
28810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28811 $(HOST_EXPORTS) \
28812 for flag in $(EXTRA_HOST_FLAGS) ; do \
28813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28814 done; \
22121df0 28815 echo "Doing distclean in expect"; \
a90ef4bf 28816 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28819 "RANLIB=$${RANLIB}" \
0c24b341 28820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28821 distclean) \
28822 || exit 1
28823
a90ef4bf 28824@endif expect
be01d343 28825
a90ef4bf
JM
28826.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
28827maybe-maintainer-clean-expect:
28828@if expect
28829maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 28830
a90ef4bf
JM
28831maintainer-clean-expect:
28832 @: $(MAKE); $(unstage)
28833 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28834 r=`${PWD_COMMAND}`; export r; \
28835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28836 $(HOST_EXPORTS) \
28837 for flag in $(EXTRA_HOST_FLAGS) ; do \
28838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28839 done; \
22121df0 28840 echo "Doing maintainer-clean in expect"; \
a90ef4bf 28841 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28844 "RANLIB=$${RANLIB}" \
0c24b341 28845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28846 maintainer-clean) \
28847 || exit 1
28848
a90ef4bf 28849@endif expect
be01d343
PB
28850
28851
28852
a90ef4bf
JM
28853.PHONY: configure-guile maybe-configure-guile
28854maybe-configure-guile:
4f0ef2d8 28855@if gcc-bootstrap
a90ef4bf 28856configure-guile: stage_current
4f0ef2d8 28857@endif gcc-bootstrap
a90ef4bf
JM
28858@if guile
28859maybe-configure-guile: configure-guile
28860configure-guile:
0aed8855 28861 @: $(MAKE); $(unstage)
c52c6897 28862 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 28863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 28864 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
22121df0 28865 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile; \
1f53ca9a 28866 $(HOST_EXPORTS) \
a90ef4bf
JM
28867 echo Configuring in $(HOST_SUBDIR)/guile; \
28868 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 28869 case $(srcdir) in \
b00612cc 28870 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28871 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 28872 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 28873 esac; \
1b6c0831
L
28874 module_srcdir=guile; \
28875 $(SHELL) \
28876 $$s/$$module_srcdir/configure \
28877 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28878 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28879 --target=${target_alias} \
4b1cb4fe 28880 || exit 1
a90ef4bf 28881@endif guile
4b1cb4fe 28882
a7254363
PB
28883
28884
d545f33b
PB
28885
28886
a90ef4bf
JM
28887.PHONY: all-guile maybe-all-guile
28888maybe-all-guile:
4f0ef2d8 28889@if gcc-bootstrap
a90ef4bf 28890all-guile: stage_current
4f0ef2d8 28891@endif gcc-bootstrap
a90ef4bf
JM
28892@if guile
28893TARGET-guile=all
28894maybe-all-guile: all-guile
28895all-guile: configure-guile
28896 @: $(MAKE); $(unstage)
4b1cb4fe
DD
28897 @r=`${PWD_COMMAND}`; export r; \
28898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 28899 $(HOST_EXPORTS) \
a90ef4bf 28900 (cd $(HOST_SUBDIR)/guile && \
b3676d82 28901 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28902 $(TARGET-guile))
28903@endif guile
4b1cb4fe 28904
a7254363 28905
d545f33b
PB
28906
28907
a90ef4bf
JM
28908.PHONY: check-guile maybe-check-guile
28909maybe-check-guile:
28910@if guile
28911maybe-check-guile: check-guile
4b1cb4fe 28912
a90ef4bf 28913check-guile:
0aed8855 28914 @: $(MAKE); $(unstage)
4b1cb4fe
DD
28915 @r=`${PWD_COMMAND}`; export r; \
28916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28917 $(HOST_EXPORTS) \
a90ef4bf 28918 (cd $(HOST_SUBDIR)/guile && \
b00612cc 28919 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 28920
a90ef4bf 28921@endif guile
4b1cb4fe 28922
a90ef4bf
JM
28923.PHONY: install-guile maybe-install-guile
28924maybe-install-guile:
28925@if guile
28926maybe-install-guile: install-guile
4b1cb4fe 28927
a90ef4bf 28928install-guile: installdirs
0aed8855 28929 @: $(MAKE); $(unstage)
b813574b
PB
28930 @r=`${PWD_COMMAND}`; export r; \
28931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 28932 $(HOST_EXPORTS) \
a90ef4bf 28933 (cd $(HOST_SUBDIR)/guile && \
2da12f12 28934 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 28935
a90ef4bf 28936@endif guile
4b1cb4fe 28937
a90ef4bf
JM
28938.PHONY: install-strip-guile maybe-install-strip-guile
28939maybe-install-strip-guile:
28940@if guile
28941maybe-install-strip-guile: install-strip-guile
9b980aa1 28942
a90ef4bf 28943install-strip-guile: installdirs
9b980aa1
RW
28944 @: $(MAKE); $(unstage)
28945 @r=`${PWD_COMMAND}`; export r; \
28946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28947 $(HOST_EXPORTS) \
a90ef4bf 28948 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
28949 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28950
a90ef4bf 28951@endif guile
9b980aa1 28952
56a8fe78 28953# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 28954
a90ef4bf
JM
28955.PHONY: maybe-info-guile info-guile
28956maybe-info-guile:
28957@if guile
28958maybe-info-guile: info-guile
4b1cb4fe 28959
a90ef4bf
JM
28960info-guile: \
28961 configure-guile
0aed8855 28962 @: $(MAKE); $(unstage)
a90ef4bf 28963 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28964 r=`${PWD_COMMAND}`; export r; \
28965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28966 $(HOST_EXPORTS) \
b813574b 28967 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28969 done; \
22121df0 28970 echo "Doing info in guile"; \
a90ef4bf 28971 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28974 "RANLIB=$${RANLIB}" \
0c24b341 28975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28976 info) \
4b1cb4fe
DD
28977 || exit 1
28978
a90ef4bf 28979@endif guile
4b1cb4fe 28980
a90ef4bf
JM
28981.PHONY: maybe-dvi-guile dvi-guile
28982maybe-dvi-guile:
28983@if guile
28984maybe-dvi-guile: dvi-guile
4b1cb4fe 28985
a90ef4bf
JM
28986dvi-guile: \
28987 configure-guile
0aed8855 28988 @: $(MAKE); $(unstage)
a90ef4bf 28989 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
28990 r=`${PWD_COMMAND}`; export r; \
28991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28992 $(HOST_EXPORTS) \
b813574b 28993 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
28994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28995 done; \
22121df0 28996 echo "Doing dvi in guile"; \
a90ef4bf 28997 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
28998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29000 "RANLIB=$${RANLIB}" \
0c24b341 29001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29002 dvi) \
4b1cb4fe
DD
29003 || exit 1
29004
a90ef4bf 29005@endif guile
4b1cb4fe 29006
a90ef4bf
JM
29007.PHONY: maybe-pdf-guile pdf-guile
29008maybe-pdf-guile:
29009@if guile
29010maybe-pdf-guile: pdf-guile
56a8fe78 29011
a90ef4bf
JM
29012pdf-guile: \
29013 configure-guile
56a8fe78 29014 @: $(MAKE); $(unstage)
a90ef4bf 29015 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
29016 r=`${PWD_COMMAND}`; export r; \
29017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29018 $(HOST_EXPORTS) \
29019 for flag in $(EXTRA_HOST_FLAGS) ; do \
29020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29021 done; \
22121df0 29022 echo "Doing pdf in guile"; \
a90ef4bf 29023 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
29024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29026 "RANLIB=$${RANLIB}" \
0c24b341 29027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29028 pdf) \
29029 || exit 1
29030
a90ef4bf 29031@endif guile
56a8fe78 29032
a90ef4bf
JM
29033.PHONY: maybe-html-guile html-guile
29034maybe-html-guile:
29035@if guile
29036maybe-html-guile: html-guile
6d389afc 29037
a90ef4bf
JM
29038html-guile: \
29039 configure-guile
0aed8855 29040 @: $(MAKE); $(unstage)
a90ef4bf 29041 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
29042 r=`${PWD_COMMAND}`; export r; \
29043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29044 $(HOST_EXPORTS) \
29045 for flag in $(EXTRA_HOST_FLAGS) ; do \
29046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29047 done; \
22121df0 29048 echo "Doing html in guile"; \
a90ef4bf 29049 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
29050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29052 "RANLIB=$${RANLIB}" \
0c24b341 29053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29054 html) \
29055 || exit 1
29056
a90ef4bf 29057@endif guile
6d389afc 29058
a90ef4bf
JM
29059.PHONY: maybe-TAGS-guile TAGS-guile
29060maybe-TAGS-guile:
29061@if guile
29062maybe-TAGS-guile: TAGS-guile
4b1cb4fe 29063
a90ef4bf
JM
29064TAGS-guile: \
29065 configure-guile
0aed8855 29066 @: $(MAKE); $(unstage)
a90ef4bf 29067 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29068 r=`${PWD_COMMAND}`; export r; \
29069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29070 $(HOST_EXPORTS) \
b813574b 29071 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29073 done; \
22121df0 29074 echo "Doing TAGS in guile"; \
a90ef4bf 29075 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29078 "RANLIB=$${RANLIB}" \
0c24b341 29079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29080 TAGS) \
4b1cb4fe
DD
29081 || exit 1
29082
a90ef4bf 29083@endif guile
4b1cb4fe 29084
a90ef4bf
JM
29085.PHONY: maybe-install-info-guile install-info-guile
29086maybe-install-info-guile:
29087@if guile
29088maybe-install-info-guile: install-info-guile
4b1cb4fe 29089
a90ef4bf
JM
29090install-info-guile: \
29091 configure-guile \
29092 info-guile
0aed8855 29093 @: $(MAKE); $(unstage)
a90ef4bf 29094 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29095 r=`${PWD_COMMAND}`; export r; \
29096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29097 $(HOST_EXPORTS) \
b813574b 29098 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29100 done; \
22121df0 29101 echo "Doing install-info in guile"; \
a90ef4bf 29102 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29105 "RANLIB=$${RANLIB}" \
0c24b341 29106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29107 install-info) \
4b1cb4fe
DD
29108 || exit 1
29109
a90ef4bf 29110@endif guile
4b1cb4fe 29111
a90ef4bf
JM
29112.PHONY: maybe-install-pdf-guile install-pdf-guile
29113maybe-install-pdf-guile:
29114@if guile
29115maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 29116
a90ef4bf
JM
29117install-pdf-guile: \
29118 configure-guile \
29119 pdf-guile
a3ca38d2 29120 @: $(MAKE); $(unstage)
a90ef4bf 29121 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
29122 r=`${PWD_COMMAND}`; export r; \
29123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29124 $(HOST_EXPORTS) \
29125 for flag in $(EXTRA_HOST_FLAGS) ; do \
29126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29127 done; \
22121df0 29128 echo "Doing install-pdf in guile"; \
a90ef4bf 29129 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
29130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29132 "RANLIB=$${RANLIB}" \
0c24b341 29133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29134 install-pdf) \
29135 || exit 1
29136
a90ef4bf 29137@endif guile
a3ca38d2 29138
a90ef4bf
JM
29139.PHONY: maybe-install-html-guile install-html-guile
29140maybe-install-html-guile:
29141@if guile
29142maybe-install-html-guile: install-html-guile
108a6f8e 29143
a90ef4bf
JM
29144install-html-guile: \
29145 configure-guile \
29146 html-guile
108a6f8e 29147 @: $(MAKE); $(unstage)
a90ef4bf 29148 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
29149 r=`${PWD_COMMAND}`; export r; \
29150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29151 $(HOST_EXPORTS) \
29152 for flag in $(EXTRA_HOST_FLAGS) ; do \
29153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29154 done; \
22121df0 29155 echo "Doing install-html in guile"; \
a90ef4bf 29156 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
29157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29159 "RANLIB=$${RANLIB}" \
0c24b341 29160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29161 install-html) \
29162 || exit 1
29163
a90ef4bf 29164@endif guile
108a6f8e 29165
a90ef4bf
JM
29166.PHONY: maybe-installcheck-guile installcheck-guile
29167maybe-installcheck-guile:
29168@if guile
29169maybe-installcheck-guile: installcheck-guile
4b1cb4fe 29170
a90ef4bf
JM
29171installcheck-guile: \
29172 configure-guile
0aed8855 29173 @: $(MAKE); $(unstage)
a90ef4bf 29174 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29175 r=`${PWD_COMMAND}`; export r; \
29176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29177 $(HOST_EXPORTS) \
b813574b 29178 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29180 done; \
22121df0 29181 echo "Doing installcheck in guile"; \
a90ef4bf 29182 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29185 "RANLIB=$${RANLIB}" \
0c24b341 29186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29187 installcheck) \
4b1cb4fe
DD
29188 || exit 1
29189
a90ef4bf 29190@endif guile
4b1cb4fe 29191
a90ef4bf
JM
29192.PHONY: maybe-mostlyclean-guile mostlyclean-guile
29193maybe-mostlyclean-guile:
29194@if guile
29195maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 29196
a90ef4bf 29197mostlyclean-guile:
0aed8855 29198 @: $(MAKE); $(unstage)
a90ef4bf 29199 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29200 r=`${PWD_COMMAND}`; export r; \
29201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29202 $(HOST_EXPORTS) \
b813574b 29203 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29205 done; \
22121df0 29206 echo "Doing mostlyclean in guile"; \
a90ef4bf 29207 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29210 "RANLIB=$${RANLIB}" \
0c24b341 29211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29212 mostlyclean) \
4b1cb4fe
DD
29213 || exit 1
29214
a90ef4bf 29215@endif guile
4b1cb4fe 29216
a90ef4bf
JM
29217.PHONY: maybe-clean-guile clean-guile
29218maybe-clean-guile:
29219@if guile
29220maybe-clean-guile: clean-guile
4b1cb4fe 29221
a90ef4bf 29222clean-guile:
0aed8855 29223 @: $(MAKE); $(unstage)
a90ef4bf 29224 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29225 r=`${PWD_COMMAND}`; export r; \
29226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29227 $(HOST_EXPORTS) \
b813574b 29228 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29230 done; \
22121df0 29231 echo "Doing clean in guile"; \
a90ef4bf 29232 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29235 "RANLIB=$${RANLIB}" \
0c24b341 29236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29237 clean) \
4b1cb4fe
DD
29238 || exit 1
29239
a90ef4bf 29240@endif guile
4b1cb4fe 29241
a90ef4bf
JM
29242.PHONY: maybe-distclean-guile distclean-guile
29243maybe-distclean-guile:
29244@if guile
29245maybe-distclean-guile: distclean-guile
4b1cb4fe 29246
a90ef4bf 29247distclean-guile:
0aed8855 29248 @: $(MAKE); $(unstage)
a90ef4bf 29249 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29250 r=`${PWD_COMMAND}`; export r; \
29251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29252 $(HOST_EXPORTS) \
b813574b 29253 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29255 done; \
22121df0 29256 echo "Doing distclean in guile"; \
a90ef4bf 29257 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29260 "RANLIB=$${RANLIB}" \
0c24b341 29261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29262 distclean) \
4b1cb4fe
DD
29263 || exit 1
29264
a90ef4bf 29265@endif guile
4b1cb4fe 29266
a90ef4bf
JM
29267.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
29268maybe-maintainer-clean-guile:
29269@if guile
29270maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 29271
a90ef4bf 29272maintainer-clean-guile:
0aed8855 29273 @: $(MAKE); $(unstage)
a90ef4bf 29274 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29275 r=`${PWD_COMMAND}`; export r; \
29276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29277 $(HOST_EXPORTS) \
b813574b 29278 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29280 done; \
22121df0 29281 echo "Doing maintainer-clean in guile"; \
a90ef4bf 29282 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29285 "RANLIB=$${RANLIB}" \
0c24b341 29286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29287 maintainer-clean) \
4b1cb4fe
DD
29288 || exit 1
29289
a90ef4bf 29290@endif guile
4b1cb4fe
DD
29291
29292
a7254363 29293
a90ef4bf
JM
29294.PHONY: configure-tk maybe-configure-tk
29295maybe-configure-tk:
4f0ef2d8 29296@if gcc-bootstrap
a90ef4bf 29297configure-tk: stage_current
4f0ef2d8 29298@endif gcc-bootstrap
a90ef4bf
JM
29299@if tk
29300maybe-configure-tk: configure-tk
29301configure-tk:
29302 @: $(MAKE); $(unstage)
c52c6897
PB
29303 @r=`${PWD_COMMAND}`; export r; \
29304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29305 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
22121df0 29306 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk; \
1f53ca9a 29307 $(HOST_EXPORTS) \
a90ef4bf
JM
29308 echo Configuring in $(HOST_SUBDIR)/tk; \
29309 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 29310 case $(srcdir) in \
b00612cc 29311 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29312 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 29313 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29314 esac; \
1b6c0831
L
29315 module_srcdir=tk; \
29316 $(SHELL) \
29317 $$s/$$module_srcdir/configure \
29318 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29319 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29320 --target=${target_alias} \
2a4cbe27 29321 || exit 1
a90ef4bf 29322@endif tk
2a4cbe27 29323
a7254363
PB
29324
29325
a90ef4bf
JM
29326
29327
29328.PHONY: all-tk maybe-all-tk
29329maybe-all-tk:
29330@if gcc-bootstrap
29331all-tk: stage_current
29332@endif gcc-bootstrap
29333@if tk
29334TARGET-tk=all
29335maybe-all-tk: all-tk
29336all-tk: configure-tk
29337 @: $(MAKE); $(unstage)
c52c6897
PB
29338 @r=`${PWD_COMMAND}`; export r; \
29339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29340 $(HOST_EXPORTS) \
29341 (cd $(HOST_SUBDIR)/tk && \
b3676d82 29342 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29343 $(TARGET-tk))
29344@endif tk
d545f33b 29345
a90ef4bf
JM
29346
29347
29348
29349.PHONY: check-tk maybe-check-tk
29350maybe-check-tk:
29351@if tk
29352maybe-check-tk: check-tk
29353
29354check-tk:
29355 @: $(MAKE); $(unstage)
c52c6897
PB
29356 @r=`${PWD_COMMAND}`; export r; \
29357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29358 $(HOST_EXPORTS) \
a90ef4bf
JM
29359 (cd $(HOST_SUBDIR)/tk && \
29360 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 29361
a90ef4bf
JM
29362@endif tk
29363
29364.PHONY: install-tk maybe-install-tk
29365maybe-install-tk:
29366@if tk
29367maybe-install-tk: install-tk
29368
29369install-tk: installdirs
29370 @: $(MAKE); $(unstage)
c52c6897
PB
29371 @r=`${PWD_COMMAND}`; export r; \
29372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29373 $(HOST_EXPORTS) \
a90ef4bf
JM
29374 (cd $(HOST_SUBDIR)/tk && \
29375 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 29376
a90ef4bf
JM
29377@endif tk
29378
29379.PHONY: install-strip-tk maybe-install-strip-tk
29380maybe-install-strip-tk:
29381@if tk
29382maybe-install-strip-tk: install-strip-tk
29383
29384install-strip-tk: installdirs
29385 @: $(MAKE); $(unstage)
c52c6897
PB
29386 @r=`${PWD_COMMAND}`; export r; \
29387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29388 $(HOST_EXPORTS) \
a90ef4bf
JM
29389 (cd $(HOST_SUBDIR)/tk && \
29390 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 29391
a90ef4bf 29392@endif tk
9b980aa1 29393
56a8fe78 29394# Other targets (info, dvi, pdf, etc.)
2a4cbe27 29395
a90ef4bf
JM
29396.PHONY: maybe-info-tk info-tk
29397maybe-info-tk:
29398@if tk
29399maybe-info-tk: info-tk
4fa63067 29400
a90ef4bf
JM
29401info-tk: \
29402 configure-tk
29403 @: $(MAKE); $(unstage)
29404 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29405 r=`${PWD_COMMAND}`; export r; \
29406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29407 $(HOST_EXPORTS) \
b813574b 29408 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29410 done; \
22121df0 29411 echo "Doing info in tk"; \
a90ef4bf 29412 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
29413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29415 "RANLIB=$${RANLIB}" \
0c24b341 29416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29417 info) \
29418 || exit 1
29419
a90ef4bf 29420@endif tk
6d389afc 29421
a90ef4bf
JM
29422.PHONY: maybe-dvi-tk dvi-tk
29423maybe-dvi-tk:
29424@if tk
29425maybe-dvi-tk: dvi-tk
6d389afc 29426
a90ef4bf
JM
29427dvi-tk: \
29428 configure-tk
29429 @: $(MAKE); $(unstage)
29430 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
29431 r=`${PWD_COMMAND}`; export r; \
29432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29433 $(HOST_EXPORTS) \
29434 for flag in $(EXTRA_HOST_FLAGS) ; do \
29435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29436 done; \
22121df0 29437 echo "Doing dvi in tk"; \
a90ef4bf 29438 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29441 "RANLIB=$${RANLIB}" \
0c24b341 29442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29443 dvi) \
2a4cbe27
NN
29444 || exit 1
29445
a90ef4bf 29446@endif tk
2a4cbe27 29447
a90ef4bf
JM
29448.PHONY: maybe-pdf-tk pdf-tk
29449maybe-pdf-tk:
29450@if tk
29451maybe-pdf-tk: pdf-tk
56a8fe78 29452
a90ef4bf
JM
29453pdf-tk: \
29454 configure-tk
29455 @: $(MAKE); $(unstage)
29456 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
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; \
22121df0 29463 echo "Doing pdf in tk"; \
a90ef4bf 29464 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
29465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29467 "RANLIB=$${RANLIB}" \
0c24b341 29468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29469 pdf) \
29470 || exit 1
29471
a90ef4bf 29472@endif tk
56a8fe78 29473
a90ef4bf
JM
29474.PHONY: maybe-html-tk html-tk
29475maybe-html-tk:
29476@if tk
29477maybe-html-tk: html-tk
2a4cbe27 29478
a90ef4bf
JM
29479html-tk: \
29480 configure-tk
29481 @: $(MAKE); $(unstage)
29482 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29483 r=`${PWD_COMMAND}`; export r; \
29484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29485 $(HOST_EXPORTS) \
b813574b 29486 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29488 done; \
22121df0 29489 echo "Doing html in tk"; \
a90ef4bf 29490 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29493 "RANLIB=$${RANLIB}" \
0c24b341 29494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29495 html) \
2a4cbe27
NN
29496 || exit 1
29497
a90ef4bf 29498@endif tk
2a4cbe27 29499
a90ef4bf
JM
29500.PHONY: maybe-TAGS-tk TAGS-tk
29501maybe-TAGS-tk:
29502@if tk
29503maybe-TAGS-tk: TAGS-tk
2a4cbe27 29504
a90ef4bf
JM
29505TAGS-tk: \
29506 configure-tk
29507 @: $(MAKE); $(unstage)
29508 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29509 r=`${PWD_COMMAND}`; export r; \
29510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29511 $(HOST_EXPORTS) \
b813574b 29512 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29514 done; \
22121df0 29515 echo "Doing TAGS in tk"; \
a90ef4bf 29516 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29519 "RANLIB=$${RANLIB}" \
0c24b341 29520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29521 TAGS) \
2a4cbe27
NN
29522 || exit 1
29523
a90ef4bf 29524@endif tk
2a4cbe27 29525
a90ef4bf
JM
29526.PHONY: maybe-install-info-tk install-info-tk
29527maybe-install-info-tk:
29528@if tk
29529maybe-install-info-tk: install-info-tk
2a4cbe27 29530
a90ef4bf
JM
29531install-info-tk: \
29532 configure-tk \
29533 info-tk
29534 @: $(MAKE); $(unstage)
29535 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29536 r=`${PWD_COMMAND}`; export r; \
29537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29538 $(HOST_EXPORTS) \
b813574b 29539 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29541 done; \
22121df0 29542 echo "Doing install-info in tk"; \
a90ef4bf 29543 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29546 "RANLIB=$${RANLIB}" \
0c24b341 29547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29548 install-info) \
2a4cbe27
NN
29549 || exit 1
29550
a90ef4bf 29551@endif tk
2a4cbe27 29552
a90ef4bf
JM
29553.PHONY: maybe-install-pdf-tk install-pdf-tk
29554maybe-install-pdf-tk:
29555@if tk
29556maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 29557
a90ef4bf
JM
29558install-pdf-tk: \
29559 configure-tk \
29560 pdf-tk
29561 @: $(MAKE); $(unstage)
29562 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
29563 r=`${PWD_COMMAND}`; export r; \
29564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29565 $(HOST_EXPORTS) \
29566 for flag in $(EXTRA_HOST_FLAGS) ; do \
29567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29568 done; \
22121df0 29569 echo "Doing install-pdf in tk"; \
a90ef4bf 29570 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
29571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29573 "RANLIB=$${RANLIB}" \
0c24b341 29574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29575 install-pdf) \
29576 || exit 1
29577
a90ef4bf 29578@endif tk
a3ca38d2 29579
a90ef4bf
JM
29580.PHONY: maybe-install-html-tk install-html-tk
29581maybe-install-html-tk:
29582@if tk
29583maybe-install-html-tk: install-html-tk
108a6f8e 29584
a90ef4bf
JM
29585install-html-tk: \
29586 configure-tk \
29587 html-tk
29588 @: $(MAKE); $(unstage)
29589 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
29590 r=`${PWD_COMMAND}`; export r; \
29591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29592 $(HOST_EXPORTS) \
29593 for flag in $(EXTRA_HOST_FLAGS) ; do \
29594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29595 done; \
22121df0 29596 echo "Doing install-html in tk"; \
a90ef4bf 29597 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
29598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29600 "RANLIB=$${RANLIB}" \
0c24b341 29601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29602 install-html) \
29603 || exit 1
29604
a90ef4bf 29605@endif tk
108a6f8e 29606
a90ef4bf
JM
29607.PHONY: maybe-installcheck-tk installcheck-tk
29608maybe-installcheck-tk:
29609@if tk
29610maybe-installcheck-tk: installcheck-tk
2a4cbe27 29611
a90ef4bf
JM
29612installcheck-tk: \
29613 configure-tk
29614 @: $(MAKE); $(unstage)
29615 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29616 r=`${PWD_COMMAND}`; export r; \
29617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29618 $(HOST_EXPORTS) \
b813574b 29619 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29621 done; \
22121df0 29622 echo "Doing installcheck in tk"; \
a90ef4bf 29623 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29626 "RANLIB=$${RANLIB}" \
0c24b341 29627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29628 installcheck) \
2a4cbe27
NN
29629 || exit 1
29630
a90ef4bf 29631@endif tk
2a4cbe27 29632
a90ef4bf
JM
29633.PHONY: maybe-mostlyclean-tk mostlyclean-tk
29634maybe-mostlyclean-tk:
29635@if tk
29636maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 29637
a90ef4bf
JM
29638mostlyclean-tk:
29639 @: $(MAKE); $(unstage)
29640 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29641 r=`${PWD_COMMAND}`; export r; \
29642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29643 $(HOST_EXPORTS) \
b813574b 29644 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29646 done; \
22121df0 29647 echo "Doing mostlyclean in tk"; \
a90ef4bf 29648 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29651 "RANLIB=$${RANLIB}" \
0c24b341 29652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29653 mostlyclean) \
2a4cbe27
NN
29654 || exit 1
29655
a90ef4bf 29656@endif tk
2a4cbe27 29657
a90ef4bf
JM
29658.PHONY: maybe-clean-tk clean-tk
29659maybe-clean-tk:
29660@if tk
29661maybe-clean-tk: clean-tk
2a4cbe27 29662
a90ef4bf
JM
29663clean-tk:
29664 @: $(MAKE); $(unstage)
29665 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29666 r=`${PWD_COMMAND}`; export r; \
29667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29668 $(HOST_EXPORTS) \
b813574b 29669 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29671 done; \
22121df0 29672 echo "Doing clean in tk"; \
a90ef4bf 29673 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29676 "RANLIB=$${RANLIB}" \
0c24b341 29677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29678 clean) \
2a4cbe27
NN
29679 || exit 1
29680
a90ef4bf 29681@endif tk
2a4cbe27 29682
a90ef4bf
JM
29683.PHONY: maybe-distclean-tk distclean-tk
29684maybe-distclean-tk:
29685@if tk
29686maybe-distclean-tk: distclean-tk
2a4cbe27 29687
a90ef4bf
JM
29688distclean-tk:
29689 @: $(MAKE); $(unstage)
29690 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29691 r=`${PWD_COMMAND}`; export r; \
29692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29693 $(HOST_EXPORTS) \
b813574b 29694 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29696 done; \
22121df0 29697 echo "Doing distclean in tk"; \
a90ef4bf 29698 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29701 "RANLIB=$${RANLIB}" \
0c24b341 29702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29703 distclean) \
2a4cbe27
NN
29704 || exit 1
29705
a90ef4bf 29706@endif tk
2a4cbe27 29707
a90ef4bf
JM
29708.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
29709maybe-maintainer-clean-tk:
29710@if tk
29711maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 29712
a90ef4bf
JM
29713maintainer-clean-tk:
29714 @: $(MAKE); $(unstage)
29715 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29716 r=`${PWD_COMMAND}`; export r; \
29717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29718 $(HOST_EXPORTS) \
b813574b 29719 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29721 done; \
22121df0 29722 echo "Doing maintainer-clean in tk"; \
a90ef4bf 29723 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29726 "RANLIB=$${RANLIB}" \
0c24b341 29727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29728 maintainer-clean) \
2a4cbe27
NN
29729 || exit 1
29730
a90ef4bf 29731@endif tk
2a4cbe27 29732
2a4cbe27 29733
a7254363 29734
a90ef4bf
JM
29735.PHONY: configure-libtermcap maybe-configure-libtermcap
29736maybe-configure-libtermcap:
dc448a7b 29737@if gcc-bootstrap
a90ef4bf 29738configure-libtermcap: stage_current
dc448a7b 29739@endif gcc-bootstrap
a90ef4bf
JM
29740@if libtermcap
29741maybe-configure-libtermcap: configure-libtermcap
29742configure-libtermcap:
dc448a7b
TT
29743 @: $(MAKE); $(unstage)
29744 @r=`${PWD_COMMAND}`; export r; \
29745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29746 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 29747 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap; \
1f53ca9a 29748 $(HOST_EXPORTS) \
a90ef4bf
JM
29749 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
29750 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
29751 case $(srcdir) in \
29752 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29753 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
29754 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29755 esac; \
1b6c0831
L
29756 module_srcdir=libtermcap; \
29757 $(SHELL) \
29758 $$s/$$module_srcdir/configure \
29759 --srcdir=$${topdir}/$$module_srcdir \
dc448a7b 29760 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29761 --target=${target_alias} \
dc448a7b 29762 || exit 1
a90ef4bf 29763@endif libtermcap
dc448a7b
TT
29764
29765
29766
29767
29768
a90ef4bf
JM
29769.PHONY: all-libtermcap maybe-all-libtermcap
29770maybe-all-libtermcap:
dc448a7b 29771@if gcc-bootstrap
a90ef4bf 29772all-libtermcap: stage_current
dc448a7b 29773@endif gcc-bootstrap
a90ef4bf
JM
29774@if libtermcap
29775TARGET-libtermcap=all
29776maybe-all-libtermcap: all-libtermcap
29777all-libtermcap: configure-libtermcap
dc448a7b
TT
29778 @: $(MAKE); $(unstage)
29779 @r=`${PWD_COMMAND}`; export r; \
29780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29781 $(HOST_EXPORTS) \
a90ef4bf 29782 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 29783 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29784 $(TARGET-libtermcap))
29785@endif libtermcap
dc448a7b
TT
29786
29787
29788
29789
a90ef4bf
JM
29790.PHONY: check-libtermcap maybe-check-libtermcap
29791maybe-check-libtermcap:
29792@if libtermcap
29793maybe-check-libtermcap: check-libtermcap
dc448a7b 29794
a90ef4bf
JM
29795check-libtermcap:
29796
29797@endif libtermcap
29798
29799.PHONY: install-libtermcap maybe-install-libtermcap
29800maybe-install-libtermcap:
29801@if libtermcap
29802maybe-install-libtermcap: install-libtermcap
29803
29804install-libtermcap: installdirs
dc448a7b
TT
29805 @: $(MAKE); $(unstage)
29806 @r=`${PWD_COMMAND}`; export r; \
29807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29808 $(HOST_EXPORTS) \
a90ef4bf
JM
29809 (cd $(HOST_SUBDIR)/libtermcap && \
29810 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 29811
a90ef4bf 29812@endif libtermcap
dc448a7b 29813
a90ef4bf
JM
29814.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
29815maybe-install-strip-libtermcap:
29816@if libtermcap
29817maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 29818
a90ef4bf
JM
29819install-strip-libtermcap: installdirs
29820 @: $(MAKE); $(unstage)
29821 @r=`${PWD_COMMAND}`; export r; \
29822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29823 $(HOST_EXPORTS) \
29824 (cd $(HOST_SUBDIR)/libtermcap && \
29825 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 29826
a90ef4bf 29827@endif libtermcap
9b980aa1 29828
dc448a7b
TT
29829# Other targets (info, dvi, pdf, etc.)
29830
a90ef4bf
JM
29831.PHONY: maybe-info-libtermcap info-libtermcap
29832maybe-info-libtermcap:
29833@if libtermcap
29834maybe-info-libtermcap: info-libtermcap
dc448a7b 29835
a90ef4bf
JM
29836info-libtermcap: \
29837 configure-libtermcap
dc448a7b 29838 @: $(MAKE); $(unstage)
a90ef4bf 29839 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29840 r=`${PWD_COMMAND}`; export r; \
29841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29842 $(HOST_EXPORTS) \
29843 for flag in $(EXTRA_HOST_FLAGS) ; do \
29844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29845 done; \
22121df0 29846 echo "Doing info in libtermcap"; \
a90ef4bf 29847 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29850 "RANLIB=$${RANLIB}" \
29851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29852 info) \
29853 || exit 1
29854
a90ef4bf 29855@endif libtermcap
dc448a7b 29856
a90ef4bf
JM
29857.PHONY: maybe-dvi-libtermcap dvi-libtermcap
29858maybe-dvi-libtermcap:
29859@if libtermcap
29860maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 29861
a90ef4bf
JM
29862dvi-libtermcap: \
29863 configure-libtermcap
dc448a7b 29864 @: $(MAKE); $(unstage)
a90ef4bf 29865 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29866 r=`${PWD_COMMAND}`; export r; \
29867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29868 $(HOST_EXPORTS) \
29869 for flag in $(EXTRA_HOST_FLAGS) ; do \
29870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29871 done; \
22121df0 29872 echo "Doing dvi in libtermcap"; \
a90ef4bf 29873 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29876 "RANLIB=$${RANLIB}" \
29877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29878 dvi) \
29879 || exit 1
29880
a90ef4bf 29881@endif libtermcap
dc448a7b 29882
a90ef4bf
JM
29883.PHONY: maybe-pdf-libtermcap pdf-libtermcap
29884maybe-pdf-libtermcap:
29885@if libtermcap
29886maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 29887
a90ef4bf
JM
29888pdf-libtermcap: \
29889 configure-libtermcap
dc448a7b 29890 @: $(MAKE); $(unstage)
a90ef4bf 29891 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29892 r=`${PWD_COMMAND}`; export r; \
29893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29894 $(HOST_EXPORTS) \
29895 for flag in $(EXTRA_HOST_FLAGS) ; do \
29896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29897 done; \
22121df0 29898 echo "Doing pdf in libtermcap"; \
a90ef4bf 29899 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29902 "RANLIB=$${RANLIB}" \
29903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29904 pdf) \
29905 || exit 1
29906
a90ef4bf 29907@endif libtermcap
dc448a7b 29908
a90ef4bf
JM
29909.PHONY: maybe-html-libtermcap html-libtermcap
29910maybe-html-libtermcap:
29911@if libtermcap
29912maybe-html-libtermcap: html-libtermcap
dc448a7b 29913
a90ef4bf
JM
29914html-libtermcap: \
29915 configure-libtermcap
dc448a7b 29916 @: $(MAKE); $(unstage)
a90ef4bf 29917 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29918 r=`${PWD_COMMAND}`; export r; \
29919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29920 $(HOST_EXPORTS) \
29921 for flag in $(EXTRA_HOST_FLAGS) ; do \
29922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29923 done; \
22121df0 29924 echo "Doing html in libtermcap"; \
a90ef4bf 29925 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29928 "RANLIB=$${RANLIB}" \
29929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29930 html) \
29931 || exit 1
29932
a90ef4bf 29933@endif libtermcap
dc448a7b 29934
a90ef4bf
JM
29935.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
29936maybe-TAGS-libtermcap:
29937@if libtermcap
29938maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 29939
a90ef4bf
JM
29940TAGS-libtermcap: \
29941 configure-libtermcap
dc448a7b 29942 @: $(MAKE); $(unstage)
a90ef4bf 29943 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29944 r=`${PWD_COMMAND}`; export r; \
29945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29946 $(HOST_EXPORTS) \
29947 for flag in $(EXTRA_HOST_FLAGS) ; do \
29948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29949 done; \
22121df0 29950 echo "Doing TAGS in libtermcap"; \
a90ef4bf 29951 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29954 "RANLIB=$${RANLIB}" \
29955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29956 TAGS) \
29957 || exit 1
29958
a90ef4bf 29959@endif libtermcap
dc448a7b 29960
a90ef4bf
JM
29961.PHONY: maybe-install-info-libtermcap install-info-libtermcap
29962maybe-install-info-libtermcap:
29963@if libtermcap
29964maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 29965
a90ef4bf
JM
29966install-info-libtermcap: \
29967 configure-libtermcap \
29968 info-libtermcap
dc448a7b 29969 @: $(MAKE); $(unstage)
a90ef4bf 29970 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29971 r=`${PWD_COMMAND}`; export r; \
29972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29973 $(HOST_EXPORTS) \
29974 for flag in $(EXTRA_HOST_FLAGS) ; do \
29975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29976 done; \
22121df0 29977 echo "Doing install-info in libtermcap"; \
a90ef4bf 29978 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29981 "RANLIB=$${RANLIB}" \
29982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29983 install-info) \
dc448a7b
TT
29984 || exit 1
29985
a90ef4bf 29986@endif libtermcap
dc448a7b 29987
a90ef4bf
JM
29988.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
29989maybe-install-pdf-libtermcap:
29990@if libtermcap
29991maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 29992
a90ef4bf
JM
29993install-pdf-libtermcap: \
29994 configure-libtermcap \
29995 pdf-libtermcap
dc448a7b 29996 @: $(MAKE); $(unstage)
a90ef4bf 29997 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29998 r=`${PWD_COMMAND}`; export r; \
29999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30000 $(HOST_EXPORTS) \
30001 for flag in $(EXTRA_HOST_FLAGS) ; do \
30002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30003 done; \
22121df0 30004 echo "Doing install-pdf in libtermcap"; \
a90ef4bf 30005 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30008 "RANLIB=$${RANLIB}" \
30009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30010 install-pdf) \
dc448a7b
TT
30011 || exit 1
30012
a90ef4bf 30013@endif libtermcap
dc448a7b 30014
a90ef4bf
JM
30015.PHONY: maybe-install-html-libtermcap install-html-libtermcap
30016maybe-install-html-libtermcap:
30017@if libtermcap
30018maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 30019
a90ef4bf
JM
30020install-html-libtermcap: \
30021 configure-libtermcap \
30022 html-libtermcap
dc448a7b 30023 @: $(MAKE); $(unstage)
a90ef4bf 30024 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30025 r=`${PWD_COMMAND}`; export r; \
30026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30027 $(HOST_EXPORTS) \
30028 for flag in $(EXTRA_HOST_FLAGS) ; do \
30029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30030 done; \
22121df0 30031 echo "Doing install-html in libtermcap"; \
a90ef4bf 30032 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30035 "RANLIB=$${RANLIB}" \
30036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30037 install-html) \
dc448a7b
TT
30038 || exit 1
30039
a90ef4bf 30040@endif libtermcap
dc448a7b 30041
a90ef4bf
JM
30042.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
30043maybe-installcheck-libtermcap:
30044@if libtermcap
30045maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 30046
a90ef4bf
JM
30047installcheck-libtermcap: \
30048 configure-libtermcap
dc448a7b 30049 @: $(MAKE); $(unstage)
a90ef4bf 30050 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30051 r=`${PWD_COMMAND}`; export r; \
30052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30053 $(HOST_EXPORTS) \
30054 for flag in $(EXTRA_HOST_FLAGS) ; do \
30055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30056 done; \
22121df0 30057 echo "Doing installcheck in libtermcap"; \
a90ef4bf 30058 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30061 "RANLIB=$${RANLIB}" \
30062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30063 installcheck) \
dc448a7b
TT
30064 || exit 1
30065
a90ef4bf 30066@endif libtermcap
dc448a7b 30067
a90ef4bf
JM
30068.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
30069maybe-mostlyclean-libtermcap:
30070@if libtermcap
30071maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 30072
a90ef4bf
JM
30073# libtermcap doesn't support mostlyclean.
30074mostlyclean-libtermcap:
dc448a7b 30075
a90ef4bf 30076@endif libtermcap
dc448a7b 30077
a90ef4bf
JM
30078.PHONY: maybe-clean-libtermcap clean-libtermcap
30079maybe-clean-libtermcap:
30080@if libtermcap
30081maybe-clean-libtermcap: clean-libtermcap
dc448a7b 30082
a90ef4bf
JM
30083# libtermcap doesn't support clean.
30084clean-libtermcap:
dc448a7b 30085
a90ef4bf
JM
30086@endif libtermcap
30087
30088.PHONY: maybe-distclean-libtermcap distclean-libtermcap
30089maybe-distclean-libtermcap:
30090@if libtermcap
30091maybe-distclean-libtermcap: distclean-libtermcap
30092
30093# libtermcap doesn't support distclean.
30094distclean-libtermcap:
30095
30096@endif libtermcap
30097
30098.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
30099maybe-maintainer-clean-libtermcap:
30100@if libtermcap
30101maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
30102
30103# libtermcap doesn't support maintainer-clean.
30104maintainer-clean-libtermcap:
30105
30106@endif libtermcap
30107
30108
30109
30110.PHONY: configure-utils maybe-configure-utils
30111maybe-configure-utils:
30112@if gcc-bootstrap
30113configure-utils: stage_current
30114@endif gcc-bootstrap
30115@if utils
30116maybe-configure-utils: configure-utils
30117configure-utils:
30118 @: $(MAKE); $(unstage)
c52c6897 30119 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30121 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
22121df0 30122 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils; \
1f53ca9a 30123 $(HOST_EXPORTS) \
a90ef4bf
JM
30124 echo Configuring in $(HOST_SUBDIR)/utils; \
30125 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 30126 case $(srcdir) in \
b00612cc 30127 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30128 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 30129 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30130 esac; \
1b6c0831
L
30131 module_srcdir=utils; \
30132 $(SHELL) \
30133 $$s/$$module_srcdir/configure \
30134 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30135 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30136 --target=${target_alias} \
2a4cbe27 30137 || exit 1
a90ef4bf 30138@endif utils
2a4cbe27 30139
a7254363
PB
30140
30141
d545f33b
PB
30142
30143
a90ef4bf
JM
30144.PHONY: all-utils maybe-all-utils
30145maybe-all-utils:
4f0ef2d8 30146@if gcc-bootstrap
a90ef4bf 30147all-utils: stage_current
4f0ef2d8 30148@endif gcc-bootstrap
a90ef4bf
JM
30149@if utils
30150TARGET-utils=all
30151maybe-all-utils: all-utils
30152all-utils: configure-utils
0aed8855 30153 @: $(MAKE); $(unstage)
4fa63067
NN
30154 @r=`${PWD_COMMAND}`; export r; \
30155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30156 $(HOST_EXPORTS) \
a90ef4bf 30157 (cd $(HOST_SUBDIR)/utils && \
b3676d82 30158 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30159 $(TARGET-utils))
30160@endif utils
2a4cbe27 30161
a7254363 30162
d545f33b
PB
30163
30164
a90ef4bf
JM
30165.PHONY: check-utils maybe-check-utils
30166maybe-check-utils:
30167@if utils
30168maybe-check-utils: check-utils
2a4cbe27 30169
a90ef4bf 30170check-utils:
2a4cbe27 30171
a90ef4bf 30172@endif utils
2a4cbe27 30173
a90ef4bf
JM
30174.PHONY: install-utils maybe-install-utils
30175maybe-install-utils:
30176@if utils
30177maybe-install-utils: install-utils
2a4cbe27 30178
a90ef4bf 30179install-utils: installdirs
0aed8855 30180 @: $(MAKE); $(unstage)
4fa63067 30181 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30183 $(HOST_EXPORTS) \
a90ef4bf 30184 (cd $(HOST_SUBDIR)/utils && \
2da12f12 30185 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 30186
a90ef4bf 30187@endif utils
2a4cbe27 30188
a90ef4bf
JM
30189.PHONY: install-strip-utils maybe-install-strip-utils
30190maybe-install-strip-utils:
30191@if utils
30192maybe-install-strip-utils: install-strip-utils
9b980aa1 30193
a90ef4bf 30194install-strip-utils: installdirs
9b980aa1
RW
30195 @: $(MAKE); $(unstage)
30196 @r=`${PWD_COMMAND}`; export r; \
30197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30198 $(HOST_EXPORTS) \
a90ef4bf 30199 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
30200 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30201
a90ef4bf 30202@endif utils
9b980aa1 30203
56a8fe78 30204# Other targets (info, dvi, pdf, etc.)
2a4cbe27 30205
a90ef4bf
JM
30206.PHONY: maybe-info-utils info-utils
30207maybe-info-utils:
30208@if utils
30209maybe-info-utils: info-utils
4fa63067 30210
a90ef4bf
JM
30211info-utils: \
30212 configure-utils
0aed8855 30213 @: $(MAKE); $(unstage)
a90ef4bf 30214 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30215 r=`${PWD_COMMAND}`; export r; \
30216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30217 $(HOST_EXPORTS) \
b813574b 30218 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30220 done; \
22121df0 30221 echo "Doing info in utils"; \
a90ef4bf 30222 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30225 "RANLIB=$${RANLIB}" \
0c24b341 30226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30227 info) \
2a4cbe27
NN
30228 || exit 1
30229
a90ef4bf 30230@endif utils
2a4cbe27 30231
a90ef4bf
JM
30232.PHONY: maybe-dvi-utils dvi-utils
30233maybe-dvi-utils:
30234@if utils
30235maybe-dvi-utils: dvi-utils
2a4cbe27 30236
a90ef4bf
JM
30237dvi-utils: \
30238 configure-utils
0aed8855 30239 @: $(MAKE); $(unstage)
a90ef4bf 30240 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30241 r=`${PWD_COMMAND}`; export r; \
30242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30243 $(HOST_EXPORTS) \
b813574b 30244 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30246 done; \
22121df0 30247 echo "Doing dvi in utils"; \
a90ef4bf 30248 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30251 "RANLIB=$${RANLIB}" \
0c24b341 30252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30253 dvi) \
2a4cbe27
NN
30254 || exit 1
30255
a90ef4bf 30256@endif utils
2a4cbe27 30257
a90ef4bf
JM
30258.PHONY: maybe-pdf-utils pdf-utils
30259maybe-pdf-utils:
30260@if utils
30261maybe-pdf-utils: pdf-utils
56a8fe78 30262
a90ef4bf
JM
30263pdf-utils: \
30264 configure-utils
56a8fe78 30265 @: $(MAKE); $(unstage)
a90ef4bf 30266 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
30267 r=`${PWD_COMMAND}`; export r; \
30268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30269 $(HOST_EXPORTS) \
30270 for flag in $(EXTRA_HOST_FLAGS) ; do \
30271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30272 done; \
22121df0 30273 echo "Doing pdf in utils"; \
a90ef4bf 30274 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
30275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30277 "RANLIB=$${RANLIB}" \
0c24b341 30278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30279 pdf) \
30280 || exit 1
30281
a90ef4bf 30282@endif utils
56a8fe78 30283
a90ef4bf
JM
30284.PHONY: maybe-html-utils html-utils
30285maybe-html-utils:
30286@if utils
30287maybe-html-utils: html-utils
6d389afc 30288
a90ef4bf
JM
30289html-utils: \
30290 configure-utils
0aed8855 30291 @: $(MAKE); $(unstage)
a90ef4bf 30292 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
30293 r=`${PWD_COMMAND}`; export r; \
30294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30295 $(HOST_EXPORTS) \
30296 for flag in $(EXTRA_HOST_FLAGS) ; do \
30297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30298 done; \
22121df0 30299 echo "Doing html in utils"; \
a90ef4bf 30300 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
30301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30303 "RANLIB=$${RANLIB}" \
0c24b341 30304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30305 html) \
30306 || exit 1
30307
a90ef4bf 30308@endif utils
6d389afc 30309
a90ef4bf
JM
30310.PHONY: maybe-TAGS-utils TAGS-utils
30311maybe-TAGS-utils:
30312@if utils
30313maybe-TAGS-utils: TAGS-utils
2a4cbe27 30314
a90ef4bf
JM
30315TAGS-utils: \
30316 configure-utils
0aed8855 30317 @: $(MAKE); $(unstage)
a90ef4bf 30318 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30319 r=`${PWD_COMMAND}`; export r; \
30320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30321 $(HOST_EXPORTS) \
b813574b 30322 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30324 done; \
22121df0 30325 echo "Doing TAGS in utils"; \
a90ef4bf 30326 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30329 "RANLIB=$${RANLIB}" \
0c24b341 30330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30331 TAGS) \
2a4cbe27
NN
30332 || exit 1
30333
a90ef4bf 30334@endif utils
2a4cbe27 30335
a90ef4bf
JM
30336.PHONY: maybe-install-info-utils install-info-utils
30337maybe-install-info-utils:
30338@if utils
30339maybe-install-info-utils: install-info-utils
2a4cbe27 30340
a90ef4bf
JM
30341install-info-utils: \
30342 configure-utils \
30343 info-utils
0aed8855 30344 @: $(MAKE); $(unstage)
a90ef4bf 30345 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30346 r=`${PWD_COMMAND}`; export r; \
30347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30348 $(HOST_EXPORTS) \
b813574b 30349 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30350 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30351 done; \
22121df0 30352 echo "Doing install-info in utils"; \
a90ef4bf 30353 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30354 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30355 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30356 "RANLIB=$${RANLIB}" \
0c24b341 30357 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30358 install-info) \
2a4cbe27
NN
30359 || exit 1
30360
a90ef4bf 30361@endif utils
2a4cbe27 30362
a90ef4bf
JM
30363.PHONY: maybe-install-pdf-utils install-pdf-utils
30364maybe-install-pdf-utils:
30365@if utils
30366maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 30367
a90ef4bf
JM
30368install-pdf-utils: \
30369 configure-utils \
30370 pdf-utils
a3ca38d2 30371 @: $(MAKE); $(unstage)
a90ef4bf 30372 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
30373 r=`${PWD_COMMAND}`; export r; \
30374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30375 $(HOST_EXPORTS) \
30376 for flag in $(EXTRA_HOST_FLAGS) ; do \
30377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30378 done; \
22121df0 30379 echo "Doing install-pdf in utils"; \
a90ef4bf 30380 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
30381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30383 "RANLIB=$${RANLIB}" \
0c24b341 30384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30385 install-pdf) \
30386 || exit 1
30387
a90ef4bf 30388@endif utils
a3ca38d2 30389
a90ef4bf
JM
30390.PHONY: maybe-install-html-utils install-html-utils
30391maybe-install-html-utils:
30392@if utils
30393maybe-install-html-utils: install-html-utils
108a6f8e 30394
a90ef4bf
JM
30395install-html-utils: \
30396 configure-utils \
30397 html-utils
108a6f8e 30398 @: $(MAKE); $(unstage)
a90ef4bf 30399 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
30400 r=`${PWD_COMMAND}`; export r; \
30401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30402 $(HOST_EXPORTS) \
30403 for flag in $(EXTRA_HOST_FLAGS) ; do \
30404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30405 done; \
22121df0 30406 echo "Doing install-html in utils"; \
a90ef4bf 30407 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
30408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30410 "RANLIB=$${RANLIB}" \
0c24b341 30411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30412 install-html) \
30413 || exit 1
30414
a90ef4bf 30415@endif utils
108a6f8e 30416
a90ef4bf
JM
30417.PHONY: maybe-installcheck-utils installcheck-utils
30418maybe-installcheck-utils:
30419@if utils
30420maybe-installcheck-utils: installcheck-utils
2a4cbe27 30421
a90ef4bf
JM
30422installcheck-utils: \
30423 configure-utils
0aed8855 30424 @: $(MAKE); $(unstage)
a90ef4bf 30425 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30426 r=`${PWD_COMMAND}`; export r; \
30427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30428 $(HOST_EXPORTS) \
b813574b 30429 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30431 done; \
22121df0 30432 echo "Doing installcheck in utils"; \
a90ef4bf 30433 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30436 "RANLIB=$${RANLIB}" \
0c24b341 30437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30438 installcheck) \
2a4cbe27
NN
30439 || exit 1
30440
a90ef4bf 30441@endif utils
2a4cbe27 30442
a90ef4bf
JM
30443.PHONY: maybe-mostlyclean-utils mostlyclean-utils
30444maybe-mostlyclean-utils:
30445@if utils
30446maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 30447
a90ef4bf 30448mostlyclean-utils:
0aed8855 30449 @: $(MAKE); $(unstage)
a90ef4bf 30450 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30451 r=`${PWD_COMMAND}`; export r; \
30452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30453 $(HOST_EXPORTS) \
b813574b 30454 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30456 done; \
22121df0 30457 echo "Doing mostlyclean in utils"; \
a90ef4bf 30458 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30461 "RANLIB=$${RANLIB}" \
0c24b341 30462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30463 mostlyclean) \
2a4cbe27
NN
30464 || exit 1
30465
a90ef4bf 30466@endif utils
2a4cbe27 30467
a90ef4bf
JM
30468.PHONY: maybe-clean-utils clean-utils
30469maybe-clean-utils:
30470@if utils
30471maybe-clean-utils: clean-utils
2a4cbe27 30472
a90ef4bf 30473clean-utils:
0aed8855 30474 @: $(MAKE); $(unstage)
a90ef4bf 30475 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30476 r=`${PWD_COMMAND}`; export r; \
30477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30478 $(HOST_EXPORTS) \
b813574b 30479 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30481 done; \
22121df0 30482 echo "Doing clean in utils"; \
a90ef4bf 30483 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30486 "RANLIB=$${RANLIB}" \
0c24b341 30487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30488 clean) \
2a4cbe27
NN
30489 || exit 1
30490
a90ef4bf 30491@endif utils
2a4cbe27 30492
a90ef4bf
JM
30493.PHONY: maybe-distclean-utils distclean-utils
30494maybe-distclean-utils:
30495@if utils
30496maybe-distclean-utils: distclean-utils
2a4cbe27 30497
a90ef4bf 30498distclean-utils:
0aed8855 30499 @: $(MAKE); $(unstage)
a90ef4bf 30500 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30501 r=`${PWD_COMMAND}`; export r; \
30502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30503 $(HOST_EXPORTS) \
b813574b 30504 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30506 done; \
22121df0 30507 echo "Doing distclean in utils"; \
a90ef4bf 30508 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30511 "RANLIB=$${RANLIB}" \
0c24b341 30512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30513 distclean) \
2a4cbe27
NN
30514 || exit 1
30515
a90ef4bf 30516@endif utils
2a4cbe27 30517
a90ef4bf
JM
30518.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
30519maybe-maintainer-clean-utils:
30520@if utils
30521maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 30522
a90ef4bf 30523maintainer-clean-utils:
0aed8855 30524 @: $(MAKE); $(unstage)
a90ef4bf 30525 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30526 r=`${PWD_COMMAND}`; export r; \
30527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30528 $(HOST_EXPORTS) \
b813574b 30529 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30531 done; \
22121df0 30532 echo "Doing maintainer-clean in utils"; \
a90ef4bf 30533 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30536 "RANLIB=$${RANLIB}" \
0c24b341 30537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30538 maintainer-clean) \
2a4cbe27
NN
30539 || exit 1
30540
a90ef4bf 30541@endif utils
2a4cbe27 30542
2a4cbe27 30543
a7254363 30544
a90ef4bf
JM
30545.PHONY: configure-gnattools maybe-configure-gnattools
30546maybe-configure-gnattools:
4f0ef2d8 30547@if gcc-bootstrap
a90ef4bf 30548configure-gnattools: stage_current
4f0ef2d8 30549@endif gcc-bootstrap
a90ef4bf
JM
30550@if gnattools
30551maybe-configure-gnattools: configure-gnattools
30552configure-gnattools:
0aed8855 30553 @: $(MAKE); $(unstage)
c52c6897 30554 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30556 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
22121df0 30557 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools; \
1f53ca9a 30558 $(HOST_EXPORTS) \
a90ef4bf
JM
30559 echo Configuring in $(HOST_SUBDIR)/gnattools; \
30560 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 30561 case $(srcdir) in \
b00612cc 30562 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30563 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 30564 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30565 esac; \
1b6c0831
L
30566 module_srcdir=gnattools; \
30567 $(SHELL) \
30568 $$s/$$module_srcdir/configure \
30569 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30570 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30571 --target=${target_alias} \
2a4cbe27 30572 || exit 1
a90ef4bf 30573@endif gnattools
2a4cbe27 30574
a7254363
PB
30575
30576
d545f33b
PB
30577
30578
a90ef4bf
JM
30579.PHONY: all-gnattools maybe-all-gnattools
30580maybe-all-gnattools:
4f0ef2d8 30581@if gcc-bootstrap
a90ef4bf 30582all-gnattools: stage_current
4f0ef2d8 30583@endif gcc-bootstrap
a90ef4bf
JM
30584@if gnattools
30585TARGET-gnattools=all
30586maybe-all-gnattools: all-gnattools
30587all-gnattools: configure-gnattools
0aed8855 30588 @: $(MAKE); $(unstage)
4fa63067
NN
30589 @r=`${PWD_COMMAND}`; export r; \
30590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30591 $(HOST_EXPORTS) \
a90ef4bf 30592 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 30593 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30594 $(TARGET-gnattools))
30595@endif gnattools
4fa63067 30596
a7254363 30597
d545f33b
PB
30598
30599
a90ef4bf
JM
30600.PHONY: check-gnattools maybe-check-gnattools
30601maybe-check-gnattools:
30602@if gnattools
30603maybe-check-gnattools: check-gnattools
2a4cbe27 30604
a90ef4bf 30605check-gnattools:
0aed8855 30606 @: $(MAKE); $(unstage)
4fa63067
NN
30607 @r=`${PWD_COMMAND}`; export r; \
30608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 30609 $(HOST_EXPORTS) \
a90ef4bf 30610 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 30611 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 30612
a90ef4bf 30613@endif gnattools
4fa63067 30614
a90ef4bf
JM
30615.PHONY: install-gnattools maybe-install-gnattools
30616maybe-install-gnattools:
30617@if gnattools
30618maybe-install-gnattools: install-gnattools
4fa63067 30619
a90ef4bf 30620install-gnattools: installdirs
0aed8855 30621 @: $(MAKE); $(unstage)
4fa63067
NN
30622 @r=`${PWD_COMMAND}`; export r; \
30623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30624 $(HOST_EXPORTS) \
a90ef4bf 30625 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 30626 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 30627
a90ef4bf 30628@endif gnattools
4fa63067 30629
a90ef4bf
JM
30630.PHONY: install-strip-gnattools maybe-install-strip-gnattools
30631maybe-install-strip-gnattools:
30632@if gnattools
30633maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 30634
a90ef4bf 30635install-strip-gnattools: installdirs
9b980aa1
RW
30636 @: $(MAKE); $(unstage)
30637 @r=`${PWD_COMMAND}`; export r; \
30638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30639 $(HOST_EXPORTS) \
a90ef4bf 30640 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
30641 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30642
a90ef4bf 30643@endif gnattools
9b980aa1 30644
56a8fe78 30645# Other targets (info, dvi, pdf, etc.)
4fa63067 30646
a90ef4bf
JM
30647.PHONY: maybe-info-gnattools info-gnattools
30648maybe-info-gnattools:
30649@if gnattools
30650maybe-info-gnattools: info-gnattools
4fa63067 30651
a90ef4bf
JM
30652info-gnattools: \
30653 configure-gnattools
0aed8855 30654 @: $(MAKE); $(unstage)
a90ef4bf 30655 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30656 r=`${PWD_COMMAND}`; export r; \
30657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30658 $(HOST_EXPORTS) \
b813574b 30659 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30661 done; \
22121df0 30662 echo "Doing info in gnattools"; \
a90ef4bf 30663 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30666 "RANLIB=$${RANLIB}" \
0c24b341 30667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30668 info) \
2a4cbe27
NN
30669 || exit 1
30670
a90ef4bf 30671@endif gnattools
2a4cbe27 30672
a90ef4bf
JM
30673.PHONY: maybe-dvi-gnattools dvi-gnattools
30674maybe-dvi-gnattools:
30675@if gnattools
30676maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 30677
a90ef4bf
JM
30678dvi-gnattools: \
30679 configure-gnattools
0aed8855 30680 @: $(MAKE); $(unstage)
a90ef4bf 30681 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30682 r=`${PWD_COMMAND}`; export r; \
30683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30684 $(HOST_EXPORTS) \
b813574b 30685 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30687 done; \
22121df0 30688 echo "Doing dvi in gnattools"; \
a90ef4bf 30689 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30692 "RANLIB=$${RANLIB}" \
0c24b341 30693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30694 dvi) \
2a4cbe27
NN
30695 || exit 1
30696
a90ef4bf 30697@endif gnattools
2a4cbe27 30698
a90ef4bf
JM
30699.PHONY: maybe-pdf-gnattools pdf-gnattools
30700maybe-pdf-gnattools:
30701@if gnattools
30702maybe-pdf-gnattools: pdf-gnattools
56a8fe78 30703
a90ef4bf
JM
30704pdf-gnattools: \
30705 configure-gnattools
56a8fe78 30706 @: $(MAKE); $(unstage)
a90ef4bf 30707 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
30708 r=`${PWD_COMMAND}`; export r; \
30709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30710 $(HOST_EXPORTS) \
30711 for flag in $(EXTRA_HOST_FLAGS) ; do \
30712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30713 done; \
22121df0 30714 echo "Doing pdf in gnattools"; \
a90ef4bf 30715 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
30716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30718 "RANLIB=$${RANLIB}" \
0c24b341 30719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30720 pdf) \
30721 || exit 1
30722
a90ef4bf 30723@endif gnattools
56a8fe78 30724
a90ef4bf
JM
30725.PHONY: maybe-html-gnattools html-gnattools
30726maybe-html-gnattools:
30727@if gnattools
30728maybe-html-gnattools: html-gnattools
6d389afc 30729
a90ef4bf
JM
30730html-gnattools: \
30731 configure-gnattools
0aed8855 30732 @: $(MAKE); $(unstage)
a90ef4bf 30733 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
30734 r=`${PWD_COMMAND}`; export r; \
30735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30736 $(HOST_EXPORTS) \
30737 for flag in $(EXTRA_HOST_FLAGS) ; do \
30738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30739 done; \
22121df0 30740 echo "Doing html in gnattools"; \
a90ef4bf 30741 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
30742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30744 "RANLIB=$${RANLIB}" \
0c24b341 30745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30746 html) \
30747 || exit 1
30748
a90ef4bf 30749@endif gnattools
6d389afc 30750
a90ef4bf
JM
30751.PHONY: maybe-TAGS-gnattools TAGS-gnattools
30752maybe-TAGS-gnattools:
30753@if gnattools
30754maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 30755
a90ef4bf
JM
30756TAGS-gnattools: \
30757 configure-gnattools
0aed8855 30758 @: $(MAKE); $(unstage)
a90ef4bf 30759 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30760 r=`${PWD_COMMAND}`; export r; \
30761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30762 $(HOST_EXPORTS) \
b813574b 30763 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30765 done; \
22121df0 30766 echo "Doing TAGS in gnattools"; \
a90ef4bf 30767 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30770 "RANLIB=$${RANLIB}" \
0c24b341 30771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30772 TAGS) \
2a4cbe27
NN
30773 || exit 1
30774
a90ef4bf 30775@endif gnattools
2a4cbe27 30776
a90ef4bf
JM
30777.PHONY: maybe-install-info-gnattools install-info-gnattools
30778maybe-install-info-gnattools:
30779@if gnattools
30780maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 30781
a90ef4bf
JM
30782install-info-gnattools: \
30783 configure-gnattools \
30784 info-gnattools
0aed8855 30785 @: $(MAKE); $(unstage)
a90ef4bf 30786 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30787 r=`${PWD_COMMAND}`; export r; \
30788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30789 $(HOST_EXPORTS) \
b813574b 30790 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30792 done; \
22121df0 30793 echo "Doing install-info in gnattools"; \
a90ef4bf 30794 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30797 "RANLIB=$${RANLIB}" \
0c24b341 30798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30799 install-info) \
2a4cbe27
NN
30800 || exit 1
30801
a90ef4bf 30802@endif gnattools
2a4cbe27 30803
a90ef4bf
JM
30804.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
30805maybe-install-pdf-gnattools:
30806@if gnattools
30807maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 30808
a90ef4bf
JM
30809install-pdf-gnattools: \
30810 configure-gnattools \
30811 pdf-gnattools
a3ca38d2 30812 @: $(MAKE); $(unstage)
a90ef4bf 30813 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
30814 r=`${PWD_COMMAND}`; export r; \
30815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30816 $(HOST_EXPORTS) \
30817 for flag in $(EXTRA_HOST_FLAGS) ; do \
30818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30819 done; \
22121df0 30820 echo "Doing install-pdf in gnattools"; \
a90ef4bf 30821 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
30822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30824 "RANLIB=$${RANLIB}" \
0c24b341 30825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30826 install-pdf) \
30827 || exit 1
30828
a90ef4bf 30829@endif gnattools
a3ca38d2 30830
a90ef4bf
JM
30831.PHONY: maybe-install-html-gnattools install-html-gnattools
30832maybe-install-html-gnattools:
30833@if gnattools
30834maybe-install-html-gnattools: install-html-gnattools
108a6f8e 30835
a90ef4bf
JM
30836install-html-gnattools: \
30837 configure-gnattools \
30838 html-gnattools
108a6f8e 30839 @: $(MAKE); $(unstage)
a90ef4bf 30840 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
30841 r=`${PWD_COMMAND}`; export r; \
30842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30843 $(HOST_EXPORTS) \
30844 for flag in $(EXTRA_HOST_FLAGS) ; do \
30845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30846 done; \
22121df0 30847 echo "Doing install-html in gnattools"; \
a90ef4bf 30848 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
30849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30851 "RANLIB=$${RANLIB}" \
0c24b341 30852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30853 install-html) \
30854 || exit 1
30855
a90ef4bf 30856@endif gnattools
108a6f8e 30857
a90ef4bf
JM
30858.PHONY: maybe-installcheck-gnattools installcheck-gnattools
30859maybe-installcheck-gnattools:
30860@if gnattools
30861maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 30862
a90ef4bf
JM
30863installcheck-gnattools: \
30864 configure-gnattools
0aed8855 30865 @: $(MAKE); $(unstage)
a90ef4bf 30866 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30867 r=`${PWD_COMMAND}`; export r; \
30868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30869 $(HOST_EXPORTS) \
b813574b 30870 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30872 done; \
22121df0 30873 echo "Doing installcheck in gnattools"; \
a90ef4bf 30874 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30877 "RANLIB=$${RANLIB}" \
0c24b341 30878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30879 installcheck) \
2a4cbe27
NN
30880 || exit 1
30881
a90ef4bf 30882@endif gnattools
2a4cbe27 30883
a90ef4bf
JM
30884.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
30885maybe-mostlyclean-gnattools:
30886@if gnattools
30887maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 30888
a90ef4bf 30889mostlyclean-gnattools:
0aed8855 30890 @: $(MAKE); $(unstage)
a90ef4bf 30891 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30892 r=`${PWD_COMMAND}`; export r; \
30893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30894 $(HOST_EXPORTS) \
b813574b 30895 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30897 done; \
22121df0 30898 echo "Doing mostlyclean in gnattools"; \
a90ef4bf 30899 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30902 "RANLIB=$${RANLIB}" \
0c24b341 30903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30904 mostlyclean) \
2a4cbe27
NN
30905 || exit 1
30906
a90ef4bf 30907@endif gnattools
2a4cbe27 30908
a90ef4bf
JM
30909.PHONY: maybe-clean-gnattools clean-gnattools
30910maybe-clean-gnattools:
30911@if gnattools
30912maybe-clean-gnattools: clean-gnattools
2a4cbe27 30913
a90ef4bf 30914clean-gnattools:
0aed8855 30915 @: $(MAKE); $(unstage)
a90ef4bf 30916 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30917 r=`${PWD_COMMAND}`; export r; \
30918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30919 $(HOST_EXPORTS) \
b813574b 30920 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30922 done; \
22121df0 30923 echo "Doing clean in gnattools"; \
a90ef4bf 30924 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30927 "RANLIB=$${RANLIB}" \
0c24b341 30928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30929 clean) \
2a4cbe27
NN
30930 || exit 1
30931
a90ef4bf 30932@endif gnattools
2a4cbe27 30933
a90ef4bf
JM
30934.PHONY: maybe-distclean-gnattools distclean-gnattools
30935maybe-distclean-gnattools:
30936@if gnattools
30937maybe-distclean-gnattools: distclean-gnattools
a2592b1b 30938
a90ef4bf 30939distclean-gnattools:
0aed8855 30940 @: $(MAKE); $(unstage)
a90ef4bf 30941 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
30942 r=`${PWD_COMMAND}`; export r; \
30943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30944 $(HOST_EXPORTS) \
b813574b 30945 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
30946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30947 done; \
22121df0 30948 echo "Doing distclean in gnattools"; \
a90ef4bf 30949 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
30950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30952 "RANLIB=$${RANLIB}" \
0c24b341 30953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30954 distclean) \
a2592b1b
DD
30955 || exit 1
30956
a90ef4bf 30957@endif gnattools
a2592b1b 30958
a90ef4bf
JM
30959.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
30960maybe-maintainer-clean-gnattools:
30961@if gnattools
30962maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 30963
a90ef4bf 30964maintainer-clean-gnattools:
0aed8855 30965 @: $(MAKE); $(unstage)
a90ef4bf 30966 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 30967 r=`${PWD_COMMAND}`; export r; \
b40e3958 30968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30969 $(HOST_EXPORTS) \
b813574b 30970 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
30971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30972 done; \
22121df0 30973 echo "Doing maintainer-clean in gnattools"; \
a90ef4bf 30974 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
30975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30977 "RANLIB=$${RANLIB}" \
0c24b341 30978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30979 maintainer-clean) \
4fa63067 30980 || exit 1
252b5132 30981
a90ef4bf 30982@endif gnattools
252b5132 30983
252b5132 30984
a7254363 30985
a90ef4bf
JM
30986.PHONY: configure-lto-plugin maybe-configure-lto-plugin
30987maybe-configure-lto-plugin:
4f0ef2d8 30988@if gcc-bootstrap
a90ef4bf 30989configure-lto-plugin: stage_current
4f0ef2d8 30990@endif gcc-bootstrap
a90ef4bf
JM
30991@if lto-plugin
30992maybe-configure-lto-plugin: configure-lto-plugin
30993configure-lto-plugin:
c52c6897 30994 @r=`${PWD_COMMAND}`; export r; \
b813574b 30995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30996 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
22121df0 30997 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
1f53ca9a 30998 $(HOST_EXPORTS) \
a90ef4bf
JM
30999 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
31000 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 31001 case $(srcdir) in \
b00612cc 31002 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31003 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 31004 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 31005 esac; \
1b6c0831
L
31006 module_srcdir=lto-plugin; \
31007 $(SHELL) \
31008 $$s/$$module_srcdir/configure \
31009 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31010 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31011 --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
4fa63067 31012 || exit 1
a90ef4bf 31013@endif lto-plugin
a7254363 31014
d545f33b
PB
31015
31016
a90ef4bf
JM
31017.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
31018maybe-configure-stage1-lto-plugin:
31019@if lto-plugin-bootstrap
31020maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
31021configure-stage1-lto-plugin:
31022 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31023 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
31024 @r=`${PWD_COMMAND}`; export r; \
31025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31026 TFLAGS="$(STAGE1_TFLAGS)"; \
31027 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
31028 $(HOST_EXPORTS) \
31029 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
31030 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
31031 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
31032 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin; \
31033 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31034 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31035 case $(srcdir) in \
31036 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31037 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31038 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31039 esac; \
1b6c0831
L
31040 module_srcdir=lto-plugin; \
31041 $(SHELL) $$s/$$module_srcdir/configure \
31042 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31043 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
31044 --target=${target_alias} \
31045 \
a90ef4bf 31046 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 31047 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31048@endif lto-plugin-bootstrap
252b5132 31049
a90ef4bf
JM
31050.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
31051maybe-configure-stage2-lto-plugin:
31052@if lto-plugin-bootstrap
31053maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
31054configure-stage2-lto-plugin:
31055 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31056 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
31057 @r=`${PWD_COMMAND}`; export r; \
31058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31059 TFLAGS="$(STAGE2_TFLAGS)"; \
31060 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 31061 $(HOST_EXPORTS) \
a90ef4bf
JM
31062 $(POSTSTAGE1_HOST_EXPORTS) \
31063 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
31064 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
31065 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31066 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin; \
31067 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31068 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31069 case $(srcdir) in \
31070 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31071 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31072 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31073 esac; \
1b6c0831
L
31074 module_srcdir=lto-plugin; \
31075 $(SHELL) $$s/$$module_srcdir/configure \
31076 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31077 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31078 --target=${target_alias} \
22121df0 31079 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31080 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 31081 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31082@endif lto-plugin-bootstrap
4fa63067 31083
a90ef4bf
JM
31084.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
31085maybe-configure-stage3-lto-plugin:
31086@if lto-plugin-bootstrap
31087maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
31088configure-stage3-lto-plugin:
31089 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31090 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
31091 @r=`${PWD_COMMAND}`; export r; \
31092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31093 TFLAGS="$(STAGE3_TFLAGS)"; \
31094 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31095 $(HOST_EXPORTS) \
a90ef4bf
JM
31096 $(POSTSTAGE1_HOST_EXPORTS) \
31097 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
31098 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
31099 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31100 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin; \
31101 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31102 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31103 case $(srcdir) in \
31104 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31105 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31106 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31107 esac; \
1b6c0831
L
31108 module_srcdir=lto-plugin; \
31109 $(SHELL) $$s/$$module_srcdir/configure \
31110 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31111 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31112 --target=${target_alias} \
22121df0 31113 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31114 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 31115 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31116@endif lto-plugin-bootstrap
9b980aa1 31117
a90ef4bf
JM
31118.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
31119maybe-configure-stage4-lto-plugin:
31120@if lto-plugin-bootstrap
31121maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
31122configure-stage4-lto-plugin:
31123 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31124 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
31125 @r=`${PWD_COMMAND}`; export r; \
31126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31127 TFLAGS="$(STAGE4_TFLAGS)"; \
31128 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 31129 $(HOST_EXPORTS) \
a90ef4bf
JM
31130 $(POSTSTAGE1_HOST_EXPORTS) \
31131 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
31132 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
31133 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31134 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin; \
31135 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31136 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31137 case $(srcdir) in \
31138 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31139 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31140 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31141 esac; \
1b6c0831
L
31142 module_srcdir=lto-plugin; \
31143 $(SHELL) $$s/$$module_srcdir/configure \
31144 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31145 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31146 --target=${target_alias} \
22121df0 31147 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31148 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 31149 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31150@endif lto-plugin-bootstrap
4fa63067 31151
a90ef4bf
JM
31152.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
31153maybe-configure-stageprofile-lto-plugin:
31154@if lto-plugin-bootstrap
31155maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31156configure-stageprofile-lto-plugin:
31157 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31158 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
31159 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31161 TFLAGS="$(STAGEprofile_TFLAGS)"; \
31162 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31163 $(HOST_EXPORTS) \
a90ef4bf
JM
31164 $(POSTSTAGE1_HOST_EXPORTS) \
31165 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
31166 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
31167 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31168 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin; \
31169 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31170 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31171 case $(srcdir) in \
31172 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31173 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31174 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31175 esac; \
1b6c0831
L
31176 module_srcdir=lto-plugin; \
31177 $(SHELL) $$s/$$module_srcdir/configure \
31178 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31179 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31180 --target=${target_alias} \
22121df0 31181 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31182 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 31183 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31184@endif lto-plugin-bootstrap
4fa63067 31185
a90ef4bf
JM
31186.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
31187maybe-configure-stagefeedback-lto-plugin:
31188@if lto-plugin-bootstrap
31189maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31190configure-stagefeedback-lto-plugin:
31191 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31192 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
31193 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31195 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
31196 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31197 $(HOST_EXPORTS) \
a90ef4bf
JM
31198 $(POSTSTAGE1_HOST_EXPORTS) \
31199 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
31200 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
31201 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31202 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin; \
31203 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31204 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31205 case $(srcdir) in \
31206 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31207 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31208 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31209 esac; \
1b6c0831
L
31210 module_srcdir=lto-plugin; \
31211 $(SHELL) $$s/$$module_srcdir/configure \
31212 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31213 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31214 --target=${target_alias} \
22121df0 31215 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31216 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 31217 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31218@endif lto-plugin-bootstrap
252b5132 31219
56a8fe78 31220
56a8fe78 31221
56a8fe78 31222
6d389afc 31223
a90ef4bf
JM
31224.PHONY: all-lto-plugin maybe-all-lto-plugin
31225maybe-all-lto-plugin:
31226@if gcc-bootstrap
31227all-lto-plugin: stage_current
31228@endif gcc-bootstrap
31229@if lto-plugin
31230TARGET-lto-plugin=all
31231maybe-all-lto-plugin: all-lto-plugin
31232all-lto-plugin: configure-lto-plugin
31233 @r=`${PWD_COMMAND}`; export r; \
6d389afc 31234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31235 $(HOST_EXPORTS) \
31236 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31237 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31238 $(TARGET-lto-plugin))
31239@endif lto-plugin
6d389afc 31240
6d389afc 31241
252b5132 31242
a90ef4bf
JM
31243.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
31244.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
31245maybe-all-stage1-lto-plugin:
31246maybe-clean-stage1-lto-plugin:
31247@if lto-plugin-bootstrap
31248maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
31249all-stage1: all-stage1-lto-plugin
31250TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
31251all-stage1-lto-plugin: configure-stage1-lto-plugin
31252 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31253 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31255 TFLAGS="$(STAGE1_TFLAGS)"; \
31256 $(HOST_EXPORTS) \
31257 cd $(HOST_SUBDIR)/lto-plugin && \
31258 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31259 CFLAGS="$(STAGE1_CFLAGS)" \
31260 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
31261 LIBCFLAGS="$(LIBCFLAGS)" \
31262 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31263 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31264 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 31265 $(EXTRA_HOST_FLAGS) \
1b6c0831 31266 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31267 TFLAGS="$(STAGE1_TFLAGS)" \
31268 $(TARGET-stage1-lto-plugin)
3866be5d 31269
a90ef4bf
JM
31270maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
31271clean-stage1: clean-stage1-lto-plugin
31272clean-stage1-lto-plugin:
31273 @if [ $(current_stage) = stage1 ]; then \
31274 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31275 else \
31276 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
31277 $(MAKE) stage1-start; \
31278 fi; \
31279 cd $(HOST_SUBDIR)/lto-plugin && \
31280 $(MAKE) $(EXTRA_HOST_FLAGS) \
1b6c0831 31281 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31282@endif lto-plugin-bootstrap
3866be5d 31283
3866be5d 31284
a90ef4bf
JM
31285.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
31286.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
31287maybe-all-stage2-lto-plugin:
31288maybe-clean-stage2-lto-plugin:
31289@if lto-plugin-bootstrap
31290maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
31291all-stage2: all-stage2-lto-plugin
31292TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
31293all-stage2-lto-plugin: configure-stage2-lto-plugin
31294 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31295 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31297 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 31298 $(HOST_EXPORTS) \
a90ef4bf
JM
31299 $(POSTSTAGE1_HOST_EXPORTS) \
31300 cd $(HOST_SUBDIR)/lto-plugin && \
31301 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31302 CFLAGS="$(STAGE2_CFLAGS)" \
31303 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
31304 LIBCFLAGS="$(STAGE2_CFLAGS)" \
31305 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31306 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31307 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31308 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31309 TFLAGS="$(STAGE2_TFLAGS)" \
31310 $(TARGET-stage2-lto-plugin)
3866be5d 31311
a90ef4bf
JM
31312maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
31313clean-stage2: clean-stage2-lto-plugin
31314clean-stage2-lto-plugin:
31315 @if [ $(current_stage) = stage2 ]; then \
31316 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31317 else \
31318 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
31319 $(MAKE) stage2-start; \
31320 fi; \
31321 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31322 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31323@endif lto-plugin-bootstrap
3866be5d 31324
a3ca38d2 31325
a90ef4bf
JM
31326.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
31327.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
31328maybe-all-stage3-lto-plugin:
31329maybe-clean-stage3-lto-plugin:
31330@if lto-plugin-bootstrap
31331maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
31332all-stage3: all-stage3-lto-plugin
31333TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
31334all-stage3-lto-plugin: configure-stage3-lto-plugin
31335 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31336 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 31337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31338 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 31339 $(HOST_EXPORTS) \
a90ef4bf
JM
31340 $(POSTSTAGE1_HOST_EXPORTS) \
31341 cd $(HOST_SUBDIR)/lto-plugin && \
31342 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31343 CFLAGS="$(STAGE3_CFLAGS)" \
31344 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
31345 LIBCFLAGS="$(STAGE3_CFLAGS)" \
31346 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31347 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31348 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31349 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31350 TFLAGS="$(STAGE3_TFLAGS)" \
31351 $(TARGET-stage3-lto-plugin)
a3ca38d2 31352
a90ef4bf
JM
31353maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
31354clean-stage3: clean-stage3-lto-plugin
31355clean-stage3-lto-plugin:
31356 @if [ $(current_stage) = stage3 ]; then \
31357 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31358 else \
31359 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
31360 $(MAKE) stage3-start; \
31361 fi; \
31362 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31363 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31364@endif lto-plugin-bootstrap
a3ca38d2 31365
108a6f8e 31366
a90ef4bf
JM
31367.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
31368.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
31369maybe-all-stage4-lto-plugin:
31370maybe-clean-stage4-lto-plugin:
31371@if lto-plugin-bootstrap
31372maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
31373all-stage4: all-stage4-lto-plugin
31374TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
31375all-stage4-lto-plugin: configure-stage4-lto-plugin
31376 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31377 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 31378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31379 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 31380 $(HOST_EXPORTS) \
a90ef4bf
JM
31381 $(POSTSTAGE1_HOST_EXPORTS) \
31382 cd $(HOST_SUBDIR)/lto-plugin && \
31383 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31384 CFLAGS="$(STAGE4_CFLAGS)" \
31385 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
31386 LIBCFLAGS="$(STAGE4_CFLAGS)" \
31387 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31388 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31389 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31390 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31391 TFLAGS="$(STAGE4_TFLAGS)" \
31392 $(TARGET-stage4-lto-plugin)
108a6f8e 31393
a90ef4bf
JM
31394maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
31395clean-stage4: clean-stage4-lto-plugin
31396clean-stage4-lto-plugin:
31397 @if [ $(current_stage) = stage4 ]; then \
31398 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31399 else \
31400 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
31401 $(MAKE) stage4-start; \
31402 fi; \
31403 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31404 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31405@endif lto-plugin-bootstrap
4fa63067 31406
4fa63067 31407
a90ef4bf
JM
31408.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
31409.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
31410maybe-all-stageprofile-lto-plugin:
31411maybe-clean-stageprofile-lto-plugin:
31412@if lto-plugin-bootstrap
31413maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
31414all-stageprofile: all-stageprofile-lto-plugin
31415TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
31416all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31417 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31418 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31420 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 31421 $(HOST_EXPORTS) \
a90ef4bf
JM
31422 $(POSTSTAGE1_HOST_EXPORTS) \
31423 cd $(HOST_SUBDIR)/lto-plugin && \
31424 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31425 CFLAGS="$(STAGEprofile_CFLAGS)" \
31426 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
31427 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
31428 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31429 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31430 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31431 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31432 TFLAGS="$(STAGEprofile_TFLAGS)" \
31433 $(TARGET-stageprofile-lto-plugin)
4fa63067 31434
a90ef4bf
JM
31435maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
31436clean-stageprofile: clean-stageprofile-lto-plugin
31437clean-stageprofile-lto-plugin:
31438 @if [ $(current_stage) = stageprofile ]; then \
31439 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31440 else \
31441 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
31442 $(MAKE) stageprofile-start; \
31443 fi; \
31444 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31445 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31446@endif lto-plugin-bootstrap
4fa63067 31447
4fa63067 31448
a90ef4bf
JM
31449.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
31450.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
31451maybe-all-stagefeedback-lto-plugin:
31452maybe-clean-stagefeedback-lto-plugin:
31453@if lto-plugin-bootstrap
31454maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
31455all-stagefeedback: all-stagefeedback-lto-plugin
31456TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
31457all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31458 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31459 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31461 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 31462 $(HOST_EXPORTS) \
a90ef4bf
JM
31463 $(POSTSTAGE1_HOST_EXPORTS) \
31464 cd $(HOST_SUBDIR)/lto-plugin && \
31465 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31466 CFLAGS="$(STAGEfeedback_CFLAGS)" \
31467 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
31468 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
31469 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31470 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31471 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31472 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31473 TFLAGS="$(STAGEfeedback_TFLAGS)" \
31474 $(TARGET-stagefeedback-lto-plugin)
3866be5d 31475
a90ef4bf
JM
31476maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
31477clean-stagefeedback: clean-stagefeedback-lto-plugin
31478clean-stagefeedback-lto-plugin:
31479 @if [ $(current_stage) = stagefeedback ]; then \
31480 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31481 else \
31482 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
31483 $(MAKE) stagefeedback-start; \
31484 fi; \
31485 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31486 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31487@endif lto-plugin-bootstrap
a7254363 31488
e2b9e2dc 31489
a7254363
PB
31490
31491
d545f33b 31492
a90ef4bf
JM
31493.PHONY: check-lto-plugin maybe-check-lto-plugin
31494maybe-check-lto-plugin:
31495@if lto-plugin
31496maybe-check-lto-plugin: check-lto-plugin
d545f33b 31497
a90ef4bf 31498check-lto-plugin:
0aed8855 31499 @: $(MAKE); $(unstage)
b40e3958
L
31500 @r=`${PWD_COMMAND}`; export r; \
31501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31502 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 31503 (cd $(HOST_SUBDIR)/lto-plugin && \
f91ca6bc 31504 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
3866be5d 31505
a90ef4bf 31506@endif lto-plugin
3866be5d 31507
a90ef4bf
JM
31508.PHONY: install-lto-plugin maybe-install-lto-plugin
31509maybe-install-lto-plugin:
31510@if lto-plugin
31511maybe-install-lto-plugin: install-lto-plugin
4fa63067 31512
a90ef4bf 31513install-lto-plugin: installdirs
0aed8855 31514 @: $(MAKE); $(unstage)
4fa63067
NN
31515 @r=`${PWD_COMMAND}`; export r; \
31516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31517 $(HOST_EXPORTS) \
a90ef4bf 31518 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31519 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
4fa63067 31520
a90ef4bf 31521@endif lto-plugin
4fa63067 31522
a90ef4bf
JM
31523.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
31524maybe-install-strip-lto-plugin:
31525@if lto-plugin
31526maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 31527
a90ef4bf 31528install-strip-lto-plugin: installdirs
9b980aa1
RW
31529 @: $(MAKE); $(unstage)
31530 @r=`${PWD_COMMAND}`; export r; \
31531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31532 $(HOST_EXPORTS) \
a90ef4bf 31533 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31534 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
9b980aa1 31535
a90ef4bf 31536@endif lto-plugin
9b980aa1 31537
56a8fe78 31538# Other targets (info, dvi, pdf, etc.)
4fa63067 31539
a90ef4bf
JM
31540.PHONY: maybe-info-lto-plugin info-lto-plugin
31541maybe-info-lto-plugin:
31542@if lto-plugin
31543maybe-info-lto-plugin: info-lto-plugin
4fa63067 31544
a90ef4bf
JM
31545info-lto-plugin: \
31546 configure-lto-plugin
31547 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31548 r=`${PWD_COMMAND}`; export r; \
31549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31550 $(HOST_EXPORTS) \
1b6c0831 31551 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31553 done; \
22121df0 31554 echo "Doing info in lto-plugin"; \
a90ef4bf 31555 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31558 "RANLIB=$${RANLIB}" \
0c24b341 31559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31560 info) \
4fa63067
NN
31561 || exit 1
31562
a90ef4bf 31563@endif lto-plugin
4fa63067 31564
a90ef4bf
JM
31565.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
31566maybe-dvi-lto-plugin:
31567@if lto-plugin
31568maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 31569
a90ef4bf
JM
31570dvi-lto-plugin: \
31571 configure-lto-plugin
31572 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31573 r=`${PWD_COMMAND}`; export r; \
31574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31575 $(HOST_EXPORTS) \
1b6c0831 31576 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31578 done; \
22121df0 31579 echo "Doing dvi in lto-plugin"; \
a90ef4bf 31580 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31583 "RANLIB=$${RANLIB}" \
0c24b341 31584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31585 dvi) \
4fa63067
NN
31586 || exit 1
31587
a90ef4bf 31588@endif lto-plugin
4fa63067 31589
a90ef4bf
JM
31590.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
31591maybe-pdf-lto-plugin:
31592@if lto-plugin
31593maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 31594
a90ef4bf
JM
31595pdf-lto-plugin: \
31596 configure-lto-plugin
31597 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
31598 r=`${PWD_COMMAND}`; export r; \
31599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31600 $(HOST_EXPORTS) \
1b6c0831 31601 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
56a8fe78
DD
31602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31603 done; \
22121df0 31604 echo "Doing pdf in lto-plugin"; \
a90ef4bf 31605 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
31606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31608 "RANLIB=$${RANLIB}" \
0c24b341 31609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31610 pdf) \
31611 || exit 1
31612
a90ef4bf 31613@endif lto-plugin
56a8fe78 31614
a90ef4bf
JM
31615.PHONY: maybe-html-lto-plugin html-lto-plugin
31616maybe-html-lto-plugin:
31617@if lto-plugin
31618maybe-html-lto-plugin: html-lto-plugin
6d389afc 31619
a90ef4bf
JM
31620html-lto-plugin: \
31621 configure-lto-plugin
31622 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
31623 r=`${PWD_COMMAND}`; export r; \
31624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 31625 $(HOST_EXPORTS) \
1b6c0831 31626 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
6d389afc
MS
31627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31628 done; \
22121df0 31629 echo "Doing html in lto-plugin"; \
a90ef4bf 31630 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
31631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31633 "RANLIB=$${RANLIB}" \
0c24b341 31634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31635 html) \
31636 || exit 1
31637
a90ef4bf 31638@endif lto-plugin
6d389afc 31639
a90ef4bf
JM
31640.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
31641maybe-TAGS-lto-plugin:
31642@if lto-plugin
31643maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 31644
a90ef4bf
JM
31645TAGS-lto-plugin: \
31646 configure-lto-plugin
31647 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31648 r=`${PWD_COMMAND}`; export r; \
31649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31650 $(HOST_EXPORTS) \
1b6c0831 31651 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31653 done; \
22121df0 31654 echo "Doing TAGS in lto-plugin"; \
a90ef4bf 31655 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31658 "RANLIB=$${RANLIB}" \
0c24b341 31659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31660 TAGS) \
4fa63067
NN
31661 || exit 1
31662
a90ef4bf 31663@endif lto-plugin
4fa63067 31664
a90ef4bf
JM
31665.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
31666maybe-install-info-lto-plugin:
31667@if lto-plugin
31668maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 31669
a90ef4bf
JM
31670install-info-lto-plugin: \
31671 configure-lto-plugin \
31672 info-lto-plugin
31673 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31674 r=`${PWD_COMMAND}`; export r; \
31675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31676 $(HOST_EXPORTS) \
1b6c0831 31677 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31679 done; \
22121df0 31680 echo "Doing install-info in lto-plugin"; \
a90ef4bf 31681 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31684 "RANLIB=$${RANLIB}" \
0c24b341 31685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31686 install-info) \
4fa63067
NN
31687 || exit 1
31688
a90ef4bf 31689@endif lto-plugin
4fa63067 31690
a90ef4bf
JM
31691.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
31692maybe-install-pdf-lto-plugin:
31693@if lto-plugin
31694maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 31695
a90ef4bf
JM
31696install-pdf-lto-plugin: \
31697 configure-lto-plugin \
31698 pdf-lto-plugin
31699 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
31700 r=`${PWD_COMMAND}`; export r; \
31701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31702 $(HOST_EXPORTS) \
1b6c0831 31703 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
a3ca38d2
DD
31704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31705 done; \
22121df0 31706 echo "Doing install-pdf in lto-plugin"; \
a90ef4bf 31707 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
31708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31710 "RANLIB=$${RANLIB}" \
0c24b341 31711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31712 install-pdf) \
31713 || exit 1
31714
a90ef4bf 31715@endif lto-plugin
a3ca38d2 31716
a90ef4bf
JM
31717.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
31718maybe-install-html-lto-plugin:
31719@if lto-plugin
31720maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 31721
a90ef4bf
JM
31722install-html-lto-plugin: \
31723 configure-lto-plugin \
31724 html-lto-plugin
31725 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
31726 r=`${PWD_COMMAND}`; export r; \
31727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31728 $(HOST_EXPORTS) \
1b6c0831 31729 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
108a6f8e
CD
31730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31731 done; \
22121df0 31732 echo "Doing install-html in lto-plugin"; \
a90ef4bf 31733 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
31734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31736 "RANLIB=$${RANLIB}" \
0c24b341 31737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31738 install-html) \
31739 || exit 1
31740
a90ef4bf 31741@endif lto-plugin
108a6f8e 31742
a90ef4bf
JM
31743.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
31744maybe-installcheck-lto-plugin:
31745@if lto-plugin
31746maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 31747
a90ef4bf
JM
31748installcheck-lto-plugin: \
31749 configure-lto-plugin
31750 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31751 r=`${PWD_COMMAND}`; export r; \
31752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31753 $(HOST_EXPORTS) \
1b6c0831 31754 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31756 done; \
22121df0 31757 echo "Doing installcheck in lto-plugin"; \
a90ef4bf 31758 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31761 "RANLIB=$${RANLIB}" \
0c24b341 31762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31763 installcheck) \
4fa63067
NN
31764 || exit 1
31765
a90ef4bf 31766@endif lto-plugin
4fa63067 31767
a90ef4bf
JM
31768.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
31769maybe-mostlyclean-lto-plugin:
31770@if lto-plugin
31771maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 31772
a90ef4bf
JM
31773mostlyclean-lto-plugin:
31774 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31775 r=`${PWD_COMMAND}`; export r; \
31776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31777 $(HOST_EXPORTS) \
1b6c0831 31778 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31780 done; \
22121df0 31781 echo "Doing mostlyclean in lto-plugin"; \
a90ef4bf 31782 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31785 "RANLIB=$${RANLIB}" \
0c24b341 31786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31787 mostlyclean) \
4fa63067
NN
31788 || exit 1
31789
a90ef4bf 31790@endif lto-plugin
4fa63067 31791
a90ef4bf
JM
31792.PHONY: maybe-clean-lto-plugin clean-lto-plugin
31793maybe-clean-lto-plugin:
31794@if lto-plugin
31795maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 31796
a90ef4bf
JM
31797clean-lto-plugin:
31798 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31799 r=`${PWD_COMMAND}`; export r; \
31800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31801 $(HOST_EXPORTS) \
1b6c0831 31802 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31804 done; \
22121df0 31805 echo "Doing clean in lto-plugin"; \
a90ef4bf 31806 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31809 "RANLIB=$${RANLIB}" \
0c24b341 31810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31811 clean) \
4fa63067
NN
31812 || exit 1
31813
a90ef4bf 31814@endif lto-plugin
4fa63067 31815
a90ef4bf
JM
31816.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
31817maybe-distclean-lto-plugin:
31818@if lto-plugin
31819maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 31820
a90ef4bf
JM
31821distclean-lto-plugin:
31822 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31823 r=`${PWD_COMMAND}`; export r; \
31824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31825 $(HOST_EXPORTS) \
1b6c0831 31826 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31828 done; \
22121df0 31829 echo "Doing distclean in lto-plugin"; \
a90ef4bf 31830 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31833 "RANLIB=$${RANLIB}" \
0c24b341 31834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31835 distclean) \
4fa63067
NN
31836 || exit 1
31837
a90ef4bf 31838@endif lto-plugin
4fa63067 31839
a90ef4bf
JM
31840.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
31841maybe-maintainer-clean-lto-plugin:
31842@if lto-plugin
31843maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 31844
a90ef4bf
JM
31845maintainer-clean-lto-plugin:
31846 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31847 r=`${PWD_COMMAND}`; export r; \
31848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31849 $(HOST_EXPORTS) \
1b6c0831 31850 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31852 done; \
22121df0 31853 echo "Doing maintainer-clean in lto-plugin"; \
a90ef4bf 31854 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31857 "RANLIB=$${RANLIB}" \
0c24b341 31858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31859 maintainer-clean) \
4fa63067 31860 || exit 1
16ae0395 31861
a90ef4bf
JM
31862@endif lto-plugin
31863
31864
31865
1b6c0831
L
31866.PHONY: configure-libcc1 maybe-configure-libcc1
31867maybe-configure-libcc1:
4f0ef2d8 31868@if gcc-bootstrap
1b6c0831 31869configure-libcc1: stage_current
4f0ef2d8 31870@endif gcc-bootstrap
1b6c0831
L
31871@if libcc1
31872maybe-configure-libcc1: configure-libcc1
31873configure-libcc1:
31874 @: $(MAKE); $(unstage)
c52c6897 31875 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 31877 test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
22121df0 31878 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1; \
1b6c0831
L
31879 $(HOST_EXPORTS) \
31880 echo Configuring in $(HOST_SUBDIR)/libcc1; \
31881 cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
e2b9e2dc 31882 case $(srcdir) in \
b00612cc 31883 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 31884 *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \
b00612cc 31885 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 31886 esac; \
1b6c0831
L
31887 module_srcdir=libcc1; \
31888 $(SHELL) \
31889 $$s/$$module_srcdir/configure \
31890 --srcdir=$${topdir}/$$module_srcdir \
31891 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
31892 --target=${target_alias} --enable-shared \
e2b9e2dc 31893 || exit 1
1b6c0831 31894@endif libcc1
d545f33b
PB
31895
31896
3866be5d 31897
16ae0395 31898
9b980aa1 31899
1b6c0831
L
31900.PHONY: all-libcc1 maybe-all-libcc1
31901maybe-all-libcc1:
31902@if gcc-bootstrap
31903all-libcc1: stage_current
31904@endif gcc-bootstrap
31905@if libcc1
31906TARGET-libcc1=all
31907maybe-all-libcc1: all-libcc1
31908all-libcc1: configure-libcc1
31909 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31910 @r=`${PWD_COMMAND}`; export r; \
31911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31912 $(HOST_EXPORTS) \
31913 (cd $(HOST_SUBDIR)/libcc1 && \
31914 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
31915 $(TARGET-libcc1))
31916@endif libcc1
e8a5fa9c 31917
1b6c0831
L
31918
31919
31920
31921.PHONY: check-libcc1 maybe-check-libcc1
31922maybe-check-libcc1:
31923@if libcc1
31924maybe-check-libcc1: check-libcc1
31925
31926check-libcc1:
31927 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31928 @r=`${PWD_COMMAND}`; export r; \
31929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31930 $(HOST_EXPORTS) \
1b6c0831
L
31931 (cd $(HOST_SUBDIR)/libcc1 && \
31932 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 31933
1b6c0831
L
31934@endif libcc1
31935
31936.PHONY: install-libcc1 maybe-install-libcc1
31937maybe-install-libcc1:
31938@if libcc1
31939maybe-install-libcc1: install-libcc1
31940
31941install-libcc1: installdirs
31942 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31943 @r=`${PWD_COMMAND}`; export r; \
31944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31945 $(HOST_EXPORTS) \
31946 (cd $(HOST_SUBDIR)/libcc1 && \
31947 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 31948
1b6c0831
L
31949@endif libcc1
31950
31951.PHONY: install-strip-libcc1 maybe-install-strip-libcc1
31952maybe-install-strip-libcc1:
31953@if libcc1
31954maybe-install-strip-libcc1: install-strip-libcc1
31955
31956install-strip-libcc1: installdirs
31957 @: $(MAKE); $(unstage)
e8a5fa9c
RW
31958 @r=`${PWD_COMMAND}`; export r; \
31959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31960 $(HOST_EXPORTS) \
31961 (cd $(HOST_SUBDIR)/libcc1 && \
31962 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 31963
1b6c0831 31964@endif libcc1
e8a5fa9c 31965
1b6c0831 31966# Other targets (info, dvi, pdf, etc.)
d545f33b 31967
1b6c0831
L
31968.PHONY: maybe-info-libcc1 info-libcc1
31969maybe-info-libcc1:
31970@if libcc1
31971maybe-info-libcc1: info-libcc1
d545f33b 31972
1b6c0831
L
31973info-libcc1: \
31974 configure-libcc1
31975 @: $(MAKE); $(unstage)
31976 @[ -f ./libcc1/Makefile ] || exit 0; \
31977 r=`${PWD_COMMAND}`; export r; \
b40e3958 31978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
31979 $(HOST_EXPORTS) \
31980 for flag in $(EXTRA_HOST_FLAGS) ; do \
31981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31982 done; \
22121df0 31983 echo "Doing info in libcc1"; \
1b6c0831
L
31984 (cd $(HOST_SUBDIR)/libcc1 && \
31985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31987 "RANLIB=$${RANLIB}" \
31988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31989 info) \
31990 || exit 1
3866be5d 31991
1b6c0831 31992@endif libcc1
a7254363 31993
1b6c0831
L
31994.PHONY: maybe-dvi-libcc1 dvi-libcc1
31995maybe-dvi-libcc1:
31996@if libcc1
31997maybe-dvi-libcc1: dvi-libcc1
a7254363 31998
1b6c0831
L
31999dvi-libcc1: \
32000 configure-libcc1
32001 @: $(MAKE); $(unstage)
32002 @[ -f ./libcc1/Makefile ] || exit 0; \
32003 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32005 $(HOST_EXPORTS) \
32006 for flag in $(EXTRA_HOST_FLAGS) ; do \
32007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32008 done; \
22121df0 32009 echo "Doing dvi in libcc1"; \
1b6c0831
L
32010 (cd $(HOST_SUBDIR)/libcc1 && \
32011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32013 "RANLIB=$${RANLIB}" \
32014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32015 dvi) \
32016 || exit 1
e8a5fa9c 32017
1b6c0831 32018@endif libcc1
e8a5fa9c 32019
1b6c0831
L
32020.PHONY: maybe-pdf-libcc1 pdf-libcc1
32021maybe-pdf-libcc1:
32022@if libcc1
32023maybe-pdf-libcc1: pdf-libcc1
e8a5fa9c 32024
1b6c0831
L
32025pdf-libcc1: \
32026 configure-libcc1
32027 @: $(MAKE); $(unstage)
32028 @[ -f ./libcc1/Makefile ] || exit 0; \
32029 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32031 $(HOST_EXPORTS) \
32032 for flag in $(EXTRA_HOST_FLAGS) ; do \
32033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32034 done; \
22121df0 32035 echo "Doing pdf in libcc1"; \
1b6c0831
L
32036 (cd $(HOST_SUBDIR)/libcc1 && \
32037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32039 "RANLIB=$${RANLIB}" \
32040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32041 pdf) \
32042 || exit 1
e8a5fa9c 32043
1b6c0831 32044@endif libcc1
e8a5fa9c 32045
1b6c0831
L
32046.PHONY: maybe-html-libcc1 html-libcc1
32047maybe-html-libcc1:
32048@if libcc1
32049maybe-html-libcc1: html-libcc1
e8a5fa9c 32050
1b6c0831
L
32051html-libcc1: \
32052 configure-libcc1
32053 @: $(MAKE); $(unstage)
32054 @[ -f ./libcc1/Makefile ] || exit 0; \
32055 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32057 $(HOST_EXPORTS) \
32058 for flag in $(EXTRA_HOST_FLAGS) ; do \
32059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32060 done; \
22121df0 32061 echo "Doing html in libcc1"; \
1b6c0831
L
32062 (cd $(HOST_SUBDIR)/libcc1 && \
32063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32065 "RANLIB=$${RANLIB}" \
32066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32067 html) \
32068 || exit 1
e8a5fa9c 32069
1b6c0831 32070@endif libcc1
e8a5fa9c 32071
1b6c0831
L
32072.PHONY: maybe-TAGS-libcc1 TAGS-libcc1
32073maybe-TAGS-libcc1:
32074@if libcc1
32075maybe-TAGS-libcc1: TAGS-libcc1
e8a5fa9c 32076
1b6c0831
L
32077TAGS-libcc1: \
32078 configure-libcc1
32079 @: $(MAKE); $(unstage)
32080 @[ -f ./libcc1/Makefile ] || exit 0; \
32081 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32083 $(HOST_EXPORTS) \
32084 for flag in $(EXTRA_HOST_FLAGS) ; do \
32085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32086 done; \
22121df0 32087 echo "Doing TAGS in libcc1"; \
1b6c0831
L
32088 (cd $(HOST_SUBDIR)/libcc1 && \
32089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32091 "RANLIB=$${RANLIB}" \
32092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32093 TAGS) \
32094 || exit 1
32095
32096@endif libcc1
32097
32098.PHONY: maybe-install-info-libcc1 install-info-libcc1
32099maybe-install-info-libcc1:
32100@if libcc1
32101maybe-install-info-libcc1: install-info-libcc1
32102
32103install-info-libcc1: \
32104 configure-libcc1 \
32105 info-libcc1
32106 @: $(MAKE); $(unstage)
32107 @[ -f ./libcc1/Makefile ] || exit 0; \
32108 r=`${PWD_COMMAND}`; export r; \
32109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32110 $(HOST_EXPORTS) \
32111 for flag in $(EXTRA_HOST_FLAGS) ; do \
32112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32113 done; \
22121df0 32114 echo "Doing install-info in libcc1"; \
1b6c0831
L
32115 (cd $(HOST_SUBDIR)/libcc1 && \
32116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32118 "RANLIB=$${RANLIB}" \
32119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32120 install-info) \
32121 || exit 1
32122
32123@endif libcc1
32124
32125.PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1
32126maybe-install-pdf-libcc1:
32127@if libcc1
32128maybe-install-pdf-libcc1: install-pdf-libcc1
32129
32130install-pdf-libcc1: \
32131 configure-libcc1 \
32132 pdf-libcc1
32133 @: $(MAKE); $(unstage)
32134 @[ -f ./libcc1/Makefile ] || exit 0; \
32135 r=`${PWD_COMMAND}`; export r; \
32136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32137 $(HOST_EXPORTS) \
32138 for flag in $(EXTRA_HOST_FLAGS) ; do \
32139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32140 done; \
22121df0 32141 echo "Doing install-pdf in libcc1"; \
1b6c0831
L
32142 (cd $(HOST_SUBDIR)/libcc1 && \
32143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32145 "RANLIB=$${RANLIB}" \
32146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32147 install-pdf) \
32148 || exit 1
32149
32150@endif libcc1
32151
32152.PHONY: maybe-install-html-libcc1 install-html-libcc1
32153maybe-install-html-libcc1:
32154@if libcc1
32155maybe-install-html-libcc1: install-html-libcc1
32156
32157install-html-libcc1: \
32158 configure-libcc1 \
32159 html-libcc1
32160 @: $(MAKE); $(unstage)
32161 @[ -f ./libcc1/Makefile ] || exit 0; \
32162 r=`${PWD_COMMAND}`; export r; \
32163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32164 $(HOST_EXPORTS) \
32165 for flag in $(EXTRA_HOST_FLAGS) ; do \
32166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32167 done; \
22121df0 32168 echo "Doing install-html in libcc1"; \
1b6c0831
L
32169 (cd $(HOST_SUBDIR)/libcc1 && \
32170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32172 "RANLIB=$${RANLIB}" \
32173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32174 install-html) \
32175 || exit 1
32176
32177@endif libcc1
32178
32179.PHONY: maybe-installcheck-libcc1 installcheck-libcc1
32180maybe-installcheck-libcc1:
32181@if libcc1
32182maybe-installcheck-libcc1: installcheck-libcc1
32183
32184installcheck-libcc1: \
32185 configure-libcc1
32186 @: $(MAKE); $(unstage)
32187 @[ -f ./libcc1/Makefile ] || exit 0; \
32188 r=`${PWD_COMMAND}`; export r; \
32189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32190 $(HOST_EXPORTS) \
32191 for flag in $(EXTRA_HOST_FLAGS) ; do \
32192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32193 done; \
22121df0 32194 echo "Doing installcheck in libcc1"; \
1b6c0831
L
32195 (cd $(HOST_SUBDIR)/libcc1 && \
32196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32198 "RANLIB=$${RANLIB}" \
32199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32200 installcheck) \
32201 || exit 1
32202
32203@endif libcc1
32204
32205.PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1
32206maybe-mostlyclean-libcc1:
32207@if libcc1
32208maybe-mostlyclean-libcc1: mostlyclean-libcc1
32209
32210mostlyclean-libcc1:
32211 @: $(MAKE); $(unstage)
32212 @[ -f ./libcc1/Makefile ] || exit 0; \
32213 r=`${PWD_COMMAND}`; export r; \
32214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32215 $(HOST_EXPORTS) \
32216 for flag in $(EXTRA_HOST_FLAGS) ; do \
32217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32218 done; \
22121df0 32219 echo "Doing mostlyclean in libcc1"; \
1b6c0831
L
32220 (cd $(HOST_SUBDIR)/libcc1 && \
32221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32223 "RANLIB=$${RANLIB}" \
32224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32225 mostlyclean) \
32226 || exit 1
32227
32228@endif libcc1
32229
32230.PHONY: maybe-clean-libcc1 clean-libcc1
32231maybe-clean-libcc1:
32232@if libcc1
32233maybe-clean-libcc1: clean-libcc1
32234
32235clean-libcc1:
32236 @: $(MAKE); $(unstage)
32237 @[ -f ./libcc1/Makefile ] || exit 0; \
32238 r=`${PWD_COMMAND}`; export r; \
32239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32240 $(HOST_EXPORTS) \
32241 for flag in $(EXTRA_HOST_FLAGS) ; do \
32242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32243 done; \
22121df0 32244 echo "Doing clean in libcc1"; \
1b6c0831
L
32245 (cd $(HOST_SUBDIR)/libcc1 && \
32246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32248 "RANLIB=$${RANLIB}" \
32249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32250 clean) \
32251 || exit 1
32252
32253@endif libcc1
32254
32255.PHONY: maybe-distclean-libcc1 distclean-libcc1
32256maybe-distclean-libcc1:
32257@if libcc1
32258maybe-distclean-libcc1: distclean-libcc1
32259
32260distclean-libcc1:
32261 @: $(MAKE); $(unstage)
32262 @[ -f ./libcc1/Makefile ] || exit 0; \
32263 r=`${PWD_COMMAND}`; export r; \
32264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32265 $(HOST_EXPORTS) \
32266 for flag in $(EXTRA_HOST_FLAGS) ; do \
32267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32268 done; \
22121df0 32269 echo "Doing distclean in libcc1"; \
1b6c0831
L
32270 (cd $(HOST_SUBDIR)/libcc1 && \
32271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32273 "RANLIB=$${RANLIB}" \
32274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32275 distclean) \
32276 || exit 1
32277
32278@endif libcc1
32279
32280.PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1
32281maybe-maintainer-clean-libcc1:
32282@if libcc1
32283maybe-maintainer-clean-libcc1: maintainer-clean-libcc1
32284
32285maintainer-clean-libcc1:
32286 @: $(MAKE); $(unstage)
32287 @[ -f ./libcc1/Makefile ] || exit 0; \
32288 r=`${PWD_COMMAND}`; export r; \
32289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32290 $(HOST_EXPORTS) \
32291 for flag in $(EXTRA_HOST_FLAGS) ; do \
32292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32293 done; \
22121df0 32294 echo "Doing maintainer-clean in libcc1"; \
1b6c0831
L
32295 (cd $(HOST_SUBDIR)/libcc1 && \
32296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32298 "RANLIB=$${RANLIB}" \
32299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32300 maintainer-clean) \
32301 || exit 1
32302
32303@endif libcc1
32304
32305
32306
32307.PHONY: configure-gotools maybe-configure-gotools
32308maybe-configure-gotools:
32309@if gcc-bootstrap
32310configure-gotools: stage_current
32311@endif gcc-bootstrap
32312@if gotools
32313maybe-configure-gotools: configure-gotools
32314configure-gotools:
32315 @: $(MAKE); $(unstage)
32316 @r=`${PWD_COMMAND}`; export r; \
32317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32318 test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \
22121df0 32319 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools; \
1b6c0831
L
32320 $(HOST_EXPORTS) \
32321 echo Configuring in $(HOST_SUBDIR)/gotools; \
32322 cd "$(HOST_SUBDIR)/gotools" || exit 1; \
32323 case $(srcdir) in \
32324 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32325 *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \
32326 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32327 esac; \
32328 module_srcdir=gotools; \
32329 $(SHELL) \
32330 $$s/$$module_srcdir/configure \
32331 --srcdir=$${topdir}/$$module_srcdir \
32332 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32333 --target=${target_alias} \
32334 || exit 1
32335@endif gotools
32336
32337
32338
32339
32340
32341.PHONY: all-gotools maybe-all-gotools
32342maybe-all-gotools:
32343@if gcc-bootstrap
32344all-gotools: stage_current
32345@endif gcc-bootstrap
32346@if gotools
32347TARGET-gotools=all
32348maybe-all-gotools: all-gotools
32349all-gotools: configure-gotools
32350 @: $(MAKE); $(unstage)
32351 @r=`${PWD_COMMAND}`; export r; \
32352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32353 $(HOST_EXPORTS) \
32354 (cd $(HOST_SUBDIR)/gotools && \
32355 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
32356 $(TARGET-gotools))
32357@endif gotools
32358
32359
32360
32361
32362.PHONY: check-gotools maybe-check-gotools
32363maybe-check-gotools:
32364@if gotools
32365maybe-check-gotools: check-gotools
32366
32367check-gotools:
32368 @: $(MAKE); $(unstage)
32369 @r=`${PWD_COMMAND}`; export r; \
32370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32371 $(HOST_EXPORTS) \
1b6c0831
L
32372 (cd $(HOST_SUBDIR)/gotools && \
32373 $(MAKE) $(FLAGS_TO_PASS) check)
32374
32375@endif gotools
32376
32377.PHONY: install-gotools maybe-install-gotools
32378maybe-install-gotools:
32379@if gotools
32380maybe-install-gotools: install-gotools
32381
32382install-gotools: installdirs
32383 @: $(MAKE); $(unstage)
32384 @r=`${PWD_COMMAND}`; export r; \
32385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32386 $(HOST_EXPORTS) \
32387 (cd $(HOST_SUBDIR)/gotools && \
32388 $(MAKE) $(FLAGS_TO_PASS) install)
32389
32390@endif gotools
32391
32392.PHONY: install-strip-gotools maybe-install-strip-gotools
32393maybe-install-strip-gotools:
32394@if gotools
32395maybe-install-strip-gotools: install-strip-gotools
32396
32397install-strip-gotools: installdirs
32398 @: $(MAKE); $(unstage)
32399 @r=`${PWD_COMMAND}`; export r; \
32400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32401 $(HOST_EXPORTS) \
32402 (cd $(HOST_SUBDIR)/gotools && \
32403 $(MAKE) $(FLAGS_TO_PASS) install-strip)
32404
32405@endif gotools
32406
32407# Other targets (info, dvi, pdf, etc.)
32408
32409.PHONY: maybe-info-gotools info-gotools
32410maybe-info-gotools:
32411@if gotools
32412maybe-info-gotools: info-gotools
32413
32414info-gotools: \
32415 configure-gotools
32416 @: $(MAKE); $(unstage)
32417 @[ -f ./gotools/Makefile ] || exit 0; \
32418 r=`${PWD_COMMAND}`; export r; \
32419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32420 $(HOST_EXPORTS) \
32421 for flag in $(EXTRA_HOST_FLAGS) ; do \
32422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32423 done; \
22121df0 32424 echo "Doing info in gotools"; \
1b6c0831
L
32425 (cd $(HOST_SUBDIR)/gotools && \
32426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32428 "RANLIB=$${RANLIB}" \
32429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32430 info) \
32431 || exit 1
32432
32433@endif gotools
32434
32435.PHONY: maybe-dvi-gotools dvi-gotools
32436maybe-dvi-gotools:
32437@if gotools
32438maybe-dvi-gotools: dvi-gotools
32439
32440dvi-gotools: \
32441 configure-gotools
32442 @: $(MAKE); $(unstage)
32443 @[ -f ./gotools/Makefile ] || exit 0; \
32444 r=`${PWD_COMMAND}`; export r; \
32445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32446 $(HOST_EXPORTS) \
32447 for flag in $(EXTRA_HOST_FLAGS) ; do \
32448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32449 done; \
22121df0 32450 echo "Doing dvi in gotools"; \
1b6c0831
L
32451 (cd $(HOST_SUBDIR)/gotools && \
32452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32454 "RANLIB=$${RANLIB}" \
32455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32456 dvi) \
32457 || exit 1
32458
32459@endif gotools
32460
32461.PHONY: maybe-pdf-gotools pdf-gotools
32462maybe-pdf-gotools:
32463@if gotools
32464maybe-pdf-gotools: pdf-gotools
32465
32466pdf-gotools: \
32467 configure-gotools
32468 @: $(MAKE); $(unstage)
32469 @[ -f ./gotools/Makefile ] || exit 0; \
32470 r=`${PWD_COMMAND}`; export r; \
32471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32472 $(HOST_EXPORTS) \
32473 for flag in $(EXTRA_HOST_FLAGS) ; do \
32474 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32475 done; \
22121df0 32476 echo "Doing pdf in gotools"; \
1b6c0831
L
32477 (cd $(HOST_SUBDIR)/gotools && \
32478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32480 "RANLIB=$${RANLIB}" \
32481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32482 pdf) \
32483 || exit 1
32484
32485@endif gotools
32486
32487.PHONY: maybe-html-gotools html-gotools
32488maybe-html-gotools:
32489@if gotools
32490maybe-html-gotools: html-gotools
32491
32492html-gotools: \
32493 configure-gotools
32494 @: $(MAKE); $(unstage)
32495 @[ -f ./gotools/Makefile ] || exit 0; \
32496 r=`${PWD_COMMAND}`; export r; \
32497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32498 $(HOST_EXPORTS) \
32499 for flag in $(EXTRA_HOST_FLAGS) ; do \
32500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32501 done; \
22121df0 32502 echo "Doing html in gotools"; \
1b6c0831
L
32503 (cd $(HOST_SUBDIR)/gotools && \
32504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32506 "RANLIB=$${RANLIB}" \
32507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32508 html) \
32509 || exit 1
32510
32511@endif gotools
32512
32513.PHONY: maybe-TAGS-gotools TAGS-gotools
32514maybe-TAGS-gotools:
32515@if gotools
32516maybe-TAGS-gotools: TAGS-gotools
32517
32518TAGS-gotools: \
32519 configure-gotools
32520 @: $(MAKE); $(unstage)
32521 @[ -f ./gotools/Makefile ] || exit 0; \
32522 r=`${PWD_COMMAND}`; export r; \
32523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32524 $(HOST_EXPORTS) \
32525 for flag in $(EXTRA_HOST_FLAGS) ; do \
32526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32527 done; \
22121df0 32528 echo "Doing TAGS in gotools"; \
1b6c0831
L
32529 (cd $(HOST_SUBDIR)/gotools && \
32530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32532 "RANLIB=$${RANLIB}" \
32533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32534 TAGS) \
32535 || exit 1
32536
32537@endif gotools
32538
32539.PHONY: maybe-install-info-gotools install-info-gotools
32540maybe-install-info-gotools:
32541@if gotools
32542maybe-install-info-gotools: install-info-gotools
32543
32544install-info-gotools: \
32545 configure-gotools \
32546 info-gotools
32547 @: $(MAKE); $(unstage)
32548 @[ -f ./gotools/Makefile ] || exit 0; \
32549 r=`${PWD_COMMAND}`; export r; \
32550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32551 $(HOST_EXPORTS) \
32552 for flag in $(EXTRA_HOST_FLAGS) ; do \
32553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32554 done; \
22121df0 32555 echo "Doing install-info in gotools"; \
1b6c0831
L
32556 (cd $(HOST_SUBDIR)/gotools && \
32557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32559 "RANLIB=$${RANLIB}" \
32560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32561 install-info) \
32562 || exit 1
32563
32564@endif gotools
32565
32566.PHONY: maybe-install-pdf-gotools install-pdf-gotools
32567maybe-install-pdf-gotools:
32568@if gotools
32569maybe-install-pdf-gotools: install-pdf-gotools
32570
32571install-pdf-gotools: \
32572 configure-gotools \
32573 pdf-gotools
32574 @: $(MAKE); $(unstage)
32575 @[ -f ./gotools/Makefile ] || exit 0; \
32576 r=`${PWD_COMMAND}`; export r; \
32577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32578 $(HOST_EXPORTS) \
32579 for flag in $(EXTRA_HOST_FLAGS) ; do \
32580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32581 done; \
22121df0 32582 echo "Doing install-pdf in gotools"; \
1b6c0831
L
32583 (cd $(HOST_SUBDIR)/gotools && \
32584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32586 "RANLIB=$${RANLIB}" \
32587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32588 install-pdf) \
32589 || exit 1
32590
32591@endif gotools
32592
32593.PHONY: maybe-install-html-gotools install-html-gotools
32594maybe-install-html-gotools:
32595@if gotools
32596maybe-install-html-gotools: install-html-gotools
32597
32598install-html-gotools: \
32599 configure-gotools \
32600 html-gotools
32601 @: $(MAKE); $(unstage)
32602 @[ -f ./gotools/Makefile ] || exit 0; \
32603 r=`${PWD_COMMAND}`; export r; \
32604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32605 $(HOST_EXPORTS) \
32606 for flag in $(EXTRA_HOST_FLAGS) ; do \
32607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32608 done; \
22121df0 32609 echo "Doing install-html in gotools"; \
1b6c0831
L
32610 (cd $(HOST_SUBDIR)/gotools && \
32611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32613 "RANLIB=$${RANLIB}" \
32614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32615 install-html) \
32616 || exit 1
32617
32618@endif gotools
32619
32620.PHONY: maybe-installcheck-gotools installcheck-gotools
32621maybe-installcheck-gotools:
32622@if gotools
32623maybe-installcheck-gotools: installcheck-gotools
32624
32625installcheck-gotools: \
32626 configure-gotools
32627 @: $(MAKE); $(unstage)
32628 @[ -f ./gotools/Makefile ] || exit 0; \
32629 r=`${PWD_COMMAND}`; export r; \
32630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32631 $(HOST_EXPORTS) \
32632 for flag in $(EXTRA_HOST_FLAGS) ; do \
32633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32634 done; \
22121df0 32635 echo "Doing installcheck in gotools"; \
1b6c0831
L
32636 (cd $(HOST_SUBDIR)/gotools && \
32637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32639 "RANLIB=$${RANLIB}" \
32640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32641 installcheck) \
32642 || exit 1
32643
32644@endif gotools
32645
32646.PHONY: maybe-mostlyclean-gotools mostlyclean-gotools
32647maybe-mostlyclean-gotools:
32648@if gotools
32649maybe-mostlyclean-gotools: mostlyclean-gotools
32650
32651mostlyclean-gotools:
32652 @: $(MAKE); $(unstage)
32653 @[ -f ./gotools/Makefile ] || exit 0; \
32654 r=`${PWD_COMMAND}`; export r; \
32655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32656 $(HOST_EXPORTS) \
32657 for flag in $(EXTRA_HOST_FLAGS) ; do \
32658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32659 done; \
22121df0 32660 echo "Doing mostlyclean in gotools"; \
1b6c0831
L
32661 (cd $(HOST_SUBDIR)/gotools && \
32662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32664 "RANLIB=$${RANLIB}" \
32665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32666 mostlyclean) \
32667 || exit 1
32668
32669@endif gotools
32670
32671.PHONY: maybe-clean-gotools clean-gotools
32672maybe-clean-gotools:
32673@if gotools
32674maybe-clean-gotools: clean-gotools
32675
32676clean-gotools:
32677 @: $(MAKE); $(unstage)
32678 @[ -f ./gotools/Makefile ] || exit 0; \
32679 r=`${PWD_COMMAND}`; export r; \
32680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32681 $(HOST_EXPORTS) \
32682 for flag in $(EXTRA_HOST_FLAGS) ; do \
32683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32684 done; \
22121df0 32685 echo "Doing clean in gotools"; \
1b6c0831
L
32686 (cd $(HOST_SUBDIR)/gotools && \
32687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32689 "RANLIB=$${RANLIB}" \
32690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32691 clean) \
32692 || exit 1
32693
32694@endif gotools
32695
32696.PHONY: maybe-distclean-gotools distclean-gotools
32697maybe-distclean-gotools:
32698@if gotools
32699maybe-distclean-gotools: distclean-gotools
32700
32701distclean-gotools:
32702 @: $(MAKE); $(unstage)
32703 @[ -f ./gotools/Makefile ] || exit 0; \
32704 r=`${PWD_COMMAND}`; export r; \
32705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32706 $(HOST_EXPORTS) \
32707 for flag in $(EXTRA_HOST_FLAGS) ; do \
32708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32709 done; \
22121df0 32710 echo "Doing distclean in gotools"; \
1b6c0831
L
32711 (cd $(HOST_SUBDIR)/gotools && \
32712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32714 "RANLIB=$${RANLIB}" \
32715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32716 distclean) \
32717 || exit 1
32718
32719@endif gotools
32720
32721.PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools
32722maybe-maintainer-clean-gotools:
32723@if gotools
32724maybe-maintainer-clean-gotools: maintainer-clean-gotools
32725
32726maintainer-clean-gotools:
32727 @: $(MAKE); $(unstage)
32728 @[ -f ./gotools/Makefile ] || exit 0; \
32729 r=`${PWD_COMMAND}`; export r; \
32730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32731 $(HOST_EXPORTS) \
32732 for flag in $(EXTRA_HOST_FLAGS) ; do \
32733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32734 done; \
22121df0 32735 echo "Doing maintainer-clean in gotools"; \
1b6c0831
L
32736 (cd $(HOST_SUBDIR)/gotools && \
32737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32739 "RANLIB=$${RANLIB}" \
32740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32741 maintainer-clean) \
32742 || exit 1
32743
32744@endif gotools
32745
32746
32747
32748# ---------------------------------------
32749# Modules which run on the target machine
32750# ---------------------------------------
32751
32752
32753
32754
32755.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
32756maybe-configure-target-libstdc++-v3:
32757@if gcc-bootstrap
32758configure-target-libstdc++-v3: stage_current
32759@endif gcc-bootstrap
32760@if target-libstdc++-v3
32761maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
32762configure-target-libstdc++-v3:
32763 @r=`${PWD_COMMAND}`; export r; \
32764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32765 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0
L
32766 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
32767 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32768 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32769 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32770 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32771 else \
32772 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32773 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32774 fi; \
32775 else \
32776 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32777 fi; \
32778 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
22121df0 32779 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32780 $(RAW_CXX_TARGET_EXPORTS) \
32781 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
32782 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
32783 case $(srcdir) in \
32784 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32785 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32786 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32787 esac; \
32788 module_srcdir=libstdc++-v3; \
32789 rm -f no-such-file || : ; \
32790 CONFIG_SITE=no-such-file $(SHELL) \
32791 $$s/$$module_srcdir/configure \
32792 --srcdir=$${topdir}/$$module_srcdir \
32793 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32794 --target=${target_alias} \
32795 || exit 1
32796@endif target-libstdc++-v3
32797
32798
32799
32800.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
32801maybe-configure-stage1-target-libstdc++-v3:
32802@if target-libstdc++-v3-bootstrap
32803maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
32804configure-stage1-target-libstdc++-v3:
32805 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32806 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32807 @r=`${PWD_COMMAND}`; export r; \
32808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32809 TFLAGS="$(STAGE1_TFLAGS)"; \
32810 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32811 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32812 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32813 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32814 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32815 else \
32816 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32817 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32818 fi; \
32819 else \
32820 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32821 fi; \
32822 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32823 $(RAW_CXX_TARGET_EXPORTS) \
32824 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32825 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32826 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32827 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3; \
32828 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32829 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32830 case $(srcdir) in \
32831 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32832 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32833 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32834 esac; \
32835 module_srcdir=libstdc++-v3; \
32836 $(SHELL) $$s/$$module_srcdir/configure \
32837 --srcdir=$${topdir}/$$module_srcdir \
32838 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32839 --target=${target_alias} \
32840 \
32841 $(STAGE1_CONFIGURE_FLAGS)
32842@endif target-libstdc++-v3-bootstrap
32843
32844.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
32845maybe-configure-stage2-target-libstdc++-v3:
32846@if target-libstdc++-v3-bootstrap
32847maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
32848configure-stage2-target-libstdc++-v3:
32849 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32850 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32851 @r=`${PWD_COMMAND}`; export r; \
32852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32853 TFLAGS="$(STAGE2_TFLAGS)"; \
32854 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32855 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32856 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32857 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32858 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32859 else \
32860 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32861 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32862 fi; \
32863 else \
32864 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32865 fi; \
32866 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32867 $(RAW_CXX_TARGET_EXPORTS) \
32868 \
32869 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32870 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32871 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32872 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3; \
32873 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32874 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32875 case $(srcdir) in \
32876 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32877 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32878 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32879 esac; \
32880 module_srcdir=libstdc++-v3; \
32881 $(SHELL) $$s/$$module_srcdir/configure \
32882 --srcdir=$${topdir}/$$module_srcdir \
32883 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32884 --target=${target_alias} \
22121df0 32885 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
32886 $(STAGE2_CONFIGURE_FLAGS)
32887@endif target-libstdc++-v3-bootstrap
32888
32889.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
32890maybe-configure-stage3-target-libstdc++-v3:
32891@if target-libstdc++-v3-bootstrap
32892maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
32893configure-stage3-target-libstdc++-v3:
32894 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32895 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32896 @r=`${PWD_COMMAND}`; export r; \
32897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32898 TFLAGS="$(STAGE3_TFLAGS)"; \
32899 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32900 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32901 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32902 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32903 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32904 else \
32905 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32906 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32907 fi; \
32908 else \
32909 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32910 fi; \
32911 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32912 $(RAW_CXX_TARGET_EXPORTS) \
32913 \
32914 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32915 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32916 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32917 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3; \
32918 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32919 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32920 case $(srcdir) in \
32921 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32922 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32923 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32924 esac; \
32925 module_srcdir=libstdc++-v3; \
32926 $(SHELL) $$s/$$module_srcdir/configure \
32927 --srcdir=$${topdir}/$$module_srcdir \
32928 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32929 --target=${target_alias} \
22121df0 32930 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
32931 $(STAGE3_CONFIGURE_FLAGS)
32932@endif target-libstdc++-v3-bootstrap
32933
32934.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
32935maybe-configure-stage4-target-libstdc++-v3:
32936@if target-libstdc++-v3-bootstrap
32937maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
32938configure-stage4-target-libstdc++-v3:
32939 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32940 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32941 @r=`${PWD_COMMAND}`; export r; \
32942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32943 TFLAGS="$(STAGE4_TFLAGS)"; \
32944 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32945 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32946 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32947 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32948 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32949 else \
32950 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32951 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32952 fi; \
32953 else \
32954 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32955 fi; \
32956 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
32957 $(RAW_CXX_TARGET_EXPORTS) \
32958 \
32959 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
32960 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
32961 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
32962 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3; \
32963 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
32964 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
32965 case $(srcdir) in \
32966 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32967 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
32968 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32969 esac; \
32970 module_srcdir=libstdc++-v3; \
32971 $(SHELL) $$s/$$module_srcdir/configure \
32972 --srcdir=$${topdir}/$$module_srcdir \
32973 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32974 --target=${target_alias} \
22121df0 32975 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
32976 $(STAGE4_CONFIGURE_FLAGS)
32977@endif target-libstdc++-v3-bootstrap
32978
32979.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
32980maybe-configure-stageprofile-target-libstdc++-v3:
32981@if target-libstdc++-v3-bootstrap
32982maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
32983configure-stageprofile-target-libstdc++-v3:
32984 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32985 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
32986 @r=`${PWD_COMMAND}`; export r; \
32987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32988 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32989 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 32990 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
32991 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32992 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
32993 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
32994 else \
32995 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
32996 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
32997 fi; \
32998 else \
32999 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33000 fi; \
33001 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
33002 $(RAW_CXX_TARGET_EXPORTS) \
33003 \
33004 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33005 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33006 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33007 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3; \
33008 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
33009 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
33010 case $(srcdir) in \
33011 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33012 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33013 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33014 esac; \
33015 module_srcdir=libstdc++-v3; \
33016 $(SHELL) $$s/$$module_srcdir/configure \
33017 --srcdir=$${topdir}/$$module_srcdir \
33018 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33019 --target=${target_alias} \
22121df0 33020 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33021 $(STAGEprofile_CONFIGURE_FLAGS)
33022@endif target-libstdc++-v3-bootstrap
33023
33024.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
33025maybe-configure-stagefeedback-target-libstdc++-v3:
33026@if target-libstdc++-v3-bootstrap
33027maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
33028configure-stagefeedback-target-libstdc++-v3:
33029 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33030 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
33031 @r=`${PWD_COMMAND}`; export r; \
33032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33033 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33034 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 33035 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
33036 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33037 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33038 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
33039 else \
33040 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
33041 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33042 fi; \
33043 else \
33044 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33045 fi; \
33046 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
33047 $(RAW_CXX_TARGET_EXPORTS) \
33048 \
33049 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33050 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33051 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33052 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3; \
33053 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
33054 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
33055 case $(srcdir) in \
33056 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33057 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33058 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33059 esac; \
33060 module_srcdir=libstdc++-v3; \
33061 $(SHELL) $$s/$$module_srcdir/configure \
33062 --srcdir=$${topdir}/$$module_srcdir \
33063 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33064 --target=${target_alias} \
22121df0 33065 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33066 $(STAGEfeedback_CONFIGURE_FLAGS)
33067@endif target-libstdc++-v3-bootstrap
33068
33069
33070
33071
33072
33073.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
33074maybe-all-target-libstdc++-v3:
33075@if gcc-bootstrap
33076all-target-libstdc++-v3: stage_current
33077@endif gcc-bootstrap
33078@if target-libstdc++-v3
33079TARGET-target-libstdc++-v3=all
33080maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
33081all-target-libstdc++-v3: configure-target-libstdc++-v3
33082 @r=`${PWD_COMMAND}`; export r; \
33083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33084 $(RAW_CXX_TARGET_EXPORTS) \
33085 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33086 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33087 $(TARGET-target-libstdc++-v3))
33088@endif target-libstdc++-v3
33089
33090
33091
33092.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
33093.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
33094maybe-all-stage1-target-libstdc++-v3:
33095maybe-clean-stage1-target-libstdc++-v3:
33096@if target-libstdc++-v3-bootstrap
33097maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
33098all-stage1: all-stage1-target-libstdc++-v3
33099TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33100all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
33101 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33102 @r=`${PWD_COMMAND}`; export r; \
33103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33104 TFLAGS="$(STAGE1_TFLAGS)"; \
33105 $(RAW_CXX_TARGET_EXPORTS) \
33106 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33107 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33108 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33109 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33110 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33111 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33112 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33113 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33114 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33115 \
33116 TFLAGS="$(STAGE1_TFLAGS)" \
33117 $(TARGET-stage1-target-libstdc++-v3)
33118
33119maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
33120clean-stage1: clean-stage1-target-libstdc++-v3
33121clean-stage1-target-libstdc++-v3:
33122 @if [ $(current_stage) = stage1 ]; then \
33123 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33124 else \
33125 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
33126 $(MAKE) stage1-start; \
33127 fi; \
33128 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33129 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33130 clean
33131@endif target-libstdc++-v3-bootstrap
33132
33133
33134.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
33135.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
33136maybe-all-stage2-target-libstdc++-v3:
33137maybe-clean-stage2-target-libstdc++-v3:
33138@if target-libstdc++-v3-bootstrap
33139maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
33140all-stage2: all-stage2-target-libstdc++-v3
33141TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33142all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
33143 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33144 @r=`${PWD_COMMAND}`; export r; \
33145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33146 TFLAGS="$(STAGE2_TFLAGS)"; \
33147 $(RAW_CXX_TARGET_EXPORTS) \
33148 \
33149 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33150 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33151 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33152 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33153 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33154 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33155 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33156 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33157 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33158 TFLAGS="$(STAGE2_TFLAGS)" \
33159 $(TARGET-stage2-target-libstdc++-v3)
33160
33161maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
33162clean-stage2: clean-stage2-target-libstdc++-v3
33163clean-stage2-target-libstdc++-v3:
33164 @if [ $(current_stage) = stage2 ]; then \
33165 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33166 else \
33167 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
33168 $(MAKE) stage2-start; \
33169 fi; \
33170 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33171 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33172@endif target-libstdc++-v3-bootstrap
33173
33174
33175.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
33176.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
33177maybe-all-stage3-target-libstdc++-v3:
33178maybe-clean-stage3-target-libstdc++-v3:
33179@if target-libstdc++-v3-bootstrap
33180maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
33181all-stage3: all-stage3-target-libstdc++-v3
33182TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33183all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
33184 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33185 @r=`${PWD_COMMAND}`; export r; \
33186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33187 TFLAGS="$(STAGE3_TFLAGS)"; \
33188 $(RAW_CXX_TARGET_EXPORTS) \
33189 \
33190 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33191 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33192 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33193 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33194 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33195 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33196 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33197 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33198 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33199 TFLAGS="$(STAGE3_TFLAGS)" \
33200 $(TARGET-stage3-target-libstdc++-v3)
33201
33202maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
33203clean-stage3: clean-stage3-target-libstdc++-v3
33204clean-stage3-target-libstdc++-v3:
33205 @if [ $(current_stage) = stage3 ]; then \
33206 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33207 else \
33208 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
33209 $(MAKE) stage3-start; \
33210 fi; \
33211 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33212 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33213@endif target-libstdc++-v3-bootstrap
33214
33215
33216.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
33217.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
33218maybe-all-stage4-target-libstdc++-v3:
33219maybe-clean-stage4-target-libstdc++-v3:
33220@if target-libstdc++-v3-bootstrap
33221maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
33222all-stage4: all-stage4-target-libstdc++-v3
33223TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33224all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
33225 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33226 @r=`${PWD_COMMAND}`; export r; \
33227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33228 TFLAGS="$(STAGE4_TFLAGS)"; \
33229 $(RAW_CXX_TARGET_EXPORTS) \
33230 \
33231 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33232 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33233 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33234 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33235 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33236 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33237 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33238 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33239 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33240 TFLAGS="$(STAGE4_TFLAGS)" \
33241 $(TARGET-stage4-target-libstdc++-v3)
33242
33243maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
33244clean-stage4: clean-stage4-target-libstdc++-v3
33245clean-stage4-target-libstdc++-v3:
33246 @if [ $(current_stage) = stage4 ]; then \
33247 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33248 else \
33249 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
33250 $(MAKE) stage4-start; \
33251 fi; \
33252 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33253 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33254@endif target-libstdc++-v3-bootstrap
33255
33256
33257.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
33258.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
33259maybe-all-stageprofile-target-libstdc++-v3:
33260maybe-clean-stageprofile-target-libstdc++-v3:
33261@if target-libstdc++-v3-bootstrap
33262maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
33263all-stageprofile: all-stageprofile-target-libstdc++-v3
33264TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33265all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
33266 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33267 @r=`${PWD_COMMAND}`; export r; \
33268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33269 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33270 $(RAW_CXX_TARGET_EXPORTS) \
33271 \
33272 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33273 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33274 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33275 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33276 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33277 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33278 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33279 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33280 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33281 TFLAGS="$(STAGEprofile_TFLAGS)" \
33282 $(TARGET-stageprofile-target-libstdc++-v3)
33283
33284maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
33285clean-stageprofile: clean-stageprofile-target-libstdc++-v3
33286clean-stageprofile-target-libstdc++-v3:
33287 @if [ $(current_stage) = stageprofile ]; then \
33288 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33289 else \
33290 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
33291 $(MAKE) stageprofile-start; \
33292 fi; \
33293 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33294 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33295@endif target-libstdc++-v3-bootstrap
33296
33297
33298.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
33299.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
33300maybe-all-stagefeedback-target-libstdc++-v3:
33301maybe-clean-stagefeedback-target-libstdc++-v3:
33302@if target-libstdc++-v3-bootstrap
33303maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
33304all-stagefeedback: all-stagefeedback-target-libstdc++-v3
33305TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
33306all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
33307 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33308 @r=`${PWD_COMMAND}`; export r; \
33309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33310 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33311 $(RAW_CXX_TARGET_EXPORTS) \
33312 \
33313 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33314 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33315 CFLAGS="$(CFLAGS_FOR_TARGET)" \
33316 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
33317 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
33318 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33319 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33320 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33321 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
33322 TFLAGS="$(STAGEfeedback_TFLAGS)" \
33323 $(TARGET-stagefeedback-target-libstdc++-v3)
33324
33325maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
33326clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
33327clean-stagefeedback-target-libstdc++-v3:
33328 @if [ $(current_stage) = stagefeedback ]; then \
33329 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
33330 else \
33331 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
33332 $(MAKE) stagefeedback-start; \
33333 fi; \
33334 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33335 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
33336@endif target-libstdc++-v3-bootstrap
33337
33338
33339
33340
33341
33342
33343.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
33344maybe-check-target-libstdc++-v3:
33345@if target-libstdc++-v3
33346maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
33347
33348check-target-libstdc++-v3:
33349 @: $(MAKE); $(unstage)
33350 @r=`${PWD_COMMAND}`; export r; \
33351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33352 $(RAW_CXX_TARGET_EXPORTS) \
33353 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33354 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
33355
33356@endif target-libstdc++-v3
33357
33358.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
33359maybe-install-target-libstdc++-v3:
33360@if target-libstdc++-v3
33361maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
33362
33363install-target-libstdc++-v3: installdirs
33364 @: $(MAKE); $(unstage)
33365 @r=`${PWD_COMMAND}`; export r; \
33366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33367 $(RAW_CXX_TARGET_EXPORTS) \
33368 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33369 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
33370
33371@endif target-libstdc++-v3
33372
33373.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
33374maybe-install-strip-target-libstdc++-v3:
33375@if target-libstdc++-v3
33376maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
33377
33378install-strip-target-libstdc++-v3: installdirs
33379 @: $(MAKE); $(unstage)
33380 @r=`${PWD_COMMAND}`; export r; \
33381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33382 $(RAW_CXX_TARGET_EXPORTS) \
33383 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33384 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
33385
33386@endif target-libstdc++-v3
33387
33388# Other targets (info, dvi, pdf, etc.)
33389
33390.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
33391maybe-info-target-libstdc++-v3:
33392@if target-libstdc++-v3
33393maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
33394
33395info-target-libstdc++-v3: \
33396 configure-target-libstdc++-v3
33397 @: $(MAKE); $(unstage)
22121df0 33398 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33399 r=`${PWD_COMMAND}`; export r; \
33400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33401 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33402 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33403 for flag in $(EXTRA_TARGET_FLAGS); do \
33404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33405 done; \
33406 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33409 "RANLIB=$${RANLIB}" \
33410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33411 info) \
33412 || exit 1
33413
33414@endif target-libstdc++-v3
33415
33416.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
33417maybe-dvi-target-libstdc++-v3:
33418@if target-libstdc++-v3
33419maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
33420
33421dvi-target-libstdc++-v3: \
33422 configure-target-libstdc++-v3
33423 @: $(MAKE); $(unstage)
22121df0 33424 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33425 r=`${PWD_COMMAND}`; export r; \
33426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33427 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33428 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33429 for flag in $(EXTRA_TARGET_FLAGS); do \
33430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33431 done; \
33432 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33435 "RANLIB=$${RANLIB}" \
33436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33437 dvi) \
33438 || exit 1
33439
33440@endif target-libstdc++-v3
33441
33442.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
33443maybe-pdf-target-libstdc++-v3:
33444@if target-libstdc++-v3
33445maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
33446
33447pdf-target-libstdc++-v3: \
33448 configure-target-libstdc++-v3
33449 @: $(MAKE); $(unstage)
22121df0 33450 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33451 r=`${PWD_COMMAND}`; export r; \
33452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33453 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33454 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33455 for flag in $(EXTRA_TARGET_FLAGS); do \
33456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33457 done; \
33458 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33461 "RANLIB=$${RANLIB}" \
33462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33463 pdf) \
33464 || exit 1
33465
33466@endif target-libstdc++-v3
33467
33468.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
33469maybe-html-target-libstdc++-v3:
33470@if target-libstdc++-v3
33471maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
33472
33473html-target-libstdc++-v3: \
33474 configure-target-libstdc++-v3
33475 @: $(MAKE); $(unstage)
22121df0 33476 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33477 r=`${PWD_COMMAND}`; export r; \
33478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33479 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33480 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33481 for flag in $(EXTRA_TARGET_FLAGS); do \
33482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33483 done; \
33484 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33487 "RANLIB=$${RANLIB}" \
33488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33489 html) \
33490 || exit 1
33491
33492@endif target-libstdc++-v3
33493
33494.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
33495maybe-TAGS-target-libstdc++-v3:
33496@if target-libstdc++-v3
33497maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
33498
33499TAGS-target-libstdc++-v3: \
33500 configure-target-libstdc++-v3
33501 @: $(MAKE); $(unstage)
22121df0 33502 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33503 r=`${PWD_COMMAND}`; export r; \
33504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33505 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33506 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33507 for flag in $(EXTRA_TARGET_FLAGS); do \
33508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33509 done; \
33510 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33513 "RANLIB=$${RANLIB}" \
33514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33515 TAGS) \
33516 || exit 1
33517
33518@endif target-libstdc++-v3
33519
33520.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
33521maybe-install-info-target-libstdc++-v3:
33522@if target-libstdc++-v3
33523maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
33524
33525install-info-target-libstdc++-v3: \
33526 configure-target-libstdc++-v3 \
33527 info-target-libstdc++-v3
33528 @: $(MAKE); $(unstage)
22121df0 33529 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33530 r=`${PWD_COMMAND}`; export r; \
33531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33532 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33533 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33534 for flag in $(EXTRA_TARGET_FLAGS); do \
33535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33536 done; \
33537 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33540 "RANLIB=$${RANLIB}" \
33541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33542 install-info) \
33543 || exit 1
33544
33545@endif target-libstdc++-v3
33546
33547.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
33548maybe-install-pdf-target-libstdc++-v3:
33549@if target-libstdc++-v3
33550maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
33551
33552install-pdf-target-libstdc++-v3: \
33553 configure-target-libstdc++-v3 \
33554 pdf-target-libstdc++-v3
33555 @: $(MAKE); $(unstage)
22121df0 33556 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33557 r=`${PWD_COMMAND}`; export r; \
33558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33559 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33560 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33561 for flag in $(EXTRA_TARGET_FLAGS); do \
33562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33563 done; \
33564 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33567 "RANLIB=$${RANLIB}" \
33568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33569 install-pdf) \
33570 || exit 1
33571
33572@endif target-libstdc++-v3
33573
33574.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
33575maybe-install-html-target-libstdc++-v3:
33576@if target-libstdc++-v3
33577maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
33578
33579install-html-target-libstdc++-v3: \
33580 configure-target-libstdc++-v3 \
33581 html-target-libstdc++-v3
33582 @: $(MAKE); $(unstage)
22121df0 33583 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33584 r=`${PWD_COMMAND}`; export r; \
33585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33586 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33587 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33588 for flag in $(EXTRA_TARGET_FLAGS); do \
33589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33590 done; \
33591 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33594 "RANLIB=$${RANLIB}" \
33595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33596 install-html) \
33597 || exit 1
33598
33599@endif target-libstdc++-v3
33600
33601.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
33602maybe-installcheck-target-libstdc++-v3:
33603@if target-libstdc++-v3
33604maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
33605
33606installcheck-target-libstdc++-v3: \
33607 configure-target-libstdc++-v3
33608 @: $(MAKE); $(unstage)
22121df0 33609 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33610 r=`${PWD_COMMAND}`; export r; \
33611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33612 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33613 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33614 for flag in $(EXTRA_TARGET_FLAGS); do \
33615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33616 done; \
33617 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33620 "RANLIB=$${RANLIB}" \
33621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33622 installcheck) \
33623 || exit 1
33624
33625@endif target-libstdc++-v3
33626
33627.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
33628maybe-mostlyclean-target-libstdc++-v3:
33629@if target-libstdc++-v3
33630maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
33631
33632mostlyclean-target-libstdc++-v3:
33633 @: $(MAKE); $(unstage)
22121df0 33634 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33635 r=`${PWD_COMMAND}`; export r; \
33636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33637 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33638 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33639 for flag in $(EXTRA_TARGET_FLAGS); do \
33640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33641 done; \
33642 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33645 "RANLIB=$${RANLIB}" \
33646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33647 mostlyclean) \
33648 || exit 1
33649
33650@endif target-libstdc++-v3
33651
33652.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
33653maybe-clean-target-libstdc++-v3:
33654@if target-libstdc++-v3
33655maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
33656
33657clean-target-libstdc++-v3:
33658 @: $(MAKE); $(unstage)
22121df0 33659 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33660 r=`${PWD_COMMAND}`; export r; \
33661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33662 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33663 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33664 for flag in $(EXTRA_TARGET_FLAGS); do \
33665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33666 done; \
33667 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33670 "RANLIB=$${RANLIB}" \
33671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33672 clean) \
33673 || exit 1
33674
33675@endif target-libstdc++-v3
33676
33677.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
33678maybe-distclean-target-libstdc++-v3:
33679@if target-libstdc++-v3
33680maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
33681
33682distclean-target-libstdc++-v3:
33683 @: $(MAKE); $(unstage)
22121df0 33684 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33685 r=`${PWD_COMMAND}`; export r; \
33686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33687 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33688 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33689 for flag in $(EXTRA_TARGET_FLAGS); do \
33690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33691 done; \
33692 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33695 "RANLIB=$${RANLIB}" \
33696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33697 distclean) \
33698 || exit 1
33699
33700@endif target-libstdc++-v3
33701
33702.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
33703maybe-maintainer-clean-target-libstdc++-v3:
33704@if target-libstdc++-v3
33705maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
33706
33707maintainer-clean-target-libstdc++-v3:
33708 @: $(MAKE); $(unstage)
22121df0 33709 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
33710 r=`${PWD_COMMAND}`; export r; \
33711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33712 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 33713 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
33714 for flag in $(EXTRA_TARGET_FLAGS); do \
33715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33716 done; \
33717 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33720 "RANLIB=$${RANLIB}" \
33721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33722 maintainer-clean) \
33723 || exit 1
33724
33725@endif target-libstdc++-v3
33726
33727
33728
33729
33730
33731.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
33732maybe-configure-target-libsanitizer:
33733@if gcc-bootstrap
33734configure-target-libsanitizer: stage_current
33735@endif gcc-bootstrap
33736@if target-libsanitizer
33737maybe-configure-target-libsanitizer: configure-target-libsanitizer
33738configure-target-libsanitizer:
33739 @r=`${PWD_COMMAND}`; export r; \
33740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33741 echo "Checking multilib configuration for libsanitizer..."; \
22121df0
L
33742 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
33743 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33744 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33745 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33746 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33747 else \
33748 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33749 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33750 fi; \
33751 else \
33752 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33753 fi; \
33754 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
22121df0 33755 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33756 $(RAW_CXX_TARGET_EXPORTS) \
33757 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
33758 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
33759 case $(srcdir) in \
33760 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33761 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33762 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33763 esac; \
33764 module_srcdir=libsanitizer; \
33765 rm -f no-such-file || : ; \
33766 CONFIG_SITE=no-such-file $(SHELL) \
33767 $$s/$$module_srcdir/configure \
33768 --srcdir=$${topdir}/$$module_srcdir \
33769 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33770 --target=${target_alias} \
33771 || exit 1
33772@endif target-libsanitizer
33773
33774
33775
33776.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
33777maybe-configure-stage1-target-libsanitizer:
33778@if target-libsanitizer-bootstrap
33779maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
33780configure-stage1-target-libsanitizer:
33781 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33782 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33783 @r=`${PWD_COMMAND}`; export r; \
33784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33785 TFLAGS="$(STAGE1_TFLAGS)"; \
33786 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33787 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33788 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33789 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33790 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33791 else \
33792 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33793 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33794 fi; \
33795 else \
33796 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33797 fi; \
33798 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33799 $(RAW_CXX_TARGET_EXPORTS) \
33800 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33801 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33802 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33803 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer; \
33804 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33805 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33806 case $(srcdir) in \
33807 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33808 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33809 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33810 esac; \
33811 module_srcdir=libsanitizer; \
33812 $(SHELL) $$s/$$module_srcdir/configure \
33813 --srcdir=$${topdir}/$$module_srcdir \
33814 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33815 --target=${target_alias} \
33816 \
33817 $(STAGE1_CONFIGURE_FLAGS)
33818@endif target-libsanitizer-bootstrap
33819
33820.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
33821maybe-configure-stage2-target-libsanitizer:
33822@if target-libsanitizer-bootstrap
33823maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
33824configure-stage2-target-libsanitizer:
33825 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33826 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33827 @r=`${PWD_COMMAND}`; export r; \
33828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33829 TFLAGS="$(STAGE2_TFLAGS)"; \
33830 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33831 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33832 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33833 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33834 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33835 else \
33836 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33837 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33838 fi; \
33839 else \
33840 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33841 fi; \
33842 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33843 $(RAW_CXX_TARGET_EXPORTS) \
33844 \
33845 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33846 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33847 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33848 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer; \
33849 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33850 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33851 case $(srcdir) in \
33852 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33853 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33854 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33855 esac; \
33856 module_srcdir=libsanitizer; \
33857 $(SHELL) $$s/$$module_srcdir/configure \
33858 --srcdir=$${topdir}/$$module_srcdir \
33859 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33860 --target=${target_alias} \
22121df0 33861 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33862 $(STAGE2_CONFIGURE_FLAGS)
33863@endif target-libsanitizer-bootstrap
33864
33865.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
33866maybe-configure-stage3-target-libsanitizer:
33867@if target-libsanitizer-bootstrap
33868maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
33869configure-stage3-target-libsanitizer:
33870 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33871 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33872 @r=`${PWD_COMMAND}`; export r; \
33873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33874 TFLAGS="$(STAGE3_TFLAGS)"; \
33875 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33876 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33877 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33878 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33879 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33880 else \
33881 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33882 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33883 fi; \
33884 else \
33885 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33886 fi; \
33887 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33888 $(RAW_CXX_TARGET_EXPORTS) \
33889 \
33890 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33891 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33892 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33893 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer; \
33894 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33895 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33896 case $(srcdir) in \
33897 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33898 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33899 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33900 esac; \
33901 module_srcdir=libsanitizer; \
33902 $(SHELL) $$s/$$module_srcdir/configure \
33903 --srcdir=$${topdir}/$$module_srcdir \
33904 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33905 --target=${target_alias} \
22121df0 33906 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33907 $(STAGE3_CONFIGURE_FLAGS)
33908@endif target-libsanitizer-bootstrap
33909
33910.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
33911maybe-configure-stage4-target-libsanitizer:
33912@if target-libsanitizer-bootstrap
33913maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
33914configure-stage4-target-libsanitizer:
33915 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33916 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33917 @r=`${PWD_COMMAND}`; export r; \
33918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33919 TFLAGS="$(STAGE4_TFLAGS)"; \
33920 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33921 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33922 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33923 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33924 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33925 else \
33926 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33927 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33928 fi; \
33929 else \
33930 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33931 fi; \
33932 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33933 $(RAW_CXX_TARGET_EXPORTS) \
33934 \
33935 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33936 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33937 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33938 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer; \
33939 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33940 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33941 case $(srcdir) in \
33942 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33943 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33944 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33945 esac; \
33946 module_srcdir=libsanitizer; \
33947 $(SHELL) $$s/$$module_srcdir/configure \
33948 --srcdir=$${topdir}/$$module_srcdir \
33949 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33950 --target=${target_alias} \
22121df0 33951 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33952 $(STAGE4_CONFIGURE_FLAGS)
33953@endif target-libsanitizer-bootstrap
33954
33955.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
33956maybe-configure-stageprofile-target-libsanitizer:
33957@if target-libsanitizer-bootstrap
33958maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
33959configure-stageprofile-target-libsanitizer:
33960 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33961 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
33962 @r=`${PWD_COMMAND}`; export r; \
33963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33964 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33965 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 33966 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
33967 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33968 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
33969 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
33970 else \
33971 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
33972 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33973 fi; \
33974 else \
33975 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
33976 fi; \
33977 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
33978 $(RAW_CXX_TARGET_EXPORTS) \
33979 \
33980 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33981 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33982 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33983 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer; \
33984 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
33985 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
33986 case $(srcdir) in \
33987 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33988 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
33989 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33990 esac; \
33991 module_srcdir=libsanitizer; \
33992 $(SHELL) $$s/$$module_srcdir/configure \
33993 --srcdir=$${topdir}/$$module_srcdir \
33994 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33995 --target=${target_alias} \
22121df0 33996 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33997 $(STAGEprofile_CONFIGURE_FLAGS)
33998@endif target-libsanitizer-bootstrap
33999
34000.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
34001maybe-configure-stagefeedback-target-libsanitizer:
34002@if target-libsanitizer-bootstrap
34003maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
34004configure-stagefeedback-target-libsanitizer:
34005 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34006 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
34007 @r=`${PWD_COMMAND}`; export r; \
34008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34009 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34010 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 34011 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
34012 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34013 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34014 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
34015 else \
34016 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
34017 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34018 fi; \
34019 else \
34020 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34021 fi; \
34022 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
34023 $(RAW_CXX_TARGET_EXPORTS) \
34024 \
34025 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34026 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34027 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34028 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer; \
34029 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
34030 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
34031 case $(srcdir) in \
34032 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34033 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
34034 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34035 esac; \
34036 module_srcdir=libsanitizer; \
34037 $(SHELL) $$s/$$module_srcdir/configure \
34038 --srcdir=$${topdir}/$$module_srcdir \
34039 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34040 --target=${target_alias} \
22121df0 34041 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34042 $(STAGEfeedback_CONFIGURE_FLAGS)
34043@endif target-libsanitizer-bootstrap
34044
34045
34046
34047
34048
34049.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
34050maybe-all-target-libsanitizer:
34051@if gcc-bootstrap
34052all-target-libsanitizer: stage_current
34053@endif gcc-bootstrap
34054@if target-libsanitizer
34055TARGET-target-libsanitizer=all
34056maybe-all-target-libsanitizer: all-target-libsanitizer
34057all-target-libsanitizer: configure-target-libsanitizer
34058 @r=`${PWD_COMMAND}`; export r; \
34059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34060 $(RAW_CXX_TARGET_EXPORTS) \
34061 (cd $(TARGET_SUBDIR)/libsanitizer && \
34062 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34063 $(TARGET-target-libsanitizer))
34064@endif target-libsanitizer
34065
34066
34067
34068.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
34069.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
34070maybe-all-stage1-target-libsanitizer:
34071maybe-clean-stage1-target-libsanitizer:
34072@if target-libsanitizer-bootstrap
34073maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
34074all-stage1: all-stage1-target-libsanitizer
34075TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
34076all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
34077 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34078 @r=`${PWD_COMMAND}`; export r; \
34079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34080 TFLAGS="$(STAGE1_TFLAGS)"; \
34081 $(RAW_CXX_TARGET_EXPORTS) \
34082 cd $(TARGET_SUBDIR)/libsanitizer && \
34083 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34084 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34085 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34086 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34087 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34088 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34089 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34090 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34091 \
34092 TFLAGS="$(STAGE1_TFLAGS)" \
34093 $(TARGET-stage1-target-libsanitizer)
34094
34095maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
34096clean-stage1: clean-stage1-target-libsanitizer
34097clean-stage1-target-libsanitizer:
34098 @if [ $(current_stage) = stage1 ]; then \
34099 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
34100 else \
34101 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
34102 $(MAKE) stage1-start; \
34103 fi; \
34104 cd $(TARGET_SUBDIR)/libsanitizer && \
34105 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34106 clean
34107@endif target-libsanitizer-bootstrap
34108
34109
34110.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
34111.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
34112maybe-all-stage2-target-libsanitizer:
34113maybe-clean-stage2-target-libsanitizer:
34114@if target-libsanitizer-bootstrap
34115maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
34116all-stage2: all-stage2-target-libsanitizer
34117TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
34118all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
34119 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34120 @r=`${PWD_COMMAND}`; export r; \
34121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34122 TFLAGS="$(STAGE2_TFLAGS)"; \
34123 $(RAW_CXX_TARGET_EXPORTS) \
34124 \
34125 cd $(TARGET_SUBDIR)/libsanitizer && \
34126 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34127 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34128 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34129 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34130 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34131 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34132 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34133 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34134 TFLAGS="$(STAGE2_TFLAGS)" \
34135 $(TARGET-stage2-target-libsanitizer)
34136
34137maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
34138clean-stage2: clean-stage2-target-libsanitizer
34139clean-stage2-target-libsanitizer:
34140 @if [ $(current_stage) = stage2 ]; then \
34141 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
34142 else \
34143 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
34144 $(MAKE) stage2-start; \
34145 fi; \
34146 cd $(TARGET_SUBDIR)/libsanitizer && \
34147 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34148@endif target-libsanitizer-bootstrap
34149
34150
34151.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
34152.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
34153maybe-all-stage3-target-libsanitizer:
34154maybe-clean-stage3-target-libsanitizer:
34155@if target-libsanitizer-bootstrap
34156maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
34157all-stage3: all-stage3-target-libsanitizer
34158TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
34159all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
34160 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34161 @r=`${PWD_COMMAND}`; export r; \
34162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34163 TFLAGS="$(STAGE3_TFLAGS)"; \
34164 $(RAW_CXX_TARGET_EXPORTS) \
34165 \
34166 cd $(TARGET_SUBDIR)/libsanitizer && \
34167 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34168 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34169 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34170 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34171 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34172 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34173 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34174 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34175 TFLAGS="$(STAGE3_TFLAGS)" \
34176 $(TARGET-stage3-target-libsanitizer)
34177
34178maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
34179clean-stage3: clean-stage3-target-libsanitizer
34180clean-stage3-target-libsanitizer:
34181 @if [ $(current_stage) = stage3 ]; then \
34182 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
34183 else \
34184 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
34185 $(MAKE) stage3-start; \
34186 fi; \
34187 cd $(TARGET_SUBDIR)/libsanitizer && \
34188 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34189@endif target-libsanitizer-bootstrap
34190
34191
34192.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
34193.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
34194maybe-all-stage4-target-libsanitizer:
34195maybe-clean-stage4-target-libsanitizer:
34196@if target-libsanitizer-bootstrap
34197maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
34198all-stage4: all-stage4-target-libsanitizer
34199TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
34200all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
34201 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34202 @r=`${PWD_COMMAND}`; export r; \
34203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34204 TFLAGS="$(STAGE4_TFLAGS)"; \
34205 $(RAW_CXX_TARGET_EXPORTS) \
34206 \
34207 cd $(TARGET_SUBDIR)/libsanitizer && \
34208 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34209 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34210 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34211 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
34212 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34213 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34214 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34215 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34216 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 34217 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 34218
1b6c0831
L
34219maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
34220clean-stage4: clean-stage4-target-libsanitizer
34221clean-stage4-target-libsanitizer:
e8a5fa9c 34222 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 34223 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 34224 else \
1b6c0831 34225 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
34226 $(MAKE) stage4-start; \
34227 fi; \
1b6c0831 34228 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 34229 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 34230@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
34231
34232
1b6c0831
L
34233.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
34234.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
34235maybe-all-stageprofile-target-libsanitizer:
34236maybe-clean-stageprofile-target-libsanitizer:
34237@if target-libsanitizer-bootstrap
34238maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
34239all-stageprofile: all-stageprofile-target-libsanitizer
34240TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
34241all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
34242 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34243 @r=`${PWD_COMMAND}`; export r; \
34244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34245 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34246 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 34247 \
1b6c0831 34248 cd $(TARGET_SUBDIR)/libsanitizer && \
e8a5fa9c
RW
34249 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34250 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34251 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34252 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34253 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34254 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34255 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34256 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34257 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 34258 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 34259
1b6c0831
L
34260maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
34261clean-stageprofile: clean-stageprofile-target-libsanitizer
34262clean-stageprofile-target-libsanitizer:
e8a5fa9c 34263 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 34264 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 34265 else \
1b6c0831 34266 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
34267 $(MAKE) stageprofile-start; \
34268 fi; \
1b6c0831 34269 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 34270 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 34271@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
34272
34273
1b6c0831
L
34274.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
34275.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
34276maybe-all-stagefeedback-target-libsanitizer:
34277maybe-clean-stagefeedback-target-libsanitizer:
34278@if target-libsanitizer-bootstrap
34279maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
34280all-stagefeedback: all-stagefeedback-target-libsanitizer
34281TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
34282all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
34283 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34284 @r=`${PWD_COMMAND}`; export r; \
34285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34286 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34287 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 34288 \
1b6c0831 34289 cd $(TARGET_SUBDIR)/libsanitizer && \
e8a5fa9c
RW
34290 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34291 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34292 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34293 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34294 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34295 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34296 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34297 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34298 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 34299 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 34300
1b6c0831
L
34301maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
34302clean-stagefeedback: clean-stagefeedback-target-libsanitizer
34303clean-stagefeedback-target-libsanitizer:
e8a5fa9c 34304 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 34305 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 34306 else \
1b6c0831 34307 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
34308 $(MAKE) stagefeedback-start; \
34309 fi; \
1b6c0831 34310 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 34311 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 34312@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
34313
34314
34315
34316
d545f33b
PB
34317
34318
1b6c0831
L
34319.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
34320maybe-check-target-libsanitizer:
34321@if target-libsanitizer
34322maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 34323
1b6c0831 34324check-target-libsanitizer:
0aed8855 34325 @: $(MAKE); $(unstage)
b40e3958
L
34326 @r=`${PWD_COMMAND}`; export r; \
34327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34328 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34329 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 34330 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 34331
1b6c0831 34332@endif target-libsanitizer
3866be5d 34333
1b6c0831
L
34334.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
34335maybe-install-target-libsanitizer:
34336@if target-libsanitizer
34337maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 34338
1b6c0831 34339install-target-libsanitizer: installdirs
0aed8855 34340 @: $(MAKE); $(unstage)
b40e3958
L
34341 @r=`${PWD_COMMAND}`; export r; \
34342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34343 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34344 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 34345 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 34346
1b6c0831 34347@endif target-libsanitizer
e2b9e2dc 34348
1b6c0831
L
34349.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
34350maybe-install-strip-target-libsanitizer:
34351@if target-libsanitizer
34352maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 34353
1b6c0831 34354install-strip-target-libsanitizer: installdirs
9b980aa1
RW
34355 @: $(MAKE); $(unstage)
34356 @r=`${PWD_COMMAND}`; export r; \
34357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34358 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 34359 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
34360 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
34361
1b6c0831 34362@endif target-libsanitizer
9b980aa1 34363
56a8fe78 34364# Other targets (info, dvi, pdf, etc.)
3866be5d 34365
1b6c0831
L
34366.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
34367maybe-info-target-libsanitizer:
34368@if target-libsanitizer
34369maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 34370
1b6c0831
L
34371info-target-libsanitizer: \
34372 configure-target-libsanitizer
0aed8855 34373 @: $(MAKE); $(unstage)
22121df0 34374 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34375 r=`${PWD_COMMAND}`; export r; \
b40e3958 34376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34377 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34378 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34379 for flag in $(EXTRA_TARGET_FLAGS); do \
34380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34381 done; \
1b6c0831 34382 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34385 "RANLIB=$${RANLIB}" \
0c24b341 34386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34387 info) \
4fa63067 34388 || exit 1
3866be5d 34389
1b6c0831 34390@endif target-libsanitizer
3866be5d 34391
1b6c0831
L
34392.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
34393maybe-dvi-target-libsanitizer:
34394@if target-libsanitizer
34395maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 34396
1b6c0831
L
34397dvi-target-libsanitizer: \
34398 configure-target-libsanitizer
0aed8855 34399 @: $(MAKE); $(unstage)
22121df0 34400 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34401 r=`${PWD_COMMAND}`; export r; \
b40e3958 34402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34403 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34404 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34405 for flag in $(EXTRA_TARGET_FLAGS); do \
34406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34407 done; \
1b6c0831 34408 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34409 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34410 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34411 "RANLIB=$${RANLIB}" \
0c24b341 34412 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34413 dvi) \
4fa63067 34414 || exit 1
3866be5d 34415
1b6c0831 34416@endif target-libsanitizer
3866be5d 34417
1b6c0831
L
34418.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
34419maybe-pdf-target-libsanitizer:
34420@if target-libsanitizer
34421maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 34422
1b6c0831
L
34423pdf-target-libsanitizer: \
34424 configure-target-libsanitizer
56a8fe78 34425 @: $(MAKE); $(unstage)
22121df0 34426 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
56a8fe78
DD
34427 r=`${PWD_COMMAND}`; export r; \
34428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34429 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34430 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer"; \
56a8fe78
DD
34431 for flag in $(EXTRA_TARGET_FLAGS); do \
34432 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34433 done; \
1b6c0831 34434 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
34435 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34436 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34437 "RANLIB=$${RANLIB}" \
0c24b341 34438 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
34439 pdf) \
34440 || exit 1
34441
1b6c0831 34442@endif target-libsanitizer
56a8fe78 34443
1b6c0831
L
34444.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
34445maybe-html-target-libsanitizer:
34446@if target-libsanitizer
34447maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 34448
1b6c0831
L
34449html-target-libsanitizer: \
34450 configure-target-libsanitizer
0aed8855 34451 @: $(MAKE); $(unstage)
22121df0 34452 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
6d389afc
MS
34453 r=`${PWD_COMMAND}`; export r; \
34454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 34455 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34456 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer"; \
6d389afc
MS
34457 for flag in $(EXTRA_TARGET_FLAGS); do \
34458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34459 done; \
1b6c0831 34460 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
34461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34463 "RANLIB=$${RANLIB}" \
0c24b341 34464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
34465 html) \
34466 || exit 1
34467
1b6c0831 34468@endif target-libsanitizer
6d389afc 34469
1b6c0831
L
34470.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
34471maybe-TAGS-target-libsanitizer:
34472@if target-libsanitizer
34473maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 34474
1b6c0831
L
34475TAGS-target-libsanitizer: \
34476 configure-target-libsanitizer
0aed8855 34477 @: $(MAKE); $(unstage)
22121df0 34478 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
34479 r=`${PWD_COMMAND}`; export r; \
34480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34481 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34482 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34483 for flag in $(EXTRA_TARGET_FLAGS); do \
34484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34485 done; \
1b6c0831 34486 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34489 "RANLIB=$${RANLIB}" \
0c24b341 34490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34491 TAGS) \
e2b9e2dc
NN
34492 || exit 1
34493
1b6c0831 34494@endif target-libsanitizer
3866be5d 34495
1b6c0831
L
34496.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
34497maybe-install-info-target-libsanitizer:
34498@if target-libsanitizer
34499maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 34500
1b6c0831
L
34501install-info-target-libsanitizer: \
34502 configure-target-libsanitizer \
34503 info-target-libsanitizer
0aed8855 34504 @: $(MAKE); $(unstage)
22121df0 34505 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34506 r=`${PWD_COMMAND}`; export r; \
b40e3958 34507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34508 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34509 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34510 for flag in $(EXTRA_TARGET_FLAGS); do \
34511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34512 done; \
1b6c0831 34513 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34516 "RANLIB=$${RANLIB}" \
0c24b341 34517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34518 install-info) \
4fa63067 34519 || exit 1
3866be5d 34520
1b6c0831 34521@endif target-libsanitizer
3866be5d 34522
1b6c0831
L
34523.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
34524maybe-install-pdf-target-libsanitizer:
34525@if target-libsanitizer
34526maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 34527
1b6c0831
L
34528install-pdf-target-libsanitizer: \
34529 configure-target-libsanitizer \
34530 pdf-target-libsanitizer
a3ca38d2 34531 @: $(MAKE); $(unstage)
22121df0 34532 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
a3ca38d2
DD
34533 r=`${PWD_COMMAND}`; export r; \
34534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34535 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34536 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer"; \
a3ca38d2
DD
34537 for flag in $(EXTRA_TARGET_FLAGS); do \
34538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34539 done; \
1b6c0831 34540 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
34541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34543 "RANLIB=$${RANLIB}" \
0c24b341 34544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
34545 install-pdf) \
34546 || exit 1
34547
1b6c0831 34548@endif target-libsanitizer
a3ca38d2 34549
1b6c0831
L
34550.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
34551maybe-install-html-target-libsanitizer:
34552@if target-libsanitizer
34553maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 34554
1b6c0831
L
34555install-html-target-libsanitizer: \
34556 configure-target-libsanitizer \
34557 html-target-libsanitizer
108a6f8e 34558 @: $(MAKE); $(unstage)
22121df0 34559 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
108a6f8e
CD
34560 r=`${PWD_COMMAND}`; export r; \
34561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34562 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34563 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer"; \
108a6f8e
CD
34564 for flag in $(EXTRA_TARGET_FLAGS); do \
34565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34566 done; \
1b6c0831 34567 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
34568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34570 "RANLIB=$${RANLIB}" \
0c24b341 34571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
34572 install-html) \
34573 || exit 1
34574
1b6c0831 34575@endif target-libsanitizer
108a6f8e 34576
1b6c0831
L
34577.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
34578maybe-installcheck-target-libsanitizer:
34579@if target-libsanitizer
34580maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 34581
1b6c0831
L
34582installcheck-target-libsanitizer: \
34583 configure-target-libsanitizer
0aed8855 34584 @: $(MAKE); $(unstage)
22121df0 34585 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34586 r=`${PWD_COMMAND}`; export r; \
b40e3958 34587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34588 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34589 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34590 for flag in $(EXTRA_TARGET_FLAGS); do \
34591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34592 done; \
1b6c0831 34593 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34596 "RANLIB=$${RANLIB}" \
0c24b341 34597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34598 installcheck) \
4fa63067 34599 || exit 1
3866be5d 34600
1b6c0831 34601@endif target-libsanitizer
3866be5d 34602
1b6c0831
L
34603.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
34604maybe-mostlyclean-target-libsanitizer:
34605@if target-libsanitizer
34606maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 34607
1b6c0831 34608mostlyclean-target-libsanitizer:
0aed8855 34609 @: $(MAKE); $(unstage)
22121df0 34610 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
34611 r=`${PWD_COMMAND}`; export r; \
34612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34613 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34614 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34615 for flag in $(EXTRA_TARGET_FLAGS); do \
34616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34617 done; \
1b6c0831 34618 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34621 "RANLIB=$${RANLIB}" \
0c24b341 34622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34623 mostlyclean) \
e2b9e2dc
NN
34624 || exit 1
34625
1b6c0831 34626@endif target-libsanitizer
4fa63067 34627
1b6c0831
L
34628.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
34629maybe-clean-target-libsanitizer:
34630@if target-libsanitizer
34631maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 34632
1b6c0831 34633clean-target-libsanitizer:
0aed8855 34634 @: $(MAKE); $(unstage)
22121df0 34635 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34636 r=`${PWD_COMMAND}`; export r; \
b40e3958 34637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34638 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34639 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34640 for flag in $(EXTRA_TARGET_FLAGS); do \
34641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34642 done; \
1b6c0831 34643 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34646 "RANLIB=$${RANLIB}" \
0c24b341 34647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34648 clean) \
4fa63067 34649 || exit 1
3866be5d 34650
1b6c0831 34651@endif target-libsanitizer
3866be5d 34652
1b6c0831
L
34653.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
34654maybe-distclean-target-libsanitizer:
34655@if target-libsanitizer
34656maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 34657
1b6c0831 34658distclean-target-libsanitizer:
0aed8855 34659 @: $(MAKE); $(unstage)
22121df0 34660 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34661 r=`${PWD_COMMAND}`; export r; \
b40e3958 34662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34663 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34664 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34665 for flag in $(EXTRA_TARGET_FLAGS); do \
34666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34667 done; \
1b6c0831 34668 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34671 "RANLIB=$${RANLIB}" \
0c24b341 34672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34673 distclean) \
4fa63067 34674 || exit 1
3866be5d 34675
1b6c0831 34676@endif target-libsanitizer
3866be5d 34677
1b6c0831
L
34678.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
34679maybe-maintainer-clean-target-libsanitizer:
34680@if target-libsanitizer
34681maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 34682
1b6c0831 34683maintainer-clean-target-libsanitizer:
0aed8855 34684 @: $(MAKE); $(unstage)
22121df0 34685 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 34686 r=`${PWD_COMMAND}`; export r; \
b40e3958 34687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34688 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34689 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
34690 for flag in $(EXTRA_TARGET_FLAGS); do \
34691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34692 done; \
1b6c0831 34693 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
34694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34696 "RANLIB=$${RANLIB}" \
0c24b341 34697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 34698 maintainer-clean) \
4fa63067 34699 || exit 1
3866be5d 34700
1b6c0831 34701@endif target-libsanitizer
3866be5d 34702
4fa63067 34703
4fa63067 34704
a7254363
PB
34705
34706
1b6c0831
L
34707.PHONY: configure-target-libmpx maybe-configure-target-libmpx
34708maybe-configure-target-libmpx:
5286fdef 34709@if gcc-bootstrap
1b6c0831 34710configure-target-libmpx: stage_current
5286fdef 34711@endif gcc-bootstrap
1b6c0831
L
34712@if target-libmpx
34713maybe-configure-target-libmpx: configure-target-libmpx
34714configure-target-libmpx:
5286fdef
L
34715 @r=`${PWD_COMMAND}`; export r; \
34716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 34717 echo "Checking multilib configuration for libmpx..."; \
22121df0
L
34718 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
34719 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34720 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34721 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34722 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 34723 else \
1b6c0831
L
34724 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34725 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
34726 fi; \
34727 else \
1b6c0831 34728 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 34729 fi; \
1b6c0831 34730 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
22121df0 34731 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831
L
34732 $(NORMAL_TARGET_EXPORTS) \
34733 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
34734 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
34735 case $(srcdir) in \
34736 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34737 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
34738 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34739 esac; \
1b6c0831 34740 module_srcdir=libmpx; \
5286fdef 34741 rm -f no-such-file || : ; \
1b6c0831
L
34742 CONFIG_SITE=no-such-file $(SHELL) \
34743 $$s/$$module_srcdir/configure \
34744 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 34745 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34746 --target=${target_alias} \
5286fdef 34747 || exit 1
1b6c0831 34748@endif target-libmpx
5286fdef
L
34749
34750
34751
1b6c0831
L
34752.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
34753maybe-configure-stage1-target-libmpx:
34754@if target-libmpx-bootstrap
34755maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
34756configure-stage1-target-libmpx:
5eb08693 34757 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 34758 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34759 @r=`${PWD_COMMAND}`; export r; \
34760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34761 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831 34762 echo "Checking multilib configuration for libmpx..."; \
22121df0 34763 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34764 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34765 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34766 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34767 else \
1b6c0831
L
34768 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34769 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34770 fi; \
34771 else \
1b6c0831 34772 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34773 fi; \
1b6c0831
L
34774 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34775 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34776 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34777 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34778 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34779 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx; \
34780 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34781 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34782 case $(srcdir) in \
34783 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34784 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34785 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34786 esac; \
1b6c0831
L
34787 module_srcdir=libmpx; \
34788 $(SHELL) $$s/$$module_srcdir/configure \
34789 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34790 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
34791 --target=${target_alias} \
34792 \
5eb08693 34793 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 34794@endif target-libmpx-bootstrap
5eb08693 34795
1b6c0831
L
34796.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
34797maybe-configure-stage2-target-libmpx:
34798@if target-libmpx-bootstrap
34799maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
34800configure-stage2-target-libmpx:
5eb08693 34801 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 34802 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34803 @r=`${PWD_COMMAND}`; export r; \
34804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34805 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 34806 echo "Checking multilib configuration for libmpx..."; \
22121df0 34807 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34808 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34809 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34810 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34811 else \
1b6c0831
L
34812 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34813 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34814 fi; \
34815 else \
1b6c0831 34816 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34817 fi; \
1b6c0831
L
34818 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34819 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34820 \
34821 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34822 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34823 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34824 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx; \
34825 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34826 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34827 case $(srcdir) in \
34828 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34829 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34830 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34831 esac; \
1b6c0831
L
34832 module_srcdir=libmpx; \
34833 $(SHELL) $$s/$$module_srcdir/configure \
34834 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34835 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34836 --target=${target_alias} \
22121df0 34837 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34838 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 34839@endif target-libmpx-bootstrap
5eb08693 34840
1b6c0831
L
34841.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
34842maybe-configure-stage3-target-libmpx:
34843@if target-libmpx-bootstrap
34844maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
34845configure-stage3-target-libmpx:
5eb08693 34846 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 34847 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34848 @r=`${PWD_COMMAND}`; export r; \
34849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34850 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 34851 echo "Checking multilib configuration for libmpx..."; \
22121df0 34852 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34853 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34854 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34855 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34856 else \
1b6c0831
L
34857 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34858 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34859 fi; \
34860 else \
1b6c0831 34861 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34862 fi; \
1b6c0831
L
34863 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34864 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34865 \
34866 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34867 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34868 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34869 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx; \
34870 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34871 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34872 case $(srcdir) in \
34873 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34874 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34875 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34876 esac; \
1b6c0831
L
34877 module_srcdir=libmpx; \
34878 $(SHELL) $$s/$$module_srcdir/configure \
34879 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34880 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34881 --target=${target_alias} \
22121df0 34882 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34883 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 34884@endif target-libmpx-bootstrap
5eb08693 34885
1b6c0831
L
34886.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
34887maybe-configure-stage4-target-libmpx:
34888@if target-libmpx-bootstrap
34889maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
34890configure-stage4-target-libmpx:
5eb08693 34891 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 34892 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34893 @r=`${PWD_COMMAND}`; export r; \
34894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34895 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 34896 echo "Checking multilib configuration for libmpx..."; \
22121df0 34897 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34898 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34899 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34900 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34901 else \
1b6c0831
L
34902 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34903 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34904 fi; \
34905 else \
1b6c0831 34906 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34907 fi; \
1b6c0831
L
34908 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34909 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34910 \
34911 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34912 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34913 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34914 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx; \
34915 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34916 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34917 case $(srcdir) in \
34918 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34919 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34920 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34921 esac; \
1b6c0831
L
34922 module_srcdir=libmpx; \
34923 $(SHELL) $$s/$$module_srcdir/configure \
34924 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34925 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34926 --target=${target_alias} \
22121df0 34927 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34928 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 34929@endif target-libmpx-bootstrap
5eb08693 34930
1b6c0831
L
34931.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
34932maybe-configure-stageprofile-target-libmpx:
34933@if target-libmpx-bootstrap
34934maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
34935configure-stageprofile-target-libmpx:
5eb08693 34936 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 34937 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34938 @r=`${PWD_COMMAND}`; export r; \
34939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34940 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 34941 echo "Checking multilib configuration for libmpx..."; \
22121df0 34942 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34943 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34944 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34945 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34946 else \
1b6c0831
L
34947 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34948 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34949 fi; \
34950 else \
1b6c0831 34951 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34952 fi; \
1b6c0831
L
34953 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34954 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
34955 \
34956 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34957 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34958 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34959 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx; \
34960 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 34961 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
34962 case $(srcdir) in \
34963 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 34964 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
34965 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34966 esac; \
1b6c0831
L
34967 module_srcdir=libmpx; \
34968 $(SHELL) $$s/$$module_srcdir/configure \
34969 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 34970 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 34971 --target=${target_alias} \
22121df0 34972 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 34973 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 34974@endif target-libmpx-bootstrap
5eb08693 34975
1b6c0831
L
34976.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
34977maybe-configure-stagefeedback-target-libmpx:
34978@if target-libmpx-bootstrap
34979maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
34980configure-stagefeedback-target-libmpx:
5eb08693 34981 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 34982 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
34983 @r=`${PWD_COMMAND}`; export r; \
34984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34985 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 34986 echo "Checking multilib configuration for libmpx..."; \
22121df0 34987 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
34988 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34989 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
34990 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 34991 else \
1b6c0831
L
34992 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
34993 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
34994 fi; \
34995 else \
1b6c0831 34996 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 34997 fi; \
1b6c0831
L
34998 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
34999 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
35000 \
35001 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35002 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35003 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35004 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx; \
35005 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 35006 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
35007 case $(srcdir) in \
35008 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 35009 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
35010 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35011 esac; \
1b6c0831
L
35012 module_srcdir=libmpx; \
35013 $(SHELL) $$s/$$module_srcdir/configure \
35014 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 35015 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35016 --target=${target_alias} \
22121df0 35017 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 35018 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 35019@endif target-libmpx-bootstrap
5eb08693
L
35020
35021
35022
5286fdef
L
35023
35024
1b6c0831
L
35025.PHONY: all-target-libmpx maybe-all-target-libmpx
35026maybe-all-target-libmpx:
5286fdef 35027@if gcc-bootstrap
1b6c0831 35028all-target-libmpx: stage_current
5286fdef 35029@endif gcc-bootstrap
1b6c0831
L
35030@if target-libmpx
35031TARGET-target-libmpx=all
35032maybe-all-target-libmpx: all-target-libmpx
35033all-target-libmpx: configure-target-libmpx
5286fdef
L
35034 @r=`${PWD_COMMAND}`; export r; \
35035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35036 $(NORMAL_TARGET_EXPORTS) \
35037 (cd $(TARGET_SUBDIR)/libmpx && \
35038 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
35039 $(TARGET-target-libmpx))
35040@endif target-libmpx
5286fdef
L
35041
35042
35043
1b6c0831
L
35044.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
35045.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
35046maybe-all-stage1-target-libmpx:
35047maybe-clean-stage1-target-libmpx:
35048@if target-libmpx-bootstrap
35049maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
35050all-stage1: all-stage1-target-libmpx
35051TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
35052all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
35053 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35054 @r=`${PWD_COMMAND}`; export r; \
35055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35056 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
35057 $(NORMAL_TARGET_EXPORTS) \
35058 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35059 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35060 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35061 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35062 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35063 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35064 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35065 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35066 $(EXTRA_TARGET_FLAGS) \
5eb08693
L
35067 \
35068 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 35069 $(TARGET-stage1-target-libmpx)
5eb08693 35070
1b6c0831
L
35071maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
35072clean-stage1: clean-stage1-target-libmpx
35073clean-stage1-target-libmpx:
5eb08693 35074 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 35075 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35076 else \
1b6c0831 35077 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
35078 $(MAKE) stage1-start; \
35079 fi; \
1b6c0831
L
35080 cd $(TARGET_SUBDIR)/libmpx && \
35081 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 35082 clean
1b6c0831
L
35083@endif target-libmpx-bootstrap
35084
35085
35086.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
35087.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
35088maybe-all-stage2-target-libmpx:
35089maybe-clean-stage2-target-libmpx:
35090@if target-libmpx-bootstrap
35091maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
35092all-stage2: all-stage2-target-libmpx
35093TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
35094all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
35095 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35096 @r=`${PWD_COMMAND}`; export r; \
35097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35098 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 35099 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35100 \
1b6c0831 35101 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35102 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35103 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35104 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35105 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35106 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35107 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35108 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35109 $(EXTRA_TARGET_FLAGS) \
5eb08693 35110 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 35111 $(TARGET-stage2-target-libmpx)
5eb08693 35112
1b6c0831
L
35113maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
35114clean-stage2: clean-stage2-target-libmpx
35115clean-stage2-target-libmpx:
5eb08693 35116 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 35117 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35118 else \
1b6c0831 35119 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
35120 $(MAKE) stage2-start; \
35121 fi; \
1b6c0831
L
35122 cd $(TARGET_SUBDIR)/libmpx && \
35123 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35124@endif target-libmpx-bootstrap
35125
35126
35127.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
35128.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
35129maybe-all-stage3-target-libmpx:
35130maybe-clean-stage3-target-libmpx:
35131@if target-libmpx-bootstrap
35132maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
35133all-stage3: all-stage3-target-libmpx
35134TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
35135all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
35136 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35137 @r=`${PWD_COMMAND}`; export r; \
35138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35139 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 35140 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35141 \
1b6c0831 35142 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35143 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35144 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35145 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35146 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35147 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35148 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35149 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35150 $(EXTRA_TARGET_FLAGS) \
5eb08693 35151 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 35152 $(TARGET-stage3-target-libmpx)
5eb08693 35153
1b6c0831
L
35154maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
35155clean-stage3: clean-stage3-target-libmpx
35156clean-stage3-target-libmpx:
5eb08693 35157 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 35158 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35159 else \
1b6c0831 35160 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
35161 $(MAKE) stage3-start; \
35162 fi; \
1b6c0831
L
35163 cd $(TARGET_SUBDIR)/libmpx && \
35164 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35165@endif target-libmpx-bootstrap
35166
35167
35168.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
35169.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
35170maybe-all-stage4-target-libmpx:
35171maybe-clean-stage4-target-libmpx:
35172@if target-libmpx-bootstrap
35173maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
35174all-stage4: all-stage4-target-libmpx
35175TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
35176all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
35177 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35178 @r=`${PWD_COMMAND}`; export r; \
35179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35180 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 35181 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35182 \
1b6c0831 35183 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35184 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35185 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35186 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35187 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35188 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35189 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35190 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35191 $(EXTRA_TARGET_FLAGS) \
5eb08693 35192 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 35193 $(TARGET-stage4-target-libmpx)
5eb08693 35194
1b6c0831
L
35195maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
35196clean-stage4: clean-stage4-target-libmpx
35197clean-stage4-target-libmpx:
5eb08693 35198 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 35199 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35200 else \
1b6c0831 35201 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
35202 $(MAKE) stage4-start; \
35203 fi; \
1b6c0831
L
35204 cd $(TARGET_SUBDIR)/libmpx && \
35205 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35206@endif target-libmpx-bootstrap
35207
35208
35209.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
35210.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
35211maybe-all-stageprofile-target-libmpx:
35212maybe-clean-stageprofile-target-libmpx:
35213@if target-libmpx-bootstrap
35214maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
35215all-stageprofile: all-stageprofile-target-libmpx
35216TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
35217all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
35218 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35219 @r=`${PWD_COMMAND}`; export r; \
35220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35221 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 35222 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35223 \
1b6c0831 35224 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35225 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35226 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35227 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35228 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35229 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35230 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35231 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35232 $(EXTRA_TARGET_FLAGS) \
5eb08693 35233 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 35234 $(TARGET-stageprofile-target-libmpx)
5eb08693 35235
1b6c0831
L
35236maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
35237clean-stageprofile: clean-stageprofile-target-libmpx
35238clean-stageprofile-target-libmpx:
5eb08693 35239 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 35240 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35241 else \
1b6c0831 35242 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
35243 $(MAKE) stageprofile-start; \
35244 fi; \
1b6c0831
L
35245 cd $(TARGET_SUBDIR)/libmpx && \
35246 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35247@endif target-libmpx-bootstrap
35248
35249
35250.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
35251.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
35252maybe-all-stagefeedback-target-libmpx:
35253maybe-clean-stagefeedback-target-libmpx:
35254@if target-libmpx-bootstrap
35255maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
35256all-stagefeedback: all-stagefeedback-target-libmpx
35257TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
35258all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
35259 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35260 @r=`${PWD_COMMAND}`; export r; \
35261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35262 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 35263 $(NORMAL_TARGET_EXPORTS) \
5eb08693 35264 \
1b6c0831 35265 cd $(TARGET_SUBDIR)/libmpx && \
5eb08693
L
35266 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35267 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35268 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35269 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35270 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35271 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35272 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 35273 $(EXTRA_TARGET_FLAGS) \
5eb08693 35274 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 35275 $(TARGET-stagefeedback-target-libmpx)
5eb08693 35276
1b6c0831
L
35277maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
35278clean-stagefeedback: clean-stagefeedback-target-libmpx
35279clean-stagefeedback-target-libmpx:
5eb08693 35280 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 35281 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 35282 else \
1b6c0831 35283 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
35284 $(MAKE) stagefeedback-start; \
35285 fi; \
1b6c0831
L
35286 cd $(TARGET_SUBDIR)/libmpx && \
35287 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
35288@endif target-libmpx-bootstrap
5eb08693
L
35289
35290
35291
35292
5286fdef
L
35293
35294
1b6c0831
L
35295.PHONY: check-target-libmpx maybe-check-target-libmpx
35296maybe-check-target-libmpx:
35297@if target-libmpx
35298maybe-check-target-libmpx: check-target-libmpx
5286fdef 35299
1b6c0831 35300check-target-libmpx:
5286fdef
L
35301 @: $(MAKE); $(unstage)
35302 @r=`${PWD_COMMAND}`; export r; \
35303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35304 $(NORMAL_TARGET_EXPORTS) \
35305 (cd $(TARGET_SUBDIR)/libmpx && \
35306 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 35307
1b6c0831 35308@endif target-libmpx
5286fdef 35309
1b6c0831
L
35310.PHONY: install-target-libmpx maybe-install-target-libmpx
35311maybe-install-target-libmpx:
35312@if target-libmpx
35313maybe-install-target-libmpx: install-target-libmpx
5286fdef 35314
1b6c0831 35315install-target-libmpx: installdirs
5286fdef
L
35316 @: $(MAKE); $(unstage)
35317 @r=`${PWD_COMMAND}`; export r; \
35318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35319 $(NORMAL_TARGET_EXPORTS) \
35320 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35321 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
35322
1b6c0831 35323@endif target-libmpx
5286fdef 35324
1b6c0831
L
35325.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
35326maybe-install-strip-target-libmpx:
35327@if target-libmpx
35328maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 35329
1b6c0831 35330install-strip-target-libmpx: installdirs
5286fdef
L
35331 @: $(MAKE); $(unstage)
35332 @r=`${PWD_COMMAND}`; export r; \
35333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
35334 $(NORMAL_TARGET_EXPORTS) \
35335 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35336 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35337
1b6c0831 35338@endif target-libmpx
5286fdef
L
35339
35340# Other targets (info, dvi, pdf, etc.)
35341
1b6c0831
L
35342.PHONY: maybe-info-target-libmpx info-target-libmpx
35343maybe-info-target-libmpx:
35344@if target-libmpx
35345maybe-info-target-libmpx: info-target-libmpx
5286fdef 35346
1b6c0831
L
35347info-target-libmpx: \
35348 configure-target-libmpx
5286fdef 35349 @: $(MAKE); $(unstage)
22121df0 35350 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35351 r=`${PWD_COMMAND}`; export r; \
35352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35353 $(NORMAL_TARGET_EXPORTS) \
22121df0 35354 echo "Doing info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35355 for flag in $(EXTRA_TARGET_FLAGS); do \
35356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35357 done; \
1b6c0831 35358 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35361 "RANLIB=$${RANLIB}" \
35362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35363 info) \
35364 || exit 1
35365
1b6c0831 35366@endif target-libmpx
5286fdef 35367
1b6c0831
L
35368.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
35369maybe-dvi-target-libmpx:
35370@if target-libmpx
35371maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 35372
1b6c0831
L
35373dvi-target-libmpx: \
35374 configure-target-libmpx
5286fdef 35375 @: $(MAKE); $(unstage)
22121df0 35376 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35377 r=`${PWD_COMMAND}`; export r; \
35378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35379 $(NORMAL_TARGET_EXPORTS) \
22121df0 35380 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35381 for flag in $(EXTRA_TARGET_FLAGS); do \
35382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35383 done; \
1b6c0831 35384 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35387 "RANLIB=$${RANLIB}" \
35388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35389 dvi) \
35390 || exit 1
35391
1b6c0831 35392@endif target-libmpx
5286fdef 35393
1b6c0831
L
35394.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
35395maybe-pdf-target-libmpx:
35396@if target-libmpx
35397maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 35398
1b6c0831
L
35399pdf-target-libmpx: \
35400 configure-target-libmpx
5286fdef 35401 @: $(MAKE); $(unstage)
22121df0 35402 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35403 r=`${PWD_COMMAND}`; export r; \
35404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35405 $(NORMAL_TARGET_EXPORTS) \
22121df0 35406 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35407 for flag in $(EXTRA_TARGET_FLAGS); do \
35408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35409 done; \
1b6c0831 35410 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35413 "RANLIB=$${RANLIB}" \
35414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35415 pdf) \
35416 || exit 1
35417
1b6c0831 35418@endif target-libmpx
5286fdef 35419
1b6c0831
L
35420.PHONY: maybe-html-target-libmpx html-target-libmpx
35421maybe-html-target-libmpx:
35422@if target-libmpx
35423maybe-html-target-libmpx: html-target-libmpx
5286fdef 35424
1b6c0831
L
35425html-target-libmpx: \
35426 configure-target-libmpx
5286fdef 35427 @: $(MAKE); $(unstage)
22121df0 35428 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35429 r=`${PWD_COMMAND}`; export r; \
35430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35431 $(NORMAL_TARGET_EXPORTS) \
22121df0 35432 echo "Doing html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35433 for flag in $(EXTRA_TARGET_FLAGS); do \
35434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35435 done; \
1b6c0831 35436 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35439 "RANLIB=$${RANLIB}" \
35440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35441 html) \
35442 || exit 1
35443
1b6c0831 35444@endif target-libmpx
5286fdef 35445
1b6c0831
L
35446.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
35447maybe-TAGS-target-libmpx:
35448@if target-libmpx
35449maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 35450
1b6c0831
L
35451TAGS-target-libmpx: \
35452 configure-target-libmpx
5286fdef 35453 @: $(MAKE); $(unstage)
22121df0 35454 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35455 r=`${PWD_COMMAND}`; export r; \
35456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35457 $(NORMAL_TARGET_EXPORTS) \
22121df0 35458 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35459 for flag in $(EXTRA_TARGET_FLAGS); do \
35460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35461 done; \
1b6c0831 35462 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35465 "RANLIB=$${RANLIB}" \
35466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35467 TAGS) \
35468 || exit 1
35469
1b6c0831 35470@endif target-libmpx
5286fdef 35471
1b6c0831
L
35472.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
35473maybe-install-info-target-libmpx:
35474@if target-libmpx
35475maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 35476
1b6c0831
L
35477install-info-target-libmpx: \
35478 configure-target-libmpx \
35479 info-target-libmpx
5286fdef 35480 @: $(MAKE); $(unstage)
22121df0 35481 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35482 r=`${PWD_COMMAND}`; export r; \
35483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35484 $(NORMAL_TARGET_EXPORTS) \
22121df0 35485 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35486 for flag in $(EXTRA_TARGET_FLAGS); do \
35487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35488 done; \
1b6c0831 35489 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35492 "RANLIB=$${RANLIB}" \
35493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35494 install-info) \
35495 || exit 1
35496
1b6c0831 35497@endif target-libmpx
5286fdef 35498
1b6c0831
L
35499.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
35500maybe-install-pdf-target-libmpx:
35501@if target-libmpx
35502maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 35503
1b6c0831
L
35504install-pdf-target-libmpx: \
35505 configure-target-libmpx \
35506 pdf-target-libmpx
5286fdef 35507 @: $(MAKE); $(unstage)
22121df0 35508 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35509 r=`${PWD_COMMAND}`; export r; \
35510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35511 $(NORMAL_TARGET_EXPORTS) \
22121df0 35512 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35513 for flag in $(EXTRA_TARGET_FLAGS); do \
35514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35515 done; \
1b6c0831 35516 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35519 "RANLIB=$${RANLIB}" \
35520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35521 install-pdf) \
35522 || exit 1
35523
1b6c0831 35524@endif target-libmpx
5286fdef 35525
1b6c0831
L
35526.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
35527maybe-install-html-target-libmpx:
35528@if target-libmpx
35529maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 35530
1b6c0831
L
35531install-html-target-libmpx: \
35532 configure-target-libmpx \
35533 html-target-libmpx
5286fdef 35534 @: $(MAKE); $(unstage)
22121df0 35535 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35536 r=`${PWD_COMMAND}`; export r; \
35537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35538 $(NORMAL_TARGET_EXPORTS) \
22121df0 35539 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35540 for flag in $(EXTRA_TARGET_FLAGS); do \
35541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35542 done; \
1b6c0831 35543 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35546 "RANLIB=$${RANLIB}" \
35547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35548 install-html) \
35549 || exit 1
35550
1b6c0831 35551@endif target-libmpx
5286fdef 35552
1b6c0831
L
35553.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
35554maybe-installcheck-target-libmpx:
35555@if target-libmpx
35556maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 35557
1b6c0831
L
35558installcheck-target-libmpx: \
35559 configure-target-libmpx
5286fdef 35560 @: $(MAKE); $(unstage)
22121df0 35561 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35562 r=`${PWD_COMMAND}`; export r; \
35563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35564 $(NORMAL_TARGET_EXPORTS) \
22121df0 35565 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35566 for flag in $(EXTRA_TARGET_FLAGS); do \
35567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35568 done; \
1b6c0831 35569 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35572 "RANLIB=$${RANLIB}" \
35573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35574 installcheck) \
35575 || exit 1
35576
1b6c0831 35577@endif target-libmpx
5286fdef 35578
1b6c0831
L
35579.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
35580maybe-mostlyclean-target-libmpx:
35581@if target-libmpx
35582maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 35583
1b6c0831 35584mostlyclean-target-libmpx:
5286fdef 35585 @: $(MAKE); $(unstage)
22121df0 35586 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35587 r=`${PWD_COMMAND}`; export r; \
35588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35589 $(NORMAL_TARGET_EXPORTS) \
22121df0 35590 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35591 for flag in $(EXTRA_TARGET_FLAGS); do \
35592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35593 done; \
1b6c0831 35594 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35597 "RANLIB=$${RANLIB}" \
35598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35599 mostlyclean) \
35600 || exit 1
35601
1b6c0831 35602@endif target-libmpx
5286fdef 35603
1b6c0831
L
35604.PHONY: maybe-clean-target-libmpx clean-target-libmpx
35605maybe-clean-target-libmpx:
35606@if target-libmpx
35607maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 35608
1b6c0831 35609clean-target-libmpx:
5286fdef 35610 @: $(MAKE); $(unstage)
22121df0 35611 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35612 r=`${PWD_COMMAND}`; export r; \
35613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35614 $(NORMAL_TARGET_EXPORTS) \
22121df0 35615 echo "Doing clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35616 for flag in $(EXTRA_TARGET_FLAGS); do \
35617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35618 done; \
1b6c0831 35619 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35622 "RANLIB=$${RANLIB}" \
35623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35624 clean) \
35625 || exit 1
35626
1b6c0831 35627@endif target-libmpx
5286fdef 35628
1b6c0831
L
35629.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
35630maybe-distclean-target-libmpx:
35631@if target-libmpx
35632maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 35633
1b6c0831 35634distclean-target-libmpx:
5286fdef 35635 @: $(MAKE); $(unstage)
22121df0 35636 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35637 r=`${PWD_COMMAND}`; export r; \
35638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35639 $(NORMAL_TARGET_EXPORTS) \
22121df0 35640 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35641 for flag in $(EXTRA_TARGET_FLAGS); do \
35642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35643 done; \
1b6c0831 35644 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35647 "RANLIB=$${RANLIB}" \
35648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35649 distclean) \
35650 || exit 1
35651
1b6c0831 35652@endif target-libmpx
5286fdef 35653
1b6c0831
L
35654.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
35655maybe-maintainer-clean-target-libmpx:
35656@if target-libmpx
35657maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 35658
1b6c0831 35659maintainer-clean-target-libmpx:
5286fdef 35660 @: $(MAKE); $(unstage)
22121df0 35661 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
35662 r=`${PWD_COMMAND}`; export r; \
35663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35664 $(NORMAL_TARGET_EXPORTS) \
22121df0 35665 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
35666 for flag in $(EXTRA_TARGET_FLAGS); do \
35667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35668 done; \
1b6c0831 35669 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
35670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35672 "RANLIB=$${RANLIB}" \
35673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35674 maintainer-clean) \
35675 || exit 1
35676
1b6c0831 35677@endif target-libmpx
5286fdef
L
35678
35679
35680
35681
35682
95e43135
JBG
35683.PHONY: configure-target-libvtv maybe-configure-target-libvtv
35684maybe-configure-target-libvtv:
35685@if gcc-bootstrap
35686configure-target-libvtv: stage_current
35687@endif gcc-bootstrap
35688@if target-libvtv
35689maybe-configure-target-libvtv: configure-target-libvtv
35690configure-target-libvtv:
35691 @r=`${PWD_COMMAND}`; export r; \
35692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35693 echo "Checking multilib configuration for libvtv..."; \
22121df0
L
35694 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
35695 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35696 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35697 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35698 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35699 else \
35700 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35701 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35702 fi; \
35703 else \
35704 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35705 fi; \
35706 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
22121df0 35707 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35708 $(RAW_CXX_TARGET_EXPORTS) \
35709 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
35710 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
35711 case $(srcdir) in \
35712 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35713 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35714 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35715 esac; \
1b6c0831 35716 module_srcdir=libvtv; \
95e43135 35717 rm -f no-such-file || : ; \
1b6c0831
L
35718 CONFIG_SITE=no-such-file $(SHELL) \
35719 $$s/$$module_srcdir/configure \
35720 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35721 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35722 --target=${target_alias} \
95e43135
JBG
35723 || exit 1
35724@endif target-libvtv
35725
35726
35727
35728.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
35729maybe-configure-stage1-target-libvtv:
35730@if target-libvtv-bootstrap
35731maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
35732configure-stage1-target-libvtv:
35733 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35734 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35735 @r=`${PWD_COMMAND}`; export r; \
35736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35737 TFLAGS="$(STAGE1_TFLAGS)"; \
35738 echo "Checking multilib configuration for libvtv..."; \
22121df0 35739 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35740 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35741 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35742 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35743 else \
35744 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35745 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35746 fi; \
35747 else \
35748 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35749 fi; \
35750 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35751 $(RAW_CXX_TARGET_EXPORTS) \
35752 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35753 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35754 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35755 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv; \
35756 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35757 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35758 case $(srcdir) in \
35759 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35760 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35761 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35762 esac; \
1b6c0831
L
35763 module_srcdir=libvtv; \
35764 $(SHELL) $$s/$$module_srcdir/configure \
35765 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35766 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35767 --target=${target_alias} \
35768 \
95e43135
JBG
35769 $(STAGE1_CONFIGURE_FLAGS)
35770@endif target-libvtv-bootstrap
35771
35772.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
35773maybe-configure-stage2-target-libvtv:
35774@if target-libvtv-bootstrap
35775maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
35776configure-stage2-target-libvtv:
35777 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35778 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35779 @r=`${PWD_COMMAND}`; export r; \
35780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35781 TFLAGS="$(STAGE2_TFLAGS)"; \
35782 echo "Checking multilib configuration for libvtv..."; \
22121df0 35783 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35784 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35785 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35786 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35787 else \
35788 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35789 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35790 fi; \
35791 else \
35792 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35793 fi; \
35794 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35795 $(RAW_CXX_TARGET_EXPORTS) \
35796 \
35797 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35798 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35799 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35800 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv; \
35801 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35802 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35803 case $(srcdir) in \
35804 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35805 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35806 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35807 esac; \
1b6c0831
L
35808 module_srcdir=libvtv; \
35809 $(SHELL) $$s/$$module_srcdir/configure \
35810 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35811 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35812 --target=${target_alias} \
22121df0 35813 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35814 $(STAGE2_CONFIGURE_FLAGS)
35815@endif target-libvtv-bootstrap
35816
35817.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
35818maybe-configure-stage3-target-libvtv:
35819@if target-libvtv-bootstrap
35820maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
35821configure-stage3-target-libvtv:
35822 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35823 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35824 @r=`${PWD_COMMAND}`; export r; \
35825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35826 TFLAGS="$(STAGE3_TFLAGS)"; \
35827 echo "Checking multilib configuration for libvtv..."; \
22121df0 35828 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35829 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35830 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35831 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35832 else \
35833 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35834 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35835 fi; \
35836 else \
35837 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35838 fi; \
35839 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35840 $(RAW_CXX_TARGET_EXPORTS) \
35841 \
35842 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35843 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35844 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35845 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv; \
35846 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35847 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35848 case $(srcdir) in \
35849 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35850 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35851 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35852 esac; \
1b6c0831
L
35853 module_srcdir=libvtv; \
35854 $(SHELL) $$s/$$module_srcdir/configure \
35855 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35856 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35857 --target=${target_alias} \
22121df0 35858 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35859 $(STAGE3_CONFIGURE_FLAGS)
35860@endif target-libvtv-bootstrap
35861
35862.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
35863maybe-configure-stage4-target-libvtv:
35864@if target-libvtv-bootstrap
35865maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
35866configure-stage4-target-libvtv:
35867 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35868 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35869 @r=`${PWD_COMMAND}`; export r; \
35870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35871 TFLAGS="$(STAGE4_TFLAGS)"; \
35872 echo "Checking multilib configuration for libvtv..."; \
22121df0 35873 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35874 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35875 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35876 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35877 else \
35878 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35879 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35880 fi; \
35881 else \
35882 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35883 fi; \
35884 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35885 $(RAW_CXX_TARGET_EXPORTS) \
35886 \
35887 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35888 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35889 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35890 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv; \
35891 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35892 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35893 case $(srcdir) in \
35894 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35895 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35896 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35897 esac; \
1b6c0831
L
35898 module_srcdir=libvtv; \
35899 $(SHELL) $$s/$$module_srcdir/configure \
35900 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35901 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35902 --target=${target_alias} \
22121df0 35903 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35904 $(STAGE4_CONFIGURE_FLAGS)
35905@endif target-libvtv-bootstrap
35906
35907.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
35908maybe-configure-stageprofile-target-libvtv:
35909@if target-libvtv-bootstrap
35910maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
35911configure-stageprofile-target-libvtv:
35912 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35913 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35914 @r=`${PWD_COMMAND}`; export r; \
35915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35916 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35917 echo "Checking multilib configuration for libvtv..."; \
22121df0 35918 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35919 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35920 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35921 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35922 else \
35923 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35924 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35925 fi; \
35926 else \
35927 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35928 fi; \
35929 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35930 $(RAW_CXX_TARGET_EXPORTS) \
35931 \
35932 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35933 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35934 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35935 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv; \
35936 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35937 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35938 case $(srcdir) in \
35939 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35940 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35941 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35942 esac; \
1b6c0831
L
35943 module_srcdir=libvtv; \
35944 $(SHELL) $$s/$$module_srcdir/configure \
35945 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35946 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35947 --target=${target_alias} \
22121df0 35948 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35949 $(STAGEprofile_CONFIGURE_FLAGS)
35950@endif target-libvtv-bootstrap
35951
35952.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
35953maybe-configure-stagefeedback-target-libvtv:
35954@if target-libvtv-bootstrap
35955maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
35956configure-stagefeedback-target-libvtv:
35957 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35958 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
35959 @r=`${PWD_COMMAND}`; export r; \
35960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35961 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35962 echo "Checking multilib configuration for libvtv..."; \
22121df0 35963 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
35964 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35965 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
35966 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
35967 else \
35968 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
35969 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35970 fi; \
35971 else \
35972 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
35973 fi; \
35974 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
35975 $(RAW_CXX_TARGET_EXPORTS) \
35976 \
35977 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35978 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35979 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35980 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv; \
35981 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
35982 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
35983 case $(srcdir) in \
35984 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35985 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
35986 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35987 esac; \
1b6c0831
L
35988 module_srcdir=libvtv; \
35989 $(SHELL) $$s/$$module_srcdir/configure \
35990 --srcdir=$${topdir}/$$module_srcdir \
95e43135 35991 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35992 --target=${target_alias} \
22121df0 35993 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
35994 $(STAGEfeedback_CONFIGURE_FLAGS)
35995@endif target-libvtv-bootstrap
35996
35997
35998
35999
36000
36001.PHONY: all-target-libvtv maybe-all-target-libvtv
36002maybe-all-target-libvtv:
36003@if gcc-bootstrap
36004all-target-libvtv: stage_current
36005@endif gcc-bootstrap
36006@if target-libvtv
36007TARGET-target-libvtv=all
36008maybe-all-target-libvtv: all-target-libvtv
36009all-target-libvtv: configure-target-libvtv
36010 @r=`${PWD_COMMAND}`; export r; \
36011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36012 $(RAW_CXX_TARGET_EXPORTS) \
36013 (cd $(TARGET_SUBDIR)/libvtv && \
36014 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36015 $(TARGET-target-libvtv))
36016@endif target-libvtv
36017
36018
36019
36020.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
36021.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
36022maybe-all-stage1-target-libvtv:
36023maybe-clean-stage1-target-libvtv:
36024@if target-libvtv-bootstrap
36025maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
36026all-stage1: all-stage1-target-libvtv
36027TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
36028all-stage1-target-libvtv: configure-stage1-target-libvtv
36029 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36030 @r=`${PWD_COMMAND}`; export r; \
36031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36032 TFLAGS="$(STAGE1_TFLAGS)"; \
36033 $(RAW_CXX_TARGET_EXPORTS) \
36034 cd $(TARGET_SUBDIR)/libvtv && \
36035 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36036 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36037 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36038 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36039 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36040 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36041 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36042 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36043 \
36044 TFLAGS="$(STAGE1_TFLAGS)" \
36045 $(TARGET-stage1-target-libvtv)
36046
36047maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
36048clean-stage1: clean-stage1-target-libvtv
36049clean-stage1-target-libvtv:
36050 @if [ $(current_stage) = stage1 ]; then \
36051 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36052 else \
36053 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
36054 $(MAKE) stage1-start; \
36055 fi; \
36056 cd $(TARGET_SUBDIR)/libvtv && \
36057 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36058 clean
36059@endif target-libvtv-bootstrap
36060
36061
36062.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
36063.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
36064maybe-all-stage2-target-libvtv:
36065maybe-clean-stage2-target-libvtv:
36066@if target-libvtv-bootstrap
36067maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
36068all-stage2: all-stage2-target-libvtv
36069TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
36070all-stage2-target-libvtv: configure-stage2-target-libvtv
36071 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36072 @r=`${PWD_COMMAND}`; export r; \
36073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36074 TFLAGS="$(STAGE2_TFLAGS)"; \
36075 $(RAW_CXX_TARGET_EXPORTS) \
36076 \
36077 cd $(TARGET_SUBDIR)/libvtv && \
36078 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36079 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36080 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36081 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36082 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36083 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36084 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36085 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36086 TFLAGS="$(STAGE2_TFLAGS)" \
36087 $(TARGET-stage2-target-libvtv)
36088
36089maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
36090clean-stage2: clean-stage2-target-libvtv
36091clean-stage2-target-libvtv:
36092 @if [ $(current_stage) = stage2 ]; then \
36093 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36094 else \
36095 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
36096 $(MAKE) stage2-start; \
36097 fi; \
36098 cd $(TARGET_SUBDIR)/libvtv && \
36099 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36100@endif target-libvtv-bootstrap
36101
36102
36103.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
36104.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
36105maybe-all-stage3-target-libvtv:
36106maybe-clean-stage3-target-libvtv:
36107@if target-libvtv-bootstrap
36108maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
36109all-stage3: all-stage3-target-libvtv
36110TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
36111all-stage3-target-libvtv: configure-stage3-target-libvtv
36112 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36113 @r=`${PWD_COMMAND}`; export r; \
36114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36115 TFLAGS="$(STAGE3_TFLAGS)"; \
36116 $(RAW_CXX_TARGET_EXPORTS) \
36117 \
36118 cd $(TARGET_SUBDIR)/libvtv && \
36119 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36120 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36121 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36122 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36123 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36124 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36125 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36126 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36127 TFLAGS="$(STAGE3_TFLAGS)" \
36128 $(TARGET-stage3-target-libvtv)
36129
36130maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
36131clean-stage3: clean-stage3-target-libvtv
36132clean-stage3-target-libvtv:
36133 @if [ $(current_stage) = stage3 ]; then \
36134 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36135 else \
36136 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
36137 $(MAKE) stage3-start; \
36138 fi; \
36139 cd $(TARGET_SUBDIR)/libvtv && \
36140 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36141@endif target-libvtv-bootstrap
36142
36143
36144.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
36145.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
36146maybe-all-stage4-target-libvtv:
36147maybe-clean-stage4-target-libvtv:
36148@if target-libvtv-bootstrap
36149maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
36150all-stage4: all-stage4-target-libvtv
36151TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
36152all-stage4-target-libvtv: configure-stage4-target-libvtv
36153 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36154 @r=`${PWD_COMMAND}`; export r; \
36155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36156 TFLAGS="$(STAGE4_TFLAGS)"; \
36157 $(RAW_CXX_TARGET_EXPORTS) \
36158 \
36159 cd $(TARGET_SUBDIR)/libvtv && \
36160 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36161 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36162 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36163 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36164 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36165 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36166 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36167 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36168 TFLAGS="$(STAGE4_TFLAGS)" \
36169 $(TARGET-stage4-target-libvtv)
36170
36171maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
36172clean-stage4: clean-stage4-target-libvtv
36173clean-stage4-target-libvtv:
36174 @if [ $(current_stage) = stage4 ]; then \
36175 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36176 else \
36177 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
36178 $(MAKE) stage4-start; \
36179 fi; \
36180 cd $(TARGET_SUBDIR)/libvtv && \
36181 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36182@endif target-libvtv-bootstrap
36183
36184
36185.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
36186.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
36187maybe-all-stageprofile-target-libvtv:
36188maybe-clean-stageprofile-target-libvtv:
36189@if target-libvtv-bootstrap
36190maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
36191all-stageprofile: all-stageprofile-target-libvtv
36192TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
36193all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
36194 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36195 @r=`${PWD_COMMAND}`; export r; \
36196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36197 TFLAGS="$(STAGEprofile_TFLAGS)"; \
36198 $(RAW_CXX_TARGET_EXPORTS) \
36199 \
36200 cd $(TARGET_SUBDIR)/libvtv && \
36201 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36202 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36203 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36204 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36205 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36206 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36207 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36208 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36209 TFLAGS="$(STAGEprofile_TFLAGS)" \
36210 $(TARGET-stageprofile-target-libvtv)
36211
36212maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
36213clean-stageprofile: clean-stageprofile-target-libvtv
36214clean-stageprofile-target-libvtv:
36215 @if [ $(current_stage) = stageprofile ]; then \
36216 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36217 else \
36218 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
36219 $(MAKE) stageprofile-start; \
36220 fi; \
36221 cd $(TARGET_SUBDIR)/libvtv && \
36222 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36223@endif target-libvtv-bootstrap
36224
36225
36226.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
36227.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
36228maybe-all-stagefeedback-target-libvtv:
36229maybe-clean-stagefeedback-target-libvtv:
36230@if target-libvtv-bootstrap
36231maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
36232all-stagefeedback: all-stagefeedback-target-libvtv
36233TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
36234all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
36235 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36236 @r=`${PWD_COMMAND}`; export r; \
36237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36238 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
36239 $(RAW_CXX_TARGET_EXPORTS) \
36240 \
36241 cd $(TARGET_SUBDIR)/libvtv && \
36242 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36243 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36244 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36245 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36246 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36247 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36248 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36249 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36250 TFLAGS="$(STAGEfeedback_TFLAGS)" \
36251 $(TARGET-stagefeedback-target-libvtv)
36252
36253maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
36254clean-stagefeedback: clean-stagefeedback-target-libvtv
36255clean-stagefeedback-target-libvtv:
36256 @if [ $(current_stage) = stagefeedback ]; then \
36257 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
36258 else \
36259 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
36260 $(MAKE) stagefeedback-start; \
36261 fi; \
36262 cd $(TARGET_SUBDIR)/libvtv && \
36263 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36264@endif target-libvtv-bootstrap
36265
36266
36267
36268
36269
36270
36271.PHONY: check-target-libvtv maybe-check-target-libvtv
36272maybe-check-target-libvtv:
36273@if target-libvtv
36274maybe-check-target-libvtv: check-target-libvtv
36275
36276check-target-libvtv:
36277 @: $(MAKE); $(unstage)
36278 @r=`${PWD_COMMAND}`; export r; \
36279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36280 $(RAW_CXX_TARGET_EXPORTS) \
36281 (cd $(TARGET_SUBDIR)/libvtv && \
36282 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
36283
36284@endif target-libvtv
36285
36286.PHONY: install-target-libvtv maybe-install-target-libvtv
36287maybe-install-target-libvtv:
36288@if target-libvtv
36289maybe-install-target-libvtv: install-target-libvtv
36290
36291install-target-libvtv: installdirs
36292 @: $(MAKE); $(unstage)
36293 @r=`${PWD_COMMAND}`; export r; \
36294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36295 $(RAW_CXX_TARGET_EXPORTS) \
36296 (cd $(TARGET_SUBDIR)/libvtv && \
36297 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36298
36299@endif target-libvtv
36300
36301.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
36302maybe-install-strip-target-libvtv:
36303@if target-libvtv
36304maybe-install-strip-target-libvtv: install-strip-target-libvtv
36305
36306install-strip-target-libvtv: installdirs
36307 @: $(MAKE); $(unstage)
36308 @r=`${PWD_COMMAND}`; export r; \
36309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36310 $(RAW_CXX_TARGET_EXPORTS) \
36311 (cd $(TARGET_SUBDIR)/libvtv && \
36312 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36313
36314@endif target-libvtv
36315
36316# Other targets (info, dvi, pdf, etc.)
36317
36318.PHONY: maybe-info-target-libvtv info-target-libvtv
36319maybe-info-target-libvtv:
36320@if target-libvtv
36321maybe-info-target-libvtv: info-target-libvtv
36322
36323info-target-libvtv: \
36324 configure-target-libvtv
36325 @: $(MAKE); $(unstage)
22121df0 36326 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36327 r=`${PWD_COMMAND}`; export r; \
36328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36329 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36330 echo "Doing info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36331 for flag in $(EXTRA_TARGET_FLAGS); do \
36332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36333 done; \
36334 (cd $(TARGET_SUBDIR)/libvtv && \
36335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36337 "RANLIB=$${RANLIB}" \
36338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36339 info) \
36340 || exit 1
36341
36342@endif target-libvtv
36343
36344.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
36345maybe-dvi-target-libvtv:
36346@if target-libvtv
36347maybe-dvi-target-libvtv: dvi-target-libvtv
36348
36349dvi-target-libvtv: \
36350 configure-target-libvtv
36351 @: $(MAKE); $(unstage)
22121df0 36352 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36353 r=`${PWD_COMMAND}`; export r; \
36354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36355 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36356 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36357 for flag in $(EXTRA_TARGET_FLAGS); do \
36358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36359 done; \
36360 (cd $(TARGET_SUBDIR)/libvtv && \
36361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36363 "RANLIB=$${RANLIB}" \
36364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36365 dvi) \
36366 || exit 1
36367
36368@endif target-libvtv
36369
36370.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
36371maybe-pdf-target-libvtv:
36372@if target-libvtv
36373maybe-pdf-target-libvtv: pdf-target-libvtv
36374
36375pdf-target-libvtv: \
36376 configure-target-libvtv
36377 @: $(MAKE); $(unstage)
22121df0 36378 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36379 r=`${PWD_COMMAND}`; export r; \
36380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36381 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36382 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36383 for flag in $(EXTRA_TARGET_FLAGS); do \
36384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36385 done; \
36386 (cd $(TARGET_SUBDIR)/libvtv && \
36387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36389 "RANLIB=$${RANLIB}" \
36390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36391 pdf) \
36392 || exit 1
36393
36394@endif target-libvtv
36395
36396.PHONY: maybe-html-target-libvtv html-target-libvtv
36397maybe-html-target-libvtv:
36398@if target-libvtv
36399maybe-html-target-libvtv: html-target-libvtv
36400
36401html-target-libvtv: \
36402 configure-target-libvtv
36403 @: $(MAKE); $(unstage)
22121df0 36404 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36405 r=`${PWD_COMMAND}`; export r; \
36406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36407 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36408 echo "Doing html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36409 for flag in $(EXTRA_TARGET_FLAGS); do \
36410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36411 done; \
36412 (cd $(TARGET_SUBDIR)/libvtv && \
36413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36415 "RANLIB=$${RANLIB}" \
36416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36417 html) \
36418 || exit 1
36419
36420@endif target-libvtv
36421
36422.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
36423maybe-TAGS-target-libvtv:
36424@if target-libvtv
36425maybe-TAGS-target-libvtv: TAGS-target-libvtv
36426
36427TAGS-target-libvtv: \
36428 configure-target-libvtv
36429 @: $(MAKE); $(unstage)
22121df0 36430 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36431 r=`${PWD_COMMAND}`; export r; \
36432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36433 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36434 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36435 for flag in $(EXTRA_TARGET_FLAGS); do \
36436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36437 done; \
36438 (cd $(TARGET_SUBDIR)/libvtv && \
36439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36441 "RANLIB=$${RANLIB}" \
36442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36443 TAGS) \
36444 || exit 1
36445
36446@endif target-libvtv
36447
36448.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
36449maybe-install-info-target-libvtv:
36450@if target-libvtv
36451maybe-install-info-target-libvtv: install-info-target-libvtv
36452
36453install-info-target-libvtv: \
36454 configure-target-libvtv \
36455 info-target-libvtv
36456 @: $(MAKE); $(unstage)
22121df0 36457 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36458 r=`${PWD_COMMAND}`; export r; \
36459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36460 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36461 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36462 for flag in $(EXTRA_TARGET_FLAGS); do \
36463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36464 done; \
36465 (cd $(TARGET_SUBDIR)/libvtv && \
36466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36468 "RANLIB=$${RANLIB}" \
36469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36470 install-info) \
36471 || exit 1
36472
36473@endif target-libvtv
36474
36475.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
36476maybe-install-pdf-target-libvtv:
36477@if target-libvtv
36478maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
36479
36480install-pdf-target-libvtv: \
36481 configure-target-libvtv \
36482 pdf-target-libvtv
36483 @: $(MAKE); $(unstage)
22121df0 36484 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36485 r=`${PWD_COMMAND}`; export r; \
36486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36487 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36488 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36489 for flag in $(EXTRA_TARGET_FLAGS); do \
36490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36491 done; \
36492 (cd $(TARGET_SUBDIR)/libvtv && \
36493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36495 "RANLIB=$${RANLIB}" \
36496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36497 install-pdf) \
36498 || exit 1
36499
36500@endif target-libvtv
36501
36502.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
36503maybe-install-html-target-libvtv:
36504@if target-libvtv
36505maybe-install-html-target-libvtv: install-html-target-libvtv
36506
36507install-html-target-libvtv: \
36508 configure-target-libvtv \
36509 html-target-libvtv
36510 @: $(MAKE); $(unstage)
22121df0 36511 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36512 r=`${PWD_COMMAND}`; export r; \
36513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36514 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36515 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36516 for flag in $(EXTRA_TARGET_FLAGS); do \
36517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36518 done; \
36519 (cd $(TARGET_SUBDIR)/libvtv && \
36520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36522 "RANLIB=$${RANLIB}" \
36523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36524 install-html) \
36525 || exit 1
36526
36527@endif target-libvtv
36528
36529.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
36530maybe-installcheck-target-libvtv:
36531@if target-libvtv
36532maybe-installcheck-target-libvtv: installcheck-target-libvtv
36533
36534installcheck-target-libvtv: \
36535 configure-target-libvtv
36536 @: $(MAKE); $(unstage)
22121df0 36537 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36538 r=`${PWD_COMMAND}`; export r; \
36539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36540 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36541 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36542 for flag in $(EXTRA_TARGET_FLAGS); do \
36543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36544 done; \
36545 (cd $(TARGET_SUBDIR)/libvtv && \
36546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36548 "RANLIB=$${RANLIB}" \
36549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36550 installcheck) \
36551 || exit 1
36552
36553@endif target-libvtv
36554
36555.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
36556maybe-mostlyclean-target-libvtv:
36557@if target-libvtv
36558maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
36559
36560mostlyclean-target-libvtv:
36561 @: $(MAKE); $(unstage)
22121df0 36562 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36563 r=`${PWD_COMMAND}`; export r; \
36564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36565 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36566 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36567 for flag in $(EXTRA_TARGET_FLAGS); do \
36568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36569 done; \
36570 (cd $(TARGET_SUBDIR)/libvtv && \
36571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36573 "RANLIB=$${RANLIB}" \
36574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36575 mostlyclean) \
36576 || exit 1
36577
36578@endif target-libvtv
36579
36580.PHONY: maybe-clean-target-libvtv clean-target-libvtv
36581maybe-clean-target-libvtv:
36582@if target-libvtv
36583maybe-clean-target-libvtv: clean-target-libvtv
36584
36585clean-target-libvtv:
36586 @: $(MAKE); $(unstage)
22121df0 36587 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36588 r=`${PWD_COMMAND}`; export r; \
36589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36590 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36591 echo "Doing clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36592 for flag in $(EXTRA_TARGET_FLAGS); do \
36593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36594 done; \
36595 (cd $(TARGET_SUBDIR)/libvtv && \
36596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36598 "RANLIB=$${RANLIB}" \
36599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36600 clean) \
36601 || exit 1
36602
36603@endif target-libvtv
36604
36605.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
36606maybe-distclean-target-libvtv:
36607@if target-libvtv
36608maybe-distclean-target-libvtv: distclean-target-libvtv
36609
36610distclean-target-libvtv:
36611 @: $(MAKE); $(unstage)
22121df0 36612 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36613 r=`${PWD_COMMAND}`; export r; \
36614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36615 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36616 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36617 for flag in $(EXTRA_TARGET_FLAGS); do \
36618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36619 done; \
36620 (cd $(TARGET_SUBDIR)/libvtv && \
36621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36623 "RANLIB=$${RANLIB}" \
36624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36625 distclean) \
36626 || exit 1
36627
36628@endif target-libvtv
36629
36630.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
36631maybe-maintainer-clean-target-libvtv:
36632@if target-libvtv
36633maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
36634
36635maintainer-clean-target-libvtv:
36636 @: $(MAKE); $(unstage)
22121df0 36637 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
36638 r=`${PWD_COMMAND}`; export r; \
36639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36640 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36641 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
36642 for flag in $(EXTRA_TARGET_FLAGS); do \
36643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36644 done; \
36645 (cd $(TARGET_SUBDIR)/libvtv && \
36646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36648 "RANLIB=$${RANLIB}" \
36649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36650 maintainer-clean) \
36651 || exit 1
36652
36653@endif target-libvtv
36654
36655
36656
36657
36658
e78e02e6 36659.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
36660maybe-configure-target-libcilkrts:
36661@if gcc-bootstrap
36662configure-target-libcilkrts: stage_current
36663@endif gcc-bootstrap
36664@if target-libcilkrts
36665maybe-configure-target-libcilkrts: configure-target-libcilkrts
36666configure-target-libcilkrts:
36667 @: $(MAKE); $(unstage)
36668 @r=`${PWD_COMMAND}`; export r; \
36669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36670 echo "Checking multilib configuration for libcilkrts..."; \
22121df0
L
36671 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
36672 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null; \
e78e02e6 36673 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
36674 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
36675 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
36676 else \
36677 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
36678 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
36679 fi; \
36680 else \
36681 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
36682 fi; \
36683 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
22121df0 36684 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
e78e02e6 36685 $(NORMAL_TARGET_EXPORTS) \
36686 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
36687 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
36688 case $(srcdir) in \
36689 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36690 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
36691 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36692 esac; \
1b6c0831 36693 module_srcdir=libcilkrts; \
e78e02e6 36694 rm -f no-such-file || : ; \
1b6c0831
L
36695 CONFIG_SITE=no-such-file $(SHELL) \
36696 $$s/$$module_srcdir/configure \
36697 --srcdir=$${topdir}/$$module_srcdir \
e78e02e6 36698 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36699 --target=${target_alias} \
e78e02e6 36700 || exit 1
36701@endif target-libcilkrts
36702
36703
36704
36705
36706
36707.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
36708maybe-all-target-libcilkrts:
36709@if gcc-bootstrap
36710all-target-libcilkrts: stage_current
36711@endif gcc-bootstrap
36712@if target-libcilkrts
36713TARGET-target-libcilkrts=all
36714maybe-all-target-libcilkrts: all-target-libcilkrts
36715all-target-libcilkrts: configure-target-libcilkrts
36716 @: $(MAKE); $(unstage)
36717 @r=`${PWD_COMMAND}`; export r; \
36718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36719 $(NORMAL_TARGET_EXPORTS) \
36720 (cd $(TARGET_SUBDIR)/libcilkrts && \
36721 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36722 $(TARGET-target-libcilkrts))
36723@endif target-libcilkrts
36724
36725
36726
36727
36728
36729.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
36730maybe-check-target-libcilkrts:
36731@if target-libcilkrts
36732maybe-check-target-libcilkrts: check-target-libcilkrts
36733
36734check-target-libcilkrts:
36735 @: $(MAKE); $(unstage)
36736 @r=`${PWD_COMMAND}`; export r; \
36737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36738 $(NORMAL_TARGET_EXPORTS) \
36739 (cd $(TARGET_SUBDIR)/libcilkrts && \
36740 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
36741
36742@endif target-libcilkrts
36743
36744.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
36745maybe-install-target-libcilkrts:
36746@if target-libcilkrts
36747maybe-install-target-libcilkrts: install-target-libcilkrts
36748
36749install-target-libcilkrts: installdirs
36750 @: $(MAKE); $(unstage)
36751 @r=`${PWD_COMMAND}`; export r; \
36752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36753 $(NORMAL_TARGET_EXPORTS) \
36754 (cd $(TARGET_SUBDIR)/libcilkrts && \
36755 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36756
36757@endif target-libcilkrts
36758
36759.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
36760maybe-install-strip-target-libcilkrts:
36761@if target-libcilkrts
36762maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
36763
36764install-strip-target-libcilkrts: installdirs
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)/libcilkrts && \
36770 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36771
36772@endif target-libcilkrts
36773
36774# Other targets (info, dvi, pdf, etc.)
36775
36776.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
36777maybe-info-target-libcilkrts:
36778@if target-libcilkrts
36779maybe-info-target-libcilkrts: info-target-libcilkrts
36780
36781info-target-libcilkrts: \
36782 configure-target-libcilkrts
36783 @: $(MAKE); $(unstage)
22121df0 36784 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36785 r=`${PWD_COMMAND}`; export r; \
36786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36787 $(NORMAL_TARGET_EXPORTS) \
22121df0 36788 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36789 for flag in $(EXTRA_TARGET_FLAGS); do \
36790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36791 done; \
36792 (cd $(TARGET_SUBDIR)/libcilkrts && \
36793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36795 "RANLIB=$${RANLIB}" \
36796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36797 info) \
36798 || exit 1
36799
36800@endif target-libcilkrts
36801
36802.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
36803maybe-dvi-target-libcilkrts:
36804@if target-libcilkrts
36805maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
36806
36807dvi-target-libcilkrts: \
36808 configure-target-libcilkrts
36809 @: $(MAKE); $(unstage)
22121df0 36810 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36811 r=`${PWD_COMMAND}`; export r; \
36812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36813 $(NORMAL_TARGET_EXPORTS) \
22121df0 36814 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36815 for flag in $(EXTRA_TARGET_FLAGS); do \
36816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36817 done; \
36818 (cd $(TARGET_SUBDIR)/libcilkrts && \
36819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36821 "RANLIB=$${RANLIB}" \
36822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36823 dvi) \
36824 || exit 1
36825
36826@endif target-libcilkrts
36827
36828.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
36829maybe-pdf-target-libcilkrts:
36830@if target-libcilkrts
36831maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
36832
36833pdf-target-libcilkrts: \
36834 configure-target-libcilkrts
36835 @: $(MAKE); $(unstage)
22121df0 36836 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36837 r=`${PWD_COMMAND}`; export r; \
36838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36839 $(NORMAL_TARGET_EXPORTS) \
22121df0 36840 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36841 for flag in $(EXTRA_TARGET_FLAGS); do \
36842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36843 done; \
36844 (cd $(TARGET_SUBDIR)/libcilkrts && \
36845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36847 "RANLIB=$${RANLIB}" \
36848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36849 pdf) \
36850 || exit 1
36851
36852@endif target-libcilkrts
36853
36854.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
36855maybe-html-target-libcilkrts:
36856@if target-libcilkrts
36857maybe-html-target-libcilkrts: html-target-libcilkrts
36858
36859html-target-libcilkrts: \
36860 configure-target-libcilkrts
36861 @: $(MAKE); $(unstage)
22121df0 36862 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36863 r=`${PWD_COMMAND}`; export r; \
36864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36865 $(NORMAL_TARGET_EXPORTS) \
22121df0 36866 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36867 for flag in $(EXTRA_TARGET_FLAGS); do \
36868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36869 done; \
36870 (cd $(TARGET_SUBDIR)/libcilkrts && \
36871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36873 "RANLIB=$${RANLIB}" \
36874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36875 html) \
36876 || exit 1
36877
36878@endif target-libcilkrts
36879
36880.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
36881maybe-TAGS-target-libcilkrts:
36882@if target-libcilkrts
36883maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
36884
36885TAGS-target-libcilkrts: \
36886 configure-target-libcilkrts
36887 @: $(MAKE); $(unstage)
22121df0 36888 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36889 r=`${PWD_COMMAND}`; export r; \
36890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36891 $(NORMAL_TARGET_EXPORTS) \
22121df0 36892 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36893 for flag in $(EXTRA_TARGET_FLAGS); do \
36894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36895 done; \
36896 (cd $(TARGET_SUBDIR)/libcilkrts && \
36897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36899 "RANLIB=$${RANLIB}" \
36900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36901 TAGS) \
36902 || exit 1
36903
36904@endif target-libcilkrts
36905
36906.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
36907maybe-install-info-target-libcilkrts:
36908@if target-libcilkrts
36909maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
36910
36911install-info-target-libcilkrts: \
36912 configure-target-libcilkrts \
36913 info-target-libcilkrts
36914 @: $(MAKE); $(unstage)
22121df0 36915 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36916 r=`${PWD_COMMAND}`; export r; \
36917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36918 $(NORMAL_TARGET_EXPORTS) \
22121df0 36919 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36920 for flag in $(EXTRA_TARGET_FLAGS); do \
36921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36922 done; \
36923 (cd $(TARGET_SUBDIR)/libcilkrts && \
36924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36926 "RANLIB=$${RANLIB}" \
36927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36928 install-info) \
36929 || exit 1
36930
36931@endif target-libcilkrts
36932
36933.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
36934maybe-install-pdf-target-libcilkrts:
36935@if target-libcilkrts
36936maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
36937
36938install-pdf-target-libcilkrts: \
36939 configure-target-libcilkrts \
36940 pdf-target-libcilkrts
36941 @: $(MAKE); $(unstage)
22121df0 36942 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36943 r=`${PWD_COMMAND}`; export r; \
36944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36945 $(NORMAL_TARGET_EXPORTS) \
22121df0 36946 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36947 for flag in $(EXTRA_TARGET_FLAGS); do \
36948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36949 done; \
36950 (cd $(TARGET_SUBDIR)/libcilkrts && \
36951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36953 "RANLIB=$${RANLIB}" \
36954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36955 install-pdf) \
36956 || exit 1
36957
36958@endif target-libcilkrts
36959
36960.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
36961maybe-install-html-target-libcilkrts:
36962@if target-libcilkrts
36963maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
36964
36965install-html-target-libcilkrts: \
36966 configure-target-libcilkrts \
36967 html-target-libcilkrts
36968 @: $(MAKE); $(unstage)
22121df0 36969 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36970 r=`${PWD_COMMAND}`; export r; \
36971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36972 $(NORMAL_TARGET_EXPORTS) \
22121df0 36973 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 36974 for flag in $(EXTRA_TARGET_FLAGS); do \
36975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36976 done; \
36977 (cd $(TARGET_SUBDIR)/libcilkrts && \
36978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36980 "RANLIB=$${RANLIB}" \
36981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36982 install-html) \
36983 || exit 1
36984
36985@endif target-libcilkrts
36986
36987.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
36988maybe-installcheck-target-libcilkrts:
36989@if target-libcilkrts
36990maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
36991
36992installcheck-target-libcilkrts: \
36993 configure-target-libcilkrts
36994 @: $(MAKE); $(unstage)
22121df0 36995 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 36996 r=`${PWD_COMMAND}`; export r; \
36997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36998 $(NORMAL_TARGET_EXPORTS) \
22121df0 36999 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37000 for flag in $(EXTRA_TARGET_FLAGS); do \
37001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37002 done; \
37003 (cd $(TARGET_SUBDIR)/libcilkrts && \
37004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37006 "RANLIB=$${RANLIB}" \
37007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37008 installcheck) \
37009 || exit 1
37010
37011@endif target-libcilkrts
37012
37013.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
37014maybe-mostlyclean-target-libcilkrts:
37015@if target-libcilkrts
37016maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
37017
37018mostlyclean-target-libcilkrts:
37019 @: $(MAKE); $(unstage)
22121df0 37020 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37021 r=`${PWD_COMMAND}`; export r; \
37022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37023 $(NORMAL_TARGET_EXPORTS) \
22121df0 37024 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37025 for flag in $(EXTRA_TARGET_FLAGS); do \
37026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37027 done; \
37028 (cd $(TARGET_SUBDIR)/libcilkrts && \
37029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37031 "RANLIB=$${RANLIB}" \
37032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37033 mostlyclean) \
37034 || exit 1
37035
37036@endif target-libcilkrts
37037
37038.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
37039maybe-clean-target-libcilkrts:
37040@if target-libcilkrts
37041maybe-clean-target-libcilkrts: clean-target-libcilkrts
37042
37043clean-target-libcilkrts:
37044 @: $(MAKE); $(unstage)
22121df0 37045 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37046 r=`${PWD_COMMAND}`; export r; \
37047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37048 $(NORMAL_TARGET_EXPORTS) \
22121df0 37049 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37050 for flag in $(EXTRA_TARGET_FLAGS); do \
37051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37052 done; \
37053 (cd $(TARGET_SUBDIR)/libcilkrts && \
37054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37056 "RANLIB=$${RANLIB}" \
37057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37058 clean) \
37059 || exit 1
37060
37061@endif target-libcilkrts
37062
37063.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
37064maybe-distclean-target-libcilkrts:
37065@if target-libcilkrts
37066maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
37067
37068distclean-target-libcilkrts:
37069 @: $(MAKE); $(unstage)
22121df0 37070 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37071 r=`${PWD_COMMAND}`; export r; \
37072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37073 $(NORMAL_TARGET_EXPORTS) \
22121df0 37074 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37075 for flag in $(EXTRA_TARGET_FLAGS); do \
37076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37077 done; \
37078 (cd $(TARGET_SUBDIR)/libcilkrts && \
37079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37081 "RANLIB=$${RANLIB}" \
37082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37083 distclean) \
37084 || exit 1
37085
37086@endif target-libcilkrts
37087
37088.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
37089maybe-maintainer-clean-target-libcilkrts:
37090@if target-libcilkrts
37091maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
37092
37093maintainer-clean-target-libcilkrts:
37094 @: $(MAKE); $(unstage)
22121df0 37095 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
e78e02e6 37096 r=`${PWD_COMMAND}`; export r; \
37097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37098 $(NORMAL_TARGET_EXPORTS) \
22121df0 37099 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts"; \
e78e02e6 37100 for flag in $(EXTRA_TARGET_FLAGS); do \
37101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37102 done; \
37103 (cd $(TARGET_SUBDIR)/libcilkrts && \
37104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37106 "RANLIB=$${RANLIB}" \
37107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37108 maintainer-clean) \
37109 || exit 1
37110
37111@endif target-libcilkrts
37112
37113
37114
37115
37116
1b6c0831
L
37117.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
37118maybe-configure-target-liboffloadmic:
37119@if gcc-bootstrap
37120configure-target-liboffloadmic: stage_current
37121@endif gcc-bootstrap
37122@if target-liboffloadmic
37123maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
37124configure-target-liboffloadmic:
37125 @: $(MAKE); $(unstage)
37126 @r=`${PWD_COMMAND}`; export r; \
37127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37128 echo "Checking multilib configuration for liboffloadmic..."; \
22121df0
L
37129 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
37130 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null; \
1b6c0831
L
37131 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
37132 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
37133 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
37134 else \
37135 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
37136 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
37137 fi; \
37138 else \
37139 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
37140 fi; \
37141 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
22121df0 37142 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
1b6c0831
L
37143 $(NORMAL_TARGET_EXPORTS) \
37144 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
37145 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
37146 case $(srcdir) in \
37147 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37148 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
37149 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37150 esac; \
37151 module_srcdir=liboffloadmic; \
37152 rm -f no-such-file || : ; \
37153 CONFIG_SITE=no-such-file $(SHELL) \
37154 $$s/$$module_srcdir/configure \
37155 --srcdir=$${topdir}/$$module_srcdir \
37156 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
37157 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
37158 || exit 1
37159@endif target-liboffloadmic
37160
37161
37162
37163
37164
37165.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
37166maybe-all-target-liboffloadmic:
37167@if gcc-bootstrap
37168all-target-liboffloadmic: stage_current
37169@endif gcc-bootstrap
37170@if target-liboffloadmic
37171TARGET-target-liboffloadmic=all
37172maybe-all-target-liboffloadmic: all-target-liboffloadmic
37173all-target-liboffloadmic: configure-target-liboffloadmic
37174 @: $(MAKE); $(unstage)
37175 @r=`${PWD_COMMAND}`; export r; \
37176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37177 $(NORMAL_TARGET_EXPORTS) \
37178 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37179 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
37180 $(TARGET-target-liboffloadmic))
37181@endif target-liboffloadmic
37182
37183
37184
37185
37186
37187.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
37188maybe-check-target-liboffloadmic:
37189@if target-liboffloadmic
37190maybe-check-target-liboffloadmic: check-target-liboffloadmic
37191
37192check-target-liboffloadmic:
37193 @: $(MAKE); $(unstage)
37194 @r=`${PWD_COMMAND}`; export r; \
37195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37196 $(NORMAL_TARGET_EXPORTS) \
37197 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37198 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
37199
37200@endif target-liboffloadmic
37201
37202.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
37203maybe-install-target-liboffloadmic:
37204@if target-liboffloadmic
37205maybe-install-target-liboffloadmic: install-target-liboffloadmic
37206
37207install-target-liboffloadmic: installdirs
37208 @: $(MAKE); $(unstage)
37209 @r=`${PWD_COMMAND}`; export r; \
37210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37211 $(NORMAL_TARGET_EXPORTS) \
37212 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37213 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37214
37215@endif target-liboffloadmic
37216
37217.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
37218maybe-install-strip-target-liboffloadmic:
37219@if target-liboffloadmic
37220maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
37221
37222install-strip-target-liboffloadmic: installdirs
37223 @: $(MAKE); $(unstage)
37224 @r=`${PWD_COMMAND}`; export r; \
37225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37226 $(NORMAL_TARGET_EXPORTS) \
37227 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37228 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37229
37230@endif target-liboffloadmic
37231
37232# Other targets (info, dvi, pdf, etc.)
37233
37234.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
37235maybe-info-target-liboffloadmic:
37236@if target-liboffloadmic
37237maybe-info-target-liboffloadmic: info-target-liboffloadmic
37238
37239info-target-liboffloadmic: \
37240 configure-target-liboffloadmic
37241 @: $(MAKE); $(unstage)
22121df0 37242 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37243 r=`${PWD_COMMAND}`; export r; \
37244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37245 $(NORMAL_TARGET_EXPORTS) \
22121df0 37246 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37247 for flag in $(EXTRA_TARGET_FLAGS); do \
37248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37249 done; \
37250 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37253 "RANLIB=$${RANLIB}" \
37254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37255 info) \
37256 || exit 1
37257
37258@endif target-liboffloadmic
37259
37260.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
37261maybe-dvi-target-liboffloadmic:
37262@if target-liboffloadmic
37263maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
37264
37265dvi-target-liboffloadmic: \
37266 configure-target-liboffloadmic
37267 @: $(MAKE); $(unstage)
22121df0 37268 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37269 r=`${PWD_COMMAND}`; export r; \
37270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37271 $(NORMAL_TARGET_EXPORTS) \
22121df0 37272 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37273 for flag in $(EXTRA_TARGET_FLAGS); do \
37274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37275 done; \
37276 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37279 "RANLIB=$${RANLIB}" \
37280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37281 dvi) \
37282 || exit 1
37283
37284@endif target-liboffloadmic
37285
37286.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
37287maybe-pdf-target-liboffloadmic:
37288@if target-liboffloadmic
37289maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
37290
37291pdf-target-liboffloadmic: \
37292 configure-target-liboffloadmic
37293 @: $(MAKE); $(unstage)
22121df0 37294 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37295 r=`${PWD_COMMAND}`; export r; \
37296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37297 $(NORMAL_TARGET_EXPORTS) \
22121df0 37298 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37299 for flag in $(EXTRA_TARGET_FLAGS); do \
37300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37301 done; \
37302 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37305 "RANLIB=$${RANLIB}" \
37306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37307 pdf) \
37308 || exit 1
37309
37310@endif target-liboffloadmic
37311
37312.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
37313maybe-html-target-liboffloadmic:
37314@if target-liboffloadmic
37315maybe-html-target-liboffloadmic: html-target-liboffloadmic
37316
37317html-target-liboffloadmic: \
37318 configure-target-liboffloadmic
37319 @: $(MAKE); $(unstage)
22121df0 37320 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37321 r=`${PWD_COMMAND}`; export r; \
37322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37323 $(NORMAL_TARGET_EXPORTS) \
22121df0 37324 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37325 for flag in $(EXTRA_TARGET_FLAGS); do \
37326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37327 done; \
37328 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37331 "RANLIB=$${RANLIB}" \
37332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37333 html) \
37334 || exit 1
37335
37336@endif target-liboffloadmic
37337
37338.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
37339maybe-TAGS-target-liboffloadmic:
37340@if target-liboffloadmic
37341maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
37342
37343TAGS-target-liboffloadmic: \
37344 configure-target-liboffloadmic
37345 @: $(MAKE); $(unstage)
22121df0 37346 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37347 r=`${PWD_COMMAND}`; export r; \
37348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37349 $(NORMAL_TARGET_EXPORTS) \
22121df0 37350 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37351 for flag in $(EXTRA_TARGET_FLAGS); do \
37352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37353 done; \
37354 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37357 "RANLIB=$${RANLIB}" \
37358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37359 TAGS) \
37360 || exit 1
37361
37362@endif target-liboffloadmic
37363
37364.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
37365maybe-install-info-target-liboffloadmic:
37366@if target-liboffloadmic
37367maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
37368
37369install-info-target-liboffloadmic: \
37370 configure-target-liboffloadmic \
37371 info-target-liboffloadmic
37372 @: $(MAKE); $(unstage)
22121df0 37373 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37374 r=`${PWD_COMMAND}`; export r; \
37375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37376 $(NORMAL_TARGET_EXPORTS) \
22121df0 37377 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37378 for flag in $(EXTRA_TARGET_FLAGS); do \
37379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37380 done; \
37381 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37384 "RANLIB=$${RANLIB}" \
37385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37386 install-info) \
37387 || exit 1
37388
37389@endif target-liboffloadmic
37390
37391.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
37392maybe-install-pdf-target-liboffloadmic:
37393@if target-liboffloadmic
37394maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
37395
37396install-pdf-target-liboffloadmic: \
37397 configure-target-liboffloadmic \
37398 pdf-target-liboffloadmic
37399 @: $(MAKE); $(unstage)
22121df0 37400 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37401 r=`${PWD_COMMAND}`; export r; \
37402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37403 $(NORMAL_TARGET_EXPORTS) \
22121df0 37404 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37405 for flag in $(EXTRA_TARGET_FLAGS); do \
37406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37407 done; \
37408 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37409 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37410 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37411 "RANLIB=$${RANLIB}" \
37412 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37413 install-pdf) \
37414 || exit 1
37415
37416@endif target-liboffloadmic
37417
37418.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
37419maybe-install-html-target-liboffloadmic:
37420@if target-liboffloadmic
37421maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
37422
37423install-html-target-liboffloadmic: \
37424 configure-target-liboffloadmic \
37425 html-target-liboffloadmic
37426 @: $(MAKE); $(unstage)
22121df0 37427 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37428 r=`${PWD_COMMAND}`; export r; \
37429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37430 $(NORMAL_TARGET_EXPORTS) \
22121df0 37431 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37432 for flag in $(EXTRA_TARGET_FLAGS); do \
37433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37434 done; \
37435 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37438 "RANLIB=$${RANLIB}" \
37439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37440 install-html) \
37441 || exit 1
37442
37443@endif target-liboffloadmic
37444
37445.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
37446maybe-installcheck-target-liboffloadmic:
37447@if target-liboffloadmic
37448maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
37449
37450installcheck-target-liboffloadmic: \
37451 configure-target-liboffloadmic
37452 @: $(MAKE); $(unstage)
22121df0 37453 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37454 r=`${PWD_COMMAND}`; export r; \
37455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37456 $(NORMAL_TARGET_EXPORTS) \
22121df0 37457 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37458 for flag in $(EXTRA_TARGET_FLAGS); do \
37459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37460 done; \
37461 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37464 "RANLIB=$${RANLIB}" \
37465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37466 installcheck) \
37467 || exit 1
37468
37469@endif target-liboffloadmic
37470
37471.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
37472maybe-mostlyclean-target-liboffloadmic:
37473@if target-liboffloadmic
37474maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
37475
37476mostlyclean-target-liboffloadmic:
37477 @: $(MAKE); $(unstage)
22121df0 37478 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37479 r=`${PWD_COMMAND}`; export r; \
37480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37481 $(NORMAL_TARGET_EXPORTS) \
22121df0 37482 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37483 for flag in $(EXTRA_TARGET_FLAGS); do \
37484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37485 done; \
37486 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37489 "RANLIB=$${RANLIB}" \
37490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37491 mostlyclean) \
37492 || exit 1
37493
37494@endif target-liboffloadmic
37495
37496.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
37497maybe-clean-target-liboffloadmic:
37498@if target-liboffloadmic
37499maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
37500
37501clean-target-liboffloadmic:
37502 @: $(MAKE); $(unstage)
22121df0 37503 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37504 r=`${PWD_COMMAND}`; export r; \
37505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37506 $(NORMAL_TARGET_EXPORTS) \
22121df0 37507 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37508 for flag in $(EXTRA_TARGET_FLAGS); do \
37509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37510 done; \
37511 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37514 "RANLIB=$${RANLIB}" \
37515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37516 clean) \
37517 || exit 1
37518
37519@endif target-liboffloadmic
37520
37521.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
37522maybe-distclean-target-liboffloadmic:
37523@if target-liboffloadmic
37524maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
37525
37526distclean-target-liboffloadmic:
37527 @: $(MAKE); $(unstage)
22121df0 37528 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37529 r=`${PWD_COMMAND}`; export r; \
37530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37531 $(NORMAL_TARGET_EXPORTS) \
22121df0 37532 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37533 for flag in $(EXTRA_TARGET_FLAGS); do \
37534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37535 done; \
37536 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37539 "RANLIB=$${RANLIB}" \
37540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37541 distclean) \
37542 || exit 1
37543
37544@endif target-liboffloadmic
37545
37546.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
37547maybe-maintainer-clean-target-liboffloadmic:
37548@if target-liboffloadmic
37549maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
37550
37551maintainer-clean-target-liboffloadmic:
37552 @: $(MAKE); $(unstage)
22121df0 37553 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
37554 r=`${PWD_COMMAND}`; export r; \
37555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37556 $(NORMAL_TARGET_EXPORTS) \
22121df0 37557 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
37558 for flag in $(EXTRA_TARGET_FLAGS); do \
37559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37560 done; \
37561 (cd $(TARGET_SUBDIR)/liboffloadmic && \
37562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37564 "RANLIB=$${RANLIB}" \
37565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37566 maintainer-clean) \
37567 || exit 1
37568
37569@endif target-liboffloadmic
37570
37571
37572
37573
37574
a90ef4bf
JM
37575.PHONY: configure-target-libssp maybe-configure-target-libssp
37576maybe-configure-target-libssp:
4f0ef2d8 37577@if gcc-bootstrap
a90ef4bf 37578configure-target-libssp: stage_current
4f0ef2d8 37579@endif gcc-bootstrap
a90ef4bf
JM
37580@if target-libssp
37581maybe-configure-target-libssp: configure-target-libssp
37582configure-target-libssp:
0aed8855
PB
37583 @: $(MAKE); $(unstage)
37584 @r=`${PWD_COMMAND}`; export r; \
37585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 37586 echo "Checking multilib configuration for libssp..."; \
22121df0
L
37587 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
37588 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
37589 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
37590 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
37591 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 37592 else \
a90ef4bf
JM
37593 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
37594 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
37595 fi; \
37596 else \
a90ef4bf 37597 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 37598 fi; \
a90ef4bf 37599 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
22121df0 37600 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
1f53ca9a 37601 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
37602 echo Configuring in $(TARGET_SUBDIR)/libssp; \
37603 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 37604 case $(srcdir) in \
b00612cc 37605 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 37606 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 37607 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 37608 esac; \
1b6c0831 37609 module_srcdir=libssp; \
4b1cb4fe 37610 rm -f no-such-file || : ; \
1b6c0831
L
37611 CONFIG_SITE=no-such-file $(SHELL) \
37612 $$s/$$module_srcdir/configure \
37613 --srcdir=$${topdir}/$$module_srcdir \
4b900473 37614 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37615 --target=${target_alias} \
4b1cb4fe 37616 || exit 1
a90ef4bf 37617@endif target-libssp
4b1cb4fe 37618
a7254363
PB
37619
37620
d545f33b
PB
37621
37622
a90ef4bf
JM
37623.PHONY: all-target-libssp maybe-all-target-libssp
37624maybe-all-target-libssp:
4f0ef2d8 37625@if gcc-bootstrap
a90ef4bf 37626all-target-libssp: stage_current
4f0ef2d8 37627@endif gcc-bootstrap
a90ef4bf
JM
37628@if target-libssp
37629TARGET-target-libssp=all
37630maybe-all-target-libssp: all-target-libssp
37631all-target-libssp: configure-target-libssp
0aed8855 37632 @: $(MAKE); $(unstage)
4b1cb4fe
DD
37633 @r=`${PWD_COMMAND}`; export r; \
37634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 37635 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37636 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 37637 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
37638 $(TARGET-target-libssp))
37639@endif target-libssp
4b1cb4fe 37640
a7254363
PB
37641
37642
d545f33b
PB
37643
37644
a90ef4bf
JM
37645.PHONY: check-target-libssp maybe-check-target-libssp
37646maybe-check-target-libssp:
37647@if target-libssp
37648maybe-check-target-libssp: check-target-libssp
4b1cb4fe 37649
a90ef4bf 37650check-target-libssp:
0aed8855 37651 @: $(MAKE); $(unstage)
b40e3958
L
37652 @r=`${PWD_COMMAND}`; export r; \
37653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37654 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37655 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 37656 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 37657
a90ef4bf 37658@endif target-libssp
3866be5d 37659
a90ef4bf
JM
37660.PHONY: install-target-libssp maybe-install-target-libssp
37661maybe-install-target-libssp:
37662@if target-libssp
37663maybe-install-target-libssp: install-target-libssp
e2b9e2dc 37664
a90ef4bf 37665install-target-libssp: installdirs
0aed8855 37666 @: $(MAKE); $(unstage)
b40e3958
L
37667 @r=`${PWD_COMMAND}`; export r; \
37668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37669 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37670 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 37671 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 37672
a90ef4bf 37673@endif target-libssp
3866be5d 37674
a90ef4bf
JM
37675.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
37676maybe-install-strip-target-libssp:
37677@if target-libssp
37678maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 37679
a90ef4bf 37680install-strip-target-libssp: installdirs
9b980aa1
RW
37681 @: $(MAKE); $(unstage)
37682 @r=`${PWD_COMMAND}`; export r; \
37683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37684 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 37685 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
37686 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37687
a90ef4bf 37688@endif target-libssp
9b980aa1 37689
56a8fe78 37690# Other targets (info, dvi, pdf, etc.)
3866be5d 37691
a90ef4bf
JM
37692.PHONY: maybe-info-target-libssp info-target-libssp
37693maybe-info-target-libssp:
37694@if target-libssp
37695maybe-info-target-libssp: info-target-libssp
3866be5d 37696
a90ef4bf
JM
37697info-target-libssp: \
37698 configure-target-libssp
0aed8855 37699 @: $(MAKE); $(unstage)
22121df0 37700 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067
NN
37701 r=`${PWD_COMMAND}`; export r; \
37702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37703 $(NORMAL_TARGET_EXPORTS) \
22121df0 37704 echo "Doing info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37705 for flag in $(EXTRA_TARGET_FLAGS); do \
37706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37707 done; \
a90ef4bf 37708 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37711 "RANLIB=$${RANLIB}" \
0c24b341 37712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37713 info) \
4fa63067 37714 || exit 1
16ae0395 37715
a90ef4bf 37716@endif target-libssp
3866be5d 37717
a90ef4bf
JM
37718.PHONY: maybe-dvi-target-libssp dvi-target-libssp
37719maybe-dvi-target-libssp:
37720@if target-libssp
37721maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 37722
a90ef4bf
JM
37723dvi-target-libssp: \
37724 configure-target-libssp
0aed8855 37725 @: $(MAKE); $(unstage)
22121df0 37726 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
37727 r=`${PWD_COMMAND}`; export r; \
37728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37729 $(NORMAL_TARGET_EXPORTS) \
22121df0 37730 echo "Doing dvi in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37731 for flag in $(EXTRA_TARGET_FLAGS); do \
37732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37733 done; \
a90ef4bf 37734 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37737 "RANLIB=$${RANLIB}" \
0c24b341 37738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37739 dvi) \
e2b9e2dc
NN
37740 || exit 1
37741
a90ef4bf 37742@endif target-libssp
3866be5d 37743
a90ef4bf
JM
37744.PHONY: maybe-pdf-target-libssp pdf-target-libssp
37745maybe-pdf-target-libssp:
37746@if target-libssp
37747maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 37748
a90ef4bf
JM
37749pdf-target-libssp: \
37750 configure-target-libssp
56a8fe78 37751 @: $(MAKE); $(unstage)
22121df0 37752 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
56a8fe78
DD
37753 r=`${PWD_COMMAND}`; export r; \
37754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37755 $(NORMAL_TARGET_EXPORTS) \
22121df0 37756 echo "Doing pdf in $(TARGET_SUBDIR)/libssp"; \
56a8fe78
DD
37757 for flag in $(EXTRA_TARGET_FLAGS); do \
37758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37759 done; \
a90ef4bf 37760 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
37761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37763 "RANLIB=$${RANLIB}" \
0c24b341 37764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
37765 pdf) \
37766 || exit 1
37767
a90ef4bf 37768@endif target-libssp
a3ca38d2 37769
a90ef4bf
JM
37770.PHONY: maybe-html-target-libssp html-target-libssp
37771maybe-html-target-libssp:
37772@if target-libssp
37773maybe-html-target-libssp: html-target-libssp
108a6f8e 37774
a90ef4bf
JM
37775html-target-libssp: \
37776 configure-target-libssp
108a6f8e 37777 @: $(MAKE); $(unstage)
22121df0 37778 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
108a6f8e
CD
37779 r=`${PWD_COMMAND}`; export r; \
37780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37781 $(NORMAL_TARGET_EXPORTS) \
22121df0 37782 echo "Doing html in $(TARGET_SUBDIR)/libssp"; \
108a6f8e
CD
37783 for flag in $(EXTRA_TARGET_FLAGS); do \
37784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37785 done; \
a90ef4bf 37786 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
37787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37789 "RANLIB=$${RANLIB}" \
0c24b341 37790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37791 html) \
108a6f8e
CD
37792 || exit 1
37793
a90ef4bf 37794@endif target-libssp
108a6f8e 37795
a90ef4bf
JM
37796.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
37797maybe-TAGS-target-libssp:
37798@if target-libssp
37799maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 37800
a90ef4bf
JM
37801TAGS-target-libssp: \
37802 configure-target-libssp
0aed8855 37803 @: $(MAKE); $(unstage)
22121df0 37804 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
37805 r=`${PWD_COMMAND}`; export r; \
37806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37807 $(NORMAL_TARGET_EXPORTS) \
22121df0 37808 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37809 for flag in $(EXTRA_TARGET_FLAGS); do \
37810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37811 done; \
a90ef4bf 37812 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37815 "RANLIB=$${RANLIB}" \
0c24b341 37816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37817 TAGS) \
e2b9e2dc
NN
37818 || exit 1
37819
a90ef4bf 37820@endif target-libssp
3866be5d 37821
a90ef4bf
JM
37822.PHONY: maybe-install-info-target-libssp install-info-target-libssp
37823maybe-install-info-target-libssp:
37824@if target-libssp
37825maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 37826
a90ef4bf
JM
37827install-info-target-libssp: \
37828 configure-target-libssp \
37829 info-target-libssp
0aed8855 37830 @: $(MAKE); $(unstage)
22121df0 37831 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 37832 r=`${PWD_COMMAND}`; export r; \
b40e3958 37833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37834 $(NORMAL_TARGET_EXPORTS) \
22121df0 37835 echo "Doing install-info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37836 for flag in $(EXTRA_TARGET_FLAGS); do \
37837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37838 done; \
a90ef4bf 37839 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37842 "RANLIB=$${RANLIB}" \
0c24b341 37843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37844 install-info) \
4fa63067 37845 || exit 1
3866be5d 37846
a90ef4bf 37847@endif target-libssp
3866be5d 37848
a90ef4bf
JM
37849.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
37850maybe-install-pdf-target-libssp:
37851@if target-libssp
37852maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 37853
a90ef4bf
JM
37854install-pdf-target-libssp: \
37855 configure-target-libssp \
37856 pdf-target-libssp
0aed8855 37857 @: $(MAKE); $(unstage)
22121df0 37858 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 37859 r=`${PWD_COMMAND}`; export r; \
b40e3958 37860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37861 $(NORMAL_TARGET_EXPORTS) \
22121df0 37862 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37863 for flag in $(EXTRA_TARGET_FLAGS); do \
37864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37865 done; \
a90ef4bf 37866 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37869 "RANLIB=$${RANLIB}" \
0c24b341 37870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37871 install-pdf) \
4fa63067 37872 || exit 1
3866be5d 37873
a90ef4bf 37874@endif target-libssp
3866be5d 37875
a90ef4bf
JM
37876.PHONY: maybe-install-html-target-libssp install-html-target-libssp
37877maybe-install-html-target-libssp:
37878@if target-libssp
37879maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 37880
a90ef4bf
JM
37881install-html-target-libssp: \
37882 configure-target-libssp \
37883 html-target-libssp
0aed8855 37884 @: $(MAKE); $(unstage)
22121df0 37885 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
37886 r=`${PWD_COMMAND}`; export r; \
37887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37888 $(NORMAL_TARGET_EXPORTS) \
22121df0 37889 echo "Doing install-html in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37890 for flag in $(EXTRA_TARGET_FLAGS); do \
37891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37892 done; \
a90ef4bf 37893 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37896 "RANLIB=$${RANLIB}" \
0c24b341 37897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37898 install-html) \
e2b9e2dc
NN
37899 || exit 1
37900
a90ef4bf 37901@endif target-libssp
3866be5d 37902
a90ef4bf
JM
37903.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
37904maybe-installcheck-target-libssp:
37905@if target-libssp
37906maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 37907
a90ef4bf
JM
37908installcheck-target-libssp: \
37909 configure-target-libssp
0aed8855 37910 @: $(MAKE); $(unstage)
22121df0 37911 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 37912 r=`${PWD_COMMAND}`; export r; \
b40e3958 37913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37914 $(NORMAL_TARGET_EXPORTS) \
22121df0 37915 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
37916 for flag in $(EXTRA_TARGET_FLAGS); do \
37917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37918 done; \
a90ef4bf 37919 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
37920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37922 "RANLIB=$${RANLIB}" \
0c24b341 37923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 37924 installcheck) \
6aa8ef82 37925 || exit 1
6aa8ef82 37926
a90ef4bf 37927@endif target-libssp
6aa8ef82 37928
a90ef4bf
JM
37929.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
37930maybe-mostlyclean-target-libssp:
37931@if target-libssp
37932maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 37933
a90ef4bf
JM
37934mostlyclean-target-libssp:
37935 @: $(MAKE); $(unstage)
22121df0 37936 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 37937 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37939 $(NORMAL_TARGET_EXPORTS) \
22121df0 37940 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
37941 for flag in $(EXTRA_TARGET_FLAGS); do \
37942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37943 done; \
37944 (cd $(TARGET_SUBDIR)/libssp && \
37945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37947 "RANLIB=$${RANLIB}" \
37948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37949 mostlyclean) \
37950 || exit 1
6aa8ef82 37951
a90ef4bf 37952@endif target-libssp
6aa8ef82 37953
a90ef4bf
JM
37954.PHONY: maybe-clean-target-libssp clean-target-libssp
37955maybe-clean-target-libssp:
37956@if target-libssp
37957maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 37958
a90ef4bf
JM
37959clean-target-libssp:
37960 @: $(MAKE); $(unstage)
22121df0 37961 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 37962 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37964 $(NORMAL_TARGET_EXPORTS) \
22121df0 37965 echo "Doing clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
37966 for flag in $(EXTRA_TARGET_FLAGS); do \
37967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37968 done; \
37969 (cd $(TARGET_SUBDIR)/libssp && \
37970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37972 "RANLIB=$${RANLIB}" \
37973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37974 clean) \
37975 || exit 1
6aa8ef82 37976
a90ef4bf 37977@endif target-libssp
6aa8ef82 37978
a90ef4bf
JM
37979.PHONY: maybe-distclean-target-libssp distclean-target-libssp
37980maybe-distclean-target-libssp:
37981@if target-libssp
37982maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 37983
a90ef4bf
JM
37984distclean-target-libssp:
37985 @: $(MAKE); $(unstage)
22121df0 37986 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 37987 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
37988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37989 $(NORMAL_TARGET_EXPORTS) \
22121df0 37990 echo "Doing distclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
37991 for flag in $(EXTRA_TARGET_FLAGS); do \
37992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37993 done; \
37994 (cd $(TARGET_SUBDIR)/libssp && \
37995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37997 "RANLIB=$${RANLIB}" \
37998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37999 distclean) \
38000 || exit 1
6aa8ef82 38001
a90ef4bf 38002@endif target-libssp
6aa8ef82 38003
a90ef4bf
JM
38004.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
38005maybe-maintainer-clean-target-libssp:
38006@if target-libssp
38007maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 38008
a90ef4bf
JM
38009maintainer-clean-target-libssp:
38010 @: $(MAKE); $(unstage)
22121df0 38011 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 38012 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
38013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38014 $(NORMAL_TARGET_EXPORTS) \
22121df0 38015 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
38016 for flag in $(EXTRA_TARGET_FLAGS); do \
38017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38018 done; \
38019 (cd $(TARGET_SUBDIR)/libssp && \
38020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38022 "RANLIB=$${RANLIB}" \
38023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38024 maintainer-clean) \
38025 || exit 1
6aa8ef82 38026
a90ef4bf 38027@endif target-libssp
6aa8ef82
DJ
38028
38029
a90ef4bf
JM
38030
38031
38032
38033.PHONY: configure-target-newlib maybe-configure-target-newlib
38034maybe-configure-target-newlib:
38035@if gcc-bootstrap
38036configure-target-newlib: stage_current
38037@endif gcc-bootstrap
38038@if target-newlib
38039maybe-configure-target-newlib: configure-target-newlib
38040configure-target-newlib:
38041 @: $(MAKE); $(unstage)
6aa8ef82
DJ
38042 @r=`${PWD_COMMAND}`; export r; \
38043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38044 echo "Checking multilib configuration for newlib..."; \
22121df0
L
38045 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
38046 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38047 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
38048 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
38049 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
38050 else \
38051 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
38052 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
38053 fi; \
6aa8ef82 38054 else \
a90ef4bf 38055 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 38056 fi; \
a90ef4bf 38057 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
22121df0 38058 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
a90ef4bf
JM
38059 $(NORMAL_TARGET_EXPORTS) \
38060 echo Configuring in $(TARGET_SUBDIR)/newlib; \
38061 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
38062 case $(srcdir) in \
38063 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38064 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
38065 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38066 esac; \
1b6c0831 38067 module_srcdir=newlib; \
a90ef4bf 38068 rm -f no-such-file || : ; \
1b6c0831
L
38069 CONFIG_SITE=no-such-file $(SHELL) \
38070 $$s/$$module_srcdir/configure \
38071 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38072 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38073 --target=${target_alias} \
a90ef4bf
JM
38074 || exit 1
38075@endif target-newlib
6aa8ef82
DJ
38076
38077
38078
38079
38080
a90ef4bf
JM
38081.PHONY: all-target-newlib maybe-all-target-newlib
38082maybe-all-target-newlib:
38083@if gcc-bootstrap
38084all-target-newlib: stage_current
38085@endif gcc-bootstrap
38086@if target-newlib
38087TARGET-target-newlib=all
38088maybe-all-target-newlib: all-target-newlib
38089all-target-newlib: configure-target-newlib
38090 @: $(MAKE); $(unstage)
38091 @r=`${PWD_COMMAND}`; export r; \
38092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38093 $(NORMAL_TARGET_EXPORTS) \
38094 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 38095 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
38096 $(TARGET-target-newlib))
38097@endif target-newlib
6aa8ef82 38098
6aa8ef82 38099
6aa8ef82 38100
6aa8ef82 38101
6aa8ef82 38102
a90ef4bf
JM
38103.PHONY: check-target-newlib maybe-check-target-newlib
38104maybe-check-target-newlib:
38105@if target-newlib
38106maybe-check-target-newlib: check-target-newlib
38107
38108check-target-newlib:
6aa8ef82
DJ
38109 @: $(MAKE); $(unstage)
38110 @r=`${PWD_COMMAND}`; export r; \
38111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38112 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38113 (cd $(TARGET_SUBDIR)/newlib && \
38114 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
38115
38116@endif target-newlib
38117
38118.PHONY: install-target-newlib maybe-install-target-newlib
38119maybe-install-target-newlib:
38120@if target-newlib
38121maybe-install-target-newlib: install-target-newlib
38122
38123install-target-newlib: installdirs
38124 @: $(MAKE); $(unstage)
38125 @r=`${PWD_COMMAND}`; export r; \
38126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38127 $(NORMAL_TARGET_EXPORTS) \
38128 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38129 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38130
a90ef4bf 38131@endif target-newlib
6aa8ef82 38132
a90ef4bf
JM
38133.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
38134maybe-install-strip-target-newlib:
38135@if target-newlib
38136maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 38137
a90ef4bf 38138install-strip-target-newlib: installdirs
9b980aa1
RW
38139 @: $(MAKE); $(unstage)
38140 @r=`${PWD_COMMAND}`; export r; \
38141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38142 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38143 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
38144 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38145
a90ef4bf 38146@endif target-newlib
9b980aa1 38147
6aa8ef82
DJ
38148# Other targets (info, dvi, pdf, etc.)
38149
a90ef4bf
JM
38150.PHONY: maybe-info-target-newlib info-target-newlib
38151maybe-info-target-newlib:
38152@if target-newlib
38153maybe-info-target-newlib: info-target-newlib
6aa8ef82 38154
a90ef4bf
JM
38155info-target-newlib: \
38156 configure-target-newlib
6aa8ef82 38157 @: $(MAKE); $(unstage)
22121df0 38158 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38159 r=`${PWD_COMMAND}`; export r; \
38160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38161 $(NORMAL_TARGET_EXPORTS) \
22121df0 38162 echo "Doing info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38163 for flag in $(EXTRA_TARGET_FLAGS); do \
38164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38165 done; \
a90ef4bf 38166 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38169 "RANLIB=$${RANLIB}" \
0c24b341 38170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38171 info) \
38172 || exit 1
38173
a90ef4bf 38174@endif target-newlib
6aa8ef82 38175
a90ef4bf
JM
38176.PHONY: maybe-dvi-target-newlib dvi-target-newlib
38177maybe-dvi-target-newlib:
38178@if target-newlib
38179maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 38180
a90ef4bf
JM
38181dvi-target-newlib: \
38182 configure-target-newlib
6aa8ef82 38183 @: $(MAKE); $(unstage)
22121df0 38184 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38185 r=`${PWD_COMMAND}`; export r; \
38186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38187 $(NORMAL_TARGET_EXPORTS) \
22121df0 38188 echo "Doing dvi in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38189 for flag in $(EXTRA_TARGET_FLAGS); do \
38190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38191 done; \
a90ef4bf 38192 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38195 "RANLIB=$${RANLIB}" \
0c24b341 38196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38197 dvi) \
38198 || exit 1
38199
a90ef4bf 38200@endif target-newlib
6aa8ef82 38201
a90ef4bf
JM
38202.PHONY: maybe-pdf-target-newlib pdf-target-newlib
38203maybe-pdf-target-newlib:
38204@if target-newlib
38205maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 38206
a90ef4bf
JM
38207pdf-target-newlib: \
38208 configure-target-newlib
6aa8ef82 38209 @: $(MAKE); $(unstage)
22121df0 38210 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38211 r=`${PWD_COMMAND}`; export r; \
38212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38213 $(NORMAL_TARGET_EXPORTS) \
22121df0 38214 echo "Doing pdf in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38215 for flag in $(EXTRA_TARGET_FLAGS); do \
38216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38217 done; \
a90ef4bf 38218 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38221 "RANLIB=$${RANLIB}" \
0c24b341 38222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38223 pdf) \
38224 || exit 1
38225
a90ef4bf 38226@endif target-newlib
6aa8ef82 38227
a90ef4bf
JM
38228.PHONY: maybe-html-target-newlib html-target-newlib
38229maybe-html-target-newlib:
38230@if target-newlib
38231maybe-html-target-newlib: html-target-newlib
6aa8ef82 38232
a90ef4bf
JM
38233html-target-newlib: \
38234 configure-target-newlib
6aa8ef82 38235 @: $(MAKE); $(unstage)
22121df0 38236 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38237 r=`${PWD_COMMAND}`; export r; \
38238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38239 $(NORMAL_TARGET_EXPORTS) \
22121df0 38240 echo "Doing html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38241 for flag in $(EXTRA_TARGET_FLAGS); do \
38242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38243 done; \
a90ef4bf 38244 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38247 "RANLIB=$${RANLIB}" \
0c24b341 38248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38249 html) \
38250 || exit 1
38251
a90ef4bf 38252@endif target-newlib
6aa8ef82 38253
a90ef4bf
JM
38254.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
38255maybe-TAGS-target-newlib:
38256@if target-newlib
38257maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 38258
a90ef4bf
JM
38259TAGS-target-newlib: \
38260 configure-target-newlib
6aa8ef82 38261 @: $(MAKE); $(unstage)
22121df0 38262 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38263 r=`${PWD_COMMAND}`; export r; \
38264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38265 $(NORMAL_TARGET_EXPORTS) \
22121df0 38266 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38267 for flag in $(EXTRA_TARGET_FLAGS); do \
38268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38269 done; \
a90ef4bf 38270 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38273 "RANLIB=$${RANLIB}" \
0c24b341 38274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38275 TAGS) \
38276 || exit 1
38277
a90ef4bf 38278@endif target-newlib
6aa8ef82 38279
a90ef4bf
JM
38280.PHONY: maybe-install-info-target-newlib install-info-target-newlib
38281maybe-install-info-target-newlib:
38282@if target-newlib
38283maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 38284
a90ef4bf
JM
38285install-info-target-newlib: \
38286 configure-target-newlib \
38287 info-target-newlib
6aa8ef82 38288 @: $(MAKE); $(unstage)
22121df0 38289 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38290 r=`${PWD_COMMAND}`; export r; \
38291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38292 $(NORMAL_TARGET_EXPORTS) \
22121df0 38293 echo "Doing install-info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38294 for flag in $(EXTRA_TARGET_FLAGS); do \
38295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38296 done; \
a90ef4bf 38297 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38300 "RANLIB=$${RANLIB}" \
0c24b341 38301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38302 install-info) \
38303 || exit 1
38304
a90ef4bf 38305@endif target-newlib
6aa8ef82 38306
a90ef4bf
JM
38307.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
38308maybe-install-pdf-target-newlib:
38309@if target-newlib
38310maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 38311
a90ef4bf
JM
38312install-pdf-target-newlib: \
38313 configure-target-newlib \
38314 pdf-target-newlib
a3ca38d2 38315 @: $(MAKE); $(unstage)
22121df0 38316 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
a3ca38d2
DD
38317 r=`${PWD_COMMAND}`; export r; \
38318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38319 $(NORMAL_TARGET_EXPORTS) \
22121df0 38320 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib"; \
a3ca38d2
DD
38321 for flag in $(EXTRA_TARGET_FLAGS); do \
38322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38323 done; \
a90ef4bf 38324 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
38325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38327 "RANLIB=$${RANLIB}" \
0c24b341 38328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
38329 install-pdf) \
38330 || exit 1
38331
a90ef4bf 38332@endif target-newlib
a3ca38d2 38333
a90ef4bf
JM
38334.PHONY: maybe-install-html-target-newlib install-html-target-newlib
38335maybe-install-html-target-newlib:
38336@if target-newlib
38337maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 38338
a90ef4bf
JM
38339install-html-target-newlib: \
38340 configure-target-newlib \
38341 html-target-newlib
6aa8ef82 38342 @: $(MAKE); $(unstage)
22121df0 38343 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38344 r=`${PWD_COMMAND}`; export r; \
38345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38346 $(NORMAL_TARGET_EXPORTS) \
22121df0 38347 echo "Doing install-html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38348 for flag in $(EXTRA_TARGET_FLAGS); do \
38349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38350 done; \
a90ef4bf 38351 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38354 "RANLIB=$${RANLIB}" \
0c24b341 38355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38356 install-html) \
38357 || exit 1
38358
a90ef4bf 38359@endif target-newlib
6aa8ef82 38360
a90ef4bf
JM
38361.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
38362maybe-installcheck-target-newlib:
38363@if target-newlib
38364maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 38365
a90ef4bf
JM
38366installcheck-target-newlib: \
38367 configure-target-newlib
6aa8ef82 38368 @: $(MAKE); $(unstage)
22121df0 38369 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38370 r=`${PWD_COMMAND}`; export r; \
38371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38372 $(NORMAL_TARGET_EXPORTS) \
22121df0 38373 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38374 for flag in $(EXTRA_TARGET_FLAGS); do \
38375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38376 done; \
a90ef4bf 38377 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38380 "RANLIB=$${RANLIB}" \
0c24b341 38381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38382 installcheck) \
38383 || exit 1
38384
a90ef4bf 38385@endif target-newlib
6aa8ef82 38386
a90ef4bf
JM
38387.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
38388maybe-mostlyclean-target-newlib:
38389@if target-newlib
38390maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 38391
a90ef4bf 38392mostlyclean-target-newlib:
6aa8ef82 38393 @: $(MAKE); $(unstage)
22121df0 38394 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38395 r=`${PWD_COMMAND}`; export r; \
38396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38397 $(NORMAL_TARGET_EXPORTS) \
22121df0 38398 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38399 for flag in $(EXTRA_TARGET_FLAGS); do \
38400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38401 done; \
a90ef4bf 38402 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38405 "RANLIB=$${RANLIB}" \
0c24b341 38406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38407 mostlyclean) \
38408 || exit 1
38409
a90ef4bf 38410@endif target-newlib
6aa8ef82 38411
a90ef4bf
JM
38412.PHONY: maybe-clean-target-newlib clean-target-newlib
38413maybe-clean-target-newlib:
38414@if target-newlib
38415maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 38416
a90ef4bf 38417clean-target-newlib:
6aa8ef82 38418 @: $(MAKE); $(unstage)
22121df0 38419 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38420 r=`${PWD_COMMAND}`; export r; \
38421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38422 $(NORMAL_TARGET_EXPORTS) \
22121df0 38423 echo "Doing clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38424 for flag in $(EXTRA_TARGET_FLAGS); do \
38425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38426 done; \
a90ef4bf 38427 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38430 "RANLIB=$${RANLIB}" \
0c24b341 38431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38432 clean) \
38433 || exit 1
38434
a90ef4bf 38435@endif target-newlib
6aa8ef82 38436
a90ef4bf
JM
38437.PHONY: maybe-distclean-target-newlib distclean-target-newlib
38438maybe-distclean-target-newlib:
38439@if target-newlib
38440maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 38441
a90ef4bf 38442distclean-target-newlib:
6aa8ef82 38443 @: $(MAKE); $(unstage)
22121df0 38444 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38445 r=`${PWD_COMMAND}`; export r; \
38446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38447 $(NORMAL_TARGET_EXPORTS) \
22121df0 38448 echo "Doing distclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38449 for flag in $(EXTRA_TARGET_FLAGS); do \
38450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38451 done; \
a90ef4bf 38452 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38455 "RANLIB=$${RANLIB}" \
0c24b341 38456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38457 distclean) \
38458 || exit 1
38459
a90ef4bf 38460@endif target-newlib
6aa8ef82 38461
a90ef4bf
JM
38462.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
38463maybe-maintainer-clean-target-newlib:
38464@if target-newlib
38465maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 38466
a90ef4bf 38467maintainer-clean-target-newlib:
6aa8ef82 38468 @: $(MAKE); $(unstage)
22121df0 38469 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
38470 r=`${PWD_COMMAND}`; export r; \
38471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38472 $(NORMAL_TARGET_EXPORTS) \
22121df0 38473 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
38474 for flag in $(EXTRA_TARGET_FLAGS); do \
38475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38476 done; \
a90ef4bf 38477 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
38478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38480 "RANLIB=$${RANLIB}" \
0c24b341 38481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
38482 maintainer-clean) \
38483 || exit 1
38484
a90ef4bf 38485@endif target-newlib
6aa8ef82
DJ
38486
38487
38488
38489
38490
a90ef4bf
JM
38491.PHONY: configure-target-libgcc maybe-configure-target-libgcc
38492maybe-configure-target-libgcc:
e552509b 38493@if gcc-bootstrap
a90ef4bf 38494configure-target-libgcc: stage_current
e552509b 38495@endif gcc-bootstrap
a90ef4bf
JM
38496@if target-libgcc
38497maybe-configure-target-libgcc: configure-target-libgcc
38498configure-target-libgcc:
e552509b
ILT
38499 @r=`${PWD_COMMAND}`; export r; \
38500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38501 echo "Checking multilib configuration for libgcc..."; \
22121df0
L
38502 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
38503 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38504 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38505 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38506 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 38507 else \
a90ef4bf
JM
38508 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38509 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
38510 fi; \
38511 else \
a90ef4bf 38512 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 38513 fi; \
a90ef4bf 38514 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
22121df0 38515 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
e552509b 38516 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38517 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
38518 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
38519 case $(srcdir) in \
38520 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 38521 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
38522 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38523 esac; \
1b6c0831 38524 module_srcdir=libgcc; \
e552509b 38525 rm -f no-such-file || : ; \
1b6c0831
L
38526 CONFIG_SITE=no-such-file $(SHELL) \
38527 $$s/$$module_srcdir/configure \
38528 --srcdir=$${topdir}/$$module_srcdir \
e552509b 38529 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38530 --target=${target_alias} \
e552509b 38531 || exit 1
a90ef4bf 38532@endif target-libgcc
e552509b
ILT
38533
38534
e552509b 38535
a90ef4bf
JM
38536.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
38537maybe-configure-stage1-target-libgcc:
38538@if target-libgcc-bootstrap
38539maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
38540configure-stage1-target-libgcc:
38541 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38542 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
38543 @r=`${PWD_COMMAND}`; export r; \
38544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38545 TFLAGS="$(STAGE1_TFLAGS)"; \
38546 echo "Checking multilib configuration for libgcc..."; \
22121df0 38547 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38548 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38549 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38550 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38551 else \
38552 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38553 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38554 fi; \
38555 else \
38556 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38557 fi; \
38558 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38559 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38560 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38561 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38562 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38563 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc; \
38564 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38565 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38566 case $(srcdir) in \
38567 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38568 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38569 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38570 esac; \
1b6c0831
L
38571 module_srcdir=libgcc; \
38572 $(SHELL) $$s/$$module_srcdir/configure \
38573 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38574 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38575 --target=${target_alias} \
38576 \
a90ef4bf
JM
38577 $(STAGE1_CONFIGURE_FLAGS)
38578@endif target-libgcc-bootstrap
e552509b 38579
a90ef4bf
JM
38580.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
38581maybe-configure-stage2-target-libgcc:
38582@if target-libgcc-bootstrap
38583maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
38584configure-stage2-target-libgcc:
38585 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38586 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
38587 @r=`${PWD_COMMAND}`; export r; \
38588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38589 TFLAGS="$(STAGE2_TFLAGS)"; \
38590 echo "Checking multilib configuration for libgcc..."; \
22121df0 38591 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38592 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38593 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38594 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38595 else \
38596 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38597 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38598 fi; \
38599 else \
38600 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38601 fi; \
38602 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38603 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38604 \
38605 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38606 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38607 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38608 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc; \
38609 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38610 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38611 case $(srcdir) in \
38612 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38613 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38614 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38615 esac; \
1b6c0831
L
38616 module_srcdir=libgcc; \
38617 $(SHELL) $$s/$$module_srcdir/configure \
38618 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38619 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38620 --target=${target_alias} \
22121df0 38621 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38622 $(STAGE2_CONFIGURE_FLAGS)
38623@endif target-libgcc-bootstrap
9b980aa1 38624
a90ef4bf
JM
38625.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
38626maybe-configure-stage3-target-libgcc:
38627@if target-libgcc-bootstrap
38628maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
38629configure-stage3-target-libgcc:
38630 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38631 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
38632 @r=`${PWD_COMMAND}`; export r; \
38633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38634 TFLAGS="$(STAGE3_TFLAGS)"; \
38635 echo "Checking multilib configuration for libgcc..."; \
22121df0 38636 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38637 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38638 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38639 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38640 else \
38641 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38642 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38643 fi; \
38644 else \
38645 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38646 fi; \
38647 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 38648 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38649 \
38650 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38651 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38652 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38653 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc; \
38654 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38655 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38656 case $(srcdir) in \
38657 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38658 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38659 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38660 esac; \
1b6c0831
L
38661 module_srcdir=libgcc; \
38662 $(SHELL) $$s/$$module_srcdir/configure \
38663 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38664 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38665 --target=${target_alias} \
22121df0 38666 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38667 $(STAGE3_CONFIGURE_FLAGS)
38668@endif target-libgcc-bootstrap
e552509b 38669
a90ef4bf
JM
38670.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
38671maybe-configure-stage4-target-libgcc:
38672@if target-libgcc-bootstrap
38673maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
38674configure-stage4-target-libgcc:
38675 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38676 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38677 @r=`${PWD_COMMAND}`; export r; \
e552509b 38678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38679 TFLAGS="$(STAGE4_TFLAGS)"; \
38680 echo "Checking multilib configuration for libgcc..."; \
22121df0 38681 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38682 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38683 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38684 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38685 else \
38686 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38687 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38688 fi; \
38689 else \
38690 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38691 fi; \
38692 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38693 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38694 \
38695 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38696 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38697 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38698 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc; \
38699 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38700 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38701 case $(srcdir) in \
38702 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38703 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38704 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38705 esac; \
1b6c0831
L
38706 module_srcdir=libgcc; \
38707 $(SHELL) $$s/$$module_srcdir/configure \
38708 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38709 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38710 --target=${target_alias} \
22121df0 38711 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38712 $(STAGE4_CONFIGURE_FLAGS)
38713@endif target-libgcc-bootstrap
38714
38715.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
38716maybe-configure-stageprofile-target-libgcc:
38717@if target-libgcc-bootstrap
38718maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
38719configure-stageprofile-target-libgcc:
38720 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38721 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38722 @r=`${PWD_COMMAND}`; export r; \
e552509b 38723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38724 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38725 echo "Checking multilib configuration for libgcc..."; \
22121df0 38726 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38727 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38728 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38729 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38730 else \
38731 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38732 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38733 fi; \
38734 else \
38735 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38736 fi; \
38737 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38738 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38739 \
38740 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38741 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38742 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38743 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc; \
38744 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38745 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38746 case $(srcdir) in \
38747 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38748 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38749 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38750 esac; \
1b6c0831
L
38751 module_srcdir=libgcc; \
38752 $(SHELL) $$s/$$module_srcdir/configure \
38753 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38754 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38755 --target=${target_alias} \
22121df0 38756 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38757 $(STAGEprofile_CONFIGURE_FLAGS)
38758@endif target-libgcc-bootstrap
e552509b 38759
a90ef4bf
JM
38760.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
38761maybe-configure-stagefeedback-target-libgcc:
38762@if target-libgcc-bootstrap
38763maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
38764configure-stagefeedback-target-libgcc:
38765 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38766 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
38767 @r=`${PWD_COMMAND}`; export r; \
e552509b 38768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38769 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38770 echo "Checking multilib configuration for libgcc..."; \
22121df0 38771 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38772 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38773 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
38774 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
38775 else \
38776 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
38777 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38778 fi; \
38779 else \
38780 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
38781 fi; \
38782 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 38783 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38784 \
38785 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38786 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38787 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38788 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc; \
38789 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
38790 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
38791 case $(srcdir) in \
38792 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38793 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
38794 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38795 esac; \
1b6c0831
L
38796 module_srcdir=libgcc; \
38797 $(SHELL) $$s/$$module_srcdir/configure \
38798 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 38799 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38800 --target=${target_alias} \
22121df0 38801 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
38802 $(STAGEfeedback_CONFIGURE_FLAGS)
38803@endif target-libgcc-bootstrap
e552509b 38804
e552509b 38805
e552509b 38806
e552509b 38807
e552509b 38808
a90ef4bf
JM
38809.PHONY: all-target-libgcc maybe-all-target-libgcc
38810maybe-all-target-libgcc:
38811@if gcc-bootstrap
38812all-target-libgcc: stage_current
38813@endif gcc-bootstrap
38814@if target-libgcc
38815TARGET-target-libgcc=all
38816maybe-all-target-libgcc: all-target-libgcc
38817all-target-libgcc: configure-target-libgcc
38818 @r=`${PWD_COMMAND}`; export r; \
e552509b 38819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38820 $(NORMAL_TARGET_EXPORTS) \
38821 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38822 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
38823 $(TARGET-target-libgcc))
38824@endif target-libgcc
e552509b 38825
e552509b 38826
e552509b 38827
a90ef4bf
JM
38828.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
38829.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
38830maybe-all-stage1-target-libgcc:
38831maybe-clean-stage1-target-libgcc:
38832@if target-libgcc-bootstrap
38833maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
38834all-stage1: all-stage1-target-libgcc
38835TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
38836all-stage1-target-libgcc: configure-stage1-target-libgcc
38837 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38838 @r=`${PWD_COMMAND}`; export r; \
e552509b 38839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
38840 TFLAGS="$(STAGE1_TFLAGS)"; \
38841 $(NORMAL_TARGET_EXPORTS) \
38842 cd $(TARGET_SUBDIR)/libgcc && \
38843 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38844 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38845 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38846 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38847 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38848 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38849 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
38850 $(EXTRA_TARGET_FLAGS) \
38851 \
a90ef4bf
JM
38852 TFLAGS="$(STAGE1_TFLAGS)" \
38853 $(TARGET-stage1-target-libgcc)
e552509b 38854
a90ef4bf
JM
38855maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
38856clean-stage1: clean-stage1-target-libgcc
38857clean-stage1-target-libgcc:
38858 @if [ $(current_stage) = stage1 ]; then \
38859 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38860 else \
38861 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
38862 $(MAKE) stage1-start; \
38863 fi; \
38864 cd $(TARGET_SUBDIR)/libgcc && \
38865 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 38866 clean
a90ef4bf 38867@endif target-libgcc-bootstrap
e552509b 38868
e552509b 38869
a90ef4bf
JM
38870.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
38871.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
38872maybe-all-stage2-target-libgcc:
38873maybe-clean-stage2-target-libgcc:
38874@if target-libgcc-bootstrap
38875maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
38876all-stage2: all-stage2-target-libgcc
38877TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
38878all-stage2-target-libgcc: configure-stage2-target-libgcc
38879 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38880 @r=`${PWD_COMMAND}`; export r; \
e552509b 38881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38882 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 38883 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38884 \
38885 cd $(TARGET_SUBDIR)/libgcc && \
38886 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38887 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38888 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38889 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38890 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38891 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38892 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38893 $(EXTRA_TARGET_FLAGS) \
38894 TFLAGS="$(STAGE2_TFLAGS)" \
38895 $(TARGET-stage2-target-libgcc)
e552509b 38896
a90ef4bf
JM
38897maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
38898clean-stage2: clean-stage2-target-libgcc
38899clean-stage2-target-libgcc:
38900 @if [ $(current_stage) = stage2 ]; then \
38901 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38902 else \
38903 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
38904 $(MAKE) stage2-start; \
38905 fi; \
38906 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38907 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38908@endif target-libgcc-bootstrap
e552509b 38909
e552509b 38910
a90ef4bf
JM
38911.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
38912.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
38913maybe-all-stage3-target-libgcc:
38914maybe-clean-stage3-target-libgcc:
38915@if target-libgcc-bootstrap
38916maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
38917all-stage3: all-stage3-target-libgcc
38918TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
38919all-stage3-target-libgcc: configure-stage3-target-libgcc
38920 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38921 @r=`${PWD_COMMAND}`; export r; \
e552509b 38922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38923 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 38924 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38925 \
38926 cd $(TARGET_SUBDIR)/libgcc && \
38927 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38928 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38929 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38930 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38931 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38932 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38933 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38934 $(EXTRA_TARGET_FLAGS) \
38935 TFLAGS="$(STAGE3_TFLAGS)" \
38936 $(TARGET-stage3-target-libgcc)
e552509b 38937
a90ef4bf
JM
38938maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
38939clean-stage3: clean-stage3-target-libgcc
38940clean-stage3-target-libgcc:
38941 @if [ $(current_stage) = stage3 ]; then \
38942 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38943 else \
38944 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
38945 $(MAKE) stage3-start; \
38946 fi; \
38947 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38948 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38949@endif target-libgcc-bootstrap
e552509b 38950
e552509b 38951
a90ef4bf
JM
38952.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
38953.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
38954maybe-all-stage4-target-libgcc:
38955maybe-clean-stage4-target-libgcc:
38956@if target-libgcc-bootstrap
38957maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
38958all-stage4: all-stage4-target-libgcc
38959TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
38960all-stage4-target-libgcc: configure-stage4-target-libgcc
38961 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38962 @r=`${PWD_COMMAND}`; export r; \
e552509b 38963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38964 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 38965 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38966 \
38967 cd $(TARGET_SUBDIR)/libgcc && \
38968 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38969 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38970 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38971 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38972 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38973 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38974 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38975 $(EXTRA_TARGET_FLAGS) \
38976 TFLAGS="$(STAGE4_TFLAGS)" \
38977 $(TARGET-stage4-target-libgcc)
e552509b 38978
a90ef4bf
JM
38979maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
38980clean-stage4: clean-stage4-target-libgcc
38981clean-stage4-target-libgcc:
38982 @if [ $(current_stage) = stage4 ]; then \
38983 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
38984 else \
38985 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
38986 $(MAKE) stage4-start; \
38987 fi; \
38988 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 38989 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 38990@endif target-libgcc-bootstrap
e552509b
ILT
38991
38992
a90ef4bf
JM
38993.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
38994.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
38995maybe-all-stageprofile-target-libgcc:
38996maybe-clean-stageprofile-target-libgcc:
38997@if target-libgcc-bootstrap
38998maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
38999all-stageprofile: all-stageprofile-target-libgcc
39000TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
39001all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
39002 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
39003 @r=`${PWD_COMMAND}`; export r; \
39004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39005 TFLAGS="$(STAGEprofile_TFLAGS)"; \
39006 $(NORMAL_TARGET_EXPORTS) \
39007 \
39008 cd $(TARGET_SUBDIR)/libgcc && \
39009 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39010 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39011 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39012 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39013 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39014 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39015 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39016 $(EXTRA_TARGET_FLAGS) \
39017 TFLAGS="$(STAGEprofile_TFLAGS)" \
39018 $(TARGET-stageprofile-target-libgcc)
39019
39020maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
39021clean-stageprofile: clean-stageprofile-target-libgcc
39022clean-stageprofile-target-libgcc:
39023 @if [ $(current_stage) = stageprofile ]; then \
39024 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 39025 else \
a90ef4bf
JM
39026 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
39027 $(MAKE) stageprofile-start; \
c52c6897 39028 fi; \
a90ef4bf 39029 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 39030 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 39031@endif target-libgcc-bootstrap
d545f33b
PB
39032
39033
a90ef4bf
JM
39034.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
39035.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
39036maybe-all-stagefeedback-target-libgcc:
39037maybe-clean-stagefeedback-target-libgcc:
39038@if target-libgcc-bootstrap
39039maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
39040all-stagefeedback: all-stagefeedback-target-libgcc
39041TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
39042all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
39043 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
39044 @r=`${PWD_COMMAND}`; export r; \
39045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39046 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
39047 $(NORMAL_TARGET_EXPORTS) \
39048 \
39049 cd $(TARGET_SUBDIR)/libgcc && \
39050 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39051 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39052 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39053 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39054 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39055 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39056 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39057 $(EXTRA_TARGET_FLAGS) \
39058 TFLAGS="$(STAGEfeedback_TFLAGS)" \
39059 $(TARGET-stagefeedback-target-libgcc)
39060
39061maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
39062clean-stagefeedback: clean-stagefeedback-target-libgcc
39063clean-stagefeedback-target-libgcc:
39064 @if [ $(current_stage) = stagefeedback ]; then \
39065 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
39066 else \
39067 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
39068 $(MAKE) stagefeedback-start; \
39069 fi; \
39070 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 39071 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 39072@endif target-libgcc-bootstrap
4b1cb4fe 39073
a7254363
PB
39074
39075
d545f33b
PB
39076
39077
4b1cb4fe 39078
a90ef4bf
JM
39079.PHONY: check-target-libgcc maybe-check-target-libgcc
39080maybe-check-target-libgcc:
39081@if target-libgcc
39082maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 39083
a90ef4bf
JM
39084# Dummy target for uncheckable module.
39085check-target-libgcc:
4b1cb4fe 39086
a90ef4bf 39087@endif target-libgcc
4b1cb4fe 39088
a90ef4bf
JM
39089.PHONY: install-target-libgcc maybe-install-target-libgcc
39090maybe-install-target-libgcc:
39091@if target-libgcc
39092maybe-install-target-libgcc: install-target-libgcc
39093
39094install-target-libgcc: installdirs
0aed8855 39095 @: $(MAKE); $(unstage)
4b1cb4fe
DD
39096 @r=`${PWD_COMMAND}`; export r; \
39097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39098 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39099 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 39100 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 39101
a90ef4bf 39102@endif target-libgcc
4b1cb4fe 39103
a90ef4bf
JM
39104.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
39105maybe-install-strip-target-libgcc:
39106@if target-libgcc
39107maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 39108
a90ef4bf 39109install-strip-target-libgcc: installdirs
9b980aa1
RW
39110 @: $(MAKE); $(unstage)
39111 @r=`${PWD_COMMAND}`; export r; \
39112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39113 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39114 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
39115 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39116
a90ef4bf 39117@endif target-libgcc
9b980aa1 39118
56a8fe78 39119# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 39120
a90ef4bf
JM
39121.PHONY: maybe-info-target-libgcc info-target-libgcc
39122maybe-info-target-libgcc:
39123@if target-libgcc
39124maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 39125
a90ef4bf
JM
39126info-target-libgcc: \
39127 configure-target-libgcc
0aed8855 39128 @: $(MAKE); $(unstage)
22121df0 39129 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39130 r=`${PWD_COMMAND}`; export r; \
39131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39132 $(NORMAL_TARGET_EXPORTS) \
22121df0 39133 echo "Doing info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39134 for flag in $(EXTRA_TARGET_FLAGS); do \
39135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39136 done; \
a90ef4bf 39137 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39140 "RANLIB=$${RANLIB}" \
0c24b341 39141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39142 info) \
4b1cb4fe
DD
39143 || exit 1
39144
a90ef4bf 39145@endif target-libgcc
4b1cb4fe 39146
a90ef4bf
JM
39147.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
39148maybe-dvi-target-libgcc:
39149@if target-libgcc
39150maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 39151
a90ef4bf
JM
39152dvi-target-libgcc: \
39153 configure-target-libgcc
0aed8855 39154 @: $(MAKE); $(unstage)
22121df0 39155 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39156 r=`${PWD_COMMAND}`; export r; \
39157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39158 $(NORMAL_TARGET_EXPORTS) \
22121df0 39159 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39160 for flag in $(EXTRA_TARGET_FLAGS); do \
39161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39162 done; \
a90ef4bf 39163 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39166 "RANLIB=$${RANLIB}" \
0c24b341 39167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39168 dvi) \
4b1cb4fe
DD
39169 || exit 1
39170
a90ef4bf 39171@endif target-libgcc
4b1cb4fe 39172
a90ef4bf
JM
39173.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
39174maybe-pdf-target-libgcc:
39175@if target-libgcc
39176maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 39177
a90ef4bf
JM
39178pdf-target-libgcc: \
39179 configure-target-libgcc
56a8fe78 39180 @: $(MAKE); $(unstage)
22121df0 39181 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
56a8fe78
DD
39182 r=`${PWD_COMMAND}`; export r; \
39183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39184 $(NORMAL_TARGET_EXPORTS) \
22121df0 39185 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc"; \
56a8fe78
DD
39186 for flag in $(EXTRA_TARGET_FLAGS); do \
39187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39188 done; \
a90ef4bf 39189 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
39190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39192 "RANLIB=$${RANLIB}" \
0c24b341 39193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
39194 pdf) \
39195 || exit 1
39196
a90ef4bf 39197@endif target-libgcc
56a8fe78 39198
a90ef4bf
JM
39199.PHONY: maybe-html-target-libgcc html-target-libgcc
39200maybe-html-target-libgcc:
39201@if target-libgcc
39202maybe-html-target-libgcc: html-target-libgcc
6d389afc 39203
a90ef4bf
JM
39204html-target-libgcc: \
39205 configure-target-libgcc
0aed8855 39206 @: $(MAKE); $(unstage)
22121df0 39207 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
6d389afc
MS
39208 r=`${PWD_COMMAND}`; export r; \
39209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 39210 $(NORMAL_TARGET_EXPORTS) \
22121df0 39211 echo "Doing html in $(TARGET_SUBDIR)/libgcc"; \
6d389afc
MS
39212 for flag in $(EXTRA_TARGET_FLAGS); do \
39213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39214 done; \
a90ef4bf 39215 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
39216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39218 "RANLIB=$${RANLIB}" \
0c24b341 39219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
39220 html) \
39221 || exit 1
39222
a90ef4bf 39223@endif target-libgcc
6d389afc 39224
a90ef4bf
JM
39225.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
39226maybe-TAGS-target-libgcc:
39227@if target-libgcc
39228maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 39229
a90ef4bf
JM
39230TAGS-target-libgcc: \
39231 configure-target-libgcc
0aed8855 39232 @: $(MAKE); $(unstage)
22121df0 39233 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39234 r=`${PWD_COMMAND}`; export r; \
39235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39236 $(NORMAL_TARGET_EXPORTS) \
22121df0 39237 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39238 for flag in $(EXTRA_TARGET_FLAGS); do \
39239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39240 done; \
a90ef4bf 39241 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39244 "RANLIB=$${RANLIB}" \
0c24b341 39245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39246 TAGS) \
4b1cb4fe
DD
39247 || exit 1
39248
a90ef4bf 39249@endif target-libgcc
4b1cb4fe 39250
a90ef4bf
JM
39251.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
39252maybe-install-info-target-libgcc:
39253@if target-libgcc
39254maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 39255
a90ef4bf
JM
39256install-info-target-libgcc: \
39257 configure-target-libgcc \
39258 info-target-libgcc
0aed8855 39259 @: $(MAKE); $(unstage)
22121df0 39260 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39261 r=`${PWD_COMMAND}`; export r; \
39262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39263 $(NORMAL_TARGET_EXPORTS) \
22121df0 39264 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39265 for flag in $(EXTRA_TARGET_FLAGS); do \
39266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39267 done; \
a90ef4bf 39268 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39271 "RANLIB=$${RANLIB}" \
0c24b341 39272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39273 install-info) \
4b1cb4fe
DD
39274 || exit 1
39275
a90ef4bf 39276@endif target-libgcc
4b1cb4fe 39277
a90ef4bf
JM
39278.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
39279maybe-install-pdf-target-libgcc:
39280@if target-libgcc
39281maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 39282
a90ef4bf
JM
39283install-pdf-target-libgcc: \
39284 configure-target-libgcc \
39285 pdf-target-libgcc
a3ca38d2 39286 @: $(MAKE); $(unstage)
22121df0 39287 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
a3ca38d2
DD
39288 r=`${PWD_COMMAND}`; export r; \
39289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39290 $(NORMAL_TARGET_EXPORTS) \
22121df0 39291 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc"; \
a3ca38d2
DD
39292 for flag in $(EXTRA_TARGET_FLAGS); do \
39293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39294 done; \
a90ef4bf 39295 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
39296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39298 "RANLIB=$${RANLIB}" \
0c24b341 39299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
39300 install-pdf) \
39301 || exit 1
39302
a90ef4bf 39303@endif target-libgcc
a3ca38d2 39304
a90ef4bf
JM
39305.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
39306maybe-install-html-target-libgcc:
39307@if target-libgcc
39308maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 39309
a90ef4bf
JM
39310install-html-target-libgcc: \
39311 configure-target-libgcc \
39312 html-target-libgcc
108a6f8e 39313 @: $(MAKE); $(unstage)
22121df0 39314 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
108a6f8e
CD
39315 r=`${PWD_COMMAND}`; export r; \
39316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39317 $(NORMAL_TARGET_EXPORTS) \
22121df0 39318 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc"; \
108a6f8e
CD
39319 for flag in $(EXTRA_TARGET_FLAGS); do \
39320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39321 done; \
a90ef4bf 39322 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
39323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39325 "RANLIB=$${RANLIB}" \
0c24b341 39326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
39327 install-html) \
39328 || exit 1
39329
a90ef4bf 39330@endif target-libgcc
108a6f8e 39331
a90ef4bf
JM
39332.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
39333maybe-installcheck-target-libgcc:
39334@if target-libgcc
39335maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 39336
a90ef4bf
JM
39337installcheck-target-libgcc: \
39338 configure-target-libgcc
0aed8855 39339 @: $(MAKE); $(unstage)
22121df0 39340 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39341 r=`${PWD_COMMAND}`; export r; \
39342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39343 $(NORMAL_TARGET_EXPORTS) \
22121df0 39344 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39345 for flag in $(EXTRA_TARGET_FLAGS); do \
39346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39347 done; \
a90ef4bf 39348 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39351 "RANLIB=$${RANLIB}" \
0c24b341 39352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39353 installcheck) \
4b1cb4fe
DD
39354 || exit 1
39355
a90ef4bf 39356@endif target-libgcc
4b1cb4fe 39357
a90ef4bf
JM
39358.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
39359maybe-mostlyclean-target-libgcc:
39360@if target-libgcc
39361maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 39362
a90ef4bf 39363mostlyclean-target-libgcc:
0aed8855 39364 @: $(MAKE); $(unstage)
22121df0 39365 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39366 r=`${PWD_COMMAND}`; export r; \
39367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39368 $(NORMAL_TARGET_EXPORTS) \
22121df0 39369 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39370 for flag in $(EXTRA_TARGET_FLAGS); do \
39371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39372 done; \
a90ef4bf 39373 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39376 "RANLIB=$${RANLIB}" \
0c24b341 39377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39378 mostlyclean) \
4b1cb4fe
DD
39379 || exit 1
39380
a90ef4bf 39381@endif target-libgcc
4b1cb4fe 39382
a90ef4bf
JM
39383.PHONY: maybe-clean-target-libgcc clean-target-libgcc
39384maybe-clean-target-libgcc:
39385@if target-libgcc
39386maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 39387
a90ef4bf 39388clean-target-libgcc:
0aed8855 39389 @: $(MAKE); $(unstage)
22121df0 39390 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39391 r=`${PWD_COMMAND}`; export r; \
39392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39393 $(NORMAL_TARGET_EXPORTS) \
22121df0 39394 echo "Doing clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39395 for flag in $(EXTRA_TARGET_FLAGS); do \
39396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39397 done; \
a90ef4bf 39398 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39401 "RANLIB=$${RANLIB}" \
0c24b341 39402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39403 clean) \
4b1cb4fe
DD
39404 || exit 1
39405
a90ef4bf 39406@endif target-libgcc
4b1cb4fe 39407
a90ef4bf
JM
39408.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
39409maybe-distclean-target-libgcc:
39410@if target-libgcc
39411maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 39412
a90ef4bf 39413distclean-target-libgcc:
0aed8855 39414 @: $(MAKE); $(unstage)
22121df0 39415 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39416 r=`${PWD_COMMAND}`; export r; \
39417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39418 $(NORMAL_TARGET_EXPORTS) \
22121df0 39419 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39420 for flag in $(EXTRA_TARGET_FLAGS); do \
39421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39422 done; \
a90ef4bf 39423 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39426 "RANLIB=$${RANLIB}" \
0c24b341 39427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39428 distclean) \
4b1cb4fe
DD
39429 || exit 1
39430
a90ef4bf 39431@endif target-libgcc
4b1cb4fe 39432
a90ef4bf
JM
39433.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
39434maybe-maintainer-clean-target-libgcc:
39435@if target-libgcc
39436maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 39437
a90ef4bf 39438maintainer-clean-target-libgcc:
0aed8855 39439 @: $(MAKE); $(unstage)
22121df0 39440 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
39441 r=`${PWD_COMMAND}`; export r; \
39442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39443 $(NORMAL_TARGET_EXPORTS) \
22121df0 39444 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
39445 for flag in $(EXTRA_TARGET_FLAGS); do \
39446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39447 done; \
a90ef4bf 39448 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
39449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39451 "RANLIB=$${RANLIB}" \
0c24b341 39452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39453 maintainer-clean) \
4b1cb4fe
DD
39454 || exit 1
39455
a90ef4bf 39456@endif target-libgcc
4b1cb4fe
DD
39457
39458
3866be5d 39459
a7254363 39460
e90269c8 39461
2bf680c4
ILT
39462.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
39463maybe-configure-target-libbacktrace:
39464@if gcc-bootstrap
39465configure-target-libbacktrace: stage_current
39466@endif gcc-bootstrap
39467@if target-libbacktrace
39468maybe-configure-target-libbacktrace: configure-target-libbacktrace
39469configure-target-libbacktrace:
39470 @: $(MAKE); $(unstage)
39471 @r=`${PWD_COMMAND}`; export r; \
39472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39473 echo "Checking multilib configuration for libbacktrace..."; \
22121df0
L
39474 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
39475 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null; \
2bf680c4
ILT
39476 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
39477 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
39478 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
39479 else \
39480 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
39481 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
39482 fi; \
39483 else \
39484 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
39485 fi; \
39486 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 39487 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
2bf680c4
ILT
39488 $(NORMAL_TARGET_EXPORTS) \
39489 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
39490 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
39491 case $(srcdir) in \
39492 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39493 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
39494 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39495 esac; \
1b6c0831 39496 module_srcdir=libbacktrace; \
2bf680c4 39497 rm -f no-such-file || : ; \
1b6c0831
L
39498 CONFIG_SITE=no-such-file $(SHELL) \
39499 $$s/$$module_srcdir/configure \
39500 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 39501 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39502 --target=${target_alias} \
2bf680c4
ILT
39503 || exit 1
39504@endif target-libbacktrace
39505
39506
39507
39508
39509
39510.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
39511maybe-all-target-libbacktrace:
39512@if gcc-bootstrap
39513all-target-libbacktrace: stage_current
39514@endif gcc-bootstrap
39515@if target-libbacktrace
39516TARGET-target-libbacktrace=all
39517maybe-all-target-libbacktrace: all-target-libbacktrace
39518all-target-libbacktrace: configure-target-libbacktrace
39519 @: $(MAKE); $(unstage)
39520 @r=`${PWD_COMMAND}`; export r; \
39521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39522 $(NORMAL_TARGET_EXPORTS) \
39523 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 39524 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
39525 $(TARGET-target-libbacktrace))
39526@endif target-libbacktrace
39527
39528
39529
39530
39531
39532.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
39533maybe-check-target-libbacktrace:
39534@if target-libbacktrace
39535maybe-check-target-libbacktrace: check-target-libbacktrace
39536
39537check-target-libbacktrace:
39538 @: $(MAKE); $(unstage)
39539 @r=`${PWD_COMMAND}`; export r; \
39540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39541 $(NORMAL_TARGET_EXPORTS) \
39542 (cd $(TARGET_SUBDIR)/libbacktrace && \
39543 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39544
39545@endif target-libbacktrace
39546
39547.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
39548maybe-install-target-libbacktrace:
39549@if target-libbacktrace
39550maybe-install-target-libbacktrace: install-target-libbacktrace
39551
39552install-target-libbacktrace: installdirs
39553 @: $(MAKE); $(unstage)
39554 @r=`${PWD_COMMAND}`; export r; \
39555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39556 $(NORMAL_TARGET_EXPORTS) \
39557 (cd $(TARGET_SUBDIR)/libbacktrace && \
39558 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39559
39560@endif target-libbacktrace
39561
39562.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
39563maybe-install-strip-target-libbacktrace:
39564@if target-libbacktrace
39565maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
39566
39567install-strip-target-libbacktrace: installdirs
39568 @: $(MAKE); $(unstage)
39569 @r=`${PWD_COMMAND}`; export r; \
39570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39571 $(NORMAL_TARGET_EXPORTS) \
39572 (cd $(TARGET_SUBDIR)/libbacktrace && \
39573 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39574
39575@endif target-libbacktrace
39576
39577# Other targets (info, dvi, pdf, etc.)
39578
39579.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
39580maybe-info-target-libbacktrace:
39581@if target-libbacktrace
39582maybe-info-target-libbacktrace: info-target-libbacktrace
39583
39584info-target-libbacktrace: \
39585 configure-target-libbacktrace
39586 @: $(MAKE); $(unstage)
22121df0 39587 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39588 r=`${PWD_COMMAND}`; export r; \
39589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39590 $(NORMAL_TARGET_EXPORTS) \
22121df0 39591 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39592 for flag in $(EXTRA_TARGET_FLAGS); do \
39593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39594 done; \
39595 (cd $(TARGET_SUBDIR)/libbacktrace && \
39596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39598 "RANLIB=$${RANLIB}" \
39599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39600 info) \
39601 || exit 1
39602
39603@endif target-libbacktrace
39604
39605.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
39606maybe-dvi-target-libbacktrace:
39607@if target-libbacktrace
39608maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
39609
39610dvi-target-libbacktrace: \
39611 configure-target-libbacktrace
39612 @: $(MAKE); $(unstage)
22121df0 39613 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39614 r=`${PWD_COMMAND}`; export r; \
39615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39616 $(NORMAL_TARGET_EXPORTS) \
22121df0 39617 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39618 for flag in $(EXTRA_TARGET_FLAGS); do \
39619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39620 done; \
39621 (cd $(TARGET_SUBDIR)/libbacktrace && \
39622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39624 "RANLIB=$${RANLIB}" \
39625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39626 dvi) \
39627 || exit 1
39628
39629@endif target-libbacktrace
39630
39631.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
39632maybe-pdf-target-libbacktrace:
39633@if target-libbacktrace
39634maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
39635
39636pdf-target-libbacktrace: \
39637 configure-target-libbacktrace
39638 @: $(MAKE); $(unstage)
22121df0 39639 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39640 r=`${PWD_COMMAND}`; export r; \
39641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39642 $(NORMAL_TARGET_EXPORTS) \
22121df0 39643 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39644 for flag in $(EXTRA_TARGET_FLAGS); do \
39645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39646 done; \
39647 (cd $(TARGET_SUBDIR)/libbacktrace && \
39648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39650 "RANLIB=$${RANLIB}" \
39651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39652 pdf) \
39653 || exit 1
39654
39655@endif target-libbacktrace
39656
39657.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
39658maybe-html-target-libbacktrace:
39659@if target-libbacktrace
39660maybe-html-target-libbacktrace: html-target-libbacktrace
39661
39662html-target-libbacktrace: \
39663 configure-target-libbacktrace
39664 @: $(MAKE); $(unstage)
22121df0 39665 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39666 r=`${PWD_COMMAND}`; export r; \
39667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39668 $(NORMAL_TARGET_EXPORTS) \
22121df0 39669 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39670 for flag in $(EXTRA_TARGET_FLAGS); do \
39671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39672 done; \
39673 (cd $(TARGET_SUBDIR)/libbacktrace && \
39674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39676 "RANLIB=$${RANLIB}" \
39677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39678 html) \
39679 || exit 1
39680
39681@endif target-libbacktrace
39682
39683.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
39684maybe-TAGS-target-libbacktrace:
39685@if target-libbacktrace
39686maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
39687
39688TAGS-target-libbacktrace: \
39689 configure-target-libbacktrace
39690 @: $(MAKE); $(unstage)
22121df0 39691 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39692 r=`${PWD_COMMAND}`; export r; \
39693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39694 $(NORMAL_TARGET_EXPORTS) \
22121df0 39695 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39696 for flag in $(EXTRA_TARGET_FLAGS); do \
39697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39698 done; \
39699 (cd $(TARGET_SUBDIR)/libbacktrace && \
39700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39702 "RANLIB=$${RANLIB}" \
39703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39704 TAGS) \
39705 || exit 1
39706
39707@endif target-libbacktrace
39708
39709.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
39710maybe-install-info-target-libbacktrace:
39711@if target-libbacktrace
39712maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
39713
39714install-info-target-libbacktrace: \
39715 configure-target-libbacktrace \
39716 info-target-libbacktrace
39717 @: $(MAKE); $(unstage)
22121df0 39718 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39719 r=`${PWD_COMMAND}`; export r; \
39720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39721 $(NORMAL_TARGET_EXPORTS) \
22121df0 39722 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39723 for flag in $(EXTRA_TARGET_FLAGS); do \
39724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39725 done; \
39726 (cd $(TARGET_SUBDIR)/libbacktrace && \
39727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39729 "RANLIB=$${RANLIB}" \
39730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39731 install-info) \
39732 || exit 1
39733
39734@endif target-libbacktrace
39735
39736.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
39737maybe-install-pdf-target-libbacktrace:
39738@if target-libbacktrace
39739maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
39740
39741install-pdf-target-libbacktrace: \
39742 configure-target-libbacktrace \
39743 pdf-target-libbacktrace
39744 @: $(MAKE); $(unstage)
22121df0 39745 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39746 r=`${PWD_COMMAND}`; export r; \
39747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39748 $(NORMAL_TARGET_EXPORTS) \
22121df0 39749 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39750 for flag in $(EXTRA_TARGET_FLAGS); do \
39751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39752 done; \
39753 (cd $(TARGET_SUBDIR)/libbacktrace && \
39754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39756 "RANLIB=$${RANLIB}" \
39757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39758 install-pdf) \
39759 || exit 1
39760
39761@endif target-libbacktrace
39762
39763.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
39764maybe-install-html-target-libbacktrace:
39765@if target-libbacktrace
39766maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
39767
39768install-html-target-libbacktrace: \
39769 configure-target-libbacktrace \
39770 html-target-libbacktrace
39771 @: $(MAKE); $(unstage)
22121df0 39772 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39773 r=`${PWD_COMMAND}`; export r; \
39774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39775 $(NORMAL_TARGET_EXPORTS) \
22121df0 39776 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39777 for flag in $(EXTRA_TARGET_FLAGS); do \
39778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39779 done; \
39780 (cd $(TARGET_SUBDIR)/libbacktrace && \
39781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39783 "RANLIB=$${RANLIB}" \
39784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39785 install-html) \
39786 || exit 1
39787
39788@endif target-libbacktrace
39789
39790.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
39791maybe-installcheck-target-libbacktrace:
39792@if target-libbacktrace
39793maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
39794
39795installcheck-target-libbacktrace: \
39796 configure-target-libbacktrace
39797 @: $(MAKE); $(unstage)
22121df0 39798 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39799 r=`${PWD_COMMAND}`; export r; \
39800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39801 $(NORMAL_TARGET_EXPORTS) \
22121df0 39802 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39803 for flag in $(EXTRA_TARGET_FLAGS); do \
39804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39805 done; \
39806 (cd $(TARGET_SUBDIR)/libbacktrace && \
39807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39809 "RANLIB=$${RANLIB}" \
39810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39811 installcheck) \
39812 || exit 1
39813
39814@endif target-libbacktrace
39815
39816.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
39817maybe-mostlyclean-target-libbacktrace:
39818@if target-libbacktrace
39819maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
39820
39821mostlyclean-target-libbacktrace:
39822 @: $(MAKE); $(unstage)
22121df0 39823 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39824 r=`${PWD_COMMAND}`; export r; \
39825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39826 $(NORMAL_TARGET_EXPORTS) \
22121df0 39827 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39828 for flag in $(EXTRA_TARGET_FLAGS); do \
39829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39830 done; \
39831 (cd $(TARGET_SUBDIR)/libbacktrace && \
39832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39834 "RANLIB=$${RANLIB}" \
39835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39836 mostlyclean) \
39837 || exit 1
39838
39839@endif target-libbacktrace
39840
39841.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
39842maybe-clean-target-libbacktrace:
39843@if target-libbacktrace
39844maybe-clean-target-libbacktrace: clean-target-libbacktrace
39845
39846clean-target-libbacktrace:
39847 @: $(MAKE); $(unstage)
22121df0 39848 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39849 r=`${PWD_COMMAND}`; export r; \
39850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39851 $(NORMAL_TARGET_EXPORTS) \
22121df0 39852 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39853 for flag in $(EXTRA_TARGET_FLAGS); do \
39854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39855 done; \
39856 (cd $(TARGET_SUBDIR)/libbacktrace && \
39857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39859 "RANLIB=$${RANLIB}" \
39860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39861 clean) \
39862 || exit 1
39863
39864@endif target-libbacktrace
39865
39866.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
39867maybe-distclean-target-libbacktrace:
39868@if target-libbacktrace
39869maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
39870
39871distclean-target-libbacktrace:
39872 @: $(MAKE); $(unstage)
22121df0 39873 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39874 r=`${PWD_COMMAND}`; export r; \
39875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39876 $(NORMAL_TARGET_EXPORTS) \
22121df0 39877 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39878 for flag in $(EXTRA_TARGET_FLAGS); do \
39879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39880 done; \
39881 (cd $(TARGET_SUBDIR)/libbacktrace && \
39882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39884 "RANLIB=$${RANLIB}" \
39885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39886 distclean) \
39887 || exit 1
39888
39889@endif target-libbacktrace
39890
39891.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
39892maybe-maintainer-clean-target-libbacktrace:
39893@if target-libbacktrace
39894maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
39895
39896maintainer-clean-target-libbacktrace:
39897 @: $(MAKE); $(unstage)
22121df0 39898 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
39899 r=`${PWD_COMMAND}`; export r; \
39900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39901 $(NORMAL_TARGET_EXPORTS) \
22121df0 39902 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
39903 for flag in $(EXTRA_TARGET_FLAGS); do \
39904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39905 done; \
39906 (cd $(TARGET_SUBDIR)/libbacktrace && \
39907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39909 "RANLIB=$${RANLIB}" \
39910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39911 maintainer-clean) \
39912 || exit 1
39913
39914@endif target-libbacktrace
39915
39916
39917
39918
39919
a90ef4bf
JM
39920.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
39921maybe-configure-target-libquadmath:
4f0ef2d8 39922@if gcc-bootstrap
a90ef4bf 39923configure-target-libquadmath: stage_current
4f0ef2d8 39924@endif gcc-bootstrap
a90ef4bf
JM
39925@if target-libquadmath
39926maybe-configure-target-libquadmath: configure-target-libquadmath
39927configure-target-libquadmath:
0aed8855
PB
39928 @: $(MAKE); $(unstage)
39929 @r=`${PWD_COMMAND}`; export r; \
39930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39931 echo "Checking multilib configuration for libquadmath..."; \
22121df0
L
39932 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
39933 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39934 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
39935 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
39936 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 39937 else \
a90ef4bf
JM
39938 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
39939 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
39940 fi; \
39941 else \
a90ef4bf 39942 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 39943 fi; \
a90ef4bf 39944 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
22121df0 39945 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
1f53ca9a 39946 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39947 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
39948 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 39949 case $(srcdir) in \
b00612cc 39950 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 39951 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 39952 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 39953 esac; \
1b6c0831 39954 module_srcdir=libquadmath; \
4fa63067 39955 rm -f no-such-file || : ; \
1b6c0831
L
39956 CONFIG_SITE=no-such-file $(SHELL) \
39957 $$s/$$module_srcdir/configure \
39958 --srcdir=$${topdir}/$$module_srcdir \
4b900473 39959 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39960 --target=${target_alias} \
e2b9e2dc 39961 || exit 1
a90ef4bf 39962@endif target-libquadmath
e2b9e2dc 39963
a7254363
PB
39964
39965
d545f33b
PB
39966
39967
a90ef4bf
JM
39968.PHONY: all-target-libquadmath maybe-all-target-libquadmath
39969maybe-all-target-libquadmath:
4f0ef2d8 39970@if gcc-bootstrap
a90ef4bf 39971all-target-libquadmath: stage_current
4f0ef2d8 39972@endif gcc-bootstrap
a90ef4bf
JM
39973@if target-libquadmath
39974TARGET-target-libquadmath=all
39975maybe-all-target-libquadmath: all-target-libquadmath
39976all-target-libquadmath: configure-target-libquadmath
0aed8855 39977 @: $(MAKE); $(unstage)
b40e3958
L
39978 @r=`${PWD_COMMAND}`; export r; \
39979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 39980 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39981 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 39982 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
39983 $(TARGET-target-libquadmath))
39984@endif target-libquadmath
3866be5d 39985
a7254363
PB
39986
39987
d545f33b
PB
39988
39989
a90ef4bf
JM
39990.PHONY: check-target-libquadmath maybe-check-target-libquadmath
39991maybe-check-target-libquadmath:
39992@if target-libquadmath
39993maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 39994
a90ef4bf 39995check-target-libquadmath:
0aed8855 39996 @: $(MAKE); $(unstage)
b40e3958
L
39997 @r=`${PWD_COMMAND}`; export r; \
39998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39999 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40000 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 40001 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 40002
a90ef4bf 40003@endif target-libquadmath
3866be5d 40004
a90ef4bf
JM
40005.PHONY: install-target-libquadmath maybe-install-target-libquadmath
40006maybe-install-target-libquadmath:
40007@if target-libquadmath
40008maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 40009
a90ef4bf 40010install-target-libquadmath: installdirs
0aed8855 40011 @: $(MAKE); $(unstage)
b40e3958
L
40012 @r=`${PWD_COMMAND}`; export r; \
40013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40014 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40015 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 40016 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40017
a90ef4bf 40018@endif target-libquadmath
3866be5d 40019
a90ef4bf
JM
40020.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
40021maybe-install-strip-target-libquadmath:
40022@if target-libquadmath
40023maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 40024
a90ef4bf 40025install-strip-target-libquadmath: installdirs
9b980aa1
RW
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)/libquadmath && \
9b980aa1
RW
40031 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40032
a90ef4bf 40033@endif target-libquadmath
9b980aa1 40034
56a8fe78 40035# Other targets (info, dvi, pdf, etc.)
4fa63067 40036
a90ef4bf
JM
40037.PHONY: maybe-info-target-libquadmath info-target-libquadmath
40038maybe-info-target-libquadmath:
40039@if target-libquadmath
40040maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 40041
a90ef4bf
JM
40042info-target-libquadmath: \
40043 configure-target-libquadmath
0aed8855 40044 @: $(MAKE); $(unstage)
22121df0 40045 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40046 r=`${PWD_COMMAND}`; export r; \
b40e3958 40047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40048 $(NORMAL_TARGET_EXPORTS) \
22121df0 40049 echo "Doing info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40050 for flag in $(EXTRA_TARGET_FLAGS); do \
40051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40052 done; \
a90ef4bf 40053 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40056 "RANLIB=$${RANLIB}" \
0c24b341 40057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40058 info) \
4fa63067 40059 || exit 1
3866be5d 40060
a90ef4bf 40061@endif target-libquadmath
3866be5d 40062
a90ef4bf
JM
40063.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
40064maybe-dvi-target-libquadmath:
40065@if target-libquadmath
40066maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 40067
a90ef4bf
JM
40068dvi-target-libquadmath: \
40069 configure-target-libquadmath
0aed8855 40070 @: $(MAKE); $(unstage)
22121df0 40071 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40072 r=`${PWD_COMMAND}`; export r; \
b40e3958 40073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40074 $(NORMAL_TARGET_EXPORTS) \
22121df0 40075 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40076 for flag in $(EXTRA_TARGET_FLAGS); do \
40077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40078 done; \
a90ef4bf 40079 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40082 "RANLIB=$${RANLIB}" \
0c24b341 40083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40084 dvi) \
4fa63067 40085 || exit 1
3866be5d 40086
a90ef4bf 40087@endif target-libquadmath
3866be5d 40088
a90ef4bf
JM
40089.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
40090maybe-pdf-target-libquadmath:
40091@if target-libquadmath
40092maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 40093
a90ef4bf
JM
40094pdf-target-libquadmath: \
40095 configure-target-libquadmath
56a8fe78 40096 @: $(MAKE); $(unstage)
22121df0 40097 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
56a8fe78
DD
40098 r=`${PWD_COMMAND}`; export r; \
40099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40100 $(NORMAL_TARGET_EXPORTS) \
22121df0 40101 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath"; \
56a8fe78
DD
40102 for flag in $(EXTRA_TARGET_FLAGS); do \
40103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40104 done; \
a90ef4bf 40105 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
40106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40108 "RANLIB=$${RANLIB}" \
0c24b341 40109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40110 pdf) \
40111 || exit 1
40112
a90ef4bf 40113@endif target-libquadmath
56a8fe78 40114
a90ef4bf
JM
40115.PHONY: maybe-html-target-libquadmath html-target-libquadmath
40116maybe-html-target-libquadmath:
40117@if target-libquadmath
40118maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 40119
a90ef4bf
JM
40120html-target-libquadmath: \
40121 configure-target-libquadmath
0aed8855 40122 @: $(MAKE); $(unstage)
22121df0 40123 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
6d389afc
MS
40124 r=`${PWD_COMMAND}`; export r; \
40125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 40126 $(NORMAL_TARGET_EXPORTS) \
22121df0 40127 echo "Doing html in $(TARGET_SUBDIR)/libquadmath"; \
6d389afc
MS
40128 for flag in $(EXTRA_TARGET_FLAGS); do \
40129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40130 done; \
a90ef4bf 40131 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
40132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40134 "RANLIB=$${RANLIB}" \
0c24b341 40135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40136 html) \
40137 || exit 1
40138
a90ef4bf 40139@endif target-libquadmath
6d389afc 40140
a90ef4bf
JM
40141.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
40142maybe-TAGS-target-libquadmath:
40143@if target-libquadmath
40144maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 40145
a90ef4bf
JM
40146TAGS-target-libquadmath: \
40147 configure-target-libquadmath
0aed8855 40148 @: $(MAKE); $(unstage)
22121df0 40149 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
40150 r=`${PWD_COMMAND}`; export r; \
40151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40152 $(NORMAL_TARGET_EXPORTS) \
22121df0 40153 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40154 for flag in $(EXTRA_TARGET_FLAGS); do \
40155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40156 done; \
a90ef4bf 40157 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40160 "RANLIB=$${RANLIB}" \
0c24b341 40161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40162 TAGS) \
e2b9e2dc
NN
40163 || exit 1
40164
a90ef4bf 40165@endif target-libquadmath
4fa63067 40166
a90ef4bf
JM
40167.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
40168maybe-install-info-target-libquadmath:
40169@if target-libquadmath
40170maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 40171
a90ef4bf
JM
40172install-info-target-libquadmath: \
40173 configure-target-libquadmath \
40174 info-target-libquadmath
0aed8855 40175 @: $(MAKE); $(unstage)
22121df0 40176 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40177 r=`${PWD_COMMAND}`; export r; \
b40e3958 40178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40179 $(NORMAL_TARGET_EXPORTS) \
22121df0 40180 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40181 for flag in $(EXTRA_TARGET_FLAGS); do \
40182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40183 done; \
a90ef4bf 40184 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40187 "RANLIB=$${RANLIB}" \
0c24b341 40188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40189 install-info) \
4fa63067 40190 || exit 1
3866be5d 40191
a90ef4bf 40192@endif target-libquadmath
3866be5d 40193
a90ef4bf
JM
40194.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
40195maybe-install-pdf-target-libquadmath:
40196@if target-libquadmath
40197maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 40198
a90ef4bf
JM
40199install-pdf-target-libquadmath: \
40200 configure-target-libquadmath \
40201 pdf-target-libquadmath
a3ca38d2 40202 @: $(MAKE); $(unstage)
22121df0 40203 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
a3ca38d2
DD
40204 r=`${PWD_COMMAND}`; export r; \
40205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40206 $(NORMAL_TARGET_EXPORTS) \
22121df0 40207 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath"; \
a3ca38d2
DD
40208 for flag in $(EXTRA_TARGET_FLAGS); do \
40209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40210 done; \
a90ef4bf 40211 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
40212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40214 "RANLIB=$${RANLIB}" \
0c24b341 40215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40216 install-pdf) \
40217 || exit 1
40218
a90ef4bf 40219@endif target-libquadmath
a3ca38d2 40220
a90ef4bf
JM
40221.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
40222maybe-install-html-target-libquadmath:
40223@if target-libquadmath
40224maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 40225
a90ef4bf
JM
40226install-html-target-libquadmath: \
40227 configure-target-libquadmath \
40228 html-target-libquadmath
108a6f8e 40229 @: $(MAKE); $(unstage)
22121df0 40230 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
108a6f8e
CD
40231 r=`${PWD_COMMAND}`; export r; \
40232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40233 $(NORMAL_TARGET_EXPORTS) \
22121df0 40234 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath"; \
108a6f8e
CD
40235 for flag in $(EXTRA_TARGET_FLAGS); do \
40236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40237 done; \
a90ef4bf 40238 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
40239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40241 "RANLIB=$${RANLIB}" \
0c24b341 40242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
40243 install-html) \
40244 || exit 1
40245
a90ef4bf 40246@endif target-libquadmath
108a6f8e 40247
a90ef4bf
JM
40248.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
40249maybe-installcheck-target-libquadmath:
40250@if target-libquadmath
40251maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 40252
a90ef4bf
JM
40253installcheck-target-libquadmath: \
40254 configure-target-libquadmath
0aed8855 40255 @: $(MAKE); $(unstage)
22121df0 40256 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40257 r=`${PWD_COMMAND}`; export r; \
b40e3958 40258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40259 $(NORMAL_TARGET_EXPORTS) \
22121df0 40260 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40261 for flag in $(EXTRA_TARGET_FLAGS); do \
40262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40263 done; \
a90ef4bf 40264 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40267 "RANLIB=$${RANLIB}" \
0c24b341 40268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40269 installcheck) \
4fa63067 40270 || exit 1
3866be5d 40271
a90ef4bf 40272@endif target-libquadmath
3866be5d 40273
a90ef4bf
JM
40274.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
40275maybe-mostlyclean-target-libquadmath:
40276@if target-libquadmath
40277maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 40278
a90ef4bf 40279mostlyclean-target-libquadmath:
0aed8855 40280 @: $(MAKE); $(unstage)
22121df0 40281 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40282 r=`${PWD_COMMAND}`; export r; \
b40e3958 40283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40284 $(NORMAL_TARGET_EXPORTS) \
22121df0 40285 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40286 for flag in $(EXTRA_TARGET_FLAGS); do \
40287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40288 done; \
a90ef4bf 40289 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40292 "RANLIB=$${RANLIB}" \
0c24b341 40293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40294 mostlyclean) \
4fa63067 40295 || exit 1
3866be5d 40296
a90ef4bf 40297@endif target-libquadmath
3866be5d 40298
a90ef4bf
JM
40299.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
40300maybe-clean-target-libquadmath:
40301@if target-libquadmath
40302maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 40303
a90ef4bf 40304clean-target-libquadmath:
0aed8855 40305 @: $(MAKE); $(unstage)
22121df0 40306 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
40307 r=`${PWD_COMMAND}`; export r; \
40308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40309 $(NORMAL_TARGET_EXPORTS) \
22121df0 40310 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40311 for flag in $(EXTRA_TARGET_FLAGS); do \
40312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40313 done; \
a90ef4bf 40314 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40317 "RANLIB=$${RANLIB}" \
0c24b341 40318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40319 clean) \
e2b9e2dc
NN
40320 || exit 1
40321
a90ef4bf 40322@endif target-libquadmath
3866be5d 40323
a90ef4bf
JM
40324.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
40325maybe-distclean-target-libquadmath:
40326@if target-libquadmath
40327maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 40328
a90ef4bf 40329distclean-target-libquadmath:
0aed8855 40330 @: $(MAKE); $(unstage)
22121df0 40331 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40332 r=`${PWD_COMMAND}`; export r; \
b40e3958 40333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40334 $(NORMAL_TARGET_EXPORTS) \
22121df0 40335 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40336 for flag in $(EXTRA_TARGET_FLAGS); do \
40337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40338 done; \
a90ef4bf 40339 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40342 "RANLIB=$${RANLIB}" \
0c24b341 40343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40344 distclean) \
4fa63067 40345 || exit 1
3866be5d 40346
a90ef4bf 40347@endif target-libquadmath
3866be5d 40348
a90ef4bf
JM
40349.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
40350maybe-maintainer-clean-target-libquadmath:
40351@if target-libquadmath
40352maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 40353
a90ef4bf 40354maintainer-clean-target-libquadmath:
0aed8855 40355 @: $(MAKE); $(unstage)
22121df0 40356 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 40357 r=`${PWD_COMMAND}`; export r; \
b40e3958 40358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40359 $(NORMAL_TARGET_EXPORTS) \
22121df0 40360 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
40361 for flag in $(EXTRA_TARGET_FLAGS); do \
40362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40363 done; \
a90ef4bf 40364 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
40365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40367 "RANLIB=$${RANLIB}" \
0c24b341 40368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40369 maintainer-clean) \
4fa63067 40370 || exit 1
3866be5d 40371
a90ef4bf 40372@endif target-libquadmath
3866be5d 40373
4fa63067 40374
4fa63067 40375
a7254363 40376
e90269c8 40377
a90ef4bf
JM
40378.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
40379maybe-configure-target-libgfortran:
e552509b 40380@if gcc-bootstrap
a90ef4bf 40381configure-target-libgfortran: stage_current
e552509b 40382@endif gcc-bootstrap
a90ef4bf
JM
40383@if target-libgfortran
40384maybe-configure-target-libgfortran: configure-target-libgfortran
40385configure-target-libgfortran:
e552509b
ILT
40386 @: $(MAKE); $(unstage)
40387 @r=`${PWD_COMMAND}`; export r; \
40388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40389 echo "Checking multilib configuration for libgfortran..."; \
22121df0
L
40390 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
40391 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40392 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
40393 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
40394 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 40395 else \
a90ef4bf
JM
40396 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
40397 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
40398 fi; \
40399 else \
a90ef4bf 40400 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 40401 fi; \
a90ef4bf 40402 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
22121df0 40403 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
e552509b 40404 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40405 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
40406 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
40407 case $(srcdir) in \
40408 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40409 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
40410 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40411 esac; \
1b6c0831 40412 module_srcdir=libgfortran; \
e552509b 40413 rm -f no-such-file || : ; \
1b6c0831
L
40414 CONFIG_SITE=no-such-file $(SHELL) \
40415 $$s/$$module_srcdir/configure \
40416 --srcdir=$${topdir}/$$module_srcdir \
e552509b 40417 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40418 --target=${target_alias} \
e552509b 40419 || exit 1
a90ef4bf 40420@endif target-libgfortran
e552509b
ILT
40421
40422
40423
40424
40425
a90ef4bf
JM
40426.PHONY: all-target-libgfortran maybe-all-target-libgfortran
40427maybe-all-target-libgfortran:
e552509b 40428@if gcc-bootstrap
a90ef4bf 40429all-target-libgfortran: stage_current
e552509b 40430@endif gcc-bootstrap
a90ef4bf
JM
40431@if target-libgfortran
40432TARGET-target-libgfortran=all
40433maybe-all-target-libgfortran: all-target-libgfortran
40434all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
40435 @: $(MAKE); $(unstage)
40436 @r=`${PWD_COMMAND}`; export r; \
40437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40438 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40439 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 40440 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40441 $(TARGET-target-libgfortran))
40442@endif target-libgfortran
e552509b
ILT
40443
40444
40445
40446
40447
a90ef4bf
JM
40448.PHONY: check-target-libgfortran maybe-check-target-libgfortran
40449maybe-check-target-libgfortran:
40450@if target-libgfortran
40451maybe-check-target-libgfortran: check-target-libgfortran
e552509b 40452
a90ef4bf 40453check-target-libgfortran:
e552509b
ILT
40454 @: $(MAKE); $(unstage)
40455 @r=`${PWD_COMMAND}`; export r; \
40456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40457 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40458 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40459 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
40460
a90ef4bf 40461@endif target-libgfortran
e552509b 40462
a90ef4bf
JM
40463.PHONY: install-target-libgfortran maybe-install-target-libgfortran
40464maybe-install-target-libgfortran:
40465@if target-libgfortran
40466maybe-install-target-libgfortran: install-target-libgfortran
e552509b 40467
a90ef4bf 40468install-target-libgfortran: installdirs
e552509b
ILT
40469 @: $(MAKE); $(unstage)
40470 @r=`${PWD_COMMAND}`; export r; \
40471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40472 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40473 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40474 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
40475
a90ef4bf 40476@endif target-libgfortran
e552509b 40477
a90ef4bf
JM
40478.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
40479maybe-install-strip-target-libgfortran:
40480@if target-libgfortran
40481maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 40482
a90ef4bf 40483install-strip-target-libgfortran: installdirs
9b980aa1
RW
40484 @: $(MAKE); $(unstage)
40485 @r=`${PWD_COMMAND}`; export r; \
40486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40487 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40488 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
40489 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40490
a90ef4bf 40491@endif target-libgfortran
9b980aa1 40492
e552509b
ILT
40493# Other targets (info, dvi, pdf, etc.)
40494
a90ef4bf
JM
40495.PHONY: maybe-info-target-libgfortran info-target-libgfortran
40496maybe-info-target-libgfortran:
40497@if target-libgfortran
40498maybe-info-target-libgfortran: info-target-libgfortran
e552509b 40499
a90ef4bf
JM
40500info-target-libgfortran: \
40501 configure-target-libgfortran
e552509b 40502 @: $(MAKE); $(unstage)
22121df0 40503 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40504 r=`${PWD_COMMAND}`; export r; \
40505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40506 $(NORMAL_TARGET_EXPORTS) \
22121df0 40507 echo "Doing info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40508 for flag in $(EXTRA_TARGET_FLAGS); do \
40509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40510 done; \
a90ef4bf 40511 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40514 "RANLIB=$${RANLIB}" \
40515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40516 info) \
40517 || exit 1
40518
a90ef4bf 40519@endif target-libgfortran
e552509b 40520
a90ef4bf
JM
40521.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
40522maybe-dvi-target-libgfortran:
40523@if target-libgfortran
40524maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 40525
a90ef4bf
JM
40526dvi-target-libgfortran: \
40527 configure-target-libgfortran
e552509b 40528 @: $(MAKE); $(unstage)
22121df0 40529 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40530 r=`${PWD_COMMAND}`; export r; \
40531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40532 $(NORMAL_TARGET_EXPORTS) \
22121df0 40533 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40534 for flag in $(EXTRA_TARGET_FLAGS); do \
40535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40536 done; \
a90ef4bf 40537 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40540 "RANLIB=$${RANLIB}" \
40541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40542 dvi) \
40543 || exit 1
40544
a90ef4bf 40545@endif target-libgfortran
e552509b 40546
a90ef4bf
JM
40547.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
40548maybe-pdf-target-libgfortran:
40549@if target-libgfortran
40550maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 40551
a90ef4bf
JM
40552pdf-target-libgfortran: \
40553 configure-target-libgfortran
e552509b 40554 @: $(MAKE); $(unstage)
22121df0 40555 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40556 r=`${PWD_COMMAND}`; export r; \
40557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40558 $(NORMAL_TARGET_EXPORTS) \
22121df0 40559 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40560 for flag in $(EXTRA_TARGET_FLAGS); do \
40561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40562 done; \
a90ef4bf 40563 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40566 "RANLIB=$${RANLIB}" \
40567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40568 pdf) \
40569 || exit 1
40570
a90ef4bf 40571@endif target-libgfortran
e552509b 40572
a90ef4bf
JM
40573.PHONY: maybe-html-target-libgfortran html-target-libgfortran
40574maybe-html-target-libgfortran:
40575@if target-libgfortran
40576maybe-html-target-libgfortran: html-target-libgfortran
e552509b 40577
a90ef4bf
JM
40578html-target-libgfortran: \
40579 configure-target-libgfortran
e552509b 40580 @: $(MAKE); $(unstage)
22121df0 40581 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40582 r=`${PWD_COMMAND}`; export r; \
40583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40584 $(NORMAL_TARGET_EXPORTS) \
22121df0 40585 echo "Doing html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40586 for flag in $(EXTRA_TARGET_FLAGS); do \
40587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40588 done; \
a90ef4bf 40589 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40592 "RANLIB=$${RANLIB}" \
40593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40594 html) \
40595 || exit 1
40596
a90ef4bf 40597@endif target-libgfortran
e552509b 40598
a90ef4bf
JM
40599.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
40600maybe-TAGS-target-libgfortran:
40601@if target-libgfortran
40602maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 40603
a90ef4bf
JM
40604TAGS-target-libgfortran: \
40605 configure-target-libgfortran
e552509b 40606 @: $(MAKE); $(unstage)
22121df0 40607 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40608 r=`${PWD_COMMAND}`; export r; \
40609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40610 $(NORMAL_TARGET_EXPORTS) \
22121df0 40611 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40612 for flag in $(EXTRA_TARGET_FLAGS); do \
40613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40614 done; \
a90ef4bf 40615 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40618 "RANLIB=$${RANLIB}" \
40619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40620 TAGS) \
40621 || exit 1
40622
a90ef4bf 40623@endif target-libgfortran
e552509b 40624
a90ef4bf
JM
40625.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
40626maybe-install-info-target-libgfortran:
40627@if target-libgfortran
40628maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 40629
a90ef4bf
JM
40630install-info-target-libgfortran: \
40631 configure-target-libgfortran \
40632 info-target-libgfortran
e552509b 40633 @: $(MAKE); $(unstage)
22121df0 40634 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40635 r=`${PWD_COMMAND}`; export r; \
40636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40637 $(NORMAL_TARGET_EXPORTS) \
22121df0 40638 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40639 for flag in $(EXTRA_TARGET_FLAGS); do \
40640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40641 done; \
a90ef4bf 40642 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40645 "RANLIB=$${RANLIB}" \
40646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40647 install-info) \
40648 || exit 1
40649
a90ef4bf 40650@endif target-libgfortran
e552509b 40651
a90ef4bf
JM
40652.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
40653maybe-install-pdf-target-libgfortran:
40654@if target-libgfortran
40655maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 40656
a90ef4bf
JM
40657install-pdf-target-libgfortran: \
40658 configure-target-libgfortran \
40659 pdf-target-libgfortran
e552509b 40660 @: $(MAKE); $(unstage)
22121df0 40661 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40662 r=`${PWD_COMMAND}`; export r; \
40663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40664 $(NORMAL_TARGET_EXPORTS) \
22121df0 40665 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40666 for flag in $(EXTRA_TARGET_FLAGS); do \
40667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40668 done; \
a90ef4bf 40669 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40672 "RANLIB=$${RANLIB}" \
40673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40674 install-pdf) \
40675 || exit 1
40676
a90ef4bf 40677@endif target-libgfortran
e552509b 40678
a90ef4bf
JM
40679.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
40680maybe-install-html-target-libgfortran:
40681@if target-libgfortran
40682maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 40683
a90ef4bf
JM
40684install-html-target-libgfortran: \
40685 configure-target-libgfortran \
40686 html-target-libgfortran
e552509b 40687 @: $(MAKE); $(unstage)
22121df0 40688 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40689 r=`${PWD_COMMAND}`; export r; \
40690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40691 $(NORMAL_TARGET_EXPORTS) \
22121df0 40692 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40693 for flag in $(EXTRA_TARGET_FLAGS); do \
40694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40695 done; \
a90ef4bf 40696 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40699 "RANLIB=$${RANLIB}" \
40700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40701 install-html) \
40702 || exit 1
40703
a90ef4bf 40704@endif target-libgfortran
e552509b 40705
a90ef4bf
JM
40706.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
40707maybe-installcheck-target-libgfortran:
40708@if target-libgfortran
40709maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 40710
a90ef4bf
JM
40711installcheck-target-libgfortran: \
40712 configure-target-libgfortran
e552509b 40713 @: $(MAKE); $(unstage)
22121df0 40714 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40715 r=`${PWD_COMMAND}`; export r; \
40716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40717 $(NORMAL_TARGET_EXPORTS) \
22121df0 40718 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40719 for flag in $(EXTRA_TARGET_FLAGS); do \
40720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40721 done; \
a90ef4bf 40722 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40725 "RANLIB=$${RANLIB}" \
40726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40727 installcheck) \
40728 || exit 1
40729
a90ef4bf 40730@endif target-libgfortran
e552509b 40731
a90ef4bf
JM
40732.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
40733maybe-mostlyclean-target-libgfortran:
40734@if target-libgfortran
40735maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 40736
a90ef4bf 40737mostlyclean-target-libgfortran:
e552509b 40738 @: $(MAKE); $(unstage)
22121df0 40739 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40740 r=`${PWD_COMMAND}`; export r; \
40741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40742 $(NORMAL_TARGET_EXPORTS) \
22121df0 40743 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40744 for flag in $(EXTRA_TARGET_FLAGS); do \
40745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40746 done; \
a90ef4bf 40747 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40750 "RANLIB=$${RANLIB}" \
40751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40752 mostlyclean) \
40753 || exit 1
40754
a90ef4bf 40755@endif target-libgfortran
e552509b 40756
a90ef4bf
JM
40757.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
40758maybe-clean-target-libgfortran:
40759@if target-libgfortran
40760maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 40761
a90ef4bf 40762clean-target-libgfortran:
e552509b 40763 @: $(MAKE); $(unstage)
22121df0 40764 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40765 r=`${PWD_COMMAND}`; export r; \
40766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40767 $(NORMAL_TARGET_EXPORTS) \
22121df0 40768 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40769 for flag in $(EXTRA_TARGET_FLAGS); do \
40770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40771 done; \
a90ef4bf 40772 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40775 "RANLIB=$${RANLIB}" \
40776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40777 clean) \
40778 || exit 1
40779
a90ef4bf 40780@endif target-libgfortran
e552509b 40781
a90ef4bf
JM
40782.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
40783maybe-distclean-target-libgfortran:
40784@if target-libgfortran
40785maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 40786
a90ef4bf 40787distclean-target-libgfortran:
e552509b 40788 @: $(MAKE); $(unstage)
22121df0 40789 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40790 r=`${PWD_COMMAND}`; export r; \
40791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40792 $(NORMAL_TARGET_EXPORTS) \
22121df0 40793 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40794 for flag in $(EXTRA_TARGET_FLAGS); do \
40795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40796 done; \
a90ef4bf 40797 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40800 "RANLIB=$${RANLIB}" \
40801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40802 distclean) \
40803 || exit 1
40804
a90ef4bf 40805@endif target-libgfortran
e552509b 40806
a90ef4bf
JM
40807.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
40808maybe-maintainer-clean-target-libgfortran:
40809@if target-libgfortran
40810maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 40811
a90ef4bf 40812maintainer-clean-target-libgfortran:
e552509b 40813 @: $(MAKE); $(unstage)
22121df0 40814 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
40815 r=`${PWD_COMMAND}`; export r; \
40816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40817 $(NORMAL_TARGET_EXPORTS) \
22121df0 40818 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
40819 for flag in $(EXTRA_TARGET_FLAGS); do \
40820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40821 done; \
a90ef4bf 40822 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
40823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40825 "RANLIB=$${RANLIB}" \
40826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40827 maintainer-clean) \
40828 || exit 1
40829
a90ef4bf 40830@endif target-libgfortran
e552509b
ILT
40831
40832
40833
40834
40835
a90ef4bf
JM
40836.PHONY: configure-target-libobjc maybe-configure-target-libobjc
40837maybe-configure-target-libobjc:
4f0ef2d8 40838@if gcc-bootstrap
a90ef4bf 40839configure-target-libobjc: stage_current
4f0ef2d8 40840@endif gcc-bootstrap
a90ef4bf
JM
40841@if target-libobjc
40842maybe-configure-target-libobjc: configure-target-libobjc
40843configure-target-libobjc:
0aed8855
PB
40844 @: $(MAKE); $(unstage)
40845 @r=`${PWD_COMMAND}`; export r; \
40846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40847 echo "Checking multilib configuration for libobjc..."; \
22121df0
L
40848 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
40849 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40850 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
40851 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
40852 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 40853 else \
a90ef4bf
JM
40854 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
40855 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
40856 fi; \
40857 else \
a90ef4bf 40858 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 40859 fi; \
a90ef4bf 40860 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
22121df0 40861 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
1f53ca9a 40862 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40863 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
40864 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 40865 case $(srcdir) in \
b00612cc 40866 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40867 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 40868 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 40869 esac; \
1b6c0831 40870 module_srcdir=libobjc; \
4fa63067 40871 rm -f no-such-file || : ; \
1b6c0831
L
40872 CONFIG_SITE=no-such-file $(SHELL) \
40873 $$s/$$module_srcdir/configure \
40874 --srcdir=$${topdir}/$$module_srcdir \
4b900473 40875 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40876 --target=${target_alias} \
e2b9e2dc 40877 || exit 1
a90ef4bf 40878@endif target-libobjc
e2b9e2dc 40879
a7254363
PB
40880
40881
d545f33b
PB
40882
40883
a90ef4bf
JM
40884.PHONY: all-target-libobjc maybe-all-target-libobjc
40885maybe-all-target-libobjc:
4f0ef2d8 40886@if gcc-bootstrap
a90ef4bf 40887all-target-libobjc: stage_current
4f0ef2d8 40888@endif gcc-bootstrap
a90ef4bf
JM
40889@if target-libobjc
40890TARGET-target-libobjc=all
40891maybe-all-target-libobjc: all-target-libobjc
40892all-target-libobjc: configure-target-libobjc
0aed8855 40893 @: $(MAKE); $(unstage)
b40e3958
L
40894 @r=`${PWD_COMMAND}`; export r; \
40895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40896 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40897 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 40898 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40899 $(TARGET-target-libobjc))
40900@endif target-libobjc
3866be5d 40901
a7254363
PB
40902
40903
d545f33b
PB
40904
40905
a90ef4bf
JM
40906.PHONY: check-target-libobjc maybe-check-target-libobjc
40907maybe-check-target-libobjc:
40908@if target-libobjc
40909maybe-check-target-libobjc: check-target-libobjc
3866be5d 40910
a90ef4bf
JM
40911check-target-libobjc:
40912 @: $(MAKE); $(unstage)
40913 @r=`${PWD_COMMAND}`; export r; \
40914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40915 $(NORMAL_TARGET_EXPORTS) \
40916 (cd $(TARGET_SUBDIR)/libobjc && \
40917 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 40918
a90ef4bf 40919@endif target-libobjc
4fa63067 40920
a90ef4bf
JM
40921.PHONY: install-target-libobjc maybe-install-target-libobjc
40922maybe-install-target-libobjc:
40923@if target-libobjc
40924maybe-install-target-libobjc: install-target-libobjc
4fa63067 40925
a90ef4bf 40926install-target-libobjc: installdirs
0aed8855 40927 @: $(MAKE); $(unstage)
b40e3958
L
40928 @r=`${PWD_COMMAND}`; export r; \
40929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40930 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40931 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 40932 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40933
a90ef4bf 40934@endif target-libobjc
3866be5d 40935
a90ef4bf
JM
40936.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
40937maybe-install-strip-target-libobjc:
40938@if target-libobjc
40939maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 40940
a90ef4bf 40941install-strip-target-libobjc: installdirs
9b980aa1
RW
40942 @: $(MAKE); $(unstage)
40943 @r=`${PWD_COMMAND}`; export r; \
40944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40945 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40946 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
40947 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40948
a90ef4bf 40949@endif target-libobjc
9b980aa1 40950
56a8fe78 40951# Other targets (info, dvi, pdf, etc.)
16ae0395 40952
a90ef4bf
JM
40953.PHONY: maybe-info-target-libobjc info-target-libobjc
40954maybe-info-target-libobjc:
40955@if target-libobjc
40956maybe-info-target-libobjc: info-target-libobjc
6d389afc 40957
a90ef4bf
JM
40958info-target-libobjc: \
40959 configure-target-libobjc
0aed8855 40960 @: $(MAKE); $(unstage)
22121df0 40961 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
6d389afc
MS
40962 r=`${PWD_COMMAND}`; export r; \
40963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 40964 $(NORMAL_TARGET_EXPORTS) \
22121df0 40965 echo "Doing info in $(TARGET_SUBDIR)/libobjc"; \
6d389afc
MS
40966 for flag in $(EXTRA_TARGET_FLAGS); do \
40967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40968 done; \
a90ef4bf 40969 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
40970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40972 "RANLIB=$${RANLIB}" \
0c24b341 40973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40974 info) \
40975 || exit 1
40976
a90ef4bf 40977@endif target-libobjc
6d389afc 40978
a90ef4bf
JM
40979.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
40980maybe-dvi-target-libobjc:
40981@if target-libobjc
40982maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 40983
a90ef4bf
JM
40984dvi-target-libobjc: \
40985 configure-target-libobjc
0aed8855 40986 @: $(MAKE); $(unstage)
22121df0 40987 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 40988 r=`${PWD_COMMAND}`; export r; \
b40e3958 40989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40990 $(NORMAL_TARGET_EXPORTS) \
22121df0 40991 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
40992 for flag in $(EXTRA_TARGET_FLAGS); do \
40993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40994 done; \
a90ef4bf 40995 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
40996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40998 "RANLIB=$${RANLIB}" \
0c24b341 40999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 41000 dvi) \
4fa63067 41001 || exit 1
3866be5d 41002
a90ef4bf 41003@endif target-libobjc
3866be5d 41004
a90ef4bf
JM
41005.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
41006maybe-pdf-target-libobjc:
41007@if target-libobjc
41008maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 41009
a90ef4bf
JM
41010pdf-target-libobjc: \
41011 configure-target-libobjc
56a8fe78 41012 @: $(MAKE); $(unstage)
22121df0 41013 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
56a8fe78
DD
41014 r=`${PWD_COMMAND}`; export r; \
41015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41016 $(NORMAL_TARGET_EXPORTS) \
22121df0 41017 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc"; \
56a8fe78
DD
41018 for flag in $(EXTRA_TARGET_FLAGS); do \
41019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41020 done; \
a90ef4bf 41021 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
41022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41024 "RANLIB=$${RANLIB}" \
0c24b341 41025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41026 pdf) \
41027 || exit 1
41028
a90ef4bf 41029@endif target-libobjc
56a8fe78 41030
a90ef4bf
JM
41031.PHONY: maybe-html-target-libobjc html-target-libobjc
41032maybe-html-target-libobjc:
41033@if target-libobjc
41034maybe-html-target-libobjc: html-target-libobjc
4fa63067 41035
a90ef4bf
JM
41036html-target-libobjc: \
41037 configure-target-libobjc
0aed8855 41038 @: $(MAKE); $(unstage)
22121df0 41039 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
b40e3958
L
41040 r=`${PWD_COMMAND}`; export r; \
41041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41042 $(NORMAL_TARGET_EXPORTS) \
22121df0 41043 echo "Doing html in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41044 for flag in $(EXTRA_TARGET_FLAGS); do \
41045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41046 done; \
a90ef4bf 41047 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41050 "RANLIB=$${RANLIB}" \
0c24b341 41051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 41052 html) \
e2b9e2dc
NN
41053 || exit 1
41054
a90ef4bf 41055@endif target-libobjc
4fa63067 41056
a90ef4bf
JM
41057.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
41058maybe-TAGS-target-libobjc:
41059@if target-libobjc
41060maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 41061
a90ef4bf
JM
41062TAGS-target-libobjc: \
41063 configure-target-libobjc
0aed8855 41064 @: $(MAKE); $(unstage)
22121df0 41065 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 41066 r=`${PWD_COMMAND}`; export r; \
b40e3958 41067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41068 $(NORMAL_TARGET_EXPORTS) \
22121df0 41069 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41070 for flag in $(EXTRA_TARGET_FLAGS); do \
41071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41072 done; \
a90ef4bf 41073 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41076 "RANLIB=$${RANLIB}" \
0c24b341 41077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41078 TAGS) \
4fa63067 41079 || exit 1
3866be5d 41080
a90ef4bf 41081@endif target-libobjc
3866be5d 41082
a90ef4bf
JM
41083.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
41084maybe-install-info-target-libobjc:
41085@if target-libobjc
41086maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 41087
a90ef4bf
JM
41088install-info-target-libobjc: \
41089 configure-target-libobjc \
41090 info-target-libobjc
0aed8855 41091 @: $(MAKE); $(unstage)
22121df0 41092 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067
NN
41093 r=`${PWD_COMMAND}`; export r; \
41094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41095 $(NORMAL_TARGET_EXPORTS) \
22121df0 41096 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41097 for flag in $(EXTRA_TARGET_FLAGS); do \
41098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41099 done; \
a90ef4bf 41100 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41103 "RANLIB=$${RANLIB}" \
0c24b341 41104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41105 install-info) \
4fa63067 41106 || exit 1
3866be5d 41107
a90ef4bf 41108@endif target-libobjc
16ae0395 41109
a90ef4bf
JM
41110.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
41111maybe-install-pdf-target-libobjc:
41112@if target-libobjc
41113maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 41114
a90ef4bf
JM
41115install-pdf-target-libobjc: \
41116 configure-target-libobjc \
41117 pdf-target-libobjc
a3ca38d2 41118 @: $(MAKE); $(unstage)
22121df0 41119 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a3ca38d2
DD
41120 r=`${PWD_COMMAND}`; export r; \
41121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41122 $(NORMAL_TARGET_EXPORTS) \
22121df0 41123 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc"; \
a3ca38d2
DD
41124 for flag in $(EXTRA_TARGET_FLAGS); do \
41125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41126 done; \
a90ef4bf 41127 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
41128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41130 "RANLIB=$${RANLIB}" \
0c24b341 41131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41132 install-pdf) \
41133 || exit 1
41134
a90ef4bf 41135@endif target-libobjc
a3ca38d2 41136
a90ef4bf
JM
41137.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
41138maybe-install-html-target-libobjc:
41139@if target-libobjc
41140maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 41141
a90ef4bf
JM
41142install-html-target-libobjc: \
41143 configure-target-libobjc \
41144 html-target-libobjc
108a6f8e 41145 @: $(MAKE); $(unstage)
22121df0 41146 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
108a6f8e
CD
41147 r=`${PWD_COMMAND}`; export r; \
41148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41149 $(NORMAL_TARGET_EXPORTS) \
22121df0 41150 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc"; \
108a6f8e
CD
41151 for flag in $(EXTRA_TARGET_FLAGS); do \
41152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41153 done; \
a90ef4bf 41154 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
41155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41157 "RANLIB=$${RANLIB}" \
0c24b341 41158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41159 install-html) \
41160 || exit 1
41161
a90ef4bf 41162@endif target-libobjc
108a6f8e 41163
a90ef4bf
JM
41164.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
41165maybe-installcheck-target-libobjc:
41166@if target-libobjc
41167maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 41168
a90ef4bf
JM
41169installcheck-target-libobjc: \
41170 configure-target-libobjc
0aed8855 41171 @: $(MAKE); $(unstage)
22121df0 41172 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 41173 r=`${PWD_COMMAND}`; export r; \
b40e3958 41174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41175 $(NORMAL_TARGET_EXPORTS) \
22121df0 41176 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
41177 for flag in $(EXTRA_TARGET_FLAGS); do \
41178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41179 done; \
a90ef4bf 41180 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
41181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41183 "RANLIB=$${RANLIB}" \
0c24b341 41184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41185 installcheck) \
4fa63067 41186 || exit 1
3866be5d 41187
a90ef4bf 41188@endif target-libobjc
3866be5d 41189
a90ef4bf
JM
41190.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
41191maybe-mostlyclean-target-libobjc:
41192@if target-libobjc
41193maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 41194
a90ef4bf
JM
41195mostlyclean-target-libobjc:
41196 @: $(MAKE); $(unstage)
22121df0 41197 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41198 r=`${PWD_COMMAND}`; export r; \
41199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41200 $(NORMAL_TARGET_EXPORTS) \
22121df0 41201 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41202 for flag in $(EXTRA_TARGET_FLAGS); do \
41203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41204 done; \
41205 (cd $(TARGET_SUBDIR)/libobjc && \
41206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41208 "RANLIB=$${RANLIB}" \
41209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41210 mostlyclean) \
41211 || exit 1
4fa63067 41212
a90ef4bf 41213@endif target-libobjc
4fa63067 41214
a90ef4bf
JM
41215.PHONY: maybe-clean-target-libobjc clean-target-libobjc
41216maybe-clean-target-libobjc:
41217@if target-libobjc
41218maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 41219
a90ef4bf
JM
41220clean-target-libobjc:
41221 @: $(MAKE); $(unstage)
22121df0 41222 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41223 r=`${PWD_COMMAND}`; export r; \
41224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41225 $(NORMAL_TARGET_EXPORTS) \
22121df0 41226 echo "Doing clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41227 for flag in $(EXTRA_TARGET_FLAGS); do \
41228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41229 done; \
41230 (cd $(TARGET_SUBDIR)/libobjc && \
41231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41233 "RANLIB=$${RANLIB}" \
41234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41235 clean) \
41236 || exit 1
4fa63067 41237
a90ef4bf 41238@endif target-libobjc
4fa63067 41239
a90ef4bf
JM
41240.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
41241maybe-distclean-target-libobjc:
41242@if target-libobjc
41243maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 41244
a90ef4bf
JM
41245distclean-target-libobjc:
41246 @: $(MAKE); $(unstage)
22121df0 41247 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41248 r=`${PWD_COMMAND}`; export r; \
41249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41250 $(NORMAL_TARGET_EXPORTS) \
22121df0 41251 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41252 for flag in $(EXTRA_TARGET_FLAGS); do \
41253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41254 done; \
41255 (cd $(TARGET_SUBDIR)/libobjc && \
41256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41258 "RANLIB=$${RANLIB}" \
41259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41260 distclean) \
41261 || exit 1
4fa63067 41262
a90ef4bf 41263@endif target-libobjc
4fa63067 41264
a90ef4bf
JM
41265.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
41266maybe-maintainer-clean-target-libobjc:
41267@if target-libobjc
41268maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 41269
a90ef4bf
JM
41270maintainer-clean-target-libobjc:
41271 @: $(MAKE); $(unstage)
22121df0 41272 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
41273 r=`${PWD_COMMAND}`; export r; \
41274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41275 $(NORMAL_TARGET_EXPORTS) \
22121df0 41276 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
41277 for flag in $(EXTRA_TARGET_FLAGS); do \
41278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41279 done; \
41280 (cd $(TARGET_SUBDIR)/libobjc && \
41281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41283 "RANLIB=$${RANLIB}" \
41284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41285 maintainer-clean) \
41286 || exit 1
4fa63067 41287
a90ef4bf 41288@endif target-libobjc
4fa63067
NN
41289
41290
4fa63067 41291
4fa63067 41292
a7254363 41293
a90ef4bf
JM
41294.PHONY: configure-target-libgo maybe-configure-target-libgo
41295maybe-configure-target-libgo:
4f0ef2d8 41296@if gcc-bootstrap
a90ef4bf 41297configure-target-libgo: stage_current
4f0ef2d8 41298@endif gcc-bootstrap
a90ef4bf
JM
41299@if target-libgo
41300maybe-configure-target-libgo: configure-target-libgo
41301configure-target-libgo:
0aed8855
PB
41302 @: $(MAKE); $(unstage)
41303 @r=`${PWD_COMMAND}`; export r; \
41304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41305 echo "Checking multilib configuration for libgo..."; \
22121df0
L
41306 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
41307 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41308 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
41309 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
41310 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 41311 else \
a90ef4bf
JM
41312 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
41313 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
41314 fi; \
41315 else \
a90ef4bf 41316 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 41317 fi; \
a90ef4bf 41318 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
22121df0 41319 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
1f53ca9a 41320 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41321 echo Configuring in $(TARGET_SUBDIR)/libgo; \
41322 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 41323 case $(srcdir) in \
b00612cc 41324 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41325 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 41326 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 41327 esac; \
1b6c0831 41328 module_srcdir=libgo; \
4fa63067 41329 rm -f no-such-file || : ; \
1b6c0831
L
41330 CONFIG_SITE=no-such-file $(SHELL) \
41331 $$s/$$module_srcdir/configure \
41332 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41333 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41334 --target=${target_alias} \
e2b9e2dc 41335 || exit 1
a90ef4bf 41336@endif target-libgo
e2b9e2dc 41337
a7254363
PB
41338
41339
d545f33b
PB
41340
41341
a90ef4bf
JM
41342.PHONY: all-target-libgo maybe-all-target-libgo
41343maybe-all-target-libgo:
4f0ef2d8 41344@if gcc-bootstrap
a90ef4bf 41345all-target-libgo: stage_current
4f0ef2d8 41346@endif gcc-bootstrap
a90ef4bf
JM
41347@if target-libgo
41348TARGET-target-libgo=all
41349maybe-all-target-libgo: all-target-libgo
41350all-target-libgo: configure-target-libgo
0aed8855 41351 @: $(MAKE); $(unstage)
b40e3958
L
41352 @r=`${PWD_COMMAND}`; export r; \
41353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41354 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41355 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 41356 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41357 $(TARGET-target-libgo))
41358@endif target-libgo
3866be5d 41359
a7254363
PB
41360
41361
d545f33b
PB
41362
41363
a90ef4bf
JM
41364.PHONY: check-target-libgo maybe-check-target-libgo
41365maybe-check-target-libgo:
41366@if target-libgo
41367maybe-check-target-libgo: check-target-libgo
3866be5d 41368
a90ef4bf 41369check-target-libgo:
0aed8855 41370 @: $(MAKE); $(unstage)
4fa63067
NN
41371 @r=`${PWD_COMMAND}`; export r; \
41372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41373 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41374 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 41375 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 41376
a90ef4bf 41377@endif target-libgo
3866be5d 41378
a90ef4bf
JM
41379.PHONY: install-target-libgo maybe-install-target-libgo
41380maybe-install-target-libgo:
41381@if target-libgo
41382maybe-install-target-libgo: install-target-libgo
16ae0395 41383
a90ef4bf 41384install-target-libgo: installdirs
0aed8855 41385 @: $(MAKE); $(unstage)
4fa63067
NN
41386 @r=`${PWD_COMMAND}`; export r; \
41387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41388 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41389 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 41390 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 41391
a90ef4bf 41392@endif target-libgo
3866be5d 41393
a90ef4bf
JM
41394.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
41395maybe-install-strip-target-libgo:
41396@if target-libgo
41397maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 41398
a90ef4bf 41399install-strip-target-libgo: installdirs
9b980aa1
RW
41400 @: $(MAKE); $(unstage)
41401 @r=`${PWD_COMMAND}`; export r; \
41402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41403 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41404 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
41405 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41406
a90ef4bf 41407@endif target-libgo
9b980aa1 41408
56a8fe78 41409# Other targets (info, dvi, pdf, etc.)
4fa63067 41410
a90ef4bf
JM
41411.PHONY: maybe-info-target-libgo info-target-libgo
41412maybe-info-target-libgo:
41413@if target-libgo
41414maybe-info-target-libgo: info-target-libgo
4fa63067 41415
a90ef4bf
JM
41416info-target-libgo: \
41417 configure-target-libgo
0aed8855 41418 @: $(MAKE); $(unstage)
22121df0 41419 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
41420 r=`${PWD_COMMAND}`; export r; \
41421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41422 $(NORMAL_TARGET_EXPORTS) \
22121df0 41423 echo "Doing info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41424 for flag in $(EXTRA_TARGET_FLAGS); do \
41425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41426 done; \
a90ef4bf 41427 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41430 "RANLIB=$${RANLIB}" \
0c24b341 41431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41432 info) \
e2b9e2dc
NN
41433 || exit 1
41434
a90ef4bf 41435@endif target-libgo
3866be5d 41436
a90ef4bf
JM
41437.PHONY: maybe-dvi-target-libgo dvi-target-libgo
41438maybe-dvi-target-libgo:
41439@if target-libgo
41440maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 41441
a90ef4bf
JM
41442dvi-target-libgo: \
41443 configure-target-libgo
0aed8855 41444 @: $(MAKE); $(unstage)
22121df0 41445 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41446 r=`${PWD_COMMAND}`; export r; \
b40e3958 41447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41448 $(NORMAL_TARGET_EXPORTS) \
22121df0 41449 echo "Doing dvi in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41450 for flag in $(EXTRA_TARGET_FLAGS); do \
41451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41452 done; \
a90ef4bf 41453 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41456 "RANLIB=$${RANLIB}" \
0c24b341 41457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41458 dvi) \
4fa63067 41459 || exit 1
3866be5d 41460
a90ef4bf 41461@endif target-libgo
3866be5d 41462
a90ef4bf
JM
41463.PHONY: maybe-pdf-target-libgo pdf-target-libgo
41464maybe-pdf-target-libgo:
41465@if target-libgo
41466maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 41467
a90ef4bf
JM
41468pdf-target-libgo: \
41469 configure-target-libgo
56a8fe78 41470 @: $(MAKE); $(unstage)
22121df0 41471 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
56a8fe78
DD
41472 r=`${PWD_COMMAND}`; export r; \
41473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41474 $(NORMAL_TARGET_EXPORTS) \
22121df0 41475 echo "Doing pdf in $(TARGET_SUBDIR)/libgo"; \
56a8fe78
DD
41476 for flag in $(EXTRA_TARGET_FLAGS); do \
41477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41478 done; \
a90ef4bf 41479 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
41480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41482 "RANLIB=$${RANLIB}" \
0c24b341 41483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41484 pdf) \
41485 || exit 1
41486
a90ef4bf 41487@endif target-libgo
56a8fe78 41488
a90ef4bf
JM
41489.PHONY: maybe-html-target-libgo html-target-libgo
41490maybe-html-target-libgo:
41491@if target-libgo
41492maybe-html-target-libgo: html-target-libgo
6d389afc 41493
a90ef4bf
JM
41494html-target-libgo: \
41495 configure-target-libgo
0aed8855 41496 @: $(MAKE); $(unstage)
22121df0 41497 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
6d389afc
MS
41498 r=`${PWD_COMMAND}`; export r; \
41499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41500 $(NORMAL_TARGET_EXPORTS) \
22121df0 41501 echo "Doing html in $(TARGET_SUBDIR)/libgo"; \
6d389afc
MS
41502 for flag in $(EXTRA_TARGET_FLAGS); do \
41503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41504 done; \
a90ef4bf 41505 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
41506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41508 "RANLIB=$${RANLIB}" \
0c24b341 41509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41510 html) \
41511 || exit 1
41512
a90ef4bf 41513@endif target-libgo
6d389afc 41514
a90ef4bf
JM
41515.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
41516maybe-TAGS-target-libgo:
41517@if target-libgo
41518maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 41519
a90ef4bf
JM
41520TAGS-target-libgo: \
41521 configure-target-libgo
0aed8855 41522 @: $(MAKE); $(unstage)
22121df0 41523 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41524 r=`${PWD_COMMAND}`; export r; \
b40e3958 41525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41526 $(NORMAL_TARGET_EXPORTS) \
22121df0 41527 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41528 for flag in $(EXTRA_TARGET_FLAGS); do \
41529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41530 done; \
a90ef4bf 41531 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41534 "RANLIB=$${RANLIB}" \
0c24b341 41535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41536 TAGS) \
4fa63067 41537 || exit 1
3866be5d 41538
a90ef4bf 41539@endif target-libgo
3866be5d 41540
a90ef4bf
JM
41541.PHONY: maybe-install-info-target-libgo install-info-target-libgo
41542maybe-install-info-target-libgo:
41543@if target-libgo
41544maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 41545
a90ef4bf
JM
41546install-info-target-libgo: \
41547 configure-target-libgo \
41548 info-target-libgo
0aed8855 41549 @: $(MAKE); $(unstage)
22121df0 41550 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
41551 r=`${PWD_COMMAND}`; export r; \
41552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41553 $(NORMAL_TARGET_EXPORTS) \
22121df0 41554 echo "Doing install-info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41555 for flag in $(EXTRA_TARGET_FLAGS); do \
41556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41557 done; \
a90ef4bf 41558 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41561 "RANLIB=$${RANLIB}" \
0c24b341 41562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41563 install-info) \
e2b9e2dc
NN
41564 || exit 1
41565
a90ef4bf 41566@endif target-libgo
4fa63067 41567
a90ef4bf
JM
41568.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
41569maybe-install-pdf-target-libgo:
41570@if target-libgo
41571maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 41572
a90ef4bf
JM
41573install-pdf-target-libgo: \
41574 configure-target-libgo \
41575 pdf-target-libgo
a3ca38d2 41576 @: $(MAKE); $(unstage)
22121df0 41577 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
a3ca38d2
DD
41578 r=`${PWD_COMMAND}`; export r; \
41579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41580 $(NORMAL_TARGET_EXPORTS) \
22121df0 41581 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo"; \
a3ca38d2
DD
41582 for flag in $(EXTRA_TARGET_FLAGS); do \
41583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41584 done; \
a90ef4bf 41585 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
41586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41588 "RANLIB=$${RANLIB}" \
0c24b341 41589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41590 install-pdf) \
41591 || exit 1
41592
a90ef4bf 41593@endif target-libgo
a3ca38d2 41594
a90ef4bf
JM
41595.PHONY: maybe-install-html-target-libgo install-html-target-libgo
41596maybe-install-html-target-libgo:
41597@if target-libgo
41598maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 41599
a90ef4bf
JM
41600install-html-target-libgo: \
41601 configure-target-libgo \
41602 html-target-libgo
108a6f8e 41603 @: $(MAKE); $(unstage)
22121df0 41604 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
108a6f8e
CD
41605 r=`${PWD_COMMAND}`; export r; \
41606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41607 $(NORMAL_TARGET_EXPORTS) \
22121df0 41608 echo "Doing install-html in $(TARGET_SUBDIR)/libgo"; \
108a6f8e
CD
41609 for flag in $(EXTRA_TARGET_FLAGS); do \
41610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41611 done; \
a90ef4bf 41612 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
41613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41615 "RANLIB=$${RANLIB}" \
0c24b341 41616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41617 install-html) \
41618 || exit 1
41619
a90ef4bf 41620@endif target-libgo
108a6f8e 41621
a90ef4bf
JM
41622.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
41623maybe-installcheck-target-libgo:
41624@if target-libgo
41625maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 41626
a90ef4bf
JM
41627installcheck-target-libgo: \
41628 configure-target-libgo
0aed8855 41629 @: $(MAKE); $(unstage)
22121df0 41630 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41631 r=`${PWD_COMMAND}`; export r; \
b40e3958 41632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41633 $(NORMAL_TARGET_EXPORTS) \
22121df0 41634 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41635 for flag in $(EXTRA_TARGET_FLAGS); do \
41636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41637 done; \
a90ef4bf 41638 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41641 "RANLIB=$${RANLIB}" \
0c24b341 41642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41643 installcheck) \
4fa63067 41644 || exit 1
3866be5d 41645
a90ef4bf 41646@endif target-libgo
3866be5d 41647
a90ef4bf
JM
41648.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
41649maybe-mostlyclean-target-libgo:
41650@if target-libgo
41651maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 41652
a90ef4bf 41653mostlyclean-target-libgo:
0aed8855 41654 @: $(MAKE); $(unstage)
22121df0 41655 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41656 r=`${PWD_COMMAND}`; export r; \
b40e3958 41657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41658 $(NORMAL_TARGET_EXPORTS) \
22121df0 41659 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41660 for flag in $(EXTRA_TARGET_FLAGS); do \
41661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41662 done; \
a90ef4bf 41663 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41666 "RANLIB=$${RANLIB}" \
0c24b341 41667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41668 mostlyclean) \
4fa63067 41669 || exit 1
3866be5d 41670
a90ef4bf 41671@endif target-libgo
3866be5d 41672
a90ef4bf
JM
41673.PHONY: maybe-clean-target-libgo clean-target-libgo
41674maybe-clean-target-libgo:
41675@if target-libgo
41676maybe-clean-target-libgo: clean-target-libgo
16ae0395 41677
a90ef4bf 41678clean-target-libgo:
0aed8855 41679 @: $(MAKE); $(unstage)
22121df0 41680 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41681 r=`${PWD_COMMAND}`; export r; \
b40e3958 41682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41683 $(NORMAL_TARGET_EXPORTS) \
22121df0 41684 echo "Doing clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41685 for flag in $(EXTRA_TARGET_FLAGS); do \
41686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41687 done; \
a90ef4bf 41688 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41691 "RANLIB=$${RANLIB}" \
0c24b341 41692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41693 clean) \
4fa63067 41694 || exit 1
3866be5d 41695
a90ef4bf 41696@endif target-libgo
3866be5d 41697
a90ef4bf
JM
41698.PHONY: maybe-distclean-target-libgo distclean-target-libgo
41699maybe-distclean-target-libgo:
41700@if target-libgo
41701maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 41702
a90ef4bf 41703distclean-target-libgo:
0aed8855 41704 @: $(MAKE); $(unstage)
22121df0 41705 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
41706 r=`${PWD_COMMAND}`; export r; \
41707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41708 $(NORMAL_TARGET_EXPORTS) \
22121df0 41709 echo "Doing distclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41710 for flag in $(EXTRA_TARGET_FLAGS); do \
41711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41712 done; \
a90ef4bf 41713 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41716 "RANLIB=$${RANLIB}" \
0c24b341 41717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41718 distclean) \
e2b9e2dc
NN
41719 || exit 1
41720
a90ef4bf 41721@endif target-libgo
3866be5d 41722
a90ef4bf
JM
41723.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
41724maybe-maintainer-clean-target-libgo:
41725@if target-libgo
41726maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 41727
a90ef4bf 41728maintainer-clean-target-libgo:
0aed8855 41729 @: $(MAKE); $(unstage)
22121df0 41730 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 41731 r=`${PWD_COMMAND}`; export r; \
b40e3958 41732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41733 $(NORMAL_TARGET_EXPORTS) \
22121df0 41734 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
41735 for flag in $(EXTRA_TARGET_FLAGS); do \
41736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41737 done; \
a90ef4bf 41738 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
41739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41741 "RANLIB=$${RANLIB}" \
0c24b341 41742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41743 maintainer-clean) \
4fa63067 41744 || exit 1
3866be5d 41745
a90ef4bf 41746@endif target-libgo
3866be5d 41747
16ae0395 41748
3866be5d 41749
e90269c8 41750
a7254363 41751
a90ef4bf
JM
41752.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
41753maybe-configure-target-libtermcap:
4f0ef2d8 41754@if gcc-bootstrap
a90ef4bf 41755configure-target-libtermcap: stage_current
4f0ef2d8 41756@endif gcc-bootstrap
a90ef4bf
JM
41757@if target-libtermcap
41758maybe-configure-target-libtermcap: configure-target-libtermcap
41759configure-target-libtermcap:
0aed8855
PB
41760 @: $(MAKE); $(unstage)
41761 @r=`${PWD_COMMAND}`; export r; \
41762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41763 echo "Checking multilib configuration for libtermcap..."; \
22121df0
L
41764 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
41765 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41766 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
41767 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
41768 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 41769 else \
a90ef4bf
JM
41770 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
41771 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
41772 fi; \
41773 else \
a90ef4bf 41774 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 41775 fi; \
a90ef4bf 41776 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 41777 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
1f53ca9a 41778 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41779 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
41780 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 41781 case $(srcdir) in \
b00612cc 41782 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41783 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 41784 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 41785 esac; \
1b6c0831 41786 module_srcdir=libtermcap; \
4fa63067 41787 rm -f no-such-file || : ; \
1b6c0831
L
41788 CONFIG_SITE=no-such-file $(SHELL) \
41789 $$s/$$module_srcdir/configure \
41790 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41791 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41792 --target=${target_alias} \
e2b9e2dc 41793 || exit 1
a90ef4bf 41794@endif target-libtermcap
e2b9e2dc 41795
a7254363
PB
41796
41797
d545f33b
PB
41798
41799
a90ef4bf
JM
41800.PHONY: all-target-libtermcap maybe-all-target-libtermcap
41801maybe-all-target-libtermcap:
4f0ef2d8 41802@if gcc-bootstrap
a90ef4bf 41803all-target-libtermcap: stage_current
4f0ef2d8 41804@endif gcc-bootstrap
a90ef4bf
JM
41805@if target-libtermcap
41806TARGET-target-libtermcap=all
41807maybe-all-target-libtermcap: all-target-libtermcap
41808all-target-libtermcap: configure-target-libtermcap
0aed8855 41809 @: $(MAKE); $(unstage)
b40e3958
L
41810 @r=`${PWD_COMMAND}`; export r; \
41811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41812 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41813 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 41814 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41815 $(TARGET-target-libtermcap))
41816@endif target-libtermcap
e393202e 41817
a7254363
PB
41818
41819
d545f33b
PB
41820
41821
a90ef4bf
JM
41822.PHONY: check-target-libtermcap maybe-check-target-libtermcap
41823maybe-check-target-libtermcap:
41824@if target-libtermcap
41825maybe-check-target-libtermcap: check-target-libtermcap
e393202e 41826
4fa63067 41827# Dummy target for uncheckable module.
a90ef4bf 41828check-target-libtermcap:
e393202e 41829
a90ef4bf 41830@endif target-libtermcap
e393202e 41831
a90ef4bf
JM
41832.PHONY: install-target-libtermcap maybe-install-target-libtermcap
41833maybe-install-target-libtermcap:
41834@if target-libtermcap
41835maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 41836
a90ef4bf 41837install-target-libtermcap: installdirs
0aed8855 41838 @: $(MAKE); $(unstage)
b40e3958
L
41839 @r=`${PWD_COMMAND}`; export r; \
41840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41841 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41842 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 41843 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 41844
a90ef4bf 41845@endif target-libtermcap
56a8fe78 41846
a90ef4bf
JM
41847.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
41848maybe-install-strip-target-libtermcap:
41849@if target-libtermcap
41850maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 41851
a90ef4bf 41852install-strip-target-libtermcap: installdirs
0aed8855 41853 @: $(MAKE); $(unstage)
a90ef4bf 41854 @r=`${PWD_COMMAND}`; export r; \
6d389afc 41855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41856 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41857 (cd $(TARGET_SUBDIR)/libtermcap && \
41858 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 41859
a90ef4bf 41860@endif target-libtermcap
6d389afc 41861
a90ef4bf 41862# Other targets (info, dvi, pdf, etc.)
16ae0395 41863
a90ef4bf
JM
41864.PHONY: maybe-info-target-libtermcap info-target-libtermcap
41865maybe-info-target-libtermcap:
41866@if target-libtermcap
41867maybe-info-target-libtermcap: info-target-libtermcap
41868
41869info-target-libtermcap: \
41870 configure-target-libtermcap
0aed8855 41871 @: $(MAKE); $(unstage)
22121df0 41872 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 41873 r=`${PWD_COMMAND}`; export r; \
b40e3958 41874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41875 $(NORMAL_TARGET_EXPORTS) \
22121df0 41876 echo "Doing info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
41877 for flag in $(EXTRA_TARGET_FLAGS); do \
41878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41879 done; \
a90ef4bf 41880 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41883 "RANLIB=$${RANLIB}" \
0c24b341 41884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41885 info) \
4fa63067 41886 || exit 1
ce5b542e 41887
a90ef4bf 41888@endif target-libtermcap
ce5b542e 41889
a90ef4bf
JM
41890.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
41891maybe-dvi-target-libtermcap:
41892@if target-libtermcap
41893maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 41894
a90ef4bf
JM
41895dvi-target-libtermcap: \
41896 configure-target-libtermcap
0aed8855 41897 @: $(MAKE); $(unstage)
22121df0 41898 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
41899 r=`${PWD_COMMAND}`; export r; \
41900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41901 $(NORMAL_TARGET_EXPORTS) \
22121df0 41902 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
41903 for flag in $(EXTRA_TARGET_FLAGS); do \
41904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41905 done; \
a90ef4bf 41906 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41909 "RANLIB=$${RANLIB}" \
0c24b341 41910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41911 dvi) \
e2b9e2dc
NN
41912 || exit 1
41913
a90ef4bf 41914@endif target-libtermcap
e393202e 41915
a90ef4bf
JM
41916.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
41917maybe-pdf-target-libtermcap:
41918@if target-libtermcap
41919maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 41920
a90ef4bf
JM
41921pdf-target-libtermcap: \
41922 configure-target-libtermcap
a3ca38d2 41923 @: $(MAKE); $(unstage)
22121df0 41924 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
a3ca38d2
DD
41925 r=`${PWD_COMMAND}`; export r; \
41926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41927 $(NORMAL_TARGET_EXPORTS) \
22121df0 41928 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap"; \
a3ca38d2
DD
41929 for flag in $(EXTRA_TARGET_FLAGS); do \
41930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41931 done; \
a90ef4bf 41932 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
41933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41935 "RANLIB=$${RANLIB}" \
0c24b341 41936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41937 pdf) \
a3ca38d2
DD
41938 || exit 1
41939
a90ef4bf 41940@endif target-libtermcap
a3ca38d2 41941
a90ef4bf
JM
41942.PHONY: maybe-html-target-libtermcap html-target-libtermcap
41943maybe-html-target-libtermcap:
41944@if target-libtermcap
41945maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 41946
a90ef4bf
JM
41947html-target-libtermcap: \
41948 configure-target-libtermcap
108a6f8e 41949 @: $(MAKE); $(unstage)
22121df0 41950 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
108a6f8e
CD
41951 r=`${PWD_COMMAND}`; export r; \
41952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41953 $(NORMAL_TARGET_EXPORTS) \
22121df0 41954 echo "Doing html in $(TARGET_SUBDIR)/libtermcap"; \
108a6f8e
CD
41955 for flag in $(EXTRA_TARGET_FLAGS); do \
41956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41957 done; \
a90ef4bf 41958 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
41959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41961 "RANLIB=$${RANLIB}" \
0c24b341 41962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41963 html) \
108a6f8e
CD
41964 || exit 1
41965
a90ef4bf 41966@endif target-libtermcap
108a6f8e 41967
a90ef4bf
JM
41968.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
41969maybe-TAGS-target-libtermcap:
41970@if target-libtermcap
41971maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 41972
a90ef4bf
JM
41973TAGS-target-libtermcap: \
41974 configure-target-libtermcap
0aed8855 41975 @: $(MAKE); $(unstage)
22121df0 41976 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
41977 r=`${PWD_COMMAND}`; export r; \
41978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41979 $(NORMAL_TARGET_EXPORTS) \
22121df0 41980 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
41981 for flag in $(EXTRA_TARGET_FLAGS); do \
41982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41983 done; \
a90ef4bf 41984 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
41985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41987 "RANLIB=$${RANLIB}" \
0c24b341 41988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 41989 TAGS) \
4fa63067 41990 || exit 1
3866be5d 41991
a90ef4bf 41992@endif target-libtermcap
3866be5d 41993
a90ef4bf
JM
41994.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
41995maybe-install-info-target-libtermcap:
41996@if target-libtermcap
41997maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 41998
a90ef4bf
JM
41999install-info-target-libtermcap: \
42000 configure-target-libtermcap \
42001 info-target-libtermcap
0aed8855 42002 @: $(MAKE); $(unstage)
22121df0 42003 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 42004 r=`${PWD_COMMAND}`; export r; \
b40e3958 42005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42006 $(NORMAL_TARGET_EXPORTS) \
22121df0 42007 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42008 for flag in $(EXTRA_TARGET_FLAGS); do \
42009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42010 done; \
a90ef4bf 42011 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42014 "RANLIB=$${RANLIB}" \
0c24b341 42015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42016 install-info) \
4fa63067 42017 || exit 1
e393202e 42018
a90ef4bf 42019@endif target-libtermcap
3866be5d 42020
a90ef4bf
JM
42021.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
42022maybe-install-pdf-target-libtermcap:
42023@if target-libtermcap
42024maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 42025
a90ef4bf
JM
42026install-pdf-target-libtermcap: \
42027 configure-target-libtermcap \
42028 pdf-target-libtermcap
0aed8855 42029 @: $(MAKE); $(unstage)
22121df0 42030 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
42031 r=`${PWD_COMMAND}`; export r; \
42032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42033 $(NORMAL_TARGET_EXPORTS) \
22121df0 42034 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42035 for flag in $(EXTRA_TARGET_FLAGS); do \
42036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42037 done; \
a90ef4bf 42038 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42041 "RANLIB=$${RANLIB}" \
0c24b341 42042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42043 install-pdf) \
e2b9e2dc
NN
42044 || exit 1
42045
a90ef4bf 42046@endif target-libtermcap
e393202e 42047
a90ef4bf
JM
42048.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
42049maybe-install-html-target-libtermcap:
42050@if target-libtermcap
42051maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 42052
a90ef4bf
JM
42053install-html-target-libtermcap: \
42054 configure-target-libtermcap \
42055 html-target-libtermcap
0aed8855 42056 @: $(MAKE); $(unstage)
22121df0 42057 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
42058 r=`${PWD_COMMAND}`; export r; \
42059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42060 $(NORMAL_TARGET_EXPORTS) \
22121df0 42061 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42062 for flag in $(EXTRA_TARGET_FLAGS); do \
42063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42064 done; \
a90ef4bf 42065 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42068 "RANLIB=$${RANLIB}" \
0c24b341 42069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42070 install-html) \
4fa63067 42071 || exit 1
3866be5d 42072
a90ef4bf 42073@endif target-libtermcap
3866be5d 42074
a90ef4bf
JM
42075.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
42076maybe-installcheck-target-libtermcap:
42077@if target-libtermcap
42078maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 42079
a90ef4bf
JM
42080installcheck-target-libtermcap: \
42081 configure-target-libtermcap
0aed8855 42082 @: $(MAKE); $(unstage)
22121df0 42083 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 42084 r=`${PWD_COMMAND}`; export r; \
b40e3958 42085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42086 $(NORMAL_TARGET_EXPORTS) \
22121df0 42087 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42088 for flag in $(EXTRA_TARGET_FLAGS); do \
42089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42090 done; \
a90ef4bf 42091 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42094 "RANLIB=$${RANLIB}" \
0c24b341 42095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42096 installcheck) \
4fa63067 42097 || exit 1
3866be5d 42098
a90ef4bf
JM
42099@endif target-libtermcap
42100
42101.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
42102maybe-mostlyclean-target-libtermcap:
42103@if target-libtermcap
42104maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
42105
42106# libtermcap doesn't support mostlyclean.
42107mostlyclean-target-libtermcap:
42108
42109@endif target-libtermcap
3866be5d 42110
a90ef4bf
JM
42111.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
42112maybe-clean-target-libtermcap:
42113@if target-libtermcap
42114maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 42115
a90ef4bf
JM
42116# libtermcap doesn't support clean.
42117clean-target-libtermcap:
15723a45 42118
a90ef4bf 42119@endif target-libtermcap
e90269c8 42120
a90ef4bf
JM
42121.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
42122maybe-distclean-target-libtermcap:
42123@if target-libtermcap
42124maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 42125
a90ef4bf
JM
42126# libtermcap doesn't support distclean.
42127distclean-target-libtermcap:
42128
42129@endif target-libtermcap
42130
42131.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
42132maybe-maintainer-clean-target-libtermcap:
42133@if target-libtermcap
42134maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
42135
42136# libtermcap doesn't support maintainer-clean.
42137maintainer-clean-target-libtermcap:
42138
42139@endif target-libtermcap
42140
42141
42142
42143
42144
42145.PHONY: configure-target-winsup maybe-configure-target-winsup
42146maybe-configure-target-winsup:
4f0ef2d8 42147@if gcc-bootstrap
a90ef4bf 42148configure-target-winsup: stage_current
4f0ef2d8 42149@endif gcc-bootstrap
a90ef4bf
JM
42150@if target-winsup
42151maybe-configure-target-winsup: configure-target-winsup
42152configure-target-winsup:
0aed8855
PB
42153 @: $(MAKE); $(unstage)
42154 @r=`${PWD_COMMAND}`; export r; \
42155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42156 echo "Checking multilib configuration for winsup..."; \
22121df0
L
42157 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
42158 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42159 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
42160 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
42161 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 42162 else \
a90ef4bf
JM
42163 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
42164 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
42165 fi; \
42166 else \
a90ef4bf 42167 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 42168 fi; \
a90ef4bf 42169 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
22121df0 42170 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
1f53ca9a 42171 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42172 echo Configuring in $(TARGET_SUBDIR)/winsup; \
42173 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 42174 case $(srcdir) in \
b00612cc 42175 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42176 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 42177 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 42178 esac; \
1b6c0831 42179 module_srcdir=winsup; \
bba45b8b 42180 rm -f no-such-file || : ; \
1b6c0831
L
42181 CONFIG_SITE=no-such-file $(SHELL) \
42182 $$s/$$module_srcdir/configure \
42183 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42184 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42185 --target=${target_alias} \
bba45b8b 42186 || exit 1
a90ef4bf 42187@endif target-winsup
e393202e 42188
a7254363
PB
42189
42190
d545f33b
PB
42191
42192
a90ef4bf
JM
42193.PHONY: all-target-winsup maybe-all-target-winsup
42194maybe-all-target-winsup:
4f0ef2d8 42195@if gcc-bootstrap
a90ef4bf 42196all-target-winsup: stage_current
4f0ef2d8 42197@endif gcc-bootstrap
a90ef4bf
JM
42198@if target-winsup
42199TARGET-target-winsup=all
42200maybe-all-target-winsup: all-target-winsup
42201all-target-winsup: configure-target-winsup
0aed8855 42202 @: $(MAKE); $(unstage)
b40e3958
L
42203 @r=`${PWD_COMMAND}`; export r; \
42204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42205 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42206 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 42207 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42208 $(TARGET-target-winsup))
42209@endif target-winsup
e393202e 42210
a7254363
PB
42211
42212
d545f33b
PB
42213
42214
a90ef4bf
JM
42215.PHONY: check-target-winsup maybe-check-target-winsup
42216maybe-check-target-winsup:
42217@if target-winsup
42218maybe-check-target-winsup: check-target-winsup
16ae0395 42219
a90ef4bf 42220check-target-winsup:
0aed8855 42221 @: $(MAKE); $(unstage)
b40e3958
L
42222 @r=`${PWD_COMMAND}`; export r; \
42223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42224 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42225 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 42226 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 42227
a90ef4bf 42228@endif target-winsup
e393202e 42229
a90ef4bf
JM
42230.PHONY: install-target-winsup maybe-install-target-winsup
42231maybe-install-target-winsup:
42232@if target-winsup
42233maybe-install-target-winsup: install-target-winsup
4fa63067 42234
a90ef4bf 42235install-target-winsup: installdirs
0aed8855 42236 @: $(MAKE); $(unstage)
4fa63067
NN
42237 @r=`${PWD_COMMAND}`; export r; \
42238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42239 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42240 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 42241 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 42242
a90ef4bf 42243@endif target-winsup
4fa63067 42244
a90ef4bf
JM
42245.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
42246maybe-install-strip-target-winsup:
42247@if target-winsup
42248maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 42249
a90ef4bf 42250install-strip-target-winsup: installdirs
9b980aa1
RW
42251 @: $(MAKE); $(unstage)
42252 @r=`${PWD_COMMAND}`; export r; \
42253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42254 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42255 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
42256 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42257
a90ef4bf 42258@endif target-winsup
9b980aa1 42259
56a8fe78 42260# Other targets (info, dvi, pdf, etc.)
4fa63067 42261
a90ef4bf
JM
42262.PHONY: maybe-info-target-winsup info-target-winsup
42263maybe-info-target-winsup:
42264@if target-winsup
42265maybe-info-target-winsup: info-target-winsup
4fa63067 42266
a90ef4bf
JM
42267info-target-winsup: \
42268 configure-target-winsup
0aed8855 42269 @: $(MAKE); $(unstage)
22121df0 42270 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42271 r=`${PWD_COMMAND}`; export r; \
42272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42273 $(NORMAL_TARGET_EXPORTS) \
22121df0 42274 echo "Doing info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42275 for flag in $(EXTRA_TARGET_FLAGS); do \
42276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42277 done; \
a90ef4bf 42278 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42281 "RANLIB=$${RANLIB}" \
0c24b341 42282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42283 info) \
4fa63067
NN
42284 || exit 1
42285
a90ef4bf 42286@endif target-winsup
4fa63067 42287
a90ef4bf
JM
42288.PHONY: maybe-dvi-target-winsup dvi-target-winsup
42289maybe-dvi-target-winsup:
42290@if target-winsup
42291maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 42292
a90ef4bf
JM
42293dvi-target-winsup: \
42294 configure-target-winsup
0aed8855 42295 @: $(MAKE); $(unstage)
22121df0 42296 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42297 r=`${PWD_COMMAND}`; export r; \
42298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42299 $(NORMAL_TARGET_EXPORTS) \
22121df0 42300 echo "Doing dvi in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42301 for flag in $(EXTRA_TARGET_FLAGS); do \
42302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42303 done; \
a90ef4bf 42304 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42307 "RANLIB=$${RANLIB}" \
0c24b341 42308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42309 dvi) \
4fa63067
NN
42310 || exit 1
42311
a90ef4bf 42312@endif target-winsup
4fa63067 42313
a90ef4bf
JM
42314.PHONY: maybe-pdf-target-winsup pdf-target-winsup
42315maybe-pdf-target-winsup:
42316@if target-winsup
42317maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 42318
a90ef4bf
JM
42319pdf-target-winsup: \
42320 configure-target-winsup
56a8fe78 42321 @: $(MAKE); $(unstage)
22121df0 42322 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
56a8fe78
DD
42323 r=`${PWD_COMMAND}`; export r; \
42324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42325 $(NORMAL_TARGET_EXPORTS) \
22121df0 42326 echo "Doing pdf in $(TARGET_SUBDIR)/winsup"; \
56a8fe78
DD
42327 for flag in $(EXTRA_TARGET_FLAGS); do \
42328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42329 done; \
a90ef4bf 42330 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
42331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42333 "RANLIB=$${RANLIB}" \
0c24b341 42334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42335 pdf) \
42336 || exit 1
42337
a90ef4bf 42338@endif target-winsup
56a8fe78 42339
a90ef4bf
JM
42340.PHONY: maybe-html-target-winsup html-target-winsup
42341maybe-html-target-winsup:
42342@if target-winsup
42343maybe-html-target-winsup: html-target-winsup
6d389afc 42344
a90ef4bf
JM
42345html-target-winsup: \
42346 configure-target-winsup
0aed8855 42347 @: $(MAKE); $(unstage)
22121df0 42348 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
6d389afc
MS
42349 r=`${PWD_COMMAND}`; export r; \
42350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42351 $(NORMAL_TARGET_EXPORTS) \
22121df0 42352 echo "Doing html in $(TARGET_SUBDIR)/winsup"; \
6d389afc
MS
42353 for flag in $(EXTRA_TARGET_FLAGS); do \
42354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42355 done; \
a90ef4bf 42356 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
42357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42359 "RANLIB=$${RANLIB}" \
0c24b341 42360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42361 html) \
42362 || exit 1
42363
a90ef4bf 42364@endif target-winsup
6d389afc 42365
a90ef4bf
JM
42366.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
42367maybe-TAGS-target-winsup:
42368@if target-winsup
42369maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 42370
a90ef4bf
JM
42371TAGS-target-winsup: \
42372 configure-target-winsup
0aed8855 42373 @: $(MAKE); $(unstage)
22121df0 42374 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42375 r=`${PWD_COMMAND}`; export r; \
42376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42377 $(NORMAL_TARGET_EXPORTS) \
22121df0 42378 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42379 for flag in $(EXTRA_TARGET_FLAGS); do \
42380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42381 done; \
a90ef4bf 42382 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42385 "RANLIB=$${RANLIB}" \
0c24b341 42386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42387 TAGS) \
4fa63067
NN
42388 || exit 1
42389
a90ef4bf 42390@endif target-winsup
4fa63067 42391
a90ef4bf
JM
42392.PHONY: maybe-install-info-target-winsup install-info-target-winsup
42393maybe-install-info-target-winsup:
42394@if target-winsup
42395maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 42396
a90ef4bf
JM
42397install-info-target-winsup: \
42398 configure-target-winsup \
42399 info-target-winsup
0aed8855 42400 @: $(MAKE); $(unstage)
22121df0 42401 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42402 r=`${PWD_COMMAND}`; export r; \
42403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42404 $(NORMAL_TARGET_EXPORTS) \
22121df0 42405 echo "Doing install-info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42406 for flag in $(EXTRA_TARGET_FLAGS); do \
42407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42408 done; \
a90ef4bf 42409 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42412 "RANLIB=$${RANLIB}" \
0c24b341 42413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42414 install-info) \
4fa63067
NN
42415 || exit 1
42416
a90ef4bf 42417@endif target-winsup
4fa63067 42418
a90ef4bf
JM
42419.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
42420maybe-install-pdf-target-winsup:
42421@if target-winsup
42422maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 42423
a90ef4bf
JM
42424install-pdf-target-winsup: \
42425 configure-target-winsup \
42426 pdf-target-winsup
a3ca38d2 42427 @: $(MAKE); $(unstage)
22121df0 42428 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
a3ca38d2
DD
42429 r=`${PWD_COMMAND}`; export r; \
42430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42431 $(NORMAL_TARGET_EXPORTS) \
22121df0 42432 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup"; \
a3ca38d2
DD
42433 for flag in $(EXTRA_TARGET_FLAGS); do \
42434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42435 done; \
a90ef4bf 42436 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
42437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42439 "RANLIB=$${RANLIB}" \
0c24b341 42440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42441 install-pdf) \
42442 || exit 1
42443
a90ef4bf 42444@endif target-winsup
a3ca38d2 42445
a90ef4bf
JM
42446.PHONY: maybe-install-html-target-winsup install-html-target-winsup
42447maybe-install-html-target-winsup:
42448@if target-winsup
42449maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 42450
a90ef4bf
JM
42451install-html-target-winsup: \
42452 configure-target-winsup \
42453 html-target-winsup
108a6f8e 42454 @: $(MAKE); $(unstage)
22121df0 42455 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
108a6f8e
CD
42456 r=`${PWD_COMMAND}`; export r; \
42457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42458 $(NORMAL_TARGET_EXPORTS) \
22121df0 42459 echo "Doing install-html in $(TARGET_SUBDIR)/winsup"; \
108a6f8e
CD
42460 for flag in $(EXTRA_TARGET_FLAGS); do \
42461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42462 done; \
a90ef4bf 42463 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
42464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42466 "RANLIB=$${RANLIB}" \
0c24b341 42467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42468 install-html) \
42469 || exit 1
42470
a90ef4bf 42471@endif target-winsup
108a6f8e 42472
a90ef4bf
JM
42473.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
42474maybe-installcheck-target-winsup:
42475@if target-winsup
42476maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 42477
a90ef4bf
JM
42478installcheck-target-winsup: \
42479 configure-target-winsup
0aed8855 42480 @: $(MAKE); $(unstage)
22121df0 42481 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42482 r=`${PWD_COMMAND}`; export r; \
42483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42484 $(NORMAL_TARGET_EXPORTS) \
22121df0 42485 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42486 for flag in $(EXTRA_TARGET_FLAGS); do \
42487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42488 done; \
a90ef4bf 42489 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42492 "RANLIB=$${RANLIB}" \
0c24b341 42493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42494 installcheck) \
4fa63067
NN
42495 || exit 1
42496
a90ef4bf 42497@endif target-winsup
4fa63067 42498
a90ef4bf
JM
42499.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
42500maybe-mostlyclean-target-winsup:
42501@if target-winsup
42502maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 42503
a90ef4bf 42504mostlyclean-target-winsup:
0aed8855 42505 @: $(MAKE); $(unstage)
22121df0 42506 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42507 r=`${PWD_COMMAND}`; export r; \
42508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42509 $(NORMAL_TARGET_EXPORTS) \
22121df0 42510 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42511 for flag in $(EXTRA_TARGET_FLAGS); do \
42512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42513 done; \
a90ef4bf 42514 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42517 "RANLIB=$${RANLIB}" \
0c24b341 42518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42519 mostlyclean) \
4fa63067
NN
42520 || exit 1
42521
a90ef4bf 42522@endif target-winsup
4fa63067 42523
a90ef4bf
JM
42524.PHONY: maybe-clean-target-winsup clean-target-winsup
42525maybe-clean-target-winsup:
42526@if target-winsup
42527maybe-clean-target-winsup: clean-target-winsup
4fa63067 42528
a90ef4bf 42529clean-target-winsup:
0aed8855 42530 @: $(MAKE); $(unstage)
22121df0 42531 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42532 r=`${PWD_COMMAND}`; export r; \
42533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42534 $(NORMAL_TARGET_EXPORTS) \
22121df0 42535 echo "Doing clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42536 for flag in $(EXTRA_TARGET_FLAGS); do \
42537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42538 done; \
a90ef4bf 42539 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42542 "RANLIB=$${RANLIB}" \
0c24b341 42543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42544 clean) \
4fa63067
NN
42545 || exit 1
42546
a90ef4bf 42547@endif target-winsup
4fa63067 42548
a90ef4bf
JM
42549.PHONY: maybe-distclean-target-winsup distclean-target-winsup
42550maybe-distclean-target-winsup:
42551@if target-winsup
42552maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 42553
a90ef4bf 42554distclean-target-winsup:
0aed8855 42555 @: $(MAKE); $(unstage)
22121df0 42556 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42557 r=`${PWD_COMMAND}`; export r; \
42558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42559 $(NORMAL_TARGET_EXPORTS) \
22121df0 42560 echo "Doing distclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42561 for flag in $(EXTRA_TARGET_FLAGS); do \
42562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42563 done; \
a90ef4bf 42564 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42567 "RANLIB=$${RANLIB}" \
0c24b341 42568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42569 distclean) \
4fa63067
NN
42570 || exit 1
42571
a90ef4bf 42572@endif target-winsup
4fa63067 42573
a90ef4bf
JM
42574.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
42575maybe-maintainer-clean-target-winsup:
42576@if target-winsup
42577maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 42578
a90ef4bf 42579maintainer-clean-target-winsup:
0aed8855 42580 @: $(MAKE); $(unstage)
22121df0 42581 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
42582 r=`${PWD_COMMAND}`; export r; \
42583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42584 $(NORMAL_TARGET_EXPORTS) \
22121df0 42585 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
42586 for flag in $(EXTRA_TARGET_FLAGS); do \
42587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42588 done; \
a90ef4bf 42589 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
42590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42592 "RANLIB=$${RANLIB}" \
0c24b341 42593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42594 maintainer-clean) \
4fa63067 42595 || exit 1
16ae0395 42596
a90ef4bf 42597@endif target-winsup
e393202e
NN
42598
42599
15723a45 42600
e90269c8 42601
a7254363 42602
a90ef4bf
JM
42603.PHONY: configure-target-libgloss maybe-configure-target-libgloss
42604maybe-configure-target-libgloss:
4f0ef2d8 42605@if gcc-bootstrap
a90ef4bf 42606configure-target-libgloss: stage_current
4f0ef2d8 42607@endif gcc-bootstrap
a90ef4bf
JM
42608@if target-libgloss
42609maybe-configure-target-libgloss: configure-target-libgloss
42610configure-target-libgloss:
0aed8855
PB
42611 @: $(MAKE); $(unstage)
42612 @r=`${PWD_COMMAND}`; export r; \
42613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42614 echo "Checking multilib configuration for libgloss..."; \
22121df0
L
42615 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
42616 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42617 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
42618 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
42619 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 42620 else \
a90ef4bf
JM
42621 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
42622 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
42623 fi; \
42624 else \
a90ef4bf 42625 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 42626 fi; \
a90ef4bf 42627 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
22121df0 42628 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
1f53ca9a 42629 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42630 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
42631 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 42632 case $(srcdir) in \
b00612cc 42633 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42634 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 42635 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 42636 esac; \
1b6c0831 42637 module_srcdir=libgloss; \
bba45b8b 42638 rm -f no-such-file || : ; \
1b6c0831
L
42639 CONFIG_SITE=no-such-file $(SHELL) \
42640 $$s/$$module_srcdir/configure \
42641 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42642 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42643 --target=${target_alias} \
bba45b8b 42644 || exit 1
a90ef4bf 42645@endif target-libgloss
e393202e 42646
a7254363
PB
42647
42648
d545f33b
PB
42649
42650
a90ef4bf
JM
42651.PHONY: all-target-libgloss maybe-all-target-libgloss
42652maybe-all-target-libgloss:
4f0ef2d8 42653@if gcc-bootstrap
a90ef4bf 42654all-target-libgloss: stage_current
4f0ef2d8 42655@endif gcc-bootstrap
a90ef4bf
JM
42656@if target-libgloss
42657TARGET-target-libgloss=all
42658maybe-all-target-libgloss: all-target-libgloss
42659all-target-libgloss: configure-target-libgloss
0aed8855 42660 @: $(MAKE); $(unstage)
b40e3958
L
42661 @r=`${PWD_COMMAND}`; export r; \
42662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42663 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42664 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 42665 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42666 $(TARGET-target-libgloss))
42667@endif target-libgloss
e393202e 42668
a7254363
PB
42669
42670
d545f33b
PB
42671
42672
a90ef4bf
JM
42673.PHONY: check-target-libgloss maybe-check-target-libgloss
42674maybe-check-target-libgloss:
42675@if target-libgloss
42676maybe-check-target-libgloss: check-target-libgloss
16ae0395 42677
a90ef4bf
JM
42678# Dummy target for uncheckable module.
42679check-target-libgloss:
930314a4 42680
a90ef4bf 42681@endif target-libgloss
e393202e 42682
a90ef4bf
JM
42683.PHONY: install-target-libgloss maybe-install-target-libgloss
42684maybe-install-target-libgloss:
42685@if target-libgloss
42686maybe-install-target-libgloss: install-target-libgloss
4fa63067 42687
a90ef4bf 42688install-target-libgloss: installdirs
0aed8855 42689 @: $(MAKE); $(unstage)
4fa63067
NN
42690 @r=`${PWD_COMMAND}`; export r; \
42691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42692 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42693 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 42694 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 42695
a90ef4bf 42696@endif target-libgloss
4fa63067 42697
a90ef4bf
JM
42698.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
42699maybe-install-strip-target-libgloss:
42700@if target-libgloss
42701maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 42702
a90ef4bf 42703install-strip-target-libgloss: installdirs
9b980aa1
RW
42704 @: $(MAKE); $(unstage)
42705 @r=`${PWD_COMMAND}`; export r; \
42706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42707 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42708 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
42709 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42710
a90ef4bf 42711@endif target-libgloss
9b980aa1 42712
56a8fe78 42713# Other targets (info, dvi, pdf, etc.)
4fa63067 42714
a90ef4bf
JM
42715.PHONY: maybe-info-target-libgloss info-target-libgloss
42716maybe-info-target-libgloss:
42717@if target-libgloss
42718maybe-info-target-libgloss: info-target-libgloss
4fa63067 42719
a90ef4bf
JM
42720info-target-libgloss: \
42721 configure-target-libgloss
0aed8855 42722 @: $(MAKE); $(unstage)
22121df0 42723 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42724 r=`${PWD_COMMAND}`; export r; \
42725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42726 $(NORMAL_TARGET_EXPORTS) \
22121df0 42727 echo "Doing info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42728 for flag in $(EXTRA_TARGET_FLAGS); do \
42729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42730 done; \
a90ef4bf 42731 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42734 "RANLIB=$${RANLIB}" \
0c24b341 42735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42736 info) \
4fa63067
NN
42737 || exit 1
42738
a90ef4bf 42739@endif target-libgloss
4fa63067 42740
a90ef4bf
JM
42741.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
42742maybe-dvi-target-libgloss:
42743@if target-libgloss
42744maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 42745
a90ef4bf
JM
42746dvi-target-libgloss: \
42747 configure-target-libgloss
0aed8855 42748 @: $(MAKE); $(unstage)
22121df0 42749 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42750 r=`${PWD_COMMAND}`; export r; \
42751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42752 $(NORMAL_TARGET_EXPORTS) \
22121df0 42753 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42754 for flag in $(EXTRA_TARGET_FLAGS); do \
42755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42756 done; \
a90ef4bf 42757 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42760 "RANLIB=$${RANLIB}" \
0c24b341 42761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42762 dvi) \
4fa63067
NN
42763 || exit 1
42764
a90ef4bf 42765@endif target-libgloss
4fa63067 42766
a90ef4bf
JM
42767.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
42768maybe-pdf-target-libgloss:
42769@if target-libgloss
42770maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 42771
a90ef4bf
JM
42772pdf-target-libgloss: \
42773 configure-target-libgloss
56a8fe78 42774 @: $(MAKE); $(unstage)
22121df0 42775 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
56a8fe78
DD
42776 r=`${PWD_COMMAND}`; export r; \
42777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42778 $(NORMAL_TARGET_EXPORTS) \
22121df0 42779 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss"; \
56a8fe78
DD
42780 for flag in $(EXTRA_TARGET_FLAGS); do \
42781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42782 done; \
a90ef4bf 42783 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
42784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42786 "RANLIB=$${RANLIB}" \
0c24b341 42787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42788 pdf) \
42789 || exit 1
42790
a90ef4bf 42791@endif target-libgloss
56a8fe78 42792
a90ef4bf
JM
42793.PHONY: maybe-html-target-libgloss html-target-libgloss
42794maybe-html-target-libgloss:
42795@if target-libgloss
42796maybe-html-target-libgloss: html-target-libgloss
6d389afc 42797
a90ef4bf
JM
42798html-target-libgloss: \
42799 configure-target-libgloss
0aed8855 42800 @: $(MAKE); $(unstage)
22121df0 42801 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
6d389afc
MS
42802 r=`${PWD_COMMAND}`; export r; \
42803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42804 $(NORMAL_TARGET_EXPORTS) \
22121df0 42805 echo "Doing html in $(TARGET_SUBDIR)/libgloss"; \
6d389afc
MS
42806 for flag in $(EXTRA_TARGET_FLAGS); do \
42807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42808 done; \
a90ef4bf 42809 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
42810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42812 "RANLIB=$${RANLIB}" \
0c24b341 42813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42814 html) \
42815 || exit 1
42816
a90ef4bf 42817@endif target-libgloss
6d389afc 42818
a90ef4bf
JM
42819.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
42820maybe-TAGS-target-libgloss:
42821@if target-libgloss
42822maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 42823
a90ef4bf
JM
42824TAGS-target-libgloss: \
42825 configure-target-libgloss
0aed8855 42826 @: $(MAKE); $(unstage)
22121df0 42827 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42828 r=`${PWD_COMMAND}`; export r; \
42829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42830 $(NORMAL_TARGET_EXPORTS) \
22121df0 42831 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42832 for flag in $(EXTRA_TARGET_FLAGS); do \
42833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42834 done; \
a90ef4bf 42835 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42838 "RANLIB=$${RANLIB}" \
0c24b341 42839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42840 TAGS) \
4fa63067
NN
42841 || exit 1
42842
a90ef4bf 42843@endif target-libgloss
4fa63067 42844
a90ef4bf
JM
42845.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
42846maybe-install-info-target-libgloss:
42847@if target-libgloss
42848maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 42849
a90ef4bf
JM
42850install-info-target-libgloss: \
42851 configure-target-libgloss \
42852 info-target-libgloss
0aed8855 42853 @: $(MAKE); $(unstage)
22121df0 42854 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42855 r=`${PWD_COMMAND}`; export r; \
42856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42857 $(NORMAL_TARGET_EXPORTS) \
22121df0 42858 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42859 for flag in $(EXTRA_TARGET_FLAGS); do \
42860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42861 done; \
a90ef4bf 42862 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42865 "RANLIB=$${RANLIB}" \
0c24b341 42866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42867 install-info) \
4fa63067
NN
42868 || exit 1
42869
a90ef4bf 42870@endif target-libgloss
4fa63067 42871
a90ef4bf
JM
42872.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
42873maybe-install-pdf-target-libgloss:
42874@if target-libgloss
42875maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 42876
a90ef4bf
JM
42877install-pdf-target-libgloss: \
42878 configure-target-libgloss \
42879 pdf-target-libgloss
a3ca38d2 42880 @: $(MAKE); $(unstage)
22121df0 42881 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
a3ca38d2
DD
42882 r=`${PWD_COMMAND}`; export r; \
42883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42884 $(NORMAL_TARGET_EXPORTS) \
22121df0 42885 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss"; \
a3ca38d2
DD
42886 for flag in $(EXTRA_TARGET_FLAGS); do \
42887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42888 done; \
a90ef4bf 42889 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
42890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42892 "RANLIB=$${RANLIB}" \
0c24b341 42893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42894 install-pdf) \
42895 || exit 1
42896
a90ef4bf 42897@endif target-libgloss
a3ca38d2 42898
a90ef4bf
JM
42899.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
42900maybe-install-html-target-libgloss:
42901@if target-libgloss
42902maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 42903
a90ef4bf
JM
42904install-html-target-libgloss: \
42905 configure-target-libgloss \
42906 html-target-libgloss
108a6f8e 42907 @: $(MAKE); $(unstage)
22121df0 42908 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
108a6f8e
CD
42909 r=`${PWD_COMMAND}`; export r; \
42910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42911 $(NORMAL_TARGET_EXPORTS) \
22121df0 42912 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss"; \
108a6f8e
CD
42913 for flag in $(EXTRA_TARGET_FLAGS); do \
42914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42915 done; \
a90ef4bf 42916 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
42917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42919 "RANLIB=$${RANLIB}" \
0c24b341 42920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42921 install-html) \
42922 || exit 1
42923
a90ef4bf 42924@endif target-libgloss
108a6f8e 42925
a90ef4bf
JM
42926.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
42927maybe-installcheck-target-libgloss:
42928@if target-libgloss
42929maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 42930
a90ef4bf
JM
42931installcheck-target-libgloss: \
42932 configure-target-libgloss
0aed8855 42933 @: $(MAKE); $(unstage)
22121df0 42934 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42935 r=`${PWD_COMMAND}`; export r; \
42936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42937 $(NORMAL_TARGET_EXPORTS) \
22121df0 42938 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42939 for flag in $(EXTRA_TARGET_FLAGS); do \
42940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42941 done; \
a90ef4bf 42942 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42945 "RANLIB=$${RANLIB}" \
0c24b341 42946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42947 installcheck) \
4fa63067
NN
42948 || exit 1
42949
a90ef4bf 42950@endif target-libgloss
4fa63067 42951
a90ef4bf
JM
42952.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
42953maybe-mostlyclean-target-libgloss:
42954@if target-libgloss
42955maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 42956
a90ef4bf 42957mostlyclean-target-libgloss:
0aed8855 42958 @: $(MAKE); $(unstage)
22121df0 42959 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42960 r=`${PWD_COMMAND}`; export r; \
42961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42962 $(NORMAL_TARGET_EXPORTS) \
22121df0 42963 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42964 for flag in $(EXTRA_TARGET_FLAGS); do \
42965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42966 done; \
a90ef4bf 42967 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42970 "RANLIB=$${RANLIB}" \
0c24b341 42971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42972 mostlyclean) \
4fa63067
NN
42973 || exit 1
42974
a90ef4bf 42975@endif target-libgloss
4fa63067 42976
a90ef4bf
JM
42977.PHONY: maybe-clean-target-libgloss clean-target-libgloss
42978maybe-clean-target-libgloss:
42979@if target-libgloss
42980maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 42981
a90ef4bf 42982clean-target-libgloss:
0aed8855 42983 @: $(MAKE); $(unstage)
22121df0 42984 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
42985 r=`${PWD_COMMAND}`; export r; \
42986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42987 $(NORMAL_TARGET_EXPORTS) \
22121df0 42988 echo "Doing clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
42989 for flag in $(EXTRA_TARGET_FLAGS); do \
42990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42991 done; \
a90ef4bf 42992 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
42993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42995 "RANLIB=$${RANLIB}" \
0c24b341 42996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42997 clean) \
4fa63067
NN
42998 || exit 1
42999
a90ef4bf 43000@endif target-libgloss
4fa63067 43001
a90ef4bf
JM
43002.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
43003maybe-distclean-target-libgloss:
43004@if target-libgloss
43005maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 43006
a90ef4bf 43007distclean-target-libgloss:
0aed8855 43008 @: $(MAKE); $(unstage)
22121df0 43009 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
43010 r=`${PWD_COMMAND}`; export r; \
43011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43012 $(NORMAL_TARGET_EXPORTS) \
22121df0 43013 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
43014 for flag in $(EXTRA_TARGET_FLAGS); do \
43015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43016 done; \
a90ef4bf 43017 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
43018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43020 "RANLIB=$${RANLIB}" \
0c24b341 43021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43022 distclean) \
4fa63067
NN
43023 || exit 1
43024
a90ef4bf 43025@endif target-libgloss
4fa63067 43026
a90ef4bf
JM
43027.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
43028maybe-maintainer-clean-target-libgloss:
43029@if target-libgloss
43030maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 43031
a90ef4bf 43032maintainer-clean-target-libgloss:
0aed8855 43033 @: $(MAKE); $(unstage)
22121df0 43034 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
43035 r=`${PWD_COMMAND}`; export r; \
43036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43037 $(NORMAL_TARGET_EXPORTS) \
22121df0 43038 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
43039 for flag in $(EXTRA_TARGET_FLAGS); do \
43040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43041 done; \
a90ef4bf 43042 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
43043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43045 "RANLIB=$${RANLIB}" \
0c24b341 43046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43047 maintainer-clean) \
4fa63067 43048 || exit 1
16ae0395 43049
a90ef4bf 43050@endif target-libgloss
e393202e
NN
43051
43052
15723a45 43053
a7254363
PB
43054
43055
a7254363
PB
43056.PHONY: configure-target-libffi maybe-configure-target-libffi
43057maybe-configure-target-libffi:
4f0ef2d8
CD
43058@if gcc-bootstrap
43059configure-target-libffi: stage_current
43060@endif gcc-bootstrap
a7254363
PB
43061@if target-libffi
43062maybe-configure-target-libffi: configure-target-libffi
c52c6897 43063configure-target-libffi:
0aed8855
PB
43064 @: $(MAKE); $(unstage)
43065 @r=`${PWD_COMMAND}`; export r; \
43066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43067 echo "Checking multilib configuration for libffi..."; \
22121df0
L
43068 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
43069 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null; \
0aed8855
PB
43070 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
43071 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
43072 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
43073 else \
43074 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
43075 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
43076 fi; \
43077 else \
43078 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
43079 fi; \
43080 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
22121df0 43081 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
1f53ca9a 43082 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43083 echo Configuring in $(TARGET_SUBDIR)/libffi; \
43084 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 43085 case $(srcdir) in \
b00612cc
PB
43086 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43087 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
43088 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43089 esac; \
1b6c0831 43090 module_srcdir=libffi; \
bba45b8b 43091 rm -f no-such-file || : ; \
1b6c0831
L
43092 CONFIG_SITE=no-such-file $(SHELL) \
43093 $$s/$$module_srcdir/configure \
43094 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43095 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43096 --target=${target_alias} \
bba45b8b 43097 || exit 1
6bd3dfaa 43098@endif target-libffi
e393202e 43099
a7254363
PB
43100
43101
d545f33b
PB
43102
43103
4fa63067
NN
43104.PHONY: all-target-libffi maybe-all-target-libffi
43105maybe-all-target-libffi:
4f0ef2d8
CD
43106@if gcc-bootstrap
43107all-target-libffi: stage_current
43108@endif gcc-bootstrap
6bd3dfaa 43109@if target-libffi
72b2455a 43110TARGET-target-libffi=all
6bd3dfaa 43111maybe-all-target-libffi: all-target-libffi
4fa63067 43112all-target-libffi: configure-target-libffi
0aed8855 43113 @: $(MAKE); $(unstage)
b40e3958
L
43114 @r=`${PWD_COMMAND}`; export r; \
43115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43116 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43117 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 43118 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 43119 $(TARGET-target-libffi))
6bd3dfaa 43120@endif target-libffi
e393202e 43121
a7254363
PB
43122
43123
d545f33b
PB
43124
43125
4fa63067
NN
43126.PHONY: check-target-libffi maybe-check-target-libffi
43127maybe-check-target-libffi:
6bd3dfaa
PB
43128@if target-libffi
43129maybe-check-target-libffi: check-target-libffi
16ae0395 43130
4fa63067 43131check-target-libffi:
0aed8855 43132 @: $(MAKE); $(unstage)
b40e3958
L
43133 @r=`${PWD_COMMAND}`; export r; \
43134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43135 $(NORMAL_TARGET_EXPORTS) \
4fa63067 43136 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 43137 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 43138
6bd3dfaa 43139@endif target-libffi
e393202e 43140
4fa63067
NN
43141.PHONY: install-target-libffi maybe-install-target-libffi
43142maybe-install-target-libffi:
6bd3dfaa
PB
43143@if target-libffi
43144maybe-install-target-libffi: install-target-libffi
16ae0395 43145
b836cb18
JBG
43146# Dummy target for uninstallable.
43147install-target-libffi:
e393202e 43148
6bd3dfaa 43149@endif target-libffi
e393202e 43150
9b980aa1
RW
43151.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
43152maybe-install-strip-target-libffi:
43153@if target-libffi
43154maybe-install-strip-target-libffi: install-strip-target-libffi
43155
b836cb18
JBG
43156# Dummy target for uninstallable.
43157install-strip-target-libffi:
9b980aa1
RW
43158
43159@endif target-libffi
43160
56a8fe78 43161# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
43162
43163.PHONY: maybe-info-target-libffi info-target-libffi
43164maybe-info-target-libffi:
6bd3dfaa
PB
43165@if target-libffi
43166maybe-info-target-libffi: info-target-libffi
4fa63067
NN
43167
43168info-target-libffi: \
43169 configure-target-libffi
0aed8855 43170 @: $(MAKE); $(unstage)
22121df0 43171 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43172 r=`${PWD_COMMAND}`; export r; \
43173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43174 $(NORMAL_TARGET_EXPORTS) \
22121df0 43175 echo "Doing info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43176 for flag in $(EXTRA_TARGET_FLAGS); do \
43177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43178 done; \
43179 (cd $(TARGET_SUBDIR)/libffi && \
43180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43182 "RANLIB=$${RANLIB}" \
0c24b341 43183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43184 info) \
4fa63067
NN
43185 || exit 1
43186
6bd3dfaa 43187@endif target-libffi
4fa63067
NN
43188
43189.PHONY: maybe-dvi-target-libffi dvi-target-libffi
43190maybe-dvi-target-libffi:
6bd3dfaa
PB
43191@if target-libffi
43192maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
43193
43194dvi-target-libffi: \
43195 configure-target-libffi
0aed8855 43196 @: $(MAKE); $(unstage)
22121df0 43197 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43198 r=`${PWD_COMMAND}`; export r; \
43199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43200 $(NORMAL_TARGET_EXPORTS) \
22121df0 43201 echo "Doing dvi in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43202 for flag in $(EXTRA_TARGET_FLAGS); do \
43203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43204 done; \
43205 (cd $(TARGET_SUBDIR)/libffi && \
43206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43208 "RANLIB=$${RANLIB}" \
0c24b341 43209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43210 dvi) \
4fa63067
NN
43211 || exit 1
43212
6bd3dfaa 43213@endif target-libffi
4fa63067 43214
56a8fe78
DD
43215.PHONY: maybe-pdf-target-libffi pdf-target-libffi
43216maybe-pdf-target-libffi:
43217@if target-libffi
43218maybe-pdf-target-libffi: pdf-target-libffi
43219
43220pdf-target-libffi: \
43221 configure-target-libffi
43222 @: $(MAKE); $(unstage)
22121df0 43223 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
56a8fe78
DD
43224 r=`${PWD_COMMAND}`; export r; \
43225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43226 $(NORMAL_TARGET_EXPORTS) \
22121df0 43227 echo "Doing pdf in $(TARGET_SUBDIR)/libffi"; \
56a8fe78
DD
43228 for flag in $(EXTRA_TARGET_FLAGS); do \
43229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43230 done; \
43231 (cd $(TARGET_SUBDIR)/libffi && \
43232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43234 "RANLIB=$${RANLIB}" \
0c24b341 43235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43236 pdf) \
43237 || exit 1
43238
43239@endif target-libffi
43240
6d389afc
MS
43241.PHONY: maybe-html-target-libffi html-target-libffi
43242maybe-html-target-libffi:
43243@if target-libffi
43244maybe-html-target-libffi: html-target-libffi
43245
43246html-target-libffi: \
43247 configure-target-libffi
0aed8855 43248 @: $(MAKE); $(unstage)
22121df0 43249 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
6d389afc
MS
43250 r=`${PWD_COMMAND}`; export r; \
43251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43252 $(NORMAL_TARGET_EXPORTS) \
22121df0 43253 echo "Doing html in $(TARGET_SUBDIR)/libffi"; \
6d389afc
MS
43254 for flag in $(EXTRA_TARGET_FLAGS); do \
43255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43256 done; \
43257 (cd $(TARGET_SUBDIR)/libffi && \
43258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43260 "RANLIB=$${RANLIB}" \
0c24b341 43261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43262 html) \
43263 || exit 1
43264
43265@endif target-libffi
43266
4fa63067
NN
43267.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
43268maybe-TAGS-target-libffi:
6bd3dfaa
PB
43269@if target-libffi
43270maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
43271
43272TAGS-target-libffi: \
43273 configure-target-libffi
0aed8855 43274 @: $(MAKE); $(unstage)
22121df0 43275 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43276 r=`${PWD_COMMAND}`; export r; \
43277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43278 $(NORMAL_TARGET_EXPORTS) \
22121df0 43279 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43280 for flag in $(EXTRA_TARGET_FLAGS); do \
43281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43282 done; \
43283 (cd $(TARGET_SUBDIR)/libffi && \
43284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43286 "RANLIB=$${RANLIB}" \
0c24b341 43287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43288 TAGS) \
4fa63067
NN
43289 || exit 1
43290
6bd3dfaa 43291@endif target-libffi
4fa63067
NN
43292
43293.PHONY: maybe-install-info-target-libffi install-info-target-libffi
43294maybe-install-info-target-libffi:
6bd3dfaa
PB
43295@if target-libffi
43296maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
43297
43298install-info-target-libffi: \
43299 configure-target-libffi \
43300 info-target-libffi
0aed8855 43301 @: $(MAKE); $(unstage)
22121df0 43302 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43303 r=`${PWD_COMMAND}`; export r; \
43304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43305 $(NORMAL_TARGET_EXPORTS) \
22121df0 43306 echo "Doing install-info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43307 for flag in $(EXTRA_TARGET_FLAGS); do \
43308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43309 done; \
43310 (cd $(TARGET_SUBDIR)/libffi && \
43311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43313 "RANLIB=$${RANLIB}" \
0c24b341 43314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43315 install-info) \
4fa63067
NN
43316 || exit 1
43317
6bd3dfaa 43318@endif target-libffi
4fa63067 43319
a3ca38d2
DD
43320.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
43321maybe-install-pdf-target-libffi:
43322@if target-libffi
43323maybe-install-pdf-target-libffi: install-pdf-target-libffi
43324
43325install-pdf-target-libffi: \
43326 configure-target-libffi \
43327 pdf-target-libffi
43328 @: $(MAKE); $(unstage)
22121df0 43329 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
a3ca38d2
DD
43330 r=`${PWD_COMMAND}`; export r; \
43331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43332 $(NORMAL_TARGET_EXPORTS) \
22121df0 43333 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi"; \
a3ca38d2
DD
43334 for flag in $(EXTRA_TARGET_FLAGS); do \
43335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43336 done; \
43337 (cd $(TARGET_SUBDIR)/libffi && \
43338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43340 "RANLIB=$${RANLIB}" \
0c24b341 43341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43342 install-pdf) \
43343 || exit 1
43344
43345@endif target-libffi
43346
108a6f8e
CD
43347.PHONY: maybe-install-html-target-libffi install-html-target-libffi
43348maybe-install-html-target-libffi:
43349@if target-libffi
43350maybe-install-html-target-libffi: install-html-target-libffi
43351
43352install-html-target-libffi: \
43353 configure-target-libffi \
43354 html-target-libffi
43355 @: $(MAKE); $(unstage)
22121df0 43356 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
108a6f8e
CD
43357 r=`${PWD_COMMAND}`; export r; \
43358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43359 $(NORMAL_TARGET_EXPORTS) \
22121df0 43360 echo "Doing install-html in $(TARGET_SUBDIR)/libffi"; \
108a6f8e
CD
43361 for flag in $(EXTRA_TARGET_FLAGS); do \
43362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43363 done; \
43364 (cd $(TARGET_SUBDIR)/libffi && \
43365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43367 "RANLIB=$${RANLIB}" \
0c24b341 43368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43369 install-html) \
43370 || exit 1
43371
43372@endif target-libffi
43373
4fa63067
NN
43374.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
43375maybe-installcheck-target-libffi:
6bd3dfaa
PB
43376@if target-libffi
43377maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
43378
43379installcheck-target-libffi: \
43380 configure-target-libffi
0aed8855 43381 @: $(MAKE); $(unstage)
22121df0 43382 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43383 r=`${PWD_COMMAND}`; export r; \
43384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43385 $(NORMAL_TARGET_EXPORTS) \
22121df0 43386 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43387 for flag in $(EXTRA_TARGET_FLAGS); do \
43388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43389 done; \
43390 (cd $(TARGET_SUBDIR)/libffi && \
43391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43393 "RANLIB=$${RANLIB}" \
0c24b341 43394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43395 installcheck) \
4fa63067
NN
43396 || exit 1
43397
6bd3dfaa 43398@endif target-libffi
4fa63067
NN
43399
43400.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
43401maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
43402@if target-libffi
43403maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
43404
43405mostlyclean-target-libffi:
0aed8855 43406 @: $(MAKE); $(unstage)
22121df0 43407 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43408 r=`${PWD_COMMAND}`; export r; \
43409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43410 $(NORMAL_TARGET_EXPORTS) \
22121df0 43411 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43412 for flag in $(EXTRA_TARGET_FLAGS); do \
43413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43414 done; \
43415 (cd $(TARGET_SUBDIR)/libffi && \
43416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43418 "RANLIB=$${RANLIB}" \
0c24b341 43419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43420 mostlyclean) \
4fa63067
NN
43421 || exit 1
43422
6bd3dfaa 43423@endif target-libffi
4fa63067
NN
43424
43425.PHONY: maybe-clean-target-libffi clean-target-libffi
43426maybe-clean-target-libffi:
6bd3dfaa
PB
43427@if target-libffi
43428maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
43429
43430clean-target-libffi:
0aed8855 43431 @: $(MAKE); $(unstage)
22121df0 43432 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43433 r=`${PWD_COMMAND}`; export r; \
43434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43435 $(NORMAL_TARGET_EXPORTS) \
22121df0 43436 echo "Doing clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43437 for flag in $(EXTRA_TARGET_FLAGS); do \
43438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43439 done; \
43440 (cd $(TARGET_SUBDIR)/libffi && \
43441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43443 "RANLIB=$${RANLIB}" \
0c24b341 43444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43445 clean) \
4fa63067
NN
43446 || exit 1
43447
6bd3dfaa 43448@endif target-libffi
4fa63067
NN
43449
43450.PHONY: maybe-distclean-target-libffi distclean-target-libffi
43451maybe-distclean-target-libffi:
6bd3dfaa
PB
43452@if target-libffi
43453maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
43454
43455distclean-target-libffi:
0aed8855 43456 @: $(MAKE); $(unstage)
22121df0 43457 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43458 r=`${PWD_COMMAND}`; export r; \
43459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43460 $(NORMAL_TARGET_EXPORTS) \
22121df0 43461 echo "Doing distclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43462 for flag in $(EXTRA_TARGET_FLAGS); do \
43463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43464 done; \
43465 (cd $(TARGET_SUBDIR)/libffi && \
43466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43468 "RANLIB=$${RANLIB}" \
0c24b341 43469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43470 distclean) \
4fa63067
NN
43471 || exit 1
43472
6bd3dfaa 43473@endif target-libffi
4fa63067
NN
43474
43475.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
43476maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
43477@if target-libffi
43478maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
43479
43480maintainer-clean-target-libffi:
0aed8855 43481 @: $(MAKE); $(unstage)
22121df0 43482 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
43483 r=`${PWD_COMMAND}`; export r; \
43484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43485 $(NORMAL_TARGET_EXPORTS) \
22121df0 43486 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
43487 for flag in $(EXTRA_TARGET_FLAGS); do \
43488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43489 done; \
43490 (cd $(TARGET_SUBDIR)/libffi && \
43491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43493 "RANLIB=$${RANLIB}" \
0c24b341 43494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43495 maintainer-clean) \
4fa63067
NN
43496 || exit 1
43497
6bd3dfaa 43498@endif target-libffi
4fa63067
NN
43499
43500
15723a45 43501
a7254363 43502
15723a45 43503
a7254363
PB
43504.PHONY: configure-target-libjava maybe-configure-target-libjava
43505maybe-configure-target-libjava:
4f0ef2d8
CD
43506@if gcc-bootstrap
43507configure-target-libjava: stage_current
43508@endif gcc-bootstrap
a7254363
PB
43509@if target-libjava
43510maybe-configure-target-libjava: configure-target-libjava
c52c6897 43511configure-target-libjava:
0aed8855
PB
43512 @: $(MAKE); $(unstage)
43513 @r=`${PWD_COMMAND}`; export r; \
43514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43515 echo "Checking multilib configuration for libjava..."; \
22121df0
L
43516 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava; \
43517 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null; \
0aed8855
PB
43518 if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \
43519 if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \
43520 rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \
43521 else \
43522 rm -f $(TARGET_SUBDIR)/libjava/Makefile; \
43523 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
43524 fi; \
43525 else \
43526 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
c52c6897
PB
43527 fi; \
43528 test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
22121df0 43529 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava; \
1f53ca9a 43530 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067
NN
43531 echo Configuring in $(TARGET_SUBDIR)/libjava; \
43532 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
bba45b8b 43533 case $(srcdir) in \
b00612cc
PB
43534 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43535 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
43536 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43537 esac; \
1b6c0831 43538 module_srcdir=libjava; \
bba45b8b 43539 rm -f no-such-file || : ; \
1b6c0831
L
43540 CONFIG_SITE=no-such-file $(SHELL) \
43541 $$s/$$module_srcdir/configure \
43542 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43543 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43544 --target=${target_alias} $(EXTRA_CONFIGARGS_LIBJAVA) \
bba45b8b 43545 || exit 1
6bd3dfaa 43546@endif target-libjava
e393202e 43547
a7254363
PB
43548
43549
d545f33b
PB
43550
43551
4fa63067
NN
43552.PHONY: all-target-libjava maybe-all-target-libjava
43553maybe-all-target-libjava:
4f0ef2d8
CD
43554@if gcc-bootstrap
43555all-target-libjava: stage_current
43556@endif gcc-bootstrap
6bd3dfaa 43557@if target-libjava
72b2455a 43558TARGET-target-libjava=all
6bd3dfaa 43559maybe-all-target-libjava: all-target-libjava
4fa63067 43560all-target-libjava: configure-target-libjava
0aed8855 43561 @: $(MAKE); $(unstage)
b40e3958
L
43562 @r=`${PWD_COMMAND}`; export r; \
43563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43564 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43565 (cd $(TARGET_SUBDIR)/libjava && \
b3676d82 43566 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
7f6ef0c0 43567 $(TARGET-target-libjava))
6bd3dfaa 43568@endif target-libjava
e393202e 43569
a7254363
PB
43570
43571
d545f33b
PB
43572
43573
4fa63067
NN
43574.PHONY: check-target-libjava maybe-check-target-libjava
43575maybe-check-target-libjava:
6bd3dfaa
PB
43576@if target-libjava
43577maybe-check-target-libjava: check-target-libjava
16ae0395 43578
4fa63067 43579check-target-libjava:
0aed8855 43580 @: $(MAKE); $(unstage)
4fa63067
NN
43581 @r=`${PWD_COMMAND}`; export r; \
43582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43583 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43584 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 43585 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 43586
6bd3dfaa 43587@endif target-libjava
930314a4 43588
4fa63067
NN
43589.PHONY: install-target-libjava maybe-install-target-libjava
43590maybe-install-target-libjava:
6bd3dfaa
PB
43591@if target-libjava
43592maybe-install-target-libjava: install-target-libjava
16ae0395 43593
4fa63067 43594install-target-libjava: installdirs
0aed8855 43595 @: $(MAKE); $(unstage)
b40e3958
L
43596 @r=`${PWD_COMMAND}`; export r; \
43597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43598 $(RAW_CXX_TARGET_EXPORTS) \
4fa63067 43599 (cd $(TARGET_SUBDIR)/libjava && \
7ffa0b57 43600 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 43601
6bd3dfaa 43602@endif target-libjava
e393202e 43603
9b980aa1
RW
43604.PHONY: install-strip-target-libjava maybe-install-strip-target-libjava
43605maybe-install-strip-target-libjava:
43606@if target-libjava
43607maybe-install-strip-target-libjava: install-strip-target-libjava
43608
43609install-strip-target-libjava: installdirs
43610 @: $(MAKE); $(unstage)
43611 @r=`${PWD_COMMAND}`; export r; \
43612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43613 $(RAW_CXX_TARGET_EXPORTS) \
43614 (cd $(TARGET_SUBDIR)/libjava && \
43615 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43616
43617@endif target-libjava
43618
56a8fe78 43619# Other targets (info, dvi, pdf, etc.)
15723a45 43620
4fa63067
NN
43621.PHONY: maybe-info-target-libjava info-target-libjava
43622maybe-info-target-libjava:
6bd3dfaa
PB
43623@if target-libjava
43624maybe-info-target-libjava: info-target-libjava
15723a45 43625
4fa63067
NN
43626info-target-libjava: \
43627 configure-target-libjava
0aed8855 43628 @: $(MAKE); $(unstage)
22121df0 43629 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
b40e3958
L
43630 r=`${PWD_COMMAND}`; export r; \
43631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43632 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43633 echo "Doing info in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43634 for flag in $(EXTRA_TARGET_FLAGS); do \
43635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43636 done; \
43637 (cd $(TARGET_SUBDIR)/libjava && \
43638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43640 "RANLIB=$${RANLIB}" \
0c24b341 43641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43642 info) \
bba45b8b 43643 || exit 1
e393202e 43644
6bd3dfaa 43645@endif target-libjava
4fa63067
NN
43646
43647.PHONY: maybe-dvi-target-libjava dvi-target-libjava
43648maybe-dvi-target-libjava:
6bd3dfaa
PB
43649@if target-libjava
43650maybe-dvi-target-libjava: dvi-target-libjava
4fa63067
NN
43651
43652dvi-target-libjava: \
43653 configure-target-libjava
0aed8855 43654 @: $(MAKE); $(unstage)
22121df0 43655 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43656 r=`${PWD_COMMAND}`; export r; \
b40e3958 43657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43658 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43659 echo "Doing dvi in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43660 for flag in $(EXTRA_TARGET_FLAGS); do \
43661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43662 done; \
43663 (cd $(TARGET_SUBDIR)/libjava && \
43664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43666 "RANLIB=$${RANLIB}" \
0c24b341 43667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43668 dvi) \
4fa63067 43669 || exit 1
e393202e 43670
6bd3dfaa 43671@endif target-libjava
16ae0395 43672
56a8fe78
DD
43673.PHONY: maybe-pdf-target-libjava pdf-target-libjava
43674maybe-pdf-target-libjava:
43675@if target-libjava
43676maybe-pdf-target-libjava: pdf-target-libjava
43677
43678pdf-target-libjava: \
43679 configure-target-libjava
43680 @: $(MAKE); $(unstage)
22121df0 43681 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
56a8fe78
DD
43682 r=`${PWD_COMMAND}`; export r; \
43683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43684 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43685 echo "Doing pdf in $(TARGET_SUBDIR)/libjava"; \
56a8fe78
DD
43686 for flag in $(EXTRA_TARGET_FLAGS); do \
43687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43688 done; \
43689 (cd $(TARGET_SUBDIR)/libjava && \
43690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43692 "RANLIB=$${RANLIB}" \
0c24b341 43693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43694 pdf) \
43695 || exit 1
43696
43697@endif target-libjava
43698
6d389afc
MS
43699.PHONY: maybe-html-target-libjava html-target-libjava
43700maybe-html-target-libjava:
43701@if target-libjava
43702maybe-html-target-libjava: html-target-libjava
43703
43704html-target-libjava: \
43705 configure-target-libjava
0aed8855 43706 @: $(MAKE); $(unstage)
22121df0 43707 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
6d389afc
MS
43708 r=`${PWD_COMMAND}`; export r; \
43709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43710 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43711 echo "Doing html in $(TARGET_SUBDIR)/libjava"; \
6d389afc
MS
43712 for flag in $(EXTRA_TARGET_FLAGS); do \
43713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43714 done; \
43715 (cd $(TARGET_SUBDIR)/libjava && \
43716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43718 "RANLIB=$${RANLIB}" \
0c24b341 43719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43720 html) \
43721 || exit 1
43722
43723@endif target-libjava
43724
4fa63067
NN
43725.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
43726maybe-TAGS-target-libjava:
6bd3dfaa
PB
43727@if target-libjava
43728maybe-TAGS-target-libjava: TAGS-target-libjava
4fa63067
NN
43729
43730TAGS-target-libjava: \
43731 configure-target-libjava
0aed8855 43732 @: $(MAKE); $(unstage)
22121df0 43733 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43734 r=`${PWD_COMMAND}`; export r; \
b40e3958 43735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43736 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43737 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43738 for flag in $(EXTRA_TARGET_FLAGS); do \
43739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43740 done; \
43741 (cd $(TARGET_SUBDIR)/libjava && \
43742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43744 "RANLIB=$${RANLIB}" \
0c24b341 43745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43746 TAGS) \
4fa63067 43747 || exit 1
e393202e 43748
6bd3dfaa 43749@endif target-libjava
930314a4 43750
4fa63067
NN
43751.PHONY: maybe-install-info-target-libjava install-info-target-libjava
43752maybe-install-info-target-libjava:
6bd3dfaa
PB
43753@if target-libjava
43754maybe-install-info-target-libjava: install-info-target-libjava
16ae0395 43755
4fa63067
NN
43756install-info-target-libjava: \
43757 configure-target-libjava \
43758 info-target-libjava
0aed8855 43759 @: $(MAKE); $(unstage)
22121df0 43760 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43761 r=`${PWD_COMMAND}`; export r; \
b40e3958 43762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43763 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43764 echo "Doing install-info in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43765 for flag in $(EXTRA_TARGET_FLAGS); do \
43766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43767 done; \
43768 (cd $(TARGET_SUBDIR)/libjava && \
43769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43771 "RANLIB=$${RANLIB}" \
0c24b341 43772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43773 install-info) \
4fa63067 43774 || exit 1
e393202e 43775
6bd3dfaa 43776@endif target-libjava
e393202e 43777
a3ca38d2
DD
43778.PHONY: maybe-install-pdf-target-libjava install-pdf-target-libjava
43779maybe-install-pdf-target-libjava:
43780@if target-libjava
43781maybe-install-pdf-target-libjava: install-pdf-target-libjava
43782
43783install-pdf-target-libjava: \
43784 configure-target-libjava \
43785 pdf-target-libjava
43786 @: $(MAKE); $(unstage)
22121df0 43787 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
a3ca38d2
DD
43788 r=`${PWD_COMMAND}`; export r; \
43789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43790 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43791 echo "Doing install-pdf in $(TARGET_SUBDIR)/libjava"; \
a3ca38d2
DD
43792 for flag in $(EXTRA_TARGET_FLAGS); do \
43793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43794 done; \
43795 (cd $(TARGET_SUBDIR)/libjava && \
43796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43798 "RANLIB=$${RANLIB}" \
0c24b341 43799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43800 install-pdf) \
43801 || exit 1
43802
43803@endif target-libjava
43804
108a6f8e
CD
43805.PHONY: maybe-install-html-target-libjava install-html-target-libjava
43806maybe-install-html-target-libjava:
43807@if target-libjava
43808maybe-install-html-target-libjava: install-html-target-libjava
43809
43810install-html-target-libjava: \
43811 configure-target-libjava \
43812 html-target-libjava
43813 @: $(MAKE); $(unstage)
22121df0 43814 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
108a6f8e
CD
43815 r=`${PWD_COMMAND}`; export r; \
43816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43817 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43818 echo "Doing install-html in $(TARGET_SUBDIR)/libjava"; \
108a6f8e
CD
43819 for flag in $(EXTRA_TARGET_FLAGS); do \
43820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43821 done; \
43822 (cd $(TARGET_SUBDIR)/libjava && \
43823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43825 "RANLIB=$${RANLIB}" \
0c24b341 43826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43827 install-html) \
43828 || exit 1
43829
43830@endif target-libjava
43831
4fa63067
NN
43832.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
43833maybe-installcheck-target-libjava:
6bd3dfaa
PB
43834@if target-libjava
43835maybe-installcheck-target-libjava: installcheck-target-libjava
15723a45 43836
4fa63067
NN
43837installcheck-target-libjava: \
43838 configure-target-libjava
0aed8855 43839 @: $(MAKE); $(unstage)
22121df0 43840 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067
NN
43841 r=`${PWD_COMMAND}`; export r; \
43842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43843 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43844 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43845 for flag in $(EXTRA_TARGET_FLAGS); do \
43846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43847 done; \
43848 (cd $(TARGET_SUBDIR)/libjava && \
43849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43851 "RANLIB=$${RANLIB}" \
0c24b341 43852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43853 installcheck) \
4fa63067 43854 || exit 1
15723a45 43855
6bd3dfaa 43856@endif target-libjava
4fa63067
NN
43857
43858.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
43859maybe-mostlyclean-target-libjava:
6bd3dfaa
PB
43860@if target-libjava
43861maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
4fa63067
NN
43862
43863mostlyclean-target-libjava:
0aed8855 43864 @: $(MAKE); $(unstage)
22121df0 43865 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067
NN
43866 r=`${PWD_COMMAND}`; export r; \
43867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43868 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43869 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43870 for flag in $(EXTRA_TARGET_FLAGS); do \
43871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43872 done; \
43873 (cd $(TARGET_SUBDIR)/libjava && \
43874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43876 "RANLIB=$${RANLIB}" \
0c24b341 43877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43878 mostlyclean) \
4fa63067
NN
43879 || exit 1
43880
6bd3dfaa 43881@endif target-libjava
4fa63067
NN
43882
43883.PHONY: maybe-clean-target-libjava clean-target-libjava
43884maybe-clean-target-libjava:
6bd3dfaa
PB
43885@if target-libjava
43886maybe-clean-target-libjava: clean-target-libjava
4fa63067
NN
43887
43888clean-target-libjava:
0aed8855 43889 @: $(MAKE); $(unstage)
22121df0 43890 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
b40e3958
L
43891 r=`${PWD_COMMAND}`; export r; \
43892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43893 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43894 echo "Doing clean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43895 for flag in $(EXTRA_TARGET_FLAGS); do \
43896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43897 done; \
43898 (cd $(TARGET_SUBDIR)/libjava && \
43899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43901 "RANLIB=$${RANLIB}" \
0c24b341 43902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43903 clean) \
bba45b8b 43904 || exit 1
e393202e 43905
6bd3dfaa 43906@endif target-libjava
e393202e 43907
4fa63067
NN
43908.PHONY: maybe-distclean-target-libjava distclean-target-libjava
43909maybe-distclean-target-libjava:
6bd3dfaa
PB
43910@if target-libjava
43911maybe-distclean-target-libjava: distclean-target-libjava
16ae0395 43912
4fa63067 43913distclean-target-libjava:
0aed8855 43914 @: $(MAKE); $(unstage)
22121df0 43915 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067
NN
43916 r=`${PWD_COMMAND}`; export r; \
43917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43918 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43919 echo "Doing distclean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43920 for flag in $(EXTRA_TARGET_FLAGS); do \
43921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43922 done; \
43923 (cd $(TARGET_SUBDIR)/libjava && \
43924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43926 "RANLIB=$${RANLIB}" \
0c24b341 43927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43928 distclean) \
4fa63067 43929 || exit 1
3866be5d 43930
6bd3dfaa 43931@endif target-libjava
930314a4 43932
4fa63067
NN
43933.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
43934maybe-maintainer-clean-target-libjava:
6bd3dfaa
PB
43935@if target-libjava
43936maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
16ae0395 43937
4fa63067 43938maintainer-clean-target-libjava:
0aed8855 43939 @: $(MAKE); $(unstage)
22121df0 43940 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0; \
4fa63067 43941 r=`${PWD_COMMAND}`; export r; \
b40e3958 43942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43943 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43944 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava"; \
4fa63067
NN
43945 for flag in $(EXTRA_TARGET_FLAGS); do \
43946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43947 done; \
43948 (cd $(TARGET_SUBDIR)/libjava && \
43949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43951 "RANLIB=$${RANLIB}" \
0c24b341 43952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43953 maintainer-clean) \
4fa63067 43954 || exit 1
e393202e 43955
6bd3dfaa 43956@endif target-libjava
e393202e 43957
4fa63067 43958
15723a45 43959
a7254363 43960
e90269c8 43961
a7254363
PB
43962.PHONY: configure-target-zlib maybe-configure-target-zlib
43963maybe-configure-target-zlib:
4f0ef2d8
CD
43964@if gcc-bootstrap
43965configure-target-zlib: stage_current
43966@endif gcc-bootstrap
a7254363
PB
43967@if target-zlib
43968maybe-configure-target-zlib: configure-target-zlib
c52c6897 43969configure-target-zlib:
0aed8855
PB
43970 @: $(MAKE); $(unstage)
43971 @r=`${PWD_COMMAND}`; export r; \
43972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43973 echo "Checking multilib configuration for zlib..."; \
22121df0
L
43974 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
43975 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null; \
0aed8855
PB
43976 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
43977 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
43978 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
43979 else \
43980 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
43981 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
43982 fi; \
43983 else \
43984 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
43985 fi; \
43986 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 43987 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
1f53ca9a 43988 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
43989 echo Configuring in $(TARGET_SUBDIR)/zlib; \
43990 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 43991 case $(srcdir) in \
b00612cc
PB
43992 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43993 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
43994 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43995 esac; \
1b6c0831 43996 module_srcdir=zlib; \
bba45b8b 43997 rm -f no-such-file || : ; \
1b6c0831
L
43998 CONFIG_SITE=no-such-file $(SHELL) \
43999 $$s/$$module_srcdir/configure \
44000 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44001 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44002 --target=${target_alias} \
bba45b8b 44003 || exit 1
6bd3dfaa 44004@endif target-zlib
e393202e 44005
a7254363
PB
44006
44007
d545f33b
PB
44008
44009
4fa63067
NN
44010.PHONY: all-target-zlib maybe-all-target-zlib
44011maybe-all-target-zlib:
4f0ef2d8
CD
44012@if gcc-bootstrap
44013all-target-zlib: stage_current
44014@endif gcc-bootstrap
6bd3dfaa 44015@if target-zlib
72b2455a 44016TARGET-target-zlib=all
6bd3dfaa 44017maybe-all-target-zlib: all-target-zlib
4fa63067 44018all-target-zlib: configure-target-zlib
0aed8855 44019 @: $(MAKE); $(unstage)
b40e3958
L
44020 @r=`${PWD_COMMAND}`; export r; \
44021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44022 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44023 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 44024 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44025 $(TARGET-target-zlib))
6bd3dfaa 44026@endif target-zlib
e393202e 44027
a7254363
PB
44028
44029
d545f33b
PB
44030
44031
4fa63067
NN
44032.PHONY: check-target-zlib maybe-check-target-zlib
44033maybe-check-target-zlib:
6bd3dfaa
PB
44034@if target-zlib
44035maybe-check-target-zlib: check-target-zlib
16ae0395 44036
4fa63067 44037check-target-zlib:
0aed8855 44038 @: $(MAKE); $(unstage)
b40e3958
L
44039 @r=`${PWD_COMMAND}`; export r; \
44040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44041 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44042 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 44043 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 44044
6bd3dfaa 44045@endif target-zlib
930314a4 44046
4fa63067
NN
44047.PHONY: install-target-zlib maybe-install-target-zlib
44048maybe-install-target-zlib:
6bd3dfaa
PB
44049@if target-zlib
44050maybe-install-target-zlib: install-target-zlib
16ae0395 44051
4fa63067 44052install-target-zlib: installdirs
0aed8855 44053 @: $(MAKE); $(unstage)
b40e3958
L
44054 @r=`${PWD_COMMAND}`; export r; \
44055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44056 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44057 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 44058 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44059
6bd3dfaa 44060@endif target-zlib
e393202e 44061
9b980aa1
RW
44062.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
44063maybe-install-strip-target-zlib:
44064@if target-zlib
44065maybe-install-strip-target-zlib: install-strip-target-zlib
44066
44067install-strip-target-zlib: installdirs
44068 @: $(MAKE); $(unstage)
44069 @r=`${PWD_COMMAND}`; export r; \
44070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44071 $(NORMAL_TARGET_EXPORTS) \
44072 (cd $(TARGET_SUBDIR)/zlib && \
44073 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44074
44075@endif target-zlib
44076
56a8fe78 44077# Other targets (info, dvi, pdf, etc.)
15723a45 44078
4fa63067
NN
44079.PHONY: maybe-info-target-zlib info-target-zlib
44080maybe-info-target-zlib:
6bd3dfaa
PB
44081@if target-zlib
44082maybe-info-target-zlib: info-target-zlib
15723a45 44083
4fa63067
NN
44084info-target-zlib: \
44085 configure-target-zlib
0aed8855 44086 @: $(MAKE); $(unstage)
22121df0 44087 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44088 r=`${PWD_COMMAND}`; export r; \
44089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44090 $(NORMAL_TARGET_EXPORTS) \
22121df0 44091 echo "Doing info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44092 for flag in $(EXTRA_TARGET_FLAGS); do \
44093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44094 done; \
44095 (cd $(TARGET_SUBDIR)/zlib && \
44096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44098 "RANLIB=$${RANLIB}" \
0c24b341 44099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44100 info) \
bba45b8b 44101 || exit 1
e393202e 44102
6bd3dfaa 44103@endif target-zlib
e393202e 44104
4fa63067
NN
44105.PHONY: maybe-dvi-target-zlib dvi-target-zlib
44106maybe-dvi-target-zlib:
6bd3dfaa
PB
44107@if target-zlib
44108maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 44109
4fa63067
NN
44110dvi-target-zlib: \
44111 configure-target-zlib
0aed8855 44112 @: $(MAKE); $(unstage)
22121df0 44113 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44114 r=`${PWD_COMMAND}`; export r; \
b40e3958 44115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44116 $(NORMAL_TARGET_EXPORTS) \
22121df0 44117 echo "Doing dvi in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44118 for flag in $(EXTRA_TARGET_FLAGS); do \
44119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44120 done; \
44121 (cd $(TARGET_SUBDIR)/zlib && \
44122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44124 "RANLIB=$${RANLIB}" \
0c24b341 44125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44126 dvi) \
4fa63067 44127 || exit 1
e393202e 44128
6bd3dfaa 44129@endif target-zlib
930314a4 44130
56a8fe78
DD
44131.PHONY: maybe-pdf-target-zlib pdf-target-zlib
44132maybe-pdf-target-zlib:
44133@if target-zlib
44134maybe-pdf-target-zlib: pdf-target-zlib
44135
44136pdf-target-zlib: \
44137 configure-target-zlib
44138 @: $(MAKE); $(unstage)
22121df0 44139 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
56a8fe78
DD
44140 r=`${PWD_COMMAND}`; export r; \
44141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44142 $(NORMAL_TARGET_EXPORTS) \
22121df0 44143 echo "Doing pdf in $(TARGET_SUBDIR)/zlib"; \
56a8fe78
DD
44144 for flag in $(EXTRA_TARGET_FLAGS); do \
44145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44146 done; \
44147 (cd $(TARGET_SUBDIR)/zlib && \
44148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44150 "RANLIB=$${RANLIB}" \
0c24b341 44151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44152 pdf) \
44153 || exit 1
44154
44155@endif target-zlib
44156
6d389afc
MS
44157.PHONY: maybe-html-target-zlib html-target-zlib
44158maybe-html-target-zlib:
44159@if target-zlib
44160maybe-html-target-zlib: html-target-zlib
44161
44162html-target-zlib: \
44163 configure-target-zlib
0aed8855 44164 @: $(MAKE); $(unstage)
22121df0 44165 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
6d389afc
MS
44166 r=`${PWD_COMMAND}`; export r; \
44167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44168 $(NORMAL_TARGET_EXPORTS) \
22121df0 44169 echo "Doing html in $(TARGET_SUBDIR)/zlib"; \
6d389afc
MS
44170 for flag in $(EXTRA_TARGET_FLAGS); do \
44171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44172 done; \
44173 (cd $(TARGET_SUBDIR)/zlib && \
44174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44176 "RANLIB=$${RANLIB}" \
0c24b341 44177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44178 html) \
44179 || exit 1
44180
44181@endif target-zlib
44182
4fa63067
NN
44183.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
44184maybe-TAGS-target-zlib:
6bd3dfaa
PB
44185@if target-zlib
44186maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 44187
4fa63067
NN
44188TAGS-target-zlib: \
44189 configure-target-zlib
0aed8855 44190 @: $(MAKE); $(unstage)
22121df0 44191 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44192 r=`${PWD_COMMAND}`; export r; \
b40e3958 44193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44194 $(NORMAL_TARGET_EXPORTS) \
22121df0 44195 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44196 for flag in $(EXTRA_TARGET_FLAGS); do \
44197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44198 done; \
44199 (cd $(TARGET_SUBDIR)/zlib && \
44200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44202 "RANLIB=$${RANLIB}" \
0c24b341 44203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44204 TAGS) \
4fa63067 44205 || exit 1
e393202e 44206
6bd3dfaa 44207@endif target-zlib
15723a45 44208
4fa63067
NN
44209.PHONY: maybe-install-info-target-zlib install-info-target-zlib
44210maybe-install-info-target-zlib:
6bd3dfaa
PB
44211@if target-zlib
44212maybe-install-info-target-zlib: install-info-target-zlib
15723a45 44213
4fa63067
NN
44214install-info-target-zlib: \
44215 configure-target-zlib \
44216 info-target-zlib
0aed8855 44217 @: $(MAKE); $(unstage)
22121df0 44218 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44219 r=`${PWD_COMMAND}`; export r; \
44220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44221 $(NORMAL_TARGET_EXPORTS) \
22121df0 44222 echo "Doing install-info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44223 for flag in $(EXTRA_TARGET_FLAGS); do \
44224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44225 done; \
44226 (cd $(TARGET_SUBDIR)/zlib && \
44227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44229 "RANLIB=$${RANLIB}" \
0c24b341 44230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44231 install-info) \
bba45b8b 44232 || exit 1
e393202e 44233
6bd3dfaa 44234@endif target-zlib
16ae0395 44235
a3ca38d2
DD
44236.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
44237maybe-install-pdf-target-zlib:
44238@if target-zlib
44239maybe-install-pdf-target-zlib: install-pdf-target-zlib
44240
44241install-pdf-target-zlib: \
44242 configure-target-zlib \
44243 pdf-target-zlib
44244 @: $(MAKE); $(unstage)
22121df0 44245 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
a3ca38d2
DD
44246 r=`${PWD_COMMAND}`; export r; \
44247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44248 $(NORMAL_TARGET_EXPORTS) \
22121df0 44249 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib"; \
a3ca38d2
DD
44250 for flag in $(EXTRA_TARGET_FLAGS); do \
44251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44252 done; \
44253 (cd $(TARGET_SUBDIR)/zlib && \
44254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44256 "RANLIB=$${RANLIB}" \
0c24b341 44257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44258 install-pdf) \
44259 || exit 1
44260
44261@endif target-zlib
44262
108a6f8e
CD
44263.PHONY: maybe-install-html-target-zlib install-html-target-zlib
44264maybe-install-html-target-zlib:
44265@if target-zlib
44266maybe-install-html-target-zlib: install-html-target-zlib
44267
44268install-html-target-zlib: \
44269 configure-target-zlib \
44270 html-target-zlib
44271 @: $(MAKE); $(unstage)
22121df0 44272 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
108a6f8e
CD
44273 r=`${PWD_COMMAND}`; export r; \
44274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44275 $(NORMAL_TARGET_EXPORTS) \
22121df0 44276 echo "Doing install-html in $(TARGET_SUBDIR)/zlib"; \
108a6f8e
CD
44277 for flag in $(EXTRA_TARGET_FLAGS); do \
44278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44279 done; \
44280 (cd $(TARGET_SUBDIR)/zlib && \
44281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44283 "RANLIB=$${RANLIB}" \
0c24b341 44284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44285 install-html) \
44286 || exit 1
44287
44288@endif target-zlib
44289
4fa63067
NN
44290.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
44291maybe-installcheck-target-zlib:
6bd3dfaa
PB
44292@if target-zlib
44293maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 44294
4fa63067
NN
44295installcheck-target-zlib: \
44296 configure-target-zlib
0aed8855 44297 @: $(MAKE); $(unstage)
22121df0 44298 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
44299 r=`${PWD_COMMAND}`; export r; \
44300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44301 $(NORMAL_TARGET_EXPORTS) \
22121df0 44302 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44303 for flag in $(EXTRA_TARGET_FLAGS); do \
44304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44305 done; \
44306 (cd $(TARGET_SUBDIR)/zlib && \
44307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44309 "RANLIB=$${RANLIB}" \
0c24b341 44310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44311 installcheck) \
4fa63067 44312 || exit 1
e393202e 44313
6bd3dfaa 44314@endif target-zlib
16ae0395 44315
4fa63067
NN
44316.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
44317maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
44318@if target-zlib
44319maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 44320
4fa63067 44321mostlyclean-target-zlib:
0aed8855 44322 @: $(MAKE); $(unstage)
22121df0 44323 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
44324 r=`${PWD_COMMAND}`; export r; \
44325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44326 $(NORMAL_TARGET_EXPORTS) \
22121df0 44327 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44328 for flag in $(EXTRA_TARGET_FLAGS); do \
44329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44330 done; \
44331 (cd $(TARGET_SUBDIR)/zlib && \
44332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44334 "RANLIB=$${RANLIB}" \
0c24b341 44335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44336 mostlyclean) \
4fa63067 44337 || exit 1
e393202e 44338
6bd3dfaa 44339@endif target-zlib
15723a45 44340
4fa63067
NN
44341.PHONY: maybe-clean-target-zlib clean-target-zlib
44342maybe-clean-target-zlib:
6bd3dfaa
PB
44343@if target-zlib
44344maybe-clean-target-zlib: clean-target-zlib
15723a45 44345
4fa63067 44346clean-target-zlib:
0aed8855 44347 @: $(MAKE); $(unstage)
22121df0 44348 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44349 r=`${PWD_COMMAND}`; export r; \
44350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44351 $(NORMAL_TARGET_EXPORTS) \
22121df0 44352 echo "Doing clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44353 for flag in $(EXTRA_TARGET_FLAGS); do \
44354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44355 done; \
44356 (cd $(TARGET_SUBDIR)/zlib && \
44357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44359 "RANLIB=$${RANLIB}" \
0c24b341 44360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44361 clean) \
bba45b8b 44362 || exit 1
e393202e 44363
6bd3dfaa 44364@endif target-zlib
e393202e 44365
4fa63067
NN
44366.PHONY: maybe-distclean-target-zlib distclean-target-zlib
44367maybe-distclean-target-zlib:
6bd3dfaa
PB
44368@if target-zlib
44369maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 44370
4fa63067 44371distclean-target-zlib:
0aed8855 44372 @: $(MAKE); $(unstage)
22121df0 44373 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44374 r=`${PWD_COMMAND}`; export r; \
b40e3958 44375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44376 $(NORMAL_TARGET_EXPORTS) \
22121df0 44377 echo "Doing distclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44378 for flag in $(EXTRA_TARGET_FLAGS); do \
44379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44380 done; \
44381 (cd $(TARGET_SUBDIR)/zlib && \
44382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44384 "RANLIB=$${RANLIB}" \
0c24b341 44385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44386 distclean) \
4fa63067 44387 || exit 1
e393202e 44388
6bd3dfaa 44389@endif target-zlib
e393202e 44390
4fa63067
NN
44391.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
44392maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
44393@if target-zlib
44394maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 44395
4fa63067 44396maintainer-clean-target-zlib:
0aed8855 44397 @: $(MAKE); $(unstage)
22121df0 44398 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44399 r=`${PWD_COMMAND}`; export r; \
b40e3958 44400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44401 $(NORMAL_TARGET_EXPORTS) \
22121df0 44402 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44403 for flag in $(EXTRA_TARGET_FLAGS); do \
44404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44405 done; \
44406 (cd $(TARGET_SUBDIR)/zlib && \
44407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44409 "RANLIB=$${RANLIB}" \
0c24b341 44410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44411 maintainer-clean) \
4fa63067 44412 || exit 1
e393202e 44413
6bd3dfaa 44414@endif target-zlib
930314a4 44415
4fa63067 44416
15723a45 44417
a7254363 44418
e90269c8 44419
a7254363
PB
44420.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
44421maybe-configure-target-boehm-gc:
4f0ef2d8
CD
44422@if gcc-bootstrap
44423configure-target-boehm-gc: stage_current
44424@endif gcc-bootstrap
a7254363
PB
44425@if target-boehm-gc
44426maybe-configure-target-boehm-gc: configure-target-boehm-gc
c52c6897 44427configure-target-boehm-gc:
0aed8855
PB
44428 @: $(MAKE); $(unstage)
44429 @r=`${PWD_COMMAND}`; export r; \
44430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44431 echo "Checking multilib configuration for boehm-gc..."; \
22121df0
L
44432 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc; \
44433 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null; \
0aed8855
PB
44434 if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
44435 if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
44436 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \
44437 else \
44438 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \
44439 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
44440 fi; \
44441 else \
44442 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
c52c6897
PB
44443 fi; \
44444 test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
22121df0 44445 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc; \
1f53ca9a 44446 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44447 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
44448 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
bba45b8b 44449 case $(srcdir) in \
b00612cc
PB
44450 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44451 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
44452 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44453 esac; \
1b6c0831 44454 module_srcdir=boehm-gc; \
bba45b8b 44455 rm -f no-such-file || : ; \
1b6c0831
L
44456 CONFIG_SITE=no-such-file $(SHELL) \
44457 $$s/$$module_srcdir/configure \
44458 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44459 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44460 --target=${target_alias} \
bba45b8b 44461 || exit 1
6bd3dfaa 44462@endif target-boehm-gc
e393202e 44463
a7254363
PB
44464
44465
d545f33b
PB
44466
44467
4fa63067
NN
44468.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
44469maybe-all-target-boehm-gc:
4f0ef2d8
CD
44470@if gcc-bootstrap
44471all-target-boehm-gc: stage_current
44472@endif gcc-bootstrap
6bd3dfaa 44473@if target-boehm-gc
72b2455a 44474TARGET-target-boehm-gc=all
6bd3dfaa 44475maybe-all-target-boehm-gc: all-target-boehm-gc
4fa63067 44476all-target-boehm-gc: configure-target-boehm-gc
0aed8855 44477 @: $(MAKE); $(unstage)
b40e3958
L
44478 @r=`${PWD_COMMAND}`; export r; \
44479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44480 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44481 (cd $(TARGET_SUBDIR)/boehm-gc && \
b3676d82 44482 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44483 $(TARGET-target-boehm-gc))
6bd3dfaa 44484@endif target-boehm-gc
e393202e 44485
a7254363
PB
44486
44487
d545f33b
PB
44488
44489
4fa63067
NN
44490.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
44491maybe-check-target-boehm-gc:
6bd3dfaa
PB
44492@if target-boehm-gc
44493maybe-check-target-boehm-gc: check-target-boehm-gc
16ae0395 44494
4fa63067 44495check-target-boehm-gc:
0aed8855 44496 @: $(MAKE); $(unstage)
b40e3958
L
44497 @r=`${PWD_COMMAND}`; export r; \
44498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44499 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44500 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 44501 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 44502
6bd3dfaa 44503@endif target-boehm-gc
930314a4 44504
4fa63067
NN
44505.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
44506maybe-install-target-boehm-gc:
6bd3dfaa
PB
44507@if target-boehm-gc
44508maybe-install-target-boehm-gc: install-target-boehm-gc
16ae0395 44509
4fa63067 44510install-target-boehm-gc: installdirs
0aed8855 44511 @: $(MAKE); $(unstage)
b40e3958
L
44512 @r=`${PWD_COMMAND}`; export r; \
44513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44514 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44515 (cd $(TARGET_SUBDIR)/boehm-gc && \
7ffa0b57 44516 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44517
6bd3dfaa 44518@endif target-boehm-gc
e393202e 44519
9b980aa1
RW
44520.PHONY: install-strip-target-boehm-gc maybe-install-strip-target-boehm-gc
44521maybe-install-strip-target-boehm-gc:
44522@if target-boehm-gc
44523maybe-install-strip-target-boehm-gc: install-strip-target-boehm-gc
44524
44525install-strip-target-boehm-gc: installdirs
44526 @: $(MAKE); $(unstage)
44527 @r=`${PWD_COMMAND}`; export r; \
44528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44529 $(NORMAL_TARGET_EXPORTS) \
44530 (cd $(TARGET_SUBDIR)/boehm-gc && \
44531 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44532
44533@endif target-boehm-gc
44534
56a8fe78 44535# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
44536
44537.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
44538maybe-info-target-boehm-gc:
6bd3dfaa
PB
44539@if target-boehm-gc
44540maybe-info-target-boehm-gc: info-target-boehm-gc
4fa63067
NN
44541
44542info-target-boehm-gc: \
44543 configure-target-boehm-gc
0aed8855 44544 @: $(MAKE); $(unstage)
22121df0 44545 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44546 r=`${PWD_COMMAND}`; export r; \
44547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44548 $(NORMAL_TARGET_EXPORTS) \
22121df0 44549 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44550 for flag in $(EXTRA_TARGET_FLAGS); do \
44551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44552 done; \
44553 (cd $(TARGET_SUBDIR)/boehm-gc && \
44554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44556 "RANLIB=$${RANLIB}" \
0c24b341 44557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44558 info) \
4fa63067
NN
44559 || exit 1
44560
6bd3dfaa 44561@endif target-boehm-gc
4fa63067
NN
44562
44563.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
44564maybe-dvi-target-boehm-gc:
6bd3dfaa
PB
44565@if target-boehm-gc
44566maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
4fa63067
NN
44567
44568dvi-target-boehm-gc: \
44569 configure-target-boehm-gc
0aed8855 44570 @: $(MAKE); $(unstage)
22121df0 44571 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44572 r=`${PWD_COMMAND}`; export r; \
44573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44574 $(NORMAL_TARGET_EXPORTS) \
22121df0 44575 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44576 for flag in $(EXTRA_TARGET_FLAGS); do \
44577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44578 done; \
44579 (cd $(TARGET_SUBDIR)/boehm-gc && \
44580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44582 "RANLIB=$${RANLIB}" \
0c24b341 44583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44584 dvi) \
4fa63067
NN
44585 || exit 1
44586
6bd3dfaa 44587@endif target-boehm-gc
4fa63067 44588
56a8fe78
DD
44589.PHONY: maybe-pdf-target-boehm-gc pdf-target-boehm-gc
44590maybe-pdf-target-boehm-gc:
44591@if target-boehm-gc
44592maybe-pdf-target-boehm-gc: pdf-target-boehm-gc
44593
44594pdf-target-boehm-gc: \
44595 configure-target-boehm-gc
44596 @: $(MAKE); $(unstage)
22121df0 44597 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
56a8fe78
DD
44598 r=`${PWD_COMMAND}`; export r; \
44599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44600 $(NORMAL_TARGET_EXPORTS) \
22121df0 44601 echo "Doing pdf in $(TARGET_SUBDIR)/boehm-gc"; \
56a8fe78
DD
44602 for flag in $(EXTRA_TARGET_FLAGS); do \
44603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44604 done; \
44605 (cd $(TARGET_SUBDIR)/boehm-gc && \
44606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44608 "RANLIB=$${RANLIB}" \
0c24b341 44609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44610 pdf) \
44611 || exit 1
44612
44613@endif target-boehm-gc
44614
6d389afc
MS
44615.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
44616maybe-html-target-boehm-gc:
44617@if target-boehm-gc
44618maybe-html-target-boehm-gc: html-target-boehm-gc
44619
44620html-target-boehm-gc: \
44621 configure-target-boehm-gc
0aed8855 44622 @: $(MAKE); $(unstage)
22121df0 44623 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
6d389afc
MS
44624 r=`${PWD_COMMAND}`; export r; \
44625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44626 $(NORMAL_TARGET_EXPORTS) \
22121df0 44627 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc"; \
6d389afc
MS
44628 for flag in $(EXTRA_TARGET_FLAGS); do \
44629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44630 done; \
44631 (cd $(TARGET_SUBDIR)/boehm-gc && \
44632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44634 "RANLIB=$${RANLIB}" \
0c24b341 44635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44636 html) \
44637 || exit 1
44638
44639@endif target-boehm-gc
44640
4fa63067
NN
44641.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
44642maybe-TAGS-target-boehm-gc:
6bd3dfaa
PB
44643@if target-boehm-gc
44644maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
4fa63067
NN
44645
44646TAGS-target-boehm-gc: \
44647 configure-target-boehm-gc
0aed8855 44648 @: $(MAKE); $(unstage)
22121df0 44649 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44650 r=`${PWD_COMMAND}`; export r; \
44651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44652 $(NORMAL_TARGET_EXPORTS) \
22121df0 44653 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44654 for flag in $(EXTRA_TARGET_FLAGS); do \
44655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44656 done; \
44657 (cd $(TARGET_SUBDIR)/boehm-gc && \
44658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44660 "RANLIB=$${RANLIB}" \
0c24b341 44661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44662 TAGS) \
4fa63067
NN
44663 || exit 1
44664
6bd3dfaa 44665@endif target-boehm-gc
4fa63067
NN
44666
44667.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
44668maybe-install-info-target-boehm-gc:
6bd3dfaa
PB
44669@if target-boehm-gc
44670maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
4fa63067
NN
44671
44672install-info-target-boehm-gc: \
44673 configure-target-boehm-gc \
44674 info-target-boehm-gc
0aed8855 44675 @: $(MAKE); $(unstage)
22121df0 44676 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44677 r=`${PWD_COMMAND}`; export r; \
44678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44679 $(NORMAL_TARGET_EXPORTS) \
22121df0 44680 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44681 for flag in $(EXTRA_TARGET_FLAGS); do \
44682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44683 done; \
44684 (cd $(TARGET_SUBDIR)/boehm-gc && \
44685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44687 "RANLIB=$${RANLIB}" \
0c24b341 44688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44689 install-info) \
4fa63067
NN
44690 || exit 1
44691
6bd3dfaa 44692@endif target-boehm-gc
4fa63067 44693
a3ca38d2
DD
44694.PHONY: maybe-install-pdf-target-boehm-gc install-pdf-target-boehm-gc
44695maybe-install-pdf-target-boehm-gc:
44696@if target-boehm-gc
44697maybe-install-pdf-target-boehm-gc: install-pdf-target-boehm-gc
44698
44699install-pdf-target-boehm-gc: \
44700 configure-target-boehm-gc \
44701 pdf-target-boehm-gc
44702 @: $(MAKE); $(unstage)
22121df0 44703 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
a3ca38d2
DD
44704 r=`${PWD_COMMAND}`; export r; \
44705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44706 $(NORMAL_TARGET_EXPORTS) \
22121df0 44707 echo "Doing install-pdf in $(TARGET_SUBDIR)/boehm-gc"; \
a3ca38d2
DD
44708 for flag in $(EXTRA_TARGET_FLAGS); do \
44709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44710 done; \
44711 (cd $(TARGET_SUBDIR)/boehm-gc && \
44712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44714 "RANLIB=$${RANLIB}" \
0c24b341 44715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44716 install-pdf) \
44717 || exit 1
44718
44719@endif target-boehm-gc
44720
108a6f8e
CD
44721.PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc
44722maybe-install-html-target-boehm-gc:
44723@if target-boehm-gc
44724maybe-install-html-target-boehm-gc: install-html-target-boehm-gc
44725
44726install-html-target-boehm-gc: \
44727 configure-target-boehm-gc \
44728 html-target-boehm-gc
44729 @: $(MAKE); $(unstage)
22121df0 44730 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
108a6f8e
CD
44731 r=`${PWD_COMMAND}`; export r; \
44732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44733 $(NORMAL_TARGET_EXPORTS) \
22121df0 44734 echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc"; \
108a6f8e
CD
44735 for flag in $(EXTRA_TARGET_FLAGS); do \
44736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44737 done; \
44738 (cd $(TARGET_SUBDIR)/boehm-gc && \
44739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44741 "RANLIB=$${RANLIB}" \
0c24b341 44742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44743 install-html) \
44744 || exit 1
44745
44746@endif target-boehm-gc
44747
4fa63067
NN
44748.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
44749maybe-installcheck-target-boehm-gc:
6bd3dfaa
PB
44750@if target-boehm-gc
44751maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
4fa63067
NN
44752
44753installcheck-target-boehm-gc: \
44754 configure-target-boehm-gc
0aed8855 44755 @: $(MAKE); $(unstage)
22121df0 44756 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44757 r=`${PWD_COMMAND}`; export r; \
44758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44759 $(NORMAL_TARGET_EXPORTS) \
22121df0 44760 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44761 for flag in $(EXTRA_TARGET_FLAGS); do \
44762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44763 done; \
44764 (cd $(TARGET_SUBDIR)/boehm-gc && \
44765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44767 "RANLIB=$${RANLIB}" \
0c24b341 44768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44769 installcheck) \
4fa63067
NN
44770 || exit 1
44771
6bd3dfaa 44772@endif target-boehm-gc
4fa63067
NN
44773
44774.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
44775maybe-mostlyclean-target-boehm-gc:
6bd3dfaa
PB
44776@if target-boehm-gc
44777maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
4fa63067
NN
44778
44779mostlyclean-target-boehm-gc:
0aed8855 44780 @: $(MAKE); $(unstage)
22121df0 44781 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44782 r=`${PWD_COMMAND}`; export r; \
44783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44784 $(NORMAL_TARGET_EXPORTS) \
22121df0 44785 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44786 for flag in $(EXTRA_TARGET_FLAGS); do \
44787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44788 done; \
44789 (cd $(TARGET_SUBDIR)/boehm-gc && \
44790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44792 "RANLIB=$${RANLIB}" \
0c24b341 44793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44794 mostlyclean) \
4fa63067
NN
44795 || exit 1
44796
6bd3dfaa 44797@endif target-boehm-gc
4fa63067
NN
44798
44799.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
44800maybe-clean-target-boehm-gc:
6bd3dfaa
PB
44801@if target-boehm-gc
44802maybe-clean-target-boehm-gc: clean-target-boehm-gc
4fa63067
NN
44803
44804clean-target-boehm-gc:
0aed8855 44805 @: $(MAKE); $(unstage)
22121df0 44806 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44807 r=`${PWD_COMMAND}`; export r; \
44808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44809 $(NORMAL_TARGET_EXPORTS) \
22121df0 44810 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44811 for flag in $(EXTRA_TARGET_FLAGS); do \
44812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44813 done; \
44814 (cd $(TARGET_SUBDIR)/boehm-gc && \
44815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44817 "RANLIB=$${RANLIB}" \
0c24b341 44818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44819 clean) \
4fa63067
NN
44820 || exit 1
44821
6bd3dfaa 44822@endif target-boehm-gc
4fa63067
NN
44823
44824.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
44825maybe-distclean-target-boehm-gc:
6bd3dfaa
PB
44826@if target-boehm-gc
44827maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
4fa63067
NN
44828
44829distclean-target-boehm-gc:
0aed8855 44830 @: $(MAKE); $(unstage)
22121df0 44831 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44832 r=`${PWD_COMMAND}`; export r; \
44833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44834 $(NORMAL_TARGET_EXPORTS) \
22121df0 44835 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44836 for flag in $(EXTRA_TARGET_FLAGS); do \
44837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44838 done; \
44839 (cd $(TARGET_SUBDIR)/boehm-gc && \
44840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44842 "RANLIB=$${RANLIB}" \
0c24b341 44843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44844 distclean) \
4fa63067
NN
44845 || exit 1
44846
6bd3dfaa 44847@endif target-boehm-gc
4fa63067
NN
44848
44849.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
44850maybe-maintainer-clean-target-boehm-gc:
6bd3dfaa
PB
44851@if target-boehm-gc
44852maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
4fa63067
NN
44853
44854maintainer-clean-target-boehm-gc:
0aed8855 44855 @: $(MAKE); $(unstage)
22121df0 44856 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0; \
4fa63067
NN
44857 r=`${PWD_COMMAND}`; export r; \
44858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44859 $(NORMAL_TARGET_EXPORTS) \
22121df0 44860 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc"; \
4fa63067
NN
44861 for flag in $(EXTRA_TARGET_FLAGS); do \
44862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44863 done; \
44864 (cd $(TARGET_SUBDIR)/boehm-gc && \
44865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44867 "RANLIB=$${RANLIB}" \
0c24b341 44868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44869 maintainer-clean) \
4fa63067
NN
44870 || exit 1
44871
6bd3dfaa 44872@endif target-boehm-gc
4fa63067
NN
44873
44874
15723a45 44875
15723a45 44876
a7254363 44877
a7254363
PB
44878.PHONY: configure-target-rda maybe-configure-target-rda
44879maybe-configure-target-rda:
4f0ef2d8
CD
44880@if gcc-bootstrap
44881configure-target-rda: stage_current
44882@endif gcc-bootstrap
a7254363
PB
44883@if target-rda
44884maybe-configure-target-rda: configure-target-rda
c52c6897 44885configure-target-rda:
0aed8855
PB
44886 @: $(MAKE); $(unstage)
44887 @r=`${PWD_COMMAND}`; export r; \
44888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44889 echo "Checking multilib configuration for rda..."; \
22121df0
L
44890 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
44891 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null; \
0aed8855
PB
44892 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
44893 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
44894 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
44895 else \
44896 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
44897 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
44898 fi; \
44899 else \
44900 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
44901 fi; \
44902 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
22121df0 44903 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
1f53ca9a 44904 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44905 echo Configuring in $(TARGET_SUBDIR)/rda; \
44906 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 44907 case $(srcdir) in \
b00612cc
PB
44908 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44909 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
44910 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44911 esac; \
1b6c0831 44912 module_srcdir=rda; \
bba45b8b 44913 rm -f no-such-file || : ; \
1b6c0831
L
44914 CONFIG_SITE=no-such-file $(SHELL) \
44915 $$s/$$module_srcdir/configure \
44916 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44917 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44918 --target=${target_alias} \
bba45b8b 44919 || exit 1
6bd3dfaa 44920@endif target-rda
49b7683b 44921
a7254363
PB
44922
44923
d545f33b
PB
44924
44925
4fa63067
NN
44926.PHONY: all-target-rda maybe-all-target-rda
44927maybe-all-target-rda:
4f0ef2d8
CD
44928@if gcc-bootstrap
44929all-target-rda: stage_current
44930@endif gcc-bootstrap
6bd3dfaa 44931@if target-rda
72b2455a 44932TARGET-target-rda=all
6bd3dfaa 44933maybe-all-target-rda: all-target-rda
4fa63067 44934all-target-rda: configure-target-rda
0aed8855 44935 @: $(MAKE); $(unstage)
b40e3958
L
44936 @r=`${PWD_COMMAND}`; export r; \
44937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44938 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44939 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 44940 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44941 $(TARGET-target-rda))
6bd3dfaa 44942@endif target-rda
252b5132 44943
a7254363
PB
44944
44945
d545f33b
PB
44946
44947
4fa63067
NN
44948.PHONY: check-target-rda maybe-check-target-rda
44949maybe-check-target-rda:
6bd3dfaa
PB
44950@if target-rda
44951maybe-check-target-rda: check-target-rda
16ae0395 44952
4fa63067 44953check-target-rda:
0aed8855 44954 @: $(MAKE); $(unstage)
b40e3958
L
44955 @r=`${PWD_COMMAND}`; export r; \
44956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44957 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44958 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 44959 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 44960
6bd3dfaa 44961@endif target-rda
930314a4 44962
4fa63067
NN
44963.PHONY: install-target-rda maybe-install-target-rda
44964maybe-install-target-rda:
6bd3dfaa
PB
44965@if target-rda
44966maybe-install-target-rda: install-target-rda
16ae0395 44967
4fa63067 44968install-target-rda: installdirs
0aed8855 44969 @: $(MAKE); $(unstage)
b40e3958
L
44970 @r=`${PWD_COMMAND}`; export r; \
44971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44972 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44973 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 44974 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44975
6bd3dfaa 44976@endif target-rda
e393202e 44977
9b980aa1
RW
44978.PHONY: install-strip-target-rda maybe-install-strip-target-rda
44979maybe-install-strip-target-rda:
44980@if target-rda
44981maybe-install-strip-target-rda: install-strip-target-rda
44982
44983install-strip-target-rda: installdirs
44984 @: $(MAKE); $(unstage)
44985 @r=`${PWD_COMMAND}`; export r; \
44986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44987 $(NORMAL_TARGET_EXPORTS) \
44988 (cd $(TARGET_SUBDIR)/rda && \
44989 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44990
44991@endif target-rda
44992
56a8fe78 44993# Other targets (info, dvi, pdf, etc.)
15723a45 44994
4fa63067
NN
44995.PHONY: maybe-info-target-rda info-target-rda
44996maybe-info-target-rda:
6bd3dfaa
PB
44997@if target-rda
44998maybe-info-target-rda: info-target-rda
15723a45 44999
4fa63067
NN
45000info-target-rda: \
45001 configure-target-rda
0aed8855 45002 @: $(MAKE); $(unstage)
22121df0 45003 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
45004 r=`${PWD_COMMAND}`; export r; \
45005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45006 $(NORMAL_TARGET_EXPORTS) \
22121df0 45007 echo "Doing info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45008 for flag in $(EXTRA_TARGET_FLAGS); do \
45009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45010 done; \
45011 (cd $(TARGET_SUBDIR)/rda && \
45012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45014 "RANLIB=$${RANLIB}" \
0c24b341 45015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45016 info) \
bba45b8b 45017 || exit 1
252b5132 45018
6bd3dfaa 45019@endif target-rda
4fa63067
NN
45020
45021.PHONY: maybe-dvi-target-rda dvi-target-rda
45022maybe-dvi-target-rda:
6bd3dfaa
PB
45023@if target-rda
45024maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
45025
45026dvi-target-rda: \
45027 configure-target-rda
0aed8855 45028 @: $(MAKE); $(unstage)
22121df0 45029 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45030 r=`${PWD_COMMAND}`; export r; \
b40e3958 45031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45032 $(NORMAL_TARGET_EXPORTS) \
22121df0 45033 echo "Doing dvi in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45034 for flag in $(EXTRA_TARGET_FLAGS); do \
45035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45036 done; \
45037 (cd $(TARGET_SUBDIR)/rda && \
45038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45040 "RANLIB=$${RANLIB}" \
0c24b341 45041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45042 dvi) \
4fa63067 45043 || exit 1
252b5132 45044
6bd3dfaa 45045@endif target-rda
16ae0395 45046
56a8fe78
DD
45047.PHONY: maybe-pdf-target-rda pdf-target-rda
45048maybe-pdf-target-rda:
45049@if target-rda
45050maybe-pdf-target-rda: pdf-target-rda
45051
45052pdf-target-rda: \
45053 configure-target-rda
45054 @: $(MAKE); $(unstage)
22121df0 45055 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
56a8fe78
DD
45056 r=`${PWD_COMMAND}`; export r; \
45057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45058 $(NORMAL_TARGET_EXPORTS) \
22121df0 45059 echo "Doing pdf in $(TARGET_SUBDIR)/rda"; \
56a8fe78
DD
45060 for flag in $(EXTRA_TARGET_FLAGS); do \
45061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45062 done; \
45063 (cd $(TARGET_SUBDIR)/rda && \
45064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45066 "RANLIB=$${RANLIB}" \
0c24b341 45067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45068 pdf) \
45069 || exit 1
45070
45071@endif target-rda
45072
6d389afc
MS
45073.PHONY: maybe-html-target-rda html-target-rda
45074maybe-html-target-rda:
45075@if target-rda
45076maybe-html-target-rda: html-target-rda
45077
45078html-target-rda: \
45079 configure-target-rda
0aed8855 45080 @: $(MAKE); $(unstage)
22121df0 45081 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
6d389afc
MS
45082 r=`${PWD_COMMAND}`; export r; \
45083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45084 $(NORMAL_TARGET_EXPORTS) \
22121df0 45085 echo "Doing html in $(TARGET_SUBDIR)/rda"; \
6d389afc
MS
45086 for flag in $(EXTRA_TARGET_FLAGS); do \
45087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45088 done; \
45089 (cd $(TARGET_SUBDIR)/rda && \
45090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45092 "RANLIB=$${RANLIB}" \
0c24b341 45093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45094 html) \
45095 || exit 1
45096
45097@endif target-rda
45098
4fa63067
NN
45099.PHONY: maybe-TAGS-target-rda TAGS-target-rda
45100maybe-TAGS-target-rda:
6bd3dfaa
PB
45101@if target-rda
45102maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
45103
45104TAGS-target-rda: \
45105 configure-target-rda
0aed8855 45106 @: $(MAKE); $(unstage)
22121df0 45107 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45108 r=`${PWD_COMMAND}`; export r; \
b40e3958 45109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45110 $(NORMAL_TARGET_EXPORTS) \
22121df0 45111 echo "Doing TAGS in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45112 for flag in $(EXTRA_TARGET_FLAGS); do \
45113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45114 done; \
45115 (cd $(TARGET_SUBDIR)/rda && \
45116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45118 "RANLIB=$${RANLIB}" \
0c24b341 45119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45120 TAGS) \
4fa63067 45121 || exit 1
e393202e 45122
6bd3dfaa 45123@endif target-rda
930314a4 45124
4fa63067
NN
45125.PHONY: maybe-install-info-target-rda install-info-target-rda
45126maybe-install-info-target-rda:
6bd3dfaa
PB
45127@if target-rda
45128maybe-install-info-target-rda: install-info-target-rda
16ae0395 45129
4fa63067
NN
45130install-info-target-rda: \
45131 configure-target-rda \
45132 info-target-rda
0aed8855 45133 @: $(MAKE); $(unstage)
22121df0 45134 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45135 r=`${PWD_COMMAND}`; export r; \
b40e3958 45136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45137 $(NORMAL_TARGET_EXPORTS) \
22121df0 45138 echo "Doing install-info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45139 for flag in $(EXTRA_TARGET_FLAGS); do \
45140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45141 done; \
45142 (cd $(TARGET_SUBDIR)/rda && \
45143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45145 "RANLIB=$${RANLIB}" \
0c24b341 45146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45147 install-info) \
4fa63067 45148 || exit 1
252b5132 45149
6bd3dfaa 45150@endif target-rda
e393202e 45151
a3ca38d2
DD
45152.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
45153maybe-install-pdf-target-rda:
45154@if target-rda
45155maybe-install-pdf-target-rda: install-pdf-target-rda
45156
45157install-pdf-target-rda: \
45158 configure-target-rda \
45159 pdf-target-rda
45160 @: $(MAKE); $(unstage)
22121df0 45161 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
a3ca38d2
DD
45162 r=`${PWD_COMMAND}`; export r; \
45163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45164 $(NORMAL_TARGET_EXPORTS) \
22121df0 45165 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda"; \
a3ca38d2
DD
45166 for flag in $(EXTRA_TARGET_FLAGS); do \
45167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45168 done; \
45169 (cd $(TARGET_SUBDIR)/rda && \
45170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45172 "RANLIB=$${RANLIB}" \
0c24b341 45173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45174 install-pdf) \
45175 || exit 1
45176
45177@endif target-rda
45178
108a6f8e
CD
45179.PHONY: maybe-install-html-target-rda install-html-target-rda
45180maybe-install-html-target-rda:
45181@if target-rda
45182maybe-install-html-target-rda: install-html-target-rda
45183
45184install-html-target-rda: \
45185 configure-target-rda \
45186 html-target-rda
45187 @: $(MAKE); $(unstage)
22121df0 45188 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
108a6f8e
CD
45189 r=`${PWD_COMMAND}`; export r; \
45190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45191 $(NORMAL_TARGET_EXPORTS) \
22121df0 45192 echo "Doing install-html in $(TARGET_SUBDIR)/rda"; \
108a6f8e
CD
45193 for flag in $(EXTRA_TARGET_FLAGS); do \
45194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45195 done; \
45196 (cd $(TARGET_SUBDIR)/rda && \
45197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45199 "RANLIB=$${RANLIB}" \
0c24b341 45200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45201 install-html) \
45202 || exit 1
45203
45204@endif target-rda
45205
4fa63067
NN
45206.PHONY: maybe-installcheck-target-rda installcheck-target-rda
45207maybe-installcheck-target-rda:
6bd3dfaa
PB
45208@if target-rda
45209maybe-installcheck-target-rda: installcheck-target-rda
15723a45 45210
4fa63067
NN
45211installcheck-target-rda: \
45212 configure-target-rda
0aed8855 45213 @: $(MAKE); $(unstage)
22121df0 45214 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067
NN
45215 r=`${PWD_COMMAND}`; export r; \
45216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45217 $(NORMAL_TARGET_EXPORTS) \
22121df0 45218 echo "Doing installcheck in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45219 for flag in $(EXTRA_TARGET_FLAGS); do \
45220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45221 done; \
45222 (cd $(TARGET_SUBDIR)/rda && \
45223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45225 "RANLIB=$${RANLIB}" \
0c24b341 45226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45227 installcheck) \
4fa63067 45228 || exit 1
15723a45 45229
6bd3dfaa 45230@endif target-rda
4fa63067
NN
45231
45232.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
45233maybe-mostlyclean-target-rda:
6bd3dfaa
PB
45234@if target-rda
45235maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
45236
45237mostlyclean-target-rda:
0aed8855 45238 @: $(MAKE); $(unstage)
22121df0 45239 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
45240 r=`${PWD_COMMAND}`; export r; \
45241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45242 $(NORMAL_TARGET_EXPORTS) \
22121df0 45243 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45244 for flag in $(EXTRA_TARGET_FLAGS); do \
45245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45246 done; \
45247 (cd $(TARGET_SUBDIR)/rda && \
45248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45250 "RANLIB=$${RANLIB}" \
0c24b341 45251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45252 mostlyclean) \
bba45b8b 45253 || exit 1
252b5132 45254
6bd3dfaa 45255@endif target-rda
4fa63067
NN
45256
45257.PHONY: maybe-clean-target-rda clean-target-rda
45258maybe-clean-target-rda:
6bd3dfaa
PB
45259@if target-rda
45260maybe-clean-target-rda: clean-target-rda
4fa63067
NN
45261
45262clean-target-rda:
0aed8855 45263 @: $(MAKE); $(unstage)
22121df0 45264 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45265 r=`${PWD_COMMAND}`; export r; \
b40e3958 45266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45267 $(NORMAL_TARGET_EXPORTS) \
22121df0 45268 echo "Doing clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45269 for flag in $(EXTRA_TARGET_FLAGS); do \
45270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45271 done; \
bba45b8b 45272 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45275 "RANLIB=$${RANLIB}" \
0c24b341 45276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45277 clean) \
4fa63067 45278 || exit 1
252b5132 45279
6bd3dfaa 45280@endif target-rda
16ae0395 45281
4fa63067
NN
45282.PHONY: maybe-distclean-target-rda distclean-target-rda
45283maybe-distclean-target-rda:
6bd3dfaa
PB
45284@if target-rda
45285maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
45286
45287distclean-target-rda:
0aed8855 45288 @: $(MAKE); $(unstage)
22121df0 45289 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45290 r=`${PWD_COMMAND}`; export r; \
b40e3958 45291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45292 $(NORMAL_TARGET_EXPORTS) \
22121df0 45293 echo "Doing distclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45294 for flag in $(EXTRA_TARGET_FLAGS); do \
45295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45296 done; \
bba45b8b 45297 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45300 "RANLIB=$${RANLIB}" \
0c24b341 45301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45302 distclean) \
4fa63067 45303 || exit 1
252b5132 45304
6bd3dfaa 45305@endif target-rda
930314a4 45306
4fa63067
NN
45307.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
45308maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
45309@if target-rda
45310maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 45311
4fa63067 45312maintainer-clean-target-rda:
0aed8855 45313 @: $(MAKE); $(unstage)
22121df0 45314 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45315 r=`${PWD_COMMAND}`; export r; \
b40e3958 45316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45317 $(NORMAL_TARGET_EXPORTS) \
22121df0 45318 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45319 for flag in $(EXTRA_TARGET_FLAGS); do \
45320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45321 done; \
bba45b8b 45322 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45325 "RANLIB=$${RANLIB}" \
0c24b341 45326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45327 maintainer-clean) \
4fa63067
NN
45328 || exit 1
45329
6bd3dfaa 45330@endif target-rda
252b5132 45331
e393202e 45332
a2592b1b 45333
a7254363
PB
45334
45335
45336.PHONY: configure-target-libada maybe-configure-target-libada
45337maybe-configure-target-libada:
4f0ef2d8
CD
45338@if gcc-bootstrap
45339configure-target-libada: stage_current
45340@endif gcc-bootstrap
a7254363
PB
45341@if target-libada
45342maybe-configure-target-libada: configure-target-libada
c52c6897 45343configure-target-libada:
0aed8855
PB
45344 @: $(MAKE); $(unstage)
45345 @r=`${PWD_COMMAND}`; export r; \
45346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45347 echo "Checking multilib configuration for libada..."; \
22121df0
L
45348 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
45349 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null; \
0aed8855
PB
45350 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
45351 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
45352 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
45353 else \
45354 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
45355 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
45356 fi; \
45357 else \
45358 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
45359 fi; \
45360 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
22121df0 45361 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
1f53ca9a 45362 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
45363 echo Configuring in $(TARGET_SUBDIR)/libada; \
45364 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
45365 case $(srcdir) in \
b00612cc
PB
45366 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45367 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
45368 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 45369 esac; \
1b6c0831 45370 module_srcdir=libada; \
a2592b1b 45371 rm -f no-such-file || : ; \
1b6c0831
L
45372 CONFIG_SITE=no-such-file $(SHELL) \
45373 $$s/$$module_srcdir/configure \
45374 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45375 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45376 --target=${target_alias} \
a2592b1b 45377 || exit 1
6bd3dfaa 45378@endif target-libada
a2592b1b 45379
a7254363
PB
45380
45381
d545f33b
PB
45382
45383
4fa63067
NN
45384.PHONY: all-target-libada maybe-all-target-libada
45385maybe-all-target-libada:
4f0ef2d8
CD
45386@if gcc-bootstrap
45387all-target-libada: stage_current
45388@endif gcc-bootstrap
6bd3dfaa 45389@if target-libada
72b2455a 45390TARGET-target-libada=all
6bd3dfaa 45391maybe-all-target-libada: all-target-libada
4fa63067 45392all-target-libada: configure-target-libada
0aed8855 45393 @: $(MAKE); $(unstage)
4fa63067
NN
45394 @r=`${PWD_COMMAND}`; export r; \
45395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45396 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45397 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 45398 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45399 $(TARGET-target-libada))
6bd3dfaa 45400@endif target-libada
4fa63067 45401
a7254363
PB
45402
45403
d545f33b
PB
45404
45405
4fa63067
NN
45406.PHONY: check-target-libada maybe-check-target-libada
45407maybe-check-target-libada:
6bd3dfaa
PB
45408@if target-libada
45409maybe-check-target-libada: check-target-libada
4fa63067
NN
45410
45411check-target-libada:
0aed8855 45412 @: $(MAKE); $(unstage)
4fa63067
NN
45413 @r=`${PWD_COMMAND}`; export r; \
45414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45415 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45416 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45417 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 45418
6bd3dfaa 45419@endif target-libada
4fa63067
NN
45420
45421.PHONY: install-target-libada maybe-install-target-libada
45422maybe-install-target-libada:
6bd3dfaa
PB
45423@if target-libada
45424maybe-install-target-libada: install-target-libada
4fa63067
NN
45425
45426install-target-libada: installdirs
0aed8855 45427 @: $(MAKE); $(unstage)
4fa63067
NN
45428 @r=`${PWD_COMMAND}`; export r; \
45429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45430 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45431 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45432 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 45433
6bd3dfaa 45434@endif target-libada
4fa63067 45435
9b980aa1
RW
45436.PHONY: install-strip-target-libada maybe-install-strip-target-libada
45437maybe-install-strip-target-libada:
45438@if target-libada
45439maybe-install-strip-target-libada: install-strip-target-libada
45440
45441install-strip-target-libada: installdirs
45442 @: $(MAKE); $(unstage)
45443 @r=`${PWD_COMMAND}`; export r; \
45444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45445 $(NORMAL_TARGET_EXPORTS) \
45446 (cd $(TARGET_SUBDIR)/libada && \
45447 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45448
45449@endif target-libada
45450
56a8fe78 45451# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
45452
45453.PHONY: maybe-info-target-libada info-target-libada
45454maybe-info-target-libada:
6bd3dfaa
PB
45455@if target-libada
45456maybe-info-target-libada: info-target-libada
4fa63067
NN
45457
45458info-target-libada: \
45459 configure-target-libada
0aed8855 45460 @: $(MAKE); $(unstage)
22121df0 45461 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45462 r=`${PWD_COMMAND}`; export r; \
45463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45464 $(NORMAL_TARGET_EXPORTS) \
22121df0 45465 echo "Doing info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45466 for flag in $(EXTRA_TARGET_FLAGS); do \
45467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45468 done; \
45469 (cd $(TARGET_SUBDIR)/libada && \
45470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45472 "RANLIB=$${RANLIB}" \
0c24b341 45473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45474 info) \
4fa63067
NN
45475 || exit 1
45476
6bd3dfaa 45477@endif target-libada
4fa63067
NN
45478
45479.PHONY: maybe-dvi-target-libada dvi-target-libada
45480maybe-dvi-target-libada:
6bd3dfaa
PB
45481@if target-libada
45482maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
45483
45484dvi-target-libada: \
45485 configure-target-libada
0aed8855 45486 @: $(MAKE); $(unstage)
22121df0 45487 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45488 r=`${PWD_COMMAND}`; export r; \
45489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45490 $(NORMAL_TARGET_EXPORTS) \
22121df0 45491 echo "Doing dvi in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45492 for flag in $(EXTRA_TARGET_FLAGS); do \
45493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45494 done; \
45495 (cd $(TARGET_SUBDIR)/libada && \
45496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45498 "RANLIB=$${RANLIB}" \
0c24b341 45499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45500 dvi) \
4fa63067
NN
45501 || exit 1
45502
6bd3dfaa 45503@endif target-libada
4fa63067 45504
56a8fe78
DD
45505.PHONY: maybe-pdf-target-libada pdf-target-libada
45506maybe-pdf-target-libada:
45507@if target-libada
45508maybe-pdf-target-libada: pdf-target-libada
45509
45510pdf-target-libada: \
45511 configure-target-libada
45512 @: $(MAKE); $(unstage)
22121df0 45513 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
56a8fe78
DD
45514 r=`${PWD_COMMAND}`; export r; \
45515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45516 $(NORMAL_TARGET_EXPORTS) \
22121df0 45517 echo "Doing pdf in $(TARGET_SUBDIR)/libada"; \
56a8fe78
DD
45518 for flag in $(EXTRA_TARGET_FLAGS); do \
45519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45520 done; \
45521 (cd $(TARGET_SUBDIR)/libada && \
45522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45524 "RANLIB=$${RANLIB}" \
0c24b341 45525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45526 pdf) \
45527 || exit 1
45528
45529@endif target-libada
45530
6d389afc
MS
45531.PHONY: maybe-html-target-libada html-target-libada
45532maybe-html-target-libada:
45533@if target-libada
45534maybe-html-target-libada: html-target-libada
45535
45536html-target-libada: \
45537 configure-target-libada
0aed8855 45538 @: $(MAKE); $(unstage)
22121df0 45539 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
6d389afc
MS
45540 r=`${PWD_COMMAND}`; export r; \
45541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45542 $(NORMAL_TARGET_EXPORTS) \
22121df0 45543 echo "Doing html in $(TARGET_SUBDIR)/libada"; \
6d389afc
MS
45544 for flag in $(EXTRA_TARGET_FLAGS); do \
45545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45546 done; \
45547 (cd $(TARGET_SUBDIR)/libada && \
45548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45550 "RANLIB=$${RANLIB}" \
0c24b341 45551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45552 html) \
45553 || exit 1
45554
45555@endif target-libada
45556
4fa63067
NN
45557.PHONY: maybe-TAGS-target-libada TAGS-target-libada
45558maybe-TAGS-target-libada:
6bd3dfaa
PB
45559@if target-libada
45560maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
45561
45562TAGS-target-libada: \
45563 configure-target-libada
0aed8855 45564 @: $(MAKE); $(unstage)
22121df0 45565 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45566 r=`${PWD_COMMAND}`; export r; \
45567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45568 $(NORMAL_TARGET_EXPORTS) \
22121df0 45569 echo "Doing TAGS in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45570 for flag in $(EXTRA_TARGET_FLAGS); do \
45571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45572 done; \
45573 (cd $(TARGET_SUBDIR)/libada && \
45574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45576 "RANLIB=$${RANLIB}" \
0c24b341 45577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45578 TAGS) \
4fa63067
NN
45579 || exit 1
45580
6bd3dfaa 45581@endif target-libada
4fa63067
NN
45582
45583.PHONY: maybe-install-info-target-libada install-info-target-libada
45584maybe-install-info-target-libada:
6bd3dfaa
PB
45585@if target-libada
45586maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
45587
45588install-info-target-libada: \
45589 configure-target-libada \
45590 info-target-libada
0aed8855 45591 @: $(MAKE); $(unstage)
22121df0 45592 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45593 r=`${PWD_COMMAND}`; export r; \
45594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45595 $(NORMAL_TARGET_EXPORTS) \
22121df0 45596 echo "Doing install-info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45597 for flag in $(EXTRA_TARGET_FLAGS); do \
45598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45599 done; \
45600 (cd $(TARGET_SUBDIR)/libada && \
45601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45603 "RANLIB=$${RANLIB}" \
0c24b341 45604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45605 install-info) \
4fa63067
NN
45606 || exit 1
45607
6bd3dfaa 45608@endif target-libada
4fa63067 45609
a3ca38d2
DD
45610.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
45611maybe-install-pdf-target-libada:
45612@if target-libada
45613maybe-install-pdf-target-libada: install-pdf-target-libada
45614
45615install-pdf-target-libada: \
45616 configure-target-libada \
45617 pdf-target-libada
45618 @: $(MAKE); $(unstage)
22121df0 45619 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
a3ca38d2
DD
45620 r=`${PWD_COMMAND}`; export r; \
45621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45622 $(NORMAL_TARGET_EXPORTS) \
22121df0 45623 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada"; \
a3ca38d2
DD
45624 for flag in $(EXTRA_TARGET_FLAGS); do \
45625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45626 done; \
45627 (cd $(TARGET_SUBDIR)/libada && \
45628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45630 "RANLIB=$${RANLIB}" \
0c24b341 45631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45632 install-pdf) \
45633 || exit 1
45634
45635@endif target-libada
45636
108a6f8e
CD
45637.PHONY: maybe-install-html-target-libada install-html-target-libada
45638maybe-install-html-target-libada:
45639@if target-libada
45640maybe-install-html-target-libada: install-html-target-libada
45641
45642install-html-target-libada: \
45643 configure-target-libada \
45644 html-target-libada
45645 @: $(MAKE); $(unstage)
22121df0 45646 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
108a6f8e
CD
45647 r=`${PWD_COMMAND}`; export r; \
45648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45649 $(NORMAL_TARGET_EXPORTS) \
22121df0 45650 echo "Doing install-html in $(TARGET_SUBDIR)/libada"; \
108a6f8e
CD
45651 for flag in $(EXTRA_TARGET_FLAGS); do \
45652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45653 done; \
45654 (cd $(TARGET_SUBDIR)/libada && \
45655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45657 "RANLIB=$${RANLIB}" \
0c24b341 45658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45659 install-html) \
45660 || exit 1
45661
45662@endif target-libada
45663
4fa63067
NN
45664.PHONY: maybe-installcheck-target-libada installcheck-target-libada
45665maybe-installcheck-target-libada:
6bd3dfaa
PB
45666@if target-libada
45667maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
45668
45669installcheck-target-libada: \
45670 configure-target-libada
0aed8855 45671 @: $(MAKE); $(unstage)
22121df0 45672 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45673 r=`${PWD_COMMAND}`; export r; \
45674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45675 $(NORMAL_TARGET_EXPORTS) \
22121df0 45676 echo "Doing installcheck in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45677 for flag in $(EXTRA_TARGET_FLAGS); do \
45678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45679 done; \
45680 (cd $(TARGET_SUBDIR)/libada && \
45681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45683 "RANLIB=$${RANLIB}" \
0c24b341 45684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45685 installcheck) \
4fa63067
NN
45686 || exit 1
45687
6bd3dfaa 45688@endif target-libada
4fa63067
NN
45689
45690.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
45691maybe-mostlyclean-target-libada:
6bd3dfaa
PB
45692@if target-libada
45693maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
45694
45695mostlyclean-target-libada:
0aed8855 45696 @: $(MAKE); $(unstage)
22121df0 45697 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45698 r=`${PWD_COMMAND}`; export r; \
45699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45700 $(NORMAL_TARGET_EXPORTS) \
22121df0 45701 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45702 for flag in $(EXTRA_TARGET_FLAGS); do \
45703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45704 done; \
45705 (cd $(TARGET_SUBDIR)/libada && \
45706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45708 "RANLIB=$${RANLIB}" \
0c24b341 45709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45710 mostlyclean) \
4fa63067
NN
45711 || exit 1
45712
6bd3dfaa 45713@endif target-libada
4fa63067
NN
45714
45715.PHONY: maybe-clean-target-libada clean-target-libada
45716maybe-clean-target-libada:
6bd3dfaa
PB
45717@if target-libada
45718maybe-clean-target-libada: clean-target-libada
4fa63067
NN
45719
45720clean-target-libada:
0aed8855 45721 @: $(MAKE); $(unstage)
22121df0 45722 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45723 r=`${PWD_COMMAND}`; export r; \
45724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45725 $(NORMAL_TARGET_EXPORTS) \
22121df0 45726 echo "Doing clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45727 for flag in $(EXTRA_TARGET_FLAGS); do \
45728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45729 done; \
45730 (cd $(TARGET_SUBDIR)/libada && \
45731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45733 "RANLIB=$${RANLIB}" \
0c24b341 45734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45735 clean) \
4fa63067
NN
45736 || exit 1
45737
6bd3dfaa 45738@endif target-libada
a2592b1b 45739
4fa63067
NN
45740.PHONY: maybe-distclean-target-libada distclean-target-libada
45741maybe-distclean-target-libada:
6bd3dfaa
PB
45742@if target-libada
45743maybe-distclean-target-libada: distclean-target-libada
a2592b1b 45744
4fa63067 45745distclean-target-libada:
0aed8855 45746 @: $(MAKE); $(unstage)
22121df0 45747 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 45748 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45750 $(NORMAL_TARGET_EXPORTS) \
22121df0 45751 echo "Doing distclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45752 for flag in $(EXTRA_TARGET_FLAGS); do \
45753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45754 done; \
a2592b1b 45755 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45758 "RANLIB=$${RANLIB}" \
0c24b341 45759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45760 distclean) \
4fa63067 45761 || exit 1
a2592b1b 45762
6bd3dfaa 45763@endif target-libada
a2592b1b 45764
4fa63067
NN
45765.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
45766maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
45767@if target-libada
45768maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 45769
4fa63067 45770maintainer-clean-target-libada:
0aed8855 45771 @: $(MAKE); $(unstage)
22121df0 45772 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 45773 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45775 $(NORMAL_TARGET_EXPORTS) \
22121df0 45776 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45777 for flag in $(EXTRA_TARGET_FLAGS); do \
45778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45779 done; \
a2592b1b 45780 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45783 "RANLIB=$${RANLIB}" \
0c24b341 45784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45785 maintainer-clean) \
4fa63067
NN
45786 || exit 1
45787
6bd3dfaa 45788@endif target-libada
a2592b1b
DD
45789
45790
e393202e 45791
b3ded179
PB
45792
45793
45794.PHONY: configure-target-libgomp maybe-configure-target-libgomp
45795maybe-configure-target-libgomp:
4f0ef2d8
CD
45796@if gcc-bootstrap
45797configure-target-libgomp: stage_current
45798@endif gcc-bootstrap
b3ded179
PB
45799@if target-libgomp
45800maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 45801configure-target-libgomp:
b3ded179
PB
45802 @r=`${PWD_COMMAND}`; export r; \
45803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45804 echo "Checking multilib configuration for libgomp..."; \
22121df0
L
45805 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
45806 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
b3ded179
PB
45807 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45808 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45809 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45810 else \
45811 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45812 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45813 fi; \
45814 else \
45815 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
45816 fi; \
45817 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
22121df0 45818 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
1f53ca9a 45819 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
45820 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
45821 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
45822 case $(srcdir) in \
45823 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45824 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45825 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45826 esac; \
1b6c0831 45827 module_srcdir=libgomp; \
b3ded179 45828 rm -f no-such-file || : ; \
1b6c0831
L
45829 CONFIG_SITE=no-such-file $(SHELL) \
45830 $$s/$$module_srcdir/configure \
45831 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45832 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45833 --target=${target_alias} \
b3ded179
PB
45834 || exit 1
45835@endif target-libgomp
45836
45837
45838
911e63d0
JR
45839.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
45840maybe-configure-stage1-target-libgomp:
45841@if target-libgomp-bootstrap
45842maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
45843configure-stage1-target-libgomp:
45844 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
45845 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45846 @r=`${PWD_COMMAND}`; export r; \
45847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45848 TFLAGS="$(STAGE1_TFLAGS)"; \
45849 echo "Checking multilib configuration for libgomp..."; \
22121df0 45850 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45851 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45852 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45853 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45854 else \
45855 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45856 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45857 fi; \
45858 else \
45859 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45860 fi; \
45861 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45862 $(NORMAL_TARGET_EXPORTS) \
45863 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45864 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45865 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45866 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp; \
45867 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
45868 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45869 case $(srcdir) in \
45870 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45871 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45872 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45873 esac; \
1b6c0831
L
45874 module_srcdir=libgomp; \
45875 $(SHELL) $$s/$$module_srcdir/configure \
45876 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45877 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45878 --target=${target_alias} \
45879 \
911e63d0
JR
45880 $(STAGE1_CONFIGURE_FLAGS)
45881@endif target-libgomp-bootstrap
45882
45883.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
45884maybe-configure-stage2-target-libgomp:
45885@if target-libgomp-bootstrap
45886maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
45887configure-stage2-target-libgomp:
45888 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
45889 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45890 @r=`${PWD_COMMAND}`; export r; \
45891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45892 TFLAGS="$(STAGE2_TFLAGS)"; \
45893 echo "Checking multilib configuration for libgomp..."; \
22121df0 45894 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45895 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45896 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45897 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45898 else \
45899 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45900 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45901 fi; \
45902 else \
45903 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45904 fi; \
45905 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45906 $(NORMAL_TARGET_EXPORTS) \
45907 \
45908 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45909 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45910 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45911 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp; \
45912 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
45913 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45914 case $(srcdir) in \
45915 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45916 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45917 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45918 esac; \
1b6c0831
L
45919 module_srcdir=libgomp; \
45920 $(SHELL) $$s/$$module_srcdir/configure \
45921 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45922 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45923 --target=${target_alias} \
22121df0 45924 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45925 $(STAGE2_CONFIGURE_FLAGS)
45926@endif target-libgomp-bootstrap
45927
45928.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
45929maybe-configure-stage3-target-libgomp:
45930@if target-libgomp-bootstrap
45931maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
45932configure-stage3-target-libgomp:
45933 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
45934 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45935 @r=`${PWD_COMMAND}`; export r; \
45936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45937 TFLAGS="$(STAGE3_TFLAGS)"; \
45938 echo "Checking multilib configuration for libgomp..."; \
22121df0 45939 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45940 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45941 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45942 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45943 else \
45944 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45945 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45946 fi; \
45947 else \
45948 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45949 fi; \
45950 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45951 $(NORMAL_TARGET_EXPORTS) \
45952 \
45953 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45954 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45955 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45956 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp; \
45957 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
45958 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45959 case $(srcdir) in \
45960 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45961 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45962 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45963 esac; \
1b6c0831
L
45964 module_srcdir=libgomp; \
45965 $(SHELL) $$s/$$module_srcdir/configure \
45966 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45967 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45968 --target=${target_alias} \
22121df0 45969 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
45970 $(STAGE3_CONFIGURE_FLAGS)
45971@endif target-libgomp-bootstrap
45972
45973.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
45974maybe-configure-stage4-target-libgomp:
45975@if target-libgomp-bootstrap
45976maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
45977configure-stage4-target-libgomp:
45978 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
45979 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45980 @r=`${PWD_COMMAND}`; export r; \
45981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45982 TFLAGS="$(STAGE4_TFLAGS)"; \
45983 echo "Checking multilib configuration for libgomp..."; \
22121df0 45984 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45985 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45986 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45987 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45988 else \
45989 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45990 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45991 fi; \
45992 else \
45993 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45994 fi; \
45995 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45996 $(NORMAL_TARGET_EXPORTS) \
45997 \
45998 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45999 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46000 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46001 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp; \
46002 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46003 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46004 case $(srcdir) in \
46005 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46006 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46007 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46008 esac; \
1b6c0831
L
46009 module_srcdir=libgomp; \
46010 $(SHELL) $$s/$$module_srcdir/configure \
46011 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46012 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46013 --target=${target_alias} \
22121df0 46014 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46015 $(STAGE4_CONFIGURE_FLAGS)
46016@endif target-libgomp-bootstrap
46017
46018.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
46019maybe-configure-stageprofile-target-libgomp:
46020@if target-libgomp-bootstrap
46021maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
46022configure-stageprofile-target-libgomp:
46023 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
46024 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46025 @r=`${PWD_COMMAND}`; export r; \
46026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46027 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46028 echo "Checking multilib configuration for libgomp..."; \
22121df0 46029 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46030 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46031 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46032 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46033 else \
46034 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46035 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46036 fi; \
46037 else \
46038 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46039 fi; \
46040 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46041 $(NORMAL_TARGET_EXPORTS) \
46042 \
46043 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46044 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46045 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46046 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp; \
46047 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46048 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46049 case $(srcdir) in \
46050 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46051 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46052 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46053 esac; \
1b6c0831
L
46054 module_srcdir=libgomp; \
46055 $(SHELL) $$s/$$module_srcdir/configure \
46056 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46057 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46058 --target=${target_alias} \
22121df0 46059 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46060 $(STAGEprofile_CONFIGURE_FLAGS)
46061@endif target-libgomp-bootstrap
46062
46063.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
46064maybe-configure-stagefeedback-target-libgomp:
46065@if target-libgomp-bootstrap
46066maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
46067configure-stagefeedback-target-libgomp:
46068 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
46069 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46070 @r=`${PWD_COMMAND}`; export r; \
46071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46072 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46073 echo "Checking multilib configuration for libgomp..."; \
22121df0 46074 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46075 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46076 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46077 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46078 else \
46079 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46080 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46081 fi; \
46082 else \
46083 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46084 fi; \
46085 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46086 $(NORMAL_TARGET_EXPORTS) \
46087 \
46088 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46089 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46090 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46091 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp; \
46092 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46093 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46094 case $(srcdir) in \
46095 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46096 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46097 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46098 esac; \
1b6c0831
L
46099 module_srcdir=libgomp; \
46100 $(SHELL) $$s/$$module_srcdir/configure \
46101 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46102 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46103 --target=${target_alias} \
22121df0 46104 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46105 $(STAGEfeedback_CONFIGURE_FLAGS)
46106@endif target-libgomp-bootstrap
46107
46108
46109
b3ded179
PB
46110
46111
46112.PHONY: all-target-libgomp maybe-all-target-libgomp
46113maybe-all-target-libgomp:
4f0ef2d8
CD
46114@if gcc-bootstrap
46115all-target-libgomp: stage_current
46116@endif gcc-bootstrap
b3ded179
PB
46117@if target-libgomp
46118TARGET-target-libgomp=all
46119maybe-all-target-libgomp: all-target-libgomp
46120all-target-libgomp: configure-target-libgomp
b3ded179
PB
46121 @r=`${PWD_COMMAND}`; export r; \
46122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46123 $(NORMAL_TARGET_EXPORTS) \
b3ded179 46124 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46125 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46126 $(TARGET-target-libgomp))
b3ded179
PB
46127@endif target-libgomp
46128
46129
46130
911e63d0
JR
46131.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
46132.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
46133maybe-all-stage1-target-libgomp:
46134maybe-clean-stage1-target-libgomp:
46135@if target-libgomp-bootstrap
46136maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
46137all-stage1: all-stage1-target-libgomp
46138TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
46139all-stage1-target-libgomp: configure-stage1-target-libgomp
46140 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
46141 @r=`${PWD_COMMAND}`; export r; \
46142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46143 TFLAGS="$(STAGE1_TFLAGS)"; \
46144 $(NORMAL_TARGET_EXPORTS) \
46145 cd $(TARGET_SUBDIR)/libgomp && \
46146 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46147 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46148 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46149 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46150 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46151 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46152 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
46153 $(EXTRA_TARGET_FLAGS) \
46154 \
911e63d0
JR
46155 TFLAGS="$(STAGE1_TFLAGS)" \
46156 $(TARGET-stage1-target-libgomp)
46157
46158maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
46159clean-stage1: clean-stage1-target-libgomp
46160clean-stage1-target-libgomp:
46161 @if [ $(current_stage) = stage1 ]; then \
46162 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46163 else \
46164 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
46165 $(MAKE) stage1-start; \
46166 fi; \
46167 cd $(TARGET_SUBDIR)/libgomp && \
46168 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 46169 clean
911e63d0
JR
46170@endif target-libgomp-bootstrap
46171
46172
46173.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
46174.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
46175maybe-all-stage2-target-libgomp:
46176maybe-clean-stage2-target-libgomp:
46177@if target-libgomp-bootstrap
46178maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
46179all-stage2: all-stage2-target-libgomp
46180TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
46181all-stage2-target-libgomp: configure-stage2-target-libgomp
46182 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
46183 @r=`${PWD_COMMAND}`; export r; \
46184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46185 TFLAGS="$(STAGE2_TFLAGS)"; \
46186 $(NORMAL_TARGET_EXPORTS) \
46187 \
46188 cd $(TARGET_SUBDIR)/libgomp && \
46189 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46190 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46191 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46192 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46193 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46194 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46195 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46196 $(EXTRA_TARGET_FLAGS) \
46197 TFLAGS="$(STAGE2_TFLAGS)" \
46198 $(TARGET-stage2-target-libgomp)
46199
46200maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
46201clean-stage2: clean-stage2-target-libgomp
46202clean-stage2-target-libgomp:
46203 @if [ $(current_stage) = stage2 ]; then \
46204 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46205 else \
46206 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
46207 $(MAKE) stage2-start; \
46208 fi; \
46209 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46210 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46211@endif target-libgomp-bootstrap
46212
46213
46214.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
46215.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
46216maybe-all-stage3-target-libgomp:
46217maybe-clean-stage3-target-libgomp:
46218@if target-libgomp-bootstrap
46219maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
46220all-stage3: all-stage3-target-libgomp
46221TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
46222all-stage3-target-libgomp: configure-stage3-target-libgomp
46223 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
46224 @r=`${PWD_COMMAND}`; export r; \
46225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46226 TFLAGS="$(STAGE3_TFLAGS)"; \
46227 $(NORMAL_TARGET_EXPORTS) \
46228 \
46229 cd $(TARGET_SUBDIR)/libgomp && \
46230 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46231 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46232 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46233 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46234 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46235 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46236 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46237 $(EXTRA_TARGET_FLAGS) \
46238 TFLAGS="$(STAGE3_TFLAGS)" \
46239 $(TARGET-stage3-target-libgomp)
46240
46241maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
46242clean-stage3: clean-stage3-target-libgomp
46243clean-stage3-target-libgomp:
46244 @if [ $(current_stage) = stage3 ]; then \
46245 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46246 else \
46247 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
46248 $(MAKE) stage3-start; \
46249 fi; \
46250 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46251 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46252@endif target-libgomp-bootstrap
46253
46254
46255.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
46256.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
46257maybe-all-stage4-target-libgomp:
46258maybe-clean-stage4-target-libgomp:
46259@if target-libgomp-bootstrap
46260maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
46261all-stage4: all-stage4-target-libgomp
46262TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
46263all-stage4-target-libgomp: configure-stage4-target-libgomp
46264 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
46265 @r=`${PWD_COMMAND}`; export r; \
46266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46267 TFLAGS="$(STAGE4_TFLAGS)"; \
46268 $(NORMAL_TARGET_EXPORTS) \
46269 \
46270 cd $(TARGET_SUBDIR)/libgomp && \
46271 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46272 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46273 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46274 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46275 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46276 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46277 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46278 $(EXTRA_TARGET_FLAGS) \
46279 TFLAGS="$(STAGE4_TFLAGS)" \
46280 $(TARGET-stage4-target-libgomp)
46281
46282maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
46283clean-stage4: clean-stage4-target-libgomp
46284clean-stage4-target-libgomp:
46285 @if [ $(current_stage) = stage4 ]; then \
46286 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46287 else \
46288 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
46289 $(MAKE) stage4-start; \
46290 fi; \
46291 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46292 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46293@endif target-libgomp-bootstrap
46294
46295
46296.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
46297.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
46298maybe-all-stageprofile-target-libgomp:
46299maybe-clean-stageprofile-target-libgomp:
46300@if target-libgomp-bootstrap
46301maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
46302all-stageprofile: all-stageprofile-target-libgomp
46303TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
46304all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
46305 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
46306 @r=`${PWD_COMMAND}`; export r; \
46307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46308 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46309 $(NORMAL_TARGET_EXPORTS) \
46310 \
46311 cd $(TARGET_SUBDIR)/libgomp && \
46312 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46313 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46314 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46315 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46316 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46317 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46318 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46319 $(EXTRA_TARGET_FLAGS) \
46320 TFLAGS="$(STAGEprofile_TFLAGS)" \
46321 $(TARGET-stageprofile-target-libgomp)
46322
46323maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
46324clean-stageprofile: clean-stageprofile-target-libgomp
46325clean-stageprofile-target-libgomp:
46326 @if [ $(current_stage) = stageprofile ]; then \
46327 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46328 else \
46329 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
46330 $(MAKE) stageprofile-start; \
46331 fi; \
46332 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46333 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46334@endif target-libgomp-bootstrap
46335
46336
46337.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
46338.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
46339maybe-all-stagefeedback-target-libgomp:
46340maybe-clean-stagefeedback-target-libgomp:
46341@if target-libgomp-bootstrap
46342maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
46343all-stagefeedback: all-stagefeedback-target-libgomp
46344TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
46345all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
46346 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
46347 @r=`${PWD_COMMAND}`; export r; \
46348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46349 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46350 $(NORMAL_TARGET_EXPORTS) \
46351 \
46352 cd $(TARGET_SUBDIR)/libgomp && \
46353 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46354 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46355 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46356 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46357 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46358 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46359 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46360 $(EXTRA_TARGET_FLAGS) \
46361 TFLAGS="$(STAGEfeedback_TFLAGS)" \
46362 $(TARGET-stagefeedback-target-libgomp)
46363
46364maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
46365clean-stagefeedback: clean-stagefeedback-target-libgomp
46366clean-stagefeedback-target-libgomp:
46367 @if [ $(current_stage) = stagefeedback ]; then \
46368 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46369 else \
46370 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
46371 $(MAKE) stagefeedback-start; \
46372 fi; \
46373 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46374 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46375@endif target-libgomp-bootstrap
46376
46377
46378
46379
b3ded179
PB
46380
46381
46382.PHONY: check-target-libgomp maybe-check-target-libgomp
46383maybe-check-target-libgomp:
46384@if target-libgomp
46385maybe-check-target-libgomp: check-target-libgomp
46386
46387check-target-libgomp:
46388 @: $(MAKE); $(unstage)
46389 @r=`${PWD_COMMAND}`; export r; \
46390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46391 $(NORMAL_TARGET_EXPORTS) \
46392 (cd $(TARGET_SUBDIR)/libgomp && \
46393 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46394
46395@endif target-libgomp
46396
46397.PHONY: install-target-libgomp maybe-install-target-libgomp
46398maybe-install-target-libgomp:
46399@if target-libgomp
46400maybe-install-target-libgomp: install-target-libgomp
46401
46402install-target-libgomp: installdirs
46403 @: $(MAKE); $(unstage)
46404 @r=`${PWD_COMMAND}`; export r; \
46405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46406 $(NORMAL_TARGET_EXPORTS) \
46407 (cd $(TARGET_SUBDIR)/libgomp && \
46408 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46409
46410@endif target-libgomp
46411
9b980aa1
RW
46412.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
46413maybe-install-strip-target-libgomp:
46414@if target-libgomp
46415maybe-install-strip-target-libgomp: install-strip-target-libgomp
46416
46417install-strip-target-libgomp: installdirs
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)/libgomp && \
46423 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46424
46425@endif target-libgomp
46426
56a8fe78 46427# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
46428
46429.PHONY: maybe-info-target-libgomp info-target-libgomp
46430maybe-info-target-libgomp:
46431@if target-libgomp
46432maybe-info-target-libgomp: info-target-libgomp
46433
46434info-target-libgomp: \
46435 configure-target-libgomp
46436 @: $(MAKE); $(unstage)
22121df0 46437 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46438 r=`${PWD_COMMAND}`; export r; \
46439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46440 $(NORMAL_TARGET_EXPORTS) \
22121df0 46441 echo "Doing info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46442 for flag in $(EXTRA_TARGET_FLAGS); do \
46443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46444 done; \
46445 (cd $(TARGET_SUBDIR)/libgomp && \
46446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46448 "RANLIB=$${RANLIB}" \
0c24b341 46449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46450 info) \
46451 || exit 1
46452
46453@endif target-libgomp
46454
46455.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
46456maybe-dvi-target-libgomp:
46457@if target-libgomp
46458maybe-dvi-target-libgomp: dvi-target-libgomp
46459
46460dvi-target-libgomp: \
46461 configure-target-libgomp
46462 @: $(MAKE); $(unstage)
22121df0 46463 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46464 r=`${PWD_COMMAND}`; export r; \
46465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46466 $(NORMAL_TARGET_EXPORTS) \
22121df0 46467 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46468 for flag in $(EXTRA_TARGET_FLAGS); do \
46469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46470 done; \
46471 (cd $(TARGET_SUBDIR)/libgomp && \
46472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46474 "RANLIB=$${RANLIB}" \
0c24b341 46475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46476 dvi) \
46477 || exit 1
46478
46479@endif target-libgomp
46480
56a8fe78
DD
46481.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
46482maybe-pdf-target-libgomp:
46483@if target-libgomp
46484maybe-pdf-target-libgomp: pdf-target-libgomp
46485
46486pdf-target-libgomp: \
46487 configure-target-libgomp
46488 @: $(MAKE); $(unstage)
22121df0 46489 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
56a8fe78
DD
46490 r=`${PWD_COMMAND}`; export r; \
46491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46492 $(NORMAL_TARGET_EXPORTS) \
22121df0 46493 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp"; \
56a8fe78
DD
46494 for flag in $(EXTRA_TARGET_FLAGS); do \
46495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46496 done; \
46497 (cd $(TARGET_SUBDIR)/libgomp && \
46498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46500 "RANLIB=$${RANLIB}" \
0c24b341 46501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46502 pdf) \
46503 || exit 1
46504
46505@endif target-libgomp
46506
b3ded179
PB
46507.PHONY: maybe-html-target-libgomp html-target-libgomp
46508maybe-html-target-libgomp:
46509@if target-libgomp
46510maybe-html-target-libgomp: html-target-libgomp
46511
46512html-target-libgomp: \
46513 configure-target-libgomp
46514 @: $(MAKE); $(unstage)
22121df0 46515 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46516 r=`${PWD_COMMAND}`; export r; \
46517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46518 $(NORMAL_TARGET_EXPORTS) \
22121df0 46519 echo "Doing html in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46520 for flag in $(EXTRA_TARGET_FLAGS); do \
46521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46522 done; \
46523 (cd $(TARGET_SUBDIR)/libgomp && \
46524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46526 "RANLIB=$${RANLIB}" \
0c24b341 46527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46528 html) \
46529 || exit 1
46530
46531@endif target-libgomp
46532
46533.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
46534maybe-TAGS-target-libgomp:
46535@if target-libgomp
46536maybe-TAGS-target-libgomp: TAGS-target-libgomp
46537
46538TAGS-target-libgomp: \
46539 configure-target-libgomp
46540 @: $(MAKE); $(unstage)
22121df0 46541 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46542 r=`${PWD_COMMAND}`; export r; \
46543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46544 $(NORMAL_TARGET_EXPORTS) \
22121df0 46545 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46546 for flag in $(EXTRA_TARGET_FLAGS); do \
46547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46548 done; \
46549 (cd $(TARGET_SUBDIR)/libgomp && \
46550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46552 "RANLIB=$${RANLIB}" \
0c24b341 46553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46554 TAGS) \
46555 || exit 1
46556
46557@endif target-libgomp
46558
46559.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
46560maybe-install-info-target-libgomp:
46561@if target-libgomp
46562maybe-install-info-target-libgomp: install-info-target-libgomp
46563
46564install-info-target-libgomp: \
46565 configure-target-libgomp \
46566 info-target-libgomp
46567 @: $(MAKE); $(unstage)
22121df0 46568 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46569 r=`${PWD_COMMAND}`; export r; \
46570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46571 $(NORMAL_TARGET_EXPORTS) \
22121df0 46572 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46573 for flag in $(EXTRA_TARGET_FLAGS); do \
46574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46575 done; \
46576 (cd $(TARGET_SUBDIR)/libgomp && \
46577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46579 "RANLIB=$${RANLIB}" \
0c24b341 46580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46581 install-info) \
46582 || exit 1
46583
46584@endif target-libgomp
46585
a3ca38d2
DD
46586.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
46587maybe-install-pdf-target-libgomp:
46588@if target-libgomp
46589maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
46590
46591install-pdf-target-libgomp: \
46592 configure-target-libgomp \
46593 pdf-target-libgomp
46594 @: $(MAKE); $(unstage)
22121df0 46595 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
a3ca38d2
DD
46596 r=`${PWD_COMMAND}`; export r; \
46597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46598 $(NORMAL_TARGET_EXPORTS) \
22121df0 46599 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp"; \
a3ca38d2
DD
46600 for flag in $(EXTRA_TARGET_FLAGS); do \
46601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46602 done; \
46603 (cd $(TARGET_SUBDIR)/libgomp && \
46604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46606 "RANLIB=$${RANLIB}" \
0c24b341 46607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46608 install-pdf) \
46609 || exit 1
46610
46611@endif target-libgomp
46612
108a6f8e
CD
46613.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
46614maybe-install-html-target-libgomp:
46615@if target-libgomp
46616maybe-install-html-target-libgomp: install-html-target-libgomp
46617
46618install-html-target-libgomp: \
46619 configure-target-libgomp \
46620 html-target-libgomp
46621 @: $(MAKE); $(unstage)
22121df0 46622 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
108a6f8e
CD
46623 r=`${PWD_COMMAND}`; export r; \
46624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46625 $(NORMAL_TARGET_EXPORTS) \
22121df0 46626 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp"; \
108a6f8e
CD
46627 for flag in $(EXTRA_TARGET_FLAGS); do \
46628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46629 done; \
46630 (cd $(TARGET_SUBDIR)/libgomp && \
46631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46633 "RANLIB=$${RANLIB}" \
0c24b341 46634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46635 install-html) \
46636 || exit 1
46637
46638@endif target-libgomp
46639
b3ded179
PB
46640.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
46641maybe-installcheck-target-libgomp:
46642@if target-libgomp
46643maybe-installcheck-target-libgomp: installcheck-target-libgomp
46644
46645installcheck-target-libgomp: \
46646 configure-target-libgomp
46647 @: $(MAKE); $(unstage)
22121df0 46648 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46649 r=`${PWD_COMMAND}`; export r; \
46650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46651 $(NORMAL_TARGET_EXPORTS) \
22121df0 46652 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46653 for flag in $(EXTRA_TARGET_FLAGS); do \
46654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46655 done; \
46656 (cd $(TARGET_SUBDIR)/libgomp && \
46657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46659 "RANLIB=$${RANLIB}" \
0c24b341 46660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46661 installcheck) \
46662 || exit 1
46663
46664@endif target-libgomp
46665
46666.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
46667maybe-mostlyclean-target-libgomp:
46668@if target-libgomp
46669maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
46670
46671mostlyclean-target-libgomp:
46672 @: $(MAKE); $(unstage)
22121df0 46673 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46674 r=`${PWD_COMMAND}`; export r; \
46675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46676 $(NORMAL_TARGET_EXPORTS) \
22121df0 46677 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46678 for flag in $(EXTRA_TARGET_FLAGS); do \
46679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46680 done; \
46681 (cd $(TARGET_SUBDIR)/libgomp && \
46682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46684 "RANLIB=$${RANLIB}" \
0c24b341 46685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46686 mostlyclean) \
46687 || exit 1
46688
46689@endif target-libgomp
46690
46691.PHONY: maybe-clean-target-libgomp clean-target-libgomp
46692maybe-clean-target-libgomp:
46693@if target-libgomp
46694maybe-clean-target-libgomp: clean-target-libgomp
46695
46696clean-target-libgomp:
46697 @: $(MAKE); $(unstage)
22121df0 46698 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46699 r=`${PWD_COMMAND}`; export r; \
46700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46701 $(NORMAL_TARGET_EXPORTS) \
22121df0 46702 echo "Doing clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46703 for flag in $(EXTRA_TARGET_FLAGS); do \
46704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46705 done; \
46706 (cd $(TARGET_SUBDIR)/libgomp && \
46707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46709 "RANLIB=$${RANLIB}" \
0c24b341 46710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46711 clean) \
46712 || exit 1
46713
46714@endif target-libgomp
46715
46716.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
46717maybe-distclean-target-libgomp:
46718@if target-libgomp
46719maybe-distclean-target-libgomp: distclean-target-libgomp
46720
46721distclean-target-libgomp:
46722 @: $(MAKE); $(unstage)
22121df0 46723 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46724 r=`${PWD_COMMAND}`; export r; \
46725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46726 $(NORMAL_TARGET_EXPORTS) \
22121df0 46727 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46728 for flag in $(EXTRA_TARGET_FLAGS); do \
46729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46730 done; \
46731 (cd $(TARGET_SUBDIR)/libgomp && \
46732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46734 "RANLIB=$${RANLIB}" \
0c24b341 46735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46736 distclean) \
46737 || exit 1
46738
46739@endif target-libgomp
46740
46741.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
46742maybe-maintainer-clean-target-libgomp:
46743@if target-libgomp
46744maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
46745
46746maintainer-clean-target-libgomp:
46747 @: $(MAKE); $(unstage)
22121df0 46748 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46749 r=`${PWD_COMMAND}`; export r; \
46750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46751 $(NORMAL_TARGET_EXPORTS) \
22121df0 46752 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46753 for flag in $(EXTRA_TARGET_FLAGS); do \
46754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46755 done; \
46756 (cd $(TARGET_SUBDIR)/libgomp && \
46757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46759 "RANLIB=$${RANLIB}" \
0c24b341 46760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46761 maintainer-clean) \
46762 || exit 1
46763
46764@endif target-libgomp
46765
46766
46767
7ec59b9e
L
46768
46769
46770.PHONY: configure-target-libitm maybe-configure-target-libitm
46771maybe-configure-target-libitm:
46772@if gcc-bootstrap
46773configure-target-libitm: stage_current
46774@endif gcc-bootstrap
46775@if target-libitm
46776maybe-configure-target-libitm: configure-target-libitm
46777configure-target-libitm:
46778 @: $(MAKE); $(unstage)
46779 @r=`${PWD_COMMAND}`; export r; \
46780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46781 echo "Checking multilib configuration for libitm..."; \
22121df0
L
46782 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
46783 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null; \
7ec59b9e
L
46784 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
46785 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
46786 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
46787 else \
46788 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
46789 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46790 fi; \
46791 else \
46792 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46793 fi; \
46794 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
22121df0 46795 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
7ec59b9e
L
46796 $(NORMAL_TARGET_EXPORTS) \
46797 echo Configuring in $(TARGET_SUBDIR)/libitm; \
46798 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
46799 case $(srcdir) in \
46800 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46801 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
46802 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46803 esac; \
1b6c0831 46804 module_srcdir=libitm; \
7ec59b9e 46805 rm -f no-such-file || : ; \
1b6c0831
L
46806 CONFIG_SITE=no-such-file $(SHELL) \
46807 $$s/$$module_srcdir/configure \
46808 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 46809 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46810 --target=${target_alias} \
7ec59b9e
L
46811 || exit 1
46812@endif target-libitm
46813
46814
46815
46816
46817
46818.PHONY: all-target-libitm maybe-all-target-libitm
46819maybe-all-target-libitm:
46820@if gcc-bootstrap
46821all-target-libitm: stage_current
46822@endif gcc-bootstrap
46823@if target-libitm
46824TARGET-target-libitm=all
46825maybe-all-target-libitm: all-target-libitm
46826all-target-libitm: configure-target-libitm
46827 @: $(MAKE); $(unstage)
46828 @r=`${PWD_COMMAND}`; export r; \
46829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46830 $(NORMAL_TARGET_EXPORTS) \
46831 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 46832 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
46833 $(TARGET-target-libitm))
46834@endif target-libitm
46835
46836
46837
46838
46839
46840.PHONY: check-target-libitm maybe-check-target-libitm
46841maybe-check-target-libitm:
46842@if target-libitm
46843maybe-check-target-libitm: check-target-libitm
46844
46845check-target-libitm:
46846 @: $(MAKE); $(unstage)
46847 @r=`${PWD_COMMAND}`; export r; \
46848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46849 $(NORMAL_TARGET_EXPORTS) \
46850 (cd $(TARGET_SUBDIR)/libitm && \
46851 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46852
46853@endif target-libitm
46854
46855.PHONY: install-target-libitm maybe-install-target-libitm
46856maybe-install-target-libitm:
46857@if target-libitm
46858maybe-install-target-libitm: install-target-libitm
46859
46860install-target-libitm: installdirs
46861 @: $(MAKE); $(unstage)
46862 @r=`${PWD_COMMAND}`; export r; \
46863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46864 $(NORMAL_TARGET_EXPORTS) \
46865 (cd $(TARGET_SUBDIR)/libitm && \
46866 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46867
46868@endif target-libitm
46869
46870.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
46871maybe-install-strip-target-libitm:
46872@if target-libitm
46873maybe-install-strip-target-libitm: install-strip-target-libitm
46874
46875install-strip-target-libitm: installdirs
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)/libitm && \
46881 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46882
46883@endif target-libitm
46884
46885# Other targets (info, dvi, pdf, etc.)
46886
46887.PHONY: maybe-info-target-libitm info-target-libitm
46888maybe-info-target-libitm:
46889@if target-libitm
46890maybe-info-target-libitm: info-target-libitm
46891
46892info-target-libitm: \
46893 configure-target-libitm
46894 @: $(MAKE); $(unstage)
22121df0 46895 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46896 r=`${PWD_COMMAND}`; export r; \
46897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46898 $(NORMAL_TARGET_EXPORTS) \
22121df0 46899 echo "Doing info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46900 for flag in $(EXTRA_TARGET_FLAGS); do \
46901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46902 done; \
46903 (cd $(TARGET_SUBDIR)/libitm && \
46904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46906 "RANLIB=$${RANLIB}" \
46907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46908 info) \
46909 || exit 1
46910
46911@endif target-libitm
46912
46913.PHONY: maybe-dvi-target-libitm dvi-target-libitm
46914maybe-dvi-target-libitm:
46915@if target-libitm
46916maybe-dvi-target-libitm: dvi-target-libitm
46917
46918dvi-target-libitm: \
46919 configure-target-libitm
46920 @: $(MAKE); $(unstage)
22121df0 46921 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46922 r=`${PWD_COMMAND}`; export r; \
46923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46924 $(NORMAL_TARGET_EXPORTS) \
22121df0 46925 echo "Doing dvi in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46926 for flag in $(EXTRA_TARGET_FLAGS); do \
46927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46928 done; \
46929 (cd $(TARGET_SUBDIR)/libitm && \
46930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46932 "RANLIB=$${RANLIB}" \
46933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46934 dvi) \
46935 || exit 1
46936
46937@endif target-libitm
46938
46939.PHONY: maybe-pdf-target-libitm pdf-target-libitm
46940maybe-pdf-target-libitm:
46941@if target-libitm
46942maybe-pdf-target-libitm: pdf-target-libitm
46943
46944pdf-target-libitm: \
46945 configure-target-libitm
46946 @: $(MAKE); $(unstage)
22121df0 46947 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46948 r=`${PWD_COMMAND}`; export r; \
46949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46950 $(NORMAL_TARGET_EXPORTS) \
22121df0 46951 echo "Doing pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46952 for flag in $(EXTRA_TARGET_FLAGS); do \
46953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46954 done; \
46955 (cd $(TARGET_SUBDIR)/libitm && \
46956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46958 "RANLIB=$${RANLIB}" \
46959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46960 pdf) \
46961 || exit 1
46962
46963@endif target-libitm
46964
46965.PHONY: maybe-html-target-libitm html-target-libitm
46966maybe-html-target-libitm:
46967@if target-libitm
46968maybe-html-target-libitm: html-target-libitm
46969
46970html-target-libitm: \
46971 configure-target-libitm
46972 @: $(MAKE); $(unstage)
22121df0 46973 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
46974 r=`${PWD_COMMAND}`; export r; \
46975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46976 $(NORMAL_TARGET_EXPORTS) \
22121df0 46977 echo "Doing html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
46978 for flag in $(EXTRA_TARGET_FLAGS); do \
46979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46980 done; \
46981 (cd $(TARGET_SUBDIR)/libitm && \
46982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46984 "RANLIB=$${RANLIB}" \
46985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46986 html) \
46987 || exit 1
46988
46989@endif target-libitm
46990
46991.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
46992maybe-TAGS-target-libitm:
46993@if target-libitm
46994maybe-TAGS-target-libitm: TAGS-target-libitm
46995
46996TAGS-target-libitm: \
46997 configure-target-libitm
46998 @: $(MAKE); $(unstage)
22121df0 46999 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47000 r=`${PWD_COMMAND}`; export r; \
47001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47002 $(NORMAL_TARGET_EXPORTS) \
22121df0 47003 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47004 for flag in $(EXTRA_TARGET_FLAGS); do \
47005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47006 done; \
47007 (cd $(TARGET_SUBDIR)/libitm && \
47008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47010 "RANLIB=$${RANLIB}" \
47011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47012 TAGS) \
47013 || exit 1
47014
47015@endif target-libitm
47016
47017.PHONY: maybe-install-info-target-libitm install-info-target-libitm
47018maybe-install-info-target-libitm:
47019@if target-libitm
47020maybe-install-info-target-libitm: install-info-target-libitm
47021
47022install-info-target-libitm: \
47023 configure-target-libitm \
47024 info-target-libitm
47025 @: $(MAKE); $(unstage)
22121df0 47026 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47027 r=`${PWD_COMMAND}`; export r; \
47028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47029 $(NORMAL_TARGET_EXPORTS) \
22121df0 47030 echo "Doing install-info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47031 for flag in $(EXTRA_TARGET_FLAGS); do \
47032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47033 done; \
47034 (cd $(TARGET_SUBDIR)/libitm && \
47035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47037 "RANLIB=$${RANLIB}" \
47038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47039 install-info) \
47040 || exit 1
47041
47042@endif target-libitm
47043
47044.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
47045maybe-install-pdf-target-libitm:
47046@if target-libitm
47047maybe-install-pdf-target-libitm: install-pdf-target-libitm
47048
47049install-pdf-target-libitm: \
47050 configure-target-libitm \
47051 pdf-target-libitm
47052 @: $(MAKE); $(unstage)
22121df0 47053 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47054 r=`${PWD_COMMAND}`; export r; \
47055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47056 $(NORMAL_TARGET_EXPORTS) \
22121df0 47057 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47058 for flag in $(EXTRA_TARGET_FLAGS); do \
47059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47060 done; \
47061 (cd $(TARGET_SUBDIR)/libitm && \
47062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47064 "RANLIB=$${RANLIB}" \
47065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47066 install-pdf) \
47067 || exit 1
47068
47069@endif target-libitm
47070
47071.PHONY: maybe-install-html-target-libitm install-html-target-libitm
47072maybe-install-html-target-libitm:
47073@if target-libitm
47074maybe-install-html-target-libitm: install-html-target-libitm
47075
47076install-html-target-libitm: \
47077 configure-target-libitm \
47078 html-target-libitm
47079 @: $(MAKE); $(unstage)
22121df0 47080 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47081 r=`${PWD_COMMAND}`; export r; \
47082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47083 $(NORMAL_TARGET_EXPORTS) \
22121df0 47084 echo "Doing install-html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47085 for flag in $(EXTRA_TARGET_FLAGS); do \
47086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47087 done; \
47088 (cd $(TARGET_SUBDIR)/libitm && \
47089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47091 "RANLIB=$${RANLIB}" \
47092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47093 install-html) \
47094 || exit 1
47095
47096@endif target-libitm
47097
47098.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
47099maybe-installcheck-target-libitm:
47100@if target-libitm
47101maybe-installcheck-target-libitm: installcheck-target-libitm
47102
47103installcheck-target-libitm: \
47104 configure-target-libitm
47105 @: $(MAKE); $(unstage)
22121df0 47106 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47107 r=`${PWD_COMMAND}`; export r; \
47108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47109 $(NORMAL_TARGET_EXPORTS) \
22121df0 47110 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47111 for flag in $(EXTRA_TARGET_FLAGS); do \
47112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47113 done; \
47114 (cd $(TARGET_SUBDIR)/libitm && \
47115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47117 "RANLIB=$${RANLIB}" \
47118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47119 installcheck) \
47120 || exit 1
47121
47122@endif target-libitm
47123
47124.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
47125maybe-mostlyclean-target-libitm:
47126@if target-libitm
47127maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
47128
47129mostlyclean-target-libitm:
47130 @: $(MAKE); $(unstage)
22121df0 47131 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47132 r=`${PWD_COMMAND}`; export r; \
47133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47134 $(NORMAL_TARGET_EXPORTS) \
22121df0 47135 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47136 for flag in $(EXTRA_TARGET_FLAGS); do \
47137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47138 done; \
47139 (cd $(TARGET_SUBDIR)/libitm && \
47140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47142 "RANLIB=$${RANLIB}" \
47143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47144 mostlyclean) \
47145 || exit 1
47146
47147@endif target-libitm
47148
47149.PHONY: maybe-clean-target-libitm clean-target-libitm
47150maybe-clean-target-libitm:
47151@if target-libitm
47152maybe-clean-target-libitm: clean-target-libitm
47153
47154clean-target-libitm:
47155 @: $(MAKE); $(unstage)
22121df0 47156 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47157 r=`${PWD_COMMAND}`; export r; \
47158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47159 $(NORMAL_TARGET_EXPORTS) \
22121df0 47160 echo "Doing clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47161 for flag in $(EXTRA_TARGET_FLAGS); do \
47162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47163 done; \
47164 (cd $(TARGET_SUBDIR)/libitm && \
47165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47167 "RANLIB=$${RANLIB}" \
47168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47169 clean) \
47170 || exit 1
47171
47172@endif target-libitm
47173
47174.PHONY: maybe-distclean-target-libitm distclean-target-libitm
47175maybe-distclean-target-libitm:
47176@if target-libitm
47177maybe-distclean-target-libitm: distclean-target-libitm
47178
47179distclean-target-libitm:
47180 @: $(MAKE); $(unstage)
22121df0 47181 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47182 r=`${PWD_COMMAND}`; export r; \
47183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47184 $(NORMAL_TARGET_EXPORTS) \
22121df0 47185 echo "Doing distclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47186 for flag in $(EXTRA_TARGET_FLAGS); do \
47187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47188 done; \
47189 (cd $(TARGET_SUBDIR)/libitm && \
47190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47192 "RANLIB=$${RANLIB}" \
47193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47194 distclean) \
47195 || exit 1
47196
47197@endif target-libitm
47198
47199.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
47200maybe-maintainer-clean-target-libitm:
47201@if target-libitm
47202maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
47203
47204maintainer-clean-target-libitm:
47205 @: $(MAKE); $(unstage)
22121df0 47206 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47207 r=`${PWD_COMMAND}`; export r; \
47208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47209 $(NORMAL_TARGET_EXPORTS) \
22121df0 47210 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47211 for flag in $(EXTRA_TARGET_FLAGS); do \
47212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47213 done; \
47214 (cd $(TARGET_SUBDIR)/libitm && \
47215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47217 "RANLIB=$${RANLIB}" \
47218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47219 maintainer-clean) \
47220 || exit 1
47221
47222@endif target-libitm
47223
47224
47225
47226
47227
47228.PHONY: configure-target-libatomic maybe-configure-target-libatomic
47229maybe-configure-target-libatomic:
47230@if gcc-bootstrap
47231configure-target-libatomic: stage_current
47232@endif gcc-bootstrap
47233@if target-libatomic
47234maybe-configure-target-libatomic: configure-target-libatomic
47235configure-target-libatomic:
47236 @: $(MAKE); $(unstage)
47237 @r=`${PWD_COMMAND}`; export r; \
47238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47239 echo "Checking multilib configuration for libatomic..."; \
22121df0
L
47240 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
47241 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null; \
7ec59b9e
L
47242 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
47243 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
47244 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
47245 else \
47246 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
47247 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
47248 fi; \
47249 else \
47250 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
47251 fi; \
47252 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
22121df0 47253 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
7ec59b9e
L
47254 $(NORMAL_TARGET_EXPORTS) \
47255 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
47256 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
47257 case $(srcdir) in \
47258 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47259 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
47260 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47261 esac; \
1b6c0831 47262 module_srcdir=libatomic; \
7ec59b9e 47263 rm -f no-such-file || : ; \
1b6c0831
L
47264 CONFIG_SITE=no-such-file $(SHELL) \
47265 $$s/$$module_srcdir/configure \
47266 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 47267 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47268 --target=${target_alias} \
7ec59b9e
L
47269 || exit 1
47270@endif target-libatomic
47271
47272
47273
47274
47275
47276.PHONY: all-target-libatomic maybe-all-target-libatomic
47277maybe-all-target-libatomic:
47278@if gcc-bootstrap
47279all-target-libatomic: stage_current
47280@endif gcc-bootstrap
47281@if target-libatomic
47282TARGET-target-libatomic=all
47283maybe-all-target-libatomic: all-target-libatomic
47284all-target-libatomic: configure-target-libatomic
47285 @: $(MAKE); $(unstage)
47286 @r=`${PWD_COMMAND}`; export r; \
47287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47288 $(NORMAL_TARGET_EXPORTS) \
47289 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 47290 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
47291 $(TARGET-target-libatomic))
47292@endif target-libatomic
47293
47294
47295
47296
47297
47298.PHONY: check-target-libatomic maybe-check-target-libatomic
47299maybe-check-target-libatomic:
47300@if target-libatomic
47301maybe-check-target-libatomic: check-target-libatomic
47302
47303check-target-libatomic:
47304 @: $(MAKE); $(unstage)
47305 @r=`${PWD_COMMAND}`; export r; \
47306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47307 $(NORMAL_TARGET_EXPORTS) \
47308 (cd $(TARGET_SUBDIR)/libatomic && \
47309 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47310
47311@endif target-libatomic
47312
47313.PHONY: install-target-libatomic maybe-install-target-libatomic
47314maybe-install-target-libatomic:
47315@if target-libatomic
47316maybe-install-target-libatomic: install-target-libatomic
47317
47318install-target-libatomic: installdirs
47319 @: $(MAKE); $(unstage)
47320 @r=`${PWD_COMMAND}`; export r; \
47321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47322 $(NORMAL_TARGET_EXPORTS) \
47323 (cd $(TARGET_SUBDIR)/libatomic && \
47324 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47325
47326@endif target-libatomic
47327
47328.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
47329maybe-install-strip-target-libatomic:
47330@if target-libatomic
47331maybe-install-strip-target-libatomic: install-strip-target-libatomic
47332
47333install-strip-target-libatomic: installdirs
47334 @: $(MAKE); $(unstage)
47335 @r=`${PWD_COMMAND}`; export r; \
47336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47337 $(NORMAL_TARGET_EXPORTS) \
47338 (cd $(TARGET_SUBDIR)/libatomic && \
47339 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47340
47341@endif target-libatomic
47342
47343# Other targets (info, dvi, pdf, etc.)
47344
47345.PHONY: maybe-info-target-libatomic info-target-libatomic
47346maybe-info-target-libatomic:
47347@if target-libatomic
47348maybe-info-target-libatomic: info-target-libatomic
47349
47350info-target-libatomic: \
47351 configure-target-libatomic
47352 @: $(MAKE); $(unstage)
22121df0 47353 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47354 r=`${PWD_COMMAND}`; export r; \
47355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47356 $(NORMAL_TARGET_EXPORTS) \
22121df0 47357 echo "Doing info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47358 for flag in $(EXTRA_TARGET_FLAGS); do \
47359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47360 done; \
47361 (cd $(TARGET_SUBDIR)/libatomic && \
47362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47364 "RANLIB=$${RANLIB}" \
47365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47366 info) \
47367 || exit 1
47368
47369@endif target-libatomic
47370
47371.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
47372maybe-dvi-target-libatomic:
47373@if target-libatomic
47374maybe-dvi-target-libatomic: dvi-target-libatomic
47375
47376dvi-target-libatomic: \
47377 configure-target-libatomic
47378 @: $(MAKE); $(unstage)
22121df0 47379 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47380 r=`${PWD_COMMAND}`; export r; \
47381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47382 $(NORMAL_TARGET_EXPORTS) \
22121df0 47383 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47384 for flag in $(EXTRA_TARGET_FLAGS); do \
47385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47386 done; \
47387 (cd $(TARGET_SUBDIR)/libatomic && \
47388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47390 "RANLIB=$${RANLIB}" \
47391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47392 dvi) \
47393 || exit 1
47394
47395@endif target-libatomic
47396
47397.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
47398maybe-pdf-target-libatomic:
47399@if target-libatomic
47400maybe-pdf-target-libatomic: pdf-target-libatomic
47401
47402pdf-target-libatomic: \
47403 configure-target-libatomic
47404 @: $(MAKE); $(unstage)
22121df0 47405 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47406 r=`${PWD_COMMAND}`; export r; \
47407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47408 $(NORMAL_TARGET_EXPORTS) \
22121df0 47409 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47410 for flag in $(EXTRA_TARGET_FLAGS); do \
47411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47412 done; \
47413 (cd $(TARGET_SUBDIR)/libatomic && \
47414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47416 "RANLIB=$${RANLIB}" \
47417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47418 pdf) \
47419 || exit 1
47420
47421@endif target-libatomic
47422
47423.PHONY: maybe-html-target-libatomic html-target-libatomic
47424maybe-html-target-libatomic:
47425@if target-libatomic
47426maybe-html-target-libatomic: html-target-libatomic
47427
47428html-target-libatomic: \
47429 configure-target-libatomic
47430 @: $(MAKE); $(unstage)
22121df0 47431 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47432 r=`${PWD_COMMAND}`; export r; \
47433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47434 $(NORMAL_TARGET_EXPORTS) \
22121df0 47435 echo "Doing html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47436 for flag in $(EXTRA_TARGET_FLAGS); do \
47437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47438 done; \
47439 (cd $(TARGET_SUBDIR)/libatomic && \
47440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47442 "RANLIB=$${RANLIB}" \
47443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47444 html) \
47445 || exit 1
47446
47447@endif target-libatomic
47448
47449.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
47450maybe-TAGS-target-libatomic:
47451@if target-libatomic
47452maybe-TAGS-target-libatomic: TAGS-target-libatomic
47453
47454TAGS-target-libatomic: \
47455 configure-target-libatomic
47456 @: $(MAKE); $(unstage)
22121df0 47457 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47458 r=`${PWD_COMMAND}`; export r; \
47459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47460 $(NORMAL_TARGET_EXPORTS) \
22121df0 47461 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47462 for flag in $(EXTRA_TARGET_FLAGS); do \
47463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47464 done; \
47465 (cd $(TARGET_SUBDIR)/libatomic && \
47466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47468 "RANLIB=$${RANLIB}" \
47469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47470 TAGS) \
47471 || exit 1
47472
47473@endif target-libatomic
47474
47475.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
47476maybe-install-info-target-libatomic:
47477@if target-libatomic
47478maybe-install-info-target-libatomic: install-info-target-libatomic
47479
47480install-info-target-libatomic: \
47481 configure-target-libatomic \
47482 info-target-libatomic
47483 @: $(MAKE); $(unstage)
22121df0 47484 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47485 r=`${PWD_COMMAND}`; export r; \
47486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47487 $(NORMAL_TARGET_EXPORTS) \
22121df0 47488 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47489 for flag in $(EXTRA_TARGET_FLAGS); do \
47490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47491 done; \
47492 (cd $(TARGET_SUBDIR)/libatomic && \
47493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47495 "RANLIB=$${RANLIB}" \
47496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47497 install-info) \
47498 || exit 1
47499
47500@endif target-libatomic
47501
47502.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
47503maybe-install-pdf-target-libatomic:
47504@if target-libatomic
47505maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
47506
47507install-pdf-target-libatomic: \
47508 configure-target-libatomic \
47509 pdf-target-libatomic
47510 @: $(MAKE); $(unstage)
22121df0 47511 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47512 r=`${PWD_COMMAND}`; export r; \
47513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47514 $(NORMAL_TARGET_EXPORTS) \
22121df0 47515 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47516 for flag in $(EXTRA_TARGET_FLAGS); do \
47517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47518 done; \
47519 (cd $(TARGET_SUBDIR)/libatomic && \
47520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47522 "RANLIB=$${RANLIB}" \
47523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47524 install-pdf) \
47525 || exit 1
47526
47527@endif target-libatomic
47528
47529.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
47530maybe-install-html-target-libatomic:
47531@if target-libatomic
47532maybe-install-html-target-libatomic: install-html-target-libatomic
47533
47534install-html-target-libatomic: \
47535 configure-target-libatomic \
47536 html-target-libatomic
47537 @: $(MAKE); $(unstage)
22121df0 47538 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47539 r=`${PWD_COMMAND}`; export r; \
47540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47541 $(NORMAL_TARGET_EXPORTS) \
22121df0 47542 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47543 for flag in $(EXTRA_TARGET_FLAGS); do \
47544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47545 done; \
47546 (cd $(TARGET_SUBDIR)/libatomic && \
47547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47549 "RANLIB=$${RANLIB}" \
47550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47551 install-html) \
47552 || exit 1
47553
47554@endif target-libatomic
47555
47556.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
47557maybe-installcheck-target-libatomic:
47558@if target-libatomic
47559maybe-installcheck-target-libatomic: installcheck-target-libatomic
47560
47561installcheck-target-libatomic: \
47562 configure-target-libatomic
47563 @: $(MAKE); $(unstage)
22121df0 47564 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47565 r=`${PWD_COMMAND}`; export r; \
47566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47567 $(NORMAL_TARGET_EXPORTS) \
22121df0 47568 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47569 for flag in $(EXTRA_TARGET_FLAGS); do \
47570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47571 done; \
47572 (cd $(TARGET_SUBDIR)/libatomic && \
47573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47575 "RANLIB=$${RANLIB}" \
47576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47577 installcheck) \
47578 || exit 1
47579
47580@endif target-libatomic
47581
47582.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
47583maybe-mostlyclean-target-libatomic:
47584@if target-libatomic
47585maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
47586
47587mostlyclean-target-libatomic:
47588 @: $(MAKE); $(unstage)
22121df0 47589 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47590 r=`${PWD_COMMAND}`; export r; \
47591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47592 $(NORMAL_TARGET_EXPORTS) \
22121df0 47593 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47594 for flag in $(EXTRA_TARGET_FLAGS); do \
47595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47596 done; \
47597 (cd $(TARGET_SUBDIR)/libatomic && \
47598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47600 "RANLIB=$${RANLIB}" \
47601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47602 mostlyclean) \
47603 || exit 1
47604
47605@endif target-libatomic
47606
47607.PHONY: maybe-clean-target-libatomic clean-target-libatomic
47608maybe-clean-target-libatomic:
47609@if target-libatomic
47610maybe-clean-target-libatomic: clean-target-libatomic
47611
47612clean-target-libatomic:
47613 @: $(MAKE); $(unstage)
22121df0 47614 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47615 r=`${PWD_COMMAND}`; export r; \
47616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47617 $(NORMAL_TARGET_EXPORTS) \
22121df0 47618 echo "Doing clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47619 for flag in $(EXTRA_TARGET_FLAGS); do \
47620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47621 done; \
47622 (cd $(TARGET_SUBDIR)/libatomic && \
47623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47625 "RANLIB=$${RANLIB}" \
47626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47627 clean) \
47628 || exit 1
47629
47630@endif target-libatomic
47631
47632.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
47633maybe-distclean-target-libatomic:
47634@if target-libatomic
47635maybe-distclean-target-libatomic: distclean-target-libatomic
47636
47637distclean-target-libatomic:
47638 @: $(MAKE); $(unstage)
22121df0 47639 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47640 r=`${PWD_COMMAND}`; export r; \
47641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47642 $(NORMAL_TARGET_EXPORTS) \
22121df0 47643 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47644 for flag in $(EXTRA_TARGET_FLAGS); do \
47645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47646 done; \
47647 (cd $(TARGET_SUBDIR)/libatomic && \
47648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47650 "RANLIB=$${RANLIB}" \
47651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47652 distclean) \
47653 || exit 1
47654
47655@endif target-libatomic
47656
47657.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
47658maybe-maintainer-clean-target-libatomic:
47659@if target-libatomic
47660maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
47661
47662maintainer-clean-target-libatomic:
47663 @: $(MAKE); $(unstage)
22121df0 47664 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47665 r=`${PWD_COMMAND}`; export r; \
47666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47667 $(NORMAL_TARGET_EXPORTS) \
22121df0 47668 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47669 for flag in $(EXTRA_TARGET_FLAGS); do \
47670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47671 done; \
47672 (cd $(TARGET_SUBDIR)/libatomic && \
47673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47675 "RANLIB=$${RANLIB}" \
47676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47677 maintainer-clean) \
47678 || exit 1
47679
47680@endif target-libatomic
47681
47682
47683
7ec59b9e
L
47684@if target-libgomp
47685.PHONY: check-target-libgomp-c++
47686check-target-libgomp-c++:
47687 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
47688
47689@endif target-libgomp
47690
47691@if target-libitm
47692.PHONY: check-target-libitm-c++
47693check-target-libitm-c++:
47694 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
47695
47696@endif target-libitm
47697
15723a45
NN
47698# ----------
47699# GCC module
47700# ----------
47701
319cab08 47702@if gcc-no-bootstrap
252b5132 47703.PHONY: cross
72b2455a 47704cross: all-build all-gas all-ld
b40e3958
L
47705 @r=`${PWD_COMMAND}`; export r; \
47706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47707 $(HOST_EXPORTS) \
252b5132 47708 echo "Building the C and C++ compiler"; \
5cec67bf 47709 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958 47710 @r=`${PWD_COMMAND}`; export r; \
22121df0 47711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132 47712 echo "Building runtime libraries"; \
656fdd47 47713 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 47714@endif gcc-no-bootstrap
252b5132 47715
6bd3dfaa 47716@if gcc
c50523ce
L
47717
47718.PHONY: check-gcc-c check-c
47719check-gcc-c:
47720 r=`${PWD_COMMAND}`; export r; \
47721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47722 $(HOST_EXPORTS) \
47723 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
47724check-c: check-gcc-c
47725
47726.PHONY: check-gcc-c++ check-c++
7d695d07 47727check-gcc-c++:
c50523ce
L
47728 r=`${PWD_COMMAND}`; export r; \
47729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47730 $(HOST_EXPORTS) \
7ec59b9e 47731 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 47732check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
47733
47734.PHONY: check-gcc-fortran check-fortran
47735check-gcc-fortran:
47736 r=`${PWD_COMMAND}`; export r; \
47737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47738 $(HOST_EXPORTS) \
47739 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e552509b 47740check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran
c50523ce
L
47741
47742.PHONY: check-gcc-java check-java
47743check-gcc-java:
47744 r=`${PWD_COMMAND}`; export r; \
47745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47746 $(HOST_EXPORTS) \
47747 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-java);
47748check-java: check-gcc-java check-target-libjava
47749
47750.PHONY: check-gcc-ada check-ada
47751check-gcc-ada:
47752 r=`${PWD_COMMAND}`; export r; \
47753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47754 $(HOST_EXPORTS) \
47755 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
47756check-ada: check-gcc-ada check-target-libada
47757
47758.PHONY: check-gcc-objc check-objc
47759check-gcc-objc:
47760 r=`${PWD_COMMAND}`; export r; \
47761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47762 $(HOST_EXPORTS) \
47763 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
47764check-objc: check-gcc-objc check-target-libobjc
47765
47766.PHONY: check-gcc-obj-c++ check-obj-c++
47767check-gcc-obj-c++:
47768 r=`${PWD_COMMAND}`; export r; \
47769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47770 $(HOST_EXPORTS) \
47771 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
47772check-obj-c++: check-gcc-obj-c++
7d695d07 47773
e552509b
ILT
47774.PHONY: check-gcc-go check-go
47775check-gcc-go:
47776 r=`${PWD_COMMAND}`; export r; \
47777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47778 $(HOST_EXPORTS) \
47779 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
47780check-go: check-gcc-go check-target-libgo
47781
252b5132 47782
7ec59b9e
L
47783# The gcc part of install-no-fixedincludes, which relies on an intimate
47784# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
47785.PHONY: gcc-install-no-fixedincludes
47786gcc-install-no-fixedincludes:
15723a45 47787 @if [ -f ./gcc/Makefile ]; then \
b40e3958 47788 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 47789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47790 $(HOST_EXPORTS) \
7ec59b9e
L
47791 (cd ./gcc \
47792 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 47793 else true; fi
6bd3dfaa 47794@endif gcc
4fa63067 47795
b813574b
PB
47796# ---------------------
47797# GCC bootstrap support
47798# ---------------------
4fa63067 47799
b813574b
PB
47800# We track the current stage (the one in 'gcc') in the stage_current file.
47801# stage_last instead tracks the stage that was built last. These targets
47802# are dummy when toplevel bootstrap is not active.
4fa63067 47803
f70224b5 47804# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
47805# there, so $(unstage) should be run at various points. To avoid excessive
47806# recursive invocations of make, we "inline" them using a variable. These
47807# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
47808# to avoid warnings from the GNU Make job server.
f70224b5
PB
47809
47810unstage = :
47811stage = :
c52c6897 47812current_stage = ""
f70224b5 47813
b813574b 47814@if gcc-bootstrap
9daf3993 47815unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 47816stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 47817current_stage = "`cat stage_current 2> /dev/null`"
b813574b 47818@endif gcc-bootstrap
4fa63067 47819
f70224b5
PB
47820.PHONY: unstage stage
47821unstage:
0aed8855 47822 @: $(MAKE); $(unstage)
b813574b 47823stage:
0aed8855 47824 @: $(MAKE); $(stage)
1d39f329 47825
80911fe1
PB
47826# Disable commands for lean bootstrap.
47827LEAN = false
47828
dfdffa2c
PB
47829# We name the build directories for the various stages "stage1-gcc",
47830# "stage2-gcc","stage3-gcc", etc.
47831
47832# Since the 'compare' process will fail (on debugging information) if any
47833# directory names are different, we need to link the gcc directory for
0aed8855 47834# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
47835# the build directories constant as well. For the latter, we use naked names
47836# like 'gcc', because the scripts in that directory assume it. We use
47837# mv on platforms where symlinks to directories do not work or are not
47838# reliable.
47839
1d39f329
NN
47840# 'touch' doesn't work right on some platforms.
47841STAMP = echo timestamp >
47842
dfdffa2c
PB
47843# We only want to compare .o files, so set this!
47844objext = .o
47845
dfdffa2c 47846
319cab08 47847.PHONY: stage1-start stage1-end
dfdffa2c 47848
656fdd47 47849stage1-start::
0aed8855 47850 @: $(MAKE); $(stage); \
22121df0 47851 echo stage1 > stage_current; \
b00612cc 47852 echo stage1 > stage_last; \
0aed8855 47853 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 47854@if bfd
b00612cc
PB
47855 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
47856 mkdir stage1-bfd; \
22121df0 47857 mv stage1-bfd bfd
72b2455a
PB
47858@endif bfd
47859@if opcodes
b00612cc
PB
47860 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
47861 mkdir stage1-opcodes; \
22121df0 47862 mv stage1-opcodes opcodes
72b2455a
PB
47863@endif opcodes
47864@if binutils
b00612cc
PB
47865 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
47866 mkdir stage1-binutils; \
22121df0 47867 mv stage1-binutils binutils
72b2455a 47868@endif binutils
201f096f 47869@if fixincludes
47870 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
47871 mkdir stage1-fixincludes; \
22121df0 47872 mv stage1-fixincludes fixincludes
201f096f 47873@endif fixincludes
72b2455a 47874@if gas
b00612cc
PB
47875 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
47876 mkdir stage1-gas; \
22121df0 47877 mv stage1-gas gas
72b2455a
PB
47878@endif gas
47879@if gcc
b00612cc
PB
47880 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
47881 mkdir stage1-gcc; \
22121df0 47882 mv stage1-gcc gcc
72b2455a 47883@endif gcc
4b900473
PB
47884@if gmp
47885 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
47886 mkdir stage1-gmp; \
22121df0 47887 mv stage1-gmp gmp
4b900473
PB
47888@endif gmp
47889@if mpfr
47890 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
47891 mkdir stage1-mpfr; \
22121df0 47892 mv stage1-mpfr mpfr
4b900473 47893@endif mpfr
e8a5fa9c
RW
47894@if mpc
47895 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
47896 mkdir stage1-mpc; \
22121df0 47897 mv stage1-mpc mpc
e8a5fa9c 47898@endif mpc
7ec59b9e
L
47899@if isl
47900 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
47901 mkdir stage1-isl; \
22121df0 47902 mv stage1-isl isl
7ec59b9e 47903@endif isl
1f53ca9a
AO
47904@if libelf
47905 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
47906 mkdir stage1-libelf; \
22121df0 47907 mv stage1-libelf libelf
1f53ca9a 47908@endif libelf
93f9b408
ILT
47909@if gold
47910 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
47911 mkdir stage1-gold; \
22121df0 47912 mv stage1-gold gold
93f9b408 47913@endif gold
72b2455a 47914@if intl
b00612cc
PB
47915 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
47916 mkdir stage1-intl; \
22121df0 47917 mv stage1-intl intl
72b2455a
PB
47918@endif intl
47919@if ld
b00612cc
PB
47920 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
47921 mkdir stage1-ld; \
22121df0 47922 mv stage1-ld ld
72b2455a 47923@endif ld
2bf680c4
ILT
47924@if libbacktrace
47925 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
47926 mkdir stage1-libbacktrace; \
22121df0 47927 mv stage1-libbacktrace libbacktrace
2bf680c4 47928@endif libbacktrace
72b2455a 47929@if libcpp
b00612cc
PB
47930 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
47931 mkdir stage1-libcpp; \
22121df0 47932 mv stage1-libcpp libcpp
72b2455a 47933@endif libcpp
be01d343
PB
47934@if libdecnumber
47935 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
47936 mkdir stage1-libdecnumber; \
22121df0 47937 mv stage1-libdecnumber libdecnumber
be01d343 47938@endif libdecnumber
72b2455a 47939@if libiberty
b00612cc
PB
47940 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
47941 mkdir stage1-libiberty; \
22121df0 47942 mv stage1-libiberty libiberty
72b2455a 47943@endif libiberty
1b6c0831
L
47944@if libiberty-linker-plugin
47945 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
47946 mkdir stage1-libiberty-linker-plugin; \
22121df0 47947 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
1b6c0831 47948@endif libiberty-linker-plugin
016a3251
DD
47949@if libiconv
47950 @cd $(HOST_SUBDIR); [ -d stage1-libiconv ] || \
47951 mkdir stage1-libiconv; \
47952 mv stage1-libiconv libiconv
47953@endif libiconv
72b2455a 47954@if zlib
b00612cc
PB
47955 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
47956 mkdir stage1-zlib; \
22121df0 47957 mv stage1-zlib zlib
72b2455a 47958@endif zlib
700d40ca
ILT
47959@if lto-plugin
47960 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
47961 mkdir stage1-lto-plugin; \
22121df0 47962 mv stage1-lto-plugin lto-plugin
700d40ca 47963@endif lto-plugin
0aed8855
PB
47964 @[ -d stage1-$(TARGET_SUBDIR) ] || \
47965 mkdir stage1-$(TARGET_SUBDIR); \
22121df0 47966 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 47967
80911fe1 47968stage1-end::
72b2455a 47969@if bfd
22121df0
L
47970 @if test -d $(HOST_SUBDIR)/bfd; then \
47971 cd $(HOST_SUBDIR); mv bfd stage1-bfd; \
0aed8855 47972 fi
72b2455a
PB
47973@endif bfd
47974@if opcodes
22121df0
L
47975 @if test -d $(HOST_SUBDIR)/opcodes; then \
47976 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes; \
0aed8855 47977 fi
72b2455a
PB
47978@endif opcodes
47979@if binutils
22121df0
L
47980 @if test -d $(HOST_SUBDIR)/binutils; then \
47981 cd $(HOST_SUBDIR); mv binutils stage1-binutils; \
0aed8855 47982 fi
72b2455a 47983@endif binutils
201f096f 47984@if fixincludes
22121df0
L
47985 @if test -d $(HOST_SUBDIR)/fixincludes; then \
47986 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes; \
201f096f 47987 fi
47988@endif fixincludes
72b2455a 47989@if gas
22121df0
L
47990 @if test -d $(HOST_SUBDIR)/gas; then \
47991 cd $(HOST_SUBDIR); mv gas stage1-gas; \
0aed8855 47992 fi
72b2455a
PB
47993@endif gas
47994@if gcc
22121df0
L
47995 @if test -d $(HOST_SUBDIR)/gcc; then \
47996 cd $(HOST_SUBDIR); mv gcc stage1-gcc; \
0aed8855 47997 fi
72b2455a 47998@endif gcc
4b900473 47999@if gmp
22121df0
L
48000 @if test -d $(HOST_SUBDIR)/gmp; then \
48001 cd $(HOST_SUBDIR); mv gmp stage1-gmp; \
4b900473
PB
48002 fi
48003@endif gmp
48004@if mpfr
22121df0
L
48005 @if test -d $(HOST_SUBDIR)/mpfr; then \
48006 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr; \
4b900473
PB
48007 fi
48008@endif mpfr
e8a5fa9c 48009@if mpc
22121df0
L
48010 @if test -d $(HOST_SUBDIR)/mpc; then \
48011 cd $(HOST_SUBDIR); mv mpc stage1-mpc; \
e8a5fa9c
RW
48012 fi
48013@endif mpc
7ec59b9e 48014@if isl
22121df0
L
48015 @if test -d $(HOST_SUBDIR)/isl; then \
48016 cd $(HOST_SUBDIR); mv isl stage1-isl; \
e28c595f 48017 fi
7ec59b9e 48018@endif isl
1f53ca9a 48019@if libelf
22121df0
L
48020 @if test -d $(HOST_SUBDIR)/libelf; then \
48021 cd $(HOST_SUBDIR); mv libelf stage1-libelf; \
1f53ca9a
AO
48022 fi
48023@endif libelf
93f9b408 48024@if gold
22121df0
L
48025 @if test -d $(HOST_SUBDIR)/gold; then \
48026 cd $(HOST_SUBDIR); mv gold stage1-gold; \
93f9b408
ILT
48027 fi
48028@endif gold
72b2455a 48029@if intl
22121df0
L
48030 @if test -d $(HOST_SUBDIR)/intl; then \
48031 cd $(HOST_SUBDIR); mv intl stage1-intl; \
0aed8855 48032 fi
72b2455a
PB
48033@endif intl
48034@if ld
22121df0
L
48035 @if test -d $(HOST_SUBDIR)/ld; then \
48036 cd $(HOST_SUBDIR); mv ld stage1-ld; \
0aed8855 48037 fi
72b2455a 48038@endif ld
2bf680c4 48039@if libbacktrace
22121df0
L
48040 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48041 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace; \
2bf680c4
ILT
48042 fi
48043@endif libbacktrace
72b2455a 48044@if libcpp
22121df0
L
48045 @if test -d $(HOST_SUBDIR)/libcpp; then \
48046 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp; \
0aed8855 48047 fi
72b2455a 48048@endif libcpp
be01d343 48049@if libdecnumber
22121df0
L
48050 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48051 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber; \
0aed8855 48052 fi
be01d343 48053@endif libdecnumber
72b2455a 48054@if libiberty
22121df0
L
48055 @if test -d $(HOST_SUBDIR)/libiberty; then \
48056 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty; \
0aed8855 48057 fi
72b2455a 48058@endif libiberty
1b6c0831 48059@if libiberty-linker-plugin
22121df0
L
48060 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48061 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin; \
1b6c0831
L
48062 fi
48063@endif libiberty-linker-plugin
016a3251
DD
48064@if libiconv
48065 @if test -d $(HOST_SUBDIR)/libiconv; then \
48066 cd $(HOST_SUBDIR); mv libiconv stage1-libiconv; \
48067 fi
48068@endif libiconv
72b2455a 48069@if zlib
22121df0
L
48070 @if test -d $(HOST_SUBDIR)/zlib; then \
48071 cd $(HOST_SUBDIR); mv zlib stage1-zlib; \
0aed8855 48072 fi
72b2455a 48073@endif zlib
700d40ca 48074@if lto-plugin
22121df0
L
48075 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48076 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \
700d40ca
ILT
48077 fi
48078@endif lto-plugin
22121df0
L
48079 @if test -d $(TARGET_SUBDIR); then \
48080 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); \
0aed8855 48081 fi
80911fe1 48082 rm -f stage_current
dfdffa2c 48083
973601e1 48084# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 48085# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48086# reconfigured either.
319cab08 48087.PHONY: stage1-bubble
656fdd47 48088stage1-bubble::
e360f423
PB
48089 @r=`${PWD_COMMAND}`; export r; \
48090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48091 if test -f stage1-lean ; then \
48092 echo Skipping rebuild of stage1; \
9cb3fa6f 48093 else \
f70224b5
PB
48094 $(MAKE) stage1-start; \
48095 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 48096 fi
72b2455a 48097
0df3d27f 48098.PHONY: all-stage1 clean-stage1
0df3d27f 48099do-clean: clean-stage1
0df3d27f 48100
72b2455a
PB
48101# FIXME: Will not need to be conditional when toplevel bootstrap is the
48102# only possibility, but now it conflicts with no-bootstrap rules
48103@if gcc-bootstrap
48104
48105
48106
48107
0df3d27f 48108# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48109
0df3d27f 48110.PHONY: distclean-stage1
72b2455a 48111distclean-stage1::
0aed8855 48112 @: $(MAKE); $(stage)
e00a73e3 48113 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 48114 rm -rf stage1-*
72b2455a
PB
48115
48116
48117@endif gcc-bootstrap
48118
48119
48120.PHONY: stage2-start stage2-end
48121
48122stage2-start::
0aed8855 48123 @: $(MAKE); $(stage); \
22121df0 48124 echo stage2 > stage_current; \
b00612cc 48125 echo stage2 > stage_last; \
0aed8855 48126 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48127@if bfd
b00612cc
PB
48128 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
48129 mkdir stage2-bfd; \
22121df0 48130 mv stage2-bfd bfd; \
80911fe1 48131 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
48132@endif bfd
48133@if opcodes
b00612cc
PB
48134 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
48135 mkdir stage2-opcodes; \
22121df0 48136 mv stage2-opcodes opcodes; \
80911fe1 48137 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
48138@endif opcodes
48139@if binutils
b00612cc
PB
48140 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
48141 mkdir stage2-binutils; \
22121df0 48142 mv stage2-binutils binutils; \
80911fe1 48143 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 48144@endif binutils
201f096f 48145@if fixincludes
48146 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
48147 mkdir stage2-fixincludes; \
22121df0 48148 mv stage2-fixincludes fixincludes; \
201f096f 48149 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
48150@endif fixincludes
72b2455a 48151@if gas
b00612cc
PB
48152 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
48153 mkdir stage2-gas; \
22121df0 48154 mv stage2-gas gas; \
80911fe1 48155 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
48156@endif gas
48157@if gcc
b00612cc
PB
48158 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
48159 mkdir stage2-gcc; \
22121df0 48160 mv stage2-gcc gcc; \
80911fe1 48161 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 48162@endif gcc
4b900473
PB
48163@if gmp
48164 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
48165 mkdir stage2-gmp; \
22121df0 48166 mv stage2-gmp gmp; \
4b900473
PB
48167 mv stage1-gmp prev-gmp || test -f stage1-lean
48168@endif gmp
48169@if mpfr
48170 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
48171 mkdir stage2-mpfr; \
22121df0 48172 mv stage2-mpfr mpfr; \
4b900473
PB
48173 mv stage1-mpfr prev-mpfr || test -f stage1-lean
48174@endif mpfr
e8a5fa9c
RW
48175@if mpc
48176 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
48177 mkdir stage2-mpc; \
22121df0 48178 mv stage2-mpc mpc; \
e8a5fa9c
RW
48179 mv stage1-mpc prev-mpc || test -f stage1-lean
48180@endif mpc
7ec59b9e
L
48181@if isl
48182 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
48183 mkdir stage2-isl; \
22121df0 48184 mv stage2-isl isl; \
7ec59b9e
L
48185 mv stage1-isl prev-isl || test -f stage1-lean
48186@endif isl
1f53ca9a
AO
48187@if libelf
48188 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
48189 mkdir stage2-libelf; \
22121df0 48190 mv stage2-libelf libelf; \
1f53ca9a
AO
48191 mv stage1-libelf prev-libelf || test -f stage1-lean
48192@endif libelf
93f9b408
ILT
48193@if gold
48194 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
48195 mkdir stage2-gold; \
22121df0 48196 mv stage2-gold gold; \
93f9b408
ILT
48197 mv stage1-gold prev-gold || test -f stage1-lean
48198@endif gold
72b2455a 48199@if intl
b00612cc
PB
48200 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
48201 mkdir stage2-intl; \
22121df0 48202 mv stage2-intl intl; \
80911fe1 48203 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
48204@endif intl
48205@if ld
b00612cc
PB
48206 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
48207 mkdir stage2-ld; \
22121df0 48208 mv stage2-ld ld; \
80911fe1 48209 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 48210@endif ld
2bf680c4
ILT
48211@if libbacktrace
48212 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
48213 mkdir stage2-libbacktrace; \
22121df0 48214 mv stage2-libbacktrace libbacktrace; \
2bf680c4
ILT
48215 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
48216@endif libbacktrace
72b2455a 48217@if libcpp
b00612cc
PB
48218 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
48219 mkdir stage2-libcpp; \
22121df0 48220 mv stage2-libcpp libcpp; \
80911fe1 48221 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 48222@endif libcpp
be01d343
PB
48223@if libdecnumber
48224 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
48225 mkdir stage2-libdecnumber; \
22121df0 48226 mv stage2-libdecnumber libdecnumber; \
80911fe1 48227 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 48228@endif libdecnumber
72b2455a 48229@if libiberty
b00612cc
PB
48230 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
48231 mkdir stage2-libiberty; \
22121df0 48232 mv stage2-libiberty libiberty; \
80911fe1 48233 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 48234@endif libiberty
1b6c0831
L
48235@if libiberty-linker-plugin
48236 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
48237 mkdir stage2-libiberty-linker-plugin; \
22121df0 48238 mv stage2-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48239 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
48240@endif libiberty-linker-plugin
016a3251
DD
48241@if libiconv
48242 @cd $(HOST_SUBDIR); [ -d stage2-libiconv ] || \
48243 mkdir stage2-libiconv; \
48244 mv stage2-libiconv libiconv; \
48245 mv stage1-libiconv prev-libiconv || test -f stage1-lean
48246@endif libiconv
72b2455a 48247@if zlib
b00612cc
PB
48248 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
48249 mkdir stage2-zlib; \
22121df0 48250 mv stage2-zlib zlib; \
80911fe1 48251 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 48252@endif zlib
700d40ca
ILT
48253@if lto-plugin
48254 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
48255 mkdir stage2-lto-plugin; \
22121df0 48256 mv stage2-lto-plugin lto-plugin; \
700d40ca
ILT
48257 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
48258@endif lto-plugin
0aed8855
PB
48259 @[ -d stage2-$(TARGET_SUBDIR) ] || \
48260 mkdir stage2-$(TARGET_SUBDIR); \
22121df0 48261 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 48262 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 48263
80911fe1 48264stage2-end::
72b2455a 48265@if bfd
22121df0
L
48266 @if test -d $(HOST_SUBDIR)/bfd; then \
48267 cd $(HOST_SUBDIR); mv bfd stage2-bfd; \
48268 mv prev-bfd stage1-bfd; : ; \
0aed8855 48269 fi
72b2455a
PB
48270@endif bfd
48271@if opcodes
22121df0
L
48272 @if test -d $(HOST_SUBDIR)/opcodes; then \
48273 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes; \
48274 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 48275 fi
72b2455a
PB
48276@endif opcodes
48277@if binutils
22121df0
L
48278 @if test -d $(HOST_SUBDIR)/binutils; then \
48279 cd $(HOST_SUBDIR); mv binutils stage2-binutils; \
48280 mv prev-binutils stage1-binutils; : ; \
0aed8855 48281 fi
72b2455a 48282@endif binutils
201f096f 48283@if fixincludes
22121df0
L
48284 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48285 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes; \
48286 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 48287 fi
48288@endif fixincludes
72b2455a 48289@if gas
22121df0
L
48290 @if test -d $(HOST_SUBDIR)/gas; then \
48291 cd $(HOST_SUBDIR); mv gas stage2-gas; \
48292 mv prev-gas stage1-gas; : ; \
0aed8855 48293 fi
72b2455a
PB
48294@endif gas
48295@if gcc
22121df0
L
48296 @if test -d $(HOST_SUBDIR)/gcc; then \
48297 cd $(HOST_SUBDIR); mv gcc stage2-gcc; \
48298 mv prev-gcc stage1-gcc; : ; \
0aed8855 48299 fi
72b2455a 48300@endif gcc
4b900473 48301@if gmp
22121df0
L
48302 @if test -d $(HOST_SUBDIR)/gmp; then \
48303 cd $(HOST_SUBDIR); mv gmp stage2-gmp; \
48304 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
48305 fi
48306@endif gmp
48307@if mpfr
22121df0
L
48308 @if test -d $(HOST_SUBDIR)/mpfr; then \
48309 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr; \
48310 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
48311 fi
48312@endif mpfr
e8a5fa9c 48313@if mpc
22121df0
L
48314 @if test -d $(HOST_SUBDIR)/mpc; then \
48315 cd $(HOST_SUBDIR); mv mpc stage2-mpc; \
48316 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
48317 fi
48318@endif mpc
7ec59b9e 48319@if isl
22121df0
L
48320 @if test -d $(HOST_SUBDIR)/isl; then \
48321 cd $(HOST_SUBDIR); mv isl stage2-isl; \
48322 mv prev-isl stage1-isl; : ; \
e28c595f 48323 fi
7ec59b9e 48324@endif isl
1f53ca9a 48325@if libelf
22121df0
L
48326 @if test -d $(HOST_SUBDIR)/libelf; then \
48327 cd $(HOST_SUBDIR); mv libelf stage2-libelf; \
48328 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
48329 fi
48330@endif libelf
93f9b408 48331@if gold
22121df0
L
48332 @if test -d $(HOST_SUBDIR)/gold; then \
48333 cd $(HOST_SUBDIR); mv gold stage2-gold; \
48334 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
48335 fi
48336@endif gold
72b2455a 48337@if intl
22121df0
L
48338 @if test -d $(HOST_SUBDIR)/intl; then \
48339 cd $(HOST_SUBDIR); mv intl stage2-intl; \
48340 mv prev-intl stage1-intl; : ; \
0aed8855 48341 fi
72b2455a
PB
48342@endif intl
48343@if ld
22121df0
L
48344 @if test -d $(HOST_SUBDIR)/ld; then \
48345 cd $(HOST_SUBDIR); mv ld stage2-ld; \
48346 mv prev-ld stage1-ld; : ; \
0aed8855 48347 fi
72b2455a 48348@endif ld
2bf680c4 48349@if libbacktrace
22121df0
L
48350 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48351 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace; \
48352 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
48353 fi
48354@endif libbacktrace
72b2455a 48355@if libcpp
22121df0
L
48356 @if test -d $(HOST_SUBDIR)/libcpp; then \
48357 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp; \
48358 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 48359 fi
72b2455a 48360@endif libcpp
be01d343 48361@if libdecnumber
22121df0
L
48362 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48363 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber; \
48364 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 48365 fi
be01d343 48366@endif libdecnumber
72b2455a 48367@if libiberty
22121df0
L
48368 @if test -d $(HOST_SUBDIR)/libiberty; then \
48369 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty; \
48370 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 48371 fi
72b2455a 48372@endif libiberty
1b6c0831 48373@if libiberty-linker-plugin
22121df0
L
48374 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48375 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin; \
48376 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
48377 fi
48378@endif libiberty-linker-plugin
016a3251
DD
48379@if libiconv
48380 @if test -d $(HOST_SUBDIR)/libiconv; then \
48381 cd $(HOST_SUBDIR); mv libiconv stage2-libiconv; \
48382 mv prev-libiconv stage1-libiconv; : ; \
48383 fi
48384@endif libiconv
72b2455a 48385@if zlib
22121df0
L
48386 @if test -d $(HOST_SUBDIR)/zlib; then \
48387 cd $(HOST_SUBDIR); mv zlib stage2-zlib; \
48388 mv prev-zlib stage1-zlib; : ; \
0aed8855 48389 fi
72b2455a 48390@endif zlib
700d40ca 48391@if lto-plugin
22121df0
L
48392 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48393 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin; \
48394 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
48395 fi
48396@endif lto-plugin
22121df0
L
48397 @if test -d $(TARGET_SUBDIR); then \
48398 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); \
48399 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 48400 fi
80911fe1 48401 rm -f stage_current
72b2455a 48402
973601e1 48403# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 48404# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48405# reconfigured either.
72b2455a
PB
48406.PHONY: stage2-bubble
48407stage2-bubble:: stage1-bubble
e360f423
PB
48408 @r=`${PWD_COMMAND}`; export r; \
48409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48410 if test -f stage2-lean || test -f stage1-lean ; then \
48411 echo Skipping rebuild of stage2; \
9cb3fa6f 48412 else \
f70224b5
PB
48413 $(MAKE) stage2-start; \
48414 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 48415 fi
72b2455a 48416
0df3d27f 48417.PHONY: all-stage2 clean-stage2
0df3d27f 48418do-clean: clean-stage2
0df3d27f 48419
72b2455a
PB
48420# FIXME: Will not need to be conditional when toplevel bootstrap is the
48421# only possibility, but now it conflicts with no-bootstrap rules
48422@if gcc-bootstrap
48423
48424
48425
80911fe1 48426.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
48427bootstrap2:
48428 echo stage2 > stage_final
48429 @r=`${PWD_COMMAND}`; export r; \
48430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48431 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 48432 @: $(MAKE); $(unstage)
be01d343
PB
48433 @r=`${PWD_COMMAND}`; export r; \
48434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48435 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 48436 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 48437
80911fe1
PB
48438bootstrap2-lean:
48439 echo stage2 > stage_final
48440 @r=`${PWD_COMMAND}`; export r; \
48441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48442 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
48443 @: $(MAKE); $(unstage)
48444 @r=`${PWD_COMMAND}`; export r; \
48445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48446 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
48447 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48448
72b2455a 48449
0df3d27f 48450# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48451distclean-stage1:: distclean-stage2
0df3d27f 48452.PHONY: distclean-stage2
72b2455a 48453distclean-stage2::
0aed8855 48454 @: $(MAKE); $(stage)
e00a73e3 48455 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 48456 rm -rf stage2-*
72b2455a
PB
48457
48458
48459@endif gcc-bootstrap
48460
48461
48462.PHONY: stage3-start stage3-end
48463
48464stage3-start::
0aed8855 48465 @: $(MAKE); $(stage); \
22121df0 48466 echo stage3 > stage_current; \
b00612cc 48467 echo stage3 > stage_last; \
0aed8855 48468 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48469@if bfd
b00612cc
PB
48470 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
48471 mkdir stage3-bfd; \
22121df0 48472 mv stage3-bfd bfd; \
80911fe1 48473 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
48474@endif bfd
48475@if opcodes
b00612cc
PB
48476 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
48477 mkdir stage3-opcodes; \
22121df0 48478 mv stage3-opcodes opcodes; \
80911fe1 48479 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
48480@endif opcodes
48481@if binutils
b00612cc
PB
48482 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
48483 mkdir stage3-binutils; \
22121df0 48484 mv stage3-binutils binutils; \
80911fe1 48485 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 48486@endif binutils
201f096f 48487@if fixincludes
48488 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
48489 mkdir stage3-fixincludes; \
22121df0 48490 mv stage3-fixincludes fixincludes; \
201f096f 48491 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
48492@endif fixincludes
72b2455a 48493@if gas
b00612cc
PB
48494 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
48495 mkdir stage3-gas; \
22121df0 48496 mv stage3-gas gas; \
80911fe1 48497 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
48498@endif gas
48499@if gcc
b00612cc
PB
48500 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
48501 mkdir stage3-gcc; \
22121df0 48502 mv stage3-gcc gcc; \
80911fe1 48503 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 48504@endif gcc
4b900473
PB
48505@if gmp
48506 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
48507 mkdir stage3-gmp; \
22121df0 48508 mv stage3-gmp gmp; \
4b900473
PB
48509 mv stage2-gmp prev-gmp || test -f stage2-lean
48510@endif gmp
48511@if mpfr
48512 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
48513 mkdir stage3-mpfr; \
22121df0 48514 mv stage3-mpfr mpfr; \
4b900473
PB
48515 mv stage2-mpfr prev-mpfr || test -f stage2-lean
48516@endif mpfr
e8a5fa9c
RW
48517@if mpc
48518 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
48519 mkdir stage3-mpc; \
22121df0 48520 mv stage3-mpc mpc; \
e8a5fa9c
RW
48521 mv stage2-mpc prev-mpc || test -f stage2-lean
48522@endif mpc
7ec59b9e
L
48523@if isl
48524 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
48525 mkdir stage3-isl; \
22121df0 48526 mv stage3-isl isl; \
7ec59b9e
L
48527 mv stage2-isl prev-isl || test -f stage2-lean
48528@endif isl
1f53ca9a
AO
48529@if libelf
48530 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
48531 mkdir stage3-libelf; \
22121df0 48532 mv stage3-libelf libelf; \
1f53ca9a
AO
48533 mv stage2-libelf prev-libelf || test -f stage2-lean
48534@endif libelf
93f9b408
ILT
48535@if gold
48536 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
48537 mkdir stage3-gold; \
22121df0 48538 mv stage3-gold gold; \
93f9b408
ILT
48539 mv stage2-gold prev-gold || test -f stage2-lean
48540@endif gold
72b2455a 48541@if intl
b00612cc
PB
48542 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
48543 mkdir stage3-intl; \
22121df0 48544 mv stage3-intl intl; \
80911fe1 48545 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
48546@endif intl
48547@if ld
b00612cc
PB
48548 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
48549 mkdir stage3-ld; \
22121df0 48550 mv stage3-ld ld; \
80911fe1 48551 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 48552@endif ld
2bf680c4
ILT
48553@if libbacktrace
48554 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
48555 mkdir stage3-libbacktrace; \
22121df0 48556 mv stage3-libbacktrace libbacktrace; \
2bf680c4
ILT
48557 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
48558@endif libbacktrace
72b2455a 48559@if libcpp
b00612cc
PB
48560 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
48561 mkdir stage3-libcpp; \
22121df0 48562 mv stage3-libcpp libcpp; \
80911fe1 48563 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 48564@endif libcpp
be01d343
PB
48565@if libdecnumber
48566 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
48567 mkdir stage3-libdecnumber; \
22121df0 48568 mv stage3-libdecnumber libdecnumber; \
80911fe1 48569 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 48570@endif libdecnumber
72b2455a 48571@if libiberty
b00612cc
PB
48572 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
48573 mkdir stage3-libiberty; \
22121df0 48574 mv stage3-libiberty libiberty; \
80911fe1 48575 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 48576@endif libiberty
1b6c0831
L
48577@if libiberty-linker-plugin
48578 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
48579 mkdir stage3-libiberty-linker-plugin; \
22121df0 48580 mv stage3-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48581 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
48582@endif libiberty-linker-plugin
016a3251
DD
48583@if libiconv
48584 @cd $(HOST_SUBDIR); [ -d stage3-libiconv ] || \
48585 mkdir stage3-libiconv; \
48586 mv stage3-libiconv libiconv; \
48587 mv stage2-libiconv prev-libiconv || test -f stage2-lean
48588@endif libiconv
72b2455a 48589@if zlib
b00612cc
PB
48590 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
48591 mkdir stage3-zlib; \
22121df0 48592 mv stage3-zlib zlib; \
80911fe1 48593 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 48594@endif zlib
700d40ca
ILT
48595@if lto-plugin
48596 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
48597 mkdir stage3-lto-plugin; \
22121df0 48598 mv stage3-lto-plugin lto-plugin; \
700d40ca
ILT
48599 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
48600@endif lto-plugin
0aed8855
PB
48601 @[ -d stage3-$(TARGET_SUBDIR) ] || \
48602 mkdir stage3-$(TARGET_SUBDIR); \
22121df0 48603 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 48604 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 48605
80911fe1 48606stage3-end::
72b2455a 48607@if bfd
22121df0
L
48608 @if test -d $(HOST_SUBDIR)/bfd; then \
48609 cd $(HOST_SUBDIR); mv bfd stage3-bfd; \
48610 mv prev-bfd stage2-bfd; : ; \
0aed8855 48611 fi
72b2455a
PB
48612@endif bfd
48613@if opcodes
22121df0
L
48614 @if test -d $(HOST_SUBDIR)/opcodes; then \
48615 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes; \
48616 mv prev-opcodes stage2-opcodes; : ; \
0aed8855 48617 fi
72b2455a
PB
48618@endif opcodes
48619@if binutils
22121df0
L
48620 @if test -d $(HOST_SUBDIR)/binutils; then \
48621 cd $(HOST_SUBDIR); mv binutils stage3-binutils; \
48622 mv prev-binutils stage2-binutils; : ; \
0aed8855 48623 fi
72b2455a 48624@endif binutils
201f096f 48625@if fixincludes
22121df0
L
48626 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48627 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes; \
48628 mv prev-fixincludes stage2-fixincludes; : ; \
201f096f 48629 fi
48630@endif fixincludes
72b2455a 48631@if gas
22121df0
L
48632 @if test -d $(HOST_SUBDIR)/gas; then \
48633 cd $(HOST_SUBDIR); mv gas stage3-gas; \
48634 mv prev-gas stage2-gas; : ; \
0aed8855 48635 fi
72b2455a
PB
48636@endif gas
48637@if gcc
22121df0
L
48638 @if test -d $(HOST_SUBDIR)/gcc; then \
48639 cd $(HOST_SUBDIR); mv gcc stage3-gcc; \
48640 mv prev-gcc stage2-gcc; : ; \
0aed8855 48641 fi
72b2455a 48642@endif gcc
4b900473 48643@if gmp
22121df0
L
48644 @if test -d $(HOST_SUBDIR)/gmp; then \
48645 cd $(HOST_SUBDIR); mv gmp stage3-gmp; \
48646 mv prev-gmp stage2-gmp; : ; \
4b900473
PB
48647 fi
48648@endif gmp
48649@if mpfr
22121df0
L
48650 @if test -d $(HOST_SUBDIR)/mpfr; then \
48651 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr; \
48652 mv prev-mpfr stage2-mpfr; : ; \
4b900473
PB
48653 fi
48654@endif mpfr
e8a5fa9c 48655@if mpc
22121df0
L
48656 @if test -d $(HOST_SUBDIR)/mpc; then \
48657 cd $(HOST_SUBDIR); mv mpc stage3-mpc; \
48658 mv prev-mpc stage2-mpc; : ; \
e8a5fa9c
RW
48659 fi
48660@endif mpc
7ec59b9e 48661@if isl
22121df0
L
48662 @if test -d $(HOST_SUBDIR)/isl; then \
48663 cd $(HOST_SUBDIR); mv isl stage3-isl; \
48664 mv prev-isl stage2-isl; : ; \
e28c595f 48665 fi
7ec59b9e 48666@endif isl
1f53ca9a 48667@if libelf
22121df0
L
48668 @if test -d $(HOST_SUBDIR)/libelf; then \
48669 cd $(HOST_SUBDIR); mv libelf stage3-libelf; \
48670 mv prev-libelf stage2-libelf; : ; \
1f53ca9a
AO
48671 fi
48672@endif libelf
93f9b408 48673@if gold
22121df0
L
48674 @if test -d $(HOST_SUBDIR)/gold; then \
48675 cd $(HOST_SUBDIR); mv gold stage3-gold; \
48676 mv prev-gold stage2-gold; : ; \
93f9b408
ILT
48677 fi
48678@endif gold
72b2455a 48679@if intl
22121df0
L
48680 @if test -d $(HOST_SUBDIR)/intl; then \
48681 cd $(HOST_SUBDIR); mv intl stage3-intl; \
48682 mv prev-intl stage2-intl; : ; \
0aed8855 48683 fi
72b2455a
PB
48684@endif intl
48685@if ld
22121df0
L
48686 @if test -d $(HOST_SUBDIR)/ld; then \
48687 cd $(HOST_SUBDIR); mv ld stage3-ld; \
48688 mv prev-ld stage2-ld; : ; \
0aed8855 48689 fi
72b2455a 48690@endif ld
2bf680c4 48691@if libbacktrace
22121df0
L
48692 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48693 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace; \
48694 mv prev-libbacktrace stage2-libbacktrace; : ; \
2bf680c4
ILT
48695 fi
48696@endif libbacktrace
72b2455a 48697@if libcpp
22121df0
L
48698 @if test -d $(HOST_SUBDIR)/libcpp; then \
48699 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp; \
48700 mv prev-libcpp stage2-libcpp; : ; \
0aed8855 48701 fi
72b2455a 48702@endif libcpp
be01d343 48703@if libdecnumber
22121df0
L
48704 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48705 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber; \
48706 mv prev-libdecnumber stage2-libdecnumber; : ; \
0aed8855 48707 fi
be01d343 48708@endif libdecnumber
72b2455a 48709@if libiberty
22121df0
L
48710 @if test -d $(HOST_SUBDIR)/libiberty; then \
48711 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty; \
48712 mv prev-libiberty stage2-libiberty; : ; \
0aed8855 48713 fi
72b2455a 48714@endif libiberty
1b6c0831 48715@if libiberty-linker-plugin
22121df0
L
48716 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48717 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin; \
48718 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin; : ; \
1b6c0831
L
48719 fi
48720@endif libiberty-linker-plugin
016a3251
DD
48721@if libiconv
48722 @if test -d $(HOST_SUBDIR)/libiconv; then \
48723 cd $(HOST_SUBDIR); mv libiconv stage3-libiconv; \
48724 mv prev-libiconv stage2-libiconv; : ; \
48725 fi
48726@endif libiconv
72b2455a 48727@if zlib
22121df0
L
48728 @if test -d $(HOST_SUBDIR)/zlib; then \
48729 cd $(HOST_SUBDIR); mv zlib stage3-zlib; \
48730 mv prev-zlib stage2-zlib; : ; \
0aed8855 48731 fi
72b2455a 48732@endif zlib
700d40ca 48733@if lto-plugin
22121df0
L
48734 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48735 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin; \
48736 mv prev-lto-plugin stage2-lto-plugin; : ; \
700d40ca
ILT
48737 fi
48738@endif lto-plugin
22121df0
L
48739 @if test -d $(TARGET_SUBDIR); then \
48740 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); \
48741 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); : ; \
0aed8855 48742 fi
80911fe1 48743 rm -f stage_current
72b2455a 48744
973601e1 48745# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 48746# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48747# reconfigured either.
72b2455a
PB
48748.PHONY: stage3-bubble
48749stage3-bubble:: stage2-bubble
e360f423
PB
48750 @r=`${PWD_COMMAND}`; export r; \
48751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48752 if test -f stage3-lean || test -f stage2-lean ; then \
48753 echo Skipping rebuild of stage3; \
9cb3fa6f 48754 else \
f70224b5 48755 $(MAKE) stage3-start; \
80911fe1 48756 if $(LEAN); then \
22121df0
L
48757 rm -rf stage1-*; \
48758 $(STAMP) stage1-lean; \
80911fe1 48759 fi; \
f70224b5 48760 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 48761 fi
f6d183c0 48762 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 48763
0df3d27f 48764.PHONY: all-stage3 clean-stage3
0df3d27f 48765do-clean: clean-stage3
0df3d27f 48766
d545f33b
PB
48767# FIXME: Will not need to be conditional when toplevel bootstrap is the
48768# only possibility, but now it conflicts with no-bootstrap rules
48769@if gcc-bootstrap
72b2455a 48770
d545f33b 48771compare:
e360f423
PB
48772 @r=`${PWD_COMMAND}`; export r; \
48773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48774 if test -f stage2-lean; then \
22121df0
L
48775 echo Cannot compare object files as stage 2 was deleted.; \
48776 exit 0; \
d545f33b 48777 fi; \
0aed8855 48778 : $(MAKE); $(stage); \
22121df0
L
48779 rm -f .bad_compare; \
48780 echo Comparing stages 2 and 3; \
fda13ee8
AO
48781 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
48782 files=`find stage3-* -name "*$(objext)" -print | \
22121df0
L
48783 sed -n s,^stage$$sed-,,p`; \
48784 for file in $${files}; do \
fda13ee8
AO
48785 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
48786 if test ! -f $$f1; then continue; fi; \
8520c408 48787 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
48788 if test $$? -eq 1; then \
48789 case $$file in \
e8a5fa9c 48790 @compare_exclusions@) \
f70224b5
PB
48791 echo warning: $$file differs ;; \
48792 *) \
48793 echo $$file differs >> .bad_compare ;; \
22121df0
L
48794 esac; \
48795 fi; \
48796 done; \
d545f33b
PB
48797 if [ -f .bad_compare ]; then \
48798 echo "Bootstrap comparison failure!"; \
48799 cat .bad_compare; \
48800 exit 1; \
48801 else \
c52c6897 48802 echo Comparison successful.; \
22121df0 48803 fi; \
d545f33b 48804 $(STAMP) compare
80911fe1
PB
48805 if $(LEAN); then \
48806 rm -rf stage2-*; \
48807 $(STAMP) stage2-lean; \
48808 fi
9cb3fa6f 48809
72b2455a 48810
72b2455a 48811
80911fe1 48812.PHONY: bootstrap bootstrap-lean
be01d343
PB
48813bootstrap:
48814 echo stage3 > stage_final
48815 @r=`${PWD_COMMAND}`; export r; \
48816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48817 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 48818 @: $(MAKE); $(unstage)
be01d343
PB
48819 @r=`${PWD_COMMAND}`; export r; \
48820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48821 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 48822 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 48823
80911fe1
PB
48824bootstrap-lean:
48825 echo stage3 > stage_final
48826 @r=`${PWD_COMMAND}`; export r; \
48827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48828 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
48829 @: $(MAKE); $(unstage)
48830 @r=`${PWD_COMMAND}`; export r; \
48831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48832 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
48833 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48834
72b2455a 48835
d545f33b
PB
48836# Rules to wipe a stage and all the following ones, also used for cleanstrap
48837distclean-stage2:: distclean-stage3
48838.PHONY: distclean-stage3
48839distclean-stage3::
0aed8855 48840 @: $(MAKE); $(stage)
e00a73e3 48841 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 48842 rm -rf stage3-* compare
0df3d27f 48843
9cb3fa6f 48844
d545f33b 48845.PHONY: cleanstrap
e00a73e3
PB
48846cleanstrap: do-distclean local-clean
48847 echo stage3 > stage_final
48848 @r=`${PWD_COMMAND}`; export r; \
48849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48850 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
48851 @: $(MAKE); $(unstage)
48852 @r=`${PWD_COMMAND}`; export r; \
48853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48854 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
48855 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48856
48857@endif gcc-bootstrap
48858
48859
72b2455a
PB
48860.PHONY: stage4-start stage4-end
48861
48862stage4-start::
0aed8855 48863 @: $(MAKE); $(stage); \
22121df0 48864 echo stage4 > stage_current; \
b00612cc 48865 echo stage4 > stage_last; \
0aed8855 48866 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48867@if bfd
b00612cc
PB
48868 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
48869 mkdir stage4-bfd; \
22121df0 48870 mv stage4-bfd bfd; \
80911fe1 48871 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
48872@endif bfd
48873@if opcodes
b00612cc
PB
48874 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
48875 mkdir stage4-opcodes; \
22121df0 48876 mv stage4-opcodes opcodes; \
80911fe1 48877 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
48878@endif opcodes
48879@if binutils
b00612cc
PB
48880 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
48881 mkdir stage4-binutils; \
22121df0 48882 mv stage4-binutils binutils; \
80911fe1 48883 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 48884@endif binutils
201f096f 48885@if fixincludes
48886 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
48887 mkdir stage4-fixincludes; \
22121df0 48888 mv stage4-fixincludes fixincludes; \
201f096f 48889 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
48890@endif fixincludes
72b2455a 48891@if gas
b00612cc
PB
48892 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
48893 mkdir stage4-gas; \
22121df0 48894 mv stage4-gas gas; \
80911fe1 48895 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
48896@endif gas
48897@if gcc
b00612cc
PB
48898 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
48899 mkdir stage4-gcc; \
22121df0 48900 mv stage4-gcc gcc; \
80911fe1 48901 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 48902@endif gcc
4b900473
PB
48903@if gmp
48904 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
48905 mkdir stage4-gmp; \
22121df0 48906 mv stage4-gmp gmp; \
4b900473
PB
48907 mv stage3-gmp prev-gmp || test -f stage3-lean
48908@endif gmp
48909@if mpfr
48910 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
48911 mkdir stage4-mpfr; \
22121df0 48912 mv stage4-mpfr mpfr; \
4b900473
PB
48913 mv stage3-mpfr prev-mpfr || test -f stage3-lean
48914@endif mpfr
e8a5fa9c
RW
48915@if mpc
48916 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
48917 mkdir stage4-mpc; \
22121df0 48918 mv stage4-mpc mpc; \
e8a5fa9c
RW
48919 mv stage3-mpc prev-mpc || test -f stage3-lean
48920@endif mpc
7ec59b9e
L
48921@if isl
48922 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
48923 mkdir stage4-isl; \
22121df0 48924 mv stage4-isl isl; \
7ec59b9e
L
48925 mv stage3-isl prev-isl || test -f stage3-lean
48926@endif isl
1f53ca9a
AO
48927@if libelf
48928 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
48929 mkdir stage4-libelf; \
22121df0 48930 mv stage4-libelf libelf; \
1f53ca9a
AO
48931 mv stage3-libelf prev-libelf || test -f stage3-lean
48932@endif libelf
93f9b408
ILT
48933@if gold
48934 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
48935 mkdir stage4-gold; \
22121df0 48936 mv stage4-gold gold; \
93f9b408
ILT
48937 mv stage3-gold prev-gold || test -f stage3-lean
48938@endif gold
72b2455a 48939@if intl
b00612cc
PB
48940 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
48941 mkdir stage4-intl; \
22121df0 48942 mv stage4-intl intl; \
80911fe1 48943 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
48944@endif intl
48945@if ld
b00612cc
PB
48946 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
48947 mkdir stage4-ld; \
22121df0 48948 mv stage4-ld ld; \
80911fe1 48949 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 48950@endif ld
2bf680c4
ILT
48951@if libbacktrace
48952 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
48953 mkdir stage4-libbacktrace; \
22121df0 48954 mv stage4-libbacktrace libbacktrace; \
2bf680c4
ILT
48955 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
48956@endif libbacktrace
72b2455a 48957@if libcpp
b00612cc
PB
48958 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
48959 mkdir stage4-libcpp; \
22121df0 48960 mv stage4-libcpp libcpp; \
80911fe1 48961 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 48962@endif libcpp
be01d343
PB
48963@if libdecnumber
48964 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
48965 mkdir stage4-libdecnumber; \
22121df0 48966 mv stage4-libdecnumber libdecnumber; \
80911fe1 48967 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 48968@endif libdecnumber
72b2455a 48969@if libiberty
b00612cc
PB
48970 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
48971 mkdir stage4-libiberty; \
22121df0 48972 mv stage4-libiberty libiberty; \
80911fe1 48973 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 48974@endif libiberty
1b6c0831
L
48975@if libiberty-linker-plugin
48976 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
48977 mkdir stage4-libiberty-linker-plugin; \
22121df0 48978 mv stage4-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48979 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
48980@endif libiberty-linker-plugin
016a3251
DD
48981@if libiconv
48982 @cd $(HOST_SUBDIR); [ -d stage4-libiconv ] || \
48983 mkdir stage4-libiconv; \
48984 mv stage4-libiconv libiconv; \
48985 mv stage3-libiconv prev-libiconv || test -f stage3-lean
48986@endif libiconv
72b2455a 48987@if zlib
b00612cc
PB
48988 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
48989 mkdir stage4-zlib; \
22121df0 48990 mv stage4-zlib zlib; \
80911fe1 48991 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 48992@endif zlib
700d40ca
ILT
48993@if lto-plugin
48994 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
48995 mkdir stage4-lto-plugin; \
22121df0 48996 mv stage4-lto-plugin lto-plugin; \
700d40ca
ILT
48997 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
48998@endif lto-plugin
0aed8855
PB
48999 @[ -d stage4-$(TARGET_SUBDIR) ] || \
49000 mkdir stage4-$(TARGET_SUBDIR); \
22121df0 49001 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49002 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 49003
80911fe1 49004stage4-end::
72b2455a 49005@if bfd
22121df0
L
49006 @if test -d $(HOST_SUBDIR)/bfd; then \
49007 cd $(HOST_SUBDIR); mv bfd stage4-bfd; \
49008 mv prev-bfd stage3-bfd; : ; \
0aed8855 49009 fi
72b2455a
PB
49010@endif bfd
49011@if opcodes
22121df0
L
49012 @if test -d $(HOST_SUBDIR)/opcodes; then \
49013 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes; \
49014 mv prev-opcodes stage3-opcodes; : ; \
0aed8855 49015 fi
72b2455a
PB
49016@endif opcodes
49017@if binutils
22121df0
L
49018 @if test -d $(HOST_SUBDIR)/binutils; then \
49019 cd $(HOST_SUBDIR); mv binutils stage4-binutils; \
49020 mv prev-binutils stage3-binutils; : ; \
0aed8855 49021 fi
72b2455a 49022@endif binutils
201f096f 49023@if fixincludes
22121df0
L
49024 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49025 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes; \
49026 mv prev-fixincludes stage3-fixincludes; : ; \
201f096f 49027 fi
49028@endif fixincludes
72b2455a 49029@if gas
22121df0
L
49030 @if test -d $(HOST_SUBDIR)/gas; then \
49031 cd $(HOST_SUBDIR); mv gas stage4-gas; \
49032 mv prev-gas stage3-gas; : ; \
0aed8855 49033 fi
72b2455a
PB
49034@endif gas
49035@if gcc
22121df0
L
49036 @if test -d $(HOST_SUBDIR)/gcc; then \
49037 cd $(HOST_SUBDIR); mv gcc stage4-gcc; \
49038 mv prev-gcc stage3-gcc; : ; \
0aed8855 49039 fi
72b2455a 49040@endif gcc
4b900473 49041@if gmp
22121df0
L
49042 @if test -d $(HOST_SUBDIR)/gmp; then \
49043 cd $(HOST_SUBDIR); mv gmp stage4-gmp; \
49044 mv prev-gmp stage3-gmp; : ; \
4b900473
PB
49045 fi
49046@endif gmp
49047@if mpfr
22121df0
L
49048 @if test -d $(HOST_SUBDIR)/mpfr; then \
49049 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr; \
49050 mv prev-mpfr stage3-mpfr; : ; \
4b900473
PB
49051 fi
49052@endif mpfr
e8a5fa9c 49053@if mpc
22121df0
L
49054 @if test -d $(HOST_SUBDIR)/mpc; then \
49055 cd $(HOST_SUBDIR); mv mpc stage4-mpc; \
49056 mv prev-mpc stage3-mpc; : ; \
e8a5fa9c
RW
49057 fi
49058@endif mpc
7ec59b9e 49059@if isl
22121df0
L
49060 @if test -d $(HOST_SUBDIR)/isl; then \
49061 cd $(HOST_SUBDIR); mv isl stage4-isl; \
49062 mv prev-isl stage3-isl; : ; \
e28c595f 49063 fi
7ec59b9e 49064@endif isl
1f53ca9a 49065@if libelf
22121df0
L
49066 @if test -d $(HOST_SUBDIR)/libelf; then \
49067 cd $(HOST_SUBDIR); mv libelf stage4-libelf; \
49068 mv prev-libelf stage3-libelf; : ; \
1f53ca9a
AO
49069 fi
49070@endif libelf
93f9b408 49071@if gold
22121df0
L
49072 @if test -d $(HOST_SUBDIR)/gold; then \
49073 cd $(HOST_SUBDIR); mv gold stage4-gold; \
49074 mv prev-gold stage3-gold; : ; \
93f9b408
ILT
49075 fi
49076@endif gold
72b2455a 49077@if intl
22121df0
L
49078 @if test -d $(HOST_SUBDIR)/intl; then \
49079 cd $(HOST_SUBDIR); mv intl stage4-intl; \
49080 mv prev-intl stage3-intl; : ; \
0aed8855 49081 fi
72b2455a
PB
49082@endif intl
49083@if ld
22121df0
L
49084 @if test -d $(HOST_SUBDIR)/ld; then \
49085 cd $(HOST_SUBDIR); mv ld stage4-ld; \
49086 mv prev-ld stage3-ld; : ; \
0aed8855 49087 fi
72b2455a 49088@endif ld
2bf680c4 49089@if libbacktrace
22121df0
L
49090 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49091 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace; \
49092 mv prev-libbacktrace stage3-libbacktrace; : ; \
2bf680c4
ILT
49093 fi
49094@endif libbacktrace
72b2455a 49095@if libcpp
22121df0
L
49096 @if test -d $(HOST_SUBDIR)/libcpp; then \
49097 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp; \
49098 mv prev-libcpp stage3-libcpp; : ; \
0aed8855 49099 fi
72b2455a 49100@endif libcpp
be01d343 49101@if libdecnumber
22121df0
L
49102 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49103 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber; \
49104 mv prev-libdecnumber stage3-libdecnumber; : ; \
0aed8855 49105 fi
be01d343 49106@endif libdecnumber
72b2455a 49107@if libiberty
22121df0
L
49108 @if test -d $(HOST_SUBDIR)/libiberty; then \
49109 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty; \
49110 mv prev-libiberty stage3-libiberty; : ; \
0aed8855 49111 fi
72b2455a 49112@endif libiberty
1b6c0831 49113@if libiberty-linker-plugin
22121df0
L
49114 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49115 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin; \
49116 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin; : ; \
1b6c0831
L
49117 fi
49118@endif libiberty-linker-plugin
016a3251
DD
49119@if libiconv
49120 @if test -d $(HOST_SUBDIR)/libiconv; then \
49121 cd $(HOST_SUBDIR); mv libiconv stage4-libiconv; \
49122 mv prev-libiconv stage3-libiconv; : ; \
49123 fi
49124@endif libiconv
72b2455a 49125@if zlib
22121df0
L
49126 @if test -d $(HOST_SUBDIR)/zlib; then \
49127 cd $(HOST_SUBDIR); mv zlib stage4-zlib; \
49128 mv prev-zlib stage3-zlib; : ; \
0aed8855 49129 fi
72b2455a 49130@endif zlib
700d40ca 49131@if lto-plugin
22121df0
L
49132 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49133 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin; \
49134 mv prev-lto-plugin stage3-lto-plugin; : ; \
700d40ca
ILT
49135 fi
49136@endif lto-plugin
22121df0
L
49137 @if test -d $(TARGET_SUBDIR); then \
49138 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR); \
49139 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); : ; \
0aed8855 49140 fi
80911fe1 49141 rm -f stage_current
72b2455a 49142
973601e1 49143# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 49144# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49145# reconfigured either.
72b2455a
PB
49146.PHONY: stage4-bubble
49147stage4-bubble:: stage3-bubble
e360f423
PB
49148 @r=`${PWD_COMMAND}`; export r; \
49149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49150 if test -f stage4-lean || test -f stage3-lean ; then \
49151 echo Skipping rebuild of stage4; \
9cb3fa6f 49152 else \
f70224b5 49153 $(MAKE) stage4-start; \
80911fe1 49154 if $(LEAN); then \
22121df0
L
49155 rm -rf stage2-*; \
49156 $(STAMP) stage2-lean; \
80911fe1 49157 fi; \
f70224b5 49158 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 49159 fi
f6d183c0 49160 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 49161
0df3d27f 49162.PHONY: all-stage4 clean-stage4
0df3d27f 49163do-clean: clean-stage4
0df3d27f 49164
d545f33b
PB
49165# FIXME: Will not need to be conditional when toplevel bootstrap is the
49166# only possibility, but now it conflicts with no-bootstrap rules
49167@if gcc-bootstrap
72b2455a 49168
d545f33b 49169compare3:
e360f423
PB
49170 @r=`${PWD_COMMAND}`; export r; \
49171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49172 if test -f stage3-lean; then \
22121df0
L
49173 echo Cannot compare object files as stage 3 was deleted.; \
49174 exit 0; \
d545f33b 49175 fi; \
0aed8855 49176 : $(MAKE); $(stage); \
22121df0
L
49177 rm -f .bad_compare; \
49178 echo Comparing stages 3 and 4; \
fda13ee8
AO
49179 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
49180 files=`find stage4-* -name "*$(objext)" -print | \
22121df0
L
49181 sed -n s,^stage$$sed-,,p`; \
49182 for file in $${files}; do \
fda13ee8
AO
49183 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
49184 if test ! -f $$f1; then continue; fi; \
8520c408 49185 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
49186 if test $$? -eq 1; then \
49187 case $$file in \
e8a5fa9c 49188 @compare_exclusions@) \
f70224b5
PB
49189 echo warning: $$file differs ;; \
49190 *) \
49191 echo $$file differs >> .bad_compare ;; \
22121df0
L
49192 esac; \
49193 fi; \
49194 done; \
d545f33b
PB
49195 if [ -f .bad_compare ]; then \
49196 echo "Bootstrap comparison failure!"; \
49197 cat .bad_compare; \
49198 exit 1; \
49199 else \
c52c6897 49200 echo Comparison successful.; \
22121df0 49201 fi; \
d545f33b 49202 $(STAMP) compare3
80911fe1
PB
49203 if $(LEAN); then \
49204 rm -rf stage3-*; \
49205 $(STAMP) stage3-lean; \
49206 fi
9cb3fa6f 49207
72b2455a 49208
72b2455a 49209
80911fe1 49210.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
49211bootstrap4:
49212 echo stage4 > stage_final
49213 @r=`${PWD_COMMAND}`; export r; \
49214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49215 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 49216 @: $(MAKE); $(unstage)
be01d343
PB
49217 @r=`${PWD_COMMAND}`; export r; \
49218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49219 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 49220 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 49221
80911fe1
PB
49222bootstrap4-lean:
49223 echo stage4 > stage_final
49224 @r=`${PWD_COMMAND}`; export r; \
49225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49226 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
49227 @: $(MAKE); $(unstage)
49228 @r=`${PWD_COMMAND}`; export r; \
49229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49230 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
49231 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49232
72b2455a 49233
d545f33b
PB
49234# Rules to wipe a stage and all the following ones, also used for cleanstrap
49235distclean-stage3:: distclean-stage4
49236.PHONY: distclean-stage4
49237distclean-stage4::
0aed8855 49238 @: $(MAKE); $(stage)
e00a73e3 49239 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 49240 rm -rf stage4-* compare3
0df3d27f 49241
9cb3fa6f 49242
d545f33b 49243@endif gcc-bootstrap
72b2455a
PB
49244
49245
49246.PHONY: stageprofile-start stageprofile-end
49247
49248stageprofile-start::
0aed8855 49249 @: $(MAKE); $(stage); \
22121df0 49250 echo stageprofile > stage_current; \
b00612cc 49251 echo stageprofile > stage_last; \
0aed8855 49252 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49253@if bfd
b00612cc
PB
49254 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
49255 mkdir stageprofile-bfd; \
22121df0 49256 mv stageprofile-bfd bfd; \
80911fe1 49257 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
49258@endif bfd
49259@if opcodes
b00612cc
PB
49260 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
49261 mkdir stageprofile-opcodes; \
22121df0 49262 mv stageprofile-opcodes opcodes; \
80911fe1 49263 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
49264@endif opcodes
49265@if binutils
b00612cc
PB
49266 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
49267 mkdir stageprofile-binutils; \
22121df0 49268 mv stageprofile-binutils binutils; \
80911fe1 49269 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 49270@endif binutils
201f096f 49271@if fixincludes
49272 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
49273 mkdir stageprofile-fixincludes; \
22121df0 49274 mv stageprofile-fixincludes fixincludes; \
201f096f 49275 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
49276@endif fixincludes
72b2455a 49277@if gas
b00612cc
PB
49278 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
49279 mkdir stageprofile-gas; \
22121df0 49280 mv stageprofile-gas gas; \
80911fe1 49281 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
49282@endif gas
49283@if gcc
b00612cc
PB
49284 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
49285 mkdir stageprofile-gcc; \
22121df0 49286 mv stageprofile-gcc gcc; \
80911fe1 49287 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 49288@endif gcc
4b900473
PB
49289@if gmp
49290 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
49291 mkdir stageprofile-gmp; \
22121df0 49292 mv stageprofile-gmp gmp; \
4b900473
PB
49293 mv stage1-gmp prev-gmp || test -f stage1-lean
49294@endif gmp
49295@if mpfr
49296 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
49297 mkdir stageprofile-mpfr; \
22121df0 49298 mv stageprofile-mpfr mpfr; \
4b900473
PB
49299 mv stage1-mpfr prev-mpfr || test -f stage1-lean
49300@endif mpfr
e8a5fa9c
RW
49301@if mpc
49302 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
49303 mkdir stageprofile-mpc; \
22121df0 49304 mv stageprofile-mpc mpc; \
e8a5fa9c
RW
49305 mv stage1-mpc prev-mpc || test -f stage1-lean
49306@endif mpc
7ec59b9e
L
49307@if isl
49308 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
49309 mkdir stageprofile-isl; \
22121df0 49310 mv stageprofile-isl isl; \
7ec59b9e
L
49311 mv stage1-isl prev-isl || test -f stage1-lean
49312@endif isl
1f53ca9a
AO
49313@if libelf
49314 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
49315 mkdir stageprofile-libelf; \
22121df0 49316 mv stageprofile-libelf libelf; \
1f53ca9a
AO
49317 mv stage1-libelf prev-libelf || test -f stage1-lean
49318@endif libelf
93f9b408
ILT
49319@if gold
49320 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
49321 mkdir stageprofile-gold; \
22121df0 49322 mv stageprofile-gold gold; \
93f9b408
ILT
49323 mv stage1-gold prev-gold || test -f stage1-lean
49324@endif gold
72b2455a 49325@if intl
b00612cc
PB
49326 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
49327 mkdir stageprofile-intl; \
22121df0 49328 mv stageprofile-intl intl; \
80911fe1 49329 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
49330@endif intl
49331@if ld
b00612cc
PB
49332 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
49333 mkdir stageprofile-ld; \
22121df0 49334 mv stageprofile-ld ld; \
80911fe1 49335 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 49336@endif ld
2bf680c4
ILT
49337@if libbacktrace
49338 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
49339 mkdir stageprofile-libbacktrace; \
22121df0 49340 mv stageprofile-libbacktrace libbacktrace; \
2bf680c4
ILT
49341 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
49342@endif libbacktrace
72b2455a 49343@if libcpp
b00612cc
PB
49344 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
49345 mkdir stageprofile-libcpp; \
22121df0 49346 mv stageprofile-libcpp libcpp; \
80911fe1 49347 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 49348@endif libcpp
be01d343
PB
49349@if libdecnumber
49350 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
49351 mkdir stageprofile-libdecnumber; \
22121df0 49352 mv stageprofile-libdecnumber libdecnumber; \
80911fe1 49353 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 49354@endif libdecnumber
72b2455a 49355@if libiberty
b00612cc
PB
49356 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
49357 mkdir stageprofile-libiberty; \
22121df0 49358 mv stageprofile-libiberty libiberty; \
80911fe1 49359 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 49360@endif libiberty
1b6c0831
L
49361@if libiberty-linker-plugin
49362 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
49363 mkdir stageprofile-libiberty-linker-plugin; \
22121df0 49364 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49365 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
49366@endif libiberty-linker-plugin
016a3251
DD
49367@if libiconv
49368 @cd $(HOST_SUBDIR); [ -d stageprofile-libiconv ] || \
49369 mkdir stageprofile-libiconv; \
49370 mv stageprofile-libiconv libiconv; \
49371 mv stage1-libiconv prev-libiconv || test -f stage1-lean
49372@endif libiconv
72b2455a 49373@if zlib
d545f33b
PB
49374 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
49375 mkdir stageprofile-zlib; \
22121df0 49376 mv stageprofile-zlib zlib; \
80911fe1 49377 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 49378@endif zlib
700d40ca
ILT
49379@if lto-plugin
49380 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
49381 mkdir stageprofile-lto-plugin; \
22121df0 49382 mv stageprofile-lto-plugin lto-plugin; \
700d40ca
ILT
49383 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
49384@endif lto-plugin
0aed8855
PB
49385 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
49386 mkdir stageprofile-$(TARGET_SUBDIR); \
22121df0 49387 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49388 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 49389
80911fe1 49390stageprofile-end::
d545f33b 49391@if bfd
22121df0
L
49392 @if test -d $(HOST_SUBDIR)/bfd; then \
49393 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd; \
49394 mv prev-bfd stage1-bfd; : ; \
0aed8855 49395 fi
d545f33b
PB
49396@endif bfd
49397@if opcodes
22121df0
L
49398 @if test -d $(HOST_SUBDIR)/opcodes; then \
49399 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes; \
49400 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 49401 fi
d545f33b
PB
49402@endif opcodes
49403@if binutils
22121df0
L
49404 @if test -d $(HOST_SUBDIR)/binutils; then \
49405 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils; \
49406 mv prev-binutils stage1-binutils; : ; \
0aed8855 49407 fi
d545f33b 49408@endif binutils
201f096f 49409@if fixincludes
22121df0
L
49410 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49411 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes; \
49412 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 49413 fi
49414@endif fixincludes
d545f33b 49415@if gas
22121df0
L
49416 @if test -d $(HOST_SUBDIR)/gas; then \
49417 cd $(HOST_SUBDIR); mv gas stageprofile-gas; \
49418 mv prev-gas stage1-gas; : ; \
0aed8855 49419 fi
d545f33b
PB
49420@endif gas
49421@if gcc
22121df0
L
49422 @if test -d $(HOST_SUBDIR)/gcc; then \
49423 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc; \
49424 mv prev-gcc stage1-gcc; : ; \
0aed8855 49425 fi
d545f33b 49426@endif gcc
4b900473 49427@if gmp
22121df0
L
49428 @if test -d $(HOST_SUBDIR)/gmp; then \
49429 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp; \
49430 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
49431 fi
49432@endif gmp
49433@if mpfr
22121df0
L
49434 @if test -d $(HOST_SUBDIR)/mpfr; then \
49435 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr; \
49436 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
49437 fi
49438@endif mpfr
e8a5fa9c 49439@if mpc
22121df0
L
49440 @if test -d $(HOST_SUBDIR)/mpc; then \
49441 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc; \
49442 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
49443 fi
49444@endif mpc
7ec59b9e 49445@if isl
22121df0
L
49446 @if test -d $(HOST_SUBDIR)/isl; then \
49447 cd $(HOST_SUBDIR); mv isl stageprofile-isl; \
49448 mv prev-isl stage1-isl; : ; \
e28c595f 49449 fi
7ec59b9e 49450@endif isl
1f53ca9a 49451@if libelf
22121df0
L
49452 @if test -d $(HOST_SUBDIR)/libelf; then \
49453 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf; \
49454 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
49455 fi
49456@endif libelf
93f9b408 49457@if gold
22121df0
L
49458 @if test -d $(HOST_SUBDIR)/gold; then \
49459 cd $(HOST_SUBDIR); mv gold stageprofile-gold; \
49460 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
49461 fi
49462@endif gold
d545f33b 49463@if intl
22121df0
L
49464 @if test -d $(HOST_SUBDIR)/intl; then \
49465 cd $(HOST_SUBDIR); mv intl stageprofile-intl; \
49466 mv prev-intl stage1-intl; : ; \
0aed8855 49467 fi
d545f33b
PB
49468@endif intl
49469@if ld
22121df0
L
49470 @if test -d $(HOST_SUBDIR)/ld; then \
49471 cd $(HOST_SUBDIR); mv ld stageprofile-ld; \
49472 mv prev-ld stage1-ld; : ; \
0aed8855 49473 fi
d545f33b 49474@endif ld
2bf680c4 49475@if libbacktrace
22121df0
L
49476 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49477 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace; \
49478 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
49479 fi
49480@endif libbacktrace
d545f33b 49481@if libcpp
22121df0
L
49482 @if test -d $(HOST_SUBDIR)/libcpp; then \
49483 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp; \
49484 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 49485 fi
d545f33b 49486@endif libcpp
be01d343 49487@if libdecnumber
22121df0
L
49488 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49489 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber; \
49490 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 49491 fi
be01d343 49492@endif libdecnumber
d545f33b 49493@if libiberty
22121df0
L
49494 @if test -d $(HOST_SUBDIR)/libiberty; then \
49495 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty; \
49496 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 49497 fi
d545f33b 49498@endif libiberty
1b6c0831 49499@if libiberty-linker-plugin
22121df0
L
49500 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49501 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin; \
49502 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
49503 fi
49504@endif libiberty-linker-plugin
016a3251
DD
49505@if libiconv
49506 @if test -d $(HOST_SUBDIR)/libiconv; then \
49507 cd $(HOST_SUBDIR); mv libiconv stageprofile-libiconv; \
49508 mv prev-libiconv stage1-libiconv; : ; \
49509 fi
49510@endif libiconv
d545f33b 49511@if zlib
22121df0
L
49512 @if test -d $(HOST_SUBDIR)/zlib; then \
49513 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib; \
49514 mv prev-zlib stage1-zlib; : ; \
0aed8855 49515 fi
d545f33b 49516@endif zlib
700d40ca 49517@if lto-plugin
22121df0
L
49518 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49519 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin; \
49520 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
49521 fi
49522@endif lto-plugin
22121df0
L
49523 @if test -d $(TARGET_SUBDIR); then \
49524 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); \
49525 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 49526 fi
80911fe1 49527 rm -f stage_current
72b2455a 49528
973601e1 49529# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 49530# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49531# reconfigured either.
d545f33b
PB
49532.PHONY: stageprofile-bubble
49533stageprofile-bubble:: stage1-bubble
e360f423
PB
49534 @r=`${PWD_COMMAND}`; export r; \
49535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49536 if test -f stageprofile-lean || test -f stage1-lean ; then \
49537 echo Skipping rebuild of stageprofile; \
d545f33b 49538 else \
f70224b5
PB
49539 $(MAKE) stageprofile-start; \
49540 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 49541 fi
72b2455a 49542
d545f33b
PB
49543.PHONY: all-stageprofile clean-stageprofile
49544do-clean: clean-stageprofile
0df3d27f 49545
72b2455a
PB
49546# FIXME: Will not need to be conditional when toplevel bootstrap is the
49547# only possibility, but now it conflicts with no-bootstrap rules
49548@if gcc-bootstrap
49549
49550
49551
49552
0df3d27f 49553# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49554distclean-stage1:: distclean-stageprofile
0df3d27f 49555.PHONY: distclean-stageprofile
72b2455a 49556distclean-stageprofile::
0aed8855 49557 @: $(MAKE); $(stage)
e00a73e3 49558 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 49559 rm -rf stageprofile-*
dfdffa2c
PB
49560
49561
72b2455a 49562@endif gcc-bootstrap
dfdffa2c
PB
49563
49564
72b2455a 49565.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 49566
72b2455a 49567stagefeedback-start::
0aed8855 49568 @: $(MAKE); $(stage); \
22121df0 49569 echo stagefeedback > stage_current; \
b00612cc 49570 echo stagefeedback > stage_last; \
0aed8855 49571 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49572@if bfd
b00612cc
PB
49573 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
49574 mkdir stagefeedback-bfd; \
22121df0 49575 mv stagefeedback-bfd bfd; \
80911fe1 49576 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
49577@endif bfd
49578@if opcodes
b00612cc
PB
49579 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
49580 mkdir stagefeedback-opcodes; \
22121df0 49581 mv stagefeedback-opcodes opcodes; \
80911fe1 49582 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
49583@endif opcodes
49584@if binutils
b00612cc
PB
49585 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
49586 mkdir stagefeedback-binutils; \
22121df0 49587 mv stagefeedback-binutils binutils; \
80911fe1 49588 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a 49589@endif binutils
201f096f 49590@if fixincludes
49591 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
49592 mkdir stagefeedback-fixincludes; \
22121df0 49593 mv stagefeedback-fixincludes fixincludes; \
201f096f 49594 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
49595@endif fixincludes
72b2455a 49596@if gas
b00612cc
PB
49597 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
49598 mkdir stagefeedback-gas; \
22121df0 49599 mv stagefeedback-gas gas; \
80911fe1 49600 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
49601@endif gas
49602@if gcc
b00612cc
PB
49603 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
49604 mkdir stagefeedback-gcc; \
22121df0 49605 mv stagefeedback-gcc gcc; \
80911fe1 49606 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 49607@endif gcc
4b900473
PB
49608@if gmp
49609 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
49610 mkdir stagefeedback-gmp; \
22121df0 49611 mv stagefeedback-gmp gmp; \
4b900473
PB
49612 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
49613@endif gmp
49614@if mpfr
49615 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
49616 mkdir stagefeedback-mpfr; \
22121df0 49617 mv stagefeedback-mpfr mpfr; \
4b900473
PB
49618 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
49619@endif mpfr
e8a5fa9c
RW
49620@if mpc
49621 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
49622 mkdir stagefeedback-mpc; \
22121df0 49623 mv stagefeedback-mpc mpc; \
e8a5fa9c
RW
49624 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
49625@endif mpc
7ec59b9e
L
49626@if isl
49627 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
49628 mkdir stagefeedback-isl; \
22121df0 49629 mv stagefeedback-isl isl; \
7ec59b9e
L
49630 mv stageprofile-isl prev-isl || test -f stageprofile-lean
49631@endif isl
1f53ca9a
AO
49632@if libelf
49633 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
49634 mkdir stagefeedback-libelf; \
22121df0 49635 mv stagefeedback-libelf libelf; \
1f53ca9a
AO
49636 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
49637@endif libelf
93f9b408
ILT
49638@if gold
49639 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
49640 mkdir stagefeedback-gold; \
22121df0 49641 mv stagefeedback-gold gold; \
93f9b408
ILT
49642 mv stageprofile-gold prev-gold || test -f stageprofile-lean
49643@endif gold
72b2455a 49644@if intl
b00612cc
PB
49645 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
49646 mkdir stagefeedback-intl; \
22121df0 49647 mv stagefeedback-intl intl; \
80911fe1 49648 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
49649@endif intl
49650@if ld
b00612cc
PB
49651 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
49652 mkdir stagefeedback-ld; \
22121df0 49653 mv stagefeedback-ld ld; \
80911fe1 49654 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 49655@endif ld
2bf680c4
ILT
49656@if libbacktrace
49657 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
49658 mkdir stagefeedback-libbacktrace; \
22121df0 49659 mv stagefeedback-libbacktrace libbacktrace; \
2bf680c4
ILT
49660 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
49661@endif libbacktrace
72b2455a 49662@if libcpp
b00612cc
PB
49663 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
49664 mkdir stagefeedback-libcpp; \
22121df0 49665 mv stagefeedback-libcpp libcpp; \
80911fe1 49666 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 49667@endif libcpp
be01d343
PB
49668@if libdecnumber
49669 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
49670 mkdir stagefeedback-libdecnumber; \
22121df0 49671 mv stagefeedback-libdecnumber libdecnumber; \
80911fe1 49672 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 49673@endif libdecnumber
72b2455a 49674@if libiberty
b00612cc
PB
49675 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
49676 mkdir stagefeedback-libiberty; \
22121df0 49677 mv stagefeedback-libiberty libiberty; \
80911fe1 49678 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a 49679@endif libiberty
1b6c0831
L
49680@if libiberty-linker-plugin
49681 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
49682 mkdir stagefeedback-libiberty-linker-plugin; \
22121df0 49683 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49684 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
49685@endif libiberty-linker-plugin
016a3251
DD
49686@if libiconv
49687 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiconv ] || \
49688 mkdir stagefeedback-libiconv; \
49689 mv stagefeedback-libiconv libiconv; \
49690 mv stageprofile-libiconv prev-libiconv || test -f stageprofile-lean
49691@endif libiconv
72b2455a 49692@if zlib
b00612cc
PB
49693 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
49694 mkdir stagefeedback-zlib; \
22121df0 49695 mv stagefeedback-zlib zlib; \
80911fe1 49696 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 49697@endif zlib
700d40ca
ILT
49698@if lto-plugin
49699 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
49700 mkdir stagefeedback-lto-plugin; \
22121df0 49701 mv stagefeedback-lto-plugin lto-plugin; \
700d40ca
ILT
49702 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
49703@endif lto-plugin
0aed8855
PB
49704 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
49705 mkdir stagefeedback-$(TARGET_SUBDIR); \
22121df0 49706 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49707 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 49708
80911fe1 49709stagefeedback-end::
72b2455a 49710@if bfd
22121df0
L
49711 @if test -d $(HOST_SUBDIR)/bfd; then \
49712 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd; \
49713 mv prev-bfd stageprofile-bfd; : ; \
0aed8855 49714 fi
72b2455a
PB
49715@endif bfd
49716@if opcodes
22121df0
L
49717 @if test -d $(HOST_SUBDIR)/opcodes; then \
49718 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes; \
49719 mv prev-opcodes stageprofile-opcodes; : ; \
0aed8855 49720 fi
72b2455a
PB
49721@endif opcodes
49722@if binutils
22121df0
L
49723 @if test -d $(HOST_SUBDIR)/binutils; then \
49724 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils; \
49725 mv prev-binutils stageprofile-binutils; : ; \
0aed8855 49726 fi
72b2455a 49727@endif binutils
201f096f 49728@if fixincludes
22121df0
L
49729 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49730 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes; \
49731 mv prev-fixincludes stageprofile-fixincludes; : ; \
201f096f 49732 fi
49733@endif fixincludes
72b2455a 49734@if gas
22121df0
L
49735 @if test -d $(HOST_SUBDIR)/gas; then \
49736 cd $(HOST_SUBDIR); mv gas stagefeedback-gas; \
49737 mv prev-gas stageprofile-gas; : ; \
0aed8855 49738 fi
72b2455a
PB
49739@endif gas
49740@if gcc
22121df0
L
49741 @if test -d $(HOST_SUBDIR)/gcc; then \
49742 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc; \
49743 mv prev-gcc stageprofile-gcc; : ; \
0aed8855 49744 fi
72b2455a 49745@endif gcc
4b900473 49746@if gmp
22121df0
L
49747 @if test -d $(HOST_SUBDIR)/gmp; then \
49748 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp; \
49749 mv prev-gmp stageprofile-gmp; : ; \
4b900473
PB
49750 fi
49751@endif gmp
49752@if mpfr
22121df0
L
49753 @if test -d $(HOST_SUBDIR)/mpfr; then \
49754 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr; \
49755 mv prev-mpfr stageprofile-mpfr; : ; \
4b900473
PB
49756 fi
49757@endif mpfr
e8a5fa9c 49758@if mpc
22121df0
L
49759 @if test -d $(HOST_SUBDIR)/mpc; then \
49760 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc; \
49761 mv prev-mpc stageprofile-mpc; : ; \
e8a5fa9c
RW
49762 fi
49763@endif mpc
7ec59b9e 49764@if isl
22121df0
L
49765 @if test -d $(HOST_SUBDIR)/isl; then \
49766 cd $(HOST_SUBDIR); mv isl stagefeedback-isl; \
49767 mv prev-isl stageprofile-isl; : ; \
e28c595f 49768 fi
7ec59b9e 49769@endif isl
1f53ca9a 49770@if libelf
22121df0
L
49771 @if test -d $(HOST_SUBDIR)/libelf; then \
49772 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf; \
49773 mv prev-libelf stageprofile-libelf; : ; \
1f53ca9a
AO
49774 fi
49775@endif libelf
93f9b408 49776@if gold
22121df0
L
49777 @if test -d $(HOST_SUBDIR)/gold; then \
49778 cd $(HOST_SUBDIR); mv gold stagefeedback-gold; \
49779 mv prev-gold stageprofile-gold; : ; \
93f9b408
ILT
49780 fi
49781@endif gold
72b2455a 49782@if intl
22121df0
L
49783 @if test -d $(HOST_SUBDIR)/intl; then \
49784 cd $(HOST_SUBDIR); mv intl stagefeedback-intl; \
49785 mv prev-intl stageprofile-intl; : ; \
0aed8855 49786 fi
72b2455a
PB
49787@endif intl
49788@if ld
22121df0
L
49789 @if test -d $(HOST_SUBDIR)/ld; then \
49790 cd $(HOST_SUBDIR); mv ld stagefeedback-ld; \
49791 mv prev-ld stageprofile-ld; : ; \
0aed8855 49792 fi
72b2455a 49793@endif ld
2bf680c4 49794@if libbacktrace
22121df0
L
49795 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49796 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace; \
49797 mv prev-libbacktrace stageprofile-libbacktrace; : ; \
2bf680c4
ILT
49798 fi
49799@endif libbacktrace
72b2455a 49800@if libcpp
22121df0
L
49801 @if test -d $(HOST_SUBDIR)/libcpp; then \
49802 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp; \
49803 mv prev-libcpp stageprofile-libcpp; : ; \
0aed8855 49804 fi
72b2455a 49805@endif libcpp
be01d343 49806@if libdecnumber
22121df0
L
49807 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49808 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber; \
49809 mv prev-libdecnumber stageprofile-libdecnumber; : ; \
0aed8855 49810 fi
be01d343 49811@endif libdecnumber
72b2455a 49812@if libiberty
22121df0
L
49813 @if test -d $(HOST_SUBDIR)/libiberty; then \
49814 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty; \
49815 mv prev-libiberty stageprofile-libiberty; : ; \
0aed8855 49816 fi
72b2455a 49817@endif libiberty
1b6c0831 49818@if libiberty-linker-plugin
22121df0
L
49819 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49820 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin; \
49821 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin; : ; \
1b6c0831
L
49822 fi
49823@endif libiberty-linker-plugin
016a3251
DD
49824@if libiconv
49825 @if test -d $(HOST_SUBDIR)/libiconv; then \
49826 cd $(HOST_SUBDIR); mv libiconv stagefeedback-libiconv; \
49827 mv prev-libiconv stageprofile-libiconv; : ; \
49828 fi
49829@endif libiconv
72b2455a 49830@if zlib
22121df0
L
49831 @if test -d $(HOST_SUBDIR)/zlib; then \
49832 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib; \
49833 mv prev-zlib stageprofile-zlib; : ; \
0aed8855 49834 fi
72b2455a 49835@endif zlib
700d40ca 49836@if lto-plugin
22121df0
L
49837 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49838 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin; \
49839 mv prev-lto-plugin stageprofile-lto-plugin; : ; \
700d40ca
ILT
49840 fi
49841@endif lto-plugin
22121df0
L
49842 @if test -d $(TARGET_SUBDIR); then \
49843 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR); \
49844 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); : ; \
0aed8855 49845 fi
80911fe1 49846 rm -f stage_current
dfdffa2c 49847
973601e1 49848# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 49849# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49850# reconfigured either.
72b2455a 49851.PHONY: stagefeedback-bubble
7d329e61 49852stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
49853 @r=`${PWD_COMMAND}`; export r; \
49854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49855 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
49856 echo Skipping rebuild of stagefeedback; \
9cb3fa6f 49857 else \
f70224b5
PB
49858 $(MAKE) stagefeedback-start; \
49859 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 49860 fi
72b2455a 49861
0df3d27f 49862.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 49863do-clean: clean-stagefeedback
0df3d27f 49864
72b2455a
PB
49865# FIXME: Will not need to be conditional when toplevel bootstrap is the
49866# only possibility, but now it conflicts with no-bootstrap rules
49867@if gcc-bootstrap
656fdd47
PB
49868
49869
49870
80911fe1 49871.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
49872profiledbootstrap:
49873 echo stagefeedback > stage_final
49874 @r=`${PWD_COMMAND}`; export r; \
49875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49876 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 49877 @: $(MAKE); $(unstage)
be01d343
PB
49878 @r=`${PWD_COMMAND}`; export r; \
49879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49880 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 49881 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 49882
80911fe1
PB
49883profiledbootstrap-lean:
49884 echo stagefeedback > stage_final
49885 @r=`${PWD_COMMAND}`; export r; \
49886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49887 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
49888 @: $(MAKE); $(unstage)
49889 @r=`${PWD_COMMAND}`; export r; \
49890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49891 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
49892 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49893
656fdd47 49894
0df3d27f 49895# Rules to wipe a stage and all the following ones, also used for cleanstrap
7d329e61 49896distclean-stageprofile:: distclean-stagefeedback
0df3d27f 49897.PHONY: distclean-stagefeedback
656fdd47 49898distclean-stagefeedback::
0aed8855 49899 @: $(MAKE); $(stage)
e00a73e3 49900 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 49901 rm -rf stagefeedback-*
656fdd47
PB
49902
49903
72b2455a 49904@endif gcc-bootstrap
656fdd47
PB
49905
49906
49907
7d329e61
PB
49908stageprofile-end::
49909 $(MAKE) distclean-stagefeedback
656fdd47 49910
7d329e61 49911stagefeedback-start::
656fdd47
PB
49912 @r=`${PWD_COMMAND}`; export r; \
49913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61 49914 for i in prev-*; do \
22121df0 49915 j=`echo $$i | sed s/^prev-//`; \
7d329e61 49916 cd $$r/$$i && \
22121df0
L
49917 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL); } && \
49918 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL); }; \
7d329e61 49919 done
b8908782 49920
0df3d27f 49921@if gcc-bootstrap
0df3d27f 49922do-distclean: distclean-stage1
c52c6897
PB
49923
49924# Provide a GCC build when we're building target libraries. This does
49925# not work as a dependency, just as the minimum necessary to avoid errors.
49926stage_last:
314b2e66
AS
49927 @r=`${PWD_COMMAND}`; export r; \
49928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 49929 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 49930
4f0ef2d8
CD
49931# Same as unstage, but not phony and defaulting to stage1-start. We place
49932# it in the dependency so that for example `make -j3 all-gcc' works.
49933stage_current:
49934 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
49935
c52c6897 49936.PHONY: restrap
266df637 49937restrap::
c52c6897 49938 @: $(MAKE); $(stage)
1b05fbbd 49939 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 49940restrap:: all
c380fdd8 49941@endif gcc-bootstrap
c52c6897 49942
ae831be5
NN
49943# --------------------------------------
49944# Dependencies between different modules
49945# --------------------------------------
252b5132 49946
9e6ce191 49947# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 49948@if gcc-bootstrap
e8a5fa9c
RW
49949configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
49950configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
49951configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
49952configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
49953configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
49954configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
49955configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
49956configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
49957configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
49958configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
49959configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
49960configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
1b6c0831
L
49961configure-stage1-target-libmpx: maybe-all-stage1-gcc
49962configure-stage2-target-libmpx: maybe-all-stage2-gcc
49963configure-stage3-target-libmpx: maybe-all-stage3-gcc
49964configure-stage4-target-libmpx: maybe-all-stage4-gcc
49965configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
49966configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
95e43135
JBG
49967configure-stage1-target-libvtv: maybe-all-stage1-gcc
49968configure-stage2-target-libvtv: maybe-all-stage2-gcc
49969configure-stage3-target-libvtv: maybe-all-stage3-gcc
49970configure-stage4-target-libvtv: maybe-all-stage4-gcc
49971configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
49972configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
522e3d71 49973configure-target-libcilkrts: stage_last
1b6c0831 49974configure-target-liboffloadmic: stage_last
c52c6897 49975configure-target-libssp: stage_last
c52c6897 49976configure-target-newlib: stage_last
6aa8ef82
DJ
49977configure-stage1-target-libgcc: maybe-all-stage1-gcc
49978configure-stage2-target-libgcc: maybe-all-stage2-gcc
49979configure-stage3-target-libgcc: maybe-all-stage3-gcc
49980configure-stage4-target-libgcc: maybe-all-stage4-gcc
49981configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
49982configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 49983configure-target-libbacktrace: stage_last
e552509b 49984configure-target-libquadmath: stage_last
c52c6897
PB
49985configure-target-libgfortran: stage_last
49986configure-target-libobjc: stage_last
e552509b 49987configure-target-libgo: stage_last
c52c6897
PB
49988configure-target-libtermcap: stage_last
49989configure-target-winsup: stage_last
49990configure-target-libgloss: stage_last
c52c6897
PB
49991configure-target-libffi: stage_last
49992configure-target-libjava: stage_last
49993configure-target-zlib: stage_last
49994configure-target-boehm-gc: stage_last
c52c6897
PB
49995configure-target-rda: stage_last
49996configure-target-libada: stage_last
911e63d0
JR
49997configure-stage1-target-libgomp: maybe-all-stage1-gcc
49998configure-stage2-target-libgomp: maybe-all-stage2-gcc
49999configure-stage3-target-libgomp: maybe-all-stage3-gcc
50000configure-stage4-target-libgomp: maybe-all-stage4-gcc
50001configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
50002configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
50003configure-target-libitm: stage_last
50004configure-target-libatomic: stage_last
c52c6897 50005@endif gcc-bootstrap
9e6ce191 50006
c52c6897 50007@if gcc-no-bootstrap
9e6ce191 50008configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 50009configure-target-libsanitizer: maybe-all-gcc
1b6c0831 50010configure-target-libmpx: maybe-all-gcc
95e43135 50011configure-target-libvtv: maybe-all-gcc
e78e02e6 50012configure-target-libcilkrts: maybe-all-gcc
1b6c0831 50013configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 50014configure-target-libssp: maybe-all-gcc
9e6ce191 50015configure-target-newlib: maybe-all-gcc
6aa8ef82 50016configure-target-libgcc: maybe-all-gcc
2bf680c4 50017configure-target-libbacktrace: maybe-all-gcc
e552509b 50018configure-target-libquadmath: maybe-all-gcc
9e6ce191 50019configure-target-libgfortran: maybe-all-gcc
9e6ce191 50020configure-target-libobjc: maybe-all-gcc
e552509b 50021configure-target-libgo: maybe-all-gcc
9e6ce191 50022configure-target-libtermcap: maybe-all-gcc
9e6ce191 50023configure-target-winsup: maybe-all-gcc
9e6ce191 50024configure-target-libgloss: maybe-all-gcc
9e6ce191 50025configure-target-libffi: maybe-all-gcc
9e6ce191 50026configure-target-libjava: maybe-all-gcc
9e6ce191 50027configure-target-zlib: maybe-all-gcc
9e6ce191 50028configure-target-boehm-gc: maybe-all-gcc
9e6ce191 50029configure-target-rda: maybe-all-gcc
9e6ce191 50030configure-target-libada: maybe-all-gcc
b3ded179 50031configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
50032configure-target-libitm: maybe-all-gcc
50033configure-target-libatomic: maybe-all-gcc
c52c6897 50034@endif gcc-no-bootstrap
b3ded179 50035
9e6ce191 50036
ae831be5
NN
50037# There are two types of dependencies here: 'hard' dependencies, where one
50038# module simply won't build without the other; and 'soft' dependencies, where
50039# if the depended-on module is missing, the depending module will do without
50040# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 50041# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
50042# it's safer to use a soft dependency.
50043
9e6ce191
PB
50044
50045
50046
50047
c60fe18b 50048
9e6ce191
PB
50049# With all the machinery above in place, it is pretty easy to generate
50050# dependencies. Host dependencies are a bit more complex because we have
50051# to check for bootstrap/prebootstrap dependencies. To resolve
50052# prebootstrap dependencies, prebootstrap modules are gathered in
50053# a hash table.
6a9cf61e
PB
50054all-build-bison: maybe-all-build-texinfo
50055all-build-flex: maybe-all-build-texinfo
9e6ce191 50056all-build-flex: maybe-all-build-bison
9e6ce191 50057all-build-flex: maybe-all-build-m4
6a9cf61e 50058all-build-libiberty: maybe-all-build-texinfo
9e6ce191 50059all-build-m4: maybe-all-build-texinfo
ee025550 50060all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 50061all-build-libcpp: maybe-all-build-libiberty
9e6ce191
PB
50062configure-gcc: maybe-configure-intl
50063
50064configure-stage1-gcc: maybe-configure-stage1-intl
50065configure-stage2-gcc: maybe-configure-stage2-intl
50066configure-stage3-gcc: maybe-configure-stage3-intl
50067configure-stage4-gcc: maybe-configure-stage4-intl
50068configure-stageprofile-gcc: maybe-configure-stageprofile-intl
50069configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8
L
50070configure-gcc: maybe-all-gmp
50071
50072configure-stage1-gcc: maybe-all-stage1-gmp
50073configure-stage2-gcc: maybe-all-stage2-gmp
50074configure-stage3-gcc: maybe-all-stage3-gmp
50075configure-stage4-gcc: maybe-all-stage4-gmp
50076configure-stageprofile-gcc: maybe-all-stageprofile-gmp
50077configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
1b6c0831
L
50078configure-gcc: maybe-all-mpfr
50079
50080configure-stage1-gcc: maybe-all-stage1-mpfr
50081configure-stage2-gcc: maybe-all-stage2-mpfr
50082configure-stage3-gcc: maybe-all-stage3-mpfr
50083configure-stage4-gcc: maybe-all-stage4-mpfr
50084configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
50085configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
50086configure-gcc: maybe-all-mpc
50087
50088configure-stage1-gcc: maybe-all-stage1-mpc
50089configure-stage2-gcc: maybe-all-stage2-mpc
50090configure-stage3-gcc: maybe-all-stage3-mpc
50091configure-stage4-gcc: maybe-all-stage4-mpc
50092configure-stageprofile-gcc: maybe-all-stageprofile-mpc
50093configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
50094configure-gcc: maybe-all-isl
50095
50096configure-stage1-gcc: maybe-all-stage1-isl
50097configure-stage2-gcc: maybe-all-stage2-isl
50098configure-stage3-gcc: maybe-all-stage3-isl
50099configure-stage4-gcc: maybe-all-stage4-isl
50100configure-stageprofile-gcc: maybe-all-stageprofile-isl
50101configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
8d8eef9a
RW
50102configure-gcc: maybe-all-lto-plugin
50103
50104configure-stage1-gcc: maybe-all-stage1-lto-plugin
50105configure-stage2-gcc: maybe-all-stage2-lto-plugin
50106configure-stage3-gcc: maybe-all-stage3-lto-plugin
50107configure-stage4-gcc: maybe-all-stage4-lto-plugin
50108configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
50109configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b
PB
50110configure-gcc: maybe-all-binutils
50111
50112configure-stage1-gcc: maybe-all-stage1-binutils
50113configure-stage2-gcc: maybe-all-stage2-binutils
50114configure-stage3-gcc: maybe-all-stage3-binutils
50115configure-stage4-gcc: maybe-all-stage4-binutils
50116configure-stageprofile-gcc: maybe-all-stageprofile-binutils
50117configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
50118configure-gcc: maybe-all-gas
50119
50120configure-stage1-gcc: maybe-all-stage1-gas
50121configure-stage2-gcc: maybe-all-stage2-gas
50122configure-stage3-gcc: maybe-all-stage3-gas
50123configure-stage4-gcc: maybe-all-stage4-gas
50124configure-stageprofile-gcc: maybe-all-stageprofile-gas
50125configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
50126configure-gcc: maybe-all-ld
50127
50128configure-stage1-gcc: maybe-all-stage1-ld
50129configure-stage2-gcc: maybe-all-stage2-ld
50130configure-stage3-gcc: maybe-all-stage3-ld
50131configure-stage4-gcc: maybe-all-stage4-ld
50132configure-stageprofile-gcc: maybe-all-stageprofile-ld
50133configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408
ILT
50134configure-gcc: maybe-all-gold
50135
50136configure-stage1-gcc: maybe-all-stage1-gold
50137configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 50138configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
50139configure-stage4-gcc: maybe-all-stage4-gold
50140configure-stageprofile-gcc: maybe-all-stageprofile-gold
50141configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480
AO
50142configure-gcc: maybe-all-libelf
50143
50144configure-stage1-gcc: maybe-all-stage1-libelf
50145configure-stage2-gcc: maybe-all-stage2-libelf
50146configure-stage3-gcc: maybe-all-stage3-libelf
50147configure-stage4-gcc: maybe-all-stage4-libelf
50148configure-stageprofile-gcc: maybe-all-stageprofile-libelf
50149configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
016a3251
DD
50150configure-gcc: maybe-all-libiconv
50151
50152configure-stage1-gcc: maybe-all-stage1-libiconv
50153configure-stage2-gcc: maybe-all-stage2-libiconv
50154configure-stage3-gcc: maybe-all-stage3-libiconv
50155configure-stage4-gcc: maybe-all-stage4-libiconv
50156configure-stageprofile-gcc: maybe-all-stageprofile-libiconv
50157configure-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
9e6ce191
PB
50158all-gcc: all-libiberty
50159
50160all-stage1-gcc: all-stage1-libiberty
50161all-stage2-gcc: all-stage2-libiberty
50162all-stage3-gcc: all-stage3-libiberty
50163all-stage4-gcc: all-stage4-libiberty
50164all-stageprofile-gcc: all-stageprofile-libiberty
50165all-stagefeedback-gcc: all-stagefeedback-libiberty
50166all-gcc: maybe-all-intl
50167
50168all-stage1-gcc: maybe-all-stage1-intl
50169all-stage2-gcc: maybe-all-stage2-intl
50170all-stage3-gcc: maybe-all-stage3-intl
50171all-stage4-gcc: maybe-all-stage4-intl
50172all-stageprofile-gcc: maybe-all-stageprofile-intl
50173all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473
PB
50174all-gcc: maybe-all-mpfr
50175
50176all-stage1-gcc: maybe-all-stage1-mpfr
50177all-stage2-gcc: maybe-all-stage2-mpfr
50178all-stage3-gcc: maybe-all-stage3-mpfr
50179all-stage4-gcc: maybe-all-stage4-mpfr
50180all-stageprofile-gcc: maybe-all-stageprofile-mpfr
50181all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c
RW
50182all-gcc: maybe-all-mpc
50183
50184all-stage1-gcc: maybe-all-stage1-mpc
50185all-stage2-gcc: maybe-all-stage2-mpc
50186all-stage3-gcc: maybe-all-stage3-mpc
50187all-stage4-gcc: maybe-all-stage4-mpc
50188all-stageprofile-gcc: maybe-all-stageprofile-mpc
50189all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
1b6c0831
L
50190all-gcc: maybe-all-isl
50191
50192all-stage1-gcc: maybe-all-stage1-isl
50193all-stage2-gcc: maybe-all-stage2-isl
50194all-stage3-gcc: maybe-all-stage3-isl
50195all-stage4-gcc: maybe-all-stage4-isl
50196all-stageprofile-gcc: maybe-all-stageprofile-isl
50197all-stagefeedback-gcc: maybe-all-stagefeedback-isl
72b2455a
PB
50198all-gcc: maybe-all-build-texinfo
50199
50200all-stage1-gcc: maybe-all-build-texinfo
50201all-stage2-gcc: maybe-all-build-texinfo
50202all-stage3-gcc: maybe-all-build-texinfo
50203all-stage4-gcc: maybe-all-build-texinfo
50204all-stageprofile-gcc: maybe-all-build-texinfo
50205all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a
PB
50206all-gcc: maybe-all-build-bison
50207
50208all-stage1-gcc: maybe-all-build-bison
50209all-stage2-gcc: maybe-all-build-bison
50210all-stage3-gcc: maybe-all-build-bison
50211all-stage4-gcc: maybe-all-build-bison
50212all-stageprofile-gcc: maybe-all-build-bison
50213all-stagefeedback-gcc: maybe-all-build-bison
72b2455a
PB
50214all-gcc: maybe-all-build-flex
50215
50216all-stage1-gcc: maybe-all-build-flex
50217all-stage2-gcc: maybe-all-build-flex
50218all-stage3-gcc: maybe-all-build-flex
50219all-stage4-gcc: maybe-all-build-flex
50220all-stageprofile-gcc: maybe-all-build-flex
50221all-stagefeedback-gcc: maybe-all-build-flex
ee025550
PB
50222all-gcc: maybe-all-build-libiberty
50223
50224all-stage1-gcc: maybe-all-build-libiberty
50225all-stage2-gcc: maybe-all-build-libiberty
50226all-stage3-gcc: maybe-all-build-libiberty
50227all-stage4-gcc: maybe-all-build-libiberty
50228all-stageprofile-gcc: maybe-all-build-libiberty
50229all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550
PB
50230all-gcc: maybe-all-build-fixincludes
50231
50232all-stage1-gcc: maybe-all-build-fixincludes
50233all-stage2-gcc: maybe-all-build-fixincludes
50234all-stage3-gcc: maybe-all-build-fixincludes
50235all-stage4-gcc: maybe-all-build-fixincludes
50236all-stageprofile-gcc: maybe-all-build-fixincludes
50237all-stagefeedback-gcc: maybe-all-build-fixincludes
1b6c0831
L
50238all-gcc: maybe-all-build-libcpp
50239
50240all-stage1-gcc: maybe-all-build-libcpp
50241all-stage2-gcc: maybe-all-build-libcpp
50242all-stage3-gcc: maybe-all-build-libcpp
50243all-stage4-gcc: maybe-all-build-libcpp
50244all-stageprofile-gcc: maybe-all-build-libcpp
50245all-stagefeedback-gcc: maybe-all-build-libcpp
9e6ce191
PB
50246all-gcc: maybe-all-zlib
50247
50248all-stage1-gcc: maybe-all-stage1-zlib
50249all-stage2-gcc: maybe-all-stage2-zlib
50250all-stage3-gcc: maybe-all-stage3-zlib
50251all-stage4-gcc: maybe-all-stage4-zlib
50252all-stageprofile-gcc: maybe-all-stageprofile-zlib
50253all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b
L
50254all-gcc: all-libbacktrace
50255
50256all-stage1-gcc: all-stage1-libbacktrace
50257all-stage2-gcc: all-stage2-libbacktrace
50258all-stage3-gcc: all-stage3-libbacktrace
50259all-stage4-gcc: all-stage4-libbacktrace
50260all-stageprofile-gcc: all-stageprofile-libbacktrace
50261all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191
PB
50262all-gcc: all-libcpp
50263
50264all-stage1-gcc: all-stage1-libcpp
50265all-stage2-gcc: all-stage2-libcpp
50266all-stage3-gcc: all-stage3-libcpp
50267all-stage4-gcc: all-stage4-libcpp
50268all-stageprofile-gcc: all-stageprofile-libcpp
50269all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343
PB
50270all-gcc: all-libdecnumber
50271
50272all-stage1-gcc: all-stage1-libdecnumber
50273all-stage2-gcc: all-stage2-libdecnumber
50274all-stage3-gcc: all-stage3-libdecnumber
50275all-stage4-gcc: all-stage4-libdecnumber
50276all-stageprofile-gcc: all-stageprofile-libdecnumber
50277all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c
GK
50278all-gcc: maybe-all-libiberty
50279
50280all-stage1-gcc: maybe-all-stage1-libiberty
50281all-stage2-gcc: maybe-all-stage2-libiberty
50282all-stage3-gcc: maybe-all-stage3-libiberty
50283all-stage4-gcc: maybe-all-stage4-libiberty
50284all-stageprofile-gcc: maybe-all-stageprofile-libiberty
50285all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
50286all-gcc: maybe-all-fixincludes
201f096f 50287
50288all-stage1-gcc: maybe-all-stage1-fixincludes
50289all-stage2-gcc: maybe-all-stage2-fixincludes
50290all-stage3-gcc: maybe-all-stage3-fixincludes
50291all-stage4-gcc: maybe-all-stage4-fixincludes
50292all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
50293all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
8d8eef9a
RW
50294all-gcc: maybe-all-lto-plugin
50295
50296all-stage1-gcc: maybe-all-stage1-lto-plugin
50297all-stage2-gcc: maybe-all-stage2-lto-plugin
50298all-stage3-gcc: maybe-all-stage3-lto-plugin
50299all-stage4-gcc: maybe-all-stage4-lto-plugin
50300all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
50301all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
016a3251
DD
50302all-gcc: maybe-all-libiconv
50303
50304all-stage1-gcc: maybe-all-stage1-libiconv
50305all-stage2-gcc: maybe-all-stage2-libiconv
50306all-stage3-gcc: maybe-all-stage3-libiconv
50307all-stage4-gcc: maybe-all-stage4-libiconv
50308all-stageprofile-gcc: maybe-all-stageprofile-libiconv
50309all-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
57eefe4d
RW
50310info-gcc: maybe-all-build-libiberty
50311
50312info-stage1-gcc: maybe-all-build-libiberty
50313info-stage2-gcc: maybe-all-build-libiberty
50314info-stage3-gcc: maybe-all-build-libiberty
50315info-stage4-gcc: maybe-all-build-libiberty
50316info-stageprofile-gcc: maybe-all-build-libiberty
50317info-stagefeedback-gcc: maybe-all-build-libiberty
50318dvi-gcc: maybe-all-build-libiberty
50319
50320dvi-stage1-gcc: maybe-all-build-libiberty
50321dvi-stage2-gcc: maybe-all-build-libiberty
50322dvi-stage3-gcc: maybe-all-build-libiberty
50323dvi-stage4-gcc: maybe-all-build-libiberty
50324dvi-stageprofile-gcc: maybe-all-build-libiberty
50325dvi-stagefeedback-gcc: maybe-all-build-libiberty
50326pdf-gcc: maybe-all-build-libiberty
50327
50328pdf-stage1-gcc: maybe-all-build-libiberty
50329pdf-stage2-gcc: maybe-all-build-libiberty
50330pdf-stage3-gcc: maybe-all-build-libiberty
50331pdf-stage4-gcc: maybe-all-build-libiberty
50332pdf-stageprofile-gcc: maybe-all-build-libiberty
50333pdf-stagefeedback-gcc: maybe-all-build-libiberty
50334html-gcc: maybe-all-build-libiberty
50335
50336html-stage1-gcc: maybe-all-build-libiberty
50337html-stage2-gcc: maybe-all-build-libiberty
50338html-stage3-gcc: maybe-all-build-libiberty
50339html-stage4-gcc: maybe-all-build-libiberty
50340html-stageprofile-gcc: maybe-all-build-libiberty
50341html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 50342install-gcc: maybe-install-fixincludes
8d8eef9a 50343install-gcc: maybe-install-lto-plugin
9b980aa1 50344install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 50345install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191
PB
50346configure-libcpp: configure-libiberty
50347
50348configure-stage1-libcpp: configure-stage1-libiberty
50349configure-stage2-libcpp: configure-stage2-libiberty
50350configure-stage3-libcpp: configure-stage3-libiberty
50351configure-stage4-libcpp: configure-stage4-libiberty
50352configure-stageprofile-libcpp: configure-stageprofile-libiberty
50353configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
50354configure-libcpp: maybe-configure-intl
50355
50356configure-stage1-libcpp: maybe-configure-stage1-intl
50357configure-stage2-libcpp: maybe-configure-stage2-intl
50358configure-stage3-libcpp: maybe-configure-stage3-intl
50359configure-stage4-libcpp: maybe-configure-stage4-intl
50360configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
50361configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
016a3251
DD
50362configure-libcpp: maybe-all-libiconv
50363
50364configure-stage1-libcpp: maybe-all-stage1-libiconv
50365configure-stage2-libcpp: maybe-all-stage2-libiconv
50366configure-stage3-libcpp: maybe-all-stage3-libiconv
50367configure-stage4-libcpp: maybe-all-stage4-libiconv
50368configure-stageprofile-libcpp: maybe-all-stageprofile-libiconv
50369configure-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
9e6ce191
PB
50370all-libcpp: all-libiberty
50371
50372all-stage1-libcpp: all-stage1-libiberty
50373all-stage2-libcpp: all-stage2-libiberty
50374all-stage3-libcpp: all-stage3-libiberty
50375all-stage4-libcpp: all-stage4-libiberty
50376all-stageprofile-libcpp: all-stageprofile-libiberty
50377all-stagefeedback-libcpp: all-stagefeedback-libiberty
50378all-libcpp: maybe-all-intl
50379
50380all-stage1-libcpp: maybe-all-stage1-intl
50381all-stage2-libcpp: maybe-all-stage2-intl
50382all-stage3-libcpp: maybe-all-stage3-intl
50383all-stage4-libcpp: maybe-all-stage4-intl
50384all-stageprofile-libcpp: maybe-all-stageprofile-intl
50385all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
016a3251
DD
50386all-libcpp: maybe-all-libiconv
50387
50388all-stage1-libcpp: maybe-all-stage1-libiconv
50389all-stage2-libcpp: maybe-all-stage2-libiconv
50390all-stage3-libcpp: maybe-all-stage3-libiconv
50391all-stage4-libcpp: maybe-all-stage4-libiconv
50392all-stageprofile-libcpp: maybe-all-stageprofile-libiconv
50393all-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
d3ed111c 50394all-fixincludes: maybe-all-libiberty
201f096f 50395
50396all-stage1-fixincludes: maybe-all-stage1-libiberty
50397all-stage2-fixincludes: maybe-all-stage2-libiberty
50398all-stage3-fixincludes: maybe-all-stage3-libiberty
50399all-stage4-fixincludes: maybe-all-stage4-libiberty
50400all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
50401all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
b00612cc 50402all-gnattools: maybe-all-target-libada
50f80006 50403all-gnattools: maybe-all-target-libstdc++-v3
8d8eef9a
RW
50404all-lto-plugin: maybe-all-libiberty
50405
50406all-stage1-lto-plugin: maybe-all-stage1-libiberty
50407all-stage2-lto-plugin: maybe-all-stage2-libiberty
50408all-stage3-lto-plugin: maybe-all-stage3-libiberty
50409all-stage4-lto-plugin: maybe-all-stage4-libiberty
50410all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
50411all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
1b6c0831
L
50412all-lto-plugin: maybe-all-libiberty-linker-plugin
50413
50414all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
50415all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
50416all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
50417all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
50418all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
50419all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
50420configure-libcc1: maybe-configure-gcc
50421all-libcc1: maybe-all-gcc
50422all-gotools: maybe-all-target-libgo
28d9b232 50423all-utils: maybe-all-libiberty
016a3251
DD
50424configure-intl: maybe-all-libiconv
50425
50426configure-stage1-intl: maybe-all-stage1-libiconv
50427configure-stage2-intl: maybe-all-stage2-libiconv
50428configure-stage3-intl: maybe-all-stage3-libiconv
50429configure-stage4-intl: maybe-all-stage4-libiconv
50430configure-stageprofile-intl: maybe-all-stageprofile-libiconv
50431configure-stagefeedback-intl: maybe-all-stagefeedback-libiconv
4b900473
PB
50432configure-mpfr: maybe-all-gmp
50433
50434configure-stage1-mpfr: maybe-all-stage1-gmp
50435configure-stage2-mpfr: maybe-all-stage2-gmp
50436configure-stage3-mpfr: maybe-all-stage3-gmp
50437configure-stage4-mpfr: maybe-all-stage4-gmp
50438configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
50439configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c
RW
50440configure-mpc: maybe-all-mpfr
50441
50442configure-stage1-mpc: maybe-all-stage1-mpfr
50443configure-stage2-mpc: maybe-all-stage2-mpfr
50444configure-stage3-mpc: maybe-all-stage3-mpfr
50445configure-stage4-mpc: maybe-all-stage4-mpfr
50446configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
50447configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e
L
50448configure-isl: maybe-all-gmp
50449
50450configure-stage1-isl: maybe-all-stage1-gmp
50451configure-stage2-isl: maybe-all-stage2-gmp
50452configure-stage3-isl: maybe-all-stage3-gmp
50453configure-stage4-isl: maybe-all-stage4-gmp
50454configure-stageprofile-isl: maybe-all-stageprofile-gmp
50455configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
016a3251
DD
50456all-intl: maybe-all-libiconv
50457
50458all-stage1-intl: maybe-all-stage1-libiconv
50459all-stage2-intl: maybe-all-stage2-libiconv
50460all-stage3-intl: maybe-all-stage3-libiconv
50461all-stage4-intl: maybe-all-stage4-libiconv
50462all-stageprofile-intl: maybe-all-stageprofile-libiconv
50463all-stagefeedback-intl: maybe-all-stagefeedback-libiconv
7b3200f9 50464configure-gdb: maybe-all-intl
9e6ce191 50465configure-gdb: maybe-configure-sim
31d99776 50466configure-gdb: maybe-all-bfd
dc448a7b 50467configure-gdb: maybe-all-libiconv
9e6ce191 50468all-gdb: maybe-all-libiberty
dc448a7b 50469all-gdb: maybe-all-libiconv
9e6ce191 50470all-gdb: maybe-all-opcodes
9e6ce191 50471all-gdb: maybe-all-readline
72b2455a 50472all-gdb: maybe-all-build-bison
9e6ce191 50473all-gdb: maybe-all-sim
5074315a 50474all-gdb: maybe-all-libdecnumber
dbbe5f95 50475all-gdb: maybe-all-libtermcap
9e6ce191
PB
50476configure-libgui: maybe-configure-tcl
50477configure-libgui: maybe-configure-tk
50478all-libgui: maybe-all-tcl
50479all-libgui: maybe-all-tk
50480all-libgui: maybe-all-itcl
b4a77b47 50481configure-bfd: configure-libiberty
9e6ce191
PB
50482
50483configure-stage1-bfd: configure-stage1-libiberty
50484configure-stage2-bfd: configure-stage2-libiberty
50485configure-stage3-bfd: configure-stage3-libiberty
50486configure-stage4-bfd: configure-stage4-libiberty
50487configure-stageprofile-bfd: configure-stageprofile-libiberty
50488configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23
DJ
50489configure-bfd: maybe-configure-intl
50490
50491configure-stage1-bfd: maybe-configure-stage1-intl
50492configure-stage2-bfd: maybe-configure-stage2-intl
50493configure-stage3-bfd: maybe-configure-stage3-intl
50494configure-stage4-bfd: maybe-configure-stage4-intl
50495configure-stageprofile-bfd: maybe-configure-stageprofile-intl
50496configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191
PB
50497all-bfd: maybe-all-libiberty
50498
50499all-stage1-bfd: maybe-all-stage1-libiberty
50500all-stage2-bfd: maybe-all-stage2-libiberty
50501all-stage3-bfd: maybe-all-stage3-libiberty
50502all-stage4-bfd: maybe-all-stage4-libiberty
50503all-stageprofile-bfd: maybe-all-stageprofile-libiberty
50504all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
50505all-bfd: maybe-all-intl
50506
50507all-stage1-bfd: maybe-all-stage1-intl
50508all-stage2-bfd: maybe-all-stage2-intl
50509all-stage3-bfd: maybe-all-stage3-intl
50510all-stage4-bfd: maybe-all-stage4-intl
50511all-stageprofile-bfd: maybe-all-stageprofile-intl
50512all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d2d67aea
L
50513all-bfd: maybe-all-zlib
50514
50515all-stage1-bfd: maybe-all-stage1-zlib
50516all-stage2-bfd: maybe-all-stage2-zlib
50517all-stage3-bfd: maybe-all-stage3-zlib
50518all-stage4-bfd: maybe-all-stage4-zlib
50519all-stageprofile-bfd: maybe-all-stageprofile-zlib
50520all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
66775d67
AM
50521configure-opcodes: configure-libiberty
50522
50523configure-stage1-opcodes: configure-stage1-libiberty
50524configure-stage2-opcodes: configure-stage2-libiberty
66775d67 50525configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
50526configure-stage4-opcodes: configure-stage4-libiberty
50527configure-stageprofile-opcodes: configure-stageprofile-libiberty
50528configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
50529all-opcodes: maybe-all-libiberty
50530
50531all-stage1-opcodes: maybe-all-stage1-libiberty
50532all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 50533all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
50534all-stage4-opcodes: maybe-all-stage4-libiberty
50535all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50536all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23
DJ
50537configure-binutils: maybe-configure-intl
50538
50539configure-stage1-binutils: maybe-configure-stage1-intl
50540configure-stage2-binutils: maybe-configure-stage2-intl
50541configure-stage3-binutils: maybe-configure-stage3-intl
50542configure-stage4-binutils: maybe-configure-stage4-intl
50543configure-stageprofile-binutils: maybe-configure-stageprofile-intl
50544configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191
PB
50545all-binutils: maybe-all-libiberty
50546
50547all-stage1-binutils: maybe-all-stage1-libiberty
50548all-stage2-binutils: maybe-all-stage2-libiberty
50549all-stage3-binutils: maybe-all-stage3-libiberty
50550all-stage4-binutils: maybe-all-stage4-libiberty
50551all-stageprofile-binutils: maybe-all-stageprofile-libiberty
50552all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
50553all-binutils: maybe-all-opcodes
50554
50555all-stage1-binutils: maybe-all-stage1-opcodes
50556all-stage2-binutils: maybe-all-stage2-opcodes
50557all-stage3-binutils: maybe-all-stage3-opcodes
50558all-stage4-binutils: maybe-all-stage4-opcodes
50559all-stageprofile-binutils: maybe-all-stageprofile-opcodes
50560all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
50561all-binutils: maybe-all-bfd
50562
50563all-stage1-binutils: maybe-all-stage1-bfd
50564all-stage2-binutils: maybe-all-stage2-bfd
50565all-stage3-binutils: maybe-all-stage3-bfd
50566all-stage4-binutils: maybe-all-stage4-bfd
50567all-stageprofile-binutils: maybe-all-stageprofile-bfd
50568all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a
PB
50569all-binutils: maybe-all-build-flex
50570
50571all-stage1-binutils: maybe-all-build-flex
50572all-stage2-binutils: maybe-all-build-flex
50573all-stage3-binutils: maybe-all-build-flex
50574all-stage4-binutils: maybe-all-build-flex
50575all-stageprofile-binutils: maybe-all-build-flex
50576all-stagefeedback-binutils: maybe-all-build-flex
72b2455a
PB
50577all-binutils: maybe-all-build-bison
50578
50579all-stage1-binutils: maybe-all-build-bison
50580all-stage2-binutils: maybe-all-build-bison
50581all-stage3-binutils: maybe-all-build-bison
50582all-stage4-binutils: maybe-all-build-bison
50583all-stageprofile-binutils: maybe-all-build-bison
50584all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191
PB
50585all-binutils: maybe-all-intl
50586
50587all-stage1-binutils: maybe-all-stage1-intl
50588all-stage2-binutils: maybe-all-stage2-intl
50589all-stage3-binutils: maybe-all-stage3-intl
50590all-stage4-binutils: maybe-all-stage4-intl
50591all-stageprofile-binutils: maybe-all-stageprofile-intl
50592all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685
L
50593all-binutils: maybe-all-gas
50594
50595all-stage1-binutils: maybe-all-stage1-gas
50596all-stage2-binutils: maybe-all-stage2-gas
50597all-stage3-binutils: maybe-all-stage3-gas
50598all-stage4-binutils: maybe-all-stage4-gas
50599all-stageprofile-binutils: maybe-all-stageprofile-gas
50600all-stagefeedback-binutils: maybe-all-stagefeedback-gas
ae831be5 50601install-binutils: maybe-install-opcodes
9b980aa1 50602install-strip-binutils: maybe-install-strip-opcodes
cf662e21 50603install-opcodes: maybe-install-bfd
9b980aa1 50604install-strip-opcodes: maybe-install-strip-bfd
20e95c23
DJ
50605configure-gas: maybe-configure-intl
50606
50607configure-stage1-gas: maybe-configure-stage1-intl
50608configure-stage2-gas: maybe-configure-stage2-intl
50609configure-stage3-gas: maybe-configure-stage3-intl
50610configure-stage4-gas: maybe-configure-stage4-intl
50611configure-stageprofile-gas: maybe-configure-stageprofile-intl
50612configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191
PB
50613all-gas: maybe-all-libiberty
50614
50615all-stage1-gas: maybe-all-stage1-libiberty
50616all-stage2-gas: maybe-all-stage2-libiberty
50617all-stage3-gas: maybe-all-stage3-libiberty
50618all-stage4-gas: maybe-all-stage4-libiberty
50619all-stageprofile-gas: maybe-all-stageprofile-libiberty
50620all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
50621all-gas: maybe-all-opcodes
50622
50623all-stage1-gas: maybe-all-stage1-opcodes
50624all-stage2-gas: maybe-all-stage2-opcodes
50625all-stage3-gas: maybe-all-stage3-opcodes
50626all-stage4-gas: maybe-all-stage4-opcodes
50627all-stageprofile-gas: maybe-all-stageprofile-opcodes
50628all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
50629all-gas: maybe-all-bfd
50630
50631all-stage1-gas: maybe-all-stage1-bfd
50632all-stage2-gas: maybe-all-stage2-bfd
50633all-stage3-gas: maybe-all-stage3-bfd
50634all-stage4-gas: maybe-all-stage4-bfd
50635all-stageprofile-gas: maybe-all-stageprofile-bfd
50636all-stagefeedback-gas: maybe-all-stagefeedback-bfd
50637all-gas: maybe-all-intl
50638
50639all-stage1-gas: maybe-all-stage1-intl
50640all-stage2-gas: maybe-all-stage2-intl
50641all-stage3-gas: maybe-all-stage3-intl
50642all-stage4-gas: maybe-all-stage4-intl
50643all-stageprofile-gas: maybe-all-stageprofile-intl
50644all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 50645configure-gprof: maybe-configure-intl
9e6ce191
PB
50646all-gprof: maybe-all-libiberty
50647all-gprof: maybe-all-bfd
50648all-gprof: maybe-all-opcodes
50649all-gprof: maybe-all-intl
0140d685 50650all-gprof: maybe-all-gas
20e95c23
DJ
50651configure-ld: maybe-configure-intl
50652
50653configure-stage1-ld: maybe-configure-stage1-intl
50654configure-stage2-ld: maybe-configure-stage2-intl
50655configure-stage3-ld: maybe-configure-stage3-intl
50656configure-stage4-ld: maybe-configure-stage4-intl
50657configure-stageprofile-ld: maybe-configure-stageprofile-intl
50658configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191
PB
50659all-ld: maybe-all-libiberty
50660
50661all-stage1-ld: maybe-all-stage1-libiberty
50662all-stage2-ld: maybe-all-stage2-libiberty
50663all-stage3-ld: maybe-all-stage3-libiberty
50664all-stage4-ld: maybe-all-stage4-libiberty
50665all-stageprofile-ld: maybe-all-stageprofile-libiberty
50666all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
50667all-ld: maybe-all-bfd
50668
50669all-stage1-ld: maybe-all-stage1-bfd
50670all-stage2-ld: maybe-all-stage2-bfd
50671all-stage3-ld: maybe-all-stage3-bfd
50672all-stage4-ld: maybe-all-stage4-bfd
50673all-stageprofile-ld: maybe-all-stageprofile-bfd
50674all-stagefeedback-ld: maybe-all-stagefeedback-bfd
50675all-ld: maybe-all-opcodes
50676
50677all-stage1-ld: maybe-all-stage1-opcodes
50678all-stage2-ld: maybe-all-stage2-opcodes
50679all-stage3-ld: maybe-all-stage3-opcodes
50680all-stage4-ld: maybe-all-stage4-opcodes
50681all-stageprofile-ld: maybe-all-stageprofile-opcodes
50682all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a
PB
50683all-ld: maybe-all-build-bison
50684
50685all-stage1-ld: maybe-all-build-bison
50686all-stage2-ld: maybe-all-build-bison
50687all-stage3-ld: maybe-all-build-bison
50688all-stage4-ld: maybe-all-build-bison
50689all-stageprofile-ld: maybe-all-build-bison
50690all-stagefeedback-ld: maybe-all-build-bison
72b2455a
PB
50691all-ld: maybe-all-build-flex
50692
50693all-stage1-ld: maybe-all-build-flex
50694all-stage2-ld: maybe-all-build-flex
50695all-stage3-ld: maybe-all-build-flex
50696all-stage4-ld: maybe-all-build-flex
50697all-stageprofile-ld: maybe-all-build-flex
50698all-stagefeedback-ld: maybe-all-build-flex
9e6ce191
PB
50699all-ld: maybe-all-intl
50700
50701all-stage1-ld: maybe-all-stage1-intl
50702all-stage2-ld: maybe-all-stage2-intl
50703all-stage3-ld: maybe-all-stage3-intl
50704all-stage4-ld: maybe-all-stage4-intl
50705all-stageprofile-ld: maybe-all-stageprofile-intl
50706all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685
L
50707all-ld: maybe-all-gas
50708
50709all-stage1-ld: maybe-all-stage1-gas
50710all-stage2-ld: maybe-all-stage2-gas
50711all-stage3-ld: maybe-all-stage3-gas
50712all-stage4-ld: maybe-all-stage4-gas
50713all-stageprofile-ld: maybe-all-stageprofile-gas
50714all-stagefeedback-ld: maybe-all-stagefeedback-gas
a6305403
YS
50715all-ld: maybe-all-binutils
50716
50717all-stage1-ld: maybe-all-stage1-binutils
50718all-stage2-ld: maybe-all-stage2-binutils
50719all-stage3-ld: maybe-all-stage3-binutils
50720all-stage4-ld: maybe-all-stage4-binutils
50721all-stageprofile-ld: maybe-all-stageprofile-binutils
50722all-stagefeedback-ld: maybe-all-stagefeedback-binutils
e6de499b 50723install-ld: maybe-install-gold
9b980aa1 50724install-strip-ld: maybe-install-strip-gold
93f9b408
ILT
50725configure-gold: maybe-configure-intl
50726
50727configure-stage1-gold: maybe-configure-stage1-intl
50728configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 50729configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
50730configure-stage4-gold: maybe-configure-stage4-intl
50731configure-stageprofile-gold: maybe-configure-stageprofile-intl
50732configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
50733all-gold: maybe-all-libiberty
50734
50735all-stage1-gold: maybe-all-stage1-libiberty
50736all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 50737all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
50738all-stage4-gold: maybe-all-stage4-libiberty
50739all-stageprofile-gold: maybe-all-stageprofile-libiberty
50740all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
50741all-gold: maybe-all-intl
50742
50743all-stage1-gold: maybe-all-stage1-intl
50744all-stage2-gold: maybe-all-stage2-intl
93f9b408 50745all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
50746all-stage4-gold: maybe-all-stage4-intl
50747all-stageprofile-gold: maybe-all-stageprofile-intl
50748all-stagefeedback-gold: maybe-all-stagefeedback-intl
50749all-gold: maybe-all-bfd
50750
50751all-stage1-gold: maybe-all-stage1-bfd
50752all-stage2-gold: maybe-all-stage2-bfd
93f9b408 50753all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
50754all-stage4-gold: maybe-all-stage4-bfd
50755all-stageprofile-gold: maybe-all-stageprofile-bfd
50756all-stagefeedback-gold: maybe-all-stagefeedback-bfd
50757all-gold: maybe-all-build-bison
50758
50759all-stage1-gold: maybe-all-build-bison
50760all-stage2-gold: maybe-all-build-bison
93f9b408 50761all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
50762all-stage4-gold: maybe-all-build-bison
50763all-stageprofile-gold: maybe-all-build-bison
50764all-stagefeedback-gold: maybe-all-build-bison
0140d685
L
50765all-gold: maybe-all-gas
50766
50767all-stage1-gold: maybe-all-stage1-gas
50768all-stage2-gold: maybe-all-stage2-gas
50769all-stage3-gold: maybe-all-stage3-gas
50770all-stage4-gold: maybe-all-stage4-gas
50771all-stageprofile-gold: maybe-all-stageprofile-gas
50772all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97
ILT
50773check-gold: maybe-all-binutils
50774
50775check-stage1-gold: maybe-all-stage1-binutils
50776check-stage2-gold: maybe-all-stage2-binutils
e5164e97 50777check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
50778check-stage4-gold: maybe-all-stage4-binutils
50779check-stageprofile-gold: maybe-all-stageprofile-binutils
50780check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca
ILT
50781check-gold: maybe-all-gas
50782
50783check-stage1-gold: maybe-all-stage1-gas
50784check-stage2-gold: maybe-all-stage2-gas
50785check-stage3-gold: maybe-all-stage3-gas
50786check-stage4-gold: maybe-all-stage4-gas
50787check-stageprofile-gold: maybe-all-stageprofile-gas
50788check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee
JJ
50789configure-opcodes: maybe-configure-intl
50790
50791configure-stage1-opcodes: maybe-configure-stage1-intl
50792configure-stage2-opcodes: maybe-configure-stage2-intl
50793configure-stage3-opcodes: maybe-configure-stage3-intl
50794configure-stage4-opcodes: maybe-configure-stage4-intl
50795configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
50796configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191
PB
50797all-opcodes: maybe-all-bfd
50798
50799all-stage1-opcodes: maybe-all-stage1-bfd
50800all-stage2-opcodes: maybe-all-stage2-bfd
50801all-stage3-opcodes: maybe-all-stage3-bfd
50802all-stage4-opcodes: maybe-all-stage4-bfd
50803all-stageprofile-opcodes: maybe-all-stageprofile-bfd
50804all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
50805all-opcodes: maybe-all-libiberty
50806
50807all-stage1-opcodes: maybe-all-stage1-libiberty
50808all-stage2-opcodes: maybe-all-stage2-libiberty
50809all-stage3-opcodes: maybe-all-stage3-libiberty
50810all-stage4-opcodes: maybe-all-stage4-libiberty
50811all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50812all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee
JJ
50813all-opcodes: maybe-all-intl
50814
50815all-stage1-opcodes: maybe-all-stage1-intl
50816all-stage2-opcodes: maybe-all-stage2-intl
50817all-stage3-opcodes: maybe-all-stage3-intl
50818all-stage4-opcodes: maybe-all-stage4-intl
50819all-stageprofile-opcodes: maybe-all-stageprofile-intl
50820all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
50821all-dejagnu: maybe-all-tcl
50822all-dejagnu: maybe-all-expect
50823all-dejagnu: maybe-all-tk
50824configure-expect: maybe-configure-tcl
50825configure-expect: maybe-configure-tk
50826all-expect: maybe-all-tcl
50827all-expect: maybe-all-tk
50828configure-itcl: maybe-configure-tcl
50829configure-itcl: maybe-configure-tk
50830all-itcl: maybe-all-tcl
50831all-itcl: maybe-all-tk
ae831be5 50832install-itcl: maybe-install-tcl
9b980aa1 50833install-strip-itcl: maybe-install-strip-tcl
b4a77b47 50834configure-tk: maybe-configure-tcl
ae831be5 50835all-tk: maybe-all-tcl
9e6ce191
PB
50836all-sid: maybe-all-libiberty
50837all-sid: maybe-all-bfd
50838all-sid: maybe-all-opcodes
50839all-sid: maybe-all-tcl
50840all-sid: maybe-all-tk
50841install-sid: maybe-install-tcl
9b980aa1 50842install-strip-sid: maybe-install-strip-tcl
9e6ce191 50843install-sid: maybe-install-tk
9b980aa1 50844install-strip-sid: maybe-install-strip-tk
20e95c23
DJ
50845configure-sim: maybe-configure-intl
50846all-sim: maybe-all-intl
9e6ce191
PB
50847all-sim: maybe-all-libiberty
50848all-sim: maybe-all-bfd
50849all-sim: maybe-all-opcodes
50850all-sim: maybe-all-readline
50851all-sim: maybe-configure-gdb
50852all-fastjar: maybe-all-zlib
72b2455a 50853all-fastjar: maybe-all-build-texinfo
9e6ce191 50854all-fastjar: maybe-all-libiberty
9e6ce191 50855all-bison: maybe-all-intl
72b2455a 50856all-bison: maybe-all-build-texinfo
72b2455a 50857all-flex: maybe-all-build-bison
9e6ce191
PB
50858all-flex: maybe-all-intl
50859all-flex: maybe-all-m4
72b2455a 50860all-flex: maybe-all-build-texinfo
9e6ce191 50861all-m4: maybe-all-intl
72b2455a 50862all-m4: maybe-all-build-texinfo
f7c83eac 50863configure-target-boehm-gc: maybe-all-target-libstdc++-v3
b4a77b47 50864configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 50865all-target-fastjar: maybe-all-target-zlib
e552509b
ILT
50866configure-target-libgo: maybe-configure-target-libffi
50867configure-target-libgo: maybe-all-target-libstdc++-v3
8e71395b 50868all-target-libgo: maybe-all-target-libbacktrace
e552509b 50869all-target-libgo: maybe-all-target-libffi
9417cd2f 50870all-target-libgo: maybe-all-target-libatomic
9e6ce191
PB
50871configure-target-libjava: maybe-configure-target-zlib
50872configure-target-libjava: maybe-configure-target-boehm-gc
9e6ce191
PB
50873configure-target-libjava: maybe-configure-target-libffi
50874all-target-libjava: maybe-all-fastjar
50875all-target-libjava: maybe-all-target-zlib
50876all-target-libjava: maybe-all-target-boehm-gc
9e6ce191 50877all-target-libjava: maybe-all-target-libffi
4f0ef2d8 50878configure-target-libobjc: maybe-configure-target-boehm-gc
4f0ef2d8 50879all-target-libobjc: maybe-all-target-boehm-gc
cff87f51 50880configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
50881
50882configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50883configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50884configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50885configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50886configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50887configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
1b6c0831 50888configure-target-liboffloadmic: maybe-configure-target-libgomp
5286fdef 50889configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
50890
50891configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
50892configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
50893configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
50894configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
50895configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
50896configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135
JBG
50897configure-target-libvtv: maybe-all-target-libstdc++-v3
50898
50899configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
50900configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
50901configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
50902configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
50903configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
50904configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
911e63d0
JR
50905all-target-libstdc++-v3: maybe-configure-target-libgomp
50906
50907all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50908all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50909all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50910all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50911all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50912all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
1b6c0831 50913all-target-liboffloadmic: maybe-all-target-libgomp
9417cd2f
JBG
50914install-target-libgo: maybe-install-target-libatomic
50915install-target-libgfortran: maybe-install-target-libquadmath
50916install-target-libgfortran: maybe-install-target-libgcc
3dae1673 50917install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 50918install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
50919install-target-libvtv: maybe-install-target-libstdc++-v3
50920install-target-libvtv: maybe-install-target-libgcc
522e3d71 50921install-target-libcilkrts: maybe-install-target-libstdc++-v3
50922install-target-libcilkrts: maybe-install-target-libgcc
1b6c0831
L
50923install-target-liboffloadmic: maybe-install-target-libstdc++-v3
50924install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
50925install-target-libjava: maybe-install-target-libgcc
50926install-target-libitm: maybe-install-target-libgcc
50927install-target-libobjc: maybe-install-target-libgcc
50928install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 50929all-target-libgloss: maybe-all-target-newlib
9e6ce191 50930all-target-winsup: maybe-all-target-libtermcap
c1102ce7
RW
50931configure-target-newlib: maybe-all-binutils
50932configure-target-newlib: maybe-all-ld
e552509b 50933configure-target-libgfortran: maybe-all-target-libquadmath
68996839 50934configure-target-libgfortran: maybe-all-target-libbacktrace
9e6ce191
PB
50935
50936
6aa8ef82
DJ
50937# Dependencies for target modules on other target modules are
50938# described by lang_env_dependencies; the defaults apply to anything
50939# not mentioned there.
50940
50941
50942@if gcc-bootstrap
e8a5fa9c
RW
50943configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
50944configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
50945configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
50946configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
50947configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
50948configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
50949configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
50950configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
50951configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
50952configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
50953configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
50954configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
1b6c0831
L
50955configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
50956configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
50957configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
50958configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
50959configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
50960configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
50961configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
50962configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
50963configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
50964configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
50965configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
50966configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
50967configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
50968configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
50969configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
50970configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
50971configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
50972configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
50973@endif gcc-bootstrap
50974
50975@if gcc-no-bootstrap
50976configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 50977configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 50978configure-target-libmpx: maybe-all-target-libgcc
95e43135 50979configure-target-libvtv: maybe-all-target-libgcc
522e3d71 50980configure-target-libcilkrts: maybe-all-target-libgcc
1b6c0831 50981configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 50982configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 50983configure-target-newlib: maybe-all-target-libgcc
2bf680c4 50984configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 50985configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
50986configure-target-libgfortran: maybe-all-target-libgcc
50987configure-target-libobjc: maybe-all-target-libgcc
e552509b 50988configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
50989configure-target-libtermcap: maybe-all-target-libgcc
50990configure-target-winsup: maybe-all-target-libgcc
50991configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82
DJ
50992configure-target-libffi: maybe-all-target-libgcc
50993configure-target-libjava: maybe-all-target-libgcc
50994configure-target-zlib: maybe-all-target-libgcc
50995configure-target-boehm-gc: maybe-all-target-libgcc
6aa8ef82
DJ
50996configure-target-rda: maybe-all-target-libgcc
50997configure-target-libada: maybe-all-target-libgcc
50998configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
50999configure-target-libitm: maybe-all-target-libgcc
51000configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
51001@endif gcc-no-bootstrap
51002
51003
51004configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
51005
5286fdef
L
51006configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
51007
1b6c0831
L
51008configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
51009
95e43135
JBG
51010configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
51011
e78e02e6 51012configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
51013configure-target-libcilkrts: maybe-all-target-libstdc++-v3
51014
1b6c0831
L
51015configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
51016configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
51017
6aa8ef82
DJ
51018configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
51019
51020
51021
2bf680c4
ILT
51022configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
51023
e552509b
ILT
51024configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
51025
6aa8ef82
DJ
51026configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
51027
51028configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
51029
e552509b
ILT
51030configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
51031
6aa8ef82
DJ
51032configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
51033
51034configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
51035
51036
6aa8ef82 51037configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
4849dfd8 51038configure-target-libffi: maybe-all-target-libstdc++-v3
6aa8ef82
DJ
51039
51040configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
51041configure-target-libjava: maybe-all-target-libstdc++-v3
51042
51043configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
51044
51045configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
51046
6aa8ef82
DJ
51047configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
51048
51049configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
51050
51051configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
51052
7ec59b9e
L
51053configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
51054configure-target-libitm: maybe-all-target-libstdc++-v3
51055
51056configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
51057
6aa8ef82 51058
907be67c 51059CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 51060GDB_TK = @GDB_TK@
907be67c
DJ
51061INSTALL_GDB_TK = @INSTALL_GDB_TK@
51062configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 51063all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 51064install-gdb: $(INSTALL_GDB_TK)
907a7241 51065
a2cc058a
NN
51066# Serialization dependencies. Host configures don't work well in parallel to
51067# each other, due to contention over config.cache. Target configures and
51068# build configures are similar.
51069@serialization_dependencies@
51070
15723a45
NN
51071# --------------------------------
51072# Regenerating top level configury
51073# --------------------------------
252b5132 51074
14a2a2f1 51075# Rebuilding Makefile.in, using autogen.
43be203f 51076AUTOGEN = autogen
6b784d9f 51077$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 51078 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 51079
a0da8069 51080# Rebuilding Makefile.
43be203f
AO
51081Makefile: $(srcdir)/Makefile.in config.status
51082 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
51083
479759c8 51084config.status: configure
10ecffb9 51085 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 51086
a0da8069 51087# Rebuilding configure.
43be203f 51088AUTOCONF = autoconf
da888c87
PB
51089$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
51090 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4
43be203f 51091 cd $(srcdir) && $(AUTOCONF)
252b5132 51092
3728fade
NN
51093# ------------------------------
51094# Special directives to GNU Make
51095# ------------------------------
51096
3728fade
NN
51097# Don't pass command-line variables to submakes.
51098.NOEXPORT:
51099MAKEOVERRIDES=
51100
252b5132 51101# end of Makefile.in
This page took 4.766592 seconds and 4 git commands to generate.