]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - Makefile.in
Add R_AARCH64_P32_MOVW_PREL_* ELF32 relocs
[thirdparty/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,
52cf9762 6# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
e3f56a99 7# 2011, 2012, 2013, 2014, 2015, 2016, 2017
1b05fbbd 8# Free Software Foundation
252b5132
RH
9#
10# This file is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
e8a5fa9c 12# the Free Software Foundation; either version 3 of the License, or
252b5132
RH
13# (at your option) any later version.
14#
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
e8a5fa9c
RW
21# along with this program; see the file COPYING3. If not see
22# <http://www.gnu.org/licenses/>.
252b5132
RH
23#
24
0bb6ea20
HPN
25# First, test for a proper version of make, but only where one is required.
26
27@if gcc
28ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty.
29$(error GNU make version 3.80 or newer is required.)
30endif
31@endif gcc
32
50212802
NN
33# -------------------------------
34# Standard Autoconf-set variables
35# -------------------------------
583d52d7 36VPATH=@srcdir@
583d52d7 37
c6b750e1 38build_alias=@build_noncanonical@
4b900473
PB
39build_vendor=@build_vendor@
40build_os=@build_os@
7f121bbf 41build=@build@
c6b750e1 42host_alias=@host_noncanonical@
4b900473
PB
43host_vendor=@host_vendor@
44host_os=@host_os@
7f121bbf 45host=@host@
c6b750e1 46target_alias=@target_noncanonical@
4b900473
PB
47target_vendor=@target_vendor@
48target_os=@target_os@
7f121bbf 49target=@target@
583d52d7 50
50212802 51program_transform_name = @program_transform_name@
403d9505
NN
52
53prefix = @prefix@
54exec_prefix = @exec_prefix@
55
50212802
NN
56srcdir = @srcdir@
57
403d9505
NN
58bindir = @bindir@
59sbindir = @sbindir@
60libexecdir = @libexecdir@
61datadir = @datadir@
62sysconfdir = @sysconfdir@
63sharedstatedir = @sharedstatedir@
64localstatedir = @localstatedir@
65libdir = @libdir@
66includedir = @includedir@
67oldincludedir = @oldincludedir@
68infodir = @infodir@
108a6f8e
CD
69datarootdir = @datarootdir@
70docdir = @docdir@
a3ca38d2 71pdfdir = @pdfdir@
108a6f8e 72htmldir = @htmldir@
403d9505 73mandir = @mandir@
252b5132
RH
74man1dir = $(mandir)/man1
75man2dir = $(mandir)/man2
76man3dir = $(mandir)/man3
77man4dir = $(mandir)/man4
78man5dir = $(mandir)/man5
79man6dir = $(mandir)/man6
80man7dir = $(mandir)/man7
81man8dir = $(mandir)/man8
82man9dir = $(mandir)/man9
d5de0a84 83
e5c3f801
NN
84INSTALL = @INSTALL@
85INSTALL_PROGRAM = @INSTALL_PROGRAM@
86INSTALL_SCRIPT = @INSTALL_SCRIPT@
87INSTALL_DATA = @INSTALL_DATA@
656fdd47
PB
88LN = @LN@
89LN_S = @LN_S@
77d7106f
AM
90MAINT = @MAINT@
91MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
92MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
252b5132 93
50212802
NN
94# -------------------------------------------------
95# Miscellaneous non-standard autoconf-set variables
96# -------------------------------------------------
252b5132 97
50212802
NN
98# The gcc driver likes to know the arguments it was configured with.
99TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
252b5132 100
50212802
NN
101tooldir = @tooldir@
102build_tooldir = @build_tooldir@
252b5132 103
50212802
NN
104# This is the name of the environment variable used for the path to
105# the libraries.
106RPATH_ENVVAR = @RPATH_ENVVAR@
252b5132 107
3bbd2f8f
AL
108# On targets where RPATH_ENVVAR is PATH, a subdirectory of the GCC build path
109# is used instead of the directory itself to avoid including built
110# executables in PATH.
111GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@
112
50212802
NN
113# Build programs are put under this directory.
114BUILD_SUBDIR = @build_subdir@
115# This is set by the configure script to the arguments to use when configuring
116# directories built for the build system.
a7254363 117BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
6a9cf61e 118
e8a5fa9c
RW
119# Linker flags to use on the host, for stage1 or when not
120# bootstrapping.
121STAGE1_LDFLAGS = @stage1_ldflags@
122
123# Libraries to use on the host, for stage1 or when not bootstrapping.
124STAGE1_LIBS = @stage1_libs@
125
126# Linker flags to use for stage2 and later.
127POSTSTAGE1_LDFLAGS = @poststage1_ldflags@
128
129# Libraries to use for stage2 and later.
130POSTSTAGE1_LIBS = @poststage1_libs@
131
6a9cf61e
PB
132# This is the list of variables to export in the environment when
133# configuring any subdirectory. It must also be exported whenever
134# recursing into a build directory in case that directory's Makefile
135# re-runs configure.
136BASE_EXPORTS = \
137 FLEX="$(FLEX)"; export FLEX; \
138 LEX="$(LEX)"; export LEX; \
139 BISON="$(BISON)"; export BISON; \
140 YACC="$(YACC)"; export YACC; \
141 M4="$(M4)"; export M4; \
8e957354
PB
142 SED="$(SED)"; export SED; \
143 AWK="$(AWK)"; export AWK; \
6a9cf61e
PB
144 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
145
378fce5b 146# This is the list of variables to export in the environment when
6a9cf61e 147# configuring subdirectories for the build system.
378fce5b 148BUILD_EXPORTS = \
6a9cf61e 149 $(BASE_EXPORTS) \
378fce5b
DD
150 AR="$(AR_FOR_BUILD)"; export AR; \
151 AS="$(AS_FOR_BUILD)"; export AS; \
152 CC="$(CC_FOR_BUILD)"; export CC; \
153 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
154 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
155 CXX="$(CXX_FOR_BUILD)"; export CXX; \
156 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
378fce5b 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 194 GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \
9b980aa1 195 GOC="$(GOC)"; export GOC; \
378fce5b
DD
196 AR="$(AR)"; export AR; \
197 AS="$(AS)"; export AS; \
198 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
199 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
200 LD="$(LD)"; export LD; \
e8a5fa9c 201 LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \
378fce5b
DD
202 NM="$(NM)"; export NM; \
203 RANLIB="$(RANLIB)"; export RANLIB; \
204 WINDRES="$(WINDRES)"; export WINDRES; \
0c24b341 205 WINDMC="$(WINDMC)"; export WINDMC; \
378fce5b 206 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
95b6a1f2 207 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
b121d7d4 208 READELF="$(READELF)"; export READELF; \
be01d343
PB
209 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
210 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
211 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
212 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
213 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
214 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
6b91c541 215 OBJCOPY_FOR_TARGET="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY_FOR_TARGET; \
be01d343 216 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
b121d7d4 217 READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
378fce5b 218 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
e8a5fa9c 219 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \
378fce5b 220 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
315b3b02 221 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
1b6c0831 222 ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \
7ec59b9e 223 ISLINC="$(HOST_ISLINC)"; export ISLINC; \
e3f56a99 224 ISLVER="$(HOST_ISLVER)"; export ISLVER; \
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 280 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1b05fbbd 281 GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \
e552509b 282 GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
378fce5b 283 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
be01d343 284 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
378fce5b 285 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7e0f7140 286 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
be01d343 287 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
5ae72758 288 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
6b91c541 289 OBJCOPY="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY; \
378fce5b 290 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
b121d7d4 291 READELF="$(READELF_FOR_TARGET)"; export READELF; \
7e0f7140 292 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
315b3b02 293 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
0c24b341 294 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
f2b2dd91
RW
295@if gcc-bootstrap
296 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
297@endif gcc-bootstrap
911e63d0
JR
298 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
299 TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
378fce5b
DD
300
301RAW_CXX_TARGET_EXPORTS = \
302 $(BASE_TARGET_EXPORTS) \
303 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
1b05fbbd 304 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
378fce5b
DD
305
306NORMAL_TARGET_EXPORTS = \
307 $(BASE_TARGET_EXPORTS) \
1b05fbbd 308 CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
50212802 309
4b1cb4fe
DD
310# Where to find GMP
311HOST_GMPLIBS = @gmplibs@
312HOST_GMPINC = @gmpinc@
313
4849dfd8 314# Where to find isl
1b6c0831 315HOST_ISLLIBS = @isllibs@
7ec59b9e 316HOST_ISLINC = @islinc@
e3f56a99 317HOST_ISLVER = @islver@
e28c595f 318
700d40ca
ILT
319# Where to find libelf
320HOST_LIBELFLIBS = @libelflibs@
321HOST_LIBELFINC = @libelfinc@
322
50212802
NN
323# ----------------------------------------------
324# Programs producing files for the BUILD machine
325# ----------------------------------------------
326
f6c1938b 327SHELL = @SHELL@
50212802
NN
328
329# pwd command to use. Allow user to override default by setting PWDCMD in
330# the environment to account for automounters. The make variable must not
331# be called PWDCMD, otherwise the value set here is passed to make
332# subprocesses and overrides the setting from the user's environment.
b40e3958
L
333# Don't use PWD since it is a common shell environment variable and we
334# don't want to corrupt it.
335PWD_COMMAND = $${PWDCMD-pwd}
50212802
NN
336
337# compilers to use to create programs which must be run in the build
338# environment.
b5714970
PB
339AR_FOR_BUILD = @AR_FOR_BUILD@
340AS_FOR_BUILD = @AS_FOR_BUILD@
50212802 341CC_FOR_BUILD = @CC_FOR_BUILD@
5fbad20a 342CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
b5714970
PB
343CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
344CXX_FOR_BUILD = @CXX_FOR_BUILD@
345DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
b5714970 346GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
9b980aa1 347GOC_FOR_BUILD = @GOC_FOR_BUILD@
b5714970
PB
348LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
349LD_FOR_BUILD = @LD_FOR_BUILD@
350NM_FOR_BUILD = @NM_FOR_BUILD@
351RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
352WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
353WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
50212802
NN
354
355# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
356# here so that they can be overridden by Makefile fragments.
50212802
NN
357BUILD_PREFIX = @BUILD_PREFIX@
358BUILD_PREFIX_1 = @BUILD_PREFIX_1@
252b5132 359
0df3d27f
PB
360# Flags to pass to stage2 and later makes. They are defined
361# here so that they can be overridden by Makefile fragments.
362BOOT_CFLAGS= -g -O2
f6d183c0 363BOOT_LDFLAGS=
d7b9dae9 364BOOT_ADAFLAGS= -gnatpg
0df3d27f 365
8e957354
PB
366AWK = @AWK@
367SED = @SED@
be01d343
PB
368BISON = @BISON@
369YACC = @YACC@
370FLEX = @FLEX@
371LEX = @LEX@
372M4 = @M4@
373MAKEINFO = @MAKEINFO@
374EXPECT = @EXPECT@
375RUNTEST = @RUNTEST@
252b5132 376
e3f56a99 377AUTO_PROFILE = gcc-auto-profile -c 1000000
05a13254 378
252b5132
RH
379# This just becomes part of the MAKEINFO definition passed down to
380# sub-makes. It lets flags be given on the command line while still
381# using the makeinfo from the object tree.
62a3fc85
DD
382# (Default to avoid splitting info files by setting the threshold high.)
383MAKEINFOFLAGS = --split-size=5000000
252b5132 384
50212802
NN
385# ---------------------------------------------
386# Programs producing files for the HOST machine
387# ---------------------------------------------
252b5132 388
50212802 389AS = @AS@
50212802
NN
390AR = @AR@
391AR_FLAGS = rc
50212802 392CC = @CC@
50212802 393CXX = @CXX@
50212802 394DLLTOOL = @DLLTOOL@
50212802 395LD = @LD@
be01d343
PB
396LIPO = @LIPO@
397NM = @NM@
80911fe1 398OBJDUMP = @OBJDUMP@
50212802 399RANLIB = @RANLIB@
b121d7d4 400READELF = @READELF@
be01d343 401STRIP = @STRIP@
50212802 402WINDRES = @WINDRES@
0c24b341 403WINDMC = @WINDMC@
252b5132 404
a0323144
PB
405GNATBIND = @GNATBIND@
406GNATMAKE = @GNATMAKE@
407
be01d343 408CFLAGS = @CFLAGS@
b2edfdd2 409LDFLAGS = @LDFLAGS@
be01d343
PB
410LIBCFLAGS = $(CFLAGS)
411CXXFLAGS = @CXXFLAGS@
412LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
e552509b 413GOCFLAGS = $(CFLAGS)
50212802 414
05a13254
NC
415CREATE_GCOV = create_gcov
416
1b05fbbd
AO
417TFLAGS =
418
419# Defaults for all stages; some are overridden below.
420
421STAGE_CFLAGS = $(BOOT_CFLAGS)
422STAGE_TFLAGS = $(TFLAGS)
423STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
424
425
426# Defaults for stage 1; some are overridden below.
427STAGE1_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
428STAGE1_CXXFLAGS = $(CXXFLAGS)
429@if target-libstdc++-v3-bootstrap
430# Override the above if we're bootstrapping C++.
431STAGE1_CXXFLAGS = $(STAGE1_CFLAGS)
432@endif target-libstdc++-v3-bootstrap
1b05fbbd 433STAGE1_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 434STAGE1_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
435
436# Defaults for stage 2; some are overridden below.
437STAGE2_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
438STAGE2_CXXFLAGS = $(CXXFLAGS)
439@if target-libstdc++-v3-bootstrap
440# Override the above if we're bootstrapping C++.
441STAGE2_CXXFLAGS = $(STAGE2_CFLAGS)
442@endif target-libstdc++-v3-bootstrap
1b05fbbd 443STAGE2_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 444STAGE2_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
445
446# Defaults for stage 3; some are overridden below.
447STAGE3_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
448STAGE3_CXXFLAGS = $(CXXFLAGS)
449@if target-libstdc++-v3-bootstrap
450# Override the above if we're bootstrapping C++.
451STAGE3_CXXFLAGS = $(STAGE3_CFLAGS)
452@endif target-libstdc++-v3-bootstrap
1b05fbbd 453STAGE3_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 454STAGE3_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
455
456# Defaults for stage 4; some are overridden below.
457STAGE4_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
458STAGE4_CXXFLAGS = $(CXXFLAGS)
459@if target-libstdc++-v3-bootstrap
460# Override the above if we're bootstrapping C++.
461STAGE4_CXXFLAGS = $(STAGE4_CFLAGS)
462@endif target-libstdc++-v3-bootstrap
1b05fbbd 463STAGE4_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 464STAGE4_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
465
466# Defaults for stage profile; some are overridden below.
467STAGEprofile_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
468STAGEprofile_CXXFLAGS = $(CXXFLAGS)
469@if target-libstdc++-v3-bootstrap
470# Override the above if we're bootstrapping C++.
471STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS)
472@endif target-libstdc++-v3-bootstrap
1b05fbbd 473STAGEprofile_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 474STAGEprofile_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
475
476# Defaults for stage feedback; some are overridden below.
477STAGEfeedback_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
478STAGEfeedback_CXXFLAGS = $(CXXFLAGS)
479@if target-libstdc++-v3-bootstrap
480# Override the above if we're bootstrapping C++.
481STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS)
482@endif target-libstdc++-v3-bootstrap
1b05fbbd 483STAGEfeedback_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 484STAGEfeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
485
486
22121df0
L
487# By default, C and C++ are the only stage1 languages, because they are the
488# only ones we require to build with the bootstrap compiler, and also the
489# only ones useful for building stage2.
8a0d8a5c 490
1b05fbbd 491STAGE1_CFLAGS = @stage1_cflags@
1f53ca9a
AO
492STAGE1_CHECKING = @stage1_checking@
493STAGE1_LANGUAGES = @stage1_languages@
1b05fbbd
AO
494# * We force-disable intermodule optimizations, even if
495# --enable-intermodule was passed, since the installed compiler
496# probably can't handle them. Luckily, autoconf always respects
497# the last argument when conflicting --enable arguments are passed.
498# * Likewise, we force-disable coverage flags, since the installed
499# compiler probably has never heard of them.
880b18d1 500# * We also disable -Wformat, since older GCCs don't understand newer %s.
1b05fbbd 501STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
880b18d1 502 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" \
503 --disable-build-format-warnings
8a0d8a5c 504
1b05fbbd
AO
505STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
506STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
8520c408 507
e3f56a99
NC
508STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use
509STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS)
7f6ef0c0 510
05a13254
NC
511STAGEautoprofile_CFLAGS = $(STAGE2_CFLAGS) -g
512STAGEautoprofile_TFLAGS = $(STAGE2_TFLAGS)
513
514STAGEautofeedback_CFLAGS = $(STAGE3_CFLAGS)
515STAGEautofeedback_TFLAGS = $(STAGE3_TFLAGS)
516
8520c408
AO
517do-compare = @do_compare@
518do-compare3 = $(do-compare)
8520c408 519
50212802
NN
520# -----------------------------------------------
521# Programs producing files for the TARGET machine
522# -----------------------------------------------
0da52010 523
50212802 524AR_FOR_TARGET=@AR_FOR_TARGET@
852e5f18 525AS_FOR_TARGET=@AS_FOR_TARGET@
1b05fbbd 526CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
55db4b87 527
50212802
NN
528# If GCC_FOR_TARGET is not overriden on the command line, then this
529# variable is passed down to the gcc Makefile, where it is used to
530# build libgcc2.a. We define it here so that it can itself be
531# overridden on the command line.
1b05fbbd
AO
532GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
533CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
534RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
1b05fbbd 535GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
e552509b 536GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
852e5f18 537DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
50212802 538LD_FOR_TARGET=@LD_FOR_TARGET@
50212802 539
7e0f7140 540LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
50212802 541NM_FOR_TARGET=@NM_FOR_TARGET@
5ae72758 542OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
6b91c541 543OBJCOPY_FOR_TARGET=@OBJCOPY_FOR_TARGET@
852e5f18 544RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
b121d7d4 545READELF_FOR_TARGET=@READELF_FOR_TARGET@
7e0f7140 546STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
50212802 547WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
0c24b341 548WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
252b5132 549
be01d343
PB
550COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
551COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
552COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
553
7f6ef0c0
PB
554CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
555CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
7f6ef0c0 556
be01d343
PB
557LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
558LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
91c1f14c 559LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
e552509b 560GOCFLAGS_FOR_TARGET = -O2 -g
50212802 561
1b05fbbd
AO
562FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
563SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
564DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
565
566XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
567
50212802
NN
568# ------------------------------------
569# Miscellaneous targets and flag lists
570# ------------------------------------
571
252b5132
RH
572# The first rule in the file had better be this one. Don't put any above it.
573# This lives here to allow makefile fragments to contain dependencies.
f70224b5 574all:
252b5132 575
252b5132 576#### host and target specific makefile fragments come in here.
a0da8069
NN
577@target_makefile_frag@
578@alphaieee_frag@
579@ospace_frag@
580@host_makefile_frag@
252b5132
RH
581###
582
e90269c8 583# This is the list of directories that may be needed in RPATH_ENVVAR
18a8530e 584# so that programs built for the target machine work.
e3f56a99 585TARGET_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
586
587@if target-libstdc++-v3
18a8530e 588TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
e90269c8
PB
589@endif target-libstdc++-v3
590
5286fdef
L
591@if target-libsanitizer
592TARGET_LIB_PATH_libsanitizer = $$r/$(TARGET_SUBDIR)/libsanitizer/.libs:
593@endif target-libsanitizer
594
1b6c0831
L
595@if target-libmpx
596TARGET_LIB_PATH_libmpx = $$r/$(TARGET_SUBDIR)/libmpx/.libs:
597@endif target-libmpx
598
95e43135
JBG
599@if target-libvtv
600TARGET_LIB_PATH_libvtv = $$r/$(TARGET_SUBDIR)/libvtv/.libs:
601@endif target-libvtv
602
e3f56a99
NC
603@if target-libcilkrts
604TARGET_LIB_PATH_libcilkrts = $$r/$(TARGET_SUBDIR)/libcilkrts/.libs:
605@endif target-libcilkrts
606
1b6c0831
L
607@if target-liboffloadmic
608TARGET_LIB_PATH_liboffloadmic = $$r/$(TARGET_SUBDIR)/liboffloadmic/.libs:
609@endif target-liboffloadmic
610
064d0a7c
PB
611@if target-libssp
612TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
613@endif target-libssp
614
b3ded179
PB
615@if target-libgomp
616TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
617@endif target-libgomp
618
7ec59b9e
L
619@if target-libitm
620TARGET_LIB_PATH_libitm = $$r/$(TARGET_SUBDIR)/libitm/.libs:
621@endif target-libitm
622
623@if target-libatomic
624TARGET_LIB_PATH_libatomic = $$r/$(TARGET_SUBDIR)/libatomic/.libs:
625@endif target-libatomic
626
e90269c8
PB
627
628
629# This is the list of directories that may be needed in RPATH_ENVVAR
630# so that programs built for the host machine work.
1b6c0831 631HOST_LIB_PATH = $(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_isl)$(HOST_LIB_PATH_libelf)
e90269c8
PB
632
633# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
634@if gcc
3bbd2f8f 635HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
e90269c8
PB
636@endif gcc
637
638
4b900473
PB
639@if gmp
640HOST_LIB_PATH_gmp = \
641 $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
642@endif gmp
643
644@if mpfr
645HOST_LIB_PATH_mpfr = \
05a13254 646 $$r/$(HOST_SUBDIR)/mpfr/src/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/src/.libs:
4b900473
PB
647@endif mpfr
648
e8a5fa9c
RW
649@if mpc
650HOST_LIB_PATH_mpc = \
05a13254 651 $$r/$(HOST_SUBDIR)/mpc/src/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/src/.libs:
e8a5fa9c
RW
652@endif mpc
653
7ec59b9e
L
654@if isl
655HOST_LIB_PATH_isl = \
656 $$r/$(HOST_SUBDIR)/isl/.libs:$$r/$(HOST_SUBDIR)/prev-isl/.libs:
657@endif isl
e28c595f 658
1f53ca9a
AO
659@if libelf
660HOST_LIB_PATH_libelf = \
661 $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
662@endif libelf
663
e90269c8 664
87cda2cf
AO
665CXX_FOR_TARGET_FLAG_TO_PASS = \
666 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
667@if target-libstdc++-v3
668# CXX_FOR_TARGET is tricky to get right for target libs that require a
669# functional C++ compiler. When we recurse, if we expand
670# CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
671# libstdc++ include flags from the script. Instead, we get an
672# -funconfigured-* word, so that we'll get errors if this invalid C++
673# command line is used for anything, but also so that we can use the
674# word to decide whether or not to pass on this CXX_FOR_TARGET. If we
675# don't pass it on, sub-make will use the default definition, that
676# re-expands it at the time of use, so we'll get it right when we need
677# it. One potential exception is the expansion of CXX_FOR_TARGET
678# passed down as part of CXX within TARGET_FLAGS, but this wouldn't
679# really work, for C++ host programs can't depend on the current-stage
680# C++ target library.
681CXX_FOR_TARGET_FLAG_TO_PASS = \
682 $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
683@endif target-libstdc++-v3
684
22121df0
L
685# Flags to pass down to all sub-makes. STAGE*FLAGS,
686# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
687# overrideable (for a bootstrap build stage1 also builds gcc.info).
252b5132 688BASE_FLAGS_TO_PASS = \
497f816e 689 "DESTDIR=$(DESTDIR)" \
252b5132 690 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
252b5132 691 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
252b5132
RH
692 "bindir=$(bindir)" \
693 "datadir=$(datadir)" \
694 "exec_prefix=$(exec_prefix)" \
695 "includedir=$(includedir)" \
108a6f8e
CD
696 "datarootdir=$(datarootdir)" \
697 "docdir=$(docdir)" \
252b5132 698 "infodir=$(infodir)" \
a3ca38d2 699 "pdfdir=$(pdfdir)" \
108a6f8e 700 "htmldir=$(htmldir)" \
252b5132
RH
701 "libdir=$(libdir)" \
702 "libexecdir=$(libexecdir)" \
703 "lispdir=$(lispdir)" \
704 "localstatedir=$(localstatedir)" \
705 "mandir=$(mandir)" \
706 "oldincludedir=$(oldincludedir)" \
707 "prefix=$(prefix)" \
708 "sbindir=$(sbindir)" \
709 "sharedstatedir=$(sharedstatedir)" \
710 "sysconfdir=$(sysconfdir)" \
711 "tooldir=$(tooldir)" \
ba73c63f 712 "build_tooldir=$(build_tooldir)" \
12f0bd74 713 "target_alias=$(target_alias)" \
8e957354 714 "AWK=$(AWK)" \
12f0bd74
NN
715 "BISON=$(BISON)" \
716 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
b2edd3b5 717 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
12f0bd74
NN
718 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
719 "EXPECT=$(EXPECT)" \
6a9cf61e 720 "FLEX=$(FLEX)" \
12f0bd74
NN
721 "INSTALL=$(INSTALL)" \
722 "INSTALL_DATA=$(INSTALL_DATA)" \
723 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
724 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
6641ce42 725 "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
12f0bd74
NN
726 "LEX=$(LEX)" \
727 "M4=$(M4)" \
728 "MAKE=$(MAKE)" \
729 "RUNTEST=$(RUNTEST)" \
730 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
8e957354 731 "SED=$(SED)" \
12f0bd74
NN
732 "SHELL=$(SHELL)" \
733 "YACC=$(YACC)" \
c52c6897 734 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
da888c87 735 "ADA_CFLAGS=$(ADA_CFLAGS)" \
12f0bd74 736 "AR_FLAGS=$(AR_FLAGS)" \
c52c6897 737 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
f6d183c0
PB
738 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
739 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
12f0bd74
NN
740 "CFLAGS=$(CFLAGS)" \
741 "CXXFLAGS=$(CXXFLAGS)" \
742 "LDFLAGS=$(LDFLAGS)" \
743 "LIBCFLAGS=$(LIBCFLAGS)" \
744 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
8a0d8a5c 745 "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
80911fe1 746 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
a0323144
PB
747 "GNATBIND=$(GNATBIND)" \
748 "GNATMAKE=$(GNATMAKE)" \
12f0bd74
NN
749 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
750 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
751 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
752 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
06bcb89d 753 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
12f0bd74
NN
754 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
755 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
1b05fbbd 756 "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
4b1cb4fe 757 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
e552509b
ILT
758 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
759 "GOCFLAGS_FOR_TARGET=$(GOCFLAGS_FOR_TARGET)" \
12f0bd74 760 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
7e0f7140 761 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
414e5532 762 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
12f0bd74
NN
763 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
764 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
765 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
5ae72758 766 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
6b91c541 767 "OBJCOPY_FOR_TARGET=$(OBJCOPY_FOR_TARGET)" \
12f0bd74 768 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
b121d7d4 769 "READELF_FOR_TARGET=$(READELF_FOR_TARGET)" \
7e0f7140 770 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
12f0bd74 771 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
0c24b341 772 "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \
1b05fbbd 773 "BUILD_CONFIG=$(BUILD_CONFIG)" \
c52c6897 774 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
80911fe1 775 "LEAN=$(LEAN)" \
1b05fbbd 776 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
1f53ca9a 777 "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
778 "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \
779 "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
1f53ca9a 780 "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
781 "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \
782 "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
1f53ca9a 783 "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
784 "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \
785 "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
1f53ca9a 786 "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \
1b05fbbd
AO
787 "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \
788 "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \
1f53ca9a 789 "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
790 "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \
791 "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
1f53ca9a 792 "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd 793 "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
87cda2cf 794 $(CXX_FOR_TARGET_FLAG_TO_PASS) \
1b05fbbd 795 "TFLAGS=$(TFLAGS)" \
10ecffb9 796 "CONFIG_SHELL=$(SHELL)" \
52cf9762
NC
797 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
798 $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)")
252b5132 799
55db4b87
PB
800# We leave this in just in case, but it is not needed anymore.
801RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
656fdd47 802
252b5132
RH
803# Flags to pass down to most sub-makes, in which we're building with
804# the host environment.
252b5132
RH
805EXTRA_HOST_FLAGS = \
806 'AR=$(AR)' \
807 'AS=$(AS)' \
808 'CC=$(CC)' \
809 'CXX=$(CXX)' \
810 'DLLTOOL=$(DLLTOOL)' \
1b05fbbd 811 'GFORTRAN=$(GFORTRAN)' \
9b980aa1 812 'GOC=$(GOC)' \
252b5132 813 'LD=$(LD)' \
be01d343 814 'LIPO=$(LIPO)' \
252b5132 815 'NM=$(NM)' \
80911fe1 816 'OBJDUMP=$(OBJDUMP)' \
b9459e83 817 'RANLIB=$(RANLIB)' \
b121d7d4 818 'READELF=$(READELF)' \
be01d343 819 'STRIP=$(STRIP)' \
0c24b341 820 'WINDRES=$(WINDRES)' \
05a13254
NC
821 'WINDMC=$(WINDMC)' \
822 'CREATE_GCOV=$(CREATE_GCOV)'
252b5132
RH
823
824FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
825
b3676d82
EB
826# Flags to pass to stage1 or when not bootstrapping.
827
828STAGE1_FLAGS_TO_PASS = \
829 LDFLAGS="$${LDFLAGS}" \
830 HOST_LIBS="$${HOST_LIBS}"
831
8a0d8a5c
PB
832# Flags to pass to stage2 and later makes.
833
834POSTSTAGE1_FLAGS_TO_PASS = \
e8a5fa9c
RW
835 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
836 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
837 GNATBIND="$${GNATBIND}" \
1f53ca9a
AO
838 LDFLAGS="$${LDFLAGS}" \
839 HOST_LIBS="$${HOST_LIBS}" \
1b6c0831 840 $(LTO_FLAGS_TO_PASS) \
8a0d8a5c
PB
841 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
842
f91ca6bc
IB
843@if gcc-bootstrap
844EXTRA_HOST_EXPORTS = if [ $(current_stage) != stage1 ]; then \
845 $(POSTSTAGE1_HOST_EXPORTS) \
22121df0 846 fi;
f91ca6bc
IB
847
848EXTRA_BOOTSTRAP_FLAGS = CC="$$CC" CXX="$$CXX" LDFLAGS="$$LDFLAGS"
849@endif gcc-bootstrap
850
252b5132 851# Flags to pass down to makes which are built with the target environment.
0aed8855
PB
852# The double $ decreases the length of the command line; those variables
853# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
7f6ef0c0
PB
854# *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
855# so we expand them here.
252b5132
RH
856EXTRA_TARGET_FLAGS = \
857 'AR=$$(AR_FOR_TARGET)' \
0aed8855 858 'AS=$(COMPILER_AS_FOR_TARGET)' \
1b05fbbd
AO
859 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
860 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
1b6c0831
L
861 'CXX=$$(CXX_FOR_TARGET) -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
862 -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
863 $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
1b05fbbd 864 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
252b5132 865 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
1b05fbbd 866 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
9b980aa1 867 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
e552509b 868 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
0aed8855 869 'LD=$(COMPILER_LD_FOR_TARGET)' \
414e5532 870 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
1b05fbbd
AO
871 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
872 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
0aed8855 873 'NM=$(COMPILER_NM_FOR_TARGET)' \
5ae72758 874 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
6b91c541 875 'OBJCOPY=$$(OBJCOPY_FOR_TARGET)' \
252b5132 876 'RANLIB=$$(RANLIB_FOR_TARGET)' \
b121d7d4 877 'READELF=$$(READELF_FOR_TARGET)' \
0c24b341 878 'WINDRES=$$(WINDRES_FOR_TARGET)' \
1b05fbbd
AO
879 'WINDMC=$$(WINDMC_FOR_TARGET)' \
880 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
1b6c0831
L
881 'STAGE1_LDFLAGS=$$(POSTSTAGE1_LDFLAGS)' \
882 'STAGE1_LIBS=$$(POSTSTAGE1_LIBS)' \
1b05fbbd 883 "TFLAGS=$$TFLAGS"
252b5132
RH
884
885TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
886
887# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
888# unfortunately needs the native compiler and the target ar and
889# ranlib.
890# If any variables are added here, they must be added to do-*, below.
2a4cbe27 891# The BUILD_* variables are a special case, which are used for the gcc
252b5132
RH
892# cross-building scheme.
893EXTRA_GCC_FLAGS = \
252b5132 894 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
3dee29da 895 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
98dd765a 896 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
252b5132 897
f0b24077 898GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
252b5132 899
1b05fbbd 900@if gcc
96655cc4 901BUILD_CONFIG = @BUILD_CONFIG@
1b05fbbd
AO
902ifneq ($(BUILD_CONFIG),)
903include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
904endif
905@endif gcc
906
dd12c3a8 907.PHONY: configure-host
b813574b 908configure-host: \
dd12c3a8
NN
909 maybe-configure-bfd \
910 maybe-configure-opcodes \
911 maybe-configure-binutils \
912 maybe-configure-bison \
f9806fa5 913 maybe-configure-cgen \
dd12c3a8 914 maybe-configure-dejagnu \
dd12c3a8
NN
915 maybe-configure-etc \
916 maybe-configure-fastjar \
d3ed111c 917 maybe-configure-fixincludes \
dd12c3a8
NN
918 maybe-configure-flex \
919 maybe-configure-gas \
b813574b 920 maybe-configure-gcc \
4b900473
PB
921 maybe-configure-gmp \
922 maybe-configure-mpfr \
e8a5fa9c 923 maybe-configure-mpc \
7ec59b9e 924 maybe-configure-isl \
1f53ca9a 925 maybe-configure-libelf \
93f9b408 926 maybe-configure-gold \
dd12c3a8 927 maybe-configure-gprof \
dd12c3a8
NN
928 maybe-configure-intl \
929 maybe-configure-tcl \
930 maybe-configure-itcl \
931 maybe-configure-ld \
2bf680c4 932 maybe-configure-libbacktrace \
04cf1b77 933 maybe-configure-libcpp \
be01d343 934 maybe-configure-libdecnumber \
dd12c3a8
NN
935 maybe-configure-libgui \
936 maybe-configure-libiberty \
1b6c0831 937 maybe-configure-libiberty-linker-plugin \
dc448a7b 938 maybe-configure-libiconv \
dd12c3a8 939 maybe-configure-m4 \
dd12c3a8 940 maybe-configure-readline \
dd12c3a8
NN
941 maybe-configure-sid \
942 maybe-configure-sim \
dd12c3a8 943 maybe-configure-texinfo \
dd12c3a8
NN
944 maybe-configure-zlib \
945 maybe-configure-gdb \
946 maybe-configure-expect \
947 maybe-configure-guile \
948 maybe-configure-tk \
dd12c3a8 949 maybe-configure-libtermcap \
b00612cc 950 maybe-configure-utils \
700d40ca 951 maybe-configure-gnattools \
1b6c0831
L
952 maybe-configure-lto-plugin \
953 maybe-configure-libcc1 \
0e65dfba
NA
954 maybe-configure-gotools \
955 maybe-configure-libctf
dd12c3a8
NN
956.PHONY: configure-target
957configure-target: \
958 maybe-configure-target-libstdc++-v3 \
5286fdef 959 maybe-configure-target-libsanitizer \
1b6c0831 960 maybe-configure-target-libmpx \
95e43135 961 maybe-configure-target-libvtv \
e3f56a99 962 maybe-configure-target-libcilkrts \
1b6c0831 963 maybe-configure-target-liboffloadmic \
064d0a7c 964 maybe-configure-target-libssp \
dd12c3a8 965 maybe-configure-target-newlib \
6aa8ef82 966 maybe-configure-target-libgcc \
2bf680c4 967 maybe-configure-target-libbacktrace \
e552509b 968 maybe-configure-target-libquadmath \
4b1cb4fe 969 maybe-configure-target-libgfortran \
dd12c3a8 970 maybe-configure-target-libobjc \
e552509b 971 maybe-configure-target-libgo \
dd12c3a8
NN
972 maybe-configure-target-libtermcap \
973 maybe-configure-target-winsup \
974 maybe-configure-target-libgloss \
dd12c3a8 975 maybe-configure-target-libffi \
dd12c3a8 976 maybe-configure-target-zlib \
a2592b1b 977 maybe-configure-target-rda \
b3ded179 978 maybe-configure-target-libada \
7ec59b9e
L
979 maybe-configure-target-libgomp \
980 maybe-configure-target-libitm \
981 maybe-configure-target-libatomic
252b5132 982
319cab08
PB
983# The target built for a native non-bootstrap build.
984.PHONY: all
f70224b5
PB
985all:
986@if gcc-bootstrap
be01d343 987 [ -f stage_final ] || echo stage3 > stage_final
f70224b5
PB
988 @r=`${PWD_COMMAND}`; export r; \
989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
0aed8855 990 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
f70224b5 991@endif gcc-bootstrap
0aed8855 992 @: $(MAKE); $(unstage)
f70224b5
PB
993 @r=`${PWD_COMMAND}`; export r; \
994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 995@if gcc-bootstrap
b5233201 996 if [ -f stage_last ]; then \
07fc31c9 997 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
be01d343 998 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
f70224b5 999 else \
1b05fbbd 1000@endif gcc-bootstrap
b5233201
AO
1001 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
1002@if gcc-bootstrap
1003 ; \
04ec0acb 1004 fi \
b5233201 1005@endif gcc-bootstrap
04ec0acb 1006 && :
6a9cf61e
PB
1007
1008.PHONY: all-build
c52c6897
PB
1009
1010all-build: maybe-all-build-libiberty
1011all-build: maybe-all-build-bison
c52c6897
PB
1012all-build: maybe-all-build-flex
1013all-build: maybe-all-build-m4
1014all-build: maybe-all-build-texinfo
1015all-build: maybe-all-build-fixincludes
1b6c0831 1016all-build: maybe-all-build-libcpp
c52c6897 1017
dd12c3a8 1018.PHONY: all-host
c52c6897 1019
c52c6897
PB
1020@if bfd-no-bootstrap
1021all-host: maybe-all-bfd
1022@endif bfd-no-bootstrap
1023@if opcodes-no-bootstrap
1024all-host: maybe-all-opcodes
1025@endif opcodes-no-bootstrap
1026@if binutils-no-bootstrap
1027all-host: maybe-all-binutils
1028@endif binutils-no-bootstrap
1029all-host: maybe-all-bison
f9806fa5 1030all-host: maybe-all-cgen
c52c6897 1031all-host: maybe-all-dejagnu
c52c6897
PB
1032all-host: maybe-all-etc
1033all-host: maybe-all-fastjar
201f096f 1034@if fixincludes-no-bootstrap
c52c6897 1035all-host: maybe-all-fixincludes
201f096f 1036@endif fixincludes-no-bootstrap
c52c6897
PB
1037all-host: maybe-all-flex
1038@if gas-no-bootstrap
1039all-host: maybe-all-gas
1040@endif gas-no-bootstrap
1041@if gcc-no-bootstrap
1042all-host: maybe-all-gcc
1043@endif gcc-no-bootstrap
4b900473
PB
1044@if gmp-no-bootstrap
1045all-host: maybe-all-gmp
1046@endif gmp-no-bootstrap
1047@if mpfr-no-bootstrap
1048all-host: maybe-all-mpfr
1049@endif mpfr-no-bootstrap
e8a5fa9c
RW
1050@if mpc-no-bootstrap
1051all-host: maybe-all-mpc
1052@endif mpc-no-bootstrap
7ec59b9e
L
1053@if isl-no-bootstrap
1054all-host: maybe-all-isl
1055@endif isl-no-bootstrap
1f53ca9a
AO
1056@if libelf-no-bootstrap
1057all-host: maybe-all-libelf
1058@endif libelf-no-bootstrap
93f9b408
ILT
1059@if gold-no-bootstrap
1060all-host: maybe-all-gold
1061@endif gold-no-bootstrap
c52c6897 1062all-host: maybe-all-gprof
c52c6897
PB
1063@if intl-no-bootstrap
1064all-host: maybe-all-intl
1065@endif intl-no-bootstrap
1066all-host: maybe-all-tcl
1067all-host: maybe-all-itcl
1068@if ld-no-bootstrap
1069all-host: maybe-all-ld
1070@endif ld-no-bootstrap
2bf680c4
ILT
1071@if libbacktrace-no-bootstrap
1072all-host: maybe-all-libbacktrace
1073@endif libbacktrace-no-bootstrap
c52c6897
PB
1074@if libcpp-no-bootstrap
1075all-host: maybe-all-libcpp
1076@endif libcpp-no-bootstrap
1077@if libdecnumber-no-bootstrap
1078all-host: maybe-all-libdecnumber
1079@endif libdecnumber-no-bootstrap
1080all-host: maybe-all-libgui
1081@if libiberty-no-bootstrap
1082all-host: maybe-all-libiberty
1083@endif libiberty-no-bootstrap
1b6c0831
L
1084@if libiberty-linker-plugin-no-bootstrap
1085all-host: maybe-all-libiberty-linker-plugin
1086@endif libiberty-linker-plugin-no-bootstrap
016a3251 1087@if libiconv-no-bootstrap
dc448a7b 1088all-host: maybe-all-libiconv
016a3251 1089@endif libiconv-no-bootstrap
c52c6897 1090all-host: maybe-all-m4
c52c6897 1091all-host: maybe-all-readline
c52c6897
PB
1092all-host: maybe-all-sid
1093all-host: maybe-all-sim
c52c6897 1094all-host: maybe-all-texinfo
c52c6897
PB
1095@if zlib-no-bootstrap
1096all-host: maybe-all-zlib
1097@endif zlib-no-bootstrap
1098all-host: maybe-all-gdb
1099all-host: maybe-all-expect
1100all-host: maybe-all-guile
1101all-host: maybe-all-tk
1102all-host: maybe-all-libtermcap
1103all-host: maybe-all-utils
1104all-host: maybe-all-gnattools
700d40ca
ILT
1105@if lto-plugin-no-bootstrap
1106all-host: maybe-all-lto-plugin
1107@endif lto-plugin-no-bootstrap
1b6c0831
L
1108all-host: maybe-all-libcc1
1109all-host: maybe-all-gotools
0e65dfba
NA
1110@if libctf-no-bootstrap
1111all-host: maybe-all-libctf
1112@endif libctf-no-bootstrap
c52c6897 1113
dd12c3a8 1114.PHONY: all-target
c52c6897 1115
e8a5fa9c 1116@if target-libstdc++-v3-no-bootstrap
c52c6897 1117all-target: maybe-all-target-libstdc++-v3
e8a5fa9c 1118@endif target-libstdc++-v3-no-bootstrap
5eb08693 1119@if target-libsanitizer-no-bootstrap
5286fdef 1120all-target: maybe-all-target-libsanitizer
5eb08693 1121@endif target-libsanitizer-no-bootstrap
1b6c0831
L
1122@if target-libmpx-no-bootstrap
1123all-target: maybe-all-target-libmpx
1124@endif target-libmpx-no-bootstrap
95e43135
JBG
1125@if target-libvtv-no-bootstrap
1126all-target: maybe-all-target-libvtv
1127@endif target-libvtv-no-bootstrap
e3f56a99 1128all-target: maybe-all-target-libcilkrts
1b6c0831 1129all-target: maybe-all-target-liboffloadmic
c52c6897 1130all-target: maybe-all-target-libssp
c52c6897 1131all-target: maybe-all-target-newlib
f86e35b8 1132@if target-libgcc-no-bootstrap
6aa8ef82 1133all-target: maybe-all-target-libgcc
f86e35b8 1134@endif target-libgcc-no-bootstrap
2bf680c4 1135all-target: maybe-all-target-libbacktrace
e552509b 1136all-target: maybe-all-target-libquadmath
c52c6897
PB
1137all-target: maybe-all-target-libgfortran
1138all-target: maybe-all-target-libobjc
e552509b 1139all-target: maybe-all-target-libgo
c52c6897
PB
1140all-target: maybe-all-target-libtermcap
1141all-target: maybe-all-target-winsup
1142all-target: maybe-all-target-libgloss
c52c6897 1143all-target: maybe-all-target-libffi
c52c6897 1144all-target: maybe-all-target-zlib
c52c6897
PB
1145all-target: maybe-all-target-rda
1146all-target: maybe-all-target-libada
911e63d0 1147@if target-libgomp-no-bootstrap
c52c6897 1148all-target: maybe-all-target-libgomp
911e63d0 1149@endif target-libgomp-no-bootstrap
7ec59b9e
L
1150all-target: maybe-all-target-libitm
1151all-target: maybe-all-target-libatomic
252b5132
RH
1152
1153# Do a target for all the subdirectories. A ``make do-X'' will do a
1154# ``make X'' in all subdirectories (because, in general, there is a
1155# dependency (below) of X upon do-X, a ``make X'' will also do this,
1156# but it may do additional work as well).
e393202e 1157
2a4cbe27 1158.PHONY: do-info
f70224b5 1159do-info:
0aed8855 1160 @: $(MAKE); $(unstage)
e360f423
PB
1161 @r=`${PWD_COMMAND}`; export r; \
1162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1163 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
f70224b5 1164 info-target
f70224b5 1165
e393202e 1166
2a4cbe27 1167.PHONY: info-host
c52c6897 1168
c52c6897
PB
1169info-host: maybe-info-bfd
1170info-host: maybe-info-opcodes
1171info-host: maybe-info-binutils
1172info-host: maybe-info-bison
f9806fa5 1173info-host: maybe-info-cgen
c52c6897 1174info-host: maybe-info-dejagnu
c52c6897
PB
1175info-host: maybe-info-etc
1176info-host: maybe-info-fastjar
c52c6897
PB
1177info-host: maybe-info-fixincludes
1178info-host: maybe-info-flex
1179info-host: maybe-info-gas
1180info-host: maybe-info-gcc
4b900473
PB
1181info-host: maybe-info-gmp
1182info-host: maybe-info-mpfr
e8a5fa9c 1183info-host: maybe-info-mpc
7ec59b9e 1184info-host: maybe-info-isl
1f53ca9a 1185info-host: maybe-info-libelf
93f9b408 1186info-host: maybe-info-gold
c52c6897 1187info-host: maybe-info-gprof
c52c6897
PB
1188info-host: maybe-info-intl
1189info-host: maybe-info-tcl
1190info-host: maybe-info-itcl
1191info-host: maybe-info-ld
2bf680c4 1192info-host: maybe-info-libbacktrace
c52c6897
PB
1193info-host: maybe-info-libcpp
1194info-host: maybe-info-libdecnumber
1195info-host: maybe-info-libgui
1196info-host: maybe-info-libiberty
1b6c0831 1197info-host: maybe-info-libiberty-linker-plugin
dc448a7b 1198info-host: maybe-info-libiconv
c52c6897 1199info-host: maybe-info-m4
c52c6897 1200info-host: maybe-info-readline
c52c6897
PB
1201info-host: maybe-info-sid
1202info-host: maybe-info-sim
c52c6897 1203info-host: maybe-info-texinfo
c52c6897
PB
1204info-host: maybe-info-zlib
1205info-host: maybe-info-gdb
1206info-host: maybe-info-expect
1207info-host: maybe-info-guile
1208info-host: maybe-info-tk
1209info-host: maybe-info-libtermcap
1210info-host: maybe-info-utils
1211info-host: maybe-info-gnattools
700d40ca 1212info-host: maybe-info-lto-plugin
1b6c0831
L
1213info-host: maybe-info-libcc1
1214info-host: maybe-info-gotools
0e65dfba 1215info-host: maybe-info-libctf
252b5132 1216
2a4cbe27 1217.PHONY: info-target
c52c6897
PB
1218
1219info-target: maybe-info-target-libstdc++-v3
5286fdef 1220info-target: maybe-info-target-libsanitizer
1b6c0831 1221info-target: maybe-info-target-libmpx
95e43135 1222info-target: maybe-info-target-libvtv
e3f56a99 1223info-target: maybe-info-target-libcilkrts
1b6c0831 1224info-target: maybe-info-target-liboffloadmic
c52c6897 1225info-target: maybe-info-target-libssp
c52c6897 1226info-target: maybe-info-target-newlib
6aa8ef82 1227info-target: maybe-info-target-libgcc
2bf680c4 1228info-target: maybe-info-target-libbacktrace
e552509b 1229info-target: maybe-info-target-libquadmath
c52c6897
PB
1230info-target: maybe-info-target-libgfortran
1231info-target: maybe-info-target-libobjc
e552509b 1232info-target: maybe-info-target-libgo
c52c6897
PB
1233info-target: maybe-info-target-libtermcap
1234info-target: maybe-info-target-winsup
1235info-target: maybe-info-target-libgloss
c52c6897 1236info-target: maybe-info-target-libffi
c52c6897 1237info-target: maybe-info-target-zlib
c52c6897
PB
1238info-target: maybe-info-target-rda
1239info-target: maybe-info-target-libada
1240info-target: maybe-info-target-libgomp
7ec59b9e
L
1241info-target: maybe-info-target-libitm
1242info-target: maybe-info-target-libatomic
252b5132 1243
4fa63067 1244.PHONY: do-dvi
f70224b5 1245do-dvi:
0aed8855 1246 @: $(MAKE); $(unstage)
e360f423
PB
1247 @r=`${PWD_COMMAND}`; export r; \
1248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1249 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
f70224b5 1250 dvi-target
f70224b5 1251
2a4cbe27 1252
4fa63067 1253.PHONY: dvi-host
c52c6897 1254
c52c6897
PB
1255dvi-host: maybe-dvi-bfd
1256dvi-host: maybe-dvi-opcodes
1257dvi-host: maybe-dvi-binutils
1258dvi-host: maybe-dvi-bison
f9806fa5 1259dvi-host: maybe-dvi-cgen
c52c6897 1260dvi-host: maybe-dvi-dejagnu
c52c6897
PB
1261dvi-host: maybe-dvi-etc
1262dvi-host: maybe-dvi-fastjar
c52c6897
PB
1263dvi-host: maybe-dvi-fixincludes
1264dvi-host: maybe-dvi-flex
1265dvi-host: maybe-dvi-gas
1266dvi-host: maybe-dvi-gcc
4b900473
PB
1267dvi-host: maybe-dvi-gmp
1268dvi-host: maybe-dvi-mpfr
e8a5fa9c 1269dvi-host: maybe-dvi-mpc
7ec59b9e 1270dvi-host: maybe-dvi-isl
1f53ca9a 1271dvi-host: maybe-dvi-libelf
93f9b408 1272dvi-host: maybe-dvi-gold
c52c6897 1273dvi-host: maybe-dvi-gprof
c52c6897
PB
1274dvi-host: maybe-dvi-intl
1275dvi-host: maybe-dvi-tcl
1276dvi-host: maybe-dvi-itcl
1277dvi-host: maybe-dvi-ld
2bf680c4 1278dvi-host: maybe-dvi-libbacktrace
c52c6897
PB
1279dvi-host: maybe-dvi-libcpp
1280dvi-host: maybe-dvi-libdecnumber
1281dvi-host: maybe-dvi-libgui
1282dvi-host: maybe-dvi-libiberty
1b6c0831 1283dvi-host: maybe-dvi-libiberty-linker-plugin
dc448a7b 1284dvi-host: maybe-dvi-libiconv
c52c6897 1285dvi-host: maybe-dvi-m4
c52c6897 1286dvi-host: maybe-dvi-readline
c52c6897
PB
1287dvi-host: maybe-dvi-sid
1288dvi-host: maybe-dvi-sim
c52c6897 1289dvi-host: maybe-dvi-texinfo
c52c6897
PB
1290dvi-host: maybe-dvi-zlib
1291dvi-host: maybe-dvi-gdb
1292dvi-host: maybe-dvi-expect
1293dvi-host: maybe-dvi-guile
1294dvi-host: maybe-dvi-tk
1295dvi-host: maybe-dvi-libtermcap
1296dvi-host: maybe-dvi-utils
1297dvi-host: maybe-dvi-gnattools
700d40ca 1298dvi-host: maybe-dvi-lto-plugin
1b6c0831
L
1299dvi-host: maybe-dvi-libcc1
1300dvi-host: maybe-dvi-gotools
0e65dfba 1301dvi-host: maybe-dvi-libctf
2a4cbe27 1302
4fa63067 1303.PHONY: dvi-target
c52c6897
PB
1304
1305dvi-target: maybe-dvi-target-libstdc++-v3
5286fdef 1306dvi-target: maybe-dvi-target-libsanitizer
1b6c0831 1307dvi-target: maybe-dvi-target-libmpx
95e43135 1308dvi-target: maybe-dvi-target-libvtv
e3f56a99 1309dvi-target: maybe-dvi-target-libcilkrts
1b6c0831 1310dvi-target: maybe-dvi-target-liboffloadmic
c52c6897 1311dvi-target: maybe-dvi-target-libssp
c52c6897 1312dvi-target: maybe-dvi-target-newlib
6aa8ef82 1313dvi-target: maybe-dvi-target-libgcc
2bf680c4 1314dvi-target: maybe-dvi-target-libbacktrace
e552509b 1315dvi-target: maybe-dvi-target-libquadmath
c52c6897
PB
1316dvi-target: maybe-dvi-target-libgfortran
1317dvi-target: maybe-dvi-target-libobjc
e552509b 1318dvi-target: maybe-dvi-target-libgo
c52c6897
PB
1319dvi-target: maybe-dvi-target-libtermcap
1320dvi-target: maybe-dvi-target-winsup
1321dvi-target: maybe-dvi-target-libgloss
c52c6897 1322dvi-target: maybe-dvi-target-libffi
c52c6897 1323dvi-target: maybe-dvi-target-zlib
c52c6897
PB
1324dvi-target: maybe-dvi-target-rda
1325dvi-target: maybe-dvi-target-libada
1326dvi-target: maybe-dvi-target-libgomp
7ec59b9e
L
1327dvi-target: maybe-dvi-target-libitm
1328dvi-target: maybe-dvi-target-libatomic
2a4cbe27 1329
56a8fe78
DD
1330.PHONY: do-pdf
1331do-pdf:
1332 @: $(MAKE); $(unstage)
1333 @r=`${PWD_COMMAND}`; export r; \
1334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1335 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1336 pdf-target
1337
1338
1339.PHONY: pdf-host
1340
56a8fe78
DD
1341pdf-host: maybe-pdf-bfd
1342pdf-host: maybe-pdf-opcodes
1343pdf-host: maybe-pdf-binutils
1344pdf-host: maybe-pdf-bison
f9806fa5 1345pdf-host: maybe-pdf-cgen
56a8fe78 1346pdf-host: maybe-pdf-dejagnu
56a8fe78
DD
1347pdf-host: maybe-pdf-etc
1348pdf-host: maybe-pdf-fastjar
56a8fe78
DD
1349pdf-host: maybe-pdf-fixincludes
1350pdf-host: maybe-pdf-flex
1351pdf-host: maybe-pdf-gas
1352pdf-host: maybe-pdf-gcc
4b900473
PB
1353pdf-host: maybe-pdf-gmp
1354pdf-host: maybe-pdf-mpfr
e8a5fa9c 1355pdf-host: maybe-pdf-mpc
7ec59b9e 1356pdf-host: maybe-pdf-isl
1f53ca9a 1357pdf-host: maybe-pdf-libelf
93f9b408 1358pdf-host: maybe-pdf-gold
56a8fe78 1359pdf-host: maybe-pdf-gprof
56a8fe78
DD
1360pdf-host: maybe-pdf-intl
1361pdf-host: maybe-pdf-tcl
1362pdf-host: maybe-pdf-itcl
1363pdf-host: maybe-pdf-ld
2bf680c4 1364pdf-host: maybe-pdf-libbacktrace
56a8fe78
DD
1365pdf-host: maybe-pdf-libcpp
1366pdf-host: maybe-pdf-libdecnumber
1367pdf-host: maybe-pdf-libgui
1368pdf-host: maybe-pdf-libiberty
1b6c0831 1369pdf-host: maybe-pdf-libiberty-linker-plugin
dc448a7b 1370pdf-host: maybe-pdf-libiconv
56a8fe78 1371pdf-host: maybe-pdf-m4
56a8fe78 1372pdf-host: maybe-pdf-readline
56a8fe78
DD
1373pdf-host: maybe-pdf-sid
1374pdf-host: maybe-pdf-sim
56a8fe78 1375pdf-host: maybe-pdf-texinfo
56a8fe78
DD
1376pdf-host: maybe-pdf-zlib
1377pdf-host: maybe-pdf-gdb
1378pdf-host: maybe-pdf-expect
1379pdf-host: maybe-pdf-guile
1380pdf-host: maybe-pdf-tk
1381pdf-host: maybe-pdf-libtermcap
1382pdf-host: maybe-pdf-utils
1383pdf-host: maybe-pdf-gnattools
700d40ca 1384pdf-host: maybe-pdf-lto-plugin
1b6c0831
L
1385pdf-host: maybe-pdf-libcc1
1386pdf-host: maybe-pdf-gotools
0e65dfba 1387pdf-host: maybe-pdf-libctf
56a8fe78
DD
1388
1389.PHONY: pdf-target
1390
1391pdf-target: maybe-pdf-target-libstdc++-v3
5286fdef 1392pdf-target: maybe-pdf-target-libsanitizer
1b6c0831 1393pdf-target: maybe-pdf-target-libmpx
95e43135 1394pdf-target: maybe-pdf-target-libvtv
e3f56a99 1395pdf-target: maybe-pdf-target-libcilkrts
1b6c0831 1396pdf-target: maybe-pdf-target-liboffloadmic
56a8fe78
DD
1397pdf-target: maybe-pdf-target-libssp
1398pdf-target: maybe-pdf-target-newlib
6aa8ef82 1399pdf-target: maybe-pdf-target-libgcc
2bf680c4 1400pdf-target: maybe-pdf-target-libbacktrace
e552509b 1401pdf-target: maybe-pdf-target-libquadmath
56a8fe78
DD
1402pdf-target: maybe-pdf-target-libgfortran
1403pdf-target: maybe-pdf-target-libobjc
e552509b 1404pdf-target: maybe-pdf-target-libgo
56a8fe78
DD
1405pdf-target: maybe-pdf-target-libtermcap
1406pdf-target: maybe-pdf-target-winsup
1407pdf-target: maybe-pdf-target-libgloss
56a8fe78 1408pdf-target: maybe-pdf-target-libffi
56a8fe78 1409pdf-target: maybe-pdf-target-zlib
56a8fe78
DD
1410pdf-target: maybe-pdf-target-rda
1411pdf-target: maybe-pdf-target-libada
1412pdf-target: maybe-pdf-target-libgomp
7ec59b9e
L
1413pdf-target: maybe-pdf-target-libitm
1414pdf-target: maybe-pdf-target-libatomic
56a8fe78 1415
6d389afc 1416.PHONY: do-html
f70224b5 1417do-html:
0aed8855 1418 @: $(MAKE); $(unstage)
e360f423
PB
1419 @r=`${PWD_COMMAND}`; export r; \
1420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1421 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
f70224b5 1422 html-target
f70224b5 1423
6d389afc
MS
1424
1425.PHONY: html-host
c52c6897 1426
c52c6897
PB
1427html-host: maybe-html-bfd
1428html-host: maybe-html-opcodes
1429html-host: maybe-html-binutils
1430html-host: maybe-html-bison
f9806fa5 1431html-host: maybe-html-cgen
c52c6897 1432html-host: maybe-html-dejagnu
c52c6897
PB
1433html-host: maybe-html-etc
1434html-host: maybe-html-fastjar
c52c6897
PB
1435html-host: maybe-html-fixincludes
1436html-host: maybe-html-flex
1437html-host: maybe-html-gas
1438html-host: maybe-html-gcc
4b900473
PB
1439html-host: maybe-html-gmp
1440html-host: maybe-html-mpfr
e8a5fa9c 1441html-host: maybe-html-mpc
7ec59b9e 1442html-host: maybe-html-isl
1f53ca9a 1443html-host: maybe-html-libelf
93f9b408 1444html-host: maybe-html-gold
c52c6897 1445html-host: maybe-html-gprof
c52c6897
PB
1446html-host: maybe-html-intl
1447html-host: maybe-html-tcl
1448html-host: maybe-html-itcl
1449html-host: maybe-html-ld
2bf680c4 1450html-host: maybe-html-libbacktrace
c52c6897
PB
1451html-host: maybe-html-libcpp
1452html-host: maybe-html-libdecnumber
1453html-host: maybe-html-libgui
1454html-host: maybe-html-libiberty
1b6c0831 1455html-host: maybe-html-libiberty-linker-plugin
dc448a7b 1456html-host: maybe-html-libiconv
c52c6897 1457html-host: maybe-html-m4
c52c6897 1458html-host: maybe-html-readline
c52c6897
PB
1459html-host: maybe-html-sid
1460html-host: maybe-html-sim
c52c6897 1461html-host: maybe-html-texinfo
c52c6897
PB
1462html-host: maybe-html-zlib
1463html-host: maybe-html-gdb
1464html-host: maybe-html-expect
1465html-host: maybe-html-guile
1466html-host: maybe-html-tk
1467html-host: maybe-html-libtermcap
1468html-host: maybe-html-utils
1469html-host: maybe-html-gnattools
700d40ca 1470html-host: maybe-html-lto-plugin
1b6c0831
L
1471html-host: maybe-html-libcc1
1472html-host: maybe-html-gotools
0e65dfba 1473html-host: maybe-html-libctf
6d389afc
MS
1474
1475.PHONY: html-target
c52c6897
PB
1476
1477html-target: maybe-html-target-libstdc++-v3
5286fdef 1478html-target: maybe-html-target-libsanitizer
1b6c0831 1479html-target: maybe-html-target-libmpx
95e43135 1480html-target: maybe-html-target-libvtv
e3f56a99 1481html-target: maybe-html-target-libcilkrts
1b6c0831 1482html-target: maybe-html-target-liboffloadmic
c52c6897 1483html-target: maybe-html-target-libssp
c52c6897 1484html-target: maybe-html-target-newlib
6aa8ef82 1485html-target: maybe-html-target-libgcc
2bf680c4 1486html-target: maybe-html-target-libbacktrace
e552509b 1487html-target: maybe-html-target-libquadmath
c52c6897
PB
1488html-target: maybe-html-target-libgfortran
1489html-target: maybe-html-target-libobjc
e552509b 1490html-target: maybe-html-target-libgo
c52c6897
PB
1491html-target: maybe-html-target-libtermcap
1492html-target: maybe-html-target-winsup
1493html-target: maybe-html-target-libgloss
c52c6897 1494html-target: maybe-html-target-libffi
c52c6897 1495html-target: maybe-html-target-zlib
c52c6897
PB
1496html-target: maybe-html-target-rda
1497html-target: maybe-html-target-libada
1498html-target: maybe-html-target-libgomp
7ec59b9e
L
1499html-target: maybe-html-target-libitm
1500html-target: maybe-html-target-libatomic
6d389afc 1501
4fa63067 1502.PHONY: do-TAGS
f70224b5 1503do-TAGS:
0aed8855 1504 @: $(MAKE); $(unstage)
e360f423
PB
1505 @r=`${PWD_COMMAND}`; export r; \
1506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1507 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
f70224b5 1508 TAGS-target
f70224b5 1509
2a4cbe27 1510
4fa63067 1511.PHONY: TAGS-host
c52c6897 1512
c52c6897
PB
1513TAGS-host: maybe-TAGS-bfd
1514TAGS-host: maybe-TAGS-opcodes
1515TAGS-host: maybe-TAGS-binutils
1516TAGS-host: maybe-TAGS-bison
f9806fa5 1517TAGS-host: maybe-TAGS-cgen
c52c6897 1518TAGS-host: maybe-TAGS-dejagnu
c52c6897
PB
1519TAGS-host: maybe-TAGS-etc
1520TAGS-host: maybe-TAGS-fastjar
c52c6897
PB
1521TAGS-host: maybe-TAGS-fixincludes
1522TAGS-host: maybe-TAGS-flex
1523TAGS-host: maybe-TAGS-gas
1524TAGS-host: maybe-TAGS-gcc
4b900473
PB
1525TAGS-host: maybe-TAGS-gmp
1526TAGS-host: maybe-TAGS-mpfr
e8a5fa9c 1527TAGS-host: maybe-TAGS-mpc
7ec59b9e 1528TAGS-host: maybe-TAGS-isl
1f53ca9a 1529TAGS-host: maybe-TAGS-libelf
93f9b408 1530TAGS-host: maybe-TAGS-gold
c52c6897 1531TAGS-host: maybe-TAGS-gprof
c52c6897
PB
1532TAGS-host: maybe-TAGS-intl
1533TAGS-host: maybe-TAGS-tcl
1534TAGS-host: maybe-TAGS-itcl
1535TAGS-host: maybe-TAGS-ld
2bf680c4 1536TAGS-host: maybe-TAGS-libbacktrace
c52c6897
PB
1537TAGS-host: maybe-TAGS-libcpp
1538TAGS-host: maybe-TAGS-libdecnumber
1539TAGS-host: maybe-TAGS-libgui
1540TAGS-host: maybe-TAGS-libiberty
1b6c0831 1541TAGS-host: maybe-TAGS-libiberty-linker-plugin
dc448a7b 1542TAGS-host: maybe-TAGS-libiconv
c52c6897 1543TAGS-host: maybe-TAGS-m4
c52c6897 1544TAGS-host: maybe-TAGS-readline
c52c6897
PB
1545TAGS-host: maybe-TAGS-sid
1546TAGS-host: maybe-TAGS-sim
c52c6897 1547TAGS-host: maybe-TAGS-texinfo
c52c6897
PB
1548TAGS-host: maybe-TAGS-zlib
1549TAGS-host: maybe-TAGS-gdb
1550TAGS-host: maybe-TAGS-expect
1551TAGS-host: maybe-TAGS-guile
1552TAGS-host: maybe-TAGS-tk
1553TAGS-host: maybe-TAGS-libtermcap
1554TAGS-host: maybe-TAGS-utils
1555TAGS-host: maybe-TAGS-gnattools
700d40ca 1556TAGS-host: maybe-TAGS-lto-plugin
1b6c0831
L
1557TAGS-host: maybe-TAGS-libcc1
1558TAGS-host: maybe-TAGS-gotools
0e65dfba 1559TAGS-host: maybe-TAGS-libctf
2a4cbe27 1560
4fa63067 1561.PHONY: TAGS-target
c52c6897
PB
1562
1563TAGS-target: maybe-TAGS-target-libstdc++-v3
5286fdef 1564TAGS-target: maybe-TAGS-target-libsanitizer
1b6c0831 1565TAGS-target: maybe-TAGS-target-libmpx
95e43135 1566TAGS-target: maybe-TAGS-target-libvtv
e3f56a99 1567TAGS-target: maybe-TAGS-target-libcilkrts
1b6c0831 1568TAGS-target: maybe-TAGS-target-liboffloadmic
c52c6897 1569TAGS-target: maybe-TAGS-target-libssp
c52c6897 1570TAGS-target: maybe-TAGS-target-newlib
6aa8ef82 1571TAGS-target: maybe-TAGS-target-libgcc
2bf680c4 1572TAGS-target: maybe-TAGS-target-libbacktrace
e552509b 1573TAGS-target: maybe-TAGS-target-libquadmath
c52c6897
PB
1574TAGS-target: maybe-TAGS-target-libgfortran
1575TAGS-target: maybe-TAGS-target-libobjc
e552509b 1576TAGS-target: maybe-TAGS-target-libgo
c52c6897
PB
1577TAGS-target: maybe-TAGS-target-libtermcap
1578TAGS-target: maybe-TAGS-target-winsup
1579TAGS-target: maybe-TAGS-target-libgloss
c52c6897 1580TAGS-target: maybe-TAGS-target-libffi
c52c6897 1581TAGS-target: maybe-TAGS-target-zlib
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
0e65dfba 1645install-info-host: maybe-install-info-libctf
a2592b1b 1646
4fa63067 1647.PHONY: install-info-target
c52c6897
PB
1648
1649install-info-target: maybe-install-info-target-libstdc++-v3
5286fdef 1650install-info-target: maybe-install-info-target-libsanitizer
1b6c0831 1651install-info-target: maybe-install-info-target-libmpx
95e43135 1652install-info-target: maybe-install-info-target-libvtv
e3f56a99 1653install-info-target: maybe-install-info-target-libcilkrts
1b6c0831 1654install-info-target: maybe-install-info-target-liboffloadmic
c52c6897 1655install-info-target: maybe-install-info-target-libssp
c52c6897 1656install-info-target: maybe-install-info-target-newlib
6aa8ef82 1657install-info-target: maybe-install-info-target-libgcc
2bf680c4 1658install-info-target: maybe-install-info-target-libbacktrace
e552509b 1659install-info-target: maybe-install-info-target-libquadmath
c52c6897
PB
1660install-info-target: maybe-install-info-target-libgfortran
1661install-info-target: maybe-install-info-target-libobjc
e552509b 1662install-info-target: maybe-install-info-target-libgo
c52c6897
PB
1663install-info-target: maybe-install-info-target-libtermcap
1664install-info-target: maybe-install-info-target-winsup
1665install-info-target: maybe-install-info-target-libgloss
c52c6897 1666install-info-target: maybe-install-info-target-libffi
c52c6897 1667install-info-target: maybe-install-info-target-zlib
c52c6897
PB
1668install-info-target: maybe-install-info-target-rda
1669install-info-target: maybe-install-info-target-libada
1670install-info-target: maybe-install-info-target-libgomp
7ec59b9e
L
1671install-info-target: maybe-install-info-target-libitm
1672install-info-target: maybe-install-info-target-libatomic
2a4cbe27 1673
a3ca38d2
DD
1674.PHONY: do-install-pdf
1675do-install-pdf:
1676 @: $(MAKE); $(unstage)
1677 @r=`${PWD_COMMAND}`; export r; \
1678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1679 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1680 install-pdf-target
1681
1682
1683.PHONY: install-pdf-host
1684
a3ca38d2
DD
1685install-pdf-host: maybe-install-pdf-bfd
1686install-pdf-host: maybe-install-pdf-opcodes
1687install-pdf-host: maybe-install-pdf-binutils
1688install-pdf-host: maybe-install-pdf-bison
f9806fa5 1689install-pdf-host: maybe-install-pdf-cgen
a3ca38d2 1690install-pdf-host: maybe-install-pdf-dejagnu
a3ca38d2
DD
1691install-pdf-host: maybe-install-pdf-etc
1692install-pdf-host: maybe-install-pdf-fastjar
a3ca38d2
DD
1693install-pdf-host: maybe-install-pdf-fixincludes
1694install-pdf-host: maybe-install-pdf-flex
1695install-pdf-host: maybe-install-pdf-gas
1696install-pdf-host: maybe-install-pdf-gcc
a3ca38d2
DD
1697install-pdf-host: maybe-install-pdf-gmp
1698install-pdf-host: maybe-install-pdf-mpfr
e8a5fa9c 1699install-pdf-host: maybe-install-pdf-mpc
7ec59b9e 1700install-pdf-host: maybe-install-pdf-isl
1f53ca9a 1701install-pdf-host: maybe-install-pdf-libelf
93f9b408 1702install-pdf-host: maybe-install-pdf-gold
a3ca38d2 1703install-pdf-host: maybe-install-pdf-gprof
a3ca38d2
DD
1704install-pdf-host: maybe-install-pdf-intl
1705install-pdf-host: maybe-install-pdf-tcl
1706install-pdf-host: maybe-install-pdf-itcl
1707install-pdf-host: maybe-install-pdf-ld
2bf680c4 1708install-pdf-host: maybe-install-pdf-libbacktrace
a3ca38d2
DD
1709install-pdf-host: maybe-install-pdf-libcpp
1710install-pdf-host: maybe-install-pdf-libdecnumber
1711install-pdf-host: maybe-install-pdf-libgui
1712install-pdf-host: maybe-install-pdf-libiberty
1b6c0831 1713install-pdf-host: maybe-install-pdf-libiberty-linker-plugin
dc448a7b 1714install-pdf-host: maybe-install-pdf-libiconv
a3ca38d2 1715install-pdf-host: maybe-install-pdf-m4
a3ca38d2 1716install-pdf-host: maybe-install-pdf-readline
a3ca38d2
DD
1717install-pdf-host: maybe-install-pdf-sid
1718install-pdf-host: maybe-install-pdf-sim
a3ca38d2 1719install-pdf-host: maybe-install-pdf-texinfo
a3ca38d2
DD
1720install-pdf-host: maybe-install-pdf-zlib
1721install-pdf-host: maybe-install-pdf-gdb
1722install-pdf-host: maybe-install-pdf-expect
1723install-pdf-host: maybe-install-pdf-guile
1724install-pdf-host: maybe-install-pdf-tk
1725install-pdf-host: maybe-install-pdf-libtermcap
1726install-pdf-host: maybe-install-pdf-utils
1727install-pdf-host: maybe-install-pdf-gnattools
700d40ca 1728install-pdf-host: maybe-install-pdf-lto-plugin
1b6c0831
L
1729install-pdf-host: maybe-install-pdf-libcc1
1730install-pdf-host: maybe-install-pdf-gotools
0e65dfba 1731install-pdf-host: maybe-install-pdf-libctf
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
e3f56a99 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 1752install-pdf-target: maybe-install-pdf-target-libffi
a3ca38d2 1753install-pdf-target: maybe-install-pdf-target-zlib
a3ca38d2
DD
1754install-pdf-target: maybe-install-pdf-target-rda
1755install-pdf-target: maybe-install-pdf-target-libada
1756install-pdf-target: maybe-install-pdf-target-libgomp
7ec59b9e
L
1757install-pdf-target: maybe-install-pdf-target-libitm
1758install-pdf-target: maybe-install-pdf-target-libatomic
a3ca38d2 1759
108a6f8e
CD
1760.PHONY: do-install-html
1761do-install-html:
1762 @: $(MAKE); $(unstage)
1763 @r=`${PWD_COMMAND}`; export r; \
1764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1765 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1766 install-html-target
1767
1768
1769.PHONY: install-html-host
1770
108a6f8e
CD
1771install-html-host: maybe-install-html-bfd
1772install-html-host: maybe-install-html-opcodes
1773install-html-host: maybe-install-html-binutils
1774install-html-host: maybe-install-html-bison
f9806fa5 1775install-html-host: maybe-install-html-cgen
108a6f8e 1776install-html-host: maybe-install-html-dejagnu
108a6f8e
CD
1777install-html-host: maybe-install-html-etc
1778install-html-host: maybe-install-html-fastjar
108a6f8e
CD
1779install-html-host: maybe-install-html-fixincludes
1780install-html-host: maybe-install-html-flex
1781install-html-host: maybe-install-html-gas
1782install-html-host: maybe-install-html-gcc
4b900473
PB
1783install-html-host: maybe-install-html-gmp
1784install-html-host: maybe-install-html-mpfr
e8a5fa9c 1785install-html-host: maybe-install-html-mpc
7ec59b9e 1786install-html-host: maybe-install-html-isl
1f53ca9a 1787install-html-host: maybe-install-html-libelf
93f9b408 1788install-html-host: maybe-install-html-gold
108a6f8e 1789install-html-host: maybe-install-html-gprof
108a6f8e
CD
1790install-html-host: maybe-install-html-intl
1791install-html-host: maybe-install-html-tcl
1792install-html-host: maybe-install-html-itcl
1793install-html-host: maybe-install-html-ld
2bf680c4 1794install-html-host: maybe-install-html-libbacktrace
108a6f8e
CD
1795install-html-host: maybe-install-html-libcpp
1796install-html-host: maybe-install-html-libdecnumber
1797install-html-host: maybe-install-html-libgui
1798install-html-host: maybe-install-html-libiberty
1b6c0831 1799install-html-host: maybe-install-html-libiberty-linker-plugin
dc448a7b 1800install-html-host: maybe-install-html-libiconv
108a6f8e 1801install-html-host: maybe-install-html-m4
108a6f8e 1802install-html-host: maybe-install-html-readline
108a6f8e
CD
1803install-html-host: maybe-install-html-sid
1804install-html-host: maybe-install-html-sim
108a6f8e 1805install-html-host: maybe-install-html-texinfo
108a6f8e
CD
1806install-html-host: maybe-install-html-zlib
1807install-html-host: maybe-install-html-gdb
1808install-html-host: maybe-install-html-expect
1809install-html-host: maybe-install-html-guile
1810install-html-host: maybe-install-html-tk
1811install-html-host: maybe-install-html-libtermcap
1812install-html-host: maybe-install-html-utils
1813install-html-host: maybe-install-html-gnattools
700d40ca 1814install-html-host: maybe-install-html-lto-plugin
1b6c0831
L
1815install-html-host: maybe-install-html-libcc1
1816install-html-host: maybe-install-html-gotools
0e65dfba 1817install-html-host: maybe-install-html-libctf
108a6f8e
CD
1818
1819.PHONY: install-html-target
1820
1821install-html-target: maybe-install-html-target-libstdc++-v3
5286fdef 1822install-html-target: maybe-install-html-target-libsanitizer
1b6c0831 1823install-html-target: maybe-install-html-target-libmpx
95e43135 1824install-html-target: maybe-install-html-target-libvtv
e3f56a99 1825install-html-target: maybe-install-html-target-libcilkrts
1b6c0831 1826install-html-target: maybe-install-html-target-liboffloadmic
108a6f8e 1827install-html-target: maybe-install-html-target-libssp
108a6f8e 1828install-html-target: maybe-install-html-target-newlib
6aa8ef82 1829install-html-target: maybe-install-html-target-libgcc
2bf680c4 1830install-html-target: maybe-install-html-target-libbacktrace
e552509b 1831install-html-target: maybe-install-html-target-libquadmath
108a6f8e
CD
1832install-html-target: maybe-install-html-target-libgfortran
1833install-html-target: maybe-install-html-target-libobjc
e552509b 1834install-html-target: maybe-install-html-target-libgo
108a6f8e
CD
1835install-html-target: maybe-install-html-target-libtermcap
1836install-html-target: maybe-install-html-target-winsup
1837install-html-target: maybe-install-html-target-libgloss
108a6f8e 1838install-html-target: maybe-install-html-target-libffi
108a6f8e 1839install-html-target: maybe-install-html-target-zlib
108a6f8e
CD
1840install-html-target: maybe-install-html-target-rda
1841install-html-target: maybe-install-html-target-libada
1842install-html-target: maybe-install-html-target-libgomp
7ec59b9e
L
1843install-html-target: maybe-install-html-target-libitm
1844install-html-target: maybe-install-html-target-libatomic
108a6f8e 1845
2a4cbe27 1846.PHONY: do-installcheck
f70224b5 1847do-installcheck:
0aed8855 1848 @: $(MAKE); $(unstage)
e360f423
PB
1849 @r=`${PWD_COMMAND}`; export r; \
1850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1851 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
f70224b5 1852 installcheck-target
f70224b5 1853
2a4cbe27
NN
1854
1855.PHONY: installcheck-host
c52c6897 1856
c52c6897
PB
1857installcheck-host: maybe-installcheck-bfd
1858installcheck-host: maybe-installcheck-opcodes
1859installcheck-host: maybe-installcheck-binutils
1860installcheck-host: maybe-installcheck-bison
f9806fa5 1861installcheck-host: maybe-installcheck-cgen
c52c6897 1862installcheck-host: maybe-installcheck-dejagnu
c52c6897
PB
1863installcheck-host: maybe-installcheck-etc
1864installcheck-host: maybe-installcheck-fastjar
c52c6897
PB
1865installcheck-host: maybe-installcheck-fixincludes
1866installcheck-host: maybe-installcheck-flex
1867installcheck-host: maybe-installcheck-gas
1868installcheck-host: maybe-installcheck-gcc
4b900473
PB
1869installcheck-host: maybe-installcheck-gmp
1870installcheck-host: maybe-installcheck-mpfr
e8a5fa9c 1871installcheck-host: maybe-installcheck-mpc
7ec59b9e 1872installcheck-host: maybe-installcheck-isl
1f53ca9a 1873installcheck-host: maybe-installcheck-libelf
93f9b408 1874installcheck-host: maybe-installcheck-gold
c52c6897 1875installcheck-host: maybe-installcheck-gprof
c52c6897
PB
1876installcheck-host: maybe-installcheck-intl
1877installcheck-host: maybe-installcheck-tcl
1878installcheck-host: maybe-installcheck-itcl
1879installcheck-host: maybe-installcheck-ld
2bf680c4 1880installcheck-host: maybe-installcheck-libbacktrace
c52c6897
PB
1881installcheck-host: maybe-installcheck-libcpp
1882installcheck-host: maybe-installcheck-libdecnumber
1883installcheck-host: maybe-installcheck-libgui
1884installcheck-host: maybe-installcheck-libiberty
1b6c0831 1885installcheck-host: maybe-installcheck-libiberty-linker-plugin
dc448a7b 1886installcheck-host: maybe-installcheck-libiconv
c52c6897 1887installcheck-host: maybe-installcheck-m4
c52c6897 1888installcheck-host: maybe-installcheck-readline
c52c6897
PB
1889installcheck-host: maybe-installcheck-sid
1890installcheck-host: maybe-installcheck-sim
c52c6897 1891installcheck-host: maybe-installcheck-texinfo
c52c6897
PB
1892installcheck-host: maybe-installcheck-zlib
1893installcheck-host: maybe-installcheck-gdb
1894installcheck-host: maybe-installcheck-expect
1895installcheck-host: maybe-installcheck-guile
1896installcheck-host: maybe-installcheck-tk
1897installcheck-host: maybe-installcheck-libtermcap
1898installcheck-host: maybe-installcheck-utils
1899installcheck-host: maybe-installcheck-gnattools
700d40ca 1900installcheck-host: maybe-installcheck-lto-plugin
1b6c0831
L
1901installcheck-host: maybe-installcheck-libcc1
1902installcheck-host: maybe-installcheck-gotools
0e65dfba 1903installcheck-host: maybe-installcheck-libctf
2a4cbe27
NN
1904
1905.PHONY: installcheck-target
c52c6897
PB
1906
1907installcheck-target: maybe-installcheck-target-libstdc++-v3
5286fdef 1908installcheck-target: maybe-installcheck-target-libsanitizer
1b6c0831 1909installcheck-target: maybe-installcheck-target-libmpx
95e43135 1910installcheck-target: maybe-installcheck-target-libvtv
e3f56a99 1911installcheck-target: maybe-installcheck-target-libcilkrts
1b6c0831 1912installcheck-target: maybe-installcheck-target-liboffloadmic
c52c6897 1913installcheck-target: maybe-installcheck-target-libssp
c52c6897 1914installcheck-target: maybe-installcheck-target-newlib
6aa8ef82 1915installcheck-target: maybe-installcheck-target-libgcc
2bf680c4 1916installcheck-target: maybe-installcheck-target-libbacktrace
e552509b 1917installcheck-target: maybe-installcheck-target-libquadmath
c52c6897
PB
1918installcheck-target: maybe-installcheck-target-libgfortran
1919installcheck-target: maybe-installcheck-target-libobjc
e552509b 1920installcheck-target: maybe-installcheck-target-libgo
c52c6897
PB
1921installcheck-target: maybe-installcheck-target-libtermcap
1922installcheck-target: maybe-installcheck-target-winsup
1923installcheck-target: maybe-installcheck-target-libgloss
c52c6897 1924installcheck-target: maybe-installcheck-target-libffi
c52c6897 1925installcheck-target: maybe-installcheck-target-zlib
c52c6897
PB
1926installcheck-target: maybe-installcheck-target-rda
1927installcheck-target: maybe-installcheck-target-libada
1928installcheck-target: maybe-installcheck-target-libgomp
7ec59b9e
L
1929installcheck-target: maybe-installcheck-target-libitm
1930installcheck-target: maybe-installcheck-target-libatomic
2a4cbe27 1931
4fa63067 1932.PHONY: do-mostlyclean
f70224b5 1933do-mostlyclean:
0aed8855 1934 @: $(MAKE); $(unstage)
e360f423
PB
1935 @r=`${PWD_COMMAND}`; export r; \
1936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1937 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
f70224b5 1938 mostlyclean-target
f70224b5 1939
2a4cbe27 1940
4fa63067 1941.PHONY: mostlyclean-host
c52c6897 1942
c52c6897
PB
1943mostlyclean-host: maybe-mostlyclean-bfd
1944mostlyclean-host: maybe-mostlyclean-opcodes
1945mostlyclean-host: maybe-mostlyclean-binutils
1946mostlyclean-host: maybe-mostlyclean-bison
f9806fa5 1947mostlyclean-host: maybe-mostlyclean-cgen
c52c6897 1948mostlyclean-host: maybe-mostlyclean-dejagnu
c52c6897
PB
1949mostlyclean-host: maybe-mostlyclean-etc
1950mostlyclean-host: maybe-mostlyclean-fastjar
c52c6897
PB
1951mostlyclean-host: maybe-mostlyclean-fixincludes
1952mostlyclean-host: maybe-mostlyclean-flex
1953mostlyclean-host: maybe-mostlyclean-gas
1954mostlyclean-host: maybe-mostlyclean-gcc
4b900473
PB
1955mostlyclean-host: maybe-mostlyclean-gmp
1956mostlyclean-host: maybe-mostlyclean-mpfr
e8a5fa9c 1957mostlyclean-host: maybe-mostlyclean-mpc
7ec59b9e 1958mostlyclean-host: maybe-mostlyclean-isl
1f53ca9a 1959mostlyclean-host: maybe-mostlyclean-libelf
93f9b408 1960mostlyclean-host: maybe-mostlyclean-gold
c52c6897 1961mostlyclean-host: maybe-mostlyclean-gprof
c52c6897
PB
1962mostlyclean-host: maybe-mostlyclean-intl
1963mostlyclean-host: maybe-mostlyclean-tcl
1964mostlyclean-host: maybe-mostlyclean-itcl
1965mostlyclean-host: maybe-mostlyclean-ld
2bf680c4 1966mostlyclean-host: maybe-mostlyclean-libbacktrace
c52c6897
PB
1967mostlyclean-host: maybe-mostlyclean-libcpp
1968mostlyclean-host: maybe-mostlyclean-libdecnumber
1969mostlyclean-host: maybe-mostlyclean-libgui
1970mostlyclean-host: maybe-mostlyclean-libiberty
1b6c0831 1971mostlyclean-host: maybe-mostlyclean-libiberty-linker-plugin
dc448a7b 1972mostlyclean-host: maybe-mostlyclean-libiconv
c52c6897 1973mostlyclean-host: maybe-mostlyclean-m4
c52c6897 1974mostlyclean-host: maybe-mostlyclean-readline
c52c6897
PB
1975mostlyclean-host: maybe-mostlyclean-sid
1976mostlyclean-host: maybe-mostlyclean-sim
c52c6897 1977mostlyclean-host: maybe-mostlyclean-texinfo
c52c6897
PB
1978mostlyclean-host: maybe-mostlyclean-zlib
1979mostlyclean-host: maybe-mostlyclean-gdb
1980mostlyclean-host: maybe-mostlyclean-expect
1981mostlyclean-host: maybe-mostlyclean-guile
1982mostlyclean-host: maybe-mostlyclean-tk
1983mostlyclean-host: maybe-mostlyclean-libtermcap
1984mostlyclean-host: maybe-mostlyclean-utils
1985mostlyclean-host: maybe-mostlyclean-gnattools
700d40ca 1986mostlyclean-host: maybe-mostlyclean-lto-plugin
1b6c0831
L
1987mostlyclean-host: maybe-mostlyclean-libcc1
1988mostlyclean-host: maybe-mostlyclean-gotools
0e65dfba 1989mostlyclean-host: maybe-mostlyclean-libctf
2a4cbe27 1990
4fa63067 1991.PHONY: mostlyclean-target
c52c6897
PB
1992
1993mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
5286fdef 1994mostlyclean-target: maybe-mostlyclean-target-libsanitizer
1b6c0831 1995mostlyclean-target: maybe-mostlyclean-target-libmpx
95e43135 1996mostlyclean-target: maybe-mostlyclean-target-libvtv
e3f56a99 1997mostlyclean-target: maybe-mostlyclean-target-libcilkrts
1b6c0831 1998mostlyclean-target: maybe-mostlyclean-target-liboffloadmic
c52c6897 1999mostlyclean-target: maybe-mostlyclean-target-libssp
c52c6897 2000mostlyclean-target: maybe-mostlyclean-target-newlib
6aa8ef82 2001mostlyclean-target: maybe-mostlyclean-target-libgcc
2bf680c4 2002mostlyclean-target: maybe-mostlyclean-target-libbacktrace
e552509b 2003mostlyclean-target: maybe-mostlyclean-target-libquadmath
c52c6897
PB
2004mostlyclean-target: maybe-mostlyclean-target-libgfortran
2005mostlyclean-target: maybe-mostlyclean-target-libobjc
e552509b 2006mostlyclean-target: maybe-mostlyclean-target-libgo
c52c6897
PB
2007mostlyclean-target: maybe-mostlyclean-target-libtermcap
2008mostlyclean-target: maybe-mostlyclean-target-winsup
2009mostlyclean-target: maybe-mostlyclean-target-libgloss
c52c6897 2010mostlyclean-target: maybe-mostlyclean-target-libffi
c52c6897 2011mostlyclean-target: maybe-mostlyclean-target-zlib
c52c6897
PB
2012mostlyclean-target: maybe-mostlyclean-target-rda
2013mostlyclean-target: maybe-mostlyclean-target-libada
2014mostlyclean-target: maybe-mostlyclean-target-libgomp
7ec59b9e
L
2015mostlyclean-target: maybe-mostlyclean-target-libitm
2016mostlyclean-target: maybe-mostlyclean-target-libatomic
2a4cbe27 2017
4fa63067 2018.PHONY: do-clean
f70224b5 2019do-clean:
0aed8855 2020 @: $(MAKE); $(unstage)
e360f423
PB
2021 @r=`${PWD_COMMAND}`; export r; \
2022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2023 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
f70224b5 2024 clean-target
f70224b5 2025
2a4cbe27 2026
4fa63067 2027.PHONY: clean-host
c52c6897 2028
c52c6897
PB
2029clean-host: maybe-clean-bfd
2030clean-host: maybe-clean-opcodes
2031clean-host: maybe-clean-binutils
2032clean-host: maybe-clean-bison
f9806fa5 2033clean-host: maybe-clean-cgen
c52c6897 2034clean-host: maybe-clean-dejagnu
c52c6897
PB
2035clean-host: maybe-clean-etc
2036clean-host: maybe-clean-fastjar
c52c6897
PB
2037clean-host: maybe-clean-fixincludes
2038clean-host: maybe-clean-flex
2039clean-host: maybe-clean-gas
2040clean-host: maybe-clean-gcc
4b900473
PB
2041clean-host: maybe-clean-gmp
2042clean-host: maybe-clean-mpfr
e8a5fa9c 2043clean-host: maybe-clean-mpc
7ec59b9e 2044clean-host: maybe-clean-isl
1f53ca9a 2045clean-host: maybe-clean-libelf
93f9b408 2046clean-host: maybe-clean-gold
c52c6897 2047clean-host: maybe-clean-gprof
c52c6897
PB
2048clean-host: maybe-clean-intl
2049clean-host: maybe-clean-tcl
2050clean-host: maybe-clean-itcl
2051clean-host: maybe-clean-ld
2bf680c4 2052clean-host: maybe-clean-libbacktrace
c52c6897
PB
2053clean-host: maybe-clean-libcpp
2054clean-host: maybe-clean-libdecnumber
2055clean-host: maybe-clean-libgui
2056clean-host: maybe-clean-libiberty
1b6c0831 2057clean-host: maybe-clean-libiberty-linker-plugin
dc448a7b 2058clean-host: maybe-clean-libiconv
c52c6897 2059clean-host: maybe-clean-m4
c52c6897 2060clean-host: maybe-clean-readline
c52c6897
PB
2061clean-host: maybe-clean-sid
2062clean-host: maybe-clean-sim
c52c6897 2063clean-host: maybe-clean-texinfo
c52c6897
PB
2064clean-host: maybe-clean-zlib
2065clean-host: maybe-clean-gdb
2066clean-host: maybe-clean-expect
2067clean-host: maybe-clean-guile
2068clean-host: maybe-clean-tk
2069clean-host: maybe-clean-libtermcap
2070clean-host: maybe-clean-utils
2071clean-host: maybe-clean-gnattools
700d40ca 2072clean-host: maybe-clean-lto-plugin
1b6c0831
L
2073clean-host: maybe-clean-libcc1
2074clean-host: maybe-clean-gotools
0e65dfba 2075clean-host: maybe-clean-libctf
2a4cbe27 2076
4fa63067 2077.PHONY: clean-target
c52c6897
PB
2078
2079clean-target: maybe-clean-target-libstdc++-v3
5286fdef 2080clean-target: maybe-clean-target-libsanitizer
1b6c0831 2081clean-target: maybe-clean-target-libmpx
95e43135 2082clean-target: maybe-clean-target-libvtv
e3f56a99 2083clean-target: maybe-clean-target-libcilkrts
1b6c0831 2084clean-target: maybe-clean-target-liboffloadmic
c52c6897 2085clean-target: maybe-clean-target-libssp
c52c6897 2086clean-target: maybe-clean-target-newlib
6aa8ef82 2087clean-target: maybe-clean-target-libgcc
2bf680c4 2088clean-target: maybe-clean-target-libbacktrace
e552509b 2089clean-target: maybe-clean-target-libquadmath
c52c6897
PB
2090clean-target: maybe-clean-target-libgfortran
2091clean-target: maybe-clean-target-libobjc
e552509b 2092clean-target: maybe-clean-target-libgo
c52c6897
PB
2093clean-target: maybe-clean-target-libtermcap
2094clean-target: maybe-clean-target-winsup
2095clean-target: maybe-clean-target-libgloss
c52c6897 2096clean-target: maybe-clean-target-libffi
c52c6897 2097clean-target: maybe-clean-target-zlib
c52c6897
PB
2098clean-target: maybe-clean-target-rda
2099clean-target: maybe-clean-target-libada
2100clean-target: maybe-clean-target-libgomp
7ec59b9e
L
2101clean-target: maybe-clean-target-libitm
2102clean-target: maybe-clean-target-libatomic
2a4cbe27 2103
4fa63067 2104.PHONY: do-distclean
f70224b5 2105do-distclean:
0aed8855 2106 @: $(MAKE); $(unstage)
e360f423
PB
2107 @r=`${PWD_COMMAND}`; export r; \
2108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2109 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
f70224b5 2110 distclean-target
f70224b5 2111
2a4cbe27 2112
4fa63067 2113.PHONY: distclean-host
c52c6897 2114
c52c6897
PB
2115distclean-host: maybe-distclean-bfd
2116distclean-host: maybe-distclean-opcodes
2117distclean-host: maybe-distclean-binutils
2118distclean-host: maybe-distclean-bison
f9806fa5 2119distclean-host: maybe-distclean-cgen
c52c6897 2120distclean-host: maybe-distclean-dejagnu
c52c6897
PB
2121distclean-host: maybe-distclean-etc
2122distclean-host: maybe-distclean-fastjar
c52c6897
PB
2123distclean-host: maybe-distclean-fixincludes
2124distclean-host: maybe-distclean-flex
2125distclean-host: maybe-distclean-gas
2126distclean-host: maybe-distclean-gcc
4b900473
PB
2127distclean-host: maybe-distclean-gmp
2128distclean-host: maybe-distclean-mpfr
e8a5fa9c 2129distclean-host: maybe-distclean-mpc
7ec59b9e 2130distclean-host: maybe-distclean-isl
1f53ca9a 2131distclean-host: maybe-distclean-libelf
93f9b408 2132distclean-host: maybe-distclean-gold
c52c6897 2133distclean-host: maybe-distclean-gprof
c52c6897
PB
2134distclean-host: maybe-distclean-intl
2135distclean-host: maybe-distclean-tcl
2136distclean-host: maybe-distclean-itcl
2137distclean-host: maybe-distclean-ld
2bf680c4 2138distclean-host: maybe-distclean-libbacktrace
c52c6897
PB
2139distclean-host: maybe-distclean-libcpp
2140distclean-host: maybe-distclean-libdecnumber
2141distclean-host: maybe-distclean-libgui
2142distclean-host: maybe-distclean-libiberty
1b6c0831 2143distclean-host: maybe-distclean-libiberty-linker-plugin
dc448a7b 2144distclean-host: maybe-distclean-libiconv
c52c6897 2145distclean-host: maybe-distclean-m4
c52c6897 2146distclean-host: maybe-distclean-readline
c52c6897
PB
2147distclean-host: maybe-distclean-sid
2148distclean-host: maybe-distclean-sim
c52c6897 2149distclean-host: maybe-distclean-texinfo
c52c6897
PB
2150distclean-host: maybe-distclean-zlib
2151distclean-host: maybe-distclean-gdb
2152distclean-host: maybe-distclean-expect
2153distclean-host: maybe-distclean-guile
2154distclean-host: maybe-distclean-tk
2155distclean-host: maybe-distclean-libtermcap
2156distclean-host: maybe-distclean-utils
2157distclean-host: maybe-distclean-gnattools
700d40ca 2158distclean-host: maybe-distclean-lto-plugin
1b6c0831
L
2159distclean-host: maybe-distclean-libcc1
2160distclean-host: maybe-distclean-gotools
0e65dfba 2161distclean-host: maybe-distclean-libctf
2a4cbe27 2162
4fa63067 2163.PHONY: distclean-target
c52c6897
PB
2164
2165distclean-target: maybe-distclean-target-libstdc++-v3
5286fdef 2166distclean-target: maybe-distclean-target-libsanitizer
1b6c0831 2167distclean-target: maybe-distclean-target-libmpx
95e43135 2168distclean-target: maybe-distclean-target-libvtv
e3f56a99 2169distclean-target: maybe-distclean-target-libcilkrts
1b6c0831 2170distclean-target: maybe-distclean-target-liboffloadmic
c52c6897 2171distclean-target: maybe-distclean-target-libssp
c52c6897 2172distclean-target: maybe-distclean-target-newlib
6aa8ef82 2173distclean-target: maybe-distclean-target-libgcc
2bf680c4 2174distclean-target: maybe-distclean-target-libbacktrace
e552509b 2175distclean-target: maybe-distclean-target-libquadmath
c52c6897
PB
2176distclean-target: maybe-distclean-target-libgfortran
2177distclean-target: maybe-distclean-target-libobjc
e552509b 2178distclean-target: maybe-distclean-target-libgo
c52c6897
PB
2179distclean-target: maybe-distclean-target-libtermcap
2180distclean-target: maybe-distclean-target-winsup
2181distclean-target: maybe-distclean-target-libgloss
c52c6897 2182distclean-target: maybe-distclean-target-libffi
c52c6897 2183distclean-target: maybe-distclean-target-zlib
c52c6897
PB
2184distclean-target: maybe-distclean-target-rda
2185distclean-target: maybe-distclean-target-libada
2186distclean-target: maybe-distclean-target-libgomp
7ec59b9e
L
2187distclean-target: maybe-distclean-target-libitm
2188distclean-target: maybe-distclean-target-libatomic
2a4cbe27 2189
4fa63067 2190.PHONY: do-maintainer-clean
f70224b5 2191do-maintainer-clean:
0aed8855 2192 @: $(MAKE); $(unstage)
e360f423
PB
2193 @r=`${PWD_COMMAND}`; export r; \
2194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2195 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
f70224b5 2196 maintainer-clean-target
f70224b5 2197
2a4cbe27 2198
4fa63067 2199.PHONY: maintainer-clean-host
c52c6897 2200
c52c6897
PB
2201maintainer-clean-host: maybe-maintainer-clean-bfd
2202maintainer-clean-host: maybe-maintainer-clean-opcodes
2203maintainer-clean-host: maybe-maintainer-clean-binutils
2204maintainer-clean-host: maybe-maintainer-clean-bison
f9806fa5 2205maintainer-clean-host: maybe-maintainer-clean-cgen
c52c6897 2206maintainer-clean-host: maybe-maintainer-clean-dejagnu
c52c6897
PB
2207maintainer-clean-host: maybe-maintainer-clean-etc
2208maintainer-clean-host: maybe-maintainer-clean-fastjar
c52c6897
PB
2209maintainer-clean-host: maybe-maintainer-clean-fixincludes
2210maintainer-clean-host: maybe-maintainer-clean-flex
2211maintainer-clean-host: maybe-maintainer-clean-gas
2212maintainer-clean-host: maybe-maintainer-clean-gcc
4b900473
PB
2213maintainer-clean-host: maybe-maintainer-clean-gmp
2214maintainer-clean-host: maybe-maintainer-clean-mpfr
e8a5fa9c 2215maintainer-clean-host: maybe-maintainer-clean-mpc
7ec59b9e 2216maintainer-clean-host: maybe-maintainer-clean-isl
1f53ca9a 2217maintainer-clean-host: maybe-maintainer-clean-libelf
93f9b408 2218maintainer-clean-host: maybe-maintainer-clean-gold
c52c6897 2219maintainer-clean-host: maybe-maintainer-clean-gprof
c52c6897
PB
2220maintainer-clean-host: maybe-maintainer-clean-intl
2221maintainer-clean-host: maybe-maintainer-clean-tcl
2222maintainer-clean-host: maybe-maintainer-clean-itcl
2223maintainer-clean-host: maybe-maintainer-clean-ld
2bf680c4 2224maintainer-clean-host: maybe-maintainer-clean-libbacktrace
c52c6897
PB
2225maintainer-clean-host: maybe-maintainer-clean-libcpp
2226maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2227maintainer-clean-host: maybe-maintainer-clean-libgui
2228maintainer-clean-host: maybe-maintainer-clean-libiberty
1b6c0831 2229maintainer-clean-host: maybe-maintainer-clean-libiberty-linker-plugin
dc448a7b 2230maintainer-clean-host: maybe-maintainer-clean-libiconv
c52c6897 2231maintainer-clean-host: maybe-maintainer-clean-m4
c52c6897 2232maintainer-clean-host: maybe-maintainer-clean-readline
c52c6897
PB
2233maintainer-clean-host: maybe-maintainer-clean-sid
2234maintainer-clean-host: maybe-maintainer-clean-sim
c52c6897 2235maintainer-clean-host: maybe-maintainer-clean-texinfo
c52c6897
PB
2236maintainer-clean-host: maybe-maintainer-clean-zlib
2237maintainer-clean-host: maybe-maintainer-clean-gdb
2238maintainer-clean-host: maybe-maintainer-clean-expect
2239maintainer-clean-host: maybe-maintainer-clean-guile
2240maintainer-clean-host: maybe-maintainer-clean-tk
2241maintainer-clean-host: maybe-maintainer-clean-libtermcap
2242maintainer-clean-host: maybe-maintainer-clean-utils
2243maintainer-clean-host: maybe-maintainer-clean-gnattools
700d40ca 2244maintainer-clean-host: maybe-maintainer-clean-lto-plugin
1b6c0831
L
2245maintainer-clean-host: maybe-maintainer-clean-libcc1
2246maintainer-clean-host: maybe-maintainer-clean-gotools
0e65dfba 2247maintainer-clean-host: maybe-maintainer-clean-libctf
2a4cbe27 2248
4fa63067 2249.PHONY: maintainer-clean-target
c52c6897
PB
2250
2251maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
5286fdef 2252maintainer-clean-target: maybe-maintainer-clean-target-libsanitizer
1b6c0831 2253maintainer-clean-target: maybe-maintainer-clean-target-libmpx
95e43135 2254maintainer-clean-target: maybe-maintainer-clean-target-libvtv
e3f56a99 2255maintainer-clean-target: maybe-maintainer-clean-target-libcilkrts
1b6c0831 2256maintainer-clean-target: maybe-maintainer-clean-target-liboffloadmic
c52c6897 2257maintainer-clean-target: maybe-maintainer-clean-target-libssp
c52c6897 2258maintainer-clean-target: maybe-maintainer-clean-target-newlib
6aa8ef82 2259maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2bf680c4 2260maintainer-clean-target: maybe-maintainer-clean-target-libbacktrace
e552509b 2261maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
c52c6897
PB
2262maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2263maintainer-clean-target: maybe-maintainer-clean-target-libobjc
e552509b 2264maintainer-clean-target: maybe-maintainer-clean-target-libgo
c52c6897
PB
2265maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2266maintainer-clean-target: maybe-maintainer-clean-target-winsup
2267maintainer-clean-target: maybe-maintainer-clean-target-libgloss
c52c6897 2268maintainer-clean-target: maybe-maintainer-clean-target-libffi
c52c6897 2269maintainer-clean-target: maybe-maintainer-clean-target-zlib
c52c6897
PB
2270maintainer-clean-target: maybe-maintainer-clean-target-rda
2271maintainer-clean-target: maybe-maintainer-clean-target-libada
2272maintainer-clean-target: maybe-maintainer-clean-target-libgomp
7ec59b9e
L
2273maintainer-clean-target: maybe-maintainer-clean-target-libitm
2274maintainer-clean-target: maybe-maintainer-clean-target-libatomic
2a4cbe27 2275
2a4cbe27 2276
4fa63067 2277# Here are the targets which correspond to the do-X targets.
2a4cbe27 2278
a3ca38d2
DD
2279.PHONY: info installcheck dvi pdf html
2280.PHONY: install-info install-pdf install-html
4fa63067
NN
2281.PHONY: clean distclean mostlyclean maintainer-clean realclean
2282.PHONY: local-clean local-distclean local-maintainer-clean
2283info: do-info
2284installcheck: do-installcheck
2285dvi: do-dvi
56a8fe78 2286pdf: do-pdf
6d389afc 2287html: do-html
2a4cbe27 2288
4fa63067
NN
2289# Make sure makeinfo is built before we do a `make info', if we're
2290# in fact building texinfo.
2291do-info: maybe-all-texinfo
2a4cbe27 2292
4fa63067 2293install-info: do-install-info dir.info
b40e3958 2294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
2295 if [ -f dir.info ]; then \
2296 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info; \
2297 else true; fi
2a4cbe27 2298
a3ca38d2
DD
2299install-pdf: do-install-pdf
2300
108a6f8e
CD
2301install-html: do-install-html
2302
4fa63067
NN
2303local-clean:
2304 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2a4cbe27 2305
4fa63067
NN
2306local-distclean:
2307 -rm -f Makefile config.status config.cache mh-frag mt-frag
bb7dc663 2308 -rm -f maybedep.tmp serdep.tmp stage_final
4fa63067
NN
2309 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2310 rm -rf $(TARGET_SUBDIR); \
2311 else true; fi
2312 -rm -rf $(BUILD_SUBDIR)
b00612cc
PB
2313 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2314 rm -rf $(HOST_SUBDIR); \
2315 else true; fi
4fa63067
NN
2316 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2317 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2318 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2319 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
bb7dc663
NC
2320 -rmdir fastjar gcc gnattools gotools libcc1 libiberty 2>/dev/null
2321 -rmdir texinfo zlib 2>/dev/null
18fa8f9c 2322 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a4cbe27 2323
4fa63067
NN
2324local-maintainer-clean:
2325 @echo "This command is intended for maintainers to use;"
2326 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 2327
4fa63067
NN
2328clean: do-clean local-clean
2329mostlyclean: do-mostlyclean local-clean
2330distclean: do-distclean local-clean local-distclean
2331maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2332maintainer-clean: local-distclean
2333realclean: maintainer-clean
2a4cbe27 2334
4fa63067 2335# Check target.
2a4cbe27 2336
4fa63067
NN
2337.PHONY: check do-check
2338check: do-check
2a4cbe27 2339
4fa63067 2340# Only include modules actually being configured and built.
f70224b5
PB
2341.PHONY: check-host
2342check-host: \
4fa63067
NN
2343 maybe-check-bfd \
2344 maybe-check-opcodes \
2345 maybe-check-binutils \
2346 maybe-check-bison \
f9806fa5 2347 maybe-check-cgen \
4fa63067 2348 maybe-check-dejagnu \
4fa63067
NN
2349 maybe-check-etc \
2350 maybe-check-fastjar \
d3ed111c 2351 maybe-check-fixincludes \
4fa63067
NN
2352 maybe-check-flex \
2353 maybe-check-gas \
b813574b 2354 maybe-check-gcc \
4b900473
PB
2355 maybe-check-gmp \
2356 maybe-check-mpfr \
e8a5fa9c 2357 maybe-check-mpc \
7ec59b9e 2358 maybe-check-isl \
1f53ca9a 2359 maybe-check-libelf \
93f9b408 2360 maybe-check-gold \
4fa63067 2361 maybe-check-gprof \
4fa63067
NN
2362 maybe-check-intl \
2363 maybe-check-tcl \
2364 maybe-check-itcl \
2365 maybe-check-ld \
2bf680c4 2366 maybe-check-libbacktrace \
04cf1b77 2367 maybe-check-libcpp \
be01d343 2368 maybe-check-libdecnumber \
4fa63067
NN
2369 maybe-check-libgui \
2370 maybe-check-libiberty \
1b6c0831 2371 maybe-check-libiberty-linker-plugin \
dc448a7b 2372 maybe-check-libiconv \
4fa63067 2373 maybe-check-m4 \
4fa63067 2374 maybe-check-readline \
4fa63067
NN
2375 maybe-check-sid \
2376 maybe-check-sim \
4fa63067 2377 maybe-check-texinfo \
4fa63067
NN
2378 maybe-check-zlib \
2379 maybe-check-gdb \
2380 maybe-check-expect \
2381 maybe-check-guile \
2382 maybe-check-tk \
4fa63067
NN
2383 maybe-check-libtermcap \
2384 maybe-check-utils \
700d40ca 2385 maybe-check-gnattools \
1b6c0831
L
2386 maybe-check-lto-plugin \
2387 maybe-check-libcc1 \
0e65dfba
NA
2388 maybe-check-gotools \
2389 maybe-check-libctf
f70224b5
PB
2390
2391.PHONY: check-target
2392check-target: \
4fa63067 2393 maybe-check-target-libstdc++-v3 \
5286fdef 2394 maybe-check-target-libsanitizer \
1b6c0831 2395 maybe-check-target-libmpx \
95e43135 2396 maybe-check-target-libvtv \
e3f56a99 2397 maybe-check-target-libcilkrts \
1b6c0831 2398 maybe-check-target-liboffloadmic \
064d0a7c 2399 maybe-check-target-libssp \
4fa63067 2400 maybe-check-target-newlib \
6aa8ef82 2401 maybe-check-target-libgcc \
2bf680c4 2402 maybe-check-target-libbacktrace \
e552509b 2403 maybe-check-target-libquadmath \
4b1cb4fe 2404 maybe-check-target-libgfortran \
4fa63067 2405 maybe-check-target-libobjc \
e552509b 2406 maybe-check-target-libgo \
4fa63067
NN
2407 maybe-check-target-libtermcap \
2408 maybe-check-target-winsup \
2409 maybe-check-target-libgloss \
4fa63067 2410 maybe-check-target-libffi \
4fa63067 2411 maybe-check-target-zlib \
4fa63067 2412 maybe-check-target-rda \
b3ded179 2413 maybe-check-target-libada \
7ec59b9e
L
2414 maybe-check-target-libgomp \
2415 maybe-check-target-libitm \
2416 maybe-check-target-libatomic
f70224b5
PB
2417
2418do-check:
0aed8855 2419 @: $(MAKE); $(unstage)
e360f423
PB
2420 @r=`${PWD_COMMAND}`; export r; \
2421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2422 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a4cbe27 2423
4fa63067 2424# Automated reporting of test results.
2a4cbe27 2425
4fa63067
NN
2426warning.log: build.log
2427 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 2428
4fa63067
NN
2429mail-report.log:
2430 if test x'$(BOOT_CFLAGS)' != x''; then \
2431 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2432 fi; \
2433 $(srcdir)/contrib/test_summary -t >$@
2434 chmod +x $@
2435 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2436
4fa63067
NN
2437mail-report-with-warnings.log: warning.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 -i warning.log >$@
2442 chmod +x $@
2443 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2444
1b6c0831
L
2445# Local Vim config
2446
2447$(srcdir)/.local.vimrc:
22121df0 2448 $(LN_S) contrib/vimrc $@
1b6c0831
L
2449
2450$(srcdir)/.lvimrc:
22121df0 2451 $(LN_S) contrib/vimrc $@
1b6c0831
L
2452
2453vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
2454
2455.PHONY: vimrc
2456
4849dfd8
NC
2457# clang-format config
2458
2459$(srcdir)/.clang-format:
2460 $(LN_S) contrib/clang-format $@
2461
2462clang-format: $(srcdir)/.clang-format
2463
2464.PHONY: clang-format
2465
4fa63067 2466# Installation targets.
2a4cbe27 2467
4fa63067 2468.PHONY: install uninstall
f70224b5 2469install:
0aed8855 2470 @: $(MAKE); $(unstage)
e360f423
PB
2471 @r=`${PWD_COMMAND}`; export r; \
2472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2473 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2a4cbe27 2474
4fa63067
NN
2475.PHONY: install-host-nogcc
2476install-host-nogcc: \
4fa63067
NN
2477 maybe-install-bfd \
2478 maybe-install-opcodes \
2479 maybe-install-binutils \
2480 maybe-install-bison \
f9806fa5 2481 maybe-install-cgen \
4fa63067 2482 maybe-install-dejagnu \
4fa63067
NN
2483 maybe-install-etc \
2484 maybe-install-fastjar \
d3ed111c 2485 maybe-install-fixincludes \
4fa63067
NN
2486 maybe-install-flex \
2487 maybe-install-gas \
4b900473
PB
2488 maybe-install-gmp \
2489 maybe-install-mpfr \
e8a5fa9c 2490 maybe-install-mpc \
7ec59b9e 2491 maybe-install-isl \
1f53ca9a 2492 maybe-install-libelf \
93f9b408 2493 maybe-install-gold \
4fa63067 2494 maybe-install-gprof \
4fa63067
NN
2495 maybe-install-intl \
2496 maybe-install-tcl \
2497 maybe-install-itcl \
2498 maybe-install-ld \
2bf680c4 2499 maybe-install-libbacktrace \
04cf1b77 2500 maybe-install-libcpp \
be01d343 2501 maybe-install-libdecnumber \
4fa63067
NN
2502 maybe-install-libgui \
2503 maybe-install-libiberty \
1b6c0831 2504 maybe-install-libiberty-linker-plugin \
dc448a7b 2505 maybe-install-libiconv \
4fa63067 2506 maybe-install-m4 \
4fa63067 2507 maybe-install-readline \
4fa63067
NN
2508 maybe-install-sid \
2509 maybe-install-sim \
4fa63067 2510 maybe-install-texinfo \
4fa63067
NN
2511 maybe-install-zlib \
2512 maybe-install-gdb \
2513 maybe-install-expect \
2514 maybe-install-guile \
2515 maybe-install-tk \
4fa63067 2516 maybe-install-libtermcap \
b00612cc 2517 maybe-install-utils \
700d40ca 2518 maybe-install-gnattools \
1b6c0831
L
2519 maybe-install-lto-plugin \
2520 maybe-install-libcc1 \
0e65dfba
NA
2521 maybe-install-gotools \
2522 maybe-install-libctf
2a4cbe27 2523
4fa63067 2524.PHONY: install-host
b813574b 2525install-host: \
4fa63067
NN
2526 maybe-install-bfd \
2527 maybe-install-opcodes \
2528 maybe-install-binutils \
2529 maybe-install-bison \
f9806fa5 2530 maybe-install-cgen \
4fa63067 2531 maybe-install-dejagnu \
4fa63067
NN
2532 maybe-install-etc \
2533 maybe-install-fastjar \
d3ed111c 2534 maybe-install-fixincludes \
4fa63067
NN
2535 maybe-install-flex \
2536 maybe-install-gas \
b813574b 2537 maybe-install-gcc \
4b900473
PB
2538 maybe-install-gmp \
2539 maybe-install-mpfr \
e8a5fa9c 2540 maybe-install-mpc \
7ec59b9e 2541 maybe-install-isl \
1f53ca9a 2542 maybe-install-libelf \
93f9b408 2543 maybe-install-gold \
4fa63067 2544 maybe-install-gprof \
4fa63067
NN
2545 maybe-install-intl \
2546 maybe-install-tcl \
2547 maybe-install-itcl \
2548 maybe-install-ld \
2bf680c4 2549 maybe-install-libbacktrace \
04cf1b77 2550 maybe-install-libcpp \
be01d343 2551 maybe-install-libdecnumber \
4fa63067
NN
2552 maybe-install-libgui \
2553 maybe-install-libiberty \
1b6c0831 2554 maybe-install-libiberty-linker-plugin \
dc448a7b 2555 maybe-install-libiconv \
4fa63067 2556 maybe-install-m4 \
4fa63067 2557 maybe-install-readline \
4fa63067
NN
2558 maybe-install-sid \
2559 maybe-install-sim \
4fa63067 2560 maybe-install-texinfo \
4fa63067
NN
2561 maybe-install-zlib \
2562 maybe-install-gdb \
2563 maybe-install-expect \
2564 maybe-install-guile \
2565 maybe-install-tk \
4fa63067 2566 maybe-install-libtermcap \
b00612cc 2567 maybe-install-utils \
700d40ca 2568 maybe-install-gnattools \
1b6c0831
L
2569 maybe-install-lto-plugin \
2570 maybe-install-libcc1 \
0e65dfba
NA
2571 maybe-install-gotools \
2572 maybe-install-libctf
2a4cbe27 2573
4fa63067
NN
2574.PHONY: install-target
2575install-target: \
2576 maybe-install-target-libstdc++-v3 \
5286fdef 2577 maybe-install-target-libsanitizer \
1b6c0831 2578 maybe-install-target-libmpx \
95e43135 2579 maybe-install-target-libvtv \
e3f56a99 2580 maybe-install-target-libcilkrts \
1b6c0831 2581 maybe-install-target-liboffloadmic \
064d0a7c 2582 maybe-install-target-libssp \
4fa63067 2583 maybe-install-target-newlib \
6aa8ef82 2584 maybe-install-target-libgcc \
2bf680c4 2585 maybe-install-target-libbacktrace \
e552509b 2586 maybe-install-target-libquadmath \
4b1cb4fe 2587 maybe-install-target-libgfortran \
4fa63067 2588 maybe-install-target-libobjc \
e552509b 2589 maybe-install-target-libgo \
4fa63067
NN
2590 maybe-install-target-libtermcap \
2591 maybe-install-target-winsup \
2592 maybe-install-target-libgloss \
4fa63067 2593 maybe-install-target-libffi \
4fa63067 2594 maybe-install-target-zlib \
4fa63067 2595 maybe-install-target-rda \
b3ded179 2596 maybe-install-target-libada \
7ec59b9e
L
2597 maybe-install-target-libgomp \
2598 maybe-install-target-libitm \
2599 maybe-install-target-libatomic
2a4cbe27 2600
4fa63067
NN
2601uninstall:
2602 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2603
4fa63067
NN
2604.PHONY: install.all
2605install.all: install-no-fixedincludes
22121df0
L
2606 @if [ -f ./gcc/Makefile ]; then \
2607 r=`${PWD_COMMAND}`; export r; \
0aed8855 2608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 2609 $(HOST_EXPORTS) \
4fa63067 2610 (cd ./gcc && \
22121df0 2611 $(MAKE) $(FLAGS_TO_PASS) install-headers); \
4fa63067 2612 else \
22121df0 2613 true; \
4fa63067 2614 fi
2a4cbe27 2615
7ec59b9e
L
2616# install-no-fixedincludes is used to allow the elaboration of binary packages
2617# suitable for distribution, where we cannot include the fixed system header
2618# files.
4fa63067
NN
2619.PHONY: install-no-fixedincludes
2620install-no-fixedincludes: installdirs install-host-nogcc \
7ec59b9e 2621 install-target gcc-install-no-fixedincludes
2a4cbe27 2622
9b980aa1
RW
2623.PHONY: install-strip
2624install-strip:
2625 @: $(MAKE); $(unstage)
2626 @r=`${PWD_COMMAND}`; export r; \
2627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2628 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2629
2630.PHONY: install-strip-host
2631install-strip-host: \
9b980aa1
RW
2632 maybe-install-strip-bfd \
2633 maybe-install-strip-opcodes \
2634 maybe-install-strip-binutils \
2635 maybe-install-strip-bison \
9b980aa1
RW
2636 maybe-install-strip-cgen \
2637 maybe-install-strip-dejagnu \
9b980aa1
RW
2638 maybe-install-strip-etc \
2639 maybe-install-strip-fastjar \
9b980aa1
RW
2640 maybe-install-strip-fixincludes \
2641 maybe-install-strip-flex \
2642 maybe-install-strip-gas \
2643 maybe-install-strip-gcc \
9b980aa1
RW
2644 maybe-install-strip-gmp \
2645 maybe-install-strip-mpfr \
2646 maybe-install-strip-mpc \
7ec59b9e 2647 maybe-install-strip-isl \
9b980aa1 2648 maybe-install-strip-libelf \
9b980aa1
RW
2649 maybe-install-strip-gold \
2650 maybe-install-strip-gprof \
9b980aa1
RW
2651 maybe-install-strip-intl \
2652 maybe-install-strip-tcl \
2653 maybe-install-strip-itcl \
2654 maybe-install-strip-ld \
2bf680c4 2655 maybe-install-strip-libbacktrace \
9b980aa1
RW
2656 maybe-install-strip-libcpp \
2657 maybe-install-strip-libdecnumber \
2658 maybe-install-strip-libgui \
2659 maybe-install-strip-libiberty \
1b6c0831 2660 maybe-install-strip-libiberty-linker-plugin \
9b980aa1 2661 maybe-install-strip-libiconv \
9b980aa1 2662 maybe-install-strip-m4 \
9b980aa1 2663 maybe-install-strip-readline \
9b980aa1
RW
2664 maybe-install-strip-sid \
2665 maybe-install-strip-sim \
9b980aa1 2666 maybe-install-strip-texinfo \
9b980aa1
RW
2667 maybe-install-strip-zlib \
2668 maybe-install-strip-gdb \
2669 maybe-install-strip-expect \
2670 maybe-install-strip-guile \
2671 maybe-install-strip-tk \
2672 maybe-install-strip-libtermcap \
2673 maybe-install-strip-utils \
2674 maybe-install-strip-gnattools \
1b6c0831
L
2675 maybe-install-strip-lto-plugin \
2676 maybe-install-strip-libcc1 \
0e65dfba
NA
2677 maybe-install-strip-gotools \
2678 maybe-install-strip-libctf
9b980aa1
RW
2679
2680.PHONY: install-strip-target
2681install-strip-target: \
2682 maybe-install-strip-target-libstdc++-v3 \
5286fdef 2683 maybe-install-strip-target-libsanitizer \
1b6c0831 2684 maybe-install-strip-target-libmpx \
95e43135 2685 maybe-install-strip-target-libvtv \
e3f56a99 2686 maybe-install-strip-target-libcilkrts \
1b6c0831 2687 maybe-install-strip-target-liboffloadmic \
9b980aa1
RW
2688 maybe-install-strip-target-libssp \
2689 maybe-install-strip-target-newlib \
2690 maybe-install-strip-target-libgcc \
2bf680c4 2691 maybe-install-strip-target-libbacktrace \
9b980aa1
RW
2692 maybe-install-strip-target-libquadmath \
2693 maybe-install-strip-target-libgfortran \
2694 maybe-install-strip-target-libobjc \
2695 maybe-install-strip-target-libgo \
2696 maybe-install-strip-target-libtermcap \
2697 maybe-install-strip-target-winsup \
2698 maybe-install-strip-target-libgloss \
9b980aa1 2699 maybe-install-strip-target-libffi \
9b980aa1 2700 maybe-install-strip-target-zlib \
9b980aa1
RW
2701 maybe-install-strip-target-rda \
2702 maybe-install-strip-target-libada \
7ec59b9e
L
2703 maybe-install-strip-target-libgomp \
2704 maybe-install-strip-target-libitm \
2705 maybe-install-strip-target-libatomic
9b980aa1
RW
2706
2707
4fa63067 2708### other supporting targets
2a4cbe27 2709
4fa63067
NN
2710MAKEDIRS= \
2711 $(DESTDIR)$(prefix) \
2712 $(DESTDIR)$(exec_prefix)
2713.PHONY: installdirs
2714installdirs: mkinstalldirs
2715 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2716
4fa63067 2717dir.info: do-install-info
22121df0
L
2718 if [ -f $(srcdir)/texinfo/gen-info-dir ]; then \
2719 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new; \
2720 mv -f dir.info.new dir.info; \
2721 else true; \
4fa63067 2722 fi
2a4cbe27 2723
4fa63067
NN
2724dist:
2725 @echo "Building a full distribution of this tree isn't done"
2726 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2727
4fa63067 2728etags tags: TAGS
2a4cbe27 2729
4fa63067
NN
2730# Right now this just builds TAGS in each subdirectory. emacs19 has the
2731# ability to use several tags files at once, so there is probably no need
2732# to combine them into one big TAGS file (like CVS 1.3 does). We could
2733# (if we felt like it) have this Makefile write a piece of elisp which
2734# the user could load to tell emacs19 where all the TAGS files we just
2735# built are.
2736TAGS: do-TAGS
2a4cbe27 2737
a7254363
PB
2738# ------------------------------------
2739# Macros for configure and all targets
2740# ------------------------------------
2741
2742
2743
2744
2745
4fa63067
NN
2746# --------------------------------------
2747# Modules which run on the build machine
2748# --------------------------------------
2749
a7254363 2750
4fa63067
NN
2751.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2752maybe-configure-build-libiberty:
4f0ef2d8
CD
2753@if gcc-bootstrap
2754configure-build-libiberty: stage_current
2755@endif gcc-bootstrap
6bd3dfaa
PB
2756@if build-libiberty
2757maybe-configure-build-libiberty: configure-build-libiberty
c52c6897 2758configure-build-libiberty:
0aed8855 2759 @: $(MAKE); $(unstage)
c52c6897 2760 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2762 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 2763 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty; \
1f53ca9a 2764 $(BUILD_EXPORTS) \
4fa63067
NN
2765 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2766 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2767 case $(srcdir) in \
b00612cc
PB
2768 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2769 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2770 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2771 esac; \
1b6c0831 2772 module_srcdir=libiberty; \
4fa63067 2773 rm -f no-such-file || : ; \
1b6c0831
L
2774 CONFIG_SITE=no-such-file $(SHELL) \
2775 $$s/$$module_srcdir/configure \
2776 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2777 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2778 --target=${target_alias} \
2a4cbe27 2779 || exit 1
6bd3dfaa 2780@endif build-libiberty
2a4cbe27 2781
a7254363
PB
2782
2783
d545f33b
PB
2784
2785
4fa63067
NN
2786.PHONY: all-build-libiberty maybe-all-build-libiberty
2787maybe-all-build-libiberty:
4f0ef2d8
CD
2788@if gcc-bootstrap
2789all-build-libiberty: stage_current
2790@endif gcc-bootstrap
6bd3dfaa 2791@if build-libiberty
72b2455a 2792TARGET-build-libiberty=all
6bd3dfaa 2793maybe-all-build-libiberty: all-build-libiberty
4fa63067 2794all-build-libiberty: configure-build-libiberty
0aed8855 2795 @: $(MAKE); $(unstage)
4fa63067 2796 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2798 $(BUILD_EXPORTS) \
72b2455a 2799 (cd $(BUILD_SUBDIR)/libiberty && \
b3676d82 2800 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2801 $(TARGET-build-libiberty))
6bd3dfaa 2802@endif build-libiberty
2a4cbe27 2803
a7254363
PB
2804
2805
d545f33b
PB
2806
2807
6a9cf61e
PB
2808.PHONY: configure-build-bison maybe-configure-build-bison
2809maybe-configure-build-bison:
4f0ef2d8
CD
2810@if gcc-bootstrap
2811configure-build-bison: stage_current
2812@endif gcc-bootstrap
6a9cf61e
PB
2813@if build-bison
2814maybe-configure-build-bison: configure-build-bison
c52c6897 2815configure-build-bison:
0aed8855 2816 @: $(MAKE); $(unstage)
c52c6897 2817 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2819 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
22121df0 2820 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison; \
1f53ca9a 2821 $(BUILD_EXPORTS) \
6a9cf61e
PB
2822 echo Configuring in $(BUILD_SUBDIR)/bison; \
2823 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2824 case $(srcdir) in \
b00612cc
PB
2825 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2826 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2827 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2828 esac; \
1b6c0831 2829 module_srcdir=bison; \
6a9cf61e 2830 rm -f no-such-file || : ; \
1b6c0831
L
2831 CONFIG_SITE=no-such-file $(SHELL) \
2832 $$s/$$module_srcdir/configure \
2833 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2834 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2835 --target=${target_alias} \
6a9cf61e
PB
2836 || exit 1
2837@endif build-bison
2838
a7254363
PB
2839
2840
d545f33b
PB
2841
2842
6a9cf61e
PB
2843.PHONY: all-build-bison maybe-all-build-bison
2844maybe-all-build-bison:
4f0ef2d8
CD
2845@if gcc-bootstrap
2846all-build-bison: stage_current
2847@endif gcc-bootstrap
6a9cf61e 2848@if build-bison
72b2455a 2849TARGET-build-bison=all
6a9cf61e
PB
2850maybe-all-build-bison: all-build-bison
2851all-build-bison: configure-build-bison
0aed8855 2852 @: $(MAKE); $(unstage)
6a9cf61e
PB
2853 @r=`${PWD_COMMAND}`; export r; \
2854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2855 $(BUILD_EXPORTS) \
72b2455a 2856 (cd $(BUILD_SUBDIR)/bison && \
b3676d82 2857 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2858 $(TARGET-build-bison))
6a9cf61e
PB
2859@endif build-bison
2860
a7254363
PB
2861
2862
d545f33b
PB
2863
2864
6a9cf61e
PB
2865.PHONY: configure-build-flex maybe-configure-build-flex
2866maybe-configure-build-flex:
4f0ef2d8
CD
2867@if gcc-bootstrap
2868configure-build-flex: stage_current
2869@endif gcc-bootstrap
6a9cf61e
PB
2870@if build-flex
2871maybe-configure-build-flex: configure-build-flex
c52c6897 2872configure-build-flex:
0aed8855 2873 @: $(MAKE); $(unstage)
c52c6897 2874 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2876 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
22121df0 2877 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex; \
1f53ca9a 2878 $(BUILD_EXPORTS) \
6a9cf61e
PB
2879 echo Configuring in $(BUILD_SUBDIR)/flex; \
2880 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2881 case $(srcdir) in \
b00612cc
PB
2882 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2883 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2884 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2885 esac; \
1b6c0831 2886 module_srcdir=flex; \
6a9cf61e 2887 rm -f no-such-file || : ; \
1b6c0831
L
2888 CONFIG_SITE=no-such-file $(SHELL) \
2889 $$s/$$module_srcdir/configure \
2890 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2891 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2892 --target=${target_alias} \
6a9cf61e
PB
2893 || exit 1
2894@endif build-flex
2895
a7254363
PB
2896
2897
d545f33b
PB
2898
2899
6a9cf61e
PB
2900.PHONY: all-build-flex maybe-all-build-flex
2901maybe-all-build-flex:
4f0ef2d8
CD
2902@if gcc-bootstrap
2903all-build-flex: stage_current
2904@endif gcc-bootstrap
6a9cf61e 2905@if build-flex
72b2455a 2906TARGET-build-flex=all
6a9cf61e
PB
2907maybe-all-build-flex: all-build-flex
2908all-build-flex: configure-build-flex
0aed8855 2909 @: $(MAKE); $(unstage)
6a9cf61e
PB
2910 @r=`${PWD_COMMAND}`; export r; \
2911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2912 $(BUILD_EXPORTS) \
72b2455a 2913 (cd $(BUILD_SUBDIR)/flex && \
b3676d82 2914 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2915 $(TARGET-build-flex))
6a9cf61e
PB
2916@endif build-flex
2917
a7254363
PB
2918
2919
d545f33b
PB
2920
2921
6a9cf61e
PB
2922.PHONY: configure-build-m4 maybe-configure-build-m4
2923maybe-configure-build-m4:
4f0ef2d8
CD
2924@if gcc-bootstrap
2925configure-build-m4: stage_current
2926@endif gcc-bootstrap
6a9cf61e
PB
2927@if build-m4
2928maybe-configure-build-m4: configure-build-m4
c52c6897 2929configure-build-m4:
0aed8855 2930 @: $(MAKE); $(unstage)
c52c6897 2931 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2933 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
22121df0 2934 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4; \
1f53ca9a 2935 $(BUILD_EXPORTS) \
6a9cf61e
PB
2936 echo Configuring in $(BUILD_SUBDIR)/m4; \
2937 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2938 case $(srcdir) in \
b00612cc
PB
2939 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2940 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2941 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2942 esac; \
1b6c0831 2943 module_srcdir=m4; \
6a9cf61e 2944 rm -f no-such-file || : ; \
1b6c0831
L
2945 CONFIG_SITE=no-such-file $(SHELL) \
2946 $$s/$$module_srcdir/configure \
2947 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2948 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2949 --target=${target_alias} \
6a9cf61e
PB
2950 || exit 1
2951@endif build-m4
2952
a7254363
PB
2953
2954
d545f33b
PB
2955
2956
6a9cf61e
PB
2957.PHONY: all-build-m4 maybe-all-build-m4
2958maybe-all-build-m4:
4f0ef2d8
CD
2959@if gcc-bootstrap
2960all-build-m4: stage_current
2961@endif gcc-bootstrap
6a9cf61e 2962@if build-m4
72b2455a 2963TARGET-build-m4=all
6a9cf61e
PB
2964maybe-all-build-m4: all-build-m4
2965all-build-m4: configure-build-m4
0aed8855 2966 @: $(MAKE); $(unstage)
6a9cf61e
PB
2967 @r=`${PWD_COMMAND}`; export r; \
2968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2969 $(BUILD_EXPORTS) \
72b2455a 2970 (cd $(BUILD_SUBDIR)/m4 && \
b3676d82 2971 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2972 $(TARGET-build-m4))
6a9cf61e
PB
2973@endif build-m4
2974
a7254363
PB
2975
2976
d545f33b
PB
2977
2978
6a9cf61e
PB
2979.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2980maybe-configure-build-texinfo:
4f0ef2d8
CD
2981@if gcc-bootstrap
2982configure-build-texinfo: stage_current
2983@endif gcc-bootstrap
6a9cf61e
PB
2984@if build-texinfo
2985maybe-configure-build-texinfo: configure-build-texinfo
c52c6897 2986configure-build-texinfo:
0aed8855 2987 @: $(MAKE); $(unstage)
c52c6897 2988 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2990 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 2991 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo; \
1f53ca9a 2992 $(BUILD_EXPORTS) \
6a9cf61e
PB
2993 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2994 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2995 case $(srcdir) in \
b00612cc
PB
2996 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2997 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2998 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2999 esac; \
1b6c0831 3000 module_srcdir=texinfo; \
6a9cf61e 3001 rm -f no-such-file || : ; \
1b6c0831
L
3002 CONFIG_SITE=no-such-file $(SHELL) \
3003 $$s/$$module_srcdir/configure \
3004 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3005 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3006 --target=${target_alias} \
6a9cf61e
PB
3007 || exit 1
3008@endif build-texinfo
3009
a7254363
PB
3010
3011
d545f33b
PB
3012
3013
6a9cf61e
PB
3014.PHONY: all-build-texinfo maybe-all-build-texinfo
3015maybe-all-build-texinfo:
4f0ef2d8
CD
3016@if gcc-bootstrap
3017all-build-texinfo: stage_current
3018@endif gcc-bootstrap
6a9cf61e 3019@if build-texinfo
72b2455a 3020TARGET-build-texinfo=all
6a9cf61e
PB
3021maybe-all-build-texinfo: all-build-texinfo
3022all-build-texinfo: configure-build-texinfo
0aed8855 3023 @: $(MAKE); $(unstage)
6a9cf61e
PB
3024 @r=`${PWD_COMMAND}`; export r; \
3025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3026 $(BUILD_EXPORTS) \
72b2455a 3027 (cd $(BUILD_SUBDIR)/texinfo && \
b3676d82 3028 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3029 $(TARGET-build-texinfo))
6a9cf61e
PB
3030@endif build-texinfo
3031
a7254363
PB
3032
3033
d545f33b
PB
3034
3035
ee025550
PB
3036.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3037maybe-configure-build-fixincludes:
4f0ef2d8
CD
3038@if gcc-bootstrap
3039configure-build-fixincludes: stage_current
3040@endif gcc-bootstrap
ee025550
PB
3041@if build-fixincludes
3042maybe-configure-build-fixincludes: configure-build-fixincludes
c52c6897 3043configure-build-fixincludes:
0aed8855 3044 @: $(MAKE); $(unstage)
c52c6897 3045 @r=`${PWD_COMMAND}`; export r; \
ee025550 3046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3047 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 3048 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes; \
1f53ca9a 3049 $(BUILD_EXPORTS) \
ee025550
PB
3050 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3051 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3052 case $(srcdir) in \
b00612cc
PB
3053 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3054 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3055 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
ee025550 3056 esac; \
1b6c0831 3057 module_srcdir=fixincludes; \
ee025550 3058 rm -f no-such-file || : ; \
1b6c0831
L
3059 CONFIG_SITE=no-such-file $(SHELL) \
3060 $$s/$$module_srcdir/configure \
3061 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3062 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3063 --target=${target_alias} \
ee025550
PB
3064 || exit 1
3065@endif build-fixincludes
3066
a7254363
PB
3067
3068
d545f33b
PB
3069
3070
ee025550
PB
3071.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3072maybe-all-build-fixincludes:
4f0ef2d8
CD
3073@if gcc-bootstrap
3074all-build-fixincludes: stage_current
3075@endif gcc-bootstrap
ee025550
PB
3076@if build-fixincludes
3077TARGET-build-fixincludes=all
3078maybe-all-build-fixincludes: all-build-fixincludes
3079all-build-fixincludes: configure-build-fixincludes
0aed8855 3080 @: $(MAKE); $(unstage)
ee025550
PB
3081 @r=`${PWD_COMMAND}`; export r; \
3082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3083 $(BUILD_EXPORTS) \
ee025550 3084 (cd $(BUILD_SUBDIR)/fixincludes && \
b3676d82 3085 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3086 $(TARGET-build-fixincludes))
ee025550
PB
3087@endif build-fixincludes
3088
2a4cbe27 3089
a7254363 3090
d545f33b
PB
3091
3092
1b6c0831
L
3093.PHONY: configure-build-libcpp maybe-configure-build-libcpp
3094maybe-configure-build-libcpp:
3095@if gcc-bootstrap
3096configure-build-libcpp: stage_current
3097@endif gcc-bootstrap
3098@if build-libcpp
3099maybe-configure-build-libcpp: configure-build-libcpp
3100configure-build-libcpp:
3101 @: $(MAKE); $(unstage)
3102 @r=`${PWD_COMMAND}`; export r; \
3103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3104 test ! -f $(BUILD_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 3105 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libcpp; \
1b6c0831
L
3106 $(BUILD_EXPORTS) \
3107 echo Configuring in $(BUILD_SUBDIR)/libcpp; \
3108 cd "$(BUILD_SUBDIR)/libcpp" || exit 1; \
3109 case $(srcdir) in \
3110 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3111 *) topdir=`echo $(BUILD_SUBDIR)/libcpp/ | \
3112 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3113 esac; \
3114 module_srcdir=libcpp; \
3115 rm -f no-such-file || : ; \
3116 CONFIG_SITE=no-such-file $(SHELL) \
3117 $$s/$$module_srcdir/configure \
3118 --srcdir=$${topdir}/$$module_srcdir \
3119 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3120 --target=${target_alias} --disable-nls am_cv_func_iconv=no \
3121 || exit 1
3122@endif build-libcpp
3123
3124
3125
3126
3127
3128.PHONY: all-build-libcpp maybe-all-build-libcpp
3129maybe-all-build-libcpp:
3130@if gcc-bootstrap
3131all-build-libcpp: stage_current
3132@endif gcc-bootstrap
3133@if build-libcpp
3134TARGET-build-libcpp=all
3135maybe-all-build-libcpp: all-build-libcpp
3136all-build-libcpp: configure-build-libcpp
3137 @: $(MAKE); $(unstage)
3138 @r=`${PWD_COMMAND}`; export r; \
3139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3140 $(BUILD_EXPORTS) \
3141 (cd $(BUILD_SUBDIR)/libcpp && \
3142 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
3143 $(TARGET-build-libcpp))
3144@endif build-libcpp
3145
3146
3147
3148
3149
4fa63067
NN
3150# --------------------------------------
3151# Modules which run on the host machine
3152# --------------------------------------
2a4cbe27 3153
a7254363 3154
a90ef4bf
JM
3155.PHONY: configure-bfd maybe-configure-bfd
3156maybe-configure-bfd:
4f0ef2d8 3157@if gcc-bootstrap
a90ef4bf 3158configure-bfd: stage_current
4f0ef2d8 3159@endif gcc-bootstrap
a90ef4bf
JM
3160@if bfd
3161maybe-configure-bfd: configure-bfd
3162configure-bfd:
c52c6897 3163 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3165 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
22121df0 3166 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
1f53ca9a 3167 $(HOST_EXPORTS) \
a90ef4bf
JM
3168 echo Configuring in $(HOST_SUBDIR)/bfd; \
3169 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
4fa63067 3170 case $(srcdir) in \
b00612cc 3171 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 3172 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
b00612cc 3173 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 3174 esac; \
1b6c0831
L
3175 module_srcdir=bfd; \
3176 $(SHELL) \
3177 $$s/$$module_srcdir/configure \
3178 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3179 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3180 --target=${target_alias} \
2a4cbe27 3181 || exit 1
a90ef4bf 3182@endif bfd
a7254363 3183
d545f33b
PB
3184
3185
a90ef4bf
JM
3186.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3187maybe-configure-stage1-bfd:
3188@if bfd-bootstrap
3189maybe-configure-stage1-bfd: configure-stage1-bfd
3190configure-stage1-bfd:
3191 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3192 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067
NN
3193 @r=`${PWD_COMMAND}`; export r; \
3194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3195 TFLAGS="$(STAGE1_TFLAGS)"; \
3196 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3197 $(HOST_EXPORTS) \
3198 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3199 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3200 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
3201 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd; \
3202 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3203 cd $(HOST_SUBDIR)/bfd || exit 1; \
3204 case $(srcdir) in \
3205 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3206 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3207 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3208 esac; \
1b6c0831
L
3209 module_srcdir=bfd; \
3210 $(SHELL) $$s/$$module_srcdir/configure \
3211 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3212 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3213 --target=${target_alias} \
3214 \
a90ef4bf
JM
3215 $(STAGE1_CONFIGURE_FLAGS)
3216@endif bfd-bootstrap
2a4cbe27 3217
a90ef4bf
JM
3218.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3219maybe-configure-stage2-bfd:
3220@if bfd-bootstrap
3221maybe-configure-stage2-bfd: configure-stage2-bfd
3222configure-stage2-bfd:
3223 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3224 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3225 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3227 TFLAGS="$(STAGE2_TFLAGS)"; \
3228 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3229 $(HOST_EXPORTS) \
a90ef4bf
JM
3230 $(POSTSTAGE1_HOST_EXPORTS) \
3231 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3232 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3233 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3234 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd; \
3235 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3236 cd $(HOST_SUBDIR)/bfd || exit 1; \
3237 case $(srcdir) in \
3238 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3239 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3240 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3241 esac; \
1b6c0831
L
3242 module_srcdir=bfd; \
3243 $(SHELL) $$s/$$module_srcdir/configure \
3244 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3245 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3246 --target=${target_alias} \
22121df0 3247 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3248 $(STAGE2_CONFIGURE_FLAGS)
3249@endif bfd-bootstrap
2a4cbe27 3250
a90ef4bf
JM
3251.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3252maybe-configure-stage3-bfd:
3253@if bfd-bootstrap
3254maybe-configure-stage3-bfd: configure-stage3-bfd
3255configure-stage3-bfd:
3256 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3257 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3258 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3260 TFLAGS="$(STAGE3_TFLAGS)"; \
3261 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3262 $(HOST_EXPORTS) \
a90ef4bf
JM
3263 $(POSTSTAGE1_HOST_EXPORTS) \
3264 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3265 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3266 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3267 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd; \
3268 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3269 cd $(HOST_SUBDIR)/bfd || exit 1; \
3270 case $(srcdir) in \
3271 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3272 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3273 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3274 esac; \
1b6c0831
L
3275 module_srcdir=bfd; \
3276 $(SHELL) $$s/$$module_srcdir/configure \
3277 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3278 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3279 --target=${target_alias} \
22121df0 3280 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3281 $(STAGE3_CONFIGURE_FLAGS)
3282@endif bfd-bootstrap
9b980aa1 3283
a90ef4bf
JM
3284.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3285maybe-configure-stage4-bfd:
3286@if bfd-bootstrap
3287maybe-configure-stage4-bfd: configure-stage4-bfd
3288configure-stage4-bfd:
3289 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3290 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
9b980aa1
RW
3291 @r=`${PWD_COMMAND}`; export r; \
3292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3293 TFLAGS="$(STAGE4_TFLAGS)"; \
3294 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
9b980aa1 3295 $(HOST_EXPORTS) \
a90ef4bf
JM
3296 $(POSTSTAGE1_HOST_EXPORTS) \
3297 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3298 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3299 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3300 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd; \
3301 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3302 cd $(HOST_SUBDIR)/bfd || exit 1; \
3303 case $(srcdir) in \
3304 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3305 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3306 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3307 esac; \
1b6c0831
L
3308 module_srcdir=bfd; \
3309 $(SHELL) $$s/$$module_srcdir/configure \
3310 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3311 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3312 --target=${target_alias} \
22121df0 3313 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3314 $(STAGE4_CONFIGURE_FLAGS)
3315@endif bfd-bootstrap
4fa63067 3316
a90ef4bf
JM
3317.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3318maybe-configure-stageprofile-bfd:
3319@if bfd-bootstrap
3320maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3321configure-stageprofile-bfd:
3322 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3323 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3324 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3326 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3327 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3328 $(HOST_EXPORTS) \
a90ef4bf
JM
3329 $(POSTSTAGE1_HOST_EXPORTS) \
3330 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3331 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3332 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3333 echo Configuring stage profile in $(HOST_SUBDIR)/bfd; \
3334 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3335 cd $(HOST_SUBDIR)/bfd || exit 1; \
3336 case $(srcdir) in \
3337 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3338 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3339 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3340 esac; \
1b6c0831
L
3341 module_srcdir=bfd; \
3342 $(SHELL) $$s/$$module_srcdir/configure \
3343 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3344 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3345 --target=${target_alias} \
22121df0 3346 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3347 $(STAGEprofile_CONFIGURE_FLAGS)
3348@endif bfd-bootstrap
2a4cbe27 3349
a90ef4bf
JM
3350.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3351maybe-configure-stagefeedback-bfd:
3352@if bfd-bootstrap
3353maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3354configure-stagefeedback-bfd:
3355 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3356 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3357 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3359 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3360 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3361 $(HOST_EXPORTS) \
a90ef4bf
JM
3362 $(POSTSTAGE1_HOST_EXPORTS) \
3363 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3364 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3365 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3366 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd; \
3367 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3368 cd $(HOST_SUBDIR)/bfd || exit 1; \
3369 case $(srcdir) in \
3370 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3371 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3372 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3373 esac; \
1b6c0831
L
3374 module_srcdir=bfd; \
3375 $(SHELL) $$s/$$module_srcdir/configure \
3376 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3377 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3378 --target=${target_alias} \
22121df0 3379 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3380 $(STAGEfeedback_CONFIGURE_FLAGS)
3381@endif bfd-bootstrap
2a4cbe27 3382
56a8fe78 3383
56a8fe78 3384
56a8fe78 3385
6d389afc 3386
a90ef4bf
JM
3387.PHONY: all-bfd maybe-all-bfd
3388maybe-all-bfd:
3389@if gcc-bootstrap
3390all-bfd: stage_current
3391@endif gcc-bootstrap
3392@if bfd
3393TARGET-bfd=all
3394maybe-all-bfd: all-bfd
3395all-bfd: configure-bfd
3396 @r=`${PWD_COMMAND}`; export r; \
6d389afc 3397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3398 $(HOST_EXPORTS) \
3399 (cd $(HOST_SUBDIR)/bfd && \
b3676d82 3400 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3401 $(TARGET-bfd))
3402@endif bfd
6d389afc 3403
6d389afc 3404
2a4cbe27 3405
a90ef4bf
JM
3406.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3407.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3408maybe-all-stage1-bfd:
3409maybe-clean-stage1-bfd:
3410@if bfd-bootstrap
3411maybe-all-stage1-bfd: all-stage1-bfd
3412all-stage1: all-stage1-bfd
3413TARGET-stage1-bfd = $(TARGET-bfd)
3414all-stage1-bfd: configure-stage1-bfd
3415 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3416 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3418 TFLAGS="$(STAGE1_TFLAGS)"; \
3419 $(HOST_EXPORTS) \
3420 cd $(HOST_SUBDIR)/bfd && \
05a13254 3421 \
a90ef4bf
JM
3422 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3423 CFLAGS="$(STAGE1_CFLAGS)" \
3424 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3425 LIBCFLAGS="$(LIBCFLAGS)" \
3426 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3427 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3428 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
3429 $(EXTRA_HOST_FLAGS) \
3430 $(STAGE1_FLAGS_TO_PASS) \
05a13254 3431 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 3432 $(TARGET-stage1-bfd)
2a4cbe27 3433
a90ef4bf
JM
3434maybe-clean-stage1-bfd: clean-stage1-bfd
3435clean-stage1: clean-stage1-bfd
3436clean-stage1-bfd:
3437 @if [ $(current_stage) = stage1 ]; then \
3438 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3439 else \
3440 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3441 $(MAKE) stage1-start; \
3442 fi; \
3443 cd $(HOST_SUBDIR)/bfd && \
3444 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 3445 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3446@endif bfd-bootstrap
2a4cbe27 3447
2a4cbe27 3448
a90ef4bf
JM
3449.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3450.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3451maybe-all-stage2-bfd:
3452maybe-clean-stage2-bfd:
3453@if bfd-bootstrap
3454maybe-all-stage2-bfd: all-stage2-bfd
3455all-stage2: all-stage2-bfd
3456TARGET-stage2-bfd = $(TARGET-bfd)
3457all-stage2-bfd: configure-stage2-bfd
3458 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3459 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3461 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 3462 $(HOST_EXPORTS) \
a90ef4bf
JM
3463 $(POSTSTAGE1_HOST_EXPORTS) \
3464 cd $(HOST_SUBDIR)/bfd && \
05a13254 3465 \
a90ef4bf
JM
3466 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3467 CFLAGS="$(STAGE2_CFLAGS)" \
3468 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3469 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3470 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3471 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3472 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3473 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3474 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 3475 $(TARGET-stage2-bfd)
2a4cbe27 3476
a90ef4bf
JM
3477maybe-clean-stage2-bfd: clean-stage2-bfd
3478clean-stage2: clean-stage2-bfd
3479clean-stage2-bfd:
3480 @if [ $(current_stage) = stage2 ]; then \
3481 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3482 else \
3483 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3484 $(MAKE) stage2-start; \
3485 fi; \
3486 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3487 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3488@endif bfd-bootstrap
2a4cbe27 3489
a3ca38d2 3490
a90ef4bf
JM
3491.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3492.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3493maybe-all-stage3-bfd:
3494maybe-clean-stage3-bfd:
3495@if bfd-bootstrap
3496maybe-all-stage3-bfd: all-stage3-bfd
3497all-stage3: all-stage3-bfd
3498TARGET-stage3-bfd = $(TARGET-bfd)
3499all-stage3-bfd: configure-stage3-bfd
3500 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3501 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 3502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3503 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 3504 $(HOST_EXPORTS) \
a90ef4bf
JM
3505 $(POSTSTAGE1_HOST_EXPORTS) \
3506 cd $(HOST_SUBDIR)/bfd && \
05a13254 3507 \
a90ef4bf
JM
3508 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3509 CFLAGS="$(STAGE3_CFLAGS)" \
3510 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3511 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3512 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3513 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3514 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3515 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3516 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 3517 $(TARGET-stage3-bfd)
a3ca38d2 3518
a90ef4bf
JM
3519maybe-clean-stage3-bfd: clean-stage3-bfd
3520clean-stage3: clean-stage3-bfd
3521clean-stage3-bfd:
3522 @if [ $(current_stage) = stage3 ]; then \
3523 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3524 else \
3525 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3526 $(MAKE) stage3-start; \
3527 fi; \
3528 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3529 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3530@endif bfd-bootstrap
a3ca38d2 3531
108a6f8e 3532
a90ef4bf
JM
3533.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3534.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3535maybe-all-stage4-bfd:
3536maybe-clean-stage4-bfd:
3537@if bfd-bootstrap
3538maybe-all-stage4-bfd: all-stage4-bfd
3539all-stage4: all-stage4-bfd
3540TARGET-stage4-bfd = $(TARGET-bfd)
3541all-stage4-bfd: configure-stage4-bfd
3542 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3543 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 3544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3545 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 3546 $(HOST_EXPORTS) \
a90ef4bf
JM
3547 $(POSTSTAGE1_HOST_EXPORTS) \
3548 cd $(HOST_SUBDIR)/bfd && \
05a13254 3549 \
a90ef4bf
JM
3550 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3551 CFLAGS="$(STAGE4_CFLAGS)" \
3552 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3553 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3554 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3555 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3556 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3557 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3558 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 3559 $(TARGET-stage4-bfd)
108a6f8e 3560
a90ef4bf
JM
3561maybe-clean-stage4-bfd: clean-stage4-bfd
3562clean-stage4: clean-stage4-bfd
3563clean-stage4-bfd:
3564 @if [ $(current_stage) = stage4 ]; then \
3565 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3566 else \
3567 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3568 $(MAKE) stage4-start; \
3569 fi; \
3570 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3571 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3572@endif bfd-bootstrap
108a6f8e 3573
2a4cbe27 3574
a90ef4bf
JM
3575.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3576.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3577maybe-all-stageprofile-bfd:
3578maybe-clean-stageprofile-bfd:
3579@if bfd-bootstrap
3580maybe-all-stageprofile-bfd: all-stageprofile-bfd
3581all-stageprofile: all-stageprofile-bfd
3582TARGET-stageprofile-bfd = $(TARGET-bfd)
3583all-stageprofile-bfd: configure-stageprofile-bfd
3584 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3585 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3587 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 3588 $(HOST_EXPORTS) \
a90ef4bf
JM
3589 $(POSTSTAGE1_HOST_EXPORTS) \
3590 cd $(HOST_SUBDIR)/bfd && \
05a13254 3591 \
a90ef4bf
JM
3592 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3593 CFLAGS="$(STAGEprofile_CFLAGS)" \
3594 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3595 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3596 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3597 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3598 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3599 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3600 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 3601 $(TARGET-stageprofile-bfd)
2a4cbe27 3602
a90ef4bf
JM
3603maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3604clean-stageprofile: clean-stageprofile-bfd
3605clean-stageprofile-bfd:
3606 @if [ $(current_stage) = stageprofile ]; then \
3607 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3608 else \
3609 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3610 $(MAKE) stageprofile-start; \
3611 fi; \
3612 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3613 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3614@endif bfd-bootstrap
2a4cbe27 3615
a7254363 3616
a90ef4bf
JM
3617.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3618.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3619maybe-all-stagefeedback-bfd:
3620maybe-clean-stagefeedback-bfd:
3621@if bfd-bootstrap
3622maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3623all-stagefeedback: all-stagefeedback-bfd
3624TARGET-stagefeedback-bfd = $(TARGET-bfd)
3625all-stagefeedback-bfd: configure-stagefeedback-bfd
3626 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 3627 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3629 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3630 $(HOST_EXPORTS) \
3631 $(POSTSTAGE1_HOST_EXPORTS) \
3632 cd $(HOST_SUBDIR)/bfd && \
05a13254 3633 \
a90ef4bf
JM
3634 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3635 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3636 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3637 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3638 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3639 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3640 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3641 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3642 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 3643 $(TARGET-stagefeedback-bfd)
d545f33b 3644
a90ef4bf
JM
3645maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3646clean-stagefeedback: clean-stagefeedback-bfd
3647clean-stagefeedback-bfd:
3648 @if [ $(current_stage) = stagefeedback ]; then \
3649 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3650 else \
3651 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3652 $(MAKE) stagefeedback-start; \
3653 fi; \
3654 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3655 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3656@endif bfd-bootstrap
d545f33b 3657
2a4cbe27 3658
a7254363 3659
d545f33b
PB
3660
3661
a90ef4bf
JM
3662.PHONY: check-bfd maybe-check-bfd
3663maybe-check-bfd:
3664@if bfd
3665maybe-check-bfd: check-bfd
2a4cbe27 3666
a90ef4bf 3667check-bfd:
0aed8855 3668 @: $(MAKE); $(unstage)
4fa63067 3669 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 3671 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 3672 (cd $(HOST_SUBDIR)/bfd && \
f91ca6bc 3673 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 3674
a90ef4bf 3675@endif bfd
2a4cbe27 3676
a90ef4bf
JM
3677.PHONY: install-bfd maybe-install-bfd
3678maybe-install-bfd:
3679@if bfd
3680maybe-install-bfd: install-bfd
2a4cbe27 3681
a90ef4bf 3682install-bfd: installdirs
0aed8855 3683 @: $(MAKE); $(unstage)
4fa63067 3684 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3686 $(HOST_EXPORTS) \
a90ef4bf 3687 (cd $(HOST_SUBDIR)/bfd && \
2da12f12 3688 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3689
a90ef4bf 3690@endif bfd
2a4cbe27 3691
a90ef4bf
JM
3692.PHONY: install-strip-bfd maybe-install-strip-bfd
3693maybe-install-strip-bfd:
3694@if bfd
3695maybe-install-strip-bfd: install-strip-bfd
9b980aa1 3696
a90ef4bf 3697install-strip-bfd: installdirs
9b980aa1
RW
3698 @: $(MAKE); $(unstage)
3699 @r=`${PWD_COMMAND}`; export r; \
3700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3701 $(HOST_EXPORTS) \
a90ef4bf 3702 (cd $(HOST_SUBDIR)/bfd && \
9b980aa1
RW
3703 $(MAKE) $(FLAGS_TO_PASS) install-strip)
3704
a90ef4bf 3705@endif bfd
9b980aa1 3706
56a8fe78 3707# Other targets (info, dvi, pdf, etc.)
2a4cbe27 3708
a90ef4bf
JM
3709.PHONY: maybe-info-bfd info-bfd
3710maybe-info-bfd:
3711@if bfd
3712maybe-info-bfd: info-bfd
4fa63067 3713
a90ef4bf
JM
3714info-bfd: \
3715 configure-bfd
3716 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3717 r=`${PWD_COMMAND}`; export r; \
3718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3719 $(HOST_EXPORTS) \
b813574b 3720 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3722 done; \
22121df0 3723 echo "Doing info in bfd"; \
a90ef4bf 3724 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3727 "RANLIB=$${RANLIB}" \
0c24b341 3728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3729 info) \
2a4cbe27
NN
3730 || exit 1
3731
a90ef4bf 3732@endif bfd
2a4cbe27 3733
a90ef4bf
JM
3734.PHONY: maybe-dvi-bfd dvi-bfd
3735maybe-dvi-bfd:
3736@if bfd
3737maybe-dvi-bfd: dvi-bfd
2a4cbe27 3738
a90ef4bf
JM
3739dvi-bfd: \
3740 configure-bfd
3741 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3742 r=`${PWD_COMMAND}`; export r; \
3743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3744 $(HOST_EXPORTS) \
b813574b 3745 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3747 done; \
22121df0 3748 echo "Doing dvi in bfd"; \
a90ef4bf 3749 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3752 "RANLIB=$${RANLIB}" \
0c24b341 3753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3754 dvi) \
2a4cbe27
NN
3755 || exit 1
3756
a90ef4bf 3757@endif bfd
2a4cbe27 3758
a90ef4bf
JM
3759.PHONY: maybe-pdf-bfd pdf-bfd
3760maybe-pdf-bfd:
3761@if bfd
3762maybe-pdf-bfd: pdf-bfd
56a8fe78 3763
a90ef4bf
JM
3764pdf-bfd: \
3765 configure-bfd
3766 @[ -f ./bfd/Makefile ] || exit 0; \
56a8fe78
DD
3767 r=`${PWD_COMMAND}`; export r; \
3768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3769 $(HOST_EXPORTS) \
3770 for flag in $(EXTRA_HOST_FLAGS) ; do \
3771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3772 done; \
22121df0 3773 echo "Doing pdf in bfd"; \
a90ef4bf 3774 (cd $(HOST_SUBDIR)/bfd && \
56a8fe78
DD
3775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3777 "RANLIB=$${RANLIB}" \
0c24b341 3778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
3779 pdf) \
3780 || exit 1
3781
a90ef4bf 3782@endif bfd
56a8fe78 3783
a90ef4bf
JM
3784.PHONY: maybe-html-bfd html-bfd
3785maybe-html-bfd:
3786@if bfd
3787maybe-html-bfd: html-bfd
6d389afc 3788
a90ef4bf
JM
3789html-bfd: \
3790 configure-bfd
3791 @[ -f ./bfd/Makefile ] || exit 0; \
6d389afc
MS
3792 r=`${PWD_COMMAND}`; export r; \
3793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
3794 $(HOST_EXPORTS) \
3795 for flag in $(EXTRA_HOST_FLAGS) ; do \
3796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3797 done; \
22121df0 3798 echo "Doing html in bfd"; \
a90ef4bf 3799 (cd $(HOST_SUBDIR)/bfd && \
6d389afc
MS
3800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3802 "RANLIB=$${RANLIB}" \
0c24b341 3803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
3804 html) \
3805 || exit 1
3806
a90ef4bf 3807@endif bfd
6d389afc 3808
a90ef4bf
JM
3809.PHONY: maybe-TAGS-bfd TAGS-bfd
3810maybe-TAGS-bfd:
3811@if bfd
3812maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 3813
a90ef4bf
JM
3814TAGS-bfd: \
3815 configure-bfd
3816 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3817 r=`${PWD_COMMAND}`; export r; \
3818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3819 $(HOST_EXPORTS) \
b813574b 3820 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3822 done; \
22121df0 3823 echo "Doing TAGS in bfd"; \
a90ef4bf 3824 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3827 "RANLIB=$${RANLIB}" \
0c24b341 3828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3829 TAGS) \
2a4cbe27
NN
3830 || exit 1
3831
a90ef4bf 3832@endif bfd
2a4cbe27 3833
a90ef4bf
JM
3834.PHONY: maybe-install-info-bfd install-info-bfd
3835maybe-install-info-bfd:
3836@if bfd
3837maybe-install-info-bfd: install-info-bfd
2a4cbe27 3838
a90ef4bf
JM
3839install-info-bfd: \
3840 configure-bfd \
3841 info-bfd
3842 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3843 r=`${PWD_COMMAND}`; export r; \
3844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3845 $(HOST_EXPORTS) \
b813574b 3846 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3848 done; \
22121df0 3849 echo "Doing install-info in bfd"; \
a90ef4bf 3850 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3853 "RANLIB=$${RANLIB}" \
0c24b341 3854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3855 install-info) \
2a4cbe27
NN
3856 || exit 1
3857
a90ef4bf 3858@endif bfd
2a4cbe27 3859
a90ef4bf
JM
3860.PHONY: maybe-install-pdf-bfd install-pdf-bfd
3861maybe-install-pdf-bfd:
3862@if bfd
3863maybe-install-pdf-bfd: install-pdf-bfd
a3ca38d2 3864
a90ef4bf
JM
3865install-pdf-bfd: \
3866 configure-bfd \
3867 pdf-bfd
3868 @[ -f ./bfd/Makefile ] || exit 0; \
a3ca38d2
DD
3869 r=`${PWD_COMMAND}`; export r; \
3870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3871 $(HOST_EXPORTS) \
3872 for flag in $(EXTRA_HOST_FLAGS) ; do \
3873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3874 done; \
22121df0 3875 echo "Doing install-pdf in bfd"; \
a90ef4bf 3876 (cd $(HOST_SUBDIR)/bfd && \
a3ca38d2
DD
3877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3879 "RANLIB=$${RANLIB}" \
0c24b341 3880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
3881 install-pdf) \
3882 || exit 1
3883
a90ef4bf 3884@endif bfd
a3ca38d2 3885
a90ef4bf
JM
3886.PHONY: maybe-install-html-bfd install-html-bfd
3887maybe-install-html-bfd:
3888@if bfd
3889maybe-install-html-bfd: install-html-bfd
108a6f8e 3890
a90ef4bf
JM
3891install-html-bfd: \
3892 configure-bfd \
3893 html-bfd
3894 @[ -f ./bfd/Makefile ] || exit 0; \
108a6f8e
CD
3895 r=`${PWD_COMMAND}`; export r; \
3896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3897 $(HOST_EXPORTS) \
3898 for flag in $(EXTRA_HOST_FLAGS) ; do \
3899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3900 done; \
22121df0 3901 echo "Doing install-html in bfd"; \
a90ef4bf 3902 (cd $(HOST_SUBDIR)/bfd && \
108a6f8e
CD
3903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3905 "RANLIB=$${RANLIB}" \
0c24b341 3906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
3907 install-html) \
3908 || exit 1
3909
a90ef4bf 3910@endif bfd
108a6f8e 3911
a90ef4bf
JM
3912.PHONY: maybe-installcheck-bfd installcheck-bfd
3913maybe-installcheck-bfd:
3914@if bfd
3915maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 3916
a90ef4bf
JM
3917installcheck-bfd: \
3918 configure-bfd
3919 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3920 r=`${PWD_COMMAND}`; export r; \
3921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3922 $(HOST_EXPORTS) \
b813574b 3923 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3925 done; \
22121df0 3926 echo "Doing installcheck in bfd"; \
a90ef4bf 3927 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3930 "RANLIB=$${RANLIB}" \
0c24b341 3931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3932 installcheck) \
2a4cbe27
NN
3933 || exit 1
3934
a90ef4bf 3935@endif bfd
2a4cbe27 3936
a90ef4bf
JM
3937.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3938maybe-mostlyclean-bfd:
3939@if bfd
3940maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 3941
a90ef4bf
JM
3942mostlyclean-bfd:
3943 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3944 r=`${PWD_COMMAND}`; export r; \
3945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3946 $(HOST_EXPORTS) \
b813574b 3947 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3949 done; \
22121df0 3950 echo "Doing mostlyclean in bfd"; \
a90ef4bf 3951 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3954 "RANLIB=$${RANLIB}" \
0c24b341 3955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3956 mostlyclean) \
2a4cbe27
NN
3957 || exit 1
3958
a90ef4bf 3959@endif bfd
2a4cbe27 3960
a90ef4bf
JM
3961.PHONY: maybe-clean-bfd clean-bfd
3962maybe-clean-bfd:
3963@if bfd
3964maybe-clean-bfd: clean-bfd
2a4cbe27 3965
a90ef4bf
JM
3966clean-bfd:
3967 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3968 r=`${PWD_COMMAND}`; export r; \
3969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3970 $(HOST_EXPORTS) \
b813574b 3971 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3973 done; \
22121df0 3974 echo "Doing clean in bfd"; \
a90ef4bf 3975 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3978 "RANLIB=$${RANLIB}" \
0c24b341 3979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3980 clean) \
2a4cbe27
NN
3981 || exit 1
3982
a90ef4bf 3983@endif bfd
2a4cbe27 3984
a90ef4bf
JM
3985.PHONY: maybe-distclean-bfd distclean-bfd
3986maybe-distclean-bfd:
3987@if bfd
3988maybe-distclean-bfd: distclean-bfd
2a4cbe27 3989
a90ef4bf
JM
3990distclean-bfd:
3991 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3992 r=`${PWD_COMMAND}`; export r; \
3993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3994 $(HOST_EXPORTS) \
b813574b 3995 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3997 done; \
22121df0 3998 echo "Doing distclean in bfd"; \
a90ef4bf 3999 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4002 "RANLIB=$${RANLIB}" \
0c24b341 4003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4004 distclean) \
2a4cbe27
NN
4005 || exit 1
4006
a90ef4bf 4007@endif bfd
2a4cbe27 4008
a90ef4bf
JM
4009.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4010maybe-maintainer-clean-bfd:
4011@if bfd
4012maybe-maintainer-clean-bfd: maintainer-clean-bfd
2a4cbe27 4013
a90ef4bf
JM
4014maintainer-clean-bfd:
4015 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4016 r=`${PWD_COMMAND}`; export r; \
4017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4018 $(HOST_EXPORTS) \
b813574b 4019 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4021 done; \
22121df0 4022 echo "Doing maintainer-clean in bfd"; \
a90ef4bf 4023 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4026 "RANLIB=$${RANLIB}" \
0c24b341 4027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4028 maintainer-clean) \
2a4cbe27
NN
4029 || exit 1
4030
a90ef4bf 4031@endif bfd
2a4cbe27 4032
2a4cbe27 4033
a7254363 4034
a90ef4bf
JM
4035.PHONY: configure-opcodes maybe-configure-opcodes
4036maybe-configure-opcodes:
4f0ef2d8 4037@if gcc-bootstrap
a90ef4bf 4038configure-opcodes: stage_current
4f0ef2d8 4039@endif gcc-bootstrap
a90ef4bf
JM
4040@if opcodes
4041maybe-configure-opcodes: configure-opcodes
4042configure-opcodes:
c52c6897 4043 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4045 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
22121df0 4046 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
1f53ca9a 4047 $(HOST_EXPORTS) \
a90ef4bf
JM
4048 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4049 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
4fa63067 4050 case $(srcdir) in \
b00612cc 4051 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4052 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
b00612cc 4053 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4054 esac; \
1b6c0831
L
4055 module_srcdir=opcodes; \
4056 $(SHELL) \
4057 $$s/$$module_srcdir/configure \
4058 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4059 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4060 --target=${target_alias} \
2a4cbe27 4061 || exit 1
a90ef4bf 4062@endif opcodes
a7254363 4063
d545f33b
PB
4064
4065
a90ef4bf
JM
4066.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4067maybe-configure-stage1-opcodes:
4068@if opcodes-bootstrap
4069maybe-configure-stage1-opcodes: configure-stage1-opcodes
4070configure-stage1-opcodes:
4071 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4072 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4073 @r=`${PWD_COMMAND}`; export r; \
4074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4075 TFLAGS="$(STAGE1_TFLAGS)"; \
4076 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4077 $(HOST_EXPORTS) \
4078 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
4079 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4080 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4081 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes; \
4082 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4083 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4084 case $(srcdir) in \
4085 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4086 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4087 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4088 esac; \
1b6c0831
L
4089 module_srcdir=opcodes; \
4090 $(SHELL) $$s/$$module_srcdir/configure \
4091 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4092 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4093 --target=${target_alias} \
4094 \
a90ef4bf
JM
4095 $(STAGE1_CONFIGURE_FLAGS)
4096@endif opcodes-bootstrap
2a4cbe27 4097
a90ef4bf
JM
4098.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4099maybe-configure-stage2-opcodes:
4100@if opcodes-bootstrap
4101maybe-configure-stage2-opcodes: configure-stage2-opcodes
4102configure-stage2-opcodes:
4103 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4104 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067 4105 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4107 TFLAGS="$(STAGE2_TFLAGS)"; \
4108 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4109 $(HOST_EXPORTS) \
a90ef4bf
JM
4110 $(POSTSTAGE1_HOST_EXPORTS) \
4111 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
4112 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4113 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4114 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes; \
4115 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4116 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4117 case $(srcdir) in \
4118 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4119 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4120 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4121 esac; \
1b6c0831
L
4122 module_srcdir=opcodes; \
4123 $(SHELL) $$s/$$module_srcdir/configure \
4124 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4125 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4126 --target=${target_alias} \
22121df0 4127 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4128 $(STAGE2_CONFIGURE_FLAGS)
4129@endif opcodes-bootstrap
2a4cbe27 4130
a90ef4bf
JM
4131.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
4132maybe-configure-stage3-opcodes:
4133@if opcodes-bootstrap
4134maybe-configure-stage3-opcodes: configure-stage3-opcodes
4135configure-stage3-opcodes:
4136 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4137 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4138 @r=`${PWD_COMMAND}`; export r; \
4139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4140 TFLAGS="$(STAGE3_TFLAGS)"; \
4141 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4142 $(HOST_EXPORTS) \
a90ef4bf
JM
4143 $(POSTSTAGE1_HOST_EXPORTS) \
4144 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
4145 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4146 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4147 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes; \
4148 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4149 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4150 case $(srcdir) in \
4151 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4152 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4153 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4154 esac; \
1b6c0831
L
4155 module_srcdir=opcodes; \
4156 $(SHELL) $$s/$$module_srcdir/configure \
4157 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4158 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4159 --target=${target_alias} \
22121df0 4160 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4161 $(STAGE3_CONFIGURE_FLAGS)
4162@endif opcodes-bootstrap
9b980aa1 4163
a90ef4bf
JM
4164.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
4165maybe-configure-stage4-opcodes:
4166@if opcodes-bootstrap
4167maybe-configure-stage4-opcodes: configure-stage4-opcodes
4168configure-stage4-opcodes:
4169 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4170 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
9b980aa1
RW
4171 @r=`${PWD_COMMAND}`; export r; \
4172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4173 TFLAGS="$(STAGE4_TFLAGS)"; \
4174 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
9b980aa1 4175 $(HOST_EXPORTS) \
a90ef4bf
JM
4176 $(POSTSTAGE1_HOST_EXPORTS) \
4177 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
4178 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4179 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4180 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes; \
4181 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4182 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4183 case $(srcdir) in \
4184 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4185 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4186 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4187 esac; \
1b6c0831
L
4188 module_srcdir=opcodes; \
4189 $(SHELL) $$s/$$module_srcdir/configure \
4190 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4191 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4192 --target=${target_alias} \
22121df0 4193 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4194 $(STAGE4_CONFIGURE_FLAGS)
4195@endif opcodes-bootstrap
4fa63067 4196
a90ef4bf
JM
4197.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
4198maybe-configure-stageprofile-opcodes:
4199@if opcodes-bootstrap
4200maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
4201configure-stageprofile-opcodes:
4202 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4203 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4204 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4206 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4207 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4208 $(HOST_EXPORTS) \
a90ef4bf
JM
4209 $(POSTSTAGE1_HOST_EXPORTS) \
4210 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4211 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4212 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4213 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes; \
4214 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4215 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4216 case $(srcdir) in \
4217 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4218 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4219 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4220 esac; \
1b6c0831
L
4221 module_srcdir=opcodes; \
4222 $(SHELL) $$s/$$module_srcdir/configure \
4223 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4224 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4225 --target=${target_alias} \
22121df0 4226 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4227 $(STAGEprofile_CONFIGURE_FLAGS)
4228@endif opcodes-bootstrap
4229
4230.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4231maybe-configure-stagefeedback-opcodes:
4232@if opcodes-bootstrap
4233maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4234configure-stagefeedback-opcodes:
4235 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4236 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4237 @r=`${PWD_COMMAND}`; export r; \
4238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4239 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4240 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4241 $(HOST_EXPORTS) \
4242 $(POSTSTAGE1_HOST_EXPORTS) \
4243 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4244 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4245 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4246 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes; \
4247 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4248 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4249 case $(srcdir) in \
4250 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4251 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4252 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4253 esac; \
1b6c0831
L
4254 module_srcdir=opcodes; \
4255 $(SHELL) $$s/$$module_srcdir/configure \
4256 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4257 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4258 --target=${target_alias} \
22121df0 4259 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4260 $(STAGEfeedback_CONFIGURE_FLAGS)
4261@endif opcodes-bootstrap
4262
4263
4264
4265
4266
4267.PHONY: all-opcodes maybe-all-opcodes
4268maybe-all-opcodes:
4269@if gcc-bootstrap
4270all-opcodes: stage_current
4271@endif gcc-bootstrap
4272@if opcodes
4273TARGET-opcodes=all
4274maybe-all-opcodes: all-opcodes
4275all-opcodes: configure-opcodes
4276 @r=`${PWD_COMMAND}`; export r; \
4277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4278 $(HOST_EXPORTS) \
4279 (cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4280 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4281 $(TARGET-opcodes))
4282@endif opcodes
4283
4284
4285
4286.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4287.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4288maybe-all-stage1-opcodes:
4289maybe-clean-stage1-opcodes:
4290@if opcodes-bootstrap
4291maybe-all-stage1-opcodes: all-stage1-opcodes
4292all-stage1: all-stage1-opcodes
4293TARGET-stage1-opcodes = $(TARGET-opcodes)
4294all-stage1-opcodes: configure-stage1-opcodes
4295 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4296 @r=`${PWD_COMMAND}`; export r; \
4297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4298 TFLAGS="$(STAGE1_TFLAGS)"; \
4299 $(HOST_EXPORTS) \
4300 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4301 \
a90ef4bf
JM
4302 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4303 CFLAGS="$(STAGE1_CFLAGS)" \
4304 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4305 LIBCFLAGS="$(LIBCFLAGS)" \
4306 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4307 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4308 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4309 $(EXTRA_HOST_FLAGS) \
4310 $(STAGE1_FLAGS_TO_PASS) \
05a13254 4311 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf
JM
4312 $(TARGET-stage1-opcodes)
4313
4314maybe-clean-stage1-opcodes: clean-stage1-opcodes
4315clean-stage1: clean-stage1-opcodes
4316clean-stage1-opcodes:
4317 @if [ $(current_stage) = stage1 ]; then \
4318 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4319 else \
4320 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4321 $(MAKE) stage1-start; \
4322 fi; \
4323 cd $(HOST_SUBDIR)/opcodes && \
4324 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 4325 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4326@endif opcodes-bootstrap
4327
4328
4329.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4330.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4331maybe-all-stage2-opcodes:
4332maybe-clean-stage2-opcodes:
4333@if opcodes-bootstrap
4334maybe-all-stage2-opcodes: all-stage2-opcodes
4335all-stage2: all-stage2-opcodes
4336TARGET-stage2-opcodes = $(TARGET-opcodes)
4337all-stage2-opcodes: configure-stage2-opcodes
4338 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4339 @r=`${PWD_COMMAND}`; export r; \
4340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4341 TFLAGS="$(STAGE2_TFLAGS)"; \
4342 $(HOST_EXPORTS) \
4343 $(POSTSTAGE1_HOST_EXPORTS) \
4344 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4345 \
a90ef4bf
JM
4346 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4347 CFLAGS="$(STAGE2_CFLAGS)" \
4348 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4349 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4350 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4351 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4352 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4353 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4354 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf
JM
4355 $(TARGET-stage2-opcodes)
4356
4357maybe-clean-stage2-opcodes: clean-stage2-opcodes
4358clean-stage2: clean-stage2-opcodes
4359clean-stage2-opcodes:
4360 @if [ $(current_stage) = stage2 ]; then \
4361 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4362 else \
4363 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4364 $(MAKE) stage2-start; \
4365 fi; \
4366 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4367 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4368@endif opcodes-bootstrap
4369
4370
4371.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4372.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4373maybe-all-stage3-opcodes:
4374maybe-clean-stage3-opcodes:
4375@if opcodes-bootstrap
4376maybe-all-stage3-opcodes: all-stage3-opcodes
4377all-stage3: all-stage3-opcodes
4378TARGET-stage3-opcodes = $(TARGET-opcodes)
4379all-stage3-opcodes: configure-stage3-opcodes
4380 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4381 @r=`${PWD_COMMAND}`; export r; \
4382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4383 TFLAGS="$(STAGE3_TFLAGS)"; \
4384 $(HOST_EXPORTS) \
4385 $(POSTSTAGE1_HOST_EXPORTS) \
4386 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4387 \
a90ef4bf
JM
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) \
05a13254 4396 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf
JM
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 && \
05a13254 4429 \
a90ef4bf
JM
4430 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4431 CFLAGS="$(STAGE4_CFLAGS)" \
4432 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4433 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4434 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4435 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4436 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4437 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4438 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf
JM
4439 $(TARGET-stage4-opcodes)
4440
4441maybe-clean-stage4-opcodes: clean-stage4-opcodes
4442clean-stage4: clean-stage4-opcodes
4443clean-stage4-opcodes:
4444 @if [ $(current_stage) = stage4 ]; then \
4445 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4446 else \
4447 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4448 $(MAKE) stage4-start; \
4449 fi; \
4450 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4451 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4452@endif opcodes-bootstrap
4453
4454
4455.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4456.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4457maybe-all-stageprofile-opcodes:
4458maybe-clean-stageprofile-opcodes:
4459@if opcodes-bootstrap
4460maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4461all-stageprofile: all-stageprofile-opcodes
4462TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4463all-stageprofile-opcodes: configure-stageprofile-opcodes
4464 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4465 @r=`${PWD_COMMAND}`; export r; \
4466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4467 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4468 $(HOST_EXPORTS) \
4469 $(POSTSTAGE1_HOST_EXPORTS) \
4470 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4471 \
a90ef4bf
JM
4472 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4473 CFLAGS="$(STAGEprofile_CFLAGS)" \
4474 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4475 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4476 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4477 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4478 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4479 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4480 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
4481 $(TARGET-stageprofile-opcodes)
4482
4483maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4484clean-stageprofile: clean-stageprofile-opcodes
4485clean-stageprofile-opcodes:
4486 @if [ $(current_stage) = stageprofile ]; then \
4487 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4488 else \
4489 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4490 $(MAKE) stageprofile-start; \
4491 fi; \
4492 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4493 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4494@endif opcodes-bootstrap
4495
4496
4497.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4498.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4499maybe-all-stagefeedback-opcodes:
4500maybe-clean-stagefeedback-opcodes:
4501@if opcodes-bootstrap
4502maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4503all-stagefeedback: all-stagefeedback-opcodes
4504TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4505all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4506 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4507 @r=`${PWD_COMMAND}`; export r; \
4508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4509 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4510 $(HOST_EXPORTS) \
4511 $(POSTSTAGE1_HOST_EXPORTS) \
4512 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4513 \
a90ef4bf
JM
4514 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4515 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4516 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4517 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4518 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4519 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4520 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4521 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4522 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
4523 $(TARGET-stagefeedback-opcodes)
4524
4525maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4526clean-stagefeedback: clean-stagefeedback-opcodes
4527clean-stagefeedback-opcodes:
4528 @if [ $(current_stage) = stagefeedback ]; then \
4529 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4530 else \
4531 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4532 $(MAKE) stagefeedback-start; \
4533 fi; \
4534 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4535 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4536@endif opcodes-bootstrap
4537
4538
4539
4540
4541
4542.PHONY: check-opcodes maybe-check-opcodes
4543maybe-check-opcodes:
4544@if opcodes
4545maybe-check-opcodes: check-opcodes
4546
4547check-opcodes:
0aed8855 4548 @: $(MAKE); $(unstage)
a90ef4bf 4549 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 4551 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 4552 (cd $(HOST_SUBDIR)/opcodes && \
f91ca6bc 4553 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 4554
a90ef4bf 4555@endif opcodes
2a4cbe27 4556
a90ef4bf
JM
4557.PHONY: install-opcodes maybe-install-opcodes
4558maybe-install-opcodes:
4559@if opcodes
4560maybe-install-opcodes: install-opcodes
56a8fe78 4561
a90ef4bf 4562install-opcodes: installdirs
56a8fe78 4563 @: $(MAKE); $(unstage)
a90ef4bf 4564 @r=`${PWD_COMMAND}`; export r; \
56a8fe78
DD
4565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4566 $(HOST_EXPORTS) \
a90ef4bf
JM
4567 (cd $(HOST_SUBDIR)/opcodes && \
4568 $(MAKE) $(FLAGS_TO_PASS) install)
56a8fe78 4569
a90ef4bf 4570@endif opcodes
56a8fe78 4571
a90ef4bf
JM
4572.PHONY: install-strip-opcodes maybe-install-strip-opcodes
4573maybe-install-strip-opcodes:
4574@if opcodes
4575maybe-install-strip-opcodes: install-strip-opcodes
6d389afc 4576
a90ef4bf 4577install-strip-opcodes: installdirs
0aed8855 4578 @: $(MAKE); $(unstage)
a90ef4bf
JM
4579 @r=`${PWD_COMMAND}`; export r; \
4580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4581 $(HOST_EXPORTS) \
4582 (cd $(HOST_SUBDIR)/opcodes && \
4583 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4584
4585@endif opcodes
4586
4587# Other targets (info, dvi, pdf, etc.)
4588
4589.PHONY: maybe-info-opcodes info-opcodes
4590maybe-info-opcodes:
4591@if opcodes
4592maybe-info-opcodes: info-opcodes
4593
4594info-opcodes: \
4595 configure-opcodes
4596 @[ -f ./opcodes/Makefile ] || exit 0; \
6d389afc
MS
4597 r=`${PWD_COMMAND}`; export r; \
4598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
4599 $(HOST_EXPORTS) \
4600 for flag in $(EXTRA_HOST_FLAGS) ; do \
4601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4602 done; \
22121df0 4603 echo "Doing info in opcodes"; \
a90ef4bf 4604 (cd $(HOST_SUBDIR)/opcodes && \
6d389afc
MS
4605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4607 "RANLIB=$${RANLIB}" \
0c24b341 4608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4609 info) \
6d389afc
MS
4610 || exit 1
4611
a90ef4bf 4612@endif opcodes
6d389afc 4613
a90ef4bf
JM
4614.PHONY: maybe-dvi-opcodes dvi-opcodes
4615maybe-dvi-opcodes:
4616@if opcodes
4617maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 4618
a90ef4bf
JM
4619dvi-opcodes: \
4620 configure-opcodes
4621 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4622 r=`${PWD_COMMAND}`; export r; \
4623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4624 $(HOST_EXPORTS) \
b813574b 4625 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4627 done; \
22121df0 4628 echo "Doing dvi in opcodes"; \
a90ef4bf 4629 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4632 "RANLIB=$${RANLIB}" \
0c24b341 4633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4634 dvi) \
2a4cbe27
NN
4635 || exit 1
4636
a90ef4bf 4637@endif opcodes
2a4cbe27 4638
a90ef4bf
JM
4639.PHONY: maybe-pdf-opcodes pdf-opcodes
4640maybe-pdf-opcodes:
4641@if opcodes
4642maybe-pdf-opcodes: pdf-opcodes
2a4cbe27 4643
a90ef4bf
JM
4644pdf-opcodes: \
4645 configure-opcodes
4646 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4647 r=`${PWD_COMMAND}`; export r; \
4648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4649 $(HOST_EXPORTS) \
b813574b 4650 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4652 done; \
22121df0 4653 echo "Doing pdf in opcodes"; \
a90ef4bf 4654 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4657 "RANLIB=$${RANLIB}" \
0c24b341 4658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4659 pdf) \
2a4cbe27
NN
4660 || exit 1
4661
a90ef4bf 4662@endif opcodes
2a4cbe27 4663
a90ef4bf
JM
4664.PHONY: maybe-html-opcodes html-opcodes
4665maybe-html-opcodes:
4666@if opcodes
4667maybe-html-opcodes: html-opcodes
a3ca38d2 4668
a90ef4bf
JM
4669html-opcodes: \
4670 configure-opcodes
4671 @[ -f ./opcodes/Makefile ] || exit 0; \
a3ca38d2
DD
4672 r=`${PWD_COMMAND}`; export r; \
4673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4674 $(HOST_EXPORTS) \
4675 for flag in $(EXTRA_HOST_FLAGS) ; do \
4676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4677 done; \
22121df0 4678 echo "Doing html in opcodes"; \
a90ef4bf 4679 (cd $(HOST_SUBDIR)/opcodes && \
a3ca38d2
DD
4680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4682 "RANLIB=$${RANLIB}" \
0c24b341 4683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4684 html) \
a3ca38d2
DD
4685 || exit 1
4686
a90ef4bf 4687@endif opcodes
a3ca38d2 4688
a90ef4bf
JM
4689.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4690maybe-TAGS-opcodes:
4691@if opcodes
4692maybe-TAGS-opcodes: TAGS-opcodes
108a6f8e 4693
a90ef4bf
JM
4694TAGS-opcodes: \
4695 configure-opcodes
4696 @[ -f ./opcodes/Makefile ] || exit 0; \
108a6f8e
CD
4697 r=`${PWD_COMMAND}`; export r; \
4698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4699 $(HOST_EXPORTS) \
4700 for flag in $(EXTRA_HOST_FLAGS) ; do \
4701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4702 done; \
22121df0 4703 echo "Doing TAGS in opcodes"; \
a90ef4bf 4704 (cd $(HOST_SUBDIR)/opcodes && \
108a6f8e
CD
4705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4707 "RANLIB=$${RANLIB}" \
0c24b341 4708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4709 TAGS) \
108a6f8e
CD
4710 || exit 1
4711
a90ef4bf 4712@endif opcodes
108a6f8e 4713
a90ef4bf
JM
4714.PHONY: maybe-install-info-opcodes install-info-opcodes
4715maybe-install-info-opcodes:
4716@if opcodes
4717maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 4718
a90ef4bf
JM
4719install-info-opcodes: \
4720 configure-opcodes \
4721 info-opcodes
4722 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4723 r=`${PWD_COMMAND}`; export r; \
4724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4725 $(HOST_EXPORTS) \
b813574b 4726 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4728 done; \
22121df0 4729 echo "Doing install-info in opcodes"; \
a90ef4bf 4730 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4733 "RANLIB=$${RANLIB}" \
0c24b341 4734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4735 install-info) \
2a4cbe27
NN
4736 || exit 1
4737
a90ef4bf 4738@endif opcodes
2a4cbe27 4739
a90ef4bf
JM
4740.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
4741maybe-install-pdf-opcodes:
4742@if opcodes
4743maybe-install-pdf-opcodes: install-pdf-opcodes
2a4cbe27 4744
a90ef4bf
JM
4745install-pdf-opcodes: \
4746 configure-opcodes \
4747 pdf-opcodes
4748 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4749 r=`${PWD_COMMAND}`; export r; \
4750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4751 $(HOST_EXPORTS) \
b813574b 4752 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4754 done; \
22121df0 4755 echo "Doing install-pdf in opcodes"; \
a90ef4bf 4756 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4759 "RANLIB=$${RANLIB}" \
0c24b341 4760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4761 install-pdf) \
2a4cbe27
NN
4762 || exit 1
4763
a90ef4bf 4764@endif opcodes
2a4cbe27 4765
a90ef4bf
JM
4766.PHONY: maybe-install-html-opcodes install-html-opcodes
4767maybe-install-html-opcodes:
4768@if opcodes
4769maybe-install-html-opcodes: install-html-opcodes
2a4cbe27 4770
a90ef4bf
JM
4771install-html-opcodes: \
4772 configure-opcodes \
4773 html-opcodes
4774 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4775 r=`${PWD_COMMAND}`; export r; \
4776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4777 $(HOST_EXPORTS) \
b813574b 4778 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4780 done; \
22121df0 4781 echo "Doing install-html in opcodes"; \
a90ef4bf 4782 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4785 "RANLIB=$${RANLIB}" \
0c24b341 4786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4787 install-html) \
2a4cbe27
NN
4788 || exit 1
4789
a90ef4bf 4790@endif opcodes
2a4cbe27 4791
a90ef4bf
JM
4792.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4793maybe-installcheck-opcodes:
4794@if opcodes
4795maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 4796
a90ef4bf
JM
4797installcheck-opcodes: \
4798 configure-opcodes
4799 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4800 r=`${PWD_COMMAND}`; export r; \
4801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4802 $(HOST_EXPORTS) \
b813574b 4803 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4805 done; \
22121df0 4806 echo "Doing installcheck in opcodes"; \
a90ef4bf 4807 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4810 "RANLIB=$${RANLIB}" \
0c24b341 4811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4812 installcheck) \
2a4cbe27
NN
4813 || exit 1
4814
a90ef4bf 4815@endif opcodes
2a4cbe27 4816
a90ef4bf
JM
4817.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4818maybe-mostlyclean-opcodes:
4819@if opcodes
4820maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27 4821
a90ef4bf
JM
4822mostlyclean-opcodes:
4823 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4824 r=`${PWD_COMMAND}`; export r; \
4825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4826 $(HOST_EXPORTS) \
b813574b 4827 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4829 done; \
22121df0 4830 echo "Doing mostlyclean in opcodes"; \
a90ef4bf 4831 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4834 "RANLIB=$${RANLIB}" \
0c24b341 4835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4836 mostlyclean) \
2a4cbe27
NN
4837 || exit 1
4838
a90ef4bf 4839@endif opcodes
2a4cbe27 4840
a90ef4bf
JM
4841.PHONY: maybe-clean-opcodes clean-opcodes
4842maybe-clean-opcodes:
4843@if opcodes
4844maybe-clean-opcodes: clean-opcodes
2a4cbe27 4845
a90ef4bf
JM
4846clean-opcodes:
4847 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4848 r=`${PWD_COMMAND}`; export r; \
4849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4850 $(HOST_EXPORTS) \
b813574b 4851 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4853 done; \
22121df0 4854 echo "Doing clean in opcodes"; \
a90ef4bf 4855 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4858 "RANLIB=$${RANLIB}" \
0c24b341 4859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4860 clean) \
2a4cbe27
NN
4861 || exit 1
4862
a90ef4bf 4863@endif opcodes
2a4cbe27 4864
a90ef4bf
JM
4865.PHONY: maybe-distclean-opcodes distclean-opcodes
4866maybe-distclean-opcodes:
4867@if opcodes
4868maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 4869
a90ef4bf
JM
4870distclean-opcodes:
4871 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4872 r=`${PWD_COMMAND}`; export r; \
4873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4874 $(HOST_EXPORTS) \
b813574b 4875 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4877 done; \
22121df0 4878 echo "Doing distclean in opcodes"; \
a90ef4bf 4879 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4882 "RANLIB=$${RANLIB}" \
0c24b341 4883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4884 distclean) \
2a4cbe27
NN
4885 || exit 1
4886
a90ef4bf 4887@endif opcodes
2a4cbe27 4888
a90ef4bf
JM
4889.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4890maybe-maintainer-clean-opcodes:
4891@if opcodes
4892maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 4893
a90ef4bf
JM
4894maintainer-clean-opcodes:
4895 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4896 r=`${PWD_COMMAND}`; export r; \
4897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4898 $(HOST_EXPORTS) \
b813574b 4899 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4901 done; \
22121df0 4902 echo "Doing maintainer-clean in opcodes"; \
a90ef4bf 4903 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4906 "RANLIB=$${RANLIB}" \
0c24b341 4907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4908 maintainer-clean) \
2a4cbe27
NN
4909 || exit 1
4910
a90ef4bf 4911@endif opcodes
2a4cbe27 4912
2a4cbe27 4913
a7254363 4914
a90ef4bf
JM
4915.PHONY: configure-binutils maybe-configure-binutils
4916maybe-configure-binutils:
4f0ef2d8 4917@if gcc-bootstrap
a90ef4bf 4918configure-binutils: stage_current
4f0ef2d8 4919@endif gcc-bootstrap
a90ef4bf
JM
4920@if binutils
4921maybe-configure-binutils: configure-binutils
4922configure-binutils:
c52c6897
PB
4923 @r=`${PWD_COMMAND}`; export r; \
4924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4925 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
22121df0 4926 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
1f53ca9a 4927 $(HOST_EXPORTS) \
a90ef4bf
JM
4928 echo Configuring in $(HOST_SUBDIR)/binutils; \
4929 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
4fa63067 4930 case $(srcdir) in \
b00612cc 4931 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4932 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
b00612cc 4933 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4934 esac; \
1b6c0831
L
4935 module_srcdir=binutils; \
4936 $(SHELL) \
4937 $$s/$$module_srcdir/configure \
4938 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4939 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4940 --target=${target_alias} \
2a4cbe27 4941 || exit 1
a90ef4bf 4942@endif binutils
2a4cbe27 4943
a7254363
PB
4944
4945
a90ef4bf
JM
4946.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
4947maybe-configure-stage1-binutils:
4948@if binutils-bootstrap
4949maybe-configure-stage1-binutils: configure-stage1-binutils
4950configure-stage1-binutils:
c52c6897 4951 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 4952 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4953 @r=`${PWD_COMMAND}`; export r; \
4954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4955 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 4956 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
1b05fbbd 4957 $(HOST_EXPORTS) \
8ee82aff 4958 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4959 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4960 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4961 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils; \
4962 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 4963 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4964 case $(srcdir) in \
4965 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4966 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4967 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4968 esac; \
1b6c0831
L
4969 module_srcdir=binutils; \
4970 $(SHELL) $$s/$$module_srcdir/configure \
4971 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4972 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4973 --target=${target_alias} \
4974 \
1b05fbbd 4975 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 4976@endif binutils-bootstrap
d545f33b 4977
a90ef4bf
JM
4978.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
4979maybe-configure-stage2-binutils:
4980@if binutils-bootstrap
4981maybe-configure-stage2-binutils: configure-stage2-binutils
4982configure-stage2-binutils:
c52c6897 4983 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 4984 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4985 @r=`${PWD_COMMAND}`; export r; \
4986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4987 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 4988 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 4989 $(HOST_EXPORTS) \
1b05fbbd 4990 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 4991 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4992 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4993 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4994 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils; \
4995 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 4996 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4997 case $(srcdir) in \
4998 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4999 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5000 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5001 esac; \
1b6c0831
L
5002 module_srcdir=binutils; \
5003 $(SHELL) $$s/$$module_srcdir/configure \
5004 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5005 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5006 --target=${target_alias} \
22121df0 5007 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5008 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 5009@endif binutils-bootstrap
8520c408 5010
a90ef4bf
JM
5011.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
5012maybe-configure-stage3-binutils:
5013@if binutils-bootstrap
5014maybe-configure-stage3-binutils: configure-stage3-binutils
5015configure-stage3-binutils:
c52c6897 5016 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 5017 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5018 @r=`${PWD_COMMAND}`; export r; \
5019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5020 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 5021 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5022 $(HOST_EXPORTS) \
1b05fbbd 5023 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5024 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5025 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
5026 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5027 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils; \
5028 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5029 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5030 case $(srcdir) in \
5031 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5032 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5033 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5034 esac; \
1b6c0831
L
5035 module_srcdir=binutils; \
5036 $(SHELL) $$s/$$module_srcdir/configure \
5037 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5038 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5039 --target=${target_alias} \
22121df0 5040 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5041 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 5042@endif binutils-bootstrap
8520c408 5043
a90ef4bf
JM
5044.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5045maybe-configure-stage4-binutils:
5046@if binutils-bootstrap
5047maybe-configure-stage4-binutils: configure-stage4-binutils
5048configure-stage4-binutils:
c52c6897 5049 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 5050 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5051 @r=`${PWD_COMMAND}`; export r; \
5052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5053 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 5054 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5055 $(HOST_EXPORTS) \
1b05fbbd 5056 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5057 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5058 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
5059 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5060 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils; \
5061 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5062 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5063 case $(srcdir) in \
5064 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5065 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5066 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5067 esac; \
1b6c0831
L
5068 module_srcdir=binutils; \
5069 $(SHELL) $$s/$$module_srcdir/configure \
5070 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5071 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5072 --target=${target_alias} \
22121df0 5073 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5074 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 5075@endif binutils-bootstrap
d545f33b 5076
a90ef4bf
JM
5077.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5078maybe-configure-stageprofile-binutils:
5079@if binutils-bootstrap
5080maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
5081configure-stageprofile-binutils:
c52c6897 5082 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 5083 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5084 @r=`${PWD_COMMAND}`; export r; \
5085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5086 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 5087 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5088 $(HOST_EXPORTS) \
1b05fbbd
AO
5089 $(POSTSTAGE1_HOST_EXPORTS) \
5090 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5091 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
5092 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5093 echo Configuring stage profile in $(HOST_SUBDIR)/binutils; \
5094 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5095 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5096 case $(srcdir) in \
5097 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5098 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5099 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5100 esac; \
1b6c0831
L
5101 module_srcdir=binutils; \
5102 $(SHELL) $$s/$$module_srcdir/configure \
5103 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5104 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5105 --target=${target_alias} \
22121df0 5106 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5107 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 5108@endif binutils-bootstrap
d545f33b 5109
a90ef4bf
JM
5110.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5111maybe-configure-stagefeedback-binutils:
5112@if binutils-bootstrap
5113maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
5114configure-stagefeedback-binutils:
c52c6897 5115 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 5116 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5117 @r=`${PWD_COMMAND}`; export r; \
5118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5119 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 5120 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5121 $(HOST_EXPORTS) \
1b05fbbd
AO
5122 $(POSTSTAGE1_HOST_EXPORTS) \
5123 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5124 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
5125 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5126 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils; \
5127 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5128 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5129 case $(srcdir) in \
5130 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5131 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5132 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5133 esac; \
1b6c0831
L
5134 module_srcdir=binutils; \
5135 $(SHELL) $$s/$$module_srcdir/configure \
5136 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5137 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5138 --target=${target_alias} \
22121df0 5139 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5140 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 5141@endif binutils-bootstrap
d545f33b
PB
5142
5143
5144
5145
5146
a90ef4bf
JM
5147.PHONY: all-binutils maybe-all-binutils
5148maybe-all-binutils:
4f0ef2d8 5149@if gcc-bootstrap
a90ef4bf 5150all-binutils: stage_current
4f0ef2d8 5151@endif gcc-bootstrap
a90ef4bf
JM
5152@if binutils
5153TARGET-binutils=all
5154maybe-all-binutils: all-binutils
5155all-binutils: configure-binutils
c52c6897 5156 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 5158 $(HOST_EXPORTS) \
a90ef4bf 5159 (cd $(HOST_SUBDIR)/binutils && \
b3676d82 5160 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5161 $(TARGET-binutils))
5162@endif binutils
2a4cbe27 5163
a7254363 5164
d545f33b 5165
a90ef4bf
JM
5166.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5167.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5168maybe-all-stage1-binutils:
5169maybe-clean-stage1-binutils:
5170@if binutils-bootstrap
5171maybe-all-stage1-binutils: all-stage1-binutils
5172all-stage1: all-stage1-binutils
5173TARGET-stage1-binutils = $(TARGET-binutils)
5174all-stage1-binutils: configure-stage1-binutils
c52c6897 5175 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
5176 @r=`${PWD_COMMAND}`; export r; \
5177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5178 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 5179 $(HOST_EXPORTS) \
a90ef4bf 5180 cd $(HOST_SUBDIR)/binutils && \
05a13254 5181 \
7f6ef0c0 5182 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5183 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 5184 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
5185 LIBCFLAGS="$(LIBCFLAGS)" \
5186 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5187 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5188 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
5189 $(EXTRA_HOST_FLAGS) \
5190 $(STAGE1_FLAGS_TO_PASS) \
05a13254 5191 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 5192 $(TARGET-stage1-binutils)
d545f33b 5193
a90ef4bf
JM
5194maybe-clean-stage1-binutils: clean-stage1-binutils
5195clean-stage1: clean-stage1-binutils
5196clean-stage1-binutils:
9dbaa842 5197 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 5198 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5199 else \
a90ef4bf 5200 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5201 $(MAKE) stage1-start; \
5202 fi; \
a90ef4bf 5203 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5204 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 5205 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5206@endif binutils-bootstrap
d545f33b
PB
5207
5208
a90ef4bf
JM
5209.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5210.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5211maybe-all-stage2-binutils:
5212maybe-clean-stage2-binutils:
5213@if binutils-bootstrap
5214maybe-all-stage2-binutils: all-stage2-binutils
5215all-stage2: all-stage2-binutils
5216TARGET-stage2-binutils = $(TARGET-binutils)
5217all-stage2-binutils: configure-stage2-binutils
c52c6897 5218 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
5219 @r=`${PWD_COMMAND}`; export r; \
5220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5221 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 5222 $(HOST_EXPORTS) \
1f53ca9a 5223 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5224 cd $(HOST_SUBDIR)/binutils && \
05a13254 5225 \
7f6ef0c0 5226 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5227 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 5228 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
5229 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5230 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5231 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5232 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5233 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5234 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 5235 $(TARGET-stage2-binutils)
d545f33b 5236
a90ef4bf
JM
5237maybe-clean-stage2-binutils: clean-stage2-binutils
5238clean-stage2: clean-stage2-binutils
5239clean-stage2-binutils:
9dbaa842 5240 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 5241 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5242 else \
a90ef4bf 5243 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5244 $(MAKE) stage2-start; \
5245 fi; \
a90ef4bf 5246 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5247 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5248@endif binutils-bootstrap
d545f33b
PB
5249
5250
a90ef4bf
JM
5251.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5252.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5253maybe-all-stage3-binutils:
5254maybe-clean-stage3-binutils:
5255@if binutils-bootstrap
5256maybe-all-stage3-binutils: all-stage3-binutils
5257all-stage3: all-stage3-binutils
5258TARGET-stage3-binutils = $(TARGET-binutils)
5259all-stage3-binutils: configure-stage3-binutils
c52c6897 5260 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
5261 @r=`${PWD_COMMAND}`; export r; \
5262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5263 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 5264 $(HOST_EXPORTS) \
1f53ca9a 5265 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5266 cd $(HOST_SUBDIR)/binutils && \
05a13254 5267 \
7f6ef0c0 5268 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5269 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 5270 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
5271 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5272 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5273 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5274 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5275 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5276 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 5277 $(TARGET-stage3-binutils)
d545f33b 5278
a90ef4bf
JM
5279maybe-clean-stage3-binutils: clean-stage3-binutils
5280clean-stage3: clean-stage3-binutils
5281clean-stage3-binutils:
9dbaa842 5282 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 5283 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5284 else \
a90ef4bf 5285 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5286 $(MAKE) stage3-start; \
5287 fi; \
a90ef4bf 5288 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5289 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5290@endif binutils-bootstrap
d545f33b
PB
5291
5292
a90ef4bf
JM
5293.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5294.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5295maybe-all-stage4-binutils:
5296maybe-clean-stage4-binutils:
5297@if binutils-bootstrap
5298maybe-all-stage4-binutils: all-stage4-binutils
5299all-stage4: all-stage4-binutils
5300TARGET-stage4-binutils = $(TARGET-binutils)
5301all-stage4-binutils: configure-stage4-binutils
c52c6897 5302 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
5303 @r=`${PWD_COMMAND}`; export r; \
5304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5305 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 5306 $(HOST_EXPORTS) \
1f53ca9a 5307 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5308 cd $(HOST_SUBDIR)/binutils && \
05a13254 5309 \
7f6ef0c0 5310 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5311 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 5312 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 5313 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
5314 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5315 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5316 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5317 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5318 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 5319 $(TARGET-stage4-binutils)
d545f33b 5320
a90ef4bf
JM
5321maybe-clean-stage4-binutils: clean-stage4-binutils
5322clean-stage4: clean-stage4-binutils
5323clean-stage4-binutils:
9dbaa842 5324 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 5325 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5326 else \
a90ef4bf 5327 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5328 $(MAKE) stage4-start; \
5329 fi; \
a90ef4bf 5330 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5331 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5332@endif binutils-bootstrap
d545f33b
PB
5333
5334
a90ef4bf
JM
5335.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5336.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5337maybe-all-stageprofile-binutils:
5338maybe-clean-stageprofile-binutils:
5339@if binutils-bootstrap
5340maybe-all-stageprofile-binutils: all-stageprofile-binutils
5341all-stageprofile: all-stageprofile-binutils
5342TARGET-stageprofile-binutils = $(TARGET-binutils)
5343all-stageprofile-binutils: configure-stageprofile-binutils
c52c6897 5344 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
5345 @r=`${PWD_COMMAND}`; export r; \
5346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5347 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 5348 $(HOST_EXPORTS) \
1f53ca9a 5349 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5350 cd $(HOST_SUBDIR)/binutils && \
05a13254 5351 \
7f6ef0c0 5352 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5353 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 5354 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
5355 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5356 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5357 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5358 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5359 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5360 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 5361 $(TARGET-stageprofile-binutils)
d545f33b 5362
a90ef4bf
JM
5363maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5364clean-stageprofile: clean-stageprofile-binutils
5365clean-stageprofile-binutils:
9dbaa842 5366 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 5367 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5368 else \
a90ef4bf 5369 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5370 $(MAKE) stageprofile-start; \
5371 fi; \
a90ef4bf 5372 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5373 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5374@endif binutils-bootstrap
d545f33b
PB
5375
5376
a90ef4bf
JM
5377.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5378.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5379maybe-all-stagefeedback-binutils:
5380maybe-clean-stagefeedback-binutils:
5381@if binutils-bootstrap
5382maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5383all-stagefeedback: all-stagefeedback-binutils
5384TARGET-stagefeedback-binutils = $(TARGET-binutils)
5385all-stagefeedback-binutils: configure-stagefeedback-binutils
c52c6897 5386 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
5387 @r=`${PWD_COMMAND}`; export r; \
5388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5389 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 5390 $(HOST_EXPORTS) \
1f53ca9a 5391 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5392 cd $(HOST_SUBDIR)/binutils && \
05a13254 5393 \
7f6ef0c0 5394 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5395 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 5396 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
5397 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5398 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5399 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5400 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5401 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5402 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 5403 $(TARGET-stagefeedback-binutils)
d545f33b 5404
a90ef4bf
JM
5405maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
5406clean-stagefeedback: clean-stagefeedback-binutils
5407clean-stagefeedback-binutils:
9dbaa842 5408 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 5409 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5410 else \
a90ef4bf 5411 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5412 $(MAKE) stagefeedback-start; \
5413 fi; \
a90ef4bf 5414 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5415 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5416@endif binutils-bootstrap
d545f33b
PB
5417
5418
5419
5420
5421
a90ef4bf
JM
5422.PHONY: check-binutils maybe-check-binutils
5423maybe-check-binutils:
5424@if binutils
5425maybe-check-binutils: check-binutils
2a4cbe27 5426
a90ef4bf 5427check-binutils:
0aed8855 5428 @: $(MAKE); $(unstage)
4fa63067 5429 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5431 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 5432 (cd $(HOST_SUBDIR)/binutils && \
f91ca6bc 5433 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 5434
a90ef4bf 5435@endif binutils
2a4cbe27 5436
a90ef4bf
JM
5437.PHONY: install-binutils maybe-install-binutils
5438maybe-install-binutils:
5439@if binutils
5440maybe-install-binutils: install-binutils
2a4cbe27 5441
a90ef4bf 5442install-binutils: installdirs
0aed8855 5443 @: $(MAKE); $(unstage)
4fa63067 5444 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5446 $(HOST_EXPORTS) \
a90ef4bf 5447 (cd $(HOST_SUBDIR)/binutils && \
2da12f12 5448 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5449
a90ef4bf 5450@endif binutils
2a4cbe27 5451
a90ef4bf
JM
5452.PHONY: install-strip-binutils maybe-install-strip-binutils
5453maybe-install-strip-binutils:
5454@if binutils
5455maybe-install-strip-binutils: install-strip-binutils
9b980aa1 5456
a90ef4bf 5457install-strip-binutils: installdirs
9b980aa1
RW
5458 @: $(MAKE); $(unstage)
5459 @r=`${PWD_COMMAND}`; export r; \
5460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5461 $(HOST_EXPORTS) \
a90ef4bf 5462 (cd $(HOST_SUBDIR)/binutils && \
9b980aa1
RW
5463 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5464
a90ef4bf 5465@endif binutils
9b980aa1 5466
56a8fe78 5467# Other targets (info, dvi, pdf, etc.)
2a4cbe27 5468
a90ef4bf
JM
5469.PHONY: maybe-info-binutils info-binutils
5470maybe-info-binutils:
5471@if binutils
5472maybe-info-binutils: info-binutils
4fa63067 5473
a90ef4bf
JM
5474info-binutils: \
5475 configure-binutils
5476 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5477 r=`${PWD_COMMAND}`; export r; \
5478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5479 $(HOST_EXPORTS) \
b813574b 5480 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5482 done; \
22121df0 5483 echo "Doing info in binutils"; \
a90ef4bf 5484 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5487 "RANLIB=$${RANLIB}" \
0c24b341 5488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5489 info) \
2a4cbe27
NN
5490 || exit 1
5491
a90ef4bf 5492@endif binutils
2a4cbe27 5493
a90ef4bf
JM
5494.PHONY: maybe-dvi-binutils dvi-binutils
5495maybe-dvi-binutils:
5496@if binutils
5497maybe-dvi-binutils: dvi-binutils
2a4cbe27 5498
a90ef4bf
JM
5499dvi-binutils: \
5500 configure-binutils
5501 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5502 r=`${PWD_COMMAND}`; export r; \
5503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5504 $(HOST_EXPORTS) \
b813574b 5505 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5507 done; \
22121df0 5508 echo "Doing dvi in binutils"; \
a90ef4bf 5509 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5512 "RANLIB=$${RANLIB}" \
0c24b341 5513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5514 dvi) \
2a4cbe27
NN
5515 || exit 1
5516
a90ef4bf 5517@endif binutils
2a4cbe27 5518
a90ef4bf
JM
5519.PHONY: maybe-pdf-binutils pdf-binutils
5520maybe-pdf-binutils:
5521@if binutils
5522maybe-pdf-binutils: pdf-binutils
56a8fe78 5523
a90ef4bf
JM
5524pdf-binutils: \
5525 configure-binutils
5526 @[ -f ./binutils/Makefile ] || exit 0; \
56a8fe78
DD
5527 r=`${PWD_COMMAND}`; export r; \
5528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5529 $(HOST_EXPORTS) \
5530 for flag in $(EXTRA_HOST_FLAGS) ; do \
5531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5532 done; \
22121df0 5533 echo "Doing pdf in binutils"; \
a90ef4bf 5534 (cd $(HOST_SUBDIR)/binutils && \
56a8fe78
DD
5535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5537 "RANLIB=$${RANLIB}" \
0c24b341 5538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
5539 pdf) \
5540 || exit 1
5541
a90ef4bf 5542@endif binutils
56a8fe78 5543
a90ef4bf
JM
5544.PHONY: maybe-html-binutils html-binutils
5545maybe-html-binutils:
5546@if binutils
5547maybe-html-binutils: html-binutils
6d389afc 5548
a90ef4bf
JM
5549html-binutils: \
5550 configure-binutils
5551 @[ -f ./binutils/Makefile ] || exit 0; \
6d389afc
MS
5552 r=`${PWD_COMMAND}`; export r; \
5553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5554 $(HOST_EXPORTS) \
5555 for flag in $(EXTRA_HOST_FLAGS) ; do \
5556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5557 done; \
22121df0 5558 echo "Doing html in binutils"; \
a90ef4bf 5559 (cd $(HOST_SUBDIR)/binutils && \
6d389afc
MS
5560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5562 "RANLIB=$${RANLIB}" \
0c24b341 5563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
5564 html) \
5565 || exit 1
5566
a90ef4bf 5567@endif binutils
6d389afc 5568
a90ef4bf
JM
5569.PHONY: maybe-TAGS-binutils TAGS-binutils
5570maybe-TAGS-binutils:
5571@if binutils
5572maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 5573
a90ef4bf
JM
5574TAGS-binutils: \
5575 configure-binutils
5576 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5577 r=`${PWD_COMMAND}`; export r; \
5578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5579 $(HOST_EXPORTS) \
b813574b 5580 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5582 done; \
22121df0 5583 echo "Doing TAGS in binutils"; \
a90ef4bf 5584 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5587 "RANLIB=$${RANLIB}" \
0c24b341 5588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5589 TAGS) \
2a4cbe27
NN
5590 || exit 1
5591
a90ef4bf 5592@endif binutils
2a4cbe27 5593
a90ef4bf
JM
5594.PHONY: maybe-install-info-binutils install-info-binutils
5595maybe-install-info-binutils:
5596@if binutils
5597maybe-install-info-binutils: install-info-binutils
2a4cbe27 5598
a90ef4bf
JM
5599install-info-binutils: \
5600 configure-binutils \
5601 info-binutils
5602 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5603 r=`${PWD_COMMAND}`; export r; \
5604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5605 $(HOST_EXPORTS) \
b813574b 5606 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5608 done; \
22121df0 5609 echo "Doing install-info in binutils"; \
a90ef4bf 5610 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5613 "RANLIB=$${RANLIB}" \
0c24b341 5614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5615 install-info) \
2a4cbe27
NN
5616 || exit 1
5617
a90ef4bf 5618@endif binutils
2a4cbe27 5619
a90ef4bf
JM
5620.PHONY: maybe-install-pdf-binutils install-pdf-binutils
5621maybe-install-pdf-binutils:
5622@if binutils
5623maybe-install-pdf-binutils: install-pdf-binutils
a3ca38d2 5624
a90ef4bf
JM
5625install-pdf-binutils: \
5626 configure-binutils \
5627 pdf-binutils
5628 @[ -f ./binutils/Makefile ] || exit 0; \
a3ca38d2
DD
5629 r=`${PWD_COMMAND}`; export r; \
5630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5631 $(HOST_EXPORTS) \
5632 for flag in $(EXTRA_HOST_FLAGS) ; do \
5633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5634 done; \
22121df0 5635 echo "Doing install-pdf in binutils"; \
a90ef4bf 5636 (cd $(HOST_SUBDIR)/binutils && \
a3ca38d2
DD
5637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5639 "RANLIB=$${RANLIB}" \
0c24b341 5640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
5641 install-pdf) \
5642 || exit 1
5643
a90ef4bf 5644@endif binutils
a3ca38d2 5645
a90ef4bf
JM
5646.PHONY: maybe-install-html-binutils install-html-binutils
5647maybe-install-html-binutils:
5648@if binutils
5649maybe-install-html-binutils: install-html-binutils
108a6f8e 5650
a90ef4bf
JM
5651install-html-binutils: \
5652 configure-binutils \
5653 html-binutils
5654 @[ -f ./binutils/Makefile ] || exit 0; \
108a6f8e
CD
5655 r=`${PWD_COMMAND}`; export r; \
5656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5657 $(HOST_EXPORTS) \
5658 for flag in $(EXTRA_HOST_FLAGS) ; do \
5659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5660 done; \
22121df0 5661 echo "Doing install-html in binutils"; \
a90ef4bf 5662 (cd $(HOST_SUBDIR)/binutils && \
108a6f8e
CD
5663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5665 "RANLIB=$${RANLIB}" \
0c24b341 5666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
5667 install-html) \
5668 || exit 1
5669
a90ef4bf 5670@endif binutils
108a6f8e 5671
a90ef4bf
JM
5672.PHONY: maybe-installcheck-binutils installcheck-binutils
5673maybe-installcheck-binutils:
5674@if binutils
5675maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 5676
a90ef4bf
JM
5677installcheck-binutils: \
5678 configure-binutils
5679 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5680 r=`${PWD_COMMAND}`; export r; \
5681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5682 $(HOST_EXPORTS) \
b813574b 5683 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5685 done; \
22121df0 5686 echo "Doing installcheck in binutils"; \
a90ef4bf 5687 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5690 "RANLIB=$${RANLIB}" \
0c24b341 5691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5692 installcheck) \
2a4cbe27
NN
5693 || exit 1
5694
a90ef4bf 5695@endif binutils
2a4cbe27 5696
a90ef4bf
JM
5697.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
5698maybe-mostlyclean-binutils:
5699@if binutils
5700maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 5701
a90ef4bf
JM
5702mostlyclean-binutils:
5703 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5704 r=`${PWD_COMMAND}`; export r; \
5705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5706 $(HOST_EXPORTS) \
b813574b 5707 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5709 done; \
22121df0 5710 echo "Doing mostlyclean in binutils"; \
a90ef4bf 5711 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5714 "RANLIB=$${RANLIB}" \
0c24b341 5715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5716 mostlyclean) \
2a4cbe27
NN
5717 || exit 1
5718
a90ef4bf 5719@endif binutils
2a4cbe27 5720
a90ef4bf
JM
5721.PHONY: maybe-clean-binutils clean-binutils
5722maybe-clean-binutils:
5723@if binutils
5724maybe-clean-binutils: clean-binutils
2a4cbe27 5725
a90ef4bf
JM
5726clean-binutils:
5727 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5728 r=`${PWD_COMMAND}`; export r; \
5729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5730 $(HOST_EXPORTS) \
b813574b 5731 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5733 done; \
22121df0 5734 echo "Doing clean in binutils"; \
a90ef4bf 5735 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5738 "RANLIB=$${RANLIB}" \
0c24b341 5739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5740 clean) \
2a4cbe27
NN
5741 || exit 1
5742
a90ef4bf 5743@endif binutils
2a4cbe27 5744
a90ef4bf
JM
5745.PHONY: maybe-distclean-binutils distclean-binutils
5746maybe-distclean-binutils:
5747@if binutils
5748maybe-distclean-binutils: distclean-binutils
2a4cbe27 5749
a90ef4bf
JM
5750distclean-binutils:
5751 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5752 r=`${PWD_COMMAND}`; export r; \
5753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5754 $(HOST_EXPORTS) \
b813574b 5755 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5757 done; \
22121df0 5758 echo "Doing distclean in binutils"; \
a90ef4bf 5759 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5762 "RANLIB=$${RANLIB}" \
0c24b341 5763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5764 distclean) \
2a4cbe27
NN
5765 || exit 1
5766
a90ef4bf 5767@endif binutils
2a4cbe27 5768
a90ef4bf
JM
5769.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
5770maybe-maintainer-clean-binutils:
5771@if binutils
5772maybe-maintainer-clean-binutils: maintainer-clean-binutils
a2592b1b 5773
a90ef4bf
JM
5774maintainer-clean-binutils:
5775 @[ -f ./binutils/Makefile ] || exit 0; \
a2592b1b
DD
5776 r=`${PWD_COMMAND}`; export r; \
5777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5778 $(HOST_EXPORTS) \
b813574b 5779 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
5780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5781 done; \
22121df0 5782 echo "Doing maintainer-clean in binutils"; \
a90ef4bf 5783 (cd $(HOST_SUBDIR)/binutils && \
a2592b1b
DD
5784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5786 "RANLIB=$${RANLIB}" \
0c24b341 5787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5788 maintainer-clean) \
a2592b1b
DD
5789 || exit 1
5790
a90ef4bf 5791@endif binutils
a2592b1b 5792
2a4cbe27 5793
a7254363 5794
a90ef4bf
JM
5795.PHONY: configure-bison maybe-configure-bison
5796maybe-configure-bison:
4f0ef2d8 5797@if gcc-bootstrap
a90ef4bf 5798configure-bison: stage_current
4f0ef2d8 5799@endif gcc-bootstrap
a90ef4bf
JM
5800@if bison
5801maybe-configure-bison: configure-bison
5802configure-bison:
5803 @: $(MAKE); $(unstage)
c52c6897
PB
5804 @r=`${PWD_COMMAND}`; export r; \
5805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 5806 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
22121df0 5807 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison; \
1f53ca9a 5808 $(HOST_EXPORTS) \
a90ef4bf
JM
5809 echo Configuring in $(HOST_SUBDIR)/bison; \
5810 cd "$(HOST_SUBDIR)/bison" || exit 1; \
4fa63067 5811 case $(srcdir) in \
b00612cc 5812 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5813 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
b00612cc 5814 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5815 esac; \
1b6c0831
L
5816 module_srcdir=bison; \
5817 $(SHELL) \
5818 $$s/$$module_srcdir/configure \
5819 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5820 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5821 --target=${target_alias} \
4fa63067 5822 || exit 1
a90ef4bf 5823@endif bison
2a4cbe27 5824
a7254363
PB
5825
5826
d545f33b 5827
8520c408 5828
a90ef4bf
JM
5829.PHONY: all-bison maybe-all-bison
5830maybe-all-bison:
5831@if gcc-bootstrap
5832all-bison: stage_current
5833@endif gcc-bootstrap
5834@if bison
5835TARGET-bison=all
5836maybe-all-bison: all-bison
5837all-bison: configure-bison
5838 @: $(MAKE); $(unstage)
c52c6897
PB
5839 @r=`${PWD_COMMAND}`; export r; \
5840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5841 $(HOST_EXPORTS) \
5842 (cd $(HOST_SUBDIR)/bison && \
b3676d82 5843 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5844 $(TARGET-bison))
5845@endif bison
8520c408 5846
d545f33b 5847
d545f33b 5848
d545f33b 5849
a90ef4bf
JM
5850.PHONY: check-bison maybe-check-bison
5851maybe-check-bison:
5852@if bison
5853maybe-check-bison: check-bison
d545f33b 5854
a90ef4bf
JM
5855# This module is only tested in a native toolchain.
5856check-bison:
5857 @: $(MAKE); $(unstage)
22121df0 5858 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
5859 r=`${PWD_COMMAND}`; export r; \
5860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5861 $(HOST_EXPORTS) \
a90ef4bf 5862 (cd $(HOST_SUBDIR)/bison && \
f91ca6bc 5863 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 5864 fi
d545f33b 5865
a90ef4bf 5866@endif bison
d545f33b 5867
a90ef4bf
JM
5868.PHONY: install-bison maybe-install-bison
5869maybe-install-bison:
5870@if bison
5871maybe-install-bison: install-bison
d545f33b 5872
a90ef4bf
JM
5873install-bison: installdirs
5874 @: $(MAKE); $(unstage)
c52c6897 5875 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5877 $(HOST_EXPORTS) \
5878 (cd $(HOST_SUBDIR)/bison && \
5879 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5880
a90ef4bf 5881@endif bison
a7254363 5882
a90ef4bf
JM
5883.PHONY: install-strip-bison maybe-install-strip-bison
5884maybe-install-strip-bison:
5885@if bison
5886maybe-install-strip-bison: install-strip-bison
d545f33b 5887
a90ef4bf
JM
5888install-strip-bison: installdirs
5889 @: $(MAKE); $(unstage)
d545f33b
PB
5890 @r=`${PWD_COMMAND}`; export r; \
5891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5892 $(HOST_EXPORTS) \
5893 (cd $(HOST_SUBDIR)/bison && \
5894 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 5895
a90ef4bf 5896@endif bison
d545f33b 5897
a90ef4bf 5898# Other targets (info, dvi, pdf, etc.)
d545f33b 5899
a90ef4bf
JM
5900.PHONY: maybe-info-bison info-bison
5901maybe-info-bison:
5902@if bison
5903maybe-info-bison: info-bison
5904
5905info-bison: \
5906 configure-bison
5907 @: $(MAKE); $(unstage)
5908 @[ -f ./bison/Makefile ] || exit 0; \
5909 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5911 $(HOST_EXPORTS) \
a90ef4bf
JM
5912 for flag in $(EXTRA_HOST_FLAGS) ; do \
5913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5914 done; \
22121df0 5915 echo "Doing info in bison"; \
a90ef4bf
JM
5916 (cd $(HOST_SUBDIR)/bison && \
5917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5919 "RANLIB=$${RANLIB}" \
5920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5921 info) \
5922 || exit 1
d545f33b 5923
a90ef4bf 5924@endif bison
d545f33b 5925
a90ef4bf
JM
5926.PHONY: maybe-dvi-bison dvi-bison
5927maybe-dvi-bison:
5928@if bison
5929maybe-dvi-bison: dvi-bison
d545f33b 5930
a90ef4bf
JM
5931dvi-bison: \
5932 configure-bison
5933 @: $(MAKE); $(unstage)
5934 @[ -f ./bison/Makefile ] || exit 0; \
5935 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5937 $(HOST_EXPORTS) \
a90ef4bf
JM
5938 for flag in $(EXTRA_HOST_FLAGS) ; do \
5939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5940 done; \
22121df0 5941 echo "Doing dvi in bison"; \
a90ef4bf
JM
5942 (cd $(HOST_SUBDIR)/bison && \
5943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5945 "RANLIB=$${RANLIB}" \
5946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5947 dvi) \
5948 || exit 1
d545f33b 5949
a90ef4bf 5950@endif bison
d545f33b 5951
a90ef4bf
JM
5952.PHONY: maybe-pdf-bison pdf-bison
5953maybe-pdf-bison:
5954@if bison
5955maybe-pdf-bison: pdf-bison
d545f33b 5956
a90ef4bf
JM
5957pdf-bison: \
5958 configure-bison
5959 @: $(MAKE); $(unstage)
5960 @[ -f ./bison/Makefile ] || exit 0; \
5961 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5963 $(HOST_EXPORTS) \
a90ef4bf
JM
5964 for flag in $(EXTRA_HOST_FLAGS) ; do \
5965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5966 done; \
22121df0 5967 echo "Doing pdf in bison"; \
a90ef4bf
JM
5968 (cd $(HOST_SUBDIR)/bison && \
5969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5971 "RANLIB=$${RANLIB}" \
5972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5973 pdf) \
5974 || exit 1
d545f33b 5975
a90ef4bf 5976@endif bison
d545f33b 5977
a90ef4bf
JM
5978.PHONY: maybe-html-bison html-bison
5979maybe-html-bison:
5980@if bison
5981maybe-html-bison: html-bison
d545f33b 5982
a90ef4bf
JM
5983html-bison: \
5984 configure-bison
5985 @: $(MAKE); $(unstage)
5986 @[ -f ./bison/Makefile ] || exit 0; \
5987 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5989 $(HOST_EXPORTS) \
a90ef4bf
JM
5990 for flag in $(EXTRA_HOST_FLAGS) ; do \
5991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5992 done; \
22121df0 5993 echo "Doing html in bison"; \
a90ef4bf
JM
5994 (cd $(HOST_SUBDIR)/bison && \
5995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5997 "RANLIB=$${RANLIB}" \
5998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5999 html) \
6000 || exit 1
d545f33b 6001
a90ef4bf 6002@endif bison
2a4cbe27 6003
a90ef4bf
JM
6004.PHONY: maybe-TAGS-bison TAGS-bison
6005maybe-TAGS-bison:
6006@if bison
6007maybe-TAGS-bison: TAGS-bison
2a4cbe27 6008
a90ef4bf
JM
6009TAGS-bison: \
6010 configure-bison
0aed8855 6011 @: $(MAKE); $(unstage)
a90ef4bf
JM
6012 @[ -f ./bison/Makefile ] || exit 0; \
6013 r=`${PWD_COMMAND}`; export r; \
4fa63067 6014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6015 $(HOST_EXPORTS) \
a90ef4bf
JM
6016 for flag in $(EXTRA_HOST_FLAGS) ; do \
6017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6018 done; \
22121df0 6019 echo "Doing TAGS in bison"; \
a90ef4bf
JM
6020 (cd $(HOST_SUBDIR)/bison && \
6021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6023 "RANLIB=$${RANLIB}" \
6024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6025 TAGS) \
6026 || exit 1
4fa63067 6027
a90ef4bf 6028@endif bison
4fa63067 6029
a90ef4bf
JM
6030.PHONY: maybe-install-info-bison install-info-bison
6031maybe-install-info-bison:
6032@if bison
6033maybe-install-info-bison: install-info-bison
9b980aa1 6034
a90ef4bf
JM
6035install-info-bison: \
6036 configure-bison \
6037 info-bison
9b980aa1 6038 @: $(MAKE); $(unstage)
a90ef4bf 6039 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6040 r=`${PWD_COMMAND}`; export r; \
6041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6042 $(HOST_EXPORTS) \
b813574b 6043 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6045 done; \
22121df0 6046 echo "Doing install-info in bison"; \
a90ef4bf 6047 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6050 "RANLIB=$${RANLIB}" \
0c24b341 6051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6052 install-info) \
2a4cbe27
NN
6053 || exit 1
6054
a90ef4bf 6055@endif bison
2a4cbe27 6056
a90ef4bf
JM
6057.PHONY: maybe-install-pdf-bison install-pdf-bison
6058maybe-install-pdf-bison:
6059@if bison
6060maybe-install-pdf-bison: install-pdf-bison
2a4cbe27 6061
a90ef4bf
JM
6062install-pdf-bison: \
6063 configure-bison \
6064 pdf-bison
6065 @: $(MAKE); $(unstage)
6066 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6067 r=`${PWD_COMMAND}`; export r; \
6068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6069 $(HOST_EXPORTS) \
b813574b 6070 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6072 done; \
22121df0 6073 echo "Doing install-pdf in bison"; \
a90ef4bf 6074 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6077 "RANLIB=$${RANLIB}" \
0c24b341 6078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6079 install-pdf) \
2a4cbe27
NN
6080 || exit 1
6081
a90ef4bf 6082@endif bison
2a4cbe27 6083
a90ef4bf
JM
6084.PHONY: maybe-install-html-bison install-html-bison
6085maybe-install-html-bison:
6086@if bison
6087maybe-install-html-bison: install-html-bison
56a8fe78 6088
a90ef4bf
JM
6089install-html-bison: \
6090 configure-bison \
6091 html-bison
6092 @: $(MAKE); $(unstage)
6093 @[ -f ./bison/Makefile ] || exit 0; \
56a8fe78
DD
6094 r=`${PWD_COMMAND}`; export r; \
6095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6096 $(HOST_EXPORTS) \
6097 for flag in $(EXTRA_HOST_FLAGS) ; do \
6098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6099 done; \
22121df0 6100 echo "Doing install-html in bison"; \
a90ef4bf 6101 (cd $(HOST_SUBDIR)/bison && \
56a8fe78
DD
6102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6104 "RANLIB=$${RANLIB}" \
0c24b341 6105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6106 install-html) \
56a8fe78
DD
6107 || exit 1
6108
a90ef4bf 6109@endif bison
56a8fe78 6110
a90ef4bf
JM
6111.PHONY: maybe-installcheck-bison installcheck-bison
6112maybe-installcheck-bison:
6113@if bison
6114maybe-installcheck-bison: installcheck-bison
6d389afc 6115
a90ef4bf
JM
6116installcheck-bison: \
6117 configure-bison
6118 @: $(MAKE); $(unstage)
6119 @[ -f ./bison/Makefile ] || exit 0; \
6d389afc
MS
6120 r=`${PWD_COMMAND}`; export r; \
6121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6122 $(HOST_EXPORTS) \
6123 for flag in $(EXTRA_HOST_FLAGS) ; do \
6124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6125 done; \
22121df0 6126 echo "Doing installcheck in bison"; \
a90ef4bf 6127 (cd $(HOST_SUBDIR)/bison && \
6d389afc
MS
6128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6130 "RANLIB=$${RANLIB}" \
0c24b341 6131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6132 installcheck) \
6d389afc
MS
6133 || exit 1
6134
a90ef4bf 6135@endif bison
6d389afc 6136
a90ef4bf
JM
6137.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6138maybe-mostlyclean-bison:
6139@if bison
6140maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 6141
a90ef4bf
JM
6142mostlyclean-bison:
6143 @: $(MAKE); $(unstage)
6144 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6145 r=`${PWD_COMMAND}`; export r; \
6146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6147 $(HOST_EXPORTS) \
b813574b 6148 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6150 done; \
22121df0 6151 echo "Doing mostlyclean in bison"; \
a90ef4bf 6152 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6155 "RANLIB=$${RANLIB}" \
0c24b341 6156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6157 mostlyclean) \
2a4cbe27
NN
6158 || exit 1
6159
a90ef4bf 6160@endif bison
2a4cbe27 6161
a90ef4bf
JM
6162.PHONY: maybe-clean-bison clean-bison
6163maybe-clean-bison:
6164@if bison
6165maybe-clean-bison: clean-bison
2a4cbe27 6166
a90ef4bf
JM
6167clean-bison:
6168 @: $(MAKE); $(unstage)
6169 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6170 r=`${PWD_COMMAND}`; export r; \
6171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6172 $(HOST_EXPORTS) \
b813574b 6173 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6175 done; \
22121df0 6176 echo "Doing clean in bison"; \
a90ef4bf 6177 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6180 "RANLIB=$${RANLIB}" \
0c24b341 6181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6182 clean) \
2a4cbe27
NN
6183 || exit 1
6184
a90ef4bf 6185@endif bison
2a4cbe27 6186
a90ef4bf
JM
6187.PHONY: maybe-distclean-bison distclean-bison
6188maybe-distclean-bison:
6189@if bison
6190maybe-distclean-bison: distclean-bison
a3ca38d2 6191
a90ef4bf
JM
6192distclean-bison:
6193 @: $(MAKE); $(unstage)
6194 @[ -f ./bison/Makefile ] || exit 0; \
a3ca38d2
DD
6195 r=`${PWD_COMMAND}`; export r; \
6196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6197 $(HOST_EXPORTS) \
6198 for flag in $(EXTRA_HOST_FLAGS) ; do \
6199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6200 done; \
22121df0 6201 echo "Doing distclean in bison"; \
a90ef4bf 6202 (cd $(HOST_SUBDIR)/bison && \
a3ca38d2
DD
6203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6205 "RANLIB=$${RANLIB}" \
0c24b341 6206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6207 distclean) \
a3ca38d2
DD
6208 || exit 1
6209
a90ef4bf 6210@endif bison
a3ca38d2 6211
a90ef4bf
JM
6212.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6213maybe-maintainer-clean-bison:
6214@if bison
6215maybe-maintainer-clean-bison: maintainer-clean-bison
108a6f8e 6216
a90ef4bf
JM
6217maintainer-clean-bison:
6218 @: $(MAKE); $(unstage)
6219 @[ -f ./bison/Makefile ] || exit 0; \
108a6f8e
CD
6220 r=`${PWD_COMMAND}`; export r; \
6221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6222 $(HOST_EXPORTS) \
6223 for flag in $(EXTRA_HOST_FLAGS) ; do \
6224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6225 done; \
22121df0 6226 echo "Doing maintainer-clean in bison"; \
a90ef4bf 6227 (cd $(HOST_SUBDIR)/bison && \
108a6f8e
CD
6228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6230 "RANLIB=$${RANLIB}" \
0c24b341 6231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6232 maintainer-clean) \
108a6f8e
CD
6233 || exit 1
6234
a90ef4bf 6235@endif bison
108a6f8e 6236
2a4cbe27 6237
a90ef4bf
JM
6238
6239.PHONY: configure-cgen maybe-configure-cgen
6240maybe-configure-cgen:
6241@if gcc-bootstrap
6242configure-cgen: stage_current
6243@endif gcc-bootstrap
6244@if cgen
6245maybe-configure-cgen: configure-cgen
6246configure-cgen:
6247 @: $(MAKE); $(unstage)
6248 @r=`${PWD_COMMAND}`; export r; \
6249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6250 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
22121df0 6251 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen; \
a90ef4bf
JM
6252 $(HOST_EXPORTS) \
6253 echo Configuring in $(HOST_SUBDIR)/cgen; \
6254 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
6255 case $(srcdir) in \
6256 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6257 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
6258 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6259 esac; \
1b6c0831
L
6260 module_srcdir=cgen; \
6261 $(SHELL) \
6262 $$s/$$module_srcdir/configure \
6263 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 6264 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6265 --target=${target_alias} \
a90ef4bf
JM
6266 || exit 1
6267@endif cgen
6268
6269
6270
6271
6272
6273.PHONY: all-cgen maybe-all-cgen
6274maybe-all-cgen:
6275@if gcc-bootstrap
6276all-cgen: stage_current
6277@endif gcc-bootstrap
6278@if cgen
6279TARGET-cgen=all
6280maybe-all-cgen: all-cgen
6281all-cgen: configure-cgen
6282 @: $(MAKE); $(unstage)
6283 @r=`${PWD_COMMAND}`; export r; \
6284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6285 $(HOST_EXPORTS) \
6286 (cd $(HOST_SUBDIR)/cgen && \
b3676d82 6287 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6288 $(TARGET-cgen))
6289@endif cgen
6290
6291
6292
6293
6294.PHONY: check-cgen maybe-check-cgen
6295maybe-check-cgen:
6296@if cgen
6297maybe-check-cgen: check-cgen
6298
6299check-cgen:
6300 @: $(MAKE); $(unstage)
6301 @r=`${PWD_COMMAND}`; export r; \
6302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6303 $(HOST_EXPORTS) \
a90ef4bf
JM
6304 (cd $(HOST_SUBDIR)/cgen && \
6305 $(MAKE) $(FLAGS_TO_PASS) check)
6306
6307@endif cgen
6308
6309.PHONY: install-cgen maybe-install-cgen
6310maybe-install-cgen:
6311@if cgen
6312maybe-install-cgen: install-cgen
6313
6314install-cgen: installdirs
6315 @: $(MAKE); $(unstage)
6316 @r=`${PWD_COMMAND}`; export r; \
6317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6318 $(HOST_EXPORTS) \
6319 (cd $(HOST_SUBDIR)/cgen && \
6320 $(MAKE) $(FLAGS_TO_PASS) install)
6321
6322@endif cgen
6323
6324.PHONY: install-strip-cgen maybe-install-strip-cgen
6325maybe-install-strip-cgen:
6326@if cgen
6327maybe-install-strip-cgen: install-strip-cgen
6328
6329install-strip-cgen: installdirs
6330 @: $(MAKE); $(unstage)
6331 @r=`${PWD_COMMAND}`; export r; \
6332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6333 $(HOST_EXPORTS) \
6334 (cd $(HOST_SUBDIR)/cgen && \
6335 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6336
6337@endif cgen
6338
6339# Other targets (info, dvi, pdf, etc.)
6340
6341.PHONY: maybe-info-cgen info-cgen
6342maybe-info-cgen:
6343@if cgen
6344maybe-info-cgen: info-cgen
6345
6346info-cgen: \
6347 configure-cgen
6348 @: $(MAKE); $(unstage)
6349 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6350 r=`${PWD_COMMAND}`; export r; \
6351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6352 $(HOST_EXPORTS) \
b813574b 6353 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6355 done; \
22121df0 6356 echo "Doing info in cgen"; \
a90ef4bf 6357 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6360 "RANLIB=$${RANLIB}" \
0c24b341 6361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6362 info) \
2a4cbe27
NN
6363 || exit 1
6364
a90ef4bf 6365@endif cgen
2a4cbe27 6366
a90ef4bf
JM
6367.PHONY: maybe-dvi-cgen dvi-cgen
6368maybe-dvi-cgen:
6369@if cgen
6370maybe-dvi-cgen: dvi-cgen
2a4cbe27 6371
a90ef4bf
JM
6372dvi-cgen: \
6373 configure-cgen
6374 @: $(MAKE); $(unstage)
6375 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6376 r=`${PWD_COMMAND}`; export r; \
6377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6378 $(HOST_EXPORTS) \
b813574b 6379 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6381 done; \
22121df0 6382 echo "Doing dvi in cgen"; \
a90ef4bf 6383 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6386 "RANLIB=$${RANLIB}" \
0c24b341 6387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6388 dvi) \
2a4cbe27
NN
6389 || exit 1
6390
a90ef4bf 6391@endif cgen
2a4cbe27 6392
a90ef4bf
JM
6393.PHONY: maybe-pdf-cgen pdf-cgen
6394maybe-pdf-cgen:
6395@if cgen
6396maybe-pdf-cgen: pdf-cgen
2a4cbe27 6397
a90ef4bf
JM
6398pdf-cgen: \
6399 configure-cgen
6400 @: $(MAKE); $(unstage)
6401 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6402 r=`${PWD_COMMAND}`; export r; \
6403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6404 $(HOST_EXPORTS) \
b813574b 6405 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6407 done; \
22121df0 6408 echo "Doing pdf in cgen"; \
a90ef4bf 6409 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6412 "RANLIB=$${RANLIB}" \
0c24b341 6413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6414 pdf) \
2a4cbe27
NN
6415 || exit 1
6416
a90ef4bf 6417@endif cgen
2a4cbe27 6418
a90ef4bf
JM
6419.PHONY: maybe-html-cgen html-cgen
6420maybe-html-cgen:
6421@if cgen
6422maybe-html-cgen: html-cgen
2a4cbe27 6423
a90ef4bf
JM
6424html-cgen: \
6425 configure-cgen
6426 @: $(MAKE); $(unstage)
6427 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6428 r=`${PWD_COMMAND}`; export r; \
6429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6430 $(HOST_EXPORTS) \
b813574b 6431 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6432 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6433 done; \
22121df0 6434 echo "Doing html in cgen"; \
a90ef4bf 6435 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6438 "RANLIB=$${RANLIB}" \
0c24b341 6439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6440 html) \
2a4cbe27
NN
6441 || exit 1
6442
a90ef4bf 6443@endif cgen
2a4cbe27 6444
a90ef4bf
JM
6445.PHONY: maybe-TAGS-cgen TAGS-cgen
6446maybe-TAGS-cgen:
6447@if cgen
6448maybe-TAGS-cgen: TAGS-cgen
2a4cbe27 6449
a90ef4bf
JM
6450TAGS-cgen: \
6451 configure-cgen
6452 @: $(MAKE); $(unstage)
6453 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6454 r=`${PWD_COMMAND}`; export r; \
6455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6456 $(HOST_EXPORTS) \
b813574b 6457 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6459 done; \
22121df0 6460 echo "Doing TAGS in cgen"; \
a90ef4bf 6461 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6464 "RANLIB=$${RANLIB}" \
0c24b341 6465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6466 TAGS) \
2a4cbe27
NN
6467 || exit 1
6468
a90ef4bf 6469@endif cgen
2a4cbe27 6470
a90ef4bf
JM
6471.PHONY: maybe-install-info-cgen install-info-cgen
6472maybe-install-info-cgen:
6473@if cgen
6474maybe-install-info-cgen: install-info-cgen
2a4cbe27 6475
a90ef4bf
JM
6476install-info-cgen: \
6477 configure-cgen \
6478 info-cgen
6479 @: $(MAKE); $(unstage)
6480 @[ -f ./cgen/Makefile ] || exit 0; \
6481 r=`${PWD_COMMAND}`; export r; \
6482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6483 $(HOST_EXPORTS) \
6484 for flag in $(EXTRA_HOST_FLAGS) ; do \
6485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6486 done; \
22121df0 6487 echo "Doing install-info in cgen"; \
a90ef4bf
JM
6488 (cd $(HOST_SUBDIR)/cgen && \
6489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6491 "RANLIB=$${RANLIB}" \
6492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6493 install-info) \
6494 || exit 1
a7254363 6495
a90ef4bf
JM
6496@endif cgen
6497
6498.PHONY: maybe-install-pdf-cgen install-pdf-cgen
6499maybe-install-pdf-cgen:
6500@if cgen
6501maybe-install-pdf-cgen: install-pdf-cgen
6502
6503install-pdf-cgen: \
6504 configure-cgen \
6505 pdf-cgen
6506 @: $(MAKE); $(unstage)
6507 @[ -f ./cgen/Makefile ] || exit 0; \
6508 r=`${PWD_COMMAND}`; export r; \
c52c6897 6509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6510 $(HOST_EXPORTS) \
6511 for flag in $(EXTRA_HOST_FLAGS) ; do \
6512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6513 done; \
22121df0 6514 echo "Doing install-pdf in cgen"; \
a90ef4bf
JM
6515 (cd $(HOST_SUBDIR)/cgen && \
6516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6518 "RANLIB=$${RANLIB}" \
6519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6520 install-pdf) \
2a4cbe27
NN
6521 || exit 1
6522
a90ef4bf 6523@endif cgen
a7254363 6524
a90ef4bf
JM
6525.PHONY: maybe-install-html-cgen install-html-cgen
6526maybe-install-html-cgen:
6527@if cgen
6528maybe-install-html-cgen: install-html-cgen
a7254363 6529
a90ef4bf
JM
6530install-html-cgen: \
6531 configure-cgen \
6532 html-cgen
6533 @: $(MAKE); $(unstage)
6534 @[ -f ./cgen/Makefile ] || exit 0; \
6535 r=`${PWD_COMMAND}`; export r; \
c52c6897 6536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6537 $(HOST_EXPORTS) \
a90ef4bf
JM
6538 for flag in $(EXTRA_HOST_FLAGS) ; do \
6539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6540 done; \
22121df0 6541 echo "Doing install-html in cgen"; \
a90ef4bf
JM
6542 (cd $(HOST_SUBDIR)/cgen && \
6543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6545 "RANLIB=$${RANLIB}" \
6546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6547 install-html) \
6548 || exit 1
d545f33b 6549
a90ef4bf
JM
6550@endif cgen
6551
6552.PHONY: maybe-installcheck-cgen installcheck-cgen
6553maybe-installcheck-cgen:
6554@if cgen
6555maybe-installcheck-cgen: installcheck-cgen
6556
6557installcheck-cgen: \
6558 configure-cgen
6559 @: $(MAKE); $(unstage)
6560 @[ -f ./cgen/Makefile ] || exit 0; \
6561 r=`${PWD_COMMAND}`; export r; \
c52c6897 6562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6563 $(HOST_EXPORTS) \
a90ef4bf
JM
6564 for flag in $(EXTRA_HOST_FLAGS) ; do \
6565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6566 done; \
22121df0 6567 echo "Doing installcheck in cgen"; \
a90ef4bf
JM
6568 (cd $(HOST_SUBDIR)/cgen && \
6569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6571 "RANLIB=$${RANLIB}" \
6572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6573 installcheck) \
6574 || exit 1
8520c408 6575
a90ef4bf
JM
6576@endif cgen
6577
6578.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
6579maybe-mostlyclean-cgen:
6580@if cgen
6581maybe-mostlyclean-cgen: mostlyclean-cgen
6582
6583mostlyclean-cgen:
6584 @: $(MAKE); $(unstage)
6585 @[ -f ./cgen/Makefile ] || exit 0; \
6586 r=`${PWD_COMMAND}`; export r; \
c52c6897 6587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6588 $(HOST_EXPORTS) \
a90ef4bf
JM
6589 for flag in $(EXTRA_HOST_FLAGS) ; do \
6590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6591 done; \
22121df0 6592 echo "Doing mostlyclean in cgen"; \
a90ef4bf
JM
6593 (cd $(HOST_SUBDIR)/cgen && \
6594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6596 "RANLIB=$${RANLIB}" \
6597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6598 mostlyclean) \
6599 || exit 1
8520c408 6600
a90ef4bf
JM
6601@endif cgen
6602
6603.PHONY: maybe-clean-cgen clean-cgen
6604maybe-clean-cgen:
6605@if cgen
6606maybe-clean-cgen: clean-cgen
6607
6608clean-cgen:
6609 @: $(MAKE); $(unstage)
6610 @[ -f ./cgen/Makefile ] || exit 0; \
6611 r=`${PWD_COMMAND}`; export r; \
c52c6897 6612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6613 $(HOST_EXPORTS) \
a90ef4bf
JM
6614 for flag in $(EXTRA_HOST_FLAGS) ; do \
6615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6616 done; \
22121df0 6617 echo "Doing clean in cgen"; \
a90ef4bf
JM
6618 (cd $(HOST_SUBDIR)/cgen && \
6619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6621 "RANLIB=$${RANLIB}" \
6622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6623 clean) \
6624 || exit 1
d545f33b 6625
a90ef4bf
JM
6626@endif cgen
6627
6628.PHONY: maybe-distclean-cgen distclean-cgen
6629maybe-distclean-cgen:
6630@if cgen
6631maybe-distclean-cgen: distclean-cgen
6632
6633distclean-cgen:
6634 @: $(MAKE); $(unstage)
6635 @[ -f ./cgen/Makefile ] || exit 0; \
6636 r=`${PWD_COMMAND}`; export r; \
c52c6897 6637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6638 $(HOST_EXPORTS) \
a90ef4bf
JM
6639 for flag in $(EXTRA_HOST_FLAGS) ; do \
6640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6641 done; \
22121df0 6642 echo "Doing distclean in cgen"; \
a90ef4bf
JM
6643 (cd $(HOST_SUBDIR)/cgen && \
6644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6646 "RANLIB=$${RANLIB}" \
6647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6648 distclean) \
6649 || exit 1
d545f33b 6650
a90ef4bf
JM
6651@endif cgen
6652
6653.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
6654maybe-maintainer-clean-cgen:
6655@if cgen
6656maybe-maintainer-clean-cgen: maintainer-clean-cgen
6657
6658maintainer-clean-cgen:
6659 @: $(MAKE); $(unstage)
6660 @[ -f ./cgen/Makefile ] || exit 0; \
6661 r=`${PWD_COMMAND}`; export r; \
c52c6897 6662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6663 $(HOST_EXPORTS) \
a90ef4bf
JM
6664 for flag in $(EXTRA_HOST_FLAGS) ; do \
6665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6666 done; \
22121df0 6667 echo "Doing maintainer-clean in cgen"; \
a90ef4bf
JM
6668 (cd $(HOST_SUBDIR)/cgen && \
6669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6671 "RANLIB=$${RANLIB}" \
6672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6673 maintainer-clean) \
6674 || exit 1
6675
6676@endif cgen
6677
6678
6679
6680.PHONY: configure-dejagnu maybe-configure-dejagnu
6681maybe-configure-dejagnu:
6682@if gcc-bootstrap
6683configure-dejagnu: stage_current
6684@endif gcc-bootstrap
6685@if dejagnu
6686maybe-configure-dejagnu: configure-dejagnu
6687configure-dejagnu:
6688 @: $(MAKE); $(unstage)
6689 @r=`${PWD_COMMAND}`; export r; \
6690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6691 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
22121df0 6692 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu; \
a90ef4bf
JM
6693 $(HOST_EXPORTS) \
6694 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
6695 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
d545f33b
PB
6696 case $(srcdir) in \
6697 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6698 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
d545f33b
PB
6699 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6700 esac; \
1b6c0831
L
6701 module_srcdir=dejagnu; \
6702 $(SHELL) \
6703 $$s/$$module_srcdir/configure \
6704 --srcdir=$${topdir}/$$module_srcdir \
4b900473 6705 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6706 --target=${target_alias} \
a90ef4bf
JM
6707 || exit 1
6708@endif dejagnu
d545f33b
PB
6709
6710
6711
6712
6713
a90ef4bf
JM
6714.PHONY: all-dejagnu maybe-all-dejagnu
6715maybe-all-dejagnu:
4f0ef2d8 6716@if gcc-bootstrap
a90ef4bf 6717all-dejagnu: stage_current
4f0ef2d8 6718@endif gcc-bootstrap
a90ef4bf
JM
6719@if dejagnu
6720TARGET-dejagnu=all
6721maybe-all-dejagnu: all-dejagnu
6722all-dejagnu: configure-dejagnu
6723 @: $(MAKE); $(unstage)
c52c6897 6724 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 6726 $(HOST_EXPORTS) \
a90ef4bf 6727 (cd $(HOST_SUBDIR)/dejagnu && \
b3676d82 6728 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6729 $(TARGET-dejagnu))
6730@endif dejagnu
4fa63067 6731
a7254363 6732
4fa63067 6733
a90ef4bf
JM
6734
6735.PHONY: check-dejagnu maybe-check-dejagnu
6736maybe-check-dejagnu:
6737@if dejagnu
6738maybe-check-dejagnu: check-dejagnu
6739
6740check-dejagnu:
6741 @: $(MAKE); $(unstage)
4fa63067
NN
6742 @r=`${PWD_COMMAND}`; export r; \
6743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6744 $(HOST_EXPORTS) \
a90ef4bf
JM
6745 (cd $(HOST_SUBDIR)/dejagnu && \
6746 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 6747
a90ef4bf 6748@endif dejagnu
2a4cbe27 6749
a90ef4bf
JM
6750.PHONY: install-dejagnu maybe-install-dejagnu
6751maybe-install-dejagnu:
6752@if dejagnu
6753maybe-install-dejagnu: install-dejagnu
2a4cbe27 6754
a90ef4bf
JM
6755install-dejagnu: installdirs
6756 @: $(MAKE); $(unstage)
4fa63067 6757 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6759 $(HOST_EXPORTS) \
a90ef4bf
JM
6760 (cd $(HOST_SUBDIR)/dejagnu && \
6761 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6762
a90ef4bf 6763@endif dejagnu
d545f33b 6764
a90ef4bf
JM
6765.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
6766maybe-install-strip-dejagnu:
6767@if dejagnu
6768maybe-install-strip-dejagnu: install-strip-dejagnu
9b980aa1 6769
a90ef4bf 6770install-strip-dejagnu: installdirs
9b980aa1
RW
6771 @: $(MAKE); $(unstage)
6772 @r=`${PWD_COMMAND}`; export r; \
6773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6774 $(HOST_EXPORTS) \
a90ef4bf 6775 (cd $(HOST_SUBDIR)/dejagnu && \
9b980aa1
RW
6776 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6777
a90ef4bf 6778@endif dejagnu
9b980aa1 6779
56a8fe78 6780# Other targets (info, dvi, pdf, etc.)
d545f33b 6781
a90ef4bf
JM
6782.PHONY: maybe-info-dejagnu info-dejagnu
6783maybe-info-dejagnu:
6784@if dejagnu
6785maybe-info-dejagnu: info-dejagnu
d545f33b 6786
a90ef4bf
JM
6787info-dejagnu: \
6788 configure-dejagnu
6789 @: $(MAKE); $(unstage)
6790 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6791 r=`${PWD_COMMAND}`; export r; \
6792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6793 $(HOST_EXPORTS) \
6794 for flag in $(EXTRA_HOST_FLAGS) ; do \
6795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6796 done; \
22121df0 6797 echo "Doing info in dejagnu"; \
a90ef4bf 6798 (cd $(HOST_SUBDIR)/dejagnu && \
d545f33b
PB
6799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6801 "RANLIB=$${RANLIB}" \
0c24b341 6802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d545f33b
PB
6803 info) \
6804 || exit 1
6805
a90ef4bf 6806@endif dejagnu
d545f33b 6807
a90ef4bf
JM
6808.PHONY: maybe-dvi-dejagnu dvi-dejagnu
6809maybe-dvi-dejagnu:
6810@if dejagnu
6811maybe-dvi-dejagnu: dvi-dejagnu
d545f33b 6812
a90ef4bf
JM
6813dvi-dejagnu: \
6814 configure-dejagnu
6815 @: $(MAKE); $(unstage)
6816 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6817 r=`${PWD_COMMAND}`; export r; \
6818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6819 $(HOST_EXPORTS) \
6820 for flag in $(EXTRA_HOST_FLAGS) ; do \
6821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6822 done; \
22121df0 6823 echo "Doing dvi in dejagnu"; \
a90ef4bf 6824 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6827 "RANLIB=$${RANLIB}" \
0c24b341 6828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6829 dvi) \
2a4cbe27
NN
6830 || exit 1
6831
a90ef4bf 6832@endif dejagnu
2a4cbe27 6833
a90ef4bf
JM
6834.PHONY: maybe-pdf-dejagnu pdf-dejagnu
6835maybe-pdf-dejagnu:
6836@if dejagnu
6837maybe-pdf-dejagnu: pdf-dejagnu
56a8fe78 6838
a90ef4bf
JM
6839pdf-dejagnu: \
6840 configure-dejagnu
6841 @: $(MAKE); $(unstage)
6842 @[ -f ./dejagnu/Makefile ] || exit 0; \
56a8fe78
DD
6843 r=`${PWD_COMMAND}`; export r; \
6844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6845 $(HOST_EXPORTS) \
6846 for flag in $(EXTRA_HOST_FLAGS) ; do \
6847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6848 done; \
22121df0 6849 echo "Doing pdf in dejagnu"; \
a90ef4bf 6850 (cd $(HOST_SUBDIR)/dejagnu && \
56a8fe78
DD
6851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6853 "RANLIB=$${RANLIB}" \
0c24b341 6854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
6855 pdf) \
6856 || exit 1
6857
a90ef4bf 6858@endif dejagnu
56a8fe78 6859
a90ef4bf
JM
6860.PHONY: maybe-html-dejagnu html-dejagnu
6861maybe-html-dejagnu:
6862@if dejagnu
6863maybe-html-dejagnu: html-dejagnu
6d389afc 6864
a90ef4bf
JM
6865html-dejagnu: \
6866 configure-dejagnu
6867 @: $(MAKE); $(unstage)
6868 @[ -f ./dejagnu/Makefile ] || exit 0; \
6d389afc
MS
6869 r=`${PWD_COMMAND}`; export r; \
6870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6871 $(HOST_EXPORTS) \
6872 for flag in $(EXTRA_HOST_FLAGS) ; do \
6873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6874 done; \
22121df0 6875 echo "Doing html in dejagnu"; \
a90ef4bf 6876 (cd $(HOST_SUBDIR)/dejagnu && \
6d389afc
MS
6877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6879 "RANLIB=$${RANLIB}" \
0c24b341 6880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
6881 html) \
6882 || exit 1
6883
a90ef4bf 6884@endif dejagnu
6d389afc 6885
a90ef4bf
JM
6886.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
6887maybe-TAGS-dejagnu:
6888@if dejagnu
6889maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 6890
a90ef4bf
JM
6891TAGS-dejagnu: \
6892 configure-dejagnu
6893 @: $(MAKE); $(unstage)
6894 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6895 r=`${PWD_COMMAND}`; export r; \
6896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6897 $(HOST_EXPORTS) \
b813574b 6898 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6900 done; \
22121df0 6901 echo "Doing TAGS in dejagnu"; \
a90ef4bf 6902 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6905 "RANLIB=$${RANLIB}" \
0c24b341 6906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6907 TAGS) \
2a4cbe27
NN
6908 || exit 1
6909
a90ef4bf 6910@endif dejagnu
2a4cbe27 6911
a90ef4bf
JM
6912.PHONY: maybe-install-info-dejagnu install-info-dejagnu
6913maybe-install-info-dejagnu:
6914@if dejagnu
6915maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 6916
a90ef4bf
JM
6917install-info-dejagnu: \
6918 configure-dejagnu \
6919 info-dejagnu
6920 @: $(MAKE); $(unstage)
6921 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6922 r=`${PWD_COMMAND}`; export r; \
6923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6924 $(HOST_EXPORTS) \
b813574b 6925 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6927 done; \
22121df0 6928 echo "Doing install-info in dejagnu"; \
a90ef4bf 6929 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6932 "RANLIB=$${RANLIB}" \
0c24b341 6933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6934 install-info) \
2a4cbe27
NN
6935 || exit 1
6936
a90ef4bf 6937@endif dejagnu
2a4cbe27 6938
a90ef4bf
JM
6939.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
6940maybe-install-pdf-dejagnu:
6941@if dejagnu
6942maybe-install-pdf-dejagnu: install-pdf-dejagnu
a3ca38d2 6943
a90ef4bf
JM
6944install-pdf-dejagnu: \
6945 configure-dejagnu \
6946 pdf-dejagnu
6947 @: $(MAKE); $(unstage)
6948 @[ -f ./dejagnu/Makefile ] || exit 0; \
a3ca38d2
DD
6949 r=`${PWD_COMMAND}`; export r; \
6950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6951 $(HOST_EXPORTS) \
6952 for flag in $(EXTRA_HOST_FLAGS) ; do \
6953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6954 done; \
22121df0 6955 echo "Doing install-pdf in dejagnu"; \
a90ef4bf 6956 (cd $(HOST_SUBDIR)/dejagnu && \
a3ca38d2
DD
6957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6959 "RANLIB=$${RANLIB}" \
0c24b341 6960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
6961 install-pdf) \
6962 || exit 1
6963
a90ef4bf 6964@endif dejagnu
a3ca38d2 6965
a90ef4bf
JM
6966.PHONY: maybe-install-html-dejagnu install-html-dejagnu
6967maybe-install-html-dejagnu:
6968@if dejagnu
6969maybe-install-html-dejagnu: install-html-dejagnu
108a6f8e 6970
a90ef4bf
JM
6971install-html-dejagnu: \
6972 configure-dejagnu \
6973 html-dejagnu
6974 @: $(MAKE); $(unstage)
6975 @[ -f ./dejagnu/Makefile ] || exit 0; \
108a6f8e
CD
6976 r=`${PWD_COMMAND}`; export r; \
6977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6978 $(HOST_EXPORTS) \
6979 for flag in $(EXTRA_HOST_FLAGS) ; do \
6980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6981 done; \
22121df0 6982 echo "Doing install-html in dejagnu"; \
a90ef4bf 6983 (cd $(HOST_SUBDIR)/dejagnu && \
108a6f8e
CD
6984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6986 "RANLIB=$${RANLIB}" \
0c24b341 6987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
6988 install-html) \
6989 || exit 1
6990
a90ef4bf 6991@endif dejagnu
108a6f8e 6992
a90ef4bf
JM
6993.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
6994maybe-installcheck-dejagnu:
6995@if dejagnu
6996maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 6997
a90ef4bf
JM
6998installcheck-dejagnu: \
6999 configure-dejagnu
7000 @: $(MAKE); $(unstage)
7001 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7002 r=`${PWD_COMMAND}`; export r; \
7003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7004 $(HOST_EXPORTS) \
b813574b 7005 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7007 done; \
22121df0 7008 echo "Doing installcheck in dejagnu"; \
a90ef4bf 7009 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7012 "RANLIB=$${RANLIB}" \
0c24b341 7013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7014 installcheck) \
2a4cbe27
NN
7015 || exit 1
7016
a90ef4bf 7017@endif dejagnu
2a4cbe27 7018
a90ef4bf
JM
7019.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
7020maybe-mostlyclean-dejagnu:
7021@if dejagnu
7022maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 7023
a90ef4bf
JM
7024mostlyclean-dejagnu:
7025 @: $(MAKE); $(unstage)
7026 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7027 r=`${PWD_COMMAND}`; export r; \
7028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7029 $(HOST_EXPORTS) \
b813574b 7030 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7032 done; \
22121df0 7033 echo "Doing mostlyclean in dejagnu"; \
a90ef4bf 7034 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7037 "RANLIB=$${RANLIB}" \
0c24b341 7038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7039 mostlyclean) \
2a4cbe27
NN
7040 || exit 1
7041
a90ef4bf 7042@endif dejagnu
2a4cbe27 7043
a90ef4bf
JM
7044.PHONY: maybe-clean-dejagnu clean-dejagnu
7045maybe-clean-dejagnu:
7046@if dejagnu
7047maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 7048
a90ef4bf
JM
7049clean-dejagnu:
7050 @: $(MAKE); $(unstage)
7051 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7052 r=`${PWD_COMMAND}`; export r; \
7053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7054 $(HOST_EXPORTS) \
b813574b 7055 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7057 done; \
22121df0 7058 echo "Doing clean in dejagnu"; \
a90ef4bf 7059 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7062 "RANLIB=$${RANLIB}" \
0c24b341 7063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7064 clean) \
2a4cbe27
NN
7065 || exit 1
7066
a90ef4bf 7067@endif dejagnu
2a4cbe27 7068
a90ef4bf
JM
7069.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7070maybe-distclean-dejagnu:
7071@if dejagnu
7072maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 7073
a90ef4bf
JM
7074distclean-dejagnu:
7075 @: $(MAKE); $(unstage)
7076 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7077 r=`${PWD_COMMAND}`; export r; \
7078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7079 $(HOST_EXPORTS) \
b813574b 7080 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7082 done; \
22121df0 7083 echo "Doing distclean in dejagnu"; \
a90ef4bf 7084 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7087 "RANLIB=$${RANLIB}" \
0c24b341 7088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7089 distclean) \
2a4cbe27
NN
7090 || exit 1
7091
a90ef4bf 7092@endif dejagnu
2a4cbe27 7093
a90ef4bf
JM
7094.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7095maybe-maintainer-clean-dejagnu:
7096@if dejagnu
7097maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 7098
a90ef4bf
JM
7099maintainer-clean-dejagnu:
7100 @: $(MAKE); $(unstage)
7101 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7102 r=`${PWD_COMMAND}`; export r; \
7103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7104 $(HOST_EXPORTS) \
b813574b 7105 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7107 done; \
22121df0 7108 echo "Doing maintainer-clean in dejagnu"; \
a90ef4bf 7109 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7112 "RANLIB=$${RANLIB}" \
0c24b341 7113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7114 maintainer-clean) \
2a4cbe27
NN
7115 || exit 1
7116
a90ef4bf 7117@endif dejagnu
2a4cbe27 7118
2a4cbe27 7119
a7254363 7120
a90ef4bf
JM
7121.PHONY: configure-etc maybe-configure-etc
7122maybe-configure-etc:
4f0ef2d8 7123@if gcc-bootstrap
a90ef4bf 7124configure-etc: stage_current
4f0ef2d8 7125@endif gcc-bootstrap
a90ef4bf
JM
7126@if etc
7127maybe-configure-etc: configure-etc
7128configure-etc:
0aed8855 7129 @: $(MAKE); $(unstage)
c52c6897 7130 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7132 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
22121df0 7133 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc; \
1f53ca9a 7134 $(HOST_EXPORTS) \
a90ef4bf
JM
7135 echo Configuring in $(HOST_SUBDIR)/etc; \
7136 cd "$(HOST_SUBDIR)/etc" || exit 1; \
4fa63067 7137 case $(srcdir) in \
b00612cc 7138 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7139 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
b00612cc 7140 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7141 esac; \
1b6c0831
L
7142 module_srcdir=etc; \
7143 $(SHELL) \
7144 $$s/$$module_srcdir/configure \
7145 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7146 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7147 --target=${target_alias} \
2a4cbe27 7148 || exit 1
a90ef4bf 7149@endif etc
2a4cbe27 7150
a7254363
PB
7151
7152
d545f33b
PB
7153
7154
a90ef4bf
JM
7155.PHONY: all-etc maybe-all-etc
7156maybe-all-etc:
4f0ef2d8 7157@if gcc-bootstrap
a90ef4bf 7158all-etc: stage_current
4f0ef2d8 7159@endif gcc-bootstrap
a90ef4bf
JM
7160@if etc
7161TARGET-etc=all
7162maybe-all-etc: all-etc
7163all-etc: configure-etc
0aed8855 7164 @: $(MAKE); $(unstage)
4fa63067
NN
7165 @r=`${PWD_COMMAND}`; export r; \
7166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7167 $(HOST_EXPORTS) \
a90ef4bf 7168 (cd $(HOST_SUBDIR)/etc && \
b3676d82 7169 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7170 $(TARGET-etc))
7171@endif etc
2a4cbe27 7172
a7254363 7173
d545f33b
PB
7174
7175
a90ef4bf
JM
7176.PHONY: check-etc maybe-check-etc
7177maybe-check-etc:
7178@if etc
7179maybe-check-etc: check-etc
2a4cbe27 7180
a90ef4bf 7181check-etc:
0aed8855 7182 @: $(MAKE); $(unstage)
a90ef4bf
JM
7183 @r=`${PWD_COMMAND}`; export r; \
7184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7185 $(HOST_EXPORTS) \
a90ef4bf
JM
7186 (cd $(HOST_SUBDIR)/etc && \
7187 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 7188
a90ef4bf 7189@endif etc
4fa63067 7190
a90ef4bf
JM
7191.PHONY: install-etc maybe-install-etc
7192maybe-install-etc:
7193@if etc
7194maybe-install-etc: install-etc
4fa63067 7195
a90ef4bf 7196install-etc: installdirs
0aed8855 7197 @: $(MAKE); $(unstage)
4fa63067 7198 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7200 $(HOST_EXPORTS) \
a90ef4bf 7201 (cd $(HOST_SUBDIR)/etc && \
2da12f12 7202 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 7203
a90ef4bf 7204@endif etc
2a4cbe27 7205
a90ef4bf
JM
7206.PHONY: install-strip-etc maybe-install-strip-etc
7207maybe-install-strip-etc:
7208@if etc
7209maybe-install-strip-etc: install-strip-etc
9b980aa1 7210
a90ef4bf 7211install-strip-etc: installdirs
9b980aa1
RW
7212 @: $(MAKE); $(unstage)
7213 @r=`${PWD_COMMAND}`; export r; \
7214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7215 $(HOST_EXPORTS) \
a90ef4bf 7216 (cd $(HOST_SUBDIR)/etc && \
9b980aa1
RW
7217 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7218
a90ef4bf 7219@endif etc
9b980aa1 7220
56a8fe78 7221# Other targets (info, dvi, pdf, etc.)
2a4cbe27 7222
a90ef4bf
JM
7223.PHONY: maybe-info-etc info-etc
7224maybe-info-etc:
7225@if etc
7226maybe-info-etc: info-etc
4fa63067 7227
a90ef4bf
JM
7228info-etc: \
7229 configure-etc
0aed8855 7230 @: $(MAKE); $(unstage)
a90ef4bf 7231 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7232 r=`${PWD_COMMAND}`; export r; \
7233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7234 $(HOST_EXPORTS) \
b813574b 7235 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7237 done; \
22121df0 7238 echo "Doing info in etc"; \
a90ef4bf 7239 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7242 "RANLIB=$${RANLIB}" \
0c24b341 7243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7244 info) \
2a4cbe27
NN
7245 || exit 1
7246
a90ef4bf 7247@endif etc
2a4cbe27 7248
a90ef4bf
JM
7249.PHONY: maybe-dvi-etc dvi-etc
7250maybe-dvi-etc:
7251@if etc
7252maybe-dvi-etc: dvi-etc
2a4cbe27 7253
a90ef4bf
JM
7254dvi-etc: \
7255 configure-etc
0aed8855 7256 @: $(MAKE); $(unstage)
a90ef4bf 7257 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7258 r=`${PWD_COMMAND}`; export r; \
7259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7260 $(HOST_EXPORTS) \
b813574b 7261 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7263 done; \
22121df0 7264 echo "Doing dvi in etc"; \
a90ef4bf 7265 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7268 "RANLIB=$${RANLIB}" \
0c24b341 7269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7270 dvi) \
2a4cbe27
NN
7271 || exit 1
7272
a90ef4bf 7273@endif etc
2a4cbe27 7274
a90ef4bf
JM
7275.PHONY: maybe-pdf-etc pdf-etc
7276maybe-pdf-etc:
7277@if etc
7278maybe-pdf-etc: pdf-etc
56a8fe78 7279
a90ef4bf
JM
7280pdf-etc: \
7281 configure-etc
56a8fe78 7282 @: $(MAKE); $(unstage)
a90ef4bf 7283 @[ -f ./etc/Makefile ] || exit 0; \
56a8fe78
DD
7284 r=`${PWD_COMMAND}`; export r; \
7285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7286 $(HOST_EXPORTS) \
7287 for flag in $(EXTRA_HOST_FLAGS) ; do \
7288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7289 done; \
22121df0 7290 echo "Doing pdf in etc"; \
a90ef4bf 7291 (cd $(HOST_SUBDIR)/etc && \
56a8fe78
DD
7292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7294 "RANLIB=$${RANLIB}" \
0c24b341 7295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7296 pdf) \
7297 || exit 1
7298
a90ef4bf 7299@endif etc
56a8fe78 7300
a90ef4bf
JM
7301.PHONY: maybe-html-etc html-etc
7302maybe-html-etc:
7303@if etc
7304maybe-html-etc: html-etc
6d389afc 7305
a90ef4bf
JM
7306html-etc: \
7307 configure-etc
0aed8855 7308 @: $(MAKE); $(unstage)
a90ef4bf 7309 @[ -f ./etc/Makefile ] || exit 0; \
6d389afc
MS
7310 r=`${PWD_COMMAND}`; export r; \
7311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7312 $(HOST_EXPORTS) \
7313 for flag in $(EXTRA_HOST_FLAGS) ; do \
7314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7315 done; \
22121df0 7316 echo "Doing html in etc"; \
a90ef4bf 7317 (cd $(HOST_SUBDIR)/etc && \
6d389afc
MS
7318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7320 "RANLIB=$${RANLIB}" \
0c24b341 7321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7322 html) \
7323 || exit 1
7324
a90ef4bf 7325@endif etc
6d389afc 7326
a90ef4bf
JM
7327.PHONY: maybe-TAGS-etc TAGS-etc
7328maybe-TAGS-etc:
7329@if etc
7330maybe-TAGS-etc: TAGS-etc
2a4cbe27 7331
a90ef4bf
JM
7332TAGS-etc: \
7333 configure-etc
0aed8855 7334 @: $(MAKE); $(unstage)
a90ef4bf 7335 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7336 r=`${PWD_COMMAND}`; export r; \
7337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7338 $(HOST_EXPORTS) \
b813574b 7339 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7341 done; \
22121df0 7342 echo "Doing TAGS in etc"; \
a90ef4bf 7343 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7346 "RANLIB=$${RANLIB}" \
0c24b341 7347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7348 TAGS) \
2a4cbe27
NN
7349 || exit 1
7350
a90ef4bf 7351@endif etc
2a4cbe27 7352
a90ef4bf
JM
7353.PHONY: maybe-install-info-etc install-info-etc
7354maybe-install-info-etc:
7355@if etc
7356maybe-install-info-etc: install-info-etc
2a4cbe27 7357
a90ef4bf
JM
7358install-info-etc: \
7359 configure-etc \
7360 info-etc
0aed8855 7361 @: $(MAKE); $(unstage)
a90ef4bf 7362 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7363 r=`${PWD_COMMAND}`; export r; \
7364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7365 $(HOST_EXPORTS) \
b813574b 7366 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7368 done; \
22121df0 7369 echo "Doing install-info in etc"; \
a90ef4bf 7370 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7373 "RANLIB=$${RANLIB}" \
0c24b341 7374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7375 install-info) \
2a4cbe27
NN
7376 || exit 1
7377
a90ef4bf 7378@endif etc
2a4cbe27 7379
a90ef4bf
JM
7380.PHONY: maybe-install-pdf-etc install-pdf-etc
7381maybe-install-pdf-etc:
7382@if etc
7383maybe-install-pdf-etc: install-pdf-etc
a3ca38d2 7384
a90ef4bf
JM
7385install-pdf-etc: \
7386 configure-etc \
7387 pdf-etc
a3ca38d2 7388 @: $(MAKE); $(unstage)
a90ef4bf 7389 @[ -f ./etc/Makefile ] || exit 0; \
a3ca38d2
DD
7390 r=`${PWD_COMMAND}`; export r; \
7391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7392 $(HOST_EXPORTS) \
7393 for flag in $(EXTRA_HOST_FLAGS) ; do \
7394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7395 done; \
22121df0 7396 echo "Doing install-pdf in etc"; \
a90ef4bf 7397 (cd $(HOST_SUBDIR)/etc && \
a3ca38d2
DD
7398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7400 "RANLIB=$${RANLIB}" \
0c24b341 7401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7402 install-pdf) \
7403 || exit 1
7404
a90ef4bf 7405@endif etc
a3ca38d2 7406
a90ef4bf
JM
7407.PHONY: maybe-install-html-etc install-html-etc
7408maybe-install-html-etc:
7409@if etc
7410maybe-install-html-etc: install-html-etc
108a6f8e 7411
a90ef4bf
JM
7412install-html-etc: \
7413 configure-etc \
7414 html-etc
108a6f8e 7415 @: $(MAKE); $(unstage)
a90ef4bf 7416 @[ -f ./etc/Makefile ] || exit 0; \
108a6f8e
CD
7417 r=`${PWD_COMMAND}`; export r; \
7418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7419 $(HOST_EXPORTS) \
7420 for flag in $(EXTRA_HOST_FLAGS) ; do \
7421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7422 done; \
22121df0 7423 echo "Doing install-html in etc"; \
a90ef4bf 7424 (cd $(HOST_SUBDIR)/etc && \
108a6f8e
CD
7425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7427 "RANLIB=$${RANLIB}" \
0c24b341 7428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7429 install-html) \
7430 || exit 1
7431
a90ef4bf 7432@endif etc
108a6f8e 7433
a90ef4bf
JM
7434.PHONY: maybe-installcheck-etc installcheck-etc
7435maybe-installcheck-etc:
7436@if etc
7437maybe-installcheck-etc: installcheck-etc
2a4cbe27 7438
a90ef4bf
JM
7439installcheck-etc: \
7440 configure-etc
0aed8855 7441 @: $(MAKE); $(unstage)
a90ef4bf 7442 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7443 r=`${PWD_COMMAND}`; export r; \
7444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7445 $(HOST_EXPORTS) \
b813574b 7446 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7448 done; \
22121df0 7449 echo "Doing installcheck in etc"; \
a90ef4bf 7450 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7453 "RANLIB=$${RANLIB}" \
0c24b341 7454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7455 installcheck) \
2a4cbe27
NN
7456 || exit 1
7457
a90ef4bf 7458@endif etc
2a4cbe27 7459
a90ef4bf
JM
7460.PHONY: maybe-mostlyclean-etc mostlyclean-etc
7461maybe-mostlyclean-etc:
7462@if etc
7463maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 7464
a90ef4bf 7465mostlyclean-etc:
0aed8855 7466 @: $(MAKE); $(unstage)
a90ef4bf 7467 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7468 r=`${PWD_COMMAND}`; export r; \
7469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7470 $(HOST_EXPORTS) \
b813574b 7471 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7473 done; \
22121df0 7474 echo "Doing mostlyclean in etc"; \
a90ef4bf 7475 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7478 "RANLIB=$${RANLIB}" \
0c24b341 7479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7480 mostlyclean) \
2a4cbe27
NN
7481 || exit 1
7482
a90ef4bf 7483@endif etc
2a4cbe27 7484
a90ef4bf
JM
7485.PHONY: maybe-clean-etc clean-etc
7486maybe-clean-etc:
7487@if etc
7488maybe-clean-etc: clean-etc
2a4cbe27 7489
a90ef4bf 7490clean-etc:
0aed8855 7491 @: $(MAKE); $(unstage)
a90ef4bf 7492 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7493 r=`${PWD_COMMAND}`; export r; \
7494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7495 $(HOST_EXPORTS) \
b813574b 7496 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7498 done; \
22121df0 7499 echo "Doing clean in etc"; \
a90ef4bf 7500 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7503 "RANLIB=$${RANLIB}" \
0c24b341 7504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7505 clean) \
2a4cbe27
NN
7506 || exit 1
7507
a90ef4bf 7508@endif etc
2a4cbe27 7509
a90ef4bf
JM
7510.PHONY: maybe-distclean-etc distclean-etc
7511maybe-distclean-etc:
7512@if etc
7513maybe-distclean-etc: distclean-etc
2a4cbe27 7514
a90ef4bf 7515distclean-etc:
0aed8855 7516 @: $(MAKE); $(unstage)
a90ef4bf 7517 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7518 r=`${PWD_COMMAND}`; export r; \
7519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7520 $(HOST_EXPORTS) \
b813574b 7521 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7523 done; \
22121df0 7524 echo "Doing distclean in etc"; \
a90ef4bf 7525 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7528 "RANLIB=$${RANLIB}" \
0c24b341 7529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7530 distclean) \
2a4cbe27
NN
7531 || exit 1
7532
a90ef4bf 7533@endif etc
2a4cbe27 7534
a90ef4bf
JM
7535.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7536maybe-maintainer-clean-etc:
7537@if etc
7538maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 7539
a90ef4bf 7540maintainer-clean-etc:
0aed8855 7541 @: $(MAKE); $(unstage)
a90ef4bf 7542 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7543 r=`${PWD_COMMAND}`; export r; \
7544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7545 $(HOST_EXPORTS) \
b813574b 7546 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7548 done; \
22121df0 7549 echo "Doing maintainer-clean in etc"; \
a90ef4bf 7550 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7553 "RANLIB=$${RANLIB}" \
0c24b341 7554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7555 maintainer-clean) \
2a4cbe27
NN
7556 || exit 1
7557
a90ef4bf 7558@endif etc
2a4cbe27 7559
2a4cbe27 7560
a7254363 7561
a90ef4bf
JM
7562.PHONY: configure-fastjar maybe-configure-fastjar
7563maybe-configure-fastjar:
4f0ef2d8 7564@if gcc-bootstrap
a90ef4bf 7565configure-fastjar: stage_current
4f0ef2d8 7566@endif gcc-bootstrap
a90ef4bf
JM
7567@if fastjar
7568maybe-configure-fastjar: configure-fastjar
7569configure-fastjar:
0aed8855 7570 @: $(MAKE); $(unstage)
c52c6897 7571 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7573 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
22121df0 7574 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar; \
1f53ca9a 7575 $(HOST_EXPORTS) \
a90ef4bf
JM
7576 echo Configuring in $(HOST_SUBDIR)/fastjar; \
7577 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
4fa63067 7578 case $(srcdir) in \
b00612cc 7579 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7580 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
b00612cc 7581 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7582 esac; \
1b6c0831
L
7583 module_srcdir=fastjar; \
7584 $(SHELL) \
7585 $$s/$$module_srcdir/configure \
7586 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7587 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7588 --target=${target_alias} \
4fa63067 7589 || exit 1
a90ef4bf 7590@endif fastjar
4fa63067 7591
a7254363
PB
7592
7593
d545f33b
PB
7594
7595
a90ef4bf
JM
7596.PHONY: all-fastjar maybe-all-fastjar
7597maybe-all-fastjar:
4f0ef2d8 7598@if gcc-bootstrap
a90ef4bf 7599all-fastjar: stage_current
4f0ef2d8 7600@endif gcc-bootstrap
a90ef4bf
JM
7601@if fastjar
7602TARGET-fastjar=all
7603maybe-all-fastjar: all-fastjar
7604all-fastjar: configure-fastjar
0aed8855 7605 @: $(MAKE); $(unstage)
4fa63067
NN
7606 @r=`${PWD_COMMAND}`; export r; \
7607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7608 $(HOST_EXPORTS) \
a90ef4bf 7609 (cd $(HOST_SUBDIR)/fastjar && \
b3676d82 7610 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7611 $(TARGET-fastjar))
7612@endif fastjar
4fa63067 7613
a7254363 7614
d545f33b
PB
7615
7616
a90ef4bf
JM
7617.PHONY: check-fastjar maybe-check-fastjar
7618maybe-check-fastjar:
7619@if fastjar
7620maybe-check-fastjar: check-fastjar
4fa63067
NN
7621
7622# This module is only tested in a native toolchain.
a90ef4bf 7623check-fastjar:
0aed8855 7624 @: $(MAKE); $(unstage)
22121df0 7625 @if [ '$(host)' = '$(target)' ]; then \
4fa63067
NN
7626 r=`${PWD_COMMAND}`; export r; \
7627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7628 $(HOST_EXPORTS) \
a90ef4bf 7629 (cd $(HOST_SUBDIR)/fastjar && \
f91ca6bc 7630 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067
NN
7631 fi
7632
a90ef4bf 7633@endif fastjar
4fa63067 7634
a90ef4bf
JM
7635.PHONY: install-fastjar maybe-install-fastjar
7636maybe-install-fastjar:
7637@if fastjar
7638maybe-install-fastjar: install-fastjar
4fa63067 7639
a90ef4bf 7640install-fastjar: installdirs
0aed8855 7641 @: $(MAKE); $(unstage)
4fa63067
NN
7642 @r=`${PWD_COMMAND}`; export r; \
7643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7644 $(HOST_EXPORTS) \
a90ef4bf 7645 (cd $(HOST_SUBDIR)/fastjar && \
2da12f12 7646 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7647
a90ef4bf 7648@endif fastjar
4fa63067 7649
a90ef4bf
JM
7650.PHONY: install-strip-fastjar maybe-install-strip-fastjar
7651maybe-install-strip-fastjar:
7652@if fastjar
7653maybe-install-strip-fastjar: install-strip-fastjar
9b980aa1 7654
a90ef4bf 7655install-strip-fastjar: installdirs
9b980aa1
RW
7656 @: $(MAKE); $(unstage)
7657 @r=`${PWD_COMMAND}`; export r; \
7658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7659 $(HOST_EXPORTS) \
a90ef4bf 7660 (cd $(HOST_SUBDIR)/fastjar && \
9b980aa1
RW
7661 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7662
a90ef4bf 7663@endif fastjar
9b980aa1 7664
56a8fe78 7665# Other targets (info, dvi, pdf, etc.)
4fa63067 7666
a90ef4bf
JM
7667.PHONY: maybe-info-fastjar info-fastjar
7668maybe-info-fastjar:
7669@if fastjar
7670maybe-info-fastjar: info-fastjar
4fa63067 7671
a90ef4bf
JM
7672info-fastjar: \
7673 configure-fastjar
0aed8855 7674 @: $(MAKE); $(unstage)
a90ef4bf 7675 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7676 r=`${PWD_COMMAND}`; export r; \
7677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7678 $(HOST_EXPORTS) \
b813574b 7679 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7681 done; \
22121df0 7682 echo "Doing info in fastjar"; \
a90ef4bf 7683 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7686 "RANLIB=$${RANLIB}" \
0c24b341 7687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7688 info) \
2a4cbe27
NN
7689 || exit 1
7690
a90ef4bf 7691@endif fastjar
2a4cbe27 7692
a90ef4bf
JM
7693.PHONY: maybe-dvi-fastjar dvi-fastjar
7694maybe-dvi-fastjar:
7695@if fastjar
7696maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 7697
a90ef4bf
JM
7698dvi-fastjar: \
7699 configure-fastjar
0aed8855 7700 @: $(MAKE); $(unstage)
a90ef4bf 7701 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7702 r=`${PWD_COMMAND}`; export r; \
7703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7704 $(HOST_EXPORTS) \
b813574b 7705 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7707 done; \
22121df0 7708 echo "Doing dvi in fastjar"; \
a90ef4bf 7709 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7712 "RANLIB=$${RANLIB}" \
0c24b341 7713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7714 dvi) \
2a4cbe27
NN
7715 || exit 1
7716
a90ef4bf 7717@endif fastjar
2a4cbe27 7718
a90ef4bf
JM
7719.PHONY: maybe-pdf-fastjar pdf-fastjar
7720maybe-pdf-fastjar:
7721@if fastjar
7722maybe-pdf-fastjar: pdf-fastjar
56a8fe78 7723
a90ef4bf
JM
7724pdf-fastjar: \
7725 configure-fastjar
56a8fe78 7726 @: $(MAKE); $(unstage)
a90ef4bf 7727 @[ -f ./fastjar/Makefile ] || exit 0; \
56a8fe78
DD
7728 r=`${PWD_COMMAND}`; export r; \
7729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7730 $(HOST_EXPORTS) \
7731 for flag in $(EXTRA_HOST_FLAGS) ; do \
7732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7733 done; \
22121df0 7734 echo "Doing pdf in fastjar"; \
a90ef4bf 7735 (cd $(HOST_SUBDIR)/fastjar && \
56a8fe78
DD
7736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7738 "RANLIB=$${RANLIB}" \
0c24b341 7739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7740 pdf) \
7741 || exit 1
7742
a90ef4bf 7743@endif fastjar
56a8fe78 7744
a90ef4bf
JM
7745.PHONY: maybe-html-fastjar html-fastjar
7746maybe-html-fastjar:
7747@if fastjar
7748maybe-html-fastjar: html-fastjar
6d389afc 7749
a90ef4bf
JM
7750html-fastjar: \
7751 configure-fastjar
0aed8855 7752 @: $(MAKE); $(unstage)
a90ef4bf 7753 @[ -f ./fastjar/Makefile ] || exit 0; \
6d389afc
MS
7754 r=`${PWD_COMMAND}`; export r; \
7755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7756 $(HOST_EXPORTS) \
7757 for flag in $(EXTRA_HOST_FLAGS) ; do \
7758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7759 done; \
22121df0 7760 echo "Doing html in fastjar"; \
a90ef4bf 7761 (cd $(HOST_SUBDIR)/fastjar && \
6d389afc
MS
7762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7764 "RANLIB=$${RANLIB}" \
0c24b341 7765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7766 html) \
7767 || exit 1
7768
a90ef4bf 7769@endif fastjar
6d389afc 7770
a90ef4bf
JM
7771.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7772maybe-TAGS-fastjar:
7773@if fastjar
7774maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 7775
a90ef4bf
JM
7776TAGS-fastjar: \
7777 configure-fastjar
0aed8855 7778 @: $(MAKE); $(unstage)
a90ef4bf 7779 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7780 r=`${PWD_COMMAND}`; export r; \
7781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7782 $(HOST_EXPORTS) \
b813574b 7783 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7785 done; \
22121df0 7786 echo "Doing TAGS in fastjar"; \
a90ef4bf 7787 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7790 "RANLIB=$${RANLIB}" \
0c24b341 7791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7792 TAGS) \
2a4cbe27
NN
7793 || exit 1
7794
a90ef4bf 7795@endif fastjar
2a4cbe27 7796
a90ef4bf
JM
7797.PHONY: maybe-install-info-fastjar install-info-fastjar
7798maybe-install-info-fastjar:
7799@if fastjar
7800maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 7801
a90ef4bf
JM
7802install-info-fastjar: \
7803 configure-fastjar \
7804 info-fastjar
0aed8855 7805 @: $(MAKE); $(unstage)
a90ef4bf 7806 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7807 r=`${PWD_COMMAND}`; export r; \
7808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7809 $(HOST_EXPORTS) \
b813574b 7810 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7812 done; \
22121df0 7813 echo "Doing install-info in fastjar"; \
a90ef4bf 7814 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7817 "RANLIB=$${RANLIB}" \
0c24b341 7818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7819 install-info) \
2a4cbe27
NN
7820 || exit 1
7821
a90ef4bf 7822@endif fastjar
2a4cbe27 7823
a90ef4bf
JM
7824.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
7825maybe-install-pdf-fastjar:
7826@if fastjar
7827maybe-install-pdf-fastjar: install-pdf-fastjar
a3ca38d2 7828
a90ef4bf
JM
7829install-pdf-fastjar: \
7830 configure-fastjar \
7831 pdf-fastjar
a3ca38d2 7832 @: $(MAKE); $(unstage)
a90ef4bf 7833 @[ -f ./fastjar/Makefile ] || exit 0; \
a3ca38d2
DD
7834 r=`${PWD_COMMAND}`; export r; \
7835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7836 $(HOST_EXPORTS) \
7837 for flag in $(EXTRA_HOST_FLAGS) ; do \
7838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7839 done; \
22121df0 7840 echo "Doing install-pdf in fastjar"; \
a90ef4bf 7841 (cd $(HOST_SUBDIR)/fastjar && \
a3ca38d2
DD
7842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7844 "RANLIB=$${RANLIB}" \
0c24b341 7845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7846 install-pdf) \
7847 || exit 1
7848
a90ef4bf 7849@endif fastjar
a3ca38d2 7850
a90ef4bf
JM
7851.PHONY: maybe-install-html-fastjar install-html-fastjar
7852maybe-install-html-fastjar:
7853@if fastjar
7854maybe-install-html-fastjar: install-html-fastjar
108a6f8e 7855
a90ef4bf
JM
7856install-html-fastjar: \
7857 configure-fastjar \
7858 html-fastjar
108a6f8e 7859 @: $(MAKE); $(unstage)
a90ef4bf 7860 @[ -f ./fastjar/Makefile ] || exit 0; \
108a6f8e
CD
7861 r=`${PWD_COMMAND}`; export r; \
7862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7863 $(HOST_EXPORTS) \
7864 for flag in $(EXTRA_HOST_FLAGS) ; do \
7865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7866 done; \
22121df0 7867 echo "Doing install-html in fastjar"; \
a90ef4bf 7868 (cd $(HOST_SUBDIR)/fastjar && \
108a6f8e
CD
7869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7871 "RANLIB=$${RANLIB}" \
0c24b341 7872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7873 install-html) \
7874 || exit 1
7875
a90ef4bf 7876@endif fastjar
108a6f8e 7877
a90ef4bf
JM
7878.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7879maybe-installcheck-fastjar:
7880@if fastjar
7881maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 7882
a90ef4bf
JM
7883installcheck-fastjar: \
7884 configure-fastjar
0aed8855 7885 @: $(MAKE); $(unstage)
a90ef4bf 7886 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7887 r=`${PWD_COMMAND}`; export r; \
7888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7889 $(HOST_EXPORTS) \
b813574b 7890 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7892 done; \
22121df0 7893 echo "Doing installcheck in fastjar"; \
a90ef4bf 7894 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7897 "RANLIB=$${RANLIB}" \
0c24b341 7898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7899 installcheck) \
2a4cbe27
NN
7900 || exit 1
7901
a90ef4bf 7902@endif fastjar
2a4cbe27 7903
a90ef4bf
JM
7904.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
7905maybe-mostlyclean-fastjar:
7906@if fastjar
7907maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 7908
a90ef4bf 7909mostlyclean-fastjar:
0aed8855 7910 @: $(MAKE); $(unstage)
a90ef4bf 7911 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7912 r=`${PWD_COMMAND}`; export r; \
7913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7914 $(HOST_EXPORTS) \
b813574b 7915 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7917 done; \
22121df0 7918 echo "Doing mostlyclean in fastjar"; \
a90ef4bf 7919 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7922 "RANLIB=$${RANLIB}" \
0c24b341 7923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7924 mostlyclean) \
2a4cbe27
NN
7925 || exit 1
7926
a90ef4bf 7927@endif fastjar
2a4cbe27 7928
a90ef4bf
JM
7929.PHONY: maybe-clean-fastjar clean-fastjar
7930maybe-clean-fastjar:
7931@if fastjar
7932maybe-clean-fastjar: clean-fastjar
2a4cbe27 7933
a90ef4bf 7934clean-fastjar:
0aed8855 7935 @: $(MAKE); $(unstage)
a90ef4bf 7936 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7937 r=`${PWD_COMMAND}`; export r; \
7938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7939 $(HOST_EXPORTS) \
b813574b 7940 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7942 done; \
22121df0 7943 echo "Doing clean in fastjar"; \
a90ef4bf 7944 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7947 "RANLIB=$${RANLIB}" \
0c24b341 7948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7949 clean) \
2a4cbe27
NN
7950 || exit 1
7951
a90ef4bf 7952@endif fastjar
2a4cbe27 7953
a90ef4bf
JM
7954.PHONY: maybe-distclean-fastjar distclean-fastjar
7955maybe-distclean-fastjar:
7956@if fastjar
7957maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 7958
a90ef4bf 7959distclean-fastjar:
0aed8855 7960 @: $(MAKE); $(unstage)
a90ef4bf 7961 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7962 r=`${PWD_COMMAND}`; export r; \
7963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7964 $(HOST_EXPORTS) \
b813574b 7965 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7967 done; \
22121df0 7968 echo "Doing distclean in fastjar"; \
a90ef4bf 7969 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7972 "RANLIB=$${RANLIB}" \
0c24b341 7973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7974 distclean) \
2a4cbe27
NN
7975 || exit 1
7976
a90ef4bf 7977@endif fastjar
2a4cbe27 7978
a90ef4bf
JM
7979.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
7980maybe-maintainer-clean-fastjar:
7981@if fastjar
7982maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
7983
7984maintainer-clean-fastjar:
0aed8855 7985 @: $(MAKE); $(unstage)
a90ef4bf 7986 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7987 r=`${PWD_COMMAND}`; export r; \
7988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7989 $(HOST_EXPORTS) \
b813574b 7990 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7992 done; \
22121df0 7993 echo "Doing maintainer-clean in fastjar"; \
a90ef4bf 7994 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7997 "RANLIB=$${RANLIB}" \
0c24b341 7998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7999 maintainer-clean) \
2a4cbe27
NN
8000 || exit 1
8001
a90ef4bf 8002@endif fastjar
2a4cbe27 8003
2a4cbe27 8004
a7254363 8005
a90ef4bf
JM
8006.PHONY: configure-fixincludes maybe-configure-fixincludes
8007maybe-configure-fixincludes:
4f0ef2d8 8008@if gcc-bootstrap
a90ef4bf 8009configure-fixincludes: stage_current
4f0ef2d8 8010@endif gcc-bootstrap
a90ef4bf
JM
8011@if fixincludes
8012maybe-configure-fixincludes: configure-fixincludes
8013configure-fixincludes:
c52c6897 8014 @r=`${PWD_COMMAND}`; export r; \
4fa63067 8015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8016 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 8017 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
1f53ca9a 8018 $(HOST_EXPORTS) \
a90ef4bf
JM
8019 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
8020 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
4fa63067 8021 case $(srcdir) in \
b00612cc 8022 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8023 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
b00612cc 8024 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 8025 esac; \
1b6c0831
L
8026 module_srcdir=fixincludes; \
8027 $(SHELL) \
8028 $$s/$$module_srcdir/configure \
8029 --srcdir=$${topdir}/$$module_srcdir \
4b900473 8030 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8031 --target=${target_alias} \
4fa63067 8032 || exit 1
a90ef4bf 8033@endif fixincludes
4fa63067 8034
a7254363
PB
8035
8036
201f096f 8037.PHONY: configure-stage1-fixincludes maybe-configure-stage1-fixincludes
8038maybe-configure-stage1-fixincludes:
8039@if fixincludes-bootstrap
8040maybe-configure-stage1-fixincludes: configure-stage1-fixincludes
8041configure-stage1-fixincludes:
8042 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8043 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8044 @r=`${PWD_COMMAND}`; export r; \
8045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8046 TFLAGS="$(STAGE1_TFLAGS)"; \
8047 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8048 $(HOST_EXPORTS) \
8049 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8050 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8051 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
8052 echo Configuring stage 1 in $(HOST_SUBDIR)/fixincludes; \
8053 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8054 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8055 case $(srcdir) in \
8056 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8057 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8058 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8059 esac; \
1b6c0831
L
8060 module_srcdir=fixincludes; \
8061 $(SHELL) $$s/$$module_srcdir/configure \
8062 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8063 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8064 --target=${target_alias} \
8065 \
201f096f 8066 $(STAGE1_CONFIGURE_FLAGS)
8067@endif fixincludes-bootstrap
8068
8069.PHONY: configure-stage2-fixincludes maybe-configure-stage2-fixincludes
8070maybe-configure-stage2-fixincludes:
8071@if fixincludes-bootstrap
8072maybe-configure-stage2-fixincludes: configure-stage2-fixincludes
8073configure-stage2-fixincludes:
8074 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8075 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8076 @r=`${PWD_COMMAND}`; export r; \
8077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8078 TFLAGS="$(STAGE2_TFLAGS)"; \
8079 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8080 $(HOST_EXPORTS) \
8081 $(POSTSTAGE1_HOST_EXPORTS) \
8082 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8083 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8084 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8085 echo Configuring stage 2 in $(HOST_SUBDIR)/fixincludes; \
8086 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8087 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8088 case $(srcdir) in \
8089 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8090 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8091 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8092 esac; \
1b6c0831
L
8093 module_srcdir=fixincludes; \
8094 $(SHELL) $$s/$$module_srcdir/configure \
8095 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8096 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8097 --target=${target_alias} \
22121df0 8098 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8099 $(STAGE2_CONFIGURE_FLAGS)
8100@endif fixincludes-bootstrap
8101
8102.PHONY: configure-stage3-fixincludes maybe-configure-stage3-fixincludes
8103maybe-configure-stage3-fixincludes:
8104@if fixincludes-bootstrap
8105maybe-configure-stage3-fixincludes: configure-stage3-fixincludes
8106configure-stage3-fixincludes:
8107 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8108 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8109 @r=`${PWD_COMMAND}`; export r; \
8110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8111 TFLAGS="$(STAGE3_TFLAGS)"; \
8112 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8113 $(HOST_EXPORTS) \
8114 $(POSTSTAGE1_HOST_EXPORTS) \
8115 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8116 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8117 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8118 echo Configuring stage 3 in $(HOST_SUBDIR)/fixincludes; \
8119 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8120 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8121 case $(srcdir) in \
8122 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8123 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8124 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8125 esac; \
1b6c0831
L
8126 module_srcdir=fixincludes; \
8127 $(SHELL) $$s/$$module_srcdir/configure \
8128 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8129 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8130 --target=${target_alias} \
22121df0 8131 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8132 $(STAGE3_CONFIGURE_FLAGS)
8133@endif fixincludes-bootstrap
8134
8135.PHONY: configure-stage4-fixincludes maybe-configure-stage4-fixincludes
8136maybe-configure-stage4-fixincludes:
8137@if fixincludes-bootstrap
8138maybe-configure-stage4-fixincludes: configure-stage4-fixincludes
8139configure-stage4-fixincludes:
8140 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8141 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8142 @r=`${PWD_COMMAND}`; export r; \
8143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8144 TFLAGS="$(STAGE4_TFLAGS)"; \
8145 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8146 $(HOST_EXPORTS) \
8147 $(POSTSTAGE1_HOST_EXPORTS) \
8148 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8149 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8150 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8151 echo Configuring stage 4 in $(HOST_SUBDIR)/fixincludes; \
8152 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8153 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8154 case $(srcdir) in \
8155 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8156 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8157 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8158 esac; \
1b6c0831
L
8159 module_srcdir=fixincludes; \
8160 $(SHELL) $$s/$$module_srcdir/configure \
8161 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8162 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8163 --target=${target_alias} \
22121df0 8164 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8165 $(STAGE4_CONFIGURE_FLAGS)
8166@endif fixincludes-bootstrap
8167
8168.PHONY: configure-stageprofile-fixincludes maybe-configure-stageprofile-fixincludes
8169maybe-configure-stageprofile-fixincludes:
8170@if fixincludes-bootstrap
8171maybe-configure-stageprofile-fixincludes: configure-stageprofile-fixincludes
8172configure-stageprofile-fixincludes:
8173 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8174 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8175 @r=`${PWD_COMMAND}`; export r; \
8176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8177 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8178 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8179 $(HOST_EXPORTS) \
8180 $(POSTSTAGE1_HOST_EXPORTS) \
8181 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8182 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8183 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8184 echo Configuring stage profile in $(HOST_SUBDIR)/fixincludes; \
8185 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8186 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8187 case $(srcdir) in \
8188 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8189 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8190 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8191 esac; \
1b6c0831
L
8192 module_srcdir=fixincludes; \
8193 $(SHELL) $$s/$$module_srcdir/configure \
8194 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8195 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8196 --target=${target_alias} \
22121df0 8197 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8198 $(STAGEprofile_CONFIGURE_FLAGS)
8199@endif fixincludes-bootstrap
8200
8201.PHONY: configure-stagefeedback-fixincludes maybe-configure-stagefeedback-fixincludes
8202maybe-configure-stagefeedback-fixincludes:
8203@if fixincludes-bootstrap
8204maybe-configure-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8205configure-stagefeedback-fixincludes:
8206 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8207 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8208 @r=`${PWD_COMMAND}`; export r; \
8209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8210 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8211 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8212 $(HOST_EXPORTS) \
8213 $(POSTSTAGE1_HOST_EXPORTS) \
8214 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
8215 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
8216 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8217 echo Configuring stage feedback in $(HOST_SUBDIR)/fixincludes; \
8218 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8219 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8220 case $(srcdir) in \
8221 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8222 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8223 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8224 esac; \
1b6c0831
L
8225 module_srcdir=fixincludes; \
8226 $(SHELL) $$s/$$module_srcdir/configure \
8227 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8228 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8229 --target=${target_alias} \
22121df0 8230 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8231 $(STAGEfeedback_CONFIGURE_FLAGS)
8232@endif fixincludes-bootstrap
8233
8234
8235
d545f33b
PB
8236
8237
a90ef4bf
JM
8238.PHONY: all-fixincludes maybe-all-fixincludes
8239maybe-all-fixincludes:
4f0ef2d8 8240@if gcc-bootstrap
a90ef4bf 8241all-fixincludes: stage_current
4f0ef2d8 8242@endif gcc-bootstrap
a90ef4bf
JM
8243@if fixincludes
8244TARGET-fixincludes=all
8245maybe-all-fixincludes: all-fixincludes
8246all-fixincludes: configure-fixincludes
4fa63067
NN
8247 @r=`${PWD_COMMAND}`; export r; \
8248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8249 $(HOST_EXPORTS) \
a90ef4bf 8250 (cd $(HOST_SUBDIR)/fixincludes && \
b3676d82 8251 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8252 $(TARGET-fixincludes))
8253@endif fixincludes
4fa63067 8254
a7254363 8255
d545f33b 8256
201f096f 8257.PHONY: all-stage1-fixincludes maybe-all-stage1-fixincludes
8258.PHONY: clean-stage1-fixincludes maybe-clean-stage1-fixincludes
8259maybe-all-stage1-fixincludes:
8260maybe-clean-stage1-fixincludes:
8261@if fixincludes-bootstrap
8262maybe-all-stage1-fixincludes: all-stage1-fixincludes
8263all-stage1: all-stage1-fixincludes
8264TARGET-stage1-fixincludes = $(TARGET-fixincludes)
8265all-stage1-fixincludes: configure-stage1-fixincludes
8266 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8267 @r=`${PWD_COMMAND}`; export r; \
8268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8269 TFLAGS="$(STAGE1_TFLAGS)"; \
8270 $(HOST_EXPORTS) \
8271 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8272 \
201f096f 8273 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8274 CFLAGS="$(STAGE1_CFLAGS)" \
8275 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
8276 LIBCFLAGS="$(LIBCFLAGS)" \
8277 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8278 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8279 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8280 $(EXTRA_HOST_FLAGS) \
8281 $(STAGE1_FLAGS_TO_PASS) \
05a13254 8282 TFLAGS="$(STAGE1_TFLAGS)" \
201f096f 8283 $(TARGET-stage1-fixincludes)
8284
8285maybe-clean-stage1-fixincludes: clean-stage1-fixincludes
8286clean-stage1: clean-stage1-fixincludes
8287clean-stage1-fixincludes:
8288 @if [ $(current_stage) = stage1 ]; then \
8289 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8290 else \
8291 [ -f $(HOST_SUBDIR)/stage1-fixincludes/Makefile ] || exit 0; \
8292 $(MAKE) stage1-start; \
8293 fi; \
8294 cd $(HOST_SUBDIR)/fixincludes && \
8295 $(MAKE) $(EXTRA_HOST_FLAGS) \
8296 $(STAGE1_FLAGS_TO_PASS) clean
8297@endif fixincludes-bootstrap
8298
8299
8300.PHONY: all-stage2-fixincludes maybe-all-stage2-fixincludes
8301.PHONY: clean-stage2-fixincludes maybe-clean-stage2-fixincludes
8302maybe-all-stage2-fixincludes:
8303maybe-clean-stage2-fixincludes:
8304@if fixincludes-bootstrap
8305maybe-all-stage2-fixincludes: all-stage2-fixincludes
8306all-stage2: all-stage2-fixincludes
8307TARGET-stage2-fixincludes = $(TARGET-fixincludes)
8308all-stage2-fixincludes: configure-stage2-fixincludes
8309 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8310 @r=`${PWD_COMMAND}`; export r; \
8311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8312 TFLAGS="$(STAGE2_TFLAGS)"; \
8313 $(HOST_EXPORTS) \
8314 $(POSTSTAGE1_HOST_EXPORTS) \
8315 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8316 \
201f096f 8317 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8318 CFLAGS="$(STAGE2_CFLAGS)" \
8319 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
8320 LIBCFLAGS="$(STAGE2_CFLAGS)" \
8321 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8322 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8323 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8324 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8325 TFLAGS="$(STAGE2_TFLAGS)" \
201f096f 8326 $(TARGET-stage2-fixincludes)
8327
8328maybe-clean-stage2-fixincludes: clean-stage2-fixincludes
8329clean-stage2: clean-stage2-fixincludes
8330clean-stage2-fixincludes:
8331 @if [ $(current_stage) = stage2 ]; then \
8332 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8333 else \
8334 [ -f $(HOST_SUBDIR)/stage2-fixincludes/Makefile ] || exit 0; \
8335 $(MAKE) stage2-start; \
8336 fi; \
8337 cd $(HOST_SUBDIR)/fixincludes && \
8338 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8339@endif fixincludes-bootstrap
8340
8341
8342.PHONY: all-stage3-fixincludes maybe-all-stage3-fixincludes
8343.PHONY: clean-stage3-fixincludes maybe-clean-stage3-fixincludes
8344maybe-all-stage3-fixincludes:
8345maybe-clean-stage3-fixincludes:
8346@if fixincludes-bootstrap
8347maybe-all-stage3-fixincludes: all-stage3-fixincludes
8348all-stage3: all-stage3-fixincludes
8349TARGET-stage3-fixincludes = $(TARGET-fixincludes)
8350all-stage3-fixincludes: configure-stage3-fixincludes
8351 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8352 @r=`${PWD_COMMAND}`; export r; \
8353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8354 TFLAGS="$(STAGE3_TFLAGS)"; \
8355 $(HOST_EXPORTS) \
8356 $(POSTSTAGE1_HOST_EXPORTS) \
8357 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8358 \
201f096f 8359 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8360 CFLAGS="$(STAGE3_CFLAGS)" \
8361 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
8362 LIBCFLAGS="$(STAGE3_CFLAGS)" \
8363 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8364 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8365 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8366 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8367 TFLAGS="$(STAGE3_TFLAGS)" \
201f096f 8368 $(TARGET-stage3-fixincludes)
8369
8370maybe-clean-stage3-fixincludes: clean-stage3-fixincludes
8371clean-stage3: clean-stage3-fixincludes
8372clean-stage3-fixincludes:
8373 @if [ $(current_stage) = stage3 ]; then \
8374 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8375 else \
8376 [ -f $(HOST_SUBDIR)/stage3-fixincludes/Makefile ] || exit 0; \
8377 $(MAKE) stage3-start; \
8378 fi; \
8379 cd $(HOST_SUBDIR)/fixincludes && \
8380 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8381@endif fixincludes-bootstrap
8382
8383
8384.PHONY: all-stage4-fixincludes maybe-all-stage4-fixincludes
8385.PHONY: clean-stage4-fixincludes maybe-clean-stage4-fixincludes
8386maybe-all-stage4-fixincludes:
8387maybe-clean-stage4-fixincludes:
8388@if fixincludes-bootstrap
8389maybe-all-stage4-fixincludes: all-stage4-fixincludes
8390all-stage4: all-stage4-fixincludes
8391TARGET-stage4-fixincludes = $(TARGET-fixincludes)
8392all-stage4-fixincludes: configure-stage4-fixincludes
8393 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8394 @r=`${PWD_COMMAND}`; export r; \
8395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8396 TFLAGS="$(STAGE4_TFLAGS)"; \
8397 $(HOST_EXPORTS) \
8398 $(POSTSTAGE1_HOST_EXPORTS) \
8399 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8400 \
201f096f 8401 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8402 CFLAGS="$(STAGE4_CFLAGS)" \
8403 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
8404 LIBCFLAGS="$(STAGE4_CFLAGS)" \
8405 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8406 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8407 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8408 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8409 TFLAGS="$(STAGE4_TFLAGS)" \
201f096f 8410 $(TARGET-stage4-fixincludes)
8411
8412maybe-clean-stage4-fixincludes: clean-stage4-fixincludes
8413clean-stage4: clean-stage4-fixincludes
8414clean-stage4-fixincludes:
8415 @if [ $(current_stage) = stage4 ]; then \
8416 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8417 else \
8418 [ -f $(HOST_SUBDIR)/stage4-fixincludes/Makefile ] || exit 0; \
8419 $(MAKE) stage4-start; \
8420 fi; \
8421 cd $(HOST_SUBDIR)/fixincludes && \
8422 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8423@endif fixincludes-bootstrap
8424
8425
8426.PHONY: all-stageprofile-fixincludes maybe-all-stageprofile-fixincludes
8427.PHONY: clean-stageprofile-fixincludes maybe-clean-stageprofile-fixincludes
8428maybe-all-stageprofile-fixincludes:
8429maybe-clean-stageprofile-fixincludes:
8430@if fixincludes-bootstrap
8431maybe-all-stageprofile-fixincludes: all-stageprofile-fixincludes
8432all-stageprofile: all-stageprofile-fixincludes
8433TARGET-stageprofile-fixincludes = $(TARGET-fixincludes)
8434all-stageprofile-fixincludes: configure-stageprofile-fixincludes
8435 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8436 @r=`${PWD_COMMAND}`; export r; \
8437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8438 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8439 $(HOST_EXPORTS) \
8440 $(POSTSTAGE1_HOST_EXPORTS) \
8441 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8442 \
201f096f 8443 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8444 CFLAGS="$(STAGEprofile_CFLAGS)" \
8445 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
8446 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
8447 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8448 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8449 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8450 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8451 TFLAGS="$(STAGEprofile_TFLAGS)" \
201f096f 8452 $(TARGET-stageprofile-fixincludes)
8453
8454maybe-clean-stageprofile-fixincludes: clean-stageprofile-fixincludes
8455clean-stageprofile: clean-stageprofile-fixincludes
8456clean-stageprofile-fixincludes:
8457 @if [ $(current_stage) = stageprofile ]; then \
8458 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8459 else \
8460 [ -f $(HOST_SUBDIR)/stageprofile-fixincludes/Makefile ] || exit 0; \
8461 $(MAKE) stageprofile-start; \
8462 fi; \
8463 cd $(HOST_SUBDIR)/fixincludes && \
8464 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8465@endif fixincludes-bootstrap
8466
8467
8468.PHONY: all-stagefeedback-fixincludes maybe-all-stagefeedback-fixincludes
8469.PHONY: clean-stagefeedback-fixincludes maybe-clean-stagefeedback-fixincludes
8470maybe-all-stagefeedback-fixincludes:
8471maybe-clean-stagefeedback-fixincludes:
8472@if fixincludes-bootstrap
8473maybe-all-stagefeedback-fixincludes: all-stagefeedback-fixincludes
8474all-stagefeedback: all-stagefeedback-fixincludes
8475TARGET-stagefeedback-fixincludes = $(TARGET-fixincludes)
8476all-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8477 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8478 @r=`${PWD_COMMAND}`; export r; \
8479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8480 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8481 $(HOST_EXPORTS) \
8482 $(POSTSTAGE1_HOST_EXPORTS) \
8483 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8484 \
201f096f 8485 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8486 CFLAGS="$(STAGEfeedback_CFLAGS)" \
8487 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
8488 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
8489 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8490 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8491 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8492 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8493 TFLAGS="$(STAGEfeedback_TFLAGS)" \
201f096f 8494 $(TARGET-stagefeedback-fixincludes)
8495
8496maybe-clean-stagefeedback-fixincludes: clean-stagefeedback-fixincludes
8497clean-stagefeedback: clean-stagefeedback-fixincludes
8498clean-stagefeedback-fixincludes:
8499 @if [ $(current_stage) = stagefeedback ]; then \
8500 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8501 else \
8502 [ -f $(HOST_SUBDIR)/stagefeedback-fixincludes/Makefile ] || exit 0; \
8503 $(MAKE) stagefeedback-start; \
8504 fi; \
8505 cd $(HOST_SUBDIR)/fixincludes && \
8506 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8507@endif fixincludes-bootstrap
8508
8509
8510
8511
d545f33b 8512
a90ef4bf
JM
8513.PHONY: check-fixincludes maybe-check-fixincludes
8514maybe-check-fixincludes:
8515@if fixincludes
8516maybe-check-fixincludes: check-fixincludes
4fa63067 8517
a90ef4bf 8518check-fixincludes:
0aed8855 8519 @: $(MAKE); $(unstage)
4fa63067
NN
8520 @r=`${PWD_COMMAND}`; export r; \
8521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8522 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 8523 (cd $(HOST_SUBDIR)/fixincludes && \
f91ca6bc 8524 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 8525
a90ef4bf 8526@endif fixincludes
4fa63067 8527
a90ef4bf
JM
8528.PHONY: install-fixincludes maybe-install-fixincludes
8529maybe-install-fixincludes:
8530@if fixincludes
8531maybe-install-fixincludes: install-fixincludes
4fa63067 8532
a90ef4bf 8533install-fixincludes: installdirs
0aed8855 8534 @: $(MAKE); $(unstage)
4fa63067
NN
8535 @r=`${PWD_COMMAND}`; export r; \
8536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8537 $(HOST_EXPORTS) \
a90ef4bf 8538 (cd $(HOST_SUBDIR)/fixincludes && \
2da12f12 8539 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8540
a90ef4bf 8541@endif fixincludes
4fa63067 8542
a90ef4bf
JM
8543.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
8544maybe-install-strip-fixincludes:
8545@if fixincludes
8546maybe-install-strip-fixincludes: install-strip-fixincludes
9b980aa1 8547
a90ef4bf 8548install-strip-fixincludes: installdirs
9b980aa1
RW
8549 @: $(MAKE); $(unstage)
8550 @r=`${PWD_COMMAND}`; export r; \
8551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8552 $(HOST_EXPORTS) \
a90ef4bf 8553 (cd $(HOST_SUBDIR)/fixincludes && \
9b980aa1
RW
8554 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8555
a90ef4bf 8556@endif fixincludes
9b980aa1 8557
56a8fe78 8558# Other targets (info, dvi, pdf, etc.)
4fa63067 8559
a90ef4bf
JM
8560.PHONY: maybe-info-fixincludes info-fixincludes
8561maybe-info-fixincludes:
8562@if fixincludes
8563maybe-info-fixincludes: info-fixincludes
4fa63067 8564
a90ef4bf
JM
8565info-fixincludes: \
8566 configure-fixincludes
a90ef4bf 8567 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8568 r=`${PWD_COMMAND}`; export r; \
8569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8570 $(HOST_EXPORTS) \
b813574b 8571 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8573 done; \
22121df0 8574 echo "Doing info in fixincludes"; \
a90ef4bf 8575 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8578 "RANLIB=$${RANLIB}" \
0c24b341 8579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8580 info) \
2a4cbe27
NN
8581 || exit 1
8582
a90ef4bf 8583@endif fixincludes
2a4cbe27 8584
a90ef4bf
JM
8585.PHONY: maybe-dvi-fixincludes dvi-fixincludes
8586maybe-dvi-fixincludes:
8587@if fixincludes
8588maybe-dvi-fixincludes: dvi-fixincludes
2a4cbe27 8589
a90ef4bf
JM
8590dvi-fixincludes: \
8591 configure-fixincludes
a90ef4bf 8592 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8593 r=`${PWD_COMMAND}`; export r; \
8594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8595 $(HOST_EXPORTS) \
b813574b 8596 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8598 done; \
22121df0 8599 echo "Doing dvi in fixincludes"; \
a90ef4bf 8600 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8603 "RANLIB=$${RANLIB}" \
0c24b341 8604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8605 dvi) \
2a4cbe27
NN
8606 || exit 1
8607
a90ef4bf 8608@endif fixincludes
2a4cbe27 8609
a90ef4bf
JM
8610.PHONY: maybe-pdf-fixincludes pdf-fixincludes
8611maybe-pdf-fixincludes:
8612@if fixincludes
8613maybe-pdf-fixincludes: pdf-fixincludes
56a8fe78 8614
a90ef4bf
JM
8615pdf-fixincludes: \
8616 configure-fixincludes
a90ef4bf 8617 @[ -f ./fixincludes/Makefile ] || exit 0; \
56a8fe78
DD
8618 r=`${PWD_COMMAND}`; export r; \
8619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8620 $(HOST_EXPORTS) \
8621 for flag in $(EXTRA_HOST_FLAGS) ; do \
8622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8623 done; \
22121df0 8624 echo "Doing pdf in fixincludes"; \
a90ef4bf 8625 (cd $(HOST_SUBDIR)/fixincludes && \
56a8fe78
DD
8626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8628 "RANLIB=$${RANLIB}" \
0c24b341 8629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
8630 pdf) \
8631 || exit 1
8632
a90ef4bf 8633@endif fixincludes
56a8fe78 8634
a90ef4bf
JM
8635.PHONY: maybe-html-fixincludes html-fixincludes
8636maybe-html-fixincludes:
8637@if fixincludes
8638maybe-html-fixincludes: html-fixincludes
6d389afc 8639
a90ef4bf
JM
8640html-fixincludes: \
8641 configure-fixincludes
a90ef4bf 8642 @[ -f ./fixincludes/Makefile ] || exit 0; \
6d389afc
MS
8643 r=`${PWD_COMMAND}`; export r; \
8644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
8645 $(HOST_EXPORTS) \
8646 for flag in $(EXTRA_HOST_FLAGS) ; do \
8647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8648 done; \
22121df0 8649 echo "Doing html in fixincludes"; \
a90ef4bf 8650 (cd $(HOST_SUBDIR)/fixincludes && \
6d389afc
MS
8651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8653 "RANLIB=$${RANLIB}" \
0c24b341 8654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
8655 html) \
8656 || exit 1
8657
a90ef4bf 8658@endif fixincludes
6d389afc 8659
a90ef4bf
JM
8660.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
8661maybe-TAGS-fixincludes:
8662@if fixincludes
8663maybe-TAGS-fixincludes: TAGS-fixincludes
2a4cbe27 8664
a90ef4bf
JM
8665# fixincludes doesn't support TAGS.
8666TAGS-fixincludes:
2a4cbe27 8667
a90ef4bf 8668@endif fixincludes
2a4cbe27 8669
a90ef4bf
JM
8670.PHONY: maybe-install-info-fixincludes install-info-fixincludes
8671maybe-install-info-fixincludes:
8672@if fixincludes
8673maybe-install-info-fixincludes: install-info-fixincludes
2a4cbe27 8674
a90ef4bf
JM
8675install-info-fixincludes: \
8676 configure-fixincludes \
8677 info-fixincludes
a90ef4bf 8678 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8679 r=`${PWD_COMMAND}`; export r; \
8680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8681 $(HOST_EXPORTS) \
b813574b 8682 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8684 done; \
22121df0 8685 echo "Doing install-info in fixincludes"; \
a90ef4bf 8686 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8689 "RANLIB=$${RANLIB}" \
0c24b341 8690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8691 install-info) \
2a4cbe27
NN
8692 || exit 1
8693
a90ef4bf 8694@endif fixincludes
2a4cbe27 8695
a90ef4bf
JM
8696.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
8697maybe-install-pdf-fixincludes:
8698@if fixincludes
8699maybe-install-pdf-fixincludes: install-pdf-fixincludes
a3ca38d2 8700
a90ef4bf
JM
8701install-pdf-fixincludes: \
8702 configure-fixincludes \
8703 pdf-fixincludes
a90ef4bf 8704 @[ -f ./fixincludes/Makefile ] || exit 0; \
a3ca38d2
DD
8705 r=`${PWD_COMMAND}`; export r; \
8706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8707 $(HOST_EXPORTS) \
8708 for flag in $(EXTRA_HOST_FLAGS) ; do \
8709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8710 done; \
22121df0 8711 echo "Doing install-pdf in fixincludes"; \
a90ef4bf 8712 (cd $(HOST_SUBDIR)/fixincludes && \
a3ca38d2
DD
8713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8715 "RANLIB=$${RANLIB}" \
0c24b341 8716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8717 install-pdf) \
8718 || exit 1
8719
a90ef4bf 8720@endif fixincludes
a3ca38d2 8721
a90ef4bf
JM
8722.PHONY: maybe-install-html-fixincludes install-html-fixincludes
8723maybe-install-html-fixincludes:
8724@if fixincludes
8725maybe-install-html-fixincludes: install-html-fixincludes
108a6f8e 8726
a90ef4bf
JM
8727install-html-fixincludes: \
8728 configure-fixincludes \
8729 html-fixincludes
a90ef4bf 8730 @[ -f ./fixincludes/Makefile ] || exit 0; \
108a6f8e
CD
8731 r=`${PWD_COMMAND}`; export r; \
8732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8733 $(HOST_EXPORTS) \
8734 for flag in $(EXTRA_HOST_FLAGS) ; do \
8735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8736 done; \
22121df0 8737 echo "Doing install-html in fixincludes"; \
a90ef4bf 8738 (cd $(HOST_SUBDIR)/fixincludes && \
108a6f8e
CD
8739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8741 "RANLIB=$${RANLIB}" \
0c24b341 8742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
8743 install-html) \
8744 || exit 1
8745
a90ef4bf 8746@endif fixincludes
108a6f8e 8747
a90ef4bf
JM
8748.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8749maybe-installcheck-fixincludes:
8750@if fixincludes
8751maybe-installcheck-fixincludes: installcheck-fixincludes
2a4cbe27 8752
a90ef4bf
JM
8753installcheck-fixincludes: \
8754 configure-fixincludes
a90ef4bf 8755 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8756 r=`${PWD_COMMAND}`; export r; \
8757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8758 $(HOST_EXPORTS) \
b813574b 8759 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8761 done; \
22121df0 8762 echo "Doing installcheck in fixincludes"; \
a90ef4bf 8763 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8766 "RANLIB=$${RANLIB}" \
0c24b341 8767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8768 installcheck) \
2a4cbe27
NN
8769 || exit 1
8770
a90ef4bf 8771@endif fixincludes
2a4cbe27 8772
a90ef4bf
JM
8773.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8774maybe-mostlyclean-fixincludes:
8775@if fixincludes
8776maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
2a4cbe27 8777
a90ef4bf 8778mostlyclean-fixincludes:
a90ef4bf 8779 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8780 r=`${PWD_COMMAND}`; export r; \
8781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8782 $(HOST_EXPORTS) \
b813574b 8783 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8785 done; \
22121df0 8786 echo "Doing mostlyclean in fixincludes"; \
a90ef4bf 8787 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8790 "RANLIB=$${RANLIB}" \
0c24b341 8791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8792 mostlyclean) \
2a4cbe27
NN
8793 || exit 1
8794
a90ef4bf 8795@endif fixincludes
2a4cbe27 8796
a90ef4bf
JM
8797.PHONY: maybe-clean-fixincludes clean-fixincludes
8798maybe-clean-fixincludes:
8799@if fixincludes
8800maybe-clean-fixincludes: clean-fixincludes
2a4cbe27 8801
a90ef4bf 8802clean-fixincludes:
a90ef4bf 8803 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8804 r=`${PWD_COMMAND}`; export r; \
8805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8806 $(HOST_EXPORTS) \
b813574b 8807 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8809 done; \
22121df0 8810 echo "Doing clean in fixincludes"; \
a90ef4bf 8811 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8814 "RANLIB=$${RANLIB}" \
0c24b341 8815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8816 clean) \
2a4cbe27
NN
8817 || exit 1
8818
a90ef4bf 8819@endif fixincludes
2a4cbe27 8820
a90ef4bf
JM
8821.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8822maybe-distclean-fixincludes:
8823@if fixincludes
8824maybe-distclean-fixincludes: distclean-fixincludes
2a4cbe27 8825
a90ef4bf 8826distclean-fixincludes:
a90ef4bf 8827 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8828 r=`${PWD_COMMAND}`; export r; \
8829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8830 $(HOST_EXPORTS) \
b813574b 8831 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8833 done; \
22121df0 8834 echo "Doing distclean in fixincludes"; \
a90ef4bf 8835 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8838 "RANLIB=$${RANLIB}" \
0c24b341 8839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8840 distclean) \
2a4cbe27
NN
8841 || exit 1
8842
a90ef4bf 8843@endif fixincludes
2a4cbe27 8844
a90ef4bf
JM
8845.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8846maybe-maintainer-clean-fixincludes:
8847@if fixincludes
8848maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
2a4cbe27 8849
a90ef4bf 8850maintainer-clean-fixincludes:
a90ef4bf 8851 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8852 r=`${PWD_COMMAND}`; export r; \
8853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8854 $(HOST_EXPORTS) \
b813574b 8855 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8857 done; \
22121df0 8858 echo "Doing maintainer-clean in fixincludes"; \
a90ef4bf 8859 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8862 "RANLIB=$${RANLIB}" \
0c24b341 8863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8864 maintainer-clean) \
2a4cbe27
NN
8865 || exit 1
8866
a90ef4bf 8867@endif fixincludes
2a4cbe27 8868
2a4cbe27 8869
a7254363 8870
a90ef4bf
JM
8871.PHONY: configure-flex maybe-configure-flex
8872maybe-configure-flex:
f9806fa5 8873@if gcc-bootstrap
a90ef4bf 8874configure-flex: stage_current
f9806fa5 8875@endif gcc-bootstrap
a90ef4bf
JM
8876@if flex
8877maybe-configure-flex: configure-flex
8878configure-flex:
f9806fa5
DE
8879 @: $(MAKE); $(unstage)
8880 @r=`${PWD_COMMAND}`; export r; \
8881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8882 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
22121df0 8883 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex; \
1f53ca9a 8884 $(HOST_EXPORTS) \
a90ef4bf
JM
8885 echo Configuring in $(HOST_SUBDIR)/flex; \
8886 cd "$(HOST_SUBDIR)/flex" || exit 1; \
f9806fa5
DE
8887 case $(srcdir) in \
8888 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8889 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
f9806fa5
DE
8890 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8891 esac; \
1b6c0831
L
8892 module_srcdir=flex; \
8893 $(SHELL) \
8894 $$s/$$module_srcdir/configure \
8895 --srcdir=$${topdir}/$$module_srcdir \
f9806fa5 8896 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8897 --target=${target_alias} \
f9806fa5 8898 || exit 1
a90ef4bf 8899@endif flex
f9806fa5
DE
8900
8901
8902
8903
8904
a90ef4bf
JM
8905.PHONY: all-flex maybe-all-flex
8906maybe-all-flex:
f9806fa5 8907@if gcc-bootstrap
a90ef4bf 8908all-flex: stage_current
f9806fa5 8909@endif gcc-bootstrap
a90ef4bf
JM
8910@if flex
8911TARGET-flex=all
8912maybe-all-flex: all-flex
8913all-flex: configure-flex
f9806fa5
DE
8914 @: $(MAKE); $(unstage)
8915 @r=`${PWD_COMMAND}`; export r; \
8916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8917 $(HOST_EXPORTS) \
a90ef4bf 8918 (cd $(HOST_SUBDIR)/flex && \
b3676d82 8919 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8920 $(TARGET-flex))
8921@endif flex
f9806fa5
DE
8922
8923
8924
8925
a90ef4bf
JM
8926.PHONY: check-flex maybe-check-flex
8927maybe-check-flex:
8928@if flex
8929maybe-check-flex: check-flex
f9806fa5 8930
a90ef4bf
JM
8931# This module is only tested in a native toolchain.
8932check-flex:
f9806fa5 8933 @: $(MAKE); $(unstage)
22121df0 8934 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
8935 r=`${PWD_COMMAND}`; export r; \
8936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8937 $(HOST_EXPORTS) \
a90ef4bf 8938 (cd $(HOST_SUBDIR)/flex && \
f91ca6bc 8939 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 8940 fi
f9806fa5 8941
a90ef4bf 8942@endif flex
f9806fa5 8943
a90ef4bf
JM
8944.PHONY: install-flex maybe-install-flex
8945maybe-install-flex:
8946@if flex
8947maybe-install-flex: install-flex
f9806fa5 8948
a90ef4bf 8949install-flex: installdirs
f9806fa5
DE
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 && \
f9806fa5
DE
8955 $(MAKE) $(FLAGS_TO_PASS) install)
8956
a90ef4bf 8957@endif flex
f9806fa5 8958
a90ef4bf
JM
8959.PHONY: install-strip-flex maybe-install-strip-flex
8960maybe-install-strip-flex:
8961@if flex
8962maybe-install-strip-flex: install-strip-flex
9b980aa1 8963
a90ef4bf 8964install-strip-flex: installdirs
9b980aa1
RW
8965 @: $(MAKE); $(unstage)
8966 @r=`${PWD_COMMAND}`; export r; \
8967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8968 $(HOST_EXPORTS) \
a90ef4bf 8969 (cd $(HOST_SUBDIR)/flex && \
9b980aa1
RW
8970 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8971
a90ef4bf 8972@endif flex
9b980aa1 8973
f9806fa5
DE
8974# Other targets (info, dvi, pdf, etc.)
8975
a90ef4bf
JM
8976.PHONY: maybe-info-flex info-flex
8977maybe-info-flex:
8978@if flex
8979maybe-info-flex: info-flex
f9806fa5 8980
a90ef4bf
JM
8981info-flex: \
8982 configure-flex
f9806fa5 8983 @: $(MAKE); $(unstage)
a90ef4bf 8984 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
8985 r=`${PWD_COMMAND}`; export r; \
8986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8987 $(HOST_EXPORTS) \
8988 for flag in $(EXTRA_HOST_FLAGS) ; do \
8989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8990 done; \
22121df0 8991 echo "Doing info in flex"; \
a90ef4bf 8992 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8995 "RANLIB=$${RANLIB}" \
8996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
8997 info) \
8998 || exit 1
8999
a90ef4bf 9000@endif flex
f9806fa5 9001
a90ef4bf
JM
9002.PHONY: maybe-dvi-flex dvi-flex
9003maybe-dvi-flex:
9004@if flex
9005maybe-dvi-flex: dvi-flex
f9806fa5 9006
a90ef4bf
JM
9007dvi-flex: \
9008 configure-flex
f9806fa5 9009 @: $(MAKE); $(unstage)
a90ef4bf 9010 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9011 r=`${PWD_COMMAND}`; export r; \
9012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9013 $(HOST_EXPORTS) \
9014 for flag in $(EXTRA_HOST_FLAGS) ; do \
9015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9016 done; \
22121df0 9017 echo "Doing dvi in flex"; \
a90ef4bf 9018 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9021 "RANLIB=$${RANLIB}" \
9022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9023 dvi) \
9024 || exit 1
9025
a90ef4bf 9026@endif flex
f9806fa5 9027
a90ef4bf
JM
9028.PHONY: maybe-pdf-flex pdf-flex
9029maybe-pdf-flex:
9030@if flex
9031maybe-pdf-flex: pdf-flex
f9806fa5 9032
a90ef4bf
JM
9033pdf-flex: \
9034 configure-flex
f9806fa5 9035 @: $(MAKE); $(unstage)
a90ef4bf 9036 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9037 r=`${PWD_COMMAND}`; export r; \
9038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9039 $(HOST_EXPORTS) \
9040 for flag in $(EXTRA_HOST_FLAGS) ; do \
9041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9042 done; \
22121df0 9043 echo "Doing pdf in flex"; \
a90ef4bf 9044 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9047 "RANLIB=$${RANLIB}" \
9048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9049 pdf) \
9050 || exit 1
9051
a90ef4bf 9052@endif flex
f9806fa5 9053
a90ef4bf
JM
9054.PHONY: maybe-html-flex html-flex
9055maybe-html-flex:
9056@if flex
9057maybe-html-flex: html-flex
f9806fa5 9058
a90ef4bf
JM
9059html-flex: \
9060 configure-flex
f9806fa5 9061 @: $(MAKE); $(unstage)
a90ef4bf 9062 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9063 r=`${PWD_COMMAND}`; export r; \
9064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9065 $(HOST_EXPORTS) \
9066 for flag in $(EXTRA_HOST_FLAGS) ; do \
9067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9068 done; \
22121df0 9069 echo "Doing html in flex"; \
a90ef4bf 9070 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9073 "RANLIB=$${RANLIB}" \
9074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9075 html) \
9076 || exit 1
9077
a90ef4bf 9078@endif flex
f9806fa5 9079
a90ef4bf
JM
9080.PHONY: maybe-TAGS-flex TAGS-flex
9081maybe-TAGS-flex:
9082@if flex
9083maybe-TAGS-flex: TAGS-flex
f9806fa5 9084
a90ef4bf
JM
9085TAGS-flex: \
9086 configure-flex
f9806fa5 9087 @: $(MAKE); $(unstage)
a90ef4bf 9088 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9089 r=`${PWD_COMMAND}`; export r; \
9090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9091 $(HOST_EXPORTS) \
9092 for flag in $(EXTRA_HOST_FLAGS) ; do \
9093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9094 done; \
22121df0 9095 echo "Doing TAGS in flex"; \
a90ef4bf 9096 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9099 "RANLIB=$${RANLIB}" \
9100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9101 TAGS) \
9102 || exit 1
9103
a90ef4bf 9104@endif flex
f9806fa5 9105
a90ef4bf
JM
9106.PHONY: maybe-install-info-flex install-info-flex
9107maybe-install-info-flex:
9108@if flex
9109maybe-install-info-flex: install-info-flex
f9806fa5 9110
a90ef4bf
JM
9111install-info-flex: \
9112 configure-flex \
9113 info-flex
f9806fa5 9114 @: $(MAKE); $(unstage)
a90ef4bf 9115 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9116 r=`${PWD_COMMAND}`; export r; \
9117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9118 $(HOST_EXPORTS) \
9119 for flag in $(EXTRA_HOST_FLAGS) ; do \
9120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9121 done; \
22121df0 9122 echo "Doing install-info in flex"; \
a90ef4bf 9123 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9126 "RANLIB=$${RANLIB}" \
9127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9128 install-info) \
9129 || exit 1
9130
a90ef4bf 9131@endif flex
f9806fa5 9132
a90ef4bf
JM
9133.PHONY: maybe-install-pdf-flex install-pdf-flex
9134maybe-install-pdf-flex:
9135@if flex
9136maybe-install-pdf-flex: install-pdf-flex
f9806fa5 9137
a90ef4bf
JM
9138install-pdf-flex: \
9139 configure-flex \
9140 pdf-flex
f9806fa5 9141 @: $(MAKE); $(unstage)
a90ef4bf 9142 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9143 r=`${PWD_COMMAND}`; export r; \
9144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9145 $(HOST_EXPORTS) \
9146 for flag in $(EXTRA_HOST_FLAGS) ; do \
9147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9148 done; \
22121df0 9149 echo "Doing install-pdf in flex"; \
a90ef4bf 9150 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9153 "RANLIB=$${RANLIB}" \
9154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9155 install-pdf) \
9156 || exit 1
9157
a90ef4bf 9158@endif flex
f9806fa5 9159
a90ef4bf
JM
9160.PHONY: maybe-install-html-flex install-html-flex
9161maybe-install-html-flex:
9162@if flex
9163maybe-install-html-flex: install-html-flex
f9806fa5 9164
a90ef4bf
JM
9165install-html-flex: \
9166 configure-flex \
9167 html-flex
f9806fa5 9168 @: $(MAKE); $(unstage)
a90ef4bf 9169 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9170 r=`${PWD_COMMAND}`; export r; \
9171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9172 $(HOST_EXPORTS) \
9173 for flag in $(EXTRA_HOST_FLAGS) ; do \
9174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9175 done; \
22121df0 9176 echo "Doing install-html in flex"; \
a90ef4bf 9177 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9180 "RANLIB=$${RANLIB}" \
9181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9182 install-html) \
9183 || exit 1
9184
a90ef4bf 9185@endif flex
f9806fa5 9186
a90ef4bf
JM
9187.PHONY: maybe-installcheck-flex installcheck-flex
9188maybe-installcheck-flex:
9189@if flex
9190maybe-installcheck-flex: installcheck-flex
f9806fa5 9191
a90ef4bf
JM
9192installcheck-flex: \
9193 configure-flex
f9806fa5 9194 @: $(MAKE); $(unstage)
a90ef4bf 9195 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9196 r=`${PWD_COMMAND}`; export r; \
9197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9198 $(HOST_EXPORTS) \
9199 for flag in $(EXTRA_HOST_FLAGS) ; do \
9200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9201 done; \
22121df0 9202 echo "Doing installcheck in flex"; \
a90ef4bf 9203 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9206 "RANLIB=$${RANLIB}" \
9207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9208 installcheck) \
9209 || exit 1
9210
a90ef4bf 9211@endif flex
f9806fa5 9212
a90ef4bf
JM
9213.PHONY: maybe-mostlyclean-flex mostlyclean-flex
9214maybe-mostlyclean-flex:
9215@if flex
9216maybe-mostlyclean-flex: mostlyclean-flex
f9806fa5 9217
a90ef4bf 9218mostlyclean-flex:
f9806fa5 9219 @: $(MAKE); $(unstage)
a90ef4bf 9220 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9221 r=`${PWD_COMMAND}`; export r; \
9222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9223 $(HOST_EXPORTS) \
9224 for flag in $(EXTRA_HOST_FLAGS) ; do \
9225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9226 done; \
22121df0 9227 echo "Doing mostlyclean in flex"; \
a90ef4bf 9228 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9231 "RANLIB=$${RANLIB}" \
9232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9233 mostlyclean) \
9234 || exit 1
9235
a90ef4bf 9236@endif flex
f9806fa5 9237
a90ef4bf
JM
9238.PHONY: maybe-clean-flex clean-flex
9239maybe-clean-flex:
9240@if flex
9241maybe-clean-flex: clean-flex
f9806fa5 9242
a90ef4bf 9243clean-flex:
f9806fa5 9244 @: $(MAKE); $(unstage)
a90ef4bf 9245 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9246 r=`${PWD_COMMAND}`; export r; \
9247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9248 $(HOST_EXPORTS) \
9249 for flag in $(EXTRA_HOST_FLAGS) ; do \
9250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9251 done; \
22121df0 9252 echo "Doing clean in flex"; \
a90ef4bf 9253 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9256 "RANLIB=$${RANLIB}" \
9257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9258 clean) \
9259 || exit 1
9260
a90ef4bf 9261@endif flex
f9806fa5 9262
a90ef4bf
JM
9263.PHONY: maybe-distclean-flex distclean-flex
9264maybe-distclean-flex:
9265@if flex
9266maybe-distclean-flex: distclean-flex
f9806fa5 9267
a90ef4bf 9268distclean-flex:
f9806fa5 9269 @: $(MAKE); $(unstage)
a90ef4bf 9270 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9271 r=`${PWD_COMMAND}`; export r; \
9272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9273 $(HOST_EXPORTS) \
9274 for flag in $(EXTRA_HOST_FLAGS) ; do \
9275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9276 done; \
22121df0 9277 echo "Doing distclean in flex"; \
a90ef4bf 9278 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9281 "RANLIB=$${RANLIB}" \
9282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9283 distclean) \
9284 || exit 1
9285
a90ef4bf 9286@endif flex
f9806fa5 9287
a90ef4bf
JM
9288.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
9289maybe-maintainer-clean-flex:
9290@if flex
9291maybe-maintainer-clean-flex: maintainer-clean-flex
f9806fa5 9292
a90ef4bf 9293maintainer-clean-flex:
f9806fa5 9294 @: $(MAKE); $(unstage)
a90ef4bf 9295 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9296 r=`${PWD_COMMAND}`; export r; \
9297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9298 $(HOST_EXPORTS) \
9299 for flag in $(EXTRA_HOST_FLAGS) ; do \
9300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9301 done; \
22121df0 9302 echo "Doing maintainer-clean in flex"; \
a90ef4bf 9303 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9306 "RANLIB=$${RANLIB}" \
9307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9308 maintainer-clean) \
9309 || exit 1
9310
a90ef4bf 9311@endif flex
f9806fa5
DE
9312
9313
9314
a90ef4bf
JM
9315.PHONY: configure-gas maybe-configure-gas
9316maybe-configure-gas:
4f0ef2d8 9317@if gcc-bootstrap
a90ef4bf 9318configure-gas: stage_current
4f0ef2d8 9319@endif gcc-bootstrap
a90ef4bf
JM
9320@if gas
9321maybe-configure-gas: configure-gas
9322configure-gas:
c52c6897 9323 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9325 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
22121df0 9326 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
1f53ca9a 9327 $(HOST_EXPORTS) \
a90ef4bf
JM
9328 echo Configuring in $(HOST_SUBDIR)/gas; \
9329 cd "$(HOST_SUBDIR)/gas" || exit 1; \
4fa63067 9330 case $(srcdir) in \
b00612cc 9331 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9332 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
b00612cc 9333 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 9334 esac; \
1b6c0831
L
9335 module_srcdir=gas; \
9336 $(SHELL) \
9337 $$s/$$module_srcdir/configure \
9338 --srcdir=$${topdir}/$$module_srcdir \
4b900473 9339 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9340 --target=${target_alias} \
4fa63067 9341 || exit 1
a90ef4bf 9342@endif gas
a7254363 9343
d545f33b
PB
9344
9345
a90ef4bf
JM
9346.PHONY: configure-stage1-gas maybe-configure-stage1-gas
9347maybe-configure-stage1-gas:
9348@if gas-bootstrap
9349maybe-configure-stage1-gas: configure-stage1-gas
9350configure-stage1-gas:
9351 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9352 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9353 @r=`${PWD_COMMAND}`; export r; \
9354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9355 TFLAGS="$(STAGE1_TFLAGS)"; \
9356 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9357 $(HOST_EXPORTS) \
9358 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
9359 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
9360 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
9361 echo Configuring stage 1 in $(HOST_SUBDIR)/gas; \
9362 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9363 cd $(HOST_SUBDIR)/gas || exit 1; \
9364 case $(srcdir) in \
9365 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9366 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9367 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9368 esac; \
1b6c0831
L
9369 module_srcdir=gas; \
9370 $(SHELL) $$s/$$module_srcdir/configure \
9371 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9372 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9373 --target=${target_alias} \
9374 \
a90ef4bf
JM
9375 $(STAGE1_CONFIGURE_FLAGS)
9376@endif gas-bootstrap
4fa63067 9377
a90ef4bf
JM
9378.PHONY: configure-stage2-gas maybe-configure-stage2-gas
9379maybe-configure-stage2-gas:
9380@if gas-bootstrap
9381maybe-configure-stage2-gas: configure-stage2-gas
9382configure-stage2-gas:
9383 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9384 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9385 @r=`${PWD_COMMAND}`; export r; \
9386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9387 TFLAGS="$(STAGE2_TFLAGS)"; \
9388 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9389 $(HOST_EXPORTS) \
a90ef4bf
JM
9390 $(POSTSTAGE1_HOST_EXPORTS) \
9391 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
9392 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
9393 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9394 echo Configuring stage 2 in $(HOST_SUBDIR)/gas; \
9395 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9396 cd $(HOST_SUBDIR)/gas || exit 1; \
9397 case $(srcdir) in \
9398 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9399 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9400 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9401 esac; \
1b6c0831
L
9402 module_srcdir=gas; \
9403 $(SHELL) $$s/$$module_srcdir/configure \
9404 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9405 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9406 --target=${target_alias} \
22121df0 9407 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9408 $(STAGE2_CONFIGURE_FLAGS)
9409@endif gas-bootstrap
4fa63067 9410
a90ef4bf
JM
9411.PHONY: configure-stage3-gas maybe-configure-stage3-gas
9412maybe-configure-stage3-gas:
9413@if gas-bootstrap
9414maybe-configure-stage3-gas: configure-stage3-gas
9415configure-stage3-gas:
9416 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9417 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9418 @r=`${PWD_COMMAND}`; export r; \
9419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9420 TFLAGS="$(STAGE3_TFLAGS)"; \
9421 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9422 $(HOST_EXPORTS) \
a90ef4bf
JM
9423 $(POSTSTAGE1_HOST_EXPORTS) \
9424 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
9425 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
9426 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9427 echo Configuring stage 3 in $(HOST_SUBDIR)/gas; \
9428 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9429 cd $(HOST_SUBDIR)/gas || exit 1; \
9430 case $(srcdir) in \
9431 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9432 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9433 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9434 esac; \
1b6c0831
L
9435 module_srcdir=gas; \
9436 $(SHELL) $$s/$$module_srcdir/configure \
9437 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9438 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9439 --target=${target_alias} \
22121df0 9440 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9441 $(STAGE3_CONFIGURE_FLAGS)
9442@endif gas-bootstrap
9b980aa1 9443
a90ef4bf
JM
9444.PHONY: configure-stage4-gas maybe-configure-stage4-gas
9445maybe-configure-stage4-gas:
9446@if gas-bootstrap
9447maybe-configure-stage4-gas: configure-stage4-gas
9448configure-stage4-gas:
9449 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9450 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9b980aa1
RW
9451 @r=`${PWD_COMMAND}`; export r; \
9452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9453 TFLAGS="$(STAGE4_TFLAGS)"; \
9454 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9b980aa1 9455 $(HOST_EXPORTS) \
a90ef4bf
JM
9456 $(POSTSTAGE1_HOST_EXPORTS) \
9457 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
9458 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
9459 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9460 echo Configuring stage 4 in $(HOST_SUBDIR)/gas; \
9461 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9462 cd $(HOST_SUBDIR)/gas || exit 1; \
9463 case $(srcdir) in \
9464 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9465 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9466 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9467 esac; \
1b6c0831
L
9468 module_srcdir=gas; \
9469 $(SHELL) $$s/$$module_srcdir/configure \
9470 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9471 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9472 --target=${target_alias} \
22121df0 9473 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9474 $(STAGE4_CONFIGURE_FLAGS)
9475@endif gas-bootstrap
4fa63067 9476
a90ef4bf
JM
9477.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
9478maybe-configure-stageprofile-gas:
9479@if gas-bootstrap
9480maybe-configure-stageprofile-gas: configure-stageprofile-gas
9481configure-stageprofile-gas:
9482 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9483 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9484 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9486 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9487 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9488 $(HOST_EXPORTS) \
a90ef4bf
JM
9489 $(POSTSTAGE1_HOST_EXPORTS) \
9490 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
9491 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
9492 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9493 echo Configuring stage profile in $(HOST_SUBDIR)/gas; \
9494 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9495 cd $(HOST_SUBDIR)/gas || exit 1; \
9496 case $(srcdir) in \
9497 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9498 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9499 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9500 esac; \
1b6c0831
L
9501 module_srcdir=gas; \
9502 $(SHELL) $$s/$$module_srcdir/configure \
9503 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9504 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9505 --target=${target_alias} \
22121df0 9506 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9507 $(STAGEprofile_CONFIGURE_FLAGS)
9508@endif gas-bootstrap
2a4cbe27 9509
a90ef4bf
JM
9510.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
9511maybe-configure-stagefeedback-gas:
9512@if gas-bootstrap
9513maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
9514configure-stagefeedback-gas:
9515 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9516 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9517 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9519 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9520 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9521 $(HOST_EXPORTS) \
a90ef4bf
JM
9522 $(POSTSTAGE1_HOST_EXPORTS) \
9523 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9524 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9525 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9526 echo Configuring stage feedback in $(HOST_SUBDIR)/gas; \
9527 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9528 cd $(HOST_SUBDIR)/gas || exit 1; \
9529 case $(srcdir) in \
9530 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9531 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9532 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9533 esac; \
1b6c0831
L
9534 module_srcdir=gas; \
9535 $(SHELL) $$s/$$module_srcdir/configure \
9536 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9537 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9538 --target=${target_alias} \
22121df0 9539 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9540 $(STAGEfeedback_CONFIGURE_FLAGS)
9541@endif gas-bootstrap
2a4cbe27 9542
56a8fe78 9543
56a8fe78 9544
56a8fe78 9545
6d389afc 9546
a90ef4bf
JM
9547.PHONY: all-gas maybe-all-gas
9548maybe-all-gas:
9549@if gcc-bootstrap
9550all-gas: stage_current
9551@endif gcc-bootstrap
9552@if gas
9553TARGET-gas=all
9554maybe-all-gas: all-gas
9555all-gas: configure-gas
9556 @r=`${PWD_COMMAND}`; export r; \
6d389afc 9557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9558 $(HOST_EXPORTS) \
9559 (cd $(HOST_SUBDIR)/gas && \
b3676d82 9560 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9561 $(TARGET-gas))
9562@endif gas
6d389afc 9563
6d389afc 9564
2a4cbe27 9565
a90ef4bf
JM
9566.PHONY: all-stage1-gas maybe-all-stage1-gas
9567.PHONY: clean-stage1-gas maybe-clean-stage1-gas
9568maybe-all-stage1-gas:
9569maybe-clean-stage1-gas:
9570@if gas-bootstrap
9571maybe-all-stage1-gas: all-stage1-gas
9572all-stage1: all-stage1-gas
9573TARGET-stage1-gas = $(TARGET-gas)
9574all-stage1-gas: configure-stage1-gas
9575 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9576 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9578 TFLAGS="$(STAGE1_TFLAGS)"; \
9579 $(HOST_EXPORTS) \
9580 cd $(HOST_SUBDIR)/gas && \
05a13254 9581 \
a90ef4bf
JM
9582 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9583 CFLAGS="$(STAGE1_CFLAGS)" \
9584 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9585 LIBCFLAGS="$(LIBCFLAGS)" \
9586 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9587 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9588 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
9589 $(EXTRA_HOST_FLAGS) \
9590 $(STAGE1_FLAGS_TO_PASS) \
05a13254 9591 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 9592 $(TARGET-stage1-gas)
2a4cbe27 9593
a90ef4bf
JM
9594maybe-clean-stage1-gas: clean-stage1-gas
9595clean-stage1: clean-stage1-gas
9596clean-stage1-gas:
9597 @if [ $(current_stage) = stage1 ]; then \
9598 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9599 else \
9600 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
9601 $(MAKE) stage1-start; \
9602 fi; \
9603 cd $(HOST_SUBDIR)/gas && \
9604 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 9605 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9606@endif gas-bootstrap
2a4cbe27 9607
2a4cbe27 9608
a90ef4bf
JM
9609.PHONY: all-stage2-gas maybe-all-stage2-gas
9610.PHONY: clean-stage2-gas maybe-clean-stage2-gas
9611maybe-all-stage2-gas:
9612maybe-clean-stage2-gas:
9613@if gas-bootstrap
9614maybe-all-stage2-gas: all-stage2-gas
9615all-stage2: all-stage2-gas
9616TARGET-stage2-gas = $(TARGET-gas)
9617all-stage2-gas: configure-stage2-gas
9618 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9619 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9621 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 9622 $(HOST_EXPORTS) \
a90ef4bf
JM
9623 $(POSTSTAGE1_HOST_EXPORTS) \
9624 cd $(HOST_SUBDIR)/gas && \
05a13254 9625 \
a90ef4bf
JM
9626 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9627 CFLAGS="$(STAGE2_CFLAGS)" \
9628 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9629 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9630 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9631 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9632 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9633 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9634 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 9635 $(TARGET-stage2-gas)
2a4cbe27 9636
a90ef4bf
JM
9637maybe-clean-stage2-gas: clean-stage2-gas
9638clean-stage2: clean-stage2-gas
9639clean-stage2-gas:
9640 @if [ $(current_stage) = stage2 ]; then \
9641 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9642 else \
9643 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
9644 $(MAKE) stage2-start; \
9645 fi; \
9646 cd $(HOST_SUBDIR)/gas && \
b3676d82 9647 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9648@endif gas-bootstrap
2a4cbe27 9649
2a4cbe27 9650
a90ef4bf
JM
9651.PHONY: all-stage3-gas maybe-all-stage3-gas
9652.PHONY: clean-stage3-gas maybe-clean-stage3-gas
9653maybe-all-stage3-gas:
9654maybe-clean-stage3-gas:
9655@if gas-bootstrap
9656maybe-all-stage3-gas: all-stage3-gas
9657all-stage3: all-stage3-gas
9658TARGET-stage3-gas = $(TARGET-gas)
9659all-stage3-gas: configure-stage3-gas
9660 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9661 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9663 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 9664 $(HOST_EXPORTS) \
a90ef4bf
JM
9665 $(POSTSTAGE1_HOST_EXPORTS) \
9666 cd $(HOST_SUBDIR)/gas && \
05a13254 9667 \
a90ef4bf
JM
9668 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9669 CFLAGS="$(STAGE3_CFLAGS)" \
9670 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9671 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9672 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9673 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9674 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9675 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9676 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 9677 $(TARGET-stage3-gas)
2a4cbe27 9678
a90ef4bf
JM
9679maybe-clean-stage3-gas: clean-stage3-gas
9680clean-stage3: clean-stage3-gas
9681clean-stage3-gas:
9682 @if [ $(current_stage) = stage3 ]; then \
9683 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9684 else \
9685 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
9686 $(MAKE) stage3-start; \
9687 fi; \
9688 cd $(HOST_SUBDIR)/gas && \
b3676d82 9689 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9690@endif gas-bootstrap
2a4cbe27 9691
2a4cbe27 9692
a90ef4bf
JM
9693.PHONY: all-stage4-gas maybe-all-stage4-gas
9694.PHONY: clean-stage4-gas maybe-clean-stage4-gas
9695maybe-all-stage4-gas:
9696maybe-clean-stage4-gas:
9697@if gas-bootstrap
9698maybe-all-stage4-gas: all-stage4-gas
9699all-stage4: all-stage4-gas
9700TARGET-stage4-gas = $(TARGET-gas)
9701all-stage4-gas: configure-stage4-gas
9702 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9703 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9705 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 9706 $(HOST_EXPORTS) \
a90ef4bf
JM
9707 $(POSTSTAGE1_HOST_EXPORTS) \
9708 cd $(HOST_SUBDIR)/gas && \
05a13254 9709 \
a90ef4bf
JM
9710 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9711 CFLAGS="$(STAGE4_CFLAGS)" \
9712 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9713 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9714 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9715 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9716 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9717 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9718 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 9719 $(TARGET-stage4-gas)
2a4cbe27 9720
a90ef4bf
JM
9721maybe-clean-stage4-gas: clean-stage4-gas
9722clean-stage4: clean-stage4-gas
9723clean-stage4-gas:
9724 @if [ $(current_stage) = stage4 ]; then \
9725 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9726 else \
9727 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
9728 $(MAKE) stage4-start; \
9729 fi; \
9730 cd $(HOST_SUBDIR)/gas && \
b3676d82 9731 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9732@endif gas-bootstrap
2a4cbe27 9733
2a4cbe27 9734
a90ef4bf
JM
9735.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
9736.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9737maybe-all-stageprofile-gas:
9738maybe-clean-stageprofile-gas:
9739@if gas-bootstrap
9740maybe-all-stageprofile-gas: all-stageprofile-gas
9741all-stageprofile: all-stageprofile-gas
9742TARGET-stageprofile-gas = $(TARGET-gas)
9743all-stageprofile-gas: configure-stageprofile-gas
9744 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9745 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9747 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 9748 $(HOST_EXPORTS) \
a90ef4bf
JM
9749 $(POSTSTAGE1_HOST_EXPORTS) \
9750 cd $(HOST_SUBDIR)/gas && \
05a13254 9751 \
a90ef4bf
JM
9752 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9753 CFLAGS="$(STAGEprofile_CFLAGS)" \
9754 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9755 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9756 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9757 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9758 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9759 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9760 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 9761 $(TARGET-stageprofile-gas)
4fa63067 9762
a90ef4bf
JM
9763maybe-clean-stageprofile-gas: clean-stageprofile-gas
9764clean-stageprofile: clean-stageprofile-gas
9765clean-stageprofile-gas:
9766 @if [ $(current_stage) = stageprofile ]; then \
9767 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9768 else \
9769 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
9770 $(MAKE) stageprofile-start; \
9771 fi; \
9772 cd $(HOST_SUBDIR)/gas && \
b3676d82 9773 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9774@endif gas-bootstrap
4fa63067 9775
a7254363 9776
a90ef4bf
JM
9777.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
9778.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9779maybe-all-stagefeedback-gas:
9780maybe-clean-stagefeedback-gas:
9781@if gas-bootstrap
9782maybe-all-stagefeedback-gas: all-stagefeedback-gas
9783all-stagefeedback: all-stagefeedback-gas
9784TARGET-stagefeedback-gas = $(TARGET-gas)
9785all-stagefeedback-gas: configure-stagefeedback-gas
9786 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 9787 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9789 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9790 $(HOST_EXPORTS) \
9791 $(POSTSTAGE1_HOST_EXPORTS) \
9792 cd $(HOST_SUBDIR)/gas && \
05a13254 9793 \
a90ef4bf
JM
9794 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9795 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9796 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9797 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9798 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9799 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9800 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9801 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9802 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 9803 $(TARGET-stagefeedback-gas)
d545f33b 9804
a90ef4bf
JM
9805maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
9806clean-stagefeedback: clean-stagefeedback-gas
9807clean-stagefeedback-gas:
9808 @if [ $(current_stage) = stagefeedback ]; then \
9809 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9810 else \
9811 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
9812 $(MAKE) stagefeedback-start; \
9813 fi; \
9814 cd $(HOST_SUBDIR)/gas && \
b3676d82 9815 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9816@endif gas-bootstrap
d545f33b 9817
2a4cbe27 9818
a7254363 9819
d545f33b
PB
9820
9821
a90ef4bf
JM
9822.PHONY: check-gas maybe-check-gas
9823maybe-check-gas:
9824@if gas
9825maybe-check-gas: check-gas
2a4cbe27 9826
a90ef4bf 9827check-gas:
0aed8855 9828 @: $(MAKE); $(unstage)
4fa63067 9829 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 9831 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 9832 (cd $(HOST_SUBDIR)/gas && \
f91ca6bc 9833 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 9834
a90ef4bf 9835@endif gas
2a4cbe27 9836
a90ef4bf
JM
9837.PHONY: install-gas maybe-install-gas
9838maybe-install-gas:
9839@if gas
9840maybe-install-gas: install-gas
2a4cbe27 9841
a90ef4bf 9842install-gas: installdirs
0aed8855 9843 @: $(MAKE); $(unstage)
4fa63067 9844 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9846 $(HOST_EXPORTS) \
a90ef4bf 9847 (cd $(HOST_SUBDIR)/gas && \
2da12f12 9848 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9849
a90ef4bf 9850@endif gas
2a4cbe27 9851
a90ef4bf
JM
9852.PHONY: install-strip-gas maybe-install-strip-gas
9853maybe-install-strip-gas:
9854@if gas
9855maybe-install-strip-gas: install-strip-gas
9b980aa1 9856
a90ef4bf 9857install-strip-gas: installdirs
9b980aa1
RW
9858 @: $(MAKE); $(unstage)
9859 @r=`${PWD_COMMAND}`; export r; \
9860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9861 $(HOST_EXPORTS) \
a90ef4bf 9862 (cd $(HOST_SUBDIR)/gas && \
9b980aa1
RW
9863 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9864
a90ef4bf 9865@endif gas
9b980aa1 9866
56a8fe78 9867# Other targets (info, dvi, pdf, etc.)
2a4cbe27 9868
a90ef4bf
JM
9869.PHONY: maybe-info-gas info-gas
9870maybe-info-gas:
9871@if gas
9872maybe-info-gas: info-gas
2a4cbe27 9873
a90ef4bf
JM
9874info-gas: \
9875 configure-gas
9876 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9877 r=`${PWD_COMMAND}`; export r; \
9878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9879 $(HOST_EXPORTS) \
b813574b 9880 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9882 done; \
22121df0 9883 echo "Doing info in gas"; \
a90ef4bf 9884 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9887 "RANLIB=$${RANLIB}" \
0c24b341 9888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9889 info) \
2a4cbe27
NN
9890 || exit 1
9891
a90ef4bf 9892@endif gas
2a4cbe27 9893
a90ef4bf
JM
9894.PHONY: maybe-dvi-gas dvi-gas
9895maybe-dvi-gas:
9896@if gas
9897maybe-dvi-gas: dvi-gas
2a4cbe27 9898
a90ef4bf
JM
9899dvi-gas: \
9900 configure-gas
9901 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9902 r=`${PWD_COMMAND}`; export r; \
9903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9904 $(HOST_EXPORTS) \
b813574b 9905 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9907 done; \
22121df0 9908 echo "Doing dvi in gas"; \
a90ef4bf 9909 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9912 "RANLIB=$${RANLIB}" \
0c24b341 9913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9914 dvi) \
2a4cbe27
NN
9915 || exit 1
9916
a90ef4bf 9917@endif gas
2a4cbe27 9918
a90ef4bf
JM
9919.PHONY: maybe-pdf-gas pdf-gas
9920maybe-pdf-gas:
9921@if gas
9922maybe-pdf-gas: pdf-gas
56a8fe78 9923
a90ef4bf
JM
9924pdf-gas: \
9925 configure-gas
9926 @[ -f ./gas/Makefile ] || exit 0; \
56a8fe78
DD
9927 r=`${PWD_COMMAND}`; export r; \
9928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9929 $(HOST_EXPORTS) \
9930 for flag in $(EXTRA_HOST_FLAGS) ; do \
9931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9932 done; \
22121df0 9933 echo "Doing pdf in gas"; \
a90ef4bf 9934 (cd $(HOST_SUBDIR)/gas && \
56a8fe78
DD
9935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9937 "RANLIB=$${RANLIB}" \
0c24b341 9938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
9939 pdf) \
9940 || exit 1
9941
a90ef4bf 9942@endif gas
56a8fe78 9943
a90ef4bf
JM
9944.PHONY: maybe-html-gas html-gas
9945maybe-html-gas:
9946@if gas
9947maybe-html-gas: html-gas
6d389afc 9948
a90ef4bf
JM
9949html-gas: \
9950 configure-gas
9951 @[ -f ./gas/Makefile ] || exit 0; \
6d389afc
MS
9952 r=`${PWD_COMMAND}`; export r; \
9953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
9954 $(HOST_EXPORTS) \
9955 for flag in $(EXTRA_HOST_FLAGS) ; do \
9956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9957 done; \
22121df0 9958 echo "Doing html in gas"; \
a90ef4bf 9959 (cd $(HOST_SUBDIR)/gas && \
6d389afc
MS
9960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9962 "RANLIB=$${RANLIB}" \
0c24b341 9963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
9964 html) \
9965 || exit 1
9966
a90ef4bf 9967@endif gas
6d389afc 9968
a90ef4bf
JM
9969.PHONY: maybe-TAGS-gas TAGS-gas
9970maybe-TAGS-gas:
9971@if gas
9972maybe-TAGS-gas: TAGS-gas
2a4cbe27 9973
a90ef4bf
JM
9974TAGS-gas: \
9975 configure-gas
9976 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9977 r=`${PWD_COMMAND}`; export r; \
9978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9979 $(HOST_EXPORTS) \
b813574b 9980 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9982 done; \
22121df0 9983 echo "Doing TAGS in gas"; \
a90ef4bf 9984 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9987 "RANLIB=$${RANLIB}" \
0c24b341 9988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9989 TAGS) \
2a4cbe27
NN
9990 || exit 1
9991
a90ef4bf 9992@endif gas
2a4cbe27 9993
a90ef4bf
JM
9994.PHONY: maybe-install-info-gas install-info-gas
9995maybe-install-info-gas:
9996@if gas
9997maybe-install-info-gas: install-info-gas
2a4cbe27 9998
a90ef4bf
JM
9999install-info-gas: \
10000 configure-gas \
10001 info-gas
10002 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10003 r=`${PWD_COMMAND}`; export r; \
10004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10005 $(HOST_EXPORTS) \
b813574b 10006 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10008 done; \
22121df0 10009 echo "Doing install-info in gas"; \
a90ef4bf 10010 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10013 "RANLIB=$${RANLIB}" \
0c24b341 10014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10015 install-info) \
2a4cbe27
NN
10016 || exit 1
10017
a90ef4bf 10018@endif gas
2a4cbe27 10019
a90ef4bf
JM
10020.PHONY: maybe-install-pdf-gas install-pdf-gas
10021maybe-install-pdf-gas:
10022@if gas
10023maybe-install-pdf-gas: install-pdf-gas
a3ca38d2 10024
a90ef4bf
JM
10025install-pdf-gas: \
10026 configure-gas \
10027 pdf-gas
10028 @[ -f ./gas/Makefile ] || exit 0; \
a3ca38d2
DD
10029 r=`${PWD_COMMAND}`; export r; \
10030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10031 $(HOST_EXPORTS) \
10032 for flag in $(EXTRA_HOST_FLAGS) ; do \
10033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10034 done; \
22121df0 10035 echo "Doing install-pdf in gas"; \
a90ef4bf 10036 (cd $(HOST_SUBDIR)/gas && \
a3ca38d2
DD
10037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10039 "RANLIB=$${RANLIB}" \
0c24b341 10040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10041 install-pdf) \
10042 || exit 1
10043
a90ef4bf 10044@endif gas
a3ca38d2 10045
a90ef4bf
JM
10046.PHONY: maybe-install-html-gas install-html-gas
10047maybe-install-html-gas:
10048@if gas
10049maybe-install-html-gas: install-html-gas
108a6f8e 10050
a90ef4bf
JM
10051install-html-gas: \
10052 configure-gas \
10053 html-gas
10054 @[ -f ./gas/Makefile ] || exit 0; \
108a6f8e
CD
10055 r=`${PWD_COMMAND}`; export r; \
10056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10057 $(HOST_EXPORTS) \
10058 for flag in $(EXTRA_HOST_FLAGS) ; do \
10059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10060 done; \
22121df0 10061 echo "Doing install-html in gas"; \
a90ef4bf 10062 (cd $(HOST_SUBDIR)/gas && \
108a6f8e
CD
10063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10065 "RANLIB=$${RANLIB}" \
0c24b341 10066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10067 install-html) \
10068 || exit 1
10069
a90ef4bf 10070@endif gas
108a6f8e 10071
a90ef4bf
JM
10072.PHONY: maybe-installcheck-gas installcheck-gas
10073maybe-installcheck-gas:
10074@if gas
10075maybe-installcheck-gas: installcheck-gas
2a4cbe27 10076
a90ef4bf
JM
10077installcheck-gas: \
10078 configure-gas
10079 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10080 r=`${PWD_COMMAND}`; export r; \
10081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10082 $(HOST_EXPORTS) \
b813574b 10083 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10085 done; \
22121df0 10086 echo "Doing installcheck in gas"; \
a90ef4bf 10087 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10090 "RANLIB=$${RANLIB}" \
0c24b341 10091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10092 installcheck) \
2a4cbe27
NN
10093 || exit 1
10094
a90ef4bf 10095@endif gas
2a4cbe27 10096
a90ef4bf
JM
10097.PHONY: maybe-mostlyclean-gas mostlyclean-gas
10098maybe-mostlyclean-gas:
10099@if gas
10100maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 10101
a90ef4bf
JM
10102mostlyclean-gas:
10103 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10104 r=`${PWD_COMMAND}`; export r; \
10105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10106 $(HOST_EXPORTS) \
b813574b 10107 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10109 done; \
22121df0 10110 echo "Doing mostlyclean in gas"; \
a90ef4bf 10111 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10114 "RANLIB=$${RANLIB}" \
0c24b341 10115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10116 mostlyclean) \
2a4cbe27
NN
10117 || exit 1
10118
a90ef4bf 10119@endif gas
2a4cbe27 10120
a90ef4bf
JM
10121.PHONY: maybe-clean-gas clean-gas
10122maybe-clean-gas:
10123@if gas
10124maybe-clean-gas: clean-gas
2a4cbe27 10125
a90ef4bf
JM
10126clean-gas:
10127 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10128 r=`${PWD_COMMAND}`; export r; \
10129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10130 $(HOST_EXPORTS) \
b813574b 10131 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10133 done; \
22121df0 10134 echo "Doing clean in gas"; \
a90ef4bf 10135 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10138 "RANLIB=$${RANLIB}" \
0c24b341 10139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10140 clean) \
2a4cbe27
NN
10141 || exit 1
10142
a90ef4bf 10143@endif gas
2a4cbe27 10144
a90ef4bf
JM
10145.PHONY: maybe-distclean-gas distclean-gas
10146maybe-distclean-gas:
10147@if gas
10148maybe-distclean-gas: distclean-gas
2a4cbe27 10149
a90ef4bf
JM
10150distclean-gas:
10151 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10152 r=`${PWD_COMMAND}`; export r; \
10153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10154 $(HOST_EXPORTS) \
b813574b 10155 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10157 done; \
22121df0 10158 echo "Doing distclean in gas"; \
a90ef4bf 10159 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10162 "RANLIB=$${RANLIB}" \
0c24b341 10163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10164 distclean) \
2a4cbe27
NN
10165 || exit 1
10166
a90ef4bf 10167@endif gas
2a4cbe27 10168
a90ef4bf
JM
10169.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
10170maybe-maintainer-clean-gas:
10171@if gas
10172maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 10173
a90ef4bf
JM
10174maintainer-clean-gas:
10175 @[ -f ./gas/Makefile ] || exit 0; \
10176 r=`${PWD_COMMAND}`; export r; \
b40e3958 10177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10178 $(HOST_EXPORTS) \
b813574b 10179 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10181 done; \
22121df0 10182 echo "Doing maintainer-clean in gas"; \
a90ef4bf 10183 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10186 "RANLIB=$${RANLIB}" \
0c24b341 10187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10188 maintainer-clean) \
2a4cbe27
NN
10189 || exit 1
10190
a90ef4bf 10191@endif gas
2a4cbe27 10192
2a4cbe27 10193
a7254363 10194
a90ef4bf
JM
10195.PHONY: configure-gcc maybe-configure-gcc
10196maybe-configure-gcc:
4f0ef2d8 10197@if gcc-bootstrap
a90ef4bf 10198configure-gcc: stage_current
4f0ef2d8 10199@endif gcc-bootstrap
a90ef4bf
JM
10200@if gcc
10201maybe-configure-gcc: configure-gcc
10202configure-gcc:
c52c6897 10203 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10205 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
22121df0 10206 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
1f53ca9a 10207 $(HOST_EXPORTS) \
a90ef4bf
JM
10208 echo Configuring in $(HOST_SUBDIR)/gcc; \
10209 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
4fa63067 10210 case $(srcdir) in \
b00612cc 10211 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 10212 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
b00612cc 10213 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 10214 esac; \
1b6c0831
L
10215 module_srcdir=gcc; \
10216 $(SHELL) \
10217 $$s/$$module_srcdir/configure \
10218 --srcdir=$${topdir}/$$module_srcdir \
4b900473 10219 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10220 --target=${target_alias} \
4fa63067 10221 || exit 1
a90ef4bf 10222@endif gcc
a7254363 10223
d545f33b
PB
10224
10225
a90ef4bf
JM
10226.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
10227maybe-configure-stage1-gcc:
4f0ef2d8 10228@if gcc-bootstrap
a90ef4bf
JM
10229maybe-configure-stage1-gcc: configure-stage1-gcc
10230configure-stage1-gcc:
10231 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10232 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067
NN
10233 @r=`${PWD_COMMAND}`; export r; \
10234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10235 TFLAGS="$(STAGE1_TFLAGS)"; \
10236 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
10237 $(HOST_EXPORTS) \
10238 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10239 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10240 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
10241 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc; \
10242 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10243 cd $(HOST_SUBDIR)/gcc || exit 1; \
10244 case $(srcdir) in \
10245 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10246 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10247 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10248 esac; \
1b6c0831
L
10249 module_srcdir=gcc; \
10250 $(SHELL) $$s/$$module_srcdir/configure \
10251 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10252 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10253 --target=${target_alias} \
10254 \
a90ef4bf
JM
10255 $(STAGE1_CONFIGURE_FLAGS)
10256@endif gcc-bootstrap
4fa63067 10257
a90ef4bf
JM
10258.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
10259maybe-configure-stage2-gcc:
10260@if gcc-bootstrap
10261maybe-configure-stage2-gcc: configure-stage2-gcc
10262configure-stage2-gcc:
10263 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10264 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067 10265 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10267 TFLAGS="$(STAGE2_TFLAGS)"; \
10268 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10269 $(HOST_EXPORTS) \
a90ef4bf
JM
10270 $(POSTSTAGE1_HOST_EXPORTS) \
10271 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10272 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10273 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10274 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc; \
10275 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10276 cd $(HOST_SUBDIR)/gcc || exit 1; \
10277 case $(srcdir) in \
10278 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10279 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10280 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10281 esac; \
1b6c0831
L
10282 module_srcdir=gcc; \
10283 $(SHELL) $$s/$$module_srcdir/configure \
10284 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10285 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10286 --target=${target_alias} \
22121df0 10287 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10288 $(STAGE2_CONFIGURE_FLAGS)
10289@endif gcc-bootstrap
9b980aa1 10290
a90ef4bf
JM
10291.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
10292maybe-configure-stage3-gcc:
10293@if gcc-bootstrap
10294maybe-configure-stage3-gcc: configure-stage3-gcc
10295configure-stage3-gcc:
10296 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10297 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9b980aa1
RW
10298 @r=`${PWD_COMMAND}`; export r; \
10299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10300 TFLAGS="$(STAGE3_TFLAGS)"; \
10301 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9b980aa1 10302 $(HOST_EXPORTS) \
a90ef4bf
JM
10303 $(POSTSTAGE1_HOST_EXPORTS) \
10304 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10305 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10306 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10307 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc; \
10308 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10309 cd $(HOST_SUBDIR)/gcc || exit 1; \
10310 case $(srcdir) in \
10311 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10312 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10313 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10314 esac; \
1b6c0831
L
10315 module_srcdir=gcc; \
10316 $(SHELL) $$s/$$module_srcdir/configure \
10317 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10318 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10319 --target=${target_alias} \
22121df0 10320 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10321 $(STAGE3_CONFIGURE_FLAGS)
10322@endif gcc-bootstrap
4fa63067 10323
a90ef4bf
JM
10324.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
10325maybe-configure-stage4-gcc:
10326@if gcc-bootstrap
10327maybe-configure-stage4-gcc: configure-stage4-gcc
10328configure-stage4-gcc:
10329 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10330 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10331 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10333 TFLAGS="$(STAGE4_TFLAGS)"; \
10334 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10335 $(HOST_EXPORTS) \
a90ef4bf
JM
10336 $(POSTSTAGE1_HOST_EXPORTS) \
10337 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10338 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10339 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10340 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc; \
10341 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10342 cd $(HOST_SUBDIR)/gcc || exit 1; \
10343 case $(srcdir) in \
10344 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10345 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10346 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10347 esac; \
1b6c0831
L
10348 module_srcdir=gcc; \
10349 $(SHELL) $$s/$$module_srcdir/configure \
10350 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10351 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10352 --target=${target_alias} \
22121df0 10353 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10354 $(STAGE4_CONFIGURE_FLAGS)
10355@endif gcc-bootstrap
2a4cbe27 10356
a90ef4bf
JM
10357.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
10358maybe-configure-stageprofile-gcc:
10359@if gcc-bootstrap
10360maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
10361configure-stageprofile-gcc:
10362 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10363 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10364 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10366 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10367 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10368 $(HOST_EXPORTS) \
a90ef4bf
JM
10369 $(POSTSTAGE1_HOST_EXPORTS) \
10370 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10371 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10372 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10373 echo Configuring stage profile in $(HOST_SUBDIR)/gcc; \
10374 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10375 cd $(HOST_SUBDIR)/gcc || exit 1; \
10376 case $(srcdir) in \
10377 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10378 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10379 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10380 esac; \
1b6c0831
L
10381 module_srcdir=gcc; \
10382 $(SHELL) $$s/$$module_srcdir/configure \
10383 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10384 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10385 --target=${target_alias} \
22121df0 10386 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10387 $(STAGEprofile_CONFIGURE_FLAGS)
10388@endif gcc-bootstrap
56a8fe78 10389
a90ef4bf
JM
10390.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
10391maybe-configure-stagefeedback-gcc:
10392@if gcc-bootstrap
10393maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
10394configure-stagefeedback-gcc:
10395 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10396 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10397 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 10398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10399 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10400 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
56a8fe78 10401 $(HOST_EXPORTS) \
a90ef4bf
JM
10402 $(POSTSTAGE1_HOST_EXPORTS) \
10403 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10404 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10405 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10406 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc; \
10407 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10408 cd $(HOST_SUBDIR)/gcc || exit 1; \
10409 case $(srcdir) in \
10410 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10411 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10412 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10413 esac; \
1b6c0831
L
10414 module_srcdir=gcc; \
10415 $(SHELL) $$s/$$module_srcdir/configure \
10416 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10417 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10418 --target=${target_alias} \
22121df0 10419 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10420 $(STAGEfeedback_CONFIGURE_FLAGS)
10421@endif gcc-bootstrap
56a8fe78 10422
2a4cbe27 10423
2a4cbe27
NN
10424
10425
2a4cbe27 10426
a90ef4bf
JM
10427.PHONY: all-gcc maybe-all-gcc
10428maybe-all-gcc:
10429@if gcc-bootstrap
10430all-gcc: stage_current
10431@endif gcc-bootstrap
10432@if gcc
10433TARGET-gcc=all
10434maybe-all-gcc: all-gcc
10435all-gcc: configure-gcc
10436 @r=`${PWD_COMMAND}`; export r; \
6d389afc 10437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10438 $(HOST_EXPORTS) \
10439 (cd $(HOST_SUBDIR)/gcc && \
b3676d82 10440 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10441 $(TARGET-gcc))
10442@endif gcc
6d389afc 10443
6d389afc 10444
6d389afc 10445
a90ef4bf
JM
10446.PHONY: all-stage1-gcc maybe-all-stage1-gcc
10447.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
10448maybe-all-stage1-gcc:
10449maybe-clean-stage1-gcc:
10450@if gcc-bootstrap
10451maybe-all-stage1-gcc: all-stage1-gcc
10452all-stage1: all-stage1-gcc
10453TARGET-stage1-gcc = $(TARGET-gcc)
10454all-stage1-gcc: configure-stage1-gcc
10455 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10456 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10458 TFLAGS="$(STAGE1_TFLAGS)"; \
10459 $(HOST_EXPORTS) \
10460 cd $(HOST_SUBDIR)/gcc && \
05a13254 10461 \
a90ef4bf
JM
10462 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10463 CFLAGS="$(STAGE1_CFLAGS)" \
10464 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10465 LIBCFLAGS="$(LIBCFLAGS)" \
10466 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10467 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10468 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
10469 $(EXTRA_HOST_FLAGS) \
10470 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10471 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 10472 $(TARGET-stage1-gcc)
2a4cbe27 10473
a90ef4bf
JM
10474maybe-clean-stage1-gcc: clean-stage1-gcc
10475clean-stage1: clean-stage1-gcc
10476clean-stage1-gcc:
10477 @if [ $(current_stage) = stage1 ]; then \
10478 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10479 else \
10480 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
10481 $(MAKE) stage1-start; \
10482 fi; \
10483 cd $(HOST_SUBDIR)/gcc && \
10484 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 10485 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10486@endif gcc-bootstrap
2a4cbe27 10487
a3ca38d2 10488
a90ef4bf
JM
10489.PHONY: all-stage2-gcc maybe-all-stage2-gcc
10490.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
10491maybe-all-stage2-gcc:
10492maybe-clean-stage2-gcc:
10493@if gcc-bootstrap
10494maybe-all-stage2-gcc: all-stage2-gcc
10495all-stage2: all-stage2-gcc
10496TARGET-stage2-gcc = $(TARGET-gcc)
10497all-stage2-gcc: configure-stage2-gcc
10498 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10499 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 10500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10501 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 10502 $(HOST_EXPORTS) \
a90ef4bf
JM
10503 $(POSTSTAGE1_HOST_EXPORTS) \
10504 cd $(HOST_SUBDIR)/gcc && \
05a13254 10505 \
a90ef4bf
JM
10506 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10507 CFLAGS="$(STAGE2_CFLAGS)" \
10508 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10509 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10510 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10511 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10512 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10513 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10514 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 10515 $(TARGET-stage2-gcc)
a3ca38d2 10516
a90ef4bf
JM
10517maybe-clean-stage2-gcc: clean-stage2-gcc
10518clean-stage2: clean-stage2-gcc
10519clean-stage2-gcc:
10520 @if [ $(current_stage) = stage2 ]; then \
10521 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10522 else \
10523 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
10524 $(MAKE) stage2-start; \
10525 fi; \
10526 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10527 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10528@endif gcc-bootstrap
a3ca38d2 10529
108a6f8e 10530
a90ef4bf
JM
10531.PHONY: all-stage3-gcc maybe-all-stage3-gcc
10532.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
10533maybe-all-stage3-gcc:
10534maybe-clean-stage3-gcc:
10535@if gcc-bootstrap
10536maybe-all-stage3-gcc: all-stage3-gcc
10537all-stage3: all-stage3-gcc
10538TARGET-stage3-gcc = $(TARGET-gcc)
10539all-stage3-gcc: configure-stage3-gcc
10540 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10541 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 10542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10543 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 10544 $(HOST_EXPORTS) \
a90ef4bf
JM
10545 $(POSTSTAGE1_HOST_EXPORTS) \
10546 cd $(HOST_SUBDIR)/gcc && \
05a13254 10547 \
a90ef4bf
JM
10548 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10549 CFLAGS="$(STAGE3_CFLAGS)" \
10550 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10551 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10552 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10553 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10554 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10555 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10556 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 10557 $(TARGET-stage3-gcc)
108a6f8e 10558
a90ef4bf
JM
10559maybe-clean-stage3-gcc: clean-stage3-gcc
10560clean-stage3: clean-stage3-gcc
10561clean-stage3-gcc:
10562 @if [ $(current_stage) = stage3 ]; then \
10563 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10564 else \
10565 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
10566 $(MAKE) stage3-start; \
10567 fi; \
10568 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10569 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10570@endif gcc-bootstrap
108a6f8e 10571
2a4cbe27 10572
a90ef4bf
JM
10573.PHONY: all-stage4-gcc maybe-all-stage4-gcc
10574.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
10575maybe-all-stage4-gcc:
10576maybe-clean-stage4-gcc:
10577@if gcc-bootstrap
10578maybe-all-stage4-gcc: all-stage4-gcc
10579all-stage4: all-stage4-gcc
10580TARGET-stage4-gcc = $(TARGET-gcc)
10581all-stage4-gcc: configure-stage4-gcc
10582 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10583 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10585 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 10586 $(HOST_EXPORTS) \
a90ef4bf
JM
10587 $(POSTSTAGE1_HOST_EXPORTS) \
10588 cd $(HOST_SUBDIR)/gcc && \
05a13254 10589 \
a90ef4bf
JM
10590 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10591 CFLAGS="$(STAGE4_CFLAGS)" \
10592 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10593 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10594 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10595 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10596 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10597 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10598 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 10599 $(TARGET-stage4-gcc)
2a4cbe27 10600
a90ef4bf
JM
10601maybe-clean-stage4-gcc: clean-stage4-gcc
10602clean-stage4: clean-stage4-gcc
10603clean-stage4-gcc:
10604 @if [ $(current_stage) = stage4 ]; then \
10605 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10606 else \
10607 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
10608 $(MAKE) stage4-start; \
10609 fi; \
10610 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10611 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10612@endif gcc-bootstrap
2a4cbe27 10613
a2592b1b 10614
a90ef4bf
JM
10615.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
10616.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
10617maybe-all-stageprofile-gcc:
10618maybe-clean-stageprofile-gcc:
10619@if gcc-bootstrap
10620maybe-all-stageprofile-gcc: all-stageprofile-gcc
10621all-stageprofile: all-stageprofile-gcc
10622TARGET-stageprofile-gcc = $(TARGET-gcc)
10623all-stageprofile-gcc: configure-stageprofile-gcc
10624 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10625 @r=`${PWD_COMMAND}`; export r; \
a2592b1b 10626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10627 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 10628 $(HOST_EXPORTS) \
a90ef4bf
JM
10629 $(POSTSTAGE1_HOST_EXPORTS) \
10630 cd $(HOST_SUBDIR)/gcc && \
05a13254 10631 \
a90ef4bf
JM
10632 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10633 CFLAGS="$(STAGEprofile_CFLAGS)" \
10634 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10635 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10636 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10637 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10638 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10639 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10640 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 10641 $(TARGET-stageprofile-gcc)
2a4cbe27 10642
a90ef4bf
JM
10643maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
10644clean-stageprofile: clean-stageprofile-gcc
10645clean-stageprofile-gcc:
10646 @if [ $(current_stage) = stageprofile ]; then \
10647 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10648 else \
10649 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
10650 $(MAKE) stageprofile-start; \
10651 fi; \
10652 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10653 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10654@endif gcc-bootstrap
2a4cbe27 10655
a7254363 10656
a90ef4bf
JM
10657.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
10658.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
10659maybe-all-stagefeedback-gcc:
10660maybe-clean-stagefeedback-gcc:
4f0ef2d8 10661@if gcc-bootstrap
a90ef4bf
JM
10662maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
10663all-stagefeedback: all-stagefeedback-gcc
10664TARGET-stagefeedback-gcc = $(TARGET-gcc)
10665all-stagefeedback-gcc: configure-stagefeedback-gcc
10666 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 10667 @r=`${PWD_COMMAND}`; export r; \
4fa63067 10668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10669 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10670 $(HOST_EXPORTS) \
10671 $(POSTSTAGE1_HOST_EXPORTS) \
10672 cd $(HOST_SUBDIR)/gcc && \
05a13254 10673 \
a90ef4bf
JM
10674 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10675 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10676 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10677 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10678 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10679 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10680 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10681 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10682 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 10683 $(TARGET-stagefeedback-gcc)
d545f33b 10684
a90ef4bf
JM
10685maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
10686clean-stagefeedback: clean-stagefeedback-gcc
10687clean-stagefeedback-gcc:
10688 @if [ $(current_stage) = stagefeedback ]; then \
10689 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10690 else \
10691 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
10692 $(MAKE) stagefeedback-start; \
10693 fi; \
10694 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10695 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
4f0ef2d8 10696@endif gcc-bootstrap
4fa63067 10697
a7254363 10698
d545f33b
PB
10699
10700
4fa63067 10701
a90ef4bf
JM
10702.PHONY: check-gcc maybe-check-gcc
10703maybe-check-gcc:
10704@if gcc
10705maybe-check-gcc: check-gcc
10706
10707check-gcc:
0aed8855 10708 @: $(MAKE); $(unstage)
4fa63067
NN
10709 @r=`${PWD_COMMAND}`; export r; \
10710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 10711 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 10712 (cd $(HOST_SUBDIR)/gcc && \
f91ca6bc 10713 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 10714
a90ef4bf 10715@endif gcc
4fa63067 10716
a90ef4bf
JM
10717.PHONY: install-gcc maybe-install-gcc
10718maybe-install-gcc:
10719@if gcc
10720maybe-install-gcc: install-gcc
4fa63067 10721
a90ef4bf 10722install-gcc: installdirs
0aed8855 10723 @: $(MAKE); $(unstage)
4fa63067
NN
10724 @r=`${PWD_COMMAND}`; export r; \
10725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10726 $(HOST_EXPORTS) \
a90ef4bf
JM
10727 (cd $(HOST_SUBDIR)/gcc && \
10728 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
4fa63067 10729
a90ef4bf 10730@endif gcc
4fa63067 10731
a90ef4bf
JM
10732.PHONY: install-strip-gcc maybe-install-strip-gcc
10733maybe-install-strip-gcc:
10734@if gcc
10735maybe-install-strip-gcc: install-strip-gcc
9b980aa1 10736
a90ef4bf 10737install-strip-gcc: installdirs
9b980aa1
RW
10738 @: $(MAKE); $(unstage)
10739 @r=`${PWD_COMMAND}`; export r; \
10740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10741 $(HOST_EXPORTS) \
a90ef4bf
JM
10742 (cd $(HOST_SUBDIR)/gcc && \
10743 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
9b980aa1 10744
a90ef4bf 10745@endif gcc
9b980aa1 10746
56a8fe78 10747# Other targets (info, dvi, pdf, etc.)
4fa63067 10748
a90ef4bf
JM
10749.PHONY: maybe-info-gcc info-gcc
10750maybe-info-gcc:
10751@if gcc
10752maybe-info-gcc: info-gcc
4fa63067 10753
a90ef4bf
JM
10754info-gcc: \
10755 configure-gcc
10756 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10757 r=`${PWD_COMMAND}`; export r; \
10758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10759 $(HOST_EXPORTS) \
a90ef4bf 10760 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10762 done; \
22121df0 10763 echo "Doing info in gcc"; \
a90ef4bf 10764 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10767 "RANLIB=$${RANLIB}" \
0c24b341 10768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10769 info) \
2a4cbe27
NN
10770 || exit 1
10771
a90ef4bf 10772@endif gcc
2a4cbe27 10773
a90ef4bf
JM
10774.PHONY: maybe-dvi-gcc dvi-gcc
10775maybe-dvi-gcc:
10776@if gcc
10777maybe-dvi-gcc: dvi-gcc
2a4cbe27 10778
a90ef4bf
JM
10779dvi-gcc: \
10780 configure-gcc
10781 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10782 r=`${PWD_COMMAND}`; export r; \
10783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10784 $(HOST_EXPORTS) \
a90ef4bf 10785 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10787 done; \
22121df0 10788 echo "Doing dvi in gcc"; \
a90ef4bf 10789 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10792 "RANLIB=$${RANLIB}" \
0c24b341 10793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10794 dvi) \
2a4cbe27
NN
10795 || exit 1
10796
a90ef4bf 10797@endif gcc
2a4cbe27 10798
a90ef4bf
JM
10799.PHONY: maybe-pdf-gcc pdf-gcc
10800maybe-pdf-gcc:
10801@if gcc
10802maybe-pdf-gcc: pdf-gcc
56a8fe78 10803
a90ef4bf
JM
10804pdf-gcc: \
10805 configure-gcc
10806 @[ -f ./gcc/Makefile ] || exit 0; \
56a8fe78
DD
10807 r=`${PWD_COMMAND}`; export r; \
10808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10809 $(HOST_EXPORTS) \
a90ef4bf 10810 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
56a8fe78
DD
10811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10812 done; \
22121df0 10813 echo "Doing pdf in gcc"; \
a90ef4bf 10814 (cd $(HOST_SUBDIR)/gcc && \
56a8fe78
DD
10815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10817 "RANLIB=$${RANLIB}" \
0c24b341 10818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
10819 pdf) \
10820 || exit 1
10821
a90ef4bf 10822@endif gcc
56a8fe78 10823
a90ef4bf
JM
10824.PHONY: maybe-html-gcc html-gcc
10825maybe-html-gcc:
10826@if gcc
10827maybe-html-gcc: html-gcc
6d389afc 10828
a90ef4bf
JM
10829html-gcc: \
10830 configure-gcc
10831 @[ -f ./gcc/Makefile ] || exit 0; \
6d389afc
MS
10832 r=`${PWD_COMMAND}`; export r; \
10833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 10834 $(HOST_EXPORTS) \
a90ef4bf 10835 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
6d389afc
MS
10836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10837 done; \
22121df0 10838 echo "Doing html in gcc"; \
a90ef4bf 10839 (cd $(HOST_SUBDIR)/gcc && \
6d389afc
MS
10840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10842 "RANLIB=$${RANLIB}" \
0c24b341 10843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10844 html) \
10845 || exit 1
10846
a90ef4bf 10847@endif gcc
6d389afc 10848
a90ef4bf
JM
10849.PHONY: maybe-TAGS-gcc TAGS-gcc
10850maybe-TAGS-gcc:
10851@if gcc
10852maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 10853
a90ef4bf
JM
10854TAGS-gcc: \
10855 configure-gcc
10856 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10857 r=`${PWD_COMMAND}`; export r; \
10858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10859 $(HOST_EXPORTS) \
a90ef4bf 10860 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10862 done; \
22121df0 10863 echo "Doing TAGS in gcc"; \
a90ef4bf 10864 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10867 "RANLIB=$${RANLIB}" \
0c24b341 10868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10869 TAGS) \
2a4cbe27
NN
10870 || exit 1
10871
a90ef4bf 10872@endif gcc
2a4cbe27 10873
a90ef4bf
JM
10874.PHONY: maybe-install-info-gcc install-info-gcc
10875maybe-install-info-gcc:
10876@if gcc
10877maybe-install-info-gcc: install-info-gcc
2a4cbe27 10878
a90ef4bf
JM
10879install-info-gcc: \
10880 configure-gcc \
10881 info-gcc
10882 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10883 r=`${PWD_COMMAND}`; export r; \
10884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10885 $(HOST_EXPORTS) \
a90ef4bf 10886 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10888 done; \
22121df0 10889 echo "Doing install-info in gcc"; \
a90ef4bf 10890 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10893 "RANLIB=$${RANLIB}" \
0c24b341 10894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10895 install-info) \
2a4cbe27
NN
10896 || exit 1
10897
a90ef4bf 10898@endif gcc
2a4cbe27 10899
a90ef4bf
JM
10900.PHONY: maybe-install-pdf-gcc install-pdf-gcc
10901maybe-install-pdf-gcc:
10902@if gcc
10903maybe-install-pdf-gcc: install-pdf-gcc
a3ca38d2 10904
a90ef4bf
JM
10905install-pdf-gcc: \
10906 configure-gcc \
10907 pdf-gcc
10908 @[ -f ./gcc/Makefile ] || exit 0; \
a3ca38d2
DD
10909 r=`${PWD_COMMAND}`; export r; \
10910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10911 $(HOST_EXPORTS) \
a90ef4bf 10912 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a3ca38d2
DD
10913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10914 done; \
22121df0 10915 echo "Doing install-pdf in gcc"; \
a90ef4bf 10916 (cd $(HOST_SUBDIR)/gcc && \
a3ca38d2
DD
10917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10919 "RANLIB=$${RANLIB}" \
0c24b341 10920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10921 install-pdf) \
10922 || exit 1
10923
a90ef4bf 10924@endif gcc
a3ca38d2 10925
a90ef4bf
JM
10926.PHONY: maybe-install-html-gcc install-html-gcc
10927maybe-install-html-gcc:
10928@if gcc
10929maybe-install-html-gcc: install-html-gcc
108a6f8e 10930
a90ef4bf
JM
10931install-html-gcc: \
10932 configure-gcc \
10933 html-gcc
10934 @[ -f ./gcc/Makefile ] || exit 0; \
108a6f8e
CD
10935 r=`${PWD_COMMAND}`; export r; \
10936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10937 $(HOST_EXPORTS) \
a90ef4bf 10938 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
108a6f8e
CD
10939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10940 done; \
22121df0 10941 echo "Doing install-html in gcc"; \
a90ef4bf 10942 (cd $(HOST_SUBDIR)/gcc && \
108a6f8e
CD
10943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10945 "RANLIB=$${RANLIB}" \
0c24b341 10946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10947 install-html) \
10948 || exit 1
10949
a90ef4bf 10950@endif gcc
108a6f8e 10951
a90ef4bf
JM
10952.PHONY: maybe-installcheck-gcc installcheck-gcc
10953maybe-installcheck-gcc:
10954@if gcc
10955maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 10956
a90ef4bf
JM
10957installcheck-gcc: \
10958 configure-gcc
10959 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10960 r=`${PWD_COMMAND}`; export r; \
10961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10962 $(HOST_EXPORTS) \
a90ef4bf 10963 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10965 done; \
22121df0 10966 echo "Doing installcheck in gcc"; \
a90ef4bf 10967 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10970 "RANLIB=$${RANLIB}" \
0c24b341 10971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10972 installcheck) \
2a4cbe27
NN
10973 || exit 1
10974
a90ef4bf 10975@endif gcc
2a4cbe27 10976
a90ef4bf
JM
10977.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
10978maybe-mostlyclean-gcc:
10979@if gcc
10980maybe-mostlyclean-gcc: mostlyclean-gcc
2a4cbe27 10981
a90ef4bf
JM
10982mostlyclean-gcc:
10983 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10984 r=`${PWD_COMMAND}`; export r; \
10985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10986 $(HOST_EXPORTS) \
a90ef4bf 10987 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10989 done; \
22121df0 10990 echo "Doing mostlyclean in gcc"; \
a90ef4bf 10991 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10994 "RANLIB=$${RANLIB}" \
0c24b341 10995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10996 mostlyclean) \
2a4cbe27
NN
10997 || exit 1
10998
a90ef4bf 10999@endif gcc
2a4cbe27 11000
a90ef4bf
JM
11001.PHONY: maybe-clean-gcc clean-gcc
11002maybe-clean-gcc:
11003@if gcc
11004maybe-clean-gcc: clean-gcc
2a4cbe27 11005
a90ef4bf
JM
11006clean-gcc:
11007 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11008 r=`${PWD_COMMAND}`; export r; \
11009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11010 $(HOST_EXPORTS) \
a90ef4bf 11011 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11013 done; \
22121df0 11014 echo "Doing clean in gcc"; \
a90ef4bf 11015 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11018 "RANLIB=$${RANLIB}" \
0c24b341 11019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11020 clean) \
2a4cbe27
NN
11021 || exit 1
11022
a90ef4bf 11023@endif gcc
2a4cbe27 11024
a90ef4bf
JM
11025.PHONY: maybe-distclean-gcc distclean-gcc
11026maybe-distclean-gcc:
11027@if gcc
11028maybe-distclean-gcc: distclean-gcc
2a4cbe27 11029
a90ef4bf
JM
11030distclean-gcc:
11031 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11032 r=`${PWD_COMMAND}`; export r; \
11033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11034 $(HOST_EXPORTS) \
a90ef4bf 11035 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11037 done; \
22121df0 11038 echo "Doing distclean in gcc"; \
a90ef4bf 11039 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11042 "RANLIB=$${RANLIB}" \
0c24b341 11043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11044 distclean) \
2a4cbe27
NN
11045 || exit 1
11046
a90ef4bf 11047@endif gcc
2a4cbe27 11048
a90ef4bf
JM
11049.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
11050maybe-maintainer-clean-gcc:
11051@if gcc
11052maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 11053
a90ef4bf
JM
11054maintainer-clean-gcc:
11055 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11056 r=`${PWD_COMMAND}`; export r; \
11057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11058 $(HOST_EXPORTS) \
a90ef4bf 11059 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11061 done; \
22121df0 11062 echo "Doing maintainer-clean in gcc"; \
a90ef4bf 11063 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11066 "RANLIB=$${RANLIB}" \
0c24b341 11067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11068 maintainer-clean) \
2a4cbe27
NN
11069 || exit 1
11070
a90ef4bf 11071@endif gcc
2a4cbe27 11072
2a4cbe27 11073
a7254363 11074
a90ef4bf
JM
11075.PHONY: configure-gmp maybe-configure-gmp
11076maybe-configure-gmp:
4f0ef2d8 11077@if gcc-bootstrap
a90ef4bf 11078configure-gmp: stage_current
4f0ef2d8 11079@endif gcc-bootstrap
a90ef4bf
JM
11080@if gmp
11081maybe-configure-gmp: configure-gmp
11082configure-gmp:
c52c6897 11083 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11085 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
22121df0 11086 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
1f53ca9a 11087 $(HOST_EXPORTS) \
a90ef4bf
JM
11088 echo Configuring in $(HOST_SUBDIR)/gmp; \
11089 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
4fa63067 11090 case $(srcdir) in \
b00612cc 11091 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11092 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
b00612cc 11093 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11094 esac; \
1b6c0831
L
11095 module_srcdir=gmp; \
11096 $(SHELL) \
11097 $$s/$$module_srcdir/configure \
11098 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11099 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11100 --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \
4fa63067 11101 || exit 1
a90ef4bf 11102@endif gmp
a7254363 11103
d545f33b
PB
11104
11105
a90ef4bf
JM
11106.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
11107maybe-configure-stage1-gmp:
11108@if gmp-bootstrap
11109maybe-configure-stage1-gmp: configure-stage1-gmp
11110configure-stage1-gmp:
11111 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11112 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067
NN
11113 @r=`${PWD_COMMAND}`; export r; \
11114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11115 TFLAGS="$(STAGE1_TFLAGS)"; \
11116 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11117 $(HOST_EXPORTS) \
11118 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11119 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11120 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11121 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp; \
11122 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11123 cd $(HOST_SUBDIR)/gmp || exit 1; \
11124 case $(srcdir) in \
11125 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11126 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11127 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11128 esac; \
1b6c0831
L
11129 module_srcdir=gmp; \
11130 $(SHELL) $$s/$$module_srcdir/configure \
11131 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11132 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11133 --target=none-${host_vendor}-${host_os} \
11134 \
a90ef4bf 11135 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 11136 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11137@endif gmp-bootstrap
4fa63067 11138
a90ef4bf
JM
11139.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
11140maybe-configure-stage2-gmp:
11141@if gmp-bootstrap
11142maybe-configure-stage2-gmp: configure-stage2-gmp
11143configure-stage2-gmp:
11144 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11145 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11146 @r=`${PWD_COMMAND}`; export r; \
11147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11148 TFLAGS="$(STAGE2_TFLAGS)"; \
11149 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11150 $(HOST_EXPORTS) \
11151 $(POSTSTAGE1_HOST_EXPORTS) \
11152 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11153 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11154 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11155 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp; \
11156 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11157 cd $(HOST_SUBDIR)/gmp || exit 1; \
11158 case $(srcdir) in \
11159 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11160 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11161 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11162 esac; \
1b6c0831
L
11163 module_srcdir=gmp; \
11164 $(SHELL) $$s/$$module_srcdir/configure \
11165 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11166 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11167 --target=none-${host_vendor}-${host_os} \
22121df0 11168 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11169 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 11170 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11171@endif gmp-bootstrap
4fa63067 11172
a90ef4bf
JM
11173.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
11174maybe-configure-stage3-gmp:
11175@if gmp-bootstrap
11176maybe-configure-stage3-gmp: configure-stage3-gmp
11177configure-stage3-gmp:
11178 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11179 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067 11180 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11182 TFLAGS="$(STAGE3_TFLAGS)"; \
11183 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
378fce5b 11184 $(HOST_EXPORTS) \
a90ef4bf
JM
11185 $(POSTSTAGE1_HOST_EXPORTS) \
11186 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11187 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11188 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11189 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp; \
11190 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11191 cd $(HOST_SUBDIR)/gmp || exit 1; \
11192 case $(srcdir) in \
11193 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11194 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11195 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11196 esac; \
1b6c0831
L
11197 module_srcdir=gmp; \
11198 $(SHELL) $$s/$$module_srcdir/configure \
11199 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11200 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11201 --target=none-${host_vendor}-${host_os} \
22121df0 11202 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11203 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 11204 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11205@endif gmp-bootstrap
2a4cbe27 11206
a90ef4bf
JM
11207.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
11208maybe-configure-stage4-gmp:
11209@if gmp-bootstrap
11210maybe-configure-stage4-gmp: configure-stage4-gmp
11211configure-stage4-gmp:
11212 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11213 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11214 @r=`${PWD_COMMAND}`; export r; \
11215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11216 TFLAGS="$(STAGE4_TFLAGS)"; \
11217 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11218 $(HOST_EXPORTS) \
11219 $(POSTSTAGE1_HOST_EXPORTS) \
11220 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11221 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11222 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11223 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp; \
11224 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11225 cd $(HOST_SUBDIR)/gmp || exit 1; \
11226 case $(srcdir) in \
11227 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11228 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11229 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11230 esac; \
1b6c0831
L
11231 module_srcdir=gmp; \
11232 $(SHELL) $$s/$$module_srcdir/configure \
11233 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11234 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11235 --target=none-${host_vendor}-${host_os} \
22121df0 11236 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11237 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 11238 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11239@endif gmp-bootstrap
2a4cbe27 11240
a90ef4bf
JM
11241.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
11242maybe-configure-stageprofile-gmp:
11243@if gmp-bootstrap
11244maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
11245configure-stageprofile-gmp:
11246 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11247 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11248 @r=`${PWD_COMMAND}`; export r; \
11249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11250 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11251 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11252 $(HOST_EXPORTS) \
11253 $(POSTSTAGE1_HOST_EXPORTS) \
11254 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11255 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11256 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11257 echo Configuring stage profile in $(HOST_SUBDIR)/gmp; \
11258 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11259 cd $(HOST_SUBDIR)/gmp || exit 1; \
11260 case $(srcdir) in \
11261 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11262 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11263 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11264 esac; \
1b6c0831
L
11265 module_srcdir=gmp; \
11266 $(SHELL) $$s/$$module_srcdir/configure \
11267 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11268 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11269 --target=none-${host_vendor}-${host_os} \
22121df0 11270 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11271 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 11272 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11273@endif gmp-bootstrap
9b980aa1 11274
a90ef4bf
JM
11275.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
11276maybe-configure-stagefeedback-gmp:
11277@if gmp-bootstrap
11278maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
11279configure-stagefeedback-gmp:
11280 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11281 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
9b980aa1
RW
11282 @r=`${PWD_COMMAND}`; export r; \
11283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11284 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11285 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
9b980aa1 11286 $(HOST_EXPORTS) \
a90ef4bf
JM
11287 $(POSTSTAGE1_HOST_EXPORTS) \
11288 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11289 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11290 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11291 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp; \
11292 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11293 cd $(HOST_SUBDIR)/gmp || exit 1; \
11294 case $(srcdir) in \
11295 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11296 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11297 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11298 esac; \
1b6c0831
L
11299 module_srcdir=gmp; \
11300 $(SHELL) $$s/$$module_srcdir/configure \
11301 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11302 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11303 --target=none-${host_vendor}-${host_os} \
22121df0 11304 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11305 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 11306 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11307@endif gmp-bootstrap
9b980aa1 11308
9b980aa1 11309
2a4cbe27 11310
4fa63067 11311
a90ef4bf
JM
11312
11313.PHONY: all-gmp maybe-all-gmp
11314maybe-all-gmp:
11315@if gcc-bootstrap
11316all-gmp: stage_current
11317@endif gcc-bootstrap
11318@if gmp
11319TARGET-gmp=all
11320maybe-all-gmp: all-gmp
11321all-gmp: configure-gmp
11322 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11324 $(HOST_EXPORTS) \
11325 (cd $(HOST_SUBDIR)/gmp && \
05a13254 11326 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
11327 $(TARGET-gmp))
11328@endif gmp
2a4cbe27
NN
11329
11330
2a4cbe27 11331
a90ef4bf
JM
11332.PHONY: all-stage1-gmp maybe-all-stage1-gmp
11333.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
11334maybe-all-stage1-gmp:
11335maybe-clean-stage1-gmp:
11336@if gmp-bootstrap
11337maybe-all-stage1-gmp: all-stage1-gmp
11338all-stage1: all-stage1-gmp
11339TARGET-stage1-gmp = $(TARGET-gmp)
11340all-stage1-gmp: configure-stage1-gmp
11341 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11342 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11344 TFLAGS="$(STAGE1_TFLAGS)"; \
11345 $(HOST_EXPORTS) \
11346 cd $(HOST_SUBDIR)/gmp && \
05a13254 11347 \
a90ef4bf
JM
11348 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11349 CFLAGS="$(STAGE1_CFLAGS)" \
11350 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11351 LIBCFLAGS="$(LIBCFLAGS)" \
11352 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11353 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11354 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 11355 $(EXTRA_HOST_FLAGS) \
05a13254
NC
11356 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11357 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 11358 $(TARGET-stage1-gmp)
2a4cbe27 11359
a90ef4bf
JM
11360maybe-clean-stage1-gmp: clean-stage1-gmp
11361clean-stage1: clean-stage1-gmp
11362clean-stage1-gmp:
11363 @if [ $(current_stage) = stage1 ]; then \
11364 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11365 else \
11366 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
11367 $(MAKE) stage1-start; \
11368 fi; \
11369 cd $(HOST_SUBDIR)/gmp && \
11370 $(MAKE) $(EXTRA_HOST_FLAGS) \
05a13254 11371 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11372@endif gmp-bootstrap
2a4cbe27 11373
56a8fe78 11374
a90ef4bf
JM
11375.PHONY: all-stage2-gmp maybe-all-stage2-gmp
11376.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
11377maybe-all-stage2-gmp:
11378maybe-clean-stage2-gmp:
11379@if gmp-bootstrap
11380maybe-all-stage2-gmp: all-stage2-gmp
11381all-stage2: all-stage2-gmp
11382TARGET-stage2-gmp = $(TARGET-gmp)
11383all-stage2-gmp: configure-stage2-gmp
11384 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11385 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 11386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11387 TFLAGS="$(STAGE2_TFLAGS)"; \
56a8fe78 11388 $(HOST_EXPORTS) \
a90ef4bf
JM
11389 $(POSTSTAGE1_HOST_EXPORTS) \
11390 cd $(HOST_SUBDIR)/gmp && \
05a13254 11391 \
a90ef4bf
JM
11392 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11393 CFLAGS="$(STAGE2_CFLAGS)" \
11394 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11395 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11396 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11397 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11398 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11399 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11400 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 11401 $(TARGET-stage2-gmp)
56a8fe78 11402
a90ef4bf
JM
11403maybe-clean-stage2-gmp: clean-stage2-gmp
11404clean-stage2: clean-stage2-gmp
11405clean-stage2-gmp:
11406 @if [ $(current_stage) = stage2 ]; then \
11407 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11408 else \
11409 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
11410 $(MAKE) stage2-start; \
11411 fi; \
11412 cd $(HOST_SUBDIR)/gmp && \
05a13254 11413 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11414@endif gmp-bootstrap
56a8fe78 11415
6d389afc 11416
a90ef4bf
JM
11417.PHONY: all-stage3-gmp maybe-all-stage3-gmp
11418.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
11419maybe-all-stage3-gmp:
11420maybe-clean-stage3-gmp:
11421@if gmp-bootstrap
11422maybe-all-stage3-gmp: all-stage3-gmp
11423all-stage3: all-stage3-gmp
11424TARGET-stage3-gmp = $(TARGET-gmp)
11425all-stage3-gmp: configure-stage3-gmp
11426 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11427 @r=`${PWD_COMMAND}`; export r; \
6d389afc 11428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11429 TFLAGS="$(STAGE3_TFLAGS)"; \
6d389afc 11430 $(HOST_EXPORTS) \
a90ef4bf
JM
11431 $(POSTSTAGE1_HOST_EXPORTS) \
11432 cd $(HOST_SUBDIR)/gmp && \
05a13254 11433 \
a90ef4bf
JM
11434 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11435 CFLAGS="$(STAGE3_CFLAGS)" \
11436 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11437 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11438 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11439 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11440 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11441 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11442 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 11443 $(TARGET-stage3-gmp)
6d389afc 11444
a90ef4bf
JM
11445maybe-clean-stage3-gmp: clean-stage3-gmp
11446clean-stage3: clean-stage3-gmp
11447clean-stage3-gmp:
11448 @if [ $(current_stage) = stage3 ]; then \
11449 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11450 else \
11451 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
11452 $(MAKE) stage3-start; \
11453 fi; \
11454 cd $(HOST_SUBDIR)/gmp && \
05a13254 11455 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11456@endif gmp-bootstrap
6d389afc 11457
2a4cbe27 11458
a90ef4bf
JM
11459.PHONY: all-stage4-gmp maybe-all-stage4-gmp
11460.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
11461maybe-all-stage4-gmp:
11462maybe-clean-stage4-gmp:
11463@if gmp-bootstrap
11464maybe-all-stage4-gmp: all-stage4-gmp
11465all-stage4: all-stage4-gmp
11466TARGET-stage4-gmp = $(TARGET-gmp)
11467all-stage4-gmp: configure-stage4-gmp
11468 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11469 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11471 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 11472 $(HOST_EXPORTS) \
a90ef4bf
JM
11473 $(POSTSTAGE1_HOST_EXPORTS) \
11474 cd $(HOST_SUBDIR)/gmp && \
05a13254 11475 \
a90ef4bf
JM
11476 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11477 CFLAGS="$(STAGE4_CFLAGS)" \
11478 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11479 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11480 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11481 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11482 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11483 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11484 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 11485 $(TARGET-stage4-gmp)
2a4cbe27 11486
a90ef4bf
JM
11487maybe-clean-stage4-gmp: clean-stage4-gmp
11488clean-stage4: clean-stage4-gmp
11489clean-stage4-gmp:
11490 @if [ $(current_stage) = stage4 ]; then \
11491 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11492 else \
11493 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
11494 $(MAKE) stage4-start; \
11495 fi; \
11496 cd $(HOST_SUBDIR)/gmp && \
05a13254 11497 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11498@endif gmp-bootstrap
2a4cbe27 11499
2a4cbe27 11500
a90ef4bf
JM
11501.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
11502.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
11503maybe-all-stageprofile-gmp:
11504maybe-clean-stageprofile-gmp:
11505@if gmp-bootstrap
11506maybe-all-stageprofile-gmp: all-stageprofile-gmp
11507all-stageprofile: all-stageprofile-gmp
11508TARGET-stageprofile-gmp = $(TARGET-gmp)
11509all-stageprofile-gmp: configure-stageprofile-gmp
11510 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11511 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11513 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 11514 $(HOST_EXPORTS) \
a90ef4bf
JM
11515 $(POSTSTAGE1_HOST_EXPORTS) \
11516 cd $(HOST_SUBDIR)/gmp && \
05a13254 11517 \
a90ef4bf
JM
11518 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11519 CFLAGS="$(STAGEprofile_CFLAGS)" \
11520 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
11521 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
11522 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11523 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11524 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11525 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11526 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 11527 $(TARGET-stageprofile-gmp)
2a4cbe27 11528
a90ef4bf
JM
11529maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
11530clean-stageprofile: clean-stageprofile-gmp
11531clean-stageprofile-gmp:
11532 @if [ $(current_stage) = stageprofile ]; then \
11533 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11534 else \
11535 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
11536 $(MAKE) stageprofile-start; \
11537 fi; \
11538 cd $(HOST_SUBDIR)/gmp && \
05a13254 11539 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11540@endif gmp-bootstrap
2a4cbe27 11541
a7254363 11542
a90ef4bf
JM
11543.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
11544.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
11545maybe-all-stagefeedback-gmp:
11546maybe-clean-stagefeedback-gmp:
11547@if gmp-bootstrap
11548maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
11549all-stagefeedback: all-stagefeedback-gmp
11550TARGET-stagefeedback-gmp = $(TARGET-gmp)
11551all-stagefeedback-gmp: configure-stagefeedback-gmp
11552 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 11553 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11555 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11556 $(HOST_EXPORTS) \
11557 $(POSTSTAGE1_HOST_EXPORTS) \
11558 cd $(HOST_SUBDIR)/gmp && \
05a13254 11559 \
a90ef4bf
JM
11560 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11561 CFLAGS="$(STAGEfeedback_CFLAGS)" \
11562 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
11563 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
11564 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11565 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11566 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11567 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11568 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 11569 $(TARGET-stagefeedback-gmp)
d545f33b 11570
a90ef4bf
JM
11571maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
11572clean-stagefeedback: clean-stagefeedback-gmp
11573clean-stagefeedback-gmp:
11574 @if [ $(current_stage) = stagefeedback ]; then \
11575 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11576 else \
11577 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
11578 $(MAKE) stagefeedback-start; \
11579 fi; \
11580 cd $(HOST_SUBDIR)/gmp && \
05a13254 11581 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11582@endif gmp-bootstrap
d545f33b 11583
4fa63067 11584
a7254363 11585
d545f33b
PB
11586
11587
a90ef4bf
JM
11588.PHONY: check-gmp maybe-check-gmp
11589maybe-check-gmp:
11590@if gmp
11591maybe-check-gmp: check-gmp
4fa63067 11592
a90ef4bf 11593check-gmp:
0aed8855 11594 @: $(MAKE); $(unstage)
4fa63067
NN
11595 @r=`${PWD_COMMAND}`; export r; \
11596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 11597 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 11598 (cd $(HOST_SUBDIR)/gmp && \
05a13254 11599 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 11600
a90ef4bf 11601@endif gmp
2a4cbe27 11602
a90ef4bf
JM
11603.PHONY: install-gmp maybe-install-gmp
11604maybe-install-gmp:
11605@if gmp
11606maybe-install-gmp: install-gmp
2a4cbe27 11607
a90ef4bf 11608install-gmp:
2a4cbe27 11609
a90ef4bf 11610@endif gmp
2a4cbe27 11611
a90ef4bf
JM
11612.PHONY: install-strip-gmp maybe-install-strip-gmp
11613maybe-install-strip-gmp:
11614@if gmp
11615maybe-install-strip-gmp: install-strip-gmp
9b980aa1 11616
a90ef4bf 11617install-strip-gmp:
9b980aa1 11618
a90ef4bf 11619@endif gmp
9b980aa1 11620
56a8fe78 11621# Other targets (info, dvi, pdf, etc.)
2a4cbe27 11622
a90ef4bf
JM
11623.PHONY: maybe-info-gmp info-gmp
11624maybe-info-gmp:
11625@if gmp
11626maybe-info-gmp: info-gmp
4fa63067 11627
a90ef4bf
JM
11628info-gmp: \
11629 configure-gmp
11630 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11631 r=`${PWD_COMMAND}`; export r; \
11632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11633 $(HOST_EXPORTS) \
05a13254 11634 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11636 done; \
22121df0 11637 echo "Doing info in gmp"; \
a90ef4bf 11638 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11641 "RANLIB=$${RANLIB}" \
0c24b341 11642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11643 info) \
2a4cbe27
NN
11644 || exit 1
11645
a90ef4bf 11646@endif gmp
2a4cbe27 11647
a90ef4bf
JM
11648.PHONY: maybe-dvi-gmp dvi-gmp
11649maybe-dvi-gmp:
11650@if gmp
11651maybe-dvi-gmp: dvi-gmp
2a4cbe27 11652
a90ef4bf
JM
11653dvi-gmp: \
11654 configure-gmp
11655 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11656 r=`${PWD_COMMAND}`; export r; \
11657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11658 $(HOST_EXPORTS) \
05a13254 11659 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11661 done; \
22121df0 11662 echo "Doing dvi in gmp"; \
a90ef4bf 11663 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11666 "RANLIB=$${RANLIB}" \
0c24b341 11667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11668 dvi) \
2a4cbe27
NN
11669 || exit 1
11670
a90ef4bf 11671@endif gmp
2a4cbe27 11672
a90ef4bf
JM
11673.PHONY: maybe-pdf-gmp pdf-gmp
11674maybe-pdf-gmp:
11675@if gmp
11676maybe-pdf-gmp: pdf-gmp
56a8fe78 11677
a90ef4bf
JM
11678pdf-gmp: \
11679 configure-gmp
11680 @[ -f ./gmp/Makefile ] || exit 0; \
56a8fe78
DD
11681 r=`${PWD_COMMAND}`; export r; \
11682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11683 $(HOST_EXPORTS) \
05a13254 11684 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
11685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11686 done; \
22121df0 11687 echo "Doing pdf in gmp"; \
a90ef4bf 11688 (cd $(HOST_SUBDIR)/gmp && \
56a8fe78
DD
11689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11691 "RANLIB=$${RANLIB}" \
0c24b341 11692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11693 pdf) \
11694 || exit 1
11695
a90ef4bf 11696@endif gmp
56a8fe78 11697
a90ef4bf
JM
11698.PHONY: maybe-html-gmp html-gmp
11699maybe-html-gmp:
11700@if gmp
11701maybe-html-gmp: html-gmp
6d389afc 11702
a90ef4bf
JM
11703html-gmp: \
11704 configure-gmp
11705 @[ -f ./gmp/Makefile ] || exit 0; \
6d389afc
MS
11706 r=`${PWD_COMMAND}`; export r; \
11707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 11708 $(HOST_EXPORTS) \
05a13254 11709 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
11710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11711 done; \
22121df0 11712 echo "Doing html in gmp"; \
a90ef4bf 11713 (cd $(HOST_SUBDIR)/gmp && \
6d389afc
MS
11714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11716 "RANLIB=$${RANLIB}" \
0c24b341 11717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11718 html) \
11719 || exit 1
11720
a90ef4bf 11721@endif gmp
6d389afc 11722
a90ef4bf
JM
11723.PHONY: maybe-TAGS-gmp TAGS-gmp
11724maybe-TAGS-gmp:
11725@if gmp
11726maybe-TAGS-gmp: TAGS-gmp
2a4cbe27 11727
a90ef4bf
JM
11728TAGS-gmp: \
11729 configure-gmp
11730 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11731 r=`${PWD_COMMAND}`; export r; \
11732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11733 $(HOST_EXPORTS) \
05a13254 11734 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11736 done; \
22121df0 11737 echo "Doing TAGS in gmp"; \
a90ef4bf 11738 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11741 "RANLIB=$${RANLIB}" \
0c24b341 11742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11743 TAGS) \
2a4cbe27
NN
11744 || exit 1
11745
a90ef4bf 11746@endif gmp
2a4cbe27 11747
a90ef4bf
JM
11748.PHONY: maybe-install-info-gmp install-info-gmp
11749maybe-install-info-gmp:
11750@if gmp
11751maybe-install-info-gmp: install-info-gmp
2a4cbe27 11752
a90ef4bf
JM
11753install-info-gmp: \
11754 configure-gmp \
11755 info-gmp
11756 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11757 r=`${PWD_COMMAND}`; export r; \
11758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11759 $(HOST_EXPORTS) \
05a13254 11760 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11762 done; \
22121df0 11763 echo "Doing install-info in gmp"; \
a90ef4bf 11764 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11767 "RANLIB=$${RANLIB}" \
0c24b341 11768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11769 install-info) \
2a4cbe27
NN
11770 || exit 1
11771
a90ef4bf 11772@endif gmp
2a4cbe27 11773
a90ef4bf
JM
11774.PHONY: maybe-install-pdf-gmp install-pdf-gmp
11775maybe-install-pdf-gmp:
11776@if gmp
11777maybe-install-pdf-gmp: install-pdf-gmp
a3ca38d2 11778
a90ef4bf
JM
11779install-pdf-gmp: \
11780 configure-gmp \
11781 pdf-gmp
11782 @[ -f ./gmp/Makefile ] || exit 0; \
a3ca38d2
DD
11783 r=`${PWD_COMMAND}`; export r; \
11784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11785 $(HOST_EXPORTS) \
05a13254 11786 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
11787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11788 done; \
22121df0 11789 echo "Doing install-pdf in gmp"; \
a90ef4bf 11790 (cd $(HOST_SUBDIR)/gmp && \
a3ca38d2
DD
11791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11793 "RANLIB=$${RANLIB}" \
0c24b341 11794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11795 install-pdf) \
11796 || exit 1
11797
a90ef4bf 11798@endif gmp
a3ca38d2 11799
a90ef4bf
JM
11800.PHONY: maybe-install-html-gmp install-html-gmp
11801maybe-install-html-gmp:
11802@if gmp
11803maybe-install-html-gmp: install-html-gmp
108a6f8e 11804
a90ef4bf
JM
11805install-html-gmp: \
11806 configure-gmp \
11807 html-gmp
11808 @[ -f ./gmp/Makefile ] || exit 0; \
108a6f8e
CD
11809 r=`${PWD_COMMAND}`; export r; \
11810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11811 $(HOST_EXPORTS) \
05a13254 11812 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
11813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11814 done; \
22121df0 11815 echo "Doing install-html in gmp"; \
a90ef4bf 11816 (cd $(HOST_SUBDIR)/gmp && \
108a6f8e
CD
11817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11819 "RANLIB=$${RANLIB}" \
0c24b341 11820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
11821 install-html) \
11822 || exit 1
11823
a90ef4bf 11824@endif gmp
108a6f8e 11825
a90ef4bf
JM
11826.PHONY: maybe-installcheck-gmp installcheck-gmp
11827maybe-installcheck-gmp:
11828@if gmp
11829maybe-installcheck-gmp: installcheck-gmp
2a4cbe27 11830
a90ef4bf
JM
11831installcheck-gmp: \
11832 configure-gmp
11833 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11834 r=`${PWD_COMMAND}`; export r; \
11835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11836 $(HOST_EXPORTS) \
05a13254 11837 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11839 done; \
22121df0 11840 echo "Doing installcheck in gmp"; \
a90ef4bf 11841 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11844 "RANLIB=$${RANLIB}" \
0c24b341 11845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11846 installcheck) \
2a4cbe27
NN
11847 || exit 1
11848
a90ef4bf 11849@endif gmp
2a4cbe27 11850
a90ef4bf
JM
11851.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
11852maybe-mostlyclean-gmp:
11853@if gmp
11854maybe-mostlyclean-gmp: mostlyclean-gmp
2a4cbe27 11855
a90ef4bf
JM
11856mostlyclean-gmp:
11857 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11858 r=`${PWD_COMMAND}`; export r; \
11859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11860 $(HOST_EXPORTS) \
05a13254 11861 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11863 done; \
22121df0 11864 echo "Doing mostlyclean in gmp"; \
a90ef4bf 11865 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11868 "RANLIB=$${RANLIB}" \
0c24b341 11869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11870 mostlyclean) \
2a4cbe27
NN
11871 || exit 1
11872
a90ef4bf 11873@endif gmp
2a4cbe27 11874
a90ef4bf
JM
11875.PHONY: maybe-clean-gmp clean-gmp
11876maybe-clean-gmp:
11877@if gmp
11878maybe-clean-gmp: clean-gmp
2a4cbe27 11879
a90ef4bf
JM
11880clean-gmp:
11881 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11882 r=`${PWD_COMMAND}`; export r; \
11883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11884 $(HOST_EXPORTS) \
05a13254 11885 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11887 done; \
22121df0 11888 echo "Doing clean in gmp"; \
a90ef4bf 11889 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11892 "RANLIB=$${RANLIB}" \
0c24b341 11893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11894 clean) \
2a4cbe27
NN
11895 || exit 1
11896
a90ef4bf 11897@endif gmp
2a4cbe27 11898
a90ef4bf
JM
11899.PHONY: maybe-distclean-gmp distclean-gmp
11900maybe-distclean-gmp:
11901@if gmp
11902maybe-distclean-gmp: distclean-gmp
2a4cbe27 11903
a90ef4bf
JM
11904distclean-gmp:
11905 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11906 r=`${PWD_COMMAND}`; export r; \
11907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11908 $(HOST_EXPORTS) \
05a13254 11909 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11911 done; \
22121df0 11912 echo "Doing distclean in gmp"; \
a90ef4bf 11913 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11916 "RANLIB=$${RANLIB}" \
0c24b341 11917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11918 distclean) \
2a4cbe27
NN
11919 || exit 1
11920
a90ef4bf 11921@endif gmp
2a4cbe27 11922
a90ef4bf
JM
11923.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
11924maybe-maintainer-clean-gmp:
11925@if gmp
11926maybe-maintainer-clean-gmp: maintainer-clean-gmp
2a4cbe27 11927
a90ef4bf
JM
11928maintainer-clean-gmp:
11929 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11930 r=`${PWD_COMMAND}`; export r; \
11931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11932 $(HOST_EXPORTS) \
05a13254 11933 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11935 done; \
22121df0 11936 echo "Doing maintainer-clean in gmp"; \
a90ef4bf 11937 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11940 "RANLIB=$${RANLIB}" \
0c24b341 11941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11942 maintainer-clean) \
2a4cbe27
NN
11943 || exit 1
11944
a90ef4bf 11945@endif gmp
2a4cbe27 11946
2a4cbe27 11947
a7254363 11948
a90ef4bf
JM
11949.PHONY: configure-mpfr maybe-configure-mpfr
11950maybe-configure-mpfr:
4f0ef2d8 11951@if gcc-bootstrap
a90ef4bf 11952configure-mpfr: stage_current
4f0ef2d8 11953@endif gcc-bootstrap
a90ef4bf
JM
11954@if mpfr
11955maybe-configure-mpfr: configure-mpfr
11956configure-mpfr:
11957 @r=`${PWD_COMMAND}`; export r; \
11958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11959 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
22121df0 11960 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
1f53ca9a 11961 $(HOST_EXPORTS) \
a90ef4bf
JM
11962 echo Configuring in $(HOST_SUBDIR)/mpfr; \
11963 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
4fa63067 11964 case $(srcdir) in \
b00612cc 11965 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11966 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
b00612cc 11967 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11968 esac; \
1b6c0831
L
11969 module_srcdir=mpfr; \
11970 $(SHELL) \
11971 $$s/$$module_srcdir/configure \
11972 --srcdir=$${topdir}/$$module_srcdir \
4b900473 11973 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11974 --target=${target_alias} --disable-shared @extra_mpfr_configure_flags@ \
2a4cbe27 11975 || exit 1
a90ef4bf 11976@endif mpfr
d545f33b
PB
11977
11978
2a4cbe27 11979
a90ef4bf
JM
11980.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
11981maybe-configure-stage1-mpfr:
11982@if mpfr-bootstrap
11983maybe-configure-stage1-mpfr: configure-stage1-mpfr
11984configure-stage1-mpfr:
11985 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-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="$(STAGE1_TFLAGS)"; \
11990 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 11991 $(HOST_EXPORTS) \
a90ef4bf
JM
11992 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11993 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11994 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11995 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr; \
11996 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
11997 cd $(HOST_SUBDIR)/mpfr || exit 1; \
11998 case $(srcdir) in \
11999 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12000 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12001 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12002 esac; \
1b6c0831
L
12003 module_srcdir=mpfr; \
12004 $(SHELL) $$s/$$module_srcdir/configure \
12005 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12006 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12007 --target=${target_alias} \
12008 \
a90ef4bf
JM
12009 $(STAGE1_CONFIGURE_FLAGS) \
12010 --disable-shared @extra_mpfr_configure_flags@
12011@endif mpfr-bootstrap
2a4cbe27 12012
a90ef4bf
JM
12013.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
12014maybe-configure-stage2-mpfr:
12015@if mpfr-bootstrap
12016maybe-configure-stage2-mpfr: configure-stage2-mpfr
12017configure-stage2-mpfr:
12018 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12019 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 12020 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12022 TFLAGS="$(STAGE2_TFLAGS)"; \
12023 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12024 $(HOST_EXPORTS) \
a90ef4bf
JM
12025 $(POSTSTAGE1_HOST_EXPORTS) \
12026 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12027 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12028 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12029 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr; \
12030 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12031 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12032 case $(srcdir) in \
12033 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12034 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12035 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12036 esac; \
1b6c0831
L
12037 module_srcdir=mpfr; \
12038 $(SHELL) $$s/$$module_srcdir/configure \
12039 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12040 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12041 --target=${target_alias} \
22121df0 12042 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12043 $(STAGE2_CONFIGURE_FLAGS) \
12044 --disable-shared @extra_mpfr_configure_flags@
12045@endif mpfr-bootstrap
9b980aa1 12046
a90ef4bf
JM
12047.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
12048maybe-configure-stage3-mpfr:
12049@if mpfr-bootstrap
12050maybe-configure-stage3-mpfr: configure-stage3-mpfr
12051configure-stage3-mpfr:
12052 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12053 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
9b980aa1
RW
12054 @r=`${PWD_COMMAND}`; export r; \
12055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12056 TFLAGS="$(STAGE3_TFLAGS)"; \
12057 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
9b980aa1 12058 $(HOST_EXPORTS) \
a90ef4bf
JM
12059 $(POSTSTAGE1_HOST_EXPORTS) \
12060 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12061 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12062 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12063 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr; \
12064 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12065 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12066 case $(srcdir) in \
12067 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12068 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12069 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12070 esac; \
1b6c0831
L
12071 module_srcdir=mpfr; \
12072 $(SHELL) $$s/$$module_srcdir/configure \
12073 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12074 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12075 --target=${target_alias} \
22121df0 12076 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12077 $(STAGE3_CONFIGURE_FLAGS) \
12078 --disable-shared @extra_mpfr_configure_flags@
12079@endif mpfr-bootstrap
2a4cbe27 12080
a90ef4bf
JM
12081.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
12082maybe-configure-stage4-mpfr:
12083@if mpfr-bootstrap
12084maybe-configure-stage4-mpfr: configure-stage4-mpfr
12085configure-stage4-mpfr:
12086 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12087 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12088 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12090 TFLAGS="$(STAGE4_TFLAGS)"; \
12091 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12092 $(HOST_EXPORTS) \
a90ef4bf
JM
12093 $(POSTSTAGE1_HOST_EXPORTS) \
12094 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12095 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12096 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12097 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr; \
12098 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12099 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12100 case $(srcdir) in \
12101 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12102 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12103 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12104 esac; \
1b6c0831
L
12105 module_srcdir=mpfr; \
12106 $(SHELL) $$s/$$module_srcdir/configure \
12107 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12108 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12109 --target=${target_alias} \
22121df0 12110 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12111 $(STAGE4_CONFIGURE_FLAGS) \
12112 --disable-shared @extra_mpfr_configure_flags@
12113@endif mpfr-bootstrap
2a4cbe27 12114
a90ef4bf
JM
12115.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
12116maybe-configure-stageprofile-mpfr:
12117@if mpfr-bootstrap
12118maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
12119configure-stageprofile-mpfr:
12120 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12121 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12122 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12124 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12125 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12126 $(HOST_EXPORTS) \
a90ef4bf
JM
12127 $(POSTSTAGE1_HOST_EXPORTS) \
12128 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12129 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12130 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12131 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr; \
12132 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12133 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12134 case $(srcdir) in \
12135 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12136 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12137 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12138 esac; \
1b6c0831
L
12139 module_srcdir=mpfr; \
12140 $(SHELL) $$s/$$module_srcdir/configure \
12141 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12142 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12143 --target=${target_alias} \
22121df0 12144 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12145 $(STAGEprofile_CONFIGURE_FLAGS) \
12146 --disable-shared @extra_mpfr_configure_flags@
12147@endif mpfr-bootstrap
56a8fe78 12148
a90ef4bf
JM
12149.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
12150maybe-configure-stagefeedback-mpfr:
12151@if mpfr-bootstrap
12152maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
12153configure-stagefeedback-mpfr:
12154 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12155 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12156 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 12157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12158 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12159 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
56a8fe78 12160 $(HOST_EXPORTS) \
a90ef4bf
JM
12161 $(POSTSTAGE1_HOST_EXPORTS) \
12162 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12163 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12164 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12165 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr; \
12166 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12167 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12168 case $(srcdir) in \
12169 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12170 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12171 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12172 esac; \
1b6c0831
L
12173 module_srcdir=mpfr; \
12174 $(SHELL) $$s/$$module_srcdir/configure \
12175 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12176 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12177 --target=${target_alias} \
22121df0 12178 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12179 $(STAGEfeedback_CONFIGURE_FLAGS) \
12180 --disable-shared @extra_mpfr_configure_flags@
12181@endif mpfr-bootstrap
56a8fe78 12182
6d389afc 12183
6d389afc 12184
6d389afc 12185
2a4cbe27 12186
a90ef4bf
JM
12187.PHONY: all-mpfr maybe-all-mpfr
12188maybe-all-mpfr:
12189@if gcc-bootstrap
12190all-mpfr: stage_current
12191@endif gcc-bootstrap
12192@if mpfr
12193TARGET-mpfr=all
12194maybe-all-mpfr: all-mpfr
12195all-mpfr: configure-mpfr
12196 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12198 $(HOST_EXPORTS) \
12199 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12200 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12201 $(TARGET-mpfr))
12202@endif mpfr
2a4cbe27
NN
12203
12204
2a4cbe27 12205
a90ef4bf
JM
12206.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
12207.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
12208maybe-all-stage1-mpfr:
12209maybe-clean-stage1-mpfr:
12210@if mpfr-bootstrap
12211maybe-all-stage1-mpfr: all-stage1-mpfr
12212all-stage1: all-stage1-mpfr
12213TARGET-stage1-mpfr = $(TARGET-mpfr)
12214all-stage1-mpfr: configure-stage1-mpfr
12215 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12216 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12218 TFLAGS="$(STAGE1_TFLAGS)"; \
12219 $(HOST_EXPORTS) \
12220 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12221 \
a90ef4bf
JM
12222 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12223 CFLAGS="$(STAGE1_CFLAGS)" \
12224 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12225 LIBCFLAGS="$(LIBCFLAGS)" \
12226 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12227 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12228 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 12229 $(EXTRA_HOST_FLAGS) \
ce5e165e 12230 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12231 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 12232 $(TARGET-stage1-mpfr)
2a4cbe27 12233
a90ef4bf
JM
12234maybe-clean-stage1-mpfr: clean-stage1-mpfr
12235clean-stage1: clean-stage1-mpfr
12236clean-stage1-mpfr:
12237 @if [ $(current_stage) = stage1 ]; then \
12238 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12239 else \
12240 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
12241 $(MAKE) stage1-start; \
12242 fi; \
12243 cd $(HOST_SUBDIR)/mpfr && \
12244 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce5e165e 12245 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12246@endif mpfr-bootstrap
2a4cbe27 12247
a3ca38d2 12248
a90ef4bf
JM
12249.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
12250.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
12251maybe-all-stage2-mpfr:
12252maybe-clean-stage2-mpfr:
12253@if mpfr-bootstrap
12254maybe-all-stage2-mpfr: all-stage2-mpfr
12255all-stage2: all-stage2-mpfr
12256TARGET-stage2-mpfr = $(TARGET-mpfr)
12257all-stage2-mpfr: configure-stage2-mpfr
12258 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12259 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 12260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12261 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 12262 $(HOST_EXPORTS) \
a90ef4bf
JM
12263 $(POSTSTAGE1_HOST_EXPORTS) \
12264 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12265 \
a90ef4bf
JM
12266 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12267 CFLAGS="$(STAGE2_CFLAGS)" \
12268 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
12269 LIBCFLAGS="$(STAGE2_CFLAGS)" \
12270 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12271 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12272 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12273 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12274 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 12275 $(TARGET-stage2-mpfr)
a3ca38d2 12276
a90ef4bf
JM
12277maybe-clean-stage2-mpfr: clean-stage2-mpfr
12278clean-stage2: clean-stage2-mpfr
12279clean-stage2-mpfr:
12280 @if [ $(current_stage) = stage2 ]; then \
12281 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12282 else \
12283 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
12284 $(MAKE) stage2-start; \
12285 fi; \
12286 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12287 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12288@endif mpfr-bootstrap
a3ca38d2 12289
108a6f8e 12290
a90ef4bf
JM
12291.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
12292.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
12293maybe-all-stage3-mpfr:
12294maybe-clean-stage3-mpfr:
12295@if mpfr-bootstrap
12296maybe-all-stage3-mpfr: all-stage3-mpfr
12297all-stage3: all-stage3-mpfr
12298TARGET-stage3-mpfr = $(TARGET-mpfr)
12299all-stage3-mpfr: configure-stage3-mpfr
12300 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12301 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 12302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12303 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 12304 $(HOST_EXPORTS) \
a90ef4bf
JM
12305 $(POSTSTAGE1_HOST_EXPORTS) \
12306 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12307 \
a90ef4bf
JM
12308 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12309 CFLAGS="$(STAGE3_CFLAGS)" \
12310 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
12311 LIBCFLAGS="$(STAGE3_CFLAGS)" \
12312 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12313 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12314 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12315 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12316 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 12317 $(TARGET-stage3-mpfr)
108a6f8e 12318
a90ef4bf
JM
12319maybe-clean-stage3-mpfr: clean-stage3-mpfr
12320clean-stage3: clean-stage3-mpfr
12321clean-stage3-mpfr:
12322 @if [ $(current_stage) = stage3 ]; then \
12323 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12324 else \
12325 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
12326 $(MAKE) stage3-start; \
12327 fi; \
12328 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12329 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12330@endif mpfr-bootstrap
108a6f8e 12331
2a4cbe27 12332
a90ef4bf
JM
12333.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
12334.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
12335maybe-all-stage4-mpfr:
12336maybe-clean-stage4-mpfr:
12337@if mpfr-bootstrap
12338maybe-all-stage4-mpfr: all-stage4-mpfr
12339all-stage4: all-stage4-mpfr
12340TARGET-stage4-mpfr = $(TARGET-mpfr)
12341all-stage4-mpfr: configure-stage4-mpfr
12342 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12343 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12345 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 12346 $(HOST_EXPORTS) \
a90ef4bf
JM
12347 $(POSTSTAGE1_HOST_EXPORTS) \
12348 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12349 \
a90ef4bf
JM
12350 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12351 CFLAGS="$(STAGE4_CFLAGS)" \
12352 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
12353 LIBCFLAGS="$(STAGE4_CFLAGS)" \
12354 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12355 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12356 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12357 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12358 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 12359 $(TARGET-stage4-mpfr)
2a4cbe27 12360
a90ef4bf
JM
12361maybe-clean-stage4-mpfr: clean-stage4-mpfr
12362clean-stage4: clean-stage4-mpfr
12363clean-stage4-mpfr:
12364 @if [ $(current_stage) = stage4 ]; then \
12365 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12366 else \
12367 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
12368 $(MAKE) stage4-start; \
12369 fi; \
12370 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12371 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12372@endif mpfr-bootstrap
2a4cbe27 12373
2a4cbe27 12374
a90ef4bf
JM
12375.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
12376.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
12377maybe-all-stageprofile-mpfr:
12378maybe-clean-stageprofile-mpfr:
12379@if mpfr-bootstrap
12380maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
12381all-stageprofile: all-stageprofile-mpfr
12382TARGET-stageprofile-mpfr = $(TARGET-mpfr)
12383all-stageprofile-mpfr: configure-stageprofile-mpfr
12384 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12385 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12387 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 12388 $(HOST_EXPORTS) \
a90ef4bf
JM
12389 $(POSTSTAGE1_HOST_EXPORTS) \
12390 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12391 \
a90ef4bf
JM
12392 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12393 CFLAGS="$(STAGEprofile_CFLAGS)" \
12394 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12395 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12396 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12397 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12398 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12399 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12400 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 12401 $(TARGET-stageprofile-mpfr)
2a4cbe27 12402
a90ef4bf
JM
12403maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
12404clean-stageprofile: clean-stageprofile-mpfr
12405clean-stageprofile-mpfr:
12406 @if [ $(current_stage) = stageprofile ]; then \
12407 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12408 else \
12409 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
12410 $(MAKE) stageprofile-start; \
12411 fi; \
12412 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12413 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12414@endif mpfr-bootstrap
2a4cbe27 12415
a7254363 12416
a90ef4bf
JM
12417.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
12418.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
12419maybe-all-stagefeedback-mpfr:
12420maybe-clean-stagefeedback-mpfr:
12421@if mpfr-bootstrap
12422maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
12423all-stagefeedback: all-stagefeedback-mpfr
12424TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
12425all-stagefeedback-mpfr: configure-stagefeedback-mpfr
12426 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 12427 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12429 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12430 $(HOST_EXPORTS) \
12431 $(POSTSTAGE1_HOST_EXPORTS) \
12432 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12433 \
a90ef4bf
JM
12434 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12435 CFLAGS="$(STAGEfeedback_CFLAGS)" \
12436 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12437 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12438 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12439 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12440 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12441 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12442 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 12443 $(TARGET-stagefeedback-mpfr)
d545f33b 12444
a90ef4bf
JM
12445maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
12446clean-stagefeedback: clean-stagefeedback-mpfr
12447clean-stagefeedback-mpfr:
12448 @if [ $(current_stage) = stagefeedback ]; then \
12449 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12450 else \
12451 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
12452 $(MAKE) stagefeedback-start; \
12453 fi; \
12454 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12455 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12456@endif mpfr-bootstrap
d545f33b 12457
2a4cbe27 12458
a7254363 12459
d545f33b
PB
12460
12461
a90ef4bf
JM
12462.PHONY: check-mpfr maybe-check-mpfr
12463maybe-check-mpfr:
12464@if mpfr
12465maybe-check-mpfr: check-mpfr
2a4cbe27 12466
a90ef4bf 12467check-mpfr:
0aed8855 12468 @: $(MAKE); $(unstage)
4fa63067 12469 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 12471 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 12472 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12473 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 12474
a90ef4bf 12475@endif mpfr
2a4cbe27 12476
a90ef4bf
JM
12477.PHONY: install-mpfr maybe-install-mpfr
12478maybe-install-mpfr:
12479@if mpfr
12480maybe-install-mpfr: install-mpfr
2a4cbe27 12481
a90ef4bf 12482install-mpfr:
4fa63067 12483
a90ef4bf 12484@endif mpfr
4fa63067 12485
a90ef4bf
JM
12486.PHONY: install-strip-mpfr maybe-install-strip-mpfr
12487maybe-install-strip-mpfr:
12488@if mpfr
12489maybe-install-strip-mpfr: install-strip-mpfr
9b980aa1 12490
a90ef4bf 12491install-strip-mpfr:
9b980aa1 12492
a90ef4bf 12493@endif mpfr
9b980aa1 12494
56a8fe78 12495# Other targets (info, dvi, pdf, etc.)
4fa63067 12496
a90ef4bf
JM
12497.PHONY: maybe-info-mpfr info-mpfr
12498maybe-info-mpfr:
12499@if mpfr
12500maybe-info-mpfr: info-mpfr
4fa63067 12501
a90ef4bf
JM
12502info-mpfr: \
12503 configure-mpfr
12504 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12505 r=`${PWD_COMMAND}`; export r; \
12506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12507 $(HOST_EXPORTS) \
ce5e165e 12508 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12510 done; \
22121df0 12511 echo "Doing info in mpfr"; \
a90ef4bf 12512 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12515 "RANLIB=$${RANLIB}" \
0c24b341 12516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12517 info) \
2a4cbe27
NN
12518 || exit 1
12519
a90ef4bf 12520@endif mpfr
2a4cbe27 12521
a90ef4bf
JM
12522.PHONY: maybe-dvi-mpfr dvi-mpfr
12523maybe-dvi-mpfr:
12524@if mpfr
12525maybe-dvi-mpfr: dvi-mpfr
2a4cbe27 12526
a90ef4bf
JM
12527dvi-mpfr: \
12528 configure-mpfr
12529 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12530 r=`${PWD_COMMAND}`; export r; \
12531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12532 $(HOST_EXPORTS) \
ce5e165e 12533 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12535 done; \
22121df0 12536 echo "Doing dvi in mpfr"; \
a90ef4bf 12537 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12540 "RANLIB=$${RANLIB}" \
0c24b341 12541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12542 dvi) \
2a4cbe27
NN
12543 || exit 1
12544
a90ef4bf 12545@endif mpfr
2a4cbe27 12546
a90ef4bf
JM
12547.PHONY: maybe-pdf-mpfr pdf-mpfr
12548maybe-pdf-mpfr:
12549@if mpfr
12550maybe-pdf-mpfr: pdf-mpfr
56a8fe78 12551
a90ef4bf
JM
12552pdf-mpfr: \
12553 configure-mpfr
12554 @[ -f ./mpfr/Makefile ] || exit 0; \
56a8fe78
DD
12555 r=`${PWD_COMMAND}`; export r; \
12556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12557 $(HOST_EXPORTS) \
ce5e165e 12558 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
12559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12560 done; \
22121df0 12561 echo "Doing pdf in mpfr"; \
a90ef4bf 12562 (cd $(HOST_SUBDIR)/mpfr && \
56a8fe78
DD
12563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12565 "RANLIB=$${RANLIB}" \
0c24b341 12566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
12567 pdf) \
12568 || exit 1
12569
a90ef4bf 12570@endif mpfr
56a8fe78 12571
a90ef4bf
JM
12572.PHONY: maybe-html-mpfr html-mpfr
12573maybe-html-mpfr:
12574@if mpfr
12575maybe-html-mpfr: html-mpfr
6d389afc 12576
a90ef4bf
JM
12577html-mpfr: \
12578 configure-mpfr
12579 @[ -f ./mpfr/Makefile ] || exit 0; \
6d389afc
MS
12580 r=`${PWD_COMMAND}`; export r; \
12581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 12582 $(HOST_EXPORTS) \
ce5e165e 12583 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
12584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12585 done; \
22121df0 12586 echo "Doing html in mpfr"; \
a90ef4bf 12587 (cd $(HOST_SUBDIR)/mpfr && \
6d389afc
MS
12588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12590 "RANLIB=$${RANLIB}" \
0c24b341 12591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
12592 html) \
12593 || exit 1
12594
a90ef4bf 12595@endif mpfr
6d389afc 12596
a90ef4bf
JM
12597.PHONY: maybe-TAGS-mpfr TAGS-mpfr
12598maybe-TAGS-mpfr:
12599@if mpfr
12600maybe-TAGS-mpfr: TAGS-mpfr
4fa63067 12601
a90ef4bf
JM
12602TAGS-mpfr: \
12603 configure-mpfr
12604 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12605 r=`${PWD_COMMAND}`; export r; \
12606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12607 $(HOST_EXPORTS) \
ce5e165e 12608 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12610 done; \
22121df0 12611 echo "Doing TAGS in mpfr"; \
a90ef4bf 12612 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12615 "RANLIB=$${RANLIB}" \
0c24b341 12616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12617 TAGS) \
2a4cbe27
NN
12618 || exit 1
12619
a90ef4bf 12620@endif mpfr
2a4cbe27 12621
a90ef4bf
JM
12622.PHONY: maybe-install-info-mpfr install-info-mpfr
12623maybe-install-info-mpfr:
12624@if mpfr
12625maybe-install-info-mpfr: install-info-mpfr
2a4cbe27 12626
a90ef4bf
JM
12627install-info-mpfr: \
12628 configure-mpfr \
12629 info-mpfr
12630 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12631 r=`${PWD_COMMAND}`; export r; \
12632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12633 $(HOST_EXPORTS) \
ce5e165e 12634 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12636 done; \
22121df0 12637 echo "Doing install-info in mpfr"; \
a90ef4bf 12638 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12641 "RANLIB=$${RANLIB}" \
0c24b341 12642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12643 install-info) \
2a4cbe27
NN
12644 || exit 1
12645
a90ef4bf 12646@endif mpfr
2a4cbe27 12647
a90ef4bf
JM
12648.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
12649maybe-install-pdf-mpfr:
12650@if mpfr
12651maybe-install-pdf-mpfr: install-pdf-mpfr
a3ca38d2 12652
a90ef4bf
JM
12653install-pdf-mpfr: \
12654 configure-mpfr \
12655 pdf-mpfr
12656 @[ -f ./mpfr/Makefile ] || exit 0; \
a3ca38d2
DD
12657 r=`${PWD_COMMAND}`; export r; \
12658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12659 $(HOST_EXPORTS) \
ce5e165e 12660 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
12661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12662 done; \
22121df0 12663 echo "Doing install-pdf in mpfr"; \
a90ef4bf 12664 (cd $(HOST_SUBDIR)/mpfr && \
a3ca38d2
DD
12665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12667 "RANLIB=$${RANLIB}" \
0c24b341 12668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
12669 install-pdf) \
12670 || exit 1
12671
a90ef4bf 12672@endif mpfr
a3ca38d2 12673
a90ef4bf
JM
12674.PHONY: maybe-install-html-mpfr install-html-mpfr
12675maybe-install-html-mpfr:
12676@if mpfr
12677maybe-install-html-mpfr: install-html-mpfr
108a6f8e 12678
a90ef4bf
JM
12679install-html-mpfr: \
12680 configure-mpfr \
12681 html-mpfr
12682 @[ -f ./mpfr/Makefile ] || exit 0; \
108a6f8e
CD
12683 r=`${PWD_COMMAND}`; export r; \
12684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12685 $(HOST_EXPORTS) \
ce5e165e 12686 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
12687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12688 done; \
22121df0 12689 echo "Doing install-html in mpfr"; \
a90ef4bf 12690 (cd $(HOST_SUBDIR)/mpfr && \
108a6f8e
CD
12691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12693 "RANLIB=$${RANLIB}" \
0c24b341 12694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
12695 install-html) \
12696 || exit 1
12697
a90ef4bf 12698@endif mpfr
108a6f8e 12699
a90ef4bf
JM
12700.PHONY: maybe-installcheck-mpfr installcheck-mpfr
12701maybe-installcheck-mpfr:
12702@if mpfr
12703maybe-installcheck-mpfr: installcheck-mpfr
2a4cbe27 12704
a90ef4bf
JM
12705installcheck-mpfr: \
12706 configure-mpfr
12707 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12708 r=`${PWD_COMMAND}`; export r; \
12709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12710 $(HOST_EXPORTS) \
ce5e165e 12711 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12713 done; \
22121df0 12714 echo "Doing installcheck in mpfr"; \
a90ef4bf 12715 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12718 "RANLIB=$${RANLIB}" \
0c24b341 12719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12720 installcheck) \
2a4cbe27
NN
12721 || exit 1
12722
a90ef4bf 12723@endif mpfr
2a4cbe27 12724
a90ef4bf
JM
12725.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
12726maybe-mostlyclean-mpfr:
12727@if mpfr
12728maybe-mostlyclean-mpfr: mostlyclean-mpfr
2a4cbe27 12729
a90ef4bf
JM
12730mostlyclean-mpfr:
12731 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12732 r=`${PWD_COMMAND}`; export r; \
12733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12734 $(HOST_EXPORTS) \
ce5e165e 12735 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12737 done; \
22121df0 12738 echo "Doing mostlyclean in mpfr"; \
a90ef4bf 12739 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12742 "RANLIB=$${RANLIB}" \
0c24b341 12743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12744 mostlyclean) \
2a4cbe27
NN
12745 || exit 1
12746
a90ef4bf 12747@endif mpfr
2a4cbe27 12748
a90ef4bf
JM
12749.PHONY: maybe-clean-mpfr clean-mpfr
12750maybe-clean-mpfr:
12751@if mpfr
12752maybe-clean-mpfr: clean-mpfr
2a4cbe27 12753
a90ef4bf
JM
12754clean-mpfr:
12755 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12756 r=`${PWD_COMMAND}`; export r; \
12757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12758 $(HOST_EXPORTS) \
ce5e165e 12759 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12761 done; \
22121df0 12762 echo "Doing clean in mpfr"; \
a90ef4bf 12763 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12766 "RANLIB=$${RANLIB}" \
0c24b341 12767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12768 clean) \
2a4cbe27
NN
12769 || exit 1
12770
a90ef4bf 12771@endif mpfr
2a4cbe27 12772
a90ef4bf
JM
12773.PHONY: maybe-distclean-mpfr distclean-mpfr
12774maybe-distclean-mpfr:
12775@if mpfr
12776maybe-distclean-mpfr: distclean-mpfr
2a4cbe27 12777
a90ef4bf
JM
12778distclean-mpfr:
12779 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12780 r=`${PWD_COMMAND}`; export r; \
12781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12782 $(HOST_EXPORTS) \
ce5e165e 12783 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12785 done; \
22121df0 12786 echo "Doing distclean in mpfr"; \
a90ef4bf 12787 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12790 "RANLIB=$${RANLIB}" \
0c24b341 12791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12792 distclean) \
2a4cbe27
NN
12793 || exit 1
12794
a90ef4bf 12795@endif mpfr
2a4cbe27 12796
a90ef4bf
JM
12797.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
12798maybe-maintainer-clean-mpfr:
12799@if mpfr
12800maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
2a4cbe27 12801
a90ef4bf
JM
12802maintainer-clean-mpfr:
12803 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12804 r=`${PWD_COMMAND}`; export r; \
12805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12806 $(HOST_EXPORTS) \
ce5e165e 12807 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12809 done; \
22121df0 12810 echo "Doing maintainer-clean in mpfr"; \
a90ef4bf 12811 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12814 "RANLIB=$${RANLIB}" \
0c24b341 12815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12816 maintainer-clean) \
2a4cbe27
NN
12817 || exit 1
12818
a90ef4bf 12819@endif mpfr
2a4cbe27 12820
2a4cbe27 12821
a7254363 12822
a90ef4bf
JM
12823.PHONY: configure-mpc maybe-configure-mpc
12824maybe-configure-mpc:
4f0ef2d8 12825@if gcc-bootstrap
a90ef4bf 12826configure-mpc: stage_current
4f0ef2d8 12827@endif gcc-bootstrap
a90ef4bf
JM
12828@if mpc
12829maybe-configure-mpc: configure-mpc
12830configure-mpc:
c52c6897 12831 @r=`${PWD_COMMAND}`; export r; \
d3ed111c 12832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12833 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
22121df0 12834 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
1f53ca9a 12835 $(HOST_EXPORTS) \
a90ef4bf
JM
12836 echo Configuring in $(HOST_SUBDIR)/mpc; \
12837 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
d3ed111c 12838 case $(srcdir) in \
b00612cc 12839 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12840 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
b00612cc 12841 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d3ed111c 12842 esac; \
1b6c0831
L
12843 module_srcdir=mpc; \
12844 $(SHELL) \
12845 $$s/$$module_srcdir/configure \
12846 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12847 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e3f56a99 12848 --target=${target_alias} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
d3ed111c 12849 || exit 1
a90ef4bf 12850@endif mpc
d545f33b
PB
12851
12852
d3ed111c 12853
a90ef4bf
JM
12854.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
12855maybe-configure-stage1-mpc:
12856@if mpc-bootstrap
12857maybe-configure-stage1-mpc: configure-stage1-mpc
12858configure-stage1-mpc:
12859 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12860 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12861 @r=`${PWD_COMMAND}`; export r; \
12862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12863 TFLAGS="$(STAGE1_TFLAGS)"; \
12864 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12865 $(HOST_EXPORTS) \
a90ef4bf
JM
12866 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12867 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12868 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12869 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc; \
12870 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12871 cd $(HOST_SUBDIR)/mpc || exit 1; \
12872 case $(srcdir) in \
12873 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12874 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12875 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12876 esac; \
1b6c0831
L
12877 module_srcdir=mpc; \
12878 $(SHELL) $$s/$$module_srcdir/configure \
12879 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12880 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12881 --target=${target_alias} \
12882 \
a90ef4bf 12883 $(STAGE1_CONFIGURE_FLAGS) \
e3f56a99 12884 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 12885@endif mpc-bootstrap
d3ed111c 12886
a90ef4bf
JM
12887.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
12888maybe-configure-stage2-mpc:
12889@if mpc-bootstrap
12890maybe-configure-stage2-mpc: configure-stage2-mpc
12891configure-stage2-mpc:
12892 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12893 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12894 @r=`${PWD_COMMAND}`; export r; \
12895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12896 TFLAGS="$(STAGE2_TFLAGS)"; \
12897 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12898 $(HOST_EXPORTS) \
a90ef4bf
JM
12899 $(POSTSTAGE1_HOST_EXPORTS) \
12900 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12901 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12902 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12903 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc; \
12904 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12905 cd $(HOST_SUBDIR)/mpc || exit 1; \
12906 case $(srcdir) in \
12907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12908 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12910 esac; \
1b6c0831
L
12911 module_srcdir=mpc; \
12912 $(SHELL) $$s/$$module_srcdir/configure \
12913 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12914 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12915 --target=${target_alias} \
22121df0 12916 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12917 $(STAGE2_CONFIGURE_FLAGS) \
e3f56a99 12918 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 12919@endif mpc-bootstrap
9b980aa1 12920
a90ef4bf
JM
12921.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
12922maybe-configure-stage3-mpc:
12923@if mpc-bootstrap
12924maybe-configure-stage3-mpc: configure-stage3-mpc
12925configure-stage3-mpc:
12926 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12927 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
9b980aa1
RW
12928 @r=`${PWD_COMMAND}`; export r; \
12929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12930 TFLAGS="$(STAGE3_TFLAGS)"; \
12931 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
9b980aa1 12932 $(HOST_EXPORTS) \
a90ef4bf
JM
12933 $(POSTSTAGE1_HOST_EXPORTS) \
12934 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12935 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12936 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12937 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc; \
12938 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12939 cd $(HOST_SUBDIR)/mpc || exit 1; \
12940 case $(srcdir) in \
12941 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12942 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12943 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12944 esac; \
1b6c0831
L
12945 module_srcdir=mpc; \
12946 $(SHELL) $$s/$$module_srcdir/configure \
12947 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12948 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12949 --target=${target_alias} \
22121df0 12950 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12951 $(STAGE3_CONFIGURE_FLAGS) \
e3f56a99 12952 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 12953@endif mpc-bootstrap
d3ed111c 12954
a90ef4bf
JM
12955.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
12956maybe-configure-stage4-mpc:
12957@if mpc-bootstrap
12958maybe-configure-stage4-mpc: configure-stage4-mpc
12959configure-stage4-mpc:
12960 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12961 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12962 @r=`${PWD_COMMAND}`; export r; \
12963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12964 TFLAGS="$(STAGE4_TFLAGS)"; \
12965 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12966 $(HOST_EXPORTS) \
12967 $(POSTSTAGE1_HOST_EXPORTS) \
12968 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12969 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12970 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12971 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc; \
12972 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12973 cd $(HOST_SUBDIR)/mpc || exit 1; \
12974 case $(srcdir) in \
12975 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12976 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12977 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12978 esac; \
1b6c0831
L
12979 module_srcdir=mpc; \
12980 $(SHELL) $$s/$$module_srcdir/configure \
12981 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12982 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12983 --target=${target_alias} \
22121df0 12984 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12985 $(STAGE4_CONFIGURE_FLAGS) \
e3f56a99 12986 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
12987@endif mpc-bootstrap
12988
12989.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
12990maybe-configure-stageprofile-mpc:
12991@if mpc-bootstrap
12992maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
12993configure-stageprofile-mpc:
12994 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12995 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12996 @r=`${PWD_COMMAND}`; export r; \
12997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12998 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12999 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13000 $(HOST_EXPORTS) \
13001 $(POSTSTAGE1_HOST_EXPORTS) \
13002 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13003 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13004 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13005 echo Configuring stage profile in $(HOST_SUBDIR)/mpc; \
13006 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13007 cd $(HOST_SUBDIR)/mpc || exit 1; \
13008 case $(srcdir) in \
13009 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13010 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13011 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13012 esac; \
1b6c0831
L
13013 module_srcdir=mpc; \
13014 $(SHELL) $$s/$$module_srcdir/configure \
13015 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13016 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13017 --target=${target_alias} \
22121df0 13018 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13019 $(STAGEprofile_CONFIGURE_FLAGS) \
e3f56a99 13020 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13021@endif mpc-bootstrap
13022
13023.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
13024maybe-configure-stagefeedback-mpc:
13025@if mpc-bootstrap
13026maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
13027configure-stagefeedback-mpc:
13028 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13029 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
13030 @r=`${PWD_COMMAND}`; export r; \
13031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13032 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13033 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13034 $(HOST_EXPORTS) \
13035 $(POSTSTAGE1_HOST_EXPORTS) \
13036 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13037 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13038 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13039 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc; \
13040 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13041 cd $(HOST_SUBDIR)/mpc || exit 1; \
13042 case $(srcdir) in \
13043 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13044 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13045 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13046 esac; \
1b6c0831
L
13047 module_srcdir=mpc; \
13048 $(SHELL) $$s/$$module_srcdir/configure \
13049 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13050 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13051 --target=${target_alias} \
22121df0 13052 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13053 $(STAGEfeedback_CONFIGURE_FLAGS) \
e3f56a99 13054 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13055@endif mpc-bootstrap
13056
13057
13058
13059
13060
13061.PHONY: all-mpc maybe-all-mpc
13062maybe-all-mpc:
13063@if gcc-bootstrap
13064all-mpc: stage_current
13065@endif gcc-bootstrap
13066@if mpc
13067TARGET-mpc=all
13068maybe-all-mpc: all-mpc
13069all-mpc: configure-mpc
13070 @r=`${PWD_COMMAND}`; export r; \
13071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13072 $(HOST_EXPORTS) \
13073 (cd $(HOST_SUBDIR)/mpc && \
b3676d82 13074 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13075 $(TARGET-mpc))
13076@endif mpc
13077
13078
13079
13080.PHONY: all-stage1-mpc maybe-all-stage1-mpc
13081.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
13082maybe-all-stage1-mpc:
13083maybe-clean-stage1-mpc:
13084@if mpc-bootstrap
13085maybe-all-stage1-mpc: all-stage1-mpc
13086all-stage1: all-stage1-mpc
13087TARGET-stage1-mpc = $(TARGET-mpc)
13088all-stage1-mpc: configure-stage1-mpc
13089 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
13090 @r=`${PWD_COMMAND}`; export r; \
13091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13092 TFLAGS="$(STAGE1_TFLAGS)"; \
13093 $(HOST_EXPORTS) \
13094 cd $(HOST_SUBDIR)/mpc && \
05a13254 13095 \
a90ef4bf
JM
13096 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13097 CFLAGS="$(STAGE1_CFLAGS)" \
13098 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13099 LIBCFLAGS="$(LIBCFLAGS)" \
13100 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13101 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13102 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13103 $(EXTRA_HOST_FLAGS) \
13104 $(STAGE1_FLAGS_TO_PASS) \
05a13254 13105 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf
JM
13106 $(TARGET-stage1-mpc)
13107
13108maybe-clean-stage1-mpc: clean-stage1-mpc
13109clean-stage1: clean-stage1-mpc
13110clean-stage1-mpc:
13111 @if [ $(current_stage) = stage1 ]; then \
13112 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13113 else \
13114 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
13115 $(MAKE) stage1-start; \
13116 fi; \
13117 cd $(HOST_SUBDIR)/mpc && \
13118 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13119 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13120@endif mpc-bootstrap
13121
13122
13123.PHONY: all-stage2-mpc maybe-all-stage2-mpc
13124.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
13125maybe-all-stage2-mpc:
13126maybe-clean-stage2-mpc:
13127@if mpc-bootstrap
13128maybe-all-stage2-mpc: all-stage2-mpc
13129all-stage2: all-stage2-mpc
13130TARGET-stage2-mpc = $(TARGET-mpc)
13131all-stage2-mpc: configure-stage2-mpc
13132 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13133 @r=`${PWD_COMMAND}`; export r; \
13134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13135 TFLAGS="$(STAGE2_TFLAGS)"; \
13136 $(HOST_EXPORTS) \
13137 $(POSTSTAGE1_HOST_EXPORTS) \
13138 cd $(HOST_SUBDIR)/mpc && \
05a13254 13139 \
a90ef4bf
JM
13140 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13141 CFLAGS="$(STAGE2_CFLAGS)" \
13142 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13143 LIBCFLAGS="$(STAGE2_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) \
05a13254 13148 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf
JM
13149 $(TARGET-stage2-mpc)
13150
13151maybe-clean-stage2-mpc: clean-stage2-mpc
13152clean-stage2: clean-stage2-mpc
13153clean-stage2-mpc:
13154 @if [ $(current_stage) = stage2 ]; then \
13155 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13156 else \
13157 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
13158 $(MAKE) stage2-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-stage3-mpc maybe-all-stage3-mpc
13166.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
13167maybe-all-stage3-mpc:
13168maybe-clean-stage3-mpc:
13169@if mpc-bootstrap
13170maybe-all-stage3-mpc: all-stage3-mpc
13171all-stage3: all-stage3-mpc
13172TARGET-stage3-mpc = $(TARGET-mpc)
13173all-stage3-mpc: configure-stage3-mpc
13174 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13175 @r=`${PWD_COMMAND}`; export r; \
13176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13177 TFLAGS="$(STAGE3_TFLAGS)"; \
13178 $(HOST_EXPORTS) \
13179 $(POSTSTAGE1_HOST_EXPORTS) \
13180 cd $(HOST_SUBDIR)/mpc && \
05a13254 13181 \
a90ef4bf
JM
13182 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13183 CFLAGS="$(STAGE3_CFLAGS)" \
13184 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13185 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13186 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13187 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13188 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13189 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13190 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf
JM
13191 $(TARGET-stage3-mpc)
13192
13193maybe-clean-stage3-mpc: clean-stage3-mpc
13194clean-stage3: clean-stage3-mpc
13195clean-stage3-mpc:
13196 @if [ $(current_stage) = stage3 ]; then \
13197 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13198 else \
13199 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
13200 $(MAKE) stage3-start; \
13201 fi; \
13202 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13203 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13204@endif mpc-bootstrap
13205
13206
13207.PHONY: all-stage4-mpc maybe-all-stage4-mpc
13208.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
13209maybe-all-stage4-mpc:
13210maybe-clean-stage4-mpc:
13211@if mpc-bootstrap
13212maybe-all-stage4-mpc: all-stage4-mpc
13213all-stage4: all-stage4-mpc
13214TARGET-stage4-mpc = $(TARGET-mpc)
13215all-stage4-mpc: configure-stage4-mpc
13216 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13217 @r=`${PWD_COMMAND}`; export r; \
13218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13219 TFLAGS="$(STAGE4_TFLAGS)"; \
13220 $(HOST_EXPORTS) \
13221 $(POSTSTAGE1_HOST_EXPORTS) \
13222 cd $(HOST_SUBDIR)/mpc && \
05a13254 13223 \
a90ef4bf
JM
13224 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13225 CFLAGS="$(STAGE4_CFLAGS)" \
13226 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13227 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13228 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13229 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13230 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13231 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13232 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf
JM
13233 $(TARGET-stage4-mpc)
13234
13235maybe-clean-stage4-mpc: clean-stage4-mpc
13236clean-stage4: clean-stage4-mpc
13237clean-stage4-mpc:
13238 @if [ $(current_stage) = stage4 ]; then \
13239 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13240 else \
13241 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
13242 $(MAKE) stage4-start; \
13243 fi; \
13244 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13245 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13246@endif mpc-bootstrap
13247
13248
13249.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
13250.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
13251maybe-all-stageprofile-mpc:
13252maybe-clean-stageprofile-mpc:
13253@if mpc-bootstrap
13254maybe-all-stageprofile-mpc: all-stageprofile-mpc
13255all-stageprofile: all-stageprofile-mpc
13256TARGET-stageprofile-mpc = $(TARGET-mpc)
13257all-stageprofile-mpc: configure-stageprofile-mpc
13258 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13259 @r=`${PWD_COMMAND}`; export r; \
13260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13261 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13262 $(HOST_EXPORTS) \
13263 $(POSTSTAGE1_HOST_EXPORTS) \
13264 cd $(HOST_SUBDIR)/mpc && \
05a13254 13265 \
a90ef4bf
JM
13266 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13267 CFLAGS="$(STAGEprofile_CFLAGS)" \
13268 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13269 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13270 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13271 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13272 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13273 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13274 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
13275 $(TARGET-stageprofile-mpc)
13276
13277maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
13278clean-stageprofile: clean-stageprofile-mpc
13279clean-stageprofile-mpc:
13280 @if [ $(current_stage) = stageprofile ]; then \
13281 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13282 else \
13283 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
13284 $(MAKE) stageprofile-start; \
13285 fi; \
13286 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13287 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13288@endif mpc-bootstrap
13289
13290
13291.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
13292.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
13293maybe-all-stagefeedback-mpc:
13294maybe-clean-stagefeedback-mpc:
13295@if mpc-bootstrap
13296maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
13297all-stagefeedback: all-stagefeedback-mpc
13298TARGET-stagefeedback-mpc = $(TARGET-mpc)
13299all-stagefeedback-mpc: configure-stagefeedback-mpc
13300 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13301 @r=`${PWD_COMMAND}`; export r; \
13302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13303 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13304 $(HOST_EXPORTS) \
13305 $(POSTSTAGE1_HOST_EXPORTS) \
13306 cd $(HOST_SUBDIR)/mpc && \
05a13254 13307 \
a90ef4bf
JM
13308 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13309 CFLAGS="$(STAGEfeedback_CFLAGS)" \
13310 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13311 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13312 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13313 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13314 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13315 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13316 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
13317 $(TARGET-stagefeedback-mpc)
13318
13319maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
13320clean-stagefeedback: clean-stagefeedback-mpc
13321clean-stagefeedback-mpc:
13322 @if [ $(current_stage) = stagefeedback ]; then \
13323 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13324 else \
13325 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
13326 $(MAKE) stagefeedback-start; \
13327 fi; \
13328 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13329 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13330@endif mpc-bootstrap
13331
13332
13333
13334
13335
13336.PHONY: check-mpc maybe-check-mpc
13337maybe-check-mpc:
13338@if mpc
13339maybe-check-mpc: check-mpc
13340
13341check-mpc:
13342 @: $(MAKE); $(unstage)
13343 @r=`${PWD_COMMAND}`; export r; \
13344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 13345 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 13346 (cd $(HOST_SUBDIR)/mpc && \
f91ca6bc 13347 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf
JM
13348
13349@endif mpc
13350
13351.PHONY: install-mpc maybe-install-mpc
13352maybe-install-mpc:
13353@if mpc
13354maybe-install-mpc: install-mpc
13355
13356install-mpc:
13357
13358@endif mpc
13359
13360.PHONY: install-strip-mpc maybe-install-strip-mpc
13361maybe-install-strip-mpc:
13362@if mpc
13363maybe-install-strip-mpc: install-strip-mpc
13364
13365install-strip-mpc:
13366
13367@endif mpc
13368
13369# Other targets (info, dvi, pdf, etc.)
13370
13371.PHONY: maybe-info-mpc info-mpc
13372maybe-info-mpc:
13373@if mpc
13374maybe-info-mpc: info-mpc
13375
13376info-mpc: \
13377 configure-mpc
13378 @[ -f ./mpc/Makefile ] || exit 0; \
13379 r=`${PWD_COMMAND}`; export r; \
a4fd3374
DD
13380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13381 $(HOST_EXPORTS) \
13382 for flag in $(EXTRA_HOST_FLAGS) ; do \
13383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13384 done; \
22121df0 13385 echo "Doing info in mpc"; \
a90ef4bf 13386 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13389 "RANLIB=$${RANLIB}" \
0c24b341 13390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13391 info) \
13392 || exit 1
d3ed111c 13393
a90ef4bf 13394@endif mpc
d3ed111c 13395
a90ef4bf
JM
13396.PHONY: maybe-dvi-mpc dvi-mpc
13397maybe-dvi-mpc:
13398@if mpc
13399maybe-dvi-mpc: dvi-mpc
d3ed111c 13400
a90ef4bf
JM
13401dvi-mpc: \
13402 configure-mpc
13403 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13404 r=`${PWD_COMMAND}`; export r; \
13405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13406 $(HOST_EXPORTS) \
13407 for flag in $(EXTRA_HOST_FLAGS) ; do \
13408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13409 done; \
22121df0 13410 echo "Doing dvi in mpc"; \
a90ef4bf 13411 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13414 "RANLIB=$${RANLIB}" \
0c24b341 13415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13416 dvi) \
13417 || exit 1
d3ed111c 13418
a90ef4bf 13419@endif mpc
d3ed111c 13420
a90ef4bf
JM
13421.PHONY: maybe-pdf-mpc pdf-mpc
13422maybe-pdf-mpc:
13423@if mpc
13424maybe-pdf-mpc: pdf-mpc
56a8fe78 13425
a90ef4bf
JM
13426pdf-mpc: \
13427 configure-mpc
13428 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13429 r=`${PWD_COMMAND}`; export r; \
13430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13431 $(HOST_EXPORTS) \
13432 for flag in $(EXTRA_HOST_FLAGS) ; do \
13433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13434 done; \
22121df0 13435 echo "Doing pdf in mpc"; \
a90ef4bf 13436 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13439 "RANLIB=$${RANLIB}" \
0c24b341 13440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13441 pdf) \
13442 || exit 1
56a8fe78 13443
a90ef4bf 13444@endif mpc
56a8fe78 13445
a90ef4bf
JM
13446.PHONY: maybe-html-mpc html-mpc
13447maybe-html-mpc:
13448@if mpc
13449maybe-html-mpc: html-mpc
6d389afc 13450
a90ef4bf
JM
13451html-mpc: \
13452 configure-mpc
13453 @[ -f ./mpc/Makefile ] || exit 0; \
6d389afc
MS
13454 r=`${PWD_COMMAND}`; export r; \
13455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
13456 $(HOST_EXPORTS) \
13457 for flag in $(EXTRA_HOST_FLAGS) ; do \
13458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13459 done; \
22121df0 13460 echo "Doing html in mpc"; \
a90ef4bf 13461 (cd $(HOST_SUBDIR)/mpc && \
6d389afc
MS
13462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13464 "RANLIB=$${RANLIB}" \
0c24b341 13465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
13466 html) \
13467 || exit 1
13468
a90ef4bf 13469@endif mpc
d3ed111c 13470
a90ef4bf
JM
13471.PHONY: maybe-TAGS-mpc TAGS-mpc
13472maybe-TAGS-mpc:
13473@if mpc
13474maybe-TAGS-mpc: TAGS-mpc
d3ed111c 13475
a90ef4bf
JM
13476TAGS-mpc: \
13477 configure-mpc
13478 @[ -f ./mpc/Makefile ] || exit 0; \
13479 r=`${PWD_COMMAND}`; export r; \
13480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4fd3374
DD
13481 $(HOST_EXPORTS) \
13482 for flag in $(EXTRA_HOST_FLAGS) ; do \
13483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13484 done; \
22121df0 13485 echo "Doing TAGS in mpc"; \
a90ef4bf
JM
13486 (cd $(HOST_SUBDIR)/mpc && \
13487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13489 "RANLIB=$${RANLIB}" \
13490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
13491 TAGS) \
13492 || exit 1
13493
13494@endif mpc
13495
13496.PHONY: maybe-install-info-mpc install-info-mpc
13497maybe-install-info-mpc:
13498@if mpc
13499maybe-install-info-mpc: install-info-mpc
13500
13501install-info-mpc: \
13502 configure-mpc \
13503 info-mpc
13504 @[ -f ./mpc/Makefile ] || exit 0; \
13505 r=`${PWD_COMMAND}`; export r; \
13506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13507 $(HOST_EXPORTS) \
13508 for flag in $(EXTRA_HOST_FLAGS) ; do \
13509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13510 done; \
22121df0 13511 echo "Doing install-info in mpc"; \
a90ef4bf 13512 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13515 "RANLIB=$${RANLIB}" \
0c24b341 13516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13517 install-info) \
13518 || exit 1
d3ed111c 13519
a90ef4bf 13520@endif mpc
d3ed111c 13521
a90ef4bf
JM
13522.PHONY: maybe-install-pdf-mpc install-pdf-mpc
13523maybe-install-pdf-mpc:
13524@if mpc
13525maybe-install-pdf-mpc: install-pdf-mpc
a3ca38d2 13526
a90ef4bf
JM
13527install-pdf-mpc: \
13528 configure-mpc \
13529 pdf-mpc
13530 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13531 r=`${PWD_COMMAND}`; export r; \
13532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13533 $(HOST_EXPORTS) \
13534 for flag in $(EXTRA_HOST_FLAGS) ; do \
13535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13536 done; \
22121df0 13537 echo "Doing install-pdf in mpc"; \
a90ef4bf 13538 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13541 "RANLIB=$${RANLIB}" \
0c24b341 13542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13543 install-pdf) \
13544 || exit 1
a3ca38d2 13545
a90ef4bf 13546@endif mpc
a3ca38d2 13547
a90ef4bf
JM
13548.PHONY: maybe-install-html-mpc install-html-mpc
13549maybe-install-html-mpc:
13550@if mpc
13551maybe-install-html-mpc: install-html-mpc
108a6f8e 13552
a90ef4bf
JM
13553install-html-mpc: \
13554 configure-mpc \
13555 html-mpc
13556 @[ -f ./mpc/Makefile ] || exit 0; \
108a6f8e
CD
13557 r=`${PWD_COMMAND}`; export r; \
13558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13559 $(HOST_EXPORTS) \
13560 for flag in $(EXTRA_HOST_FLAGS) ; do \
13561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13562 done; \
22121df0 13563 echo "Doing install-html in mpc"; \
a90ef4bf 13564 (cd $(HOST_SUBDIR)/mpc && \
108a6f8e
CD
13565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13567 "RANLIB=$${RANLIB}" \
0c24b341 13568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
13569 install-html) \
13570 || exit 1
13571
a90ef4bf 13572@endif mpc
108a6f8e 13573
a90ef4bf
JM
13574.PHONY: maybe-installcheck-mpc installcheck-mpc
13575maybe-installcheck-mpc:
13576@if mpc
13577maybe-installcheck-mpc: installcheck-mpc
d3ed111c 13578
a90ef4bf
JM
13579installcheck-mpc: \
13580 configure-mpc
13581 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13582 r=`${PWD_COMMAND}`; export r; \
13583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13584 $(HOST_EXPORTS) \
13585 for flag in $(EXTRA_HOST_FLAGS) ; do \
13586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13587 done; \
22121df0 13588 echo "Doing installcheck in mpc"; \
a90ef4bf 13589 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13592 "RANLIB=$${RANLIB}" \
0c24b341 13593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13594 installcheck) \
13595 || exit 1
d3ed111c 13596
a90ef4bf 13597@endif mpc
d3ed111c 13598
a90ef4bf
JM
13599.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
13600maybe-mostlyclean-mpc:
13601@if mpc
13602maybe-mostlyclean-mpc: mostlyclean-mpc
d3ed111c 13603
a90ef4bf
JM
13604mostlyclean-mpc:
13605 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13606 r=`${PWD_COMMAND}`; export r; \
13607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13608 $(HOST_EXPORTS) \
13609 for flag in $(EXTRA_HOST_FLAGS) ; do \
13610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13611 done; \
22121df0 13612 echo "Doing mostlyclean in mpc"; \
a90ef4bf 13613 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13616 "RANLIB=$${RANLIB}" \
0c24b341 13617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13618 mostlyclean) \
13619 || exit 1
13620
a90ef4bf 13621@endif mpc
d3ed111c 13622
a90ef4bf
JM
13623.PHONY: maybe-clean-mpc clean-mpc
13624maybe-clean-mpc:
13625@if mpc
13626maybe-clean-mpc: clean-mpc
d3ed111c 13627
a90ef4bf
JM
13628clean-mpc:
13629 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13630 r=`${PWD_COMMAND}`; export r; \
13631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13632 $(HOST_EXPORTS) \
13633 for flag in $(EXTRA_HOST_FLAGS) ; do \
13634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13635 done; \
22121df0 13636 echo "Doing clean in mpc"; \
a90ef4bf 13637 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13640 "RANLIB=$${RANLIB}" \
0c24b341 13641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13642 clean) \
13643 || exit 1
13644
a90ef4bf 13645@endif mpc
d3ed111c 13646
a90ef4bf
JM
13647.PHONY: maybe-distclean-mpc distclean-mpc
13648maybe-distclean-mpc:
13649@if mpc
13650maybe-distclean-mpc: distclean-mpc
d3ed111c 13651
a90ef4bf
JM
13652distclean-mpc:
13653 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13654 r=`${PWD_COMMAND}`; export r; \
13655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13656 $(HOST_EXPORTS) \
13657 for flag in $(EXTRA_HOST_FLAGS) ; do \
13658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13659 done; \
22121df0 13660 echo "Doing distclean in mpc"; \
a90ef4bf 13661 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13664 "RANLIB=$${RANLIB}" \
0c24b341 13665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13666 distclean) \
13667 || exit 1
13668
a90ef4bf 13669@endif mpc
d3ed111c 13670
a90ef4bf
JM
13671.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
13672maybe-maintainer-clean-mpc:
13673@if mpc
13674maybe-maintainer-clean-mpc: maintainer-clean-mpc
d3ed111c 13675
a90ef4bf
JM
13676maintainer-clean-mpc:
13677 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13678 r=`${PWD_COMMAND}`; export r; \
13679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13680 $(HOST_EXPORTS) \
13681 for flag in $(EXTRA_HOST_FLAGS) ; do \
13682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13683 done; \
22121df0 13684 echo "Doing maintainer-clean in mpc"; \
a90ef4bf 13685 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13688 "RANLIB=$${RANLIB}" \
0c24b341 13689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13690 maintainer-clean) \
13691 || exit 1
13692
a90ef4bf 13693@endif mpc
d3ed111c
GK
13694
13695
a7254363 13696
7ec59b9e
L
13697.PHONY: configure-isl maybe-configure-isl
13698maybe-configure-isl:
4f0ef2d8 13699@if gcc-bootstrap
7ec59b9e 13700configure-isl: stage_current
4f0ef2d8 13701@endif gcc-bootstrap
7ec59b9e
L
13702@if isl
13703maybe-configure-isl: configure-isl
13704configure-isl:
c52c6897 13705 @r=`${PWD_COMMAND}`; export r; \
4fa63067 13706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e 13707 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
22121df0 13708 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
1f53ca9a 13709 $(HOST_EXPORTS) \
7ec59b9e
L
13710 echo Configuring in $(HOST_SUBDIR)/isl; \
13711 cd "$(HOST_SUBDIR)/isl" || exit 1; \
4fa63067 13712 case $(srcdir) in \
b00612cc 13713 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13714 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
b00612cc 13715 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13716 esac; \
1b6c0831
L
13717 module_srcdir=isl; \
13718 $(SHELL) \
13719 $$s/$$module_srcdir/configure \
13720 --srcdir=$${topdir}/$$module_srcdir \
4b900473 13721 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13722 --target=${target_alias} --disable-shared @extra_isl_gmp_configure_flags@ \
4fa63067 13723 || exit 1
7ec59b9e 13724@endif isl
4fa63067 13725
a7254363
PB
13726
13727
7ec59b9e
L
13728.PHONY: configure-stage1-isl maybe-configure-stage1-isl
13729maybe-configure-stage1-isl:
13730@if isl-bootstrap
13731maybe-configure-stage1-isl: configure-stage1-isl
13732configure-stage1-isl:
a90ef4bf 13733 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
7ec59b9e 13734 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13735 @r=`${PWD_COMMAND}`; export r; \
13736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13737 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 13738 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13739 $(HOST_EXPORTS) \
13740 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13741 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13742 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
13743 echo Configuring stage 1 in $(HOST_SUBDIR)/isl; \
13744 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13745 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13746 case $(srcdir) in \
13747 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13748 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13749 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13750 esac; \
1b6c0831
L
13751 module_srcdir=isl; \
13752 $(SHELL) $$s/$$module_srcdir/configure \
13753 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13754 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13755 --target=${target_alias} \
13756 \
a90ef4bf 13757 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e
L
13758 --disable-shared @extra_isl_gmp_configure_flags@
13759@endif isl-bootstrap
13760
13761.PHONY: configure-stage2-isl maybe-configure-stage2-isl
13762maybe-configure-stage2-isl:
13763@if isl-bootstrap
13764maybe-configure-stage2-isl: configure-stage2-isl
13765configure-stage2-isl:
a90ef4bf 13766 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
7ec59b9e 13767 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13768 @r=`${PWD_COMMAND}`; export r; \
13769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13770 TFLAGS="$(STAGE2_TFLAGS)"; \
7ec59b9e 13771 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13772 $(HOST_EXPORTS) \
13773 $(POSTSTAGE1_HOST_EXPORTS) \
13774 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13775 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13776 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13777 echo Configuring stage 2 in $(HOST_SUBDIR)/isl; \
13778 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13779 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13780 case $(srcdir) in \
13781 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13782 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13783 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13784 esac; \
1b6c0831
L
13785 module_srcdir=isl; \
13786 $(SHELL) $$s/$$module_srcdir/configure \
13787 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13788 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13789 --target=${target_alias} \
22121df0 13790 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13791 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e
L
13792 --disable-shared @extra_isl_gmp_configure_flags@
13793@endif isl-bootstrap
13794
13795.PHONY: configure-stage3-isl maybe-configure-stage3-isl
13796maybe-configure-stage3-isl:
13797@if isl-bootstrap
13798maybe-configure-stage3-isl: configure-stage3-isl
13799configure-stage3-isl:
a90ef4bf 13800 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
7ec59b9e 13801 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
4fa63067
NN
13802 @r=`${PWD_COMMAND}`; export r; \
13803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13804 TFLAGS="$(STAGE3_TFLAGS)"; \
7ec59b9e 13805 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13806 $(HOST_EXPORTS) \
13807 $(POSTSTAGE1_HOST_EXPORTS) \
13808 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13809 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13810 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13811 echo Configuring stage 3 in $(HOST_SUBDIR)/isl; \
13812 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13813 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13814 case $(srcdir) in \
13815 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13816 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13817 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13818 esac; \
1b6c0831
L
13819 module_srcdir=isl; \
13820 $(SHELL) $$s/$$module_srcdir/configure \
13821 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13822 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13823 --target=${target_alias} \
22121df0 13824 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13825 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e
L
13826 --disable-shared @extra_isl_gmp_configure_flags@
13827@endif isl-bootstrap
13828
13829.PHONY: configure-stage4-isl maybe-configure-stage4-isl
13830maybe-configure-stage4-isl:
13831@if isl-bootstrap
13832maybe-configure-stage4-isl: configure-stage4-isl
13833configure-stage4-isl:
a90ef4bf 13834 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
7ec59b9e 13835 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13836 @r=`${PWD_COMMAND}`; export r; \
13837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13838 TFLAGS="$(STAGE4_TFLAGS)"; \
7ec59b9e 13839 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13840 $(HOST_EXPORTS) \
13841 $(POSTSTAGE1_HOST_EXPORTS) \
13842 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13843 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13844 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13845 echo Configuring stage 4 in $(HOST_SUBDIR)/isl; \
13846 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13847 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13848 case $(srcdir) in \
13849 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13850 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13851 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13852 esac; \
1b6c0831
L
13853 module_srcdir=isl; \
13854 $(SHELL) $$s/$$module_srcdir/configure \
13855 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13856 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13857 --target=${target_alias} \
22121df0 13858 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13859 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e
L
13860 --disable-shared @extra_isl_gmp_configure_flags@
13861@endif isl-bootstrap
13862
13863.PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl
13864maybe-configure-stageprofile-isl:
13865@if isl-bootstrap
13866maybe-configure-stageprofile-isl: configure-stageprofile-isl
13867configure-stageprofile-isl:
a90ef4bf 13868 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
7ec59b9e 13869 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13870 @r=`${PWD_COMMAND}`; export r; \
13871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13872 TFLAGS="$(STAGEprofile_TFLAGS)"; \
7ec59b9e 13873 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13874 $(HOST_EXPORTS) \
13875 $(POSTSTAGE1_HOST_EXPORTS) \
13876 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13877 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13878 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13879 echo Configuring stage profile in $(HOST_SUBDIR)/isl; \
13880 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13881 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13882 case $(srcdir) in \
13883 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13884 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13885 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13886 esac; \
1b6c0831
L
13887 module_srcdir=isl; \
13888 $(SHELL) $$s/$$module_srcdir/configure \
13889 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13890 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13891 --target=${target_alias} \
22121df0 13892 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13893 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e
L
13894 --disable-shared @extra_isl_gmp_configure_flags@
13895@endif isl-bootstrap
13896
13897.PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl
13898maybe-configure-stagefeedback-isl:
13899@if isl-bootstrap
13900maybe-configure-stagefeedback-isl: configure-stagefeedback-isl
13901configure-stagefeedback-isl:
a90ef4bf 13902 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
7ec59b9e 13903 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13904 @r=`${PWD_COMMAND}`; export r; \
13905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13906 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
7ec59b9e 13907 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13908 $(HOST_EXPORTS) \
13909 $(POSTSTAGE1_HOST_EXPORTS) \
13910 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13911 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13912 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13913 echo Configuring stage feedback in $(HOST_SUBDIR)/isl; \
13914 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13915 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13916 case $(srcdir) in \
13917 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13918 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13919 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13920 esac; \
1b6c0831
L
13921 module_srcdir=isl; \
13922 $(SHELL) $$s/$$module_srcdir/configure \
13923 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13924 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13925 --target=${target_alias} \
22121df0 13926 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13927 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e
L
13928 --disable-shared @extra_isl_gmp_configure_flags@
13929@endif isl-bootstrap
d545f33b 13930
4fa63067 13931
4fa63067
NN
13932
13933
4fa63067 13934
7ec59b9e
L
13935.PHONY: all-isl maybe-all-isl
13936maybe-all-isl:
a90ef4bf 13937@if gcc-bootstrap
7ec59b9e 13938all-isl: stage_current
a90ef4bf 13939@endif gcc-bootstrap
7ec59b9e
L
13940@if isl
13941TARGET-isl=all
13942maybe-all-isl: all-isl
13943all-isl: configure-isl
4fa63067
NN
13944 @r=`${PWD_COMMAND}`; export r; \
13945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13946 $(HOST_EXPORTS) \
7ec59b9e 13947 (cd $(HOST_SUBDIR)/isl && \
b3676d82 13948 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \
7ec59b9e
L
13949 $(TARGET-isl))
13950@endif isl
13951
13952
13953
13954.PHONY: all-stage1-isl maybe-all-stage1-isl
13955.PHONY: clean-stage1-isl maybe-clean-stage1-isl
13956maybe-all-stage1-isl:
13957maybe-clean-stage1-isl:
13958@if isl-bootstrap
13959maybe-all-stage1-isl: all-stage1-isl
13960all-stage1: all-stage1-isl
13961TARGET-stage1-isl = $(TARGET-isl)
13962all-stage1-isl: configure-stage1-isl
a90ef4bf 13963 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9b980aa1
RW
13964 @r=`${PWD_COMMAND}`; export r; \
13965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13966 TFLAGS="$(STAGE1_TFLAGS)"; \
13967 $(HOST_EXPORTS) \
7ec59b9e 13968 cd $(HOST_SUBDIR)/isl && \
05a13254 13969 \
a90ef4bf
JM
13970 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13971 CFLAGS="$(STAGE1_CFLAGS)" \
13972 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13973 LIBCFLAGS="$(LIBCFLAGS)" \
13974 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13975 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13976 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13977 $(EXTRA_HOST_FLAGS) \
13978 $(STAGE1_FLAGS_TO_PASS) V=1 \
05a13254 13979 TFLAGS="$(STAGE1_TFLAGS)" \
7ec59b9e 13980 $(TARGET-stage1-isl)
9b980aa1 13981
7ec59b9e
L
13982maybe-clean-stage1-isl: clean-stage1-isl
13983clean-stage1: clean-stage1-isl
13984clean-stage1-isl:
a90ef4bf 13985 @if [ $(current_stage) = stage1 ]; then \
7ec59b9e 13986 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 13987 else \
7ec59b9e 13988 [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \
a90ef4bf
JM
13989 $(MAKE) stage1-start; \
13990 fi; \
7ec59b9e 13991 cd $(HOST_SUBDIR)/isl && \
a90ef4bf 13992 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13993 $(STAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
13994@endif isl-bootstrap
13995
13996
13997.PHONY: all-stage2-isl maybe-all-stage2-isl
13998.PHONY: clean-stage2-isl maybe-clean-stage2-isl
13999maybe-all-stage2-isl:
14000maybe-clean-stage2-isl:
14001@if isl-bootstrap
14002maybe-all-stage2-isl: all-stage2-isl
14003all-stage2: all-stage2-isl
14004TARGET-stage2-isl = $(TARGET-isl)
14005all-stage2-isl: configure-stage2-isl
a90ef4bf
JM
14006 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
14007 @r=`${PWD_COMMAND}`; export r; \
14008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14009 TFLAGS="$(STAGE2_TFLAGS)"; \
14010 $(HOST_EXPORTS) \
14011 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14012 cd $(HOST_SUBDIR)/isl && \
05a13254 14013 \
a90ef4bf
JM
14014 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14015 CFLAGS="$(STAGE2_CFLAGS)" \
14016 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
14017 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14018 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14019 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14020 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14021 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14022 TFLAGS="$(STAGE2_TFLAGS)" \
7ec59b9e 14023 $(TARGET-stage2-isl)
a90ef4bf 14024
7ec59b9e
L
14025maybe-clean-stage2-isl: clean-stage2-isl
14026clean-stage2: clean-stage2-isl
14027clean-stage2-isl:
a90ef4bf 14028 @if [ $(current_stage) = stage2 ]; then \
7ec59b9e 14029 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14030 else \
7ec59b9e 14031 [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14032 $(MAKE) stage2-start; \
14033 fi; \
7ec59b9e 14034 cd $(HOST_SUBDIR)/isl && \
b3676d82 14035 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14036@endif isl-bootstrap
14037
14038
14039.PHONY: all-stage3-isl maybe-all-stage3-isl
14040.PHONY: clean-stage3-isl maybe-clean-stage3-isl
14041maybe-all-stage3-isl:
14042maybe-clean-stage3-isl:
14043@if isl-bootstrap
14044maybe-all-stage3-isl: all-stage3-isl
14045all-stage3: all-stage3-isl
14046TARGET-stage3-isl = $(TARGET-isl)
14047all-stage3-isl: configure-stage3-isl
a90ef4bf
JM
14048 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
14049 @r=`${PWD_COMMAND}`; export r; \
14050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14051 TFLAGS="$(STAGE3_TFLAGS)"; \
14052 $(HOST_EXPORTS) \
14053 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14054 cd $(HOST_SUBDIR)/isl && \
05a13254 14055 \
a90ef4bf
JM
14056 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14057 CFLAGS="$(STAGE3_CFLAGS)" \
14058 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
14059 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14060 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14061 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14062 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14063 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14064 TFLAGS="$(STAGE3_TFLAGS)" \
7ec59b9e 14065 $(TARGET-stage3-isl)
a90ef4bf 14066
7ec59b9e
L
14067maybe-clean-stage3-isl: clean-stage3-isl
14068clean-stage3: clean-stage3-isl
14069clean-stage3-isl:
a90ef4bf 14070 @if [ $(current_stage) = stage3 ]; then \
7ec59b9e 14071 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14072 else \
7ec59b9e 14073 [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14074 $(MAKE) stage3-start; \
14075 fi; \
7ec59b9e 14076 cd $(HOST_SUBDIR)/isl && \
b3676d82 14077 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14078@endif isl-bootstrap
14079
14080
14081.PHONY: all-stage4-isl maybe-all-stage4-isl
14082.PHONY: clean-stage4-isl maybe-clean-stage4-isl
14083maybe-all-stage4-isl:
14084maybe-clean-stage4-isl:
14085@if isl-bootstrap
14086maybe-all-stage4-isl: all-stage4-isl
14087all-stage4: all-stage4-isl
14088TARGET-stage4-isl = $(TARGET-isl)
14089all-stage4-isl: configure-stage4-isl
a90ef4bf
JM
14090 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
14091 @r=`${PWD_COMMAND}`; export r; \
14092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14093 TFLAGS="$(STAGE4_TFLAGS)"; \
14094 $(HOST_EXPORTS) \
14095 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14096 cd $(HOST_SUBDIR)/isl && \
05a13254 14097 \
a90ef4bf
JM
14098 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14099 CFLAGS="$(STAGE4_CFLAGS)" \
14100 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
14101 LIBCFLAGS="$(STAGE4_CFLAGS)" \
14102 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14103 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14104 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14105 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14106 TFLAGS="$(STAGE4_TFLAGS)" \
7ec59b9e 14107 $(TARGET-stage4-isl)
a90ef4bf 14108
7ec59b9e
L
14109maybe-clean-stage4-isl: clean-stage4-isl
14110clean-stage4: clean-stage4-isl
14111clean-stage4-isl:
a90ef4bf 14112 @if [ $(current_stage) = stage4 ]; then \
7ec59b9e 14113 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14114 else \
7ec59b9e 14115 [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14116 $(MAKE) stage4-start; \
14117 fi; \
7ec59b9e 14118 cd $(HOST_SUBDIR)/isl && \
b3676d82 14119 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14120@endif isl-bootstrap
14121
14122
14123.PHONY: all-stageprofile-isl maybe-all-stageprofile-isl
14124.PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl
14125maybe-all-stageprofile-isl:
14126maybe-clean-stageprofile-isl:
14127@if isl-bootstrap
14128maybe-all-stageprofile-isl: all-stageprofile-isl
14129all-stageprofile: all-stageprofile-isl
14130TARGET-stageprofile-isl = $(TARGET-isl)
14131all-stageprofile-isl: configure-stageprofile-isl
a90ef4bf
JM
14132 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
14133 @r=`${PWD_COMMAND}`; export r; \
14134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14135 TFLAGS="$(STAGEprofile_TFLAGS)"; \
14136 $(HOST_EXPORTS) \
14137 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14138 cd $(HOST_SUBDIR)/isl && \
05a13254 14139 \
a90ef4bf
JM
14140 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14141 CFLAGS="$(STAGEprofile_CFLAGS)" \
14142 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
14143 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14144 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14145 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14146 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14147 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14148 TFLAGS="$(STAGEprofile_TFLAGS)" \
7ec59b9e 14149 $(TARGET-stageprofile-isl)
a90ef4bf 14150
7ec59b9e
L
14151maybe-clean-stageprofile-isl: clean-stageprofile-isl
14152clean-stageprofile: clean-stageprofile-isl
14153clean-stageprofile-isl:
a90ef4bf 14154 @if [ $(current_stage) = stageprofile ]; then \
7ec59b9e 14155 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14156 else \
7ec59b9e 14157 [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14158 $(MAKE) stageprofile-start; \
14159 fi; \
7ec59b9e 14160 cd $(HOST_SUBDIR)/isl && \
b3676d82 14161 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14162@endif isl-bootstrap
14163
14164
14165.PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl
14166.PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl
14167maybe-all-stagefeedback-isl:
14168maybe-clean-stagefeedback-isl:
14169@if isl-bootstrap
14170maybe-all-stagefeedback-isl: all-stagefeedback-isl
14171all-stagefeedback: all-stagefeedback-isl
14172TARGET-stagefeedback-isl = $(TARGET-isl)
14173all-stagefeedback-isl: configure-stagefeedback-isl
a90ef4bf
JM
14174 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
14175 @r=`${PWD_COMMAND}`; export r; \
14176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14177 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
14178 $(HOST_EXPORTS) \
14179 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14180 cd $(HOST_SUBDIR)/isl && \
05a13254 14181 \
a90ef4bf
JM
14182 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14183 CFLAGS="$(STAGEfeedback_CFLAGS)" \
14184 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
14185 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14186 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14187 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14188 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14189 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14190 TFLAGS="$(STAGEfeedback_TFLAGS)" \
7ec59b9e 14191 $(TARGET-stagefeedback-isl)
a90ef4bf 14192
7ec59b9e
L
14193maybe-clean-stagefeedback-isl: clean-stagefeedback-isl
14194clean-stagefeedback: clean-stagefeedback-isl
14195clean-stagefeedback-isl:
a90ef4bf 14196 @if [ $(current_stage) = stagefeedback ]; then \
7ec59b9e 14197 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14198 else \
7ec59b9e 14199 [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14200 $(MAKE) stagefeedback-start; \
14201 fi; \
7ec59b9e 14202 cd $(HOST_SUBDIR)/isl && \
b3676d82 14203 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e 14204@endif isl-bootstrap
a90ef4bf
JM
14205
14206
14207
14208
14209
7ec59b9e
L
14210.PHONY: check-isl maybe-check-isl
14211maybe-check-isl:
14212@if isl
14213maybe-check-isl: check-isl
a90ef4bf 14214
7ec59b9e 14215check-isl:
0aed8855 14216 @: $(MAKE); $(unstage)
a90ef4bf
JM
14217 @r=`${PWD_COMMAND}`; export r; \
14218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 14219 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
7ec59b9e 14220 (cd $(HOST_SUBDIR)/isl && \
f91ca6bc 14221 $(MAKE) $(FLAGS_TO_PASS) V=1 $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf 14222
7ec59b9e 14223@endif isl
a90ef4bf 14224
7ec59b9e
L
14225.PHONY: install-isl maybe-install-isl
14226maybe-install-isl:
14227@if isl
14228maybe-install-isl: install-isl
a90ef4bf 14229
7ec59b9e 14230install-isl:
a90ef4bf 14231
7ec59b9e 14232@endif isl
a90ef4bf 14233
7ec59b9e
L
14234.PHONY: install-strip-isl maybe-install-strip-isl
14235maybe-install-strip-isl:
14236@if isl
14237maybe-install-strip-isl: install-strip-isl
a90ef4bf 14238
7ec59b9e 14239install-strip-isl:
a90ef4bf 14240
7ec59b9e 14241@endif isl
a90ef4bf
JM
14242
14243# Other targets (info, dvi, pdf, etc.)
14244
7ec59b9e
L
14245.PHONY: maybe-info-isl info-isl
14246maybe-info-isl:
14247@if isl
14248maybe-info-isl: info-isl
a90ef4bf 14249
7ec59b9e
L
14250info-isl: \
14251 configure-isl
14252 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14253 r=`${PWD_COMMAND}`; export r; \
14254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14255 $(HOST_EXPORTS) \
7ec59b9e 14256 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14258 done; \
22121df0 14259 echo "Doing info in isl"; \
7ec59b9e 14260 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14263 "RANLIB=$${RANLIB}" \
0c24b341 14264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14265 info) \
2a4cbe27
NN
14266 || exit 1
14267
7ec59b9e 14268@endif isl
2a4cbe27 14269
7ec59b9e
L
14270.PHONY: maybe-dvi-isl dvi-isl
14271maybe-dvi-isl:
14272@if isl
14273maybe-dvi-isl: dvi-isl
2a4cbe27 14274
7ec59b9e
L
14275dvi-isl: \
14276 configure-isl
14277 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14278 r=`${PWD_COMMAND}`; export r; \
14279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14280 $(HOST_EXPORTS) \
7ec59b9e 14281 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14283 done; \
22121df0 14284 echo "Doing dvi in isl"; \
7ec59b9e 14285 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14288 "RANLIB=$${RANLIB}" \
0c24b341 14289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14290 dvi) \
2a4cbe27
NN
14291 || exit 1
14292
7ec59b9e 14293@endif isl
2a4cbe27 14294
7ec59b9e
L
14295.PHONY: maybe-pdf-isl pdf-isl
14296maybe-pdf-isl:
14297@if isl
14298maybe-pdf-isl: pdf-isl
56a8fe78 14299
7ec59b9e
L
14300pdf-isl: \
14301 configure-isl
14302 @[ -f ./isl/Makefile ] || exit 0; \
56a8fe78
DD
14303 r=`${PWD_COMMAND}`; export r; \
14304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14305 $(HOST_EXPORTS) \
7ec59b9e 14306 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
56a8fe78
DD
14307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14308 done; \
22121df0 14309 echo "Doing pdf in isl"; \
7ec59b9e 14310 (cd $(HOST_SUBDIR)/isl && \
56a8fe78
DD
14311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14313 "RANLIB=$${RANLIB}" \
0c24b341 14314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
14315 pdf) \
14316 || exit 1
14317
7ec59b9e 14318@endif isl
56a8fe78 14319
7ec59b9e
L
14320.PHONY: maybe-html-isl html-isl
14321maybe-html-isl:
14322@if isl
14323maybe-html-isl: html-isl
6d389afc 14324
7ec59b9e
L
14325html-isl: \
14326 configure-isl
14327 @[ -f ./isl/Makefile ] || exit 0; \
6d389afc
MS
14328 r=`${PWD_COMMAND}`; export r; \
14329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 14330 $(HOST_EXPORTS) \
7ec59b9e 14331 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
6d389afc
MS
14332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14333 done; \
22121df0 14334 echo "Doing html in isl"; \
7ec59b9e 14335 (cd $(HOST_SUBDIR)/isl && \
6d389afc
MS
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}" \
6d389afc
MS
14340 html) \
14341 || exit 1
14342
7ec59b9e 14343@endif isl
6d389afc 14344
7ec59b9e
L
14345.PHONY: maybe-TAGS-isl TAGS-isl
14346maybe-TAGS-isl:
14347@if isl
14348maybe-TAGS-isl: TAGS-isl
2a4cbe27 14349
7ec59b9e
L
14350TAGS-isl: \
14351 configure-isl
14352 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14353 r=`${PWD_COMMAND}`; export r; \
14354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14355 $(HOST_EXPORTS) \
7ec59b9e 14356 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14358 done; \
22121df0 14359 echo "Doing TAGS in isl"; \
7ec59b9e 14360 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14363 "RANLIB=$${RANLIB}" \
0c24b341 14364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14365 TAGS) \
2a4cbe27
NN
14366 || exit 1
14367
7ec59b9e 14368@endif isl
2a4cbe27 14369
7ec59b9e
L
14370.PHONY: maybe-install-info-isl install-info-isl
14371maybe-install-info-isl:
14372@if isl
14373maybe-install-info-isl: install-info-isl
2a4cbe27 14374
7ec59b9e
L
14375install-info-isl: \
14376 configure-isl \
14377 info-isl
14378 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14379 r=`${PWD_COMMAND}`; export r; \
14380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14381 $(HOST_EXPORTS) \
7ec59b9e 14382 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14384 done; \
22121df0 14385 echo "Doing install-info in isl"; \
7ec59b9e 14386 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14389 "RANLIB=$${RANLIB}" \
0c24b341 14390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14391 install-info) \
2a4cbe27
NN
14392 || exit 1
14393
7ec59b9e 14394@endif isl
2a4cbe27 14395
7ec59b9e
L
14396.PHONY: maybe-install-pdf-isl install-pdf-isl
14397maybe-install-pdf-isl:
14398@if isl
14399maybe-install-pdf-isl: install-pdf-isl
a3ca38d2 14400
7ec59b9e
L
14401install-pdf-isl: \
14402 configure-isl \
14403 pdf-isl
14404 @[ -f ./isl/Makefile ] || exit 0; \
a3ca38d2
DD
14405 r=`${PWD_COMMAND}`; export r; \
14406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14407 $(HOST_EXPORTS) \
7ec59b9e 14408 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
a3ca38d2
DD
14409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14410 done; \
22121df0 14411 echo "Doing install-pdf in isl"; \
7ec59b9e 14412 (cd $(HOST_SUBDIR)/isl && \
a3ca38d2
DD
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}" \
a3ca38d2
DD
14417 install-pdf) \
14418 || exit 1
14419
7ec59b9e 14420@endif isl
a3ca38d2 14421
7ec59b9e
L
14422.PHONY: maybe-install-html-isl install-html-isl
14423maybe-install-html-isl:
14424@if isl
14425maybe-install-html-isl: install-html-isl
108a6f8e 14426
7ec59b9e
L
14427install-html-isl: \
14428 configure-isl \
14429 html-isl
14430 @[ -f ./isl/Makefile ] || exit 0; \
108a6f8e
CD
14431 r=`${PWD_COMMAND}`; export r; \
14432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14433 $(HOST_EXPORTS) \
7ec59b9e 14434 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
108a6f8e
CD
14435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14436 done; \
22121df0 14437 echo "Doing install-html in isl"; \
7ec59b9e 14438 (cd $(HOST_SUBDIR)/isl && \
108a6f8e
CD
14439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14441 "RANLIB=$${RANLIB}" \
0c24b341 14442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
14443 install-html) \
14444 || exit 1
14445
7ec59b9e 14446@endif isl
108a6f8e 14447
7ec59b9e
L
14448.PHONY: maybe-installcheck-isl installcheck-isl
14449maybe-installcheck-isl:
14450@if isl
14451maybe-installcheck-isl: installcheck-isl
2a4cbe27 14452
7ec59b9e
L
14453installcheck-isl: \
14454 configure-isl
14455 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14456 r=`${PWD_COMMAND}`; export r; \
14457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14458 $(HOST_EXPORTS) \
7ec59b9e 14459 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14461 done; \
22121df0 14462 echo "Doing installcheck in isl"; \
7ec59b9e 14463 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14466 "RANLIB=$${RANLIB}" \
0c24b341 14467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14468 installcheck) \
2a4cbe27
NN
14469 || exit 1
14470
7ec59b9e 14471@endif isl
2a4cbe27 14472
7ec59b9e
L
14473.PHONY: maybe-mostlyclean-isl mostlyclean-isl
14474maybe-mostlyclean-isl:
14475@if isl
14476maybe-mostlyclean-isl: mostlyclean-isl
2a4cbe27 14477
7ec59b9e
L
14478mostlyclean-isl:
14479 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14480 r=`${PWD_COMMAND}`; export r; \
14481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14482 $(HOST_EXPORTS) \
7ec59b9e 14483 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14485 done; \
22121df0 14486 echo "Doing mostlyclean in isl"; \
7ec59b9e 14487 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14490 "RANLIB=$${RANLIB}" \
0c24b341 14491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14492 mostlyclean) \
2a4cbe27
NN
14493 || exit 1
14494
7ec59b9e 14495@endif isl
2a4cbe27 14496
7ec59b9e
L
14497.PHONY: maybe-clean-isl clean-isl
14498maybe-clean-isl:
14499@if isl
14500maybe-clean-isl: clean-isl
2a4cbe27 14501
7ec59b9e
L
14502clean-isl:
14503 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14504 r=`${PWD_COMMAND}`; export r; \
14505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14506 $(HOST_EXPORTS) \
7ec59b9e 14507 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14509 done; \
22121df0 14510 echo "Doing clean in isl"; \
7ec59b9e 14511 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14514 "RANLIB=$${RANLIB}" \
0c24b341 14515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14516 clean) \
2a4cbe27
NN
14517 || exit 1
14518
7ec59b9e 14519@endif isl
2a4cbe27 14520
7ec59b9e
L
14521.PHONY: maybe-distclean-isl distclean-isl
14522maybe-distclean-isl:
14523@if isl
14524maybe-distclean-isl: distclean-isl
2a4cbe27 14525
7ec59b9e
L
14526distclean-isl:
14527 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14528 r=`${PWD_COMMAND}`; export r; \
14529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14530 $(HOST_EXPORTS) \
7ec59b9e 14531 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14533 done; \
22121df0 14534 echo "Doing distclean in isl"; \
7ec59b9e 14535 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14538 "RANLIB=$${RANLIB}" \
0c24b341 14539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14540 distclean) \
2a4cbe27
NN
14541 || exit 1
14542
7ec59b9e 14543@endif isl
2a4cbe27 14544
7ec59b9e
L
14545.PHONY: maybe-maintainer-clean-isl maintainer-clean-isl
14546maybe-maintainer-clean-isl:
14547@if isl
14548maybe-maintainer-clean-isl: maintainer-clean-isl
2a4cbe27 14549
7ec59b9e
L
14550maintainer-clean-isl:
14551 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14552 r=`${PWD_COMMAND}`; export r; \
14553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14554 $(HOST_EXPORTS) \
7ec59b9e 14555 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14557 done; \
22121df0 14558 echo "Doing maintainer-clean in isl"; \
7ec59b9e 14559 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14562 "RANLIB=$${RANLIB}" \
0c24b341 14563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14564 maintainer-clean) \
2a4cbe27
NN
14565 || exit 1
14566
7ec59b9e 14567@endif isl
2a4cbe27 14568
2a4cbe27 14569
a7254363 14570
a90ef4bf
JM
14571.PHONY: configure-libelf maybe-configure-libelf
14572maybe-configure-libelf:
c52c6897 14573@if gcc-bootstrap
a90ef4bf 14574configure-libelf: stage_current
c52c6897 14575@endif gcc-bootstrap
a90ef4bf
JM
14576@if libelf
14577maybe-configure-libelf: configure-libelf
14578configure-libelf:
c52c6897
PB
14579 @r=`${PWD_COMMAND}`; export r; \
14580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14581 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
22121df0 14582 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
1f53ca9a 14583 $(HOST_EXPORTS) \
a90ef4bf
JM
14584 echo Configuring in $(HOST_SUBDIR)/libelf; \
14585 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
4fa63067 14586 case $(srcdir) in \
b00612cc 14587 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14588 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
b00612cc 14589 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 14590 esac; \
1b6c0831
L
14591 module_srcdir=libelf; \
14592 $(SHELL) \
14593 $$s/$$module_srcdir/configure \
14594 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14595 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14596 --target=${target_alias} --disable-shared \
4fa63067 14597 || exit 1
a90ef4bf 14598@endif libelf
4fa63067 14599
a7254363
PB
14600
14601
a90ef4bf
JM
14602.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
14603maybe-configure-stage1-libelf:
14604@if libelf-bootstrap
14605maybe-configure-stage1-libelf: configure-stage1-libelf
14606configure-stage1-libelf:
c52c6897 14607 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 14608 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14609 @r=`${PWD_COMMAND}`; export r; \
14610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14611 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 14612 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
1b05fbbd 14613 $(HOST_EXPORTS) \
8ee82aff 14614 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14615 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14616 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
14617 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf; \
14618 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14619 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14620 case $(srcdir) in \
14621 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14622 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14623 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14624 esac; \
1b6c0831
L
14625 module_srcdir=libelf; \
14626 $(SHELL) $$s/$$module_srcdir/configure \
14627 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14628 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14629 --target=${target_alias} \
14630 \
a90ef4bf
JM
14631 $(STAGE1_CONFIGURE_FLAGS) \
14632 --disable-shared
14633@endif libelf-bootstrap
d545f33b 14634
a90ef4bf
JM
14635.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
14636maybe-configure-stage2-libelf:
14637@if libelf-bootstrap
14638maybe-configure-stage2-libelf: configure-stage2-libelf
14639configure-stage2-libelf:
c52c6897 14640 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 14641 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14642 @r=`${PWD_COMMAND}`; export r; \
14643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14644 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 14645 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14646 $(HOST_EXPORTS) \
1b05fbbd 14647 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14648 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14649 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14650 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14651 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf; \
14652 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14653 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14654 case $(srcdir) in \
14655 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14656 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14657 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14658 esac; \
1b6c0831
L
14659 module_srcdir=libelf; \
14660 $(SHELL) $$s/$$module_srcdir/configure \
14661 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14662 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14663 --target=${target_alias} \
22121df0 14664 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14665 $(STAGE2_CONFIGURE_FLAGS) \
14666 --disable-shared
14667@endif libelf-bootstrap
8520c408 14668
a90ef4bf
JM
14669.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
14670maybe-configure-stage3-libelf:
14671@if libelf-bootstrap
14672maybe-configure-stage3-libelf: configure-stage3-libelf
14673configure-stage3-libelf:
c52c6897 14674 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 14675 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14676 @r=`${PWD_COMMAND}`; export r; \
14677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14678 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 14679 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14680 $(HOST_EXPORTS) \
1b05fbbd 14681 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14682 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14683 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14684 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14685 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf; \
14686 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14687 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14688 case $(srcdir) in \
14689 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14690 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14691 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14692 esac; \
1b6c0831
L
14693 module_srcdir=libelf; \
14694 $(SHELL) $$s/$$module_srcdir/configure \
14695 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14696 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14697 --target=${target_alias} \
22121df0 14698 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14699 $(STAGE3_CONFIGURE_FLAGS) \
14700 --disable-shared
14701@endif libelf-bootstrap
8520c408 14702
a90ef4bf
JM
14703.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
14704maybe-configure-stage4-libelf:
14705@if libelf-bootstrap
14706maybe-configure-stage4-libelf: configure-stage4-libelf
14707configure-stage4-libelf:
c52c6897 14708 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 14709 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14710 @r=`${PWD_COMMAND}`; export r; \
14711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14712 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 14713 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14714 $(HOST_EXPORTS) \
1b05fbbd 14715 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14716 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14717 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14718 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14719 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf; \
14720 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14721 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14722 case $(srcdir) in \
14723 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14724 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14725 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14726 esac; \
1b6c0831
L
14727 module_srcdir=libelf; \
14728 $(SHELL) $$s/$$module_srcdir/configure \
14729 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14730 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14731 --target=${target_alias} \
22121df0 14732 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14733 $(STAGE4_CONFIGURE_FLAGS) \
14734 --disable-shared
14735@endif libelf-bootstrap
d545f33b 14736
a90ef4bf
JM
14737.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
14738maybe-configure-stageprofile-libelf:
14739@if libelf-bootstrap
14740maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
14741configure-stageprofile-libelf:
c52c6897 14742 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 14743 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14744 @r=`${PWD_COMMAND}`; export r; \
14745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14746 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 14747 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14748 $(HOST_EXPORTS) \
1b05fbbd
AO
14749 $(POSTSTAGE1_HOST_EXPORTS) \
14750 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14751 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14752 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14753 echo Configuring stage profile in $(HOST_SUBDIR)/libelf; \
14754 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14755 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14756 case $(srcdir) in \
14757 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14758 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14759 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14760 esac; \
1b6c0831
L
14761 module_srcdir=libelf; \
14762 $(SHELL) $$s/$$module_srcdir/configure \
14763 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14764 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14765 --target=${target_alias} \
22121df0 14766 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14767 $(STAGEprofile_CONFIGURE_FLAGS) \
14768 --disable-shared
14769@endif libelf-bootstrap
d545f33b 14770
a90ef4bf
JM
14771.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
14772maybe-configure-stagefeedback-libelf:
14773@if libelf-bootstrap
14774maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
14775configure-stagefeedback-libelf:
c52c6897 14776 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 14777 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14778 @r=`${PWD_COMMAND}`; export r; \
14779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14780 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 14781 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14782 $(HOST_EXPORTS) \
1b05fbbd
AO
14783 $(POSTSTAGE1_HOST_EXPORTS) \
14784 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14785 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14786 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14787 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf; \
14788 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14789 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14790 case $(srcdir) in \
14791 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14792 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14793 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14794 esac; \
1b6c0831
L
14795 module_srcdir=libelf; \
14796 $(SHELL) $$s/$$module_srcdir/configure \
14797 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14798 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14799 --target=${target_alias} \
22121df0 14800 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14801 $(STAGEfeedback_CONFIGURE_FLAGS) \
14802 --disable-shared
14803@endif libelf-bootstrap
d545f33b
PB
14804
14805
14806
14807
14808
a90ef4bf
JM
14809.PHONY: all-libelf maybe-all-libelf
14810maybe-all-libelf:
4f0ef2d8 14811@if gcc-bootstrap
a90ef4bf 14812all-libelf: stage_current
4f0ef2d8 14813@endif gcc-bootstrap
a90ef4bf
JM
14814@if libelf
14815TARGET-libelf=all
14816maybe-all-libelf: all-libelf
14817all-libelf: configure-libelf
c52c6897 14818 @r=`${PWD_COMMAND}`; export r; \
4fa63067 14819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 14820 $(HOST_EXPORTS) \
a90ef4bf 14821 (cd $(HOST_SUBDIR)/libelf && \
b3676d82 14822 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
14823 $(TARGET-libelf))
14824@endif libelf
4fa63067 14825
a7254363 14826
d545f33b 14827
a90ef4bf
JM
14828.PHONY: all-stage1-libelf maybe-all-stage1-libelf
14829.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
14830maybe-all-stage1-libelf:
14831maybe-clean-stage1-libelf:
14832@if libelf-bootstrap
14833maybe-all-stage1-libelf: all-stage1-libelf
14834all-stage1: all-stage1-libelf
14835TARGET-stage1-libelf = $(TARGET-libelf)
14836all-stage1-libelf: configure-stage1-libelf
c52c6897 14837 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
14838 @r=`${PWD_COMMAND}`; export r; \
14839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14840 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 14841 $(HOST_EXPORTS) \
a90ef4bf 14842 cd $(HOST_SUBDIR)/libelf && \
05a13254 14843 \
7f6ef0c0 14844 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14845 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 14846 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
14847 LIBCFLAGS="$(LIBCFLAGS)" \
14848 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14849 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14850 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14851 $(EXTRA_HOST_FLAGS) \
14852 $(STAGE1_FLAGS_TO_PASS) \
05a13254 14853 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 14854 $(TARGET-stage1-libelf)
d545f33b 14855
a90ef4bf
JM
14856maybe-clean-stage1-libelf: clean-stage1-libelf
14857clean-stage1: clean-stage1-libelf
14858clean-stage1-libelf:
9dbaa842 14859 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 14860 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14861 else \
a90ef4bf 14862 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14863 $(MAKE) stage1-start; \
14864 fi; \
a90ef4bf 14865 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14866 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14867 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14868@endif libelf-bootstrap
d545f33b
PB
14869
14870
a90ef4bf
JM
14871.PHONY: all-stage2-libelf maybe-all-stage2-libelf
14872.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
14873maybe-all-stage2-libelf:
14874maybe-clean-stage2-libelf:
14875@if libelf-bootstrap
14876maybe-all-stage2-libelf: all-stage2-libelf
14877all-stage2: all-stage2-libelf
14878TARGET-stage2-libelf = $(TARGET-libelf)
14879all-stage2-libelf: configure-stage2-libelf
c52c6897 14880 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
14881 @r=`${PWD_COMMAND}`; export r; \
14882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14883 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 14884 $(HOST_EXPORTS) \
1f53ca9a 14885 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14886 cd $(HOST_SUBDIR)/libelf && \
05a13254 14887 \
7f6ef0c0 14888 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14889 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 14890 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
14891 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14892 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14893 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14894 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14895 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 14896 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 14897 $(TARGET-stage2-libelf)
d545f33b 14898
a90ef4bf
JM
14899maybe-clean-stage2-libelf: clean-stage2-libelf
14900clean-stage2: clean-stage2-libelf
14901clean-stage2-libelf:
9dbaa842 14902 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 14903 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14904 else \
a90ef4bf 14905 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14906 $(MAKE) stage2-start; \
14907 fi; \
a90ef4bf 14908 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14909 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14910@endif libelf-bootstrap
d545f33b
PB
14911
14912
a90ef4bf
JM
14913.PHONY: all-stage3-libelf maybe-all-stage3-libelf
14914.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
14915maybe-all-stage3-libelf:
14916maybe-clean-stage3-libelf:
14917@if libelf-bootstrap
14918maybe-all-stage3-libelf: all-stage3-libelf
14919all-stage3: all-stage3-libelf
14920TARGET-stage3-libelf = $(TARGET-libelf)
14921all-stage3-libelf: configure-stage3-libelf
c52c6897 14922 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
14923 @r=`${PWD_COMMAND}`; export r; \
14924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14925 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 14926 $(HOST_EXPORTS) \
1f53ca9a 14927 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14928 cd $(HOST_SUBDIR)/libelf && \
05a13254 14929 \
7f6ef0c0 14930 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14931 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 14932 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
14933 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14934 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14935 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14936 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14937 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 14938 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 14939 $(TARGET-stage3-libelf)
d545f33b 14940
a90ef4bf
JM
14941maybe-clean-stage3-libelf: clean-stage3-libelf
14942clean-stage3: clean-stage3-libelf
14943clean-stage3-libelf:
9dbaa842 14944 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 14945 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14946 else \
a90ef4bf 14947 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14948 $(MAKE) stage3-start; \
14949 fi; \
a90ef4bf 14950 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14951 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14952@endif libelf-bootstrap
d545f33b
PB
14953
14954
a90ef4bf
JM
14955.PHONY: all-stage4-libelf maybe-all-stage4-libelf
14956.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
14957maybe-all-stage4-libelf:
14958maybe-clean-stage4-libelf:
14959@if libelf-bootstrap
14960maybe-all-stage4-libelf: all-stage4-libelf
14961all-stage4: all-stage4-libelf
14962TARGET-stage4-libelf = $(TARGET-libelf)
14963all-stage4-libelf: configure-stage4-libelf
c52c6897 14964 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
14965 @r=`${PWD_COMMAND}`; export r; \
14966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14967 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 14968 $(HOST_EXPORTS) \
1f53ca9a 14969 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14970 cd $(HOST_SUBDIR)/libelf && \
05a13254 14971 \
7f6ef0c0 14972 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14973 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 14974 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 14975 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
14976 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14977 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14978 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14979 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 14980 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 14981 $(TARGET-stage4-libelf)
d545f33b 14982
a90ef4bf
JM
14983maybe-clean-stage4-libelf: clean-stage4-libelf
14984clean-stage4: clean-stage4-libelf
14985clean-stage4-libelf:
9dbaa842 14986 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 14987 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14988 else \
a90ef4bf 14989 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14990 $(MAKE) stage4-start; \
14991 fi; \
a90ef4bf 14992 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14993 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14994@endif libelf-bootstrap
d545f33b
PB
14995
14996
a90ef4bf
JM
14997.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
14998.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
14999maybe-all-stageprofile-libelf:
15000maybe-clean-stageprofile-libelf:
15001@if libelf-bootstrap
15002maybe-all-stageprofile-libelf: all-stageprofile-libelf
15003all-stageprofile: all-stageprofile-libelf
15004TARGET-stageprofile-libelf = $(TARGET-libelf)
15005all-stageprofile-libelf: configure-stageprofile-libelf
c52c6897 15006 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
15007 @r=`${PWD_COMMAND}`; export r; \
15008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15009 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 15010 $(HOST_EXPORTS) \
1f53ca9a 15011 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15012 cd $(HOST_SUBDIR)/libelf && \
05a13254 15013 \
7f6ef0c0 15014 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15015 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 15016 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
15017 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15018 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15019 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15020 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15021 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15022 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 15023 $(TARGET-stageprofile-libelf)
d545f33b 15024
a90ef4bf
JM
15025maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
15026clean-stageprofile: clean-stageprofile-libelf
15027clean-stageprofile-libelf:
9dbaa842 15028 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 15029 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15030 else \
a90ef4bf 15031 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15032 $(MAKE) stageprofile-start; \
15033 fi; \
a90ef4bf 15034 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15035 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15036@endif libelf-bootstrap
d545f33b
PB
15037
15038
a90ef4bf
JM
15039.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
15040.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
15041maybe-all-stagefeedback-libelf:
15042maybe-clean-stagefeedback-libelf:
15043@if libelf-bootstrap
15044maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
15045all-stagefeedback: all-stagefeedback-libelf
15046TARGET-stagefeedback-libelf = $(TARGET-libelf)
15047all-stagefeedback-libelf: configure-stagefeedback-libelf
c52c6897 15048 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
15049 @r=`${PWD_COMMAND}`; export r; \
15050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15051 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 15052 $(HOST_EXPORTS) \
1f53ca9a 15053 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15054 cd $(HOST_SUBDIR)/libelf && \
05a13254 15055 \
7f6ef0c0 15056 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15057 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 15058 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
15059 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15060 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15061 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15062 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15063 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15064 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15065 $(TARGET-stagefeedback-libelf)
d545f33b 15066
a90ef4bf
JM
15067maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
15068clean-stagefeedback: clean-stagefeedback-libelf
15069clean-stagefeedback-libelf:
9dbaa842 15070 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 15071 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15072 else \
a90ef4bf 15073 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15074 $(MAKE) stagefeedback-start; \
15075 fi; \
a90ef4bf 15076 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15077 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15078@endif libelf-bootstrap
d545f33b
PB
15079
15080
15081
15082
15083
a90ef4bf
JM
15084.PHONY: check-libelf maybe-check-libelf
15085maybe-check-libelf:
15086@if libelf
15087maybe-check-libelf: check-libelf
4fa63067 15088
a90ef4bf 15089check-libelf:
0aed8855 15090 @: $(MAKE); $(unstage)
4fa63067
NN
15091 @r=`${PWD_COMMAND}`; export r; \
15092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15093 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15094 (cd $(HOST_SUBDIR)/libelf && \
f91ca6bc 15095 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15096
a90ef4bf 15097@endif libelf
4fa63067 15098
a90ef4bf
JM
15099.PHONY: install-libelf maybe-install-libelf
15100maybe-install-libelf:
15101@if libelf
15102maybe-install-libelf: install-libelf
4fa63067 15103
a90ef4bf 15104install-libelf:
4fa63067 15105
a90ef4bf 15106@endif libelf
4fa63067 15107
a90ef4bf
JM
15108.PHONY: install-strip-libelf maybe-install-strip-libelf
15109maybe-install-strip-libelf:
15110@if libelf
15111maybe-install-strip-libelf: install-strip-libelf
9b980aa1 15112
a90ef4bf 15113install-strip-libelf:
9b980aa1 15114
a90ef4bf 15115@endif libelf
9b980aa1 15116
56a8fe78 15117# Other targets (info, dvi, pdf, etc.)
4fa63067 15118
a90ef4bf
JM
15119.PHONY: maybe-info-libelf info-libelf
15120maybe-info-libelf:
15121@if libelf
15122maybe-info-libelf: info-libelf
4fa63067 15123
a90ef4bf
JM
15124info-libelf: \
15125 configure-libelf
15126 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15127 r=`${PWD_COMMAND}`; export r; \
15128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15129 $(HOST_EXPORTS) \
a90ef4bf 15130 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15132 done; \
22121df0 15133 echo "Doing info in libelf"; \
a90ef4bf 15134 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15137 "RANLIB=$${RANLIB}" \
0c24b341 15138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15139 info) \
2a4cbe27
NN
15140 || exit 1
15141
a90ef4bf 15142@endif libelf
2a4cbe27 15143
a90ef4bf
JM
15144.PHONY: maybe-dvi-libelf dvi-libelf
15145maybe-dvi-libelf:
15146@if libelf
15147maybe-dvi-libelf: dvi-libelf
2a4cbe27 15148
a90ef4bf
JM
15149dvi-libelf: \
15150 configure-libelf
15151 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15152 r=`${PWD_COMMAND}`; export r; \
15153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15154 $(HOST_EXPORTS) \
a90ef4bf 15155 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15157 done; \
22121df0 15158 echo "Doing dvi in libelf"; \
a90ef4bf 15159 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15162 "RANLIB=$${RANLIB}" \
0c24b341 15163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15164 dvi) \
2a4cbe27
NN
15165 || exit 1
15166
a90ef4bf 15167@endif libelf
2a4cbe27 15168
a90ef4bf
JM
15169.PHONY: maybe-pdf-libelf pdf-libelf
15170maybe-pdf-libelf:
15171@if libelf
15172maybe-pdf-libelf: pdf-libelf
56a8fe78 15173
a90ef4bf
JM
15174pdf-libelf: \
15175 configure-libelf
15176 @[ -f ./libelf/Makefile ] || exit 0; \
56a8fe78
DD
15177 r=`${PWD_COMMAND}`; export r; \
15178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15179 $(HOST_EXPORTS) \
a90ef4bf 15180 for flag in $(EXTRA_HOST_FLAGS) ; do \
56a8fe78
DD
15181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15182 done; \
22121df0 15183 echo "Doing pdf in libelf"; \
a90ef4bf 15184 (cd $(HOST_SUBDIR)/libelf && \
56a8fe78
DD
15185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15187 "RANLIB=$${RANLIB}" \
0c24b341 15188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15189 pdf) \
15190 || exit 1
15191
a90ef4bf 15192@endif libelf
56a8fe78 15193
a90ef4bf
JM
15194.PHONY: maybe-html-libelf html-libelf
15195maybe-html-libelf:
15196@if libelf
15197maybe-html-libelf: html-libelf
6d389afc 15198
a90ef4bf
JM
15199html-libelf: \
15200 configure-libelf
15201 @[ -f ./libelf/Makefile ] || exit 0; \
6d389afc
MS
15202 r=`${PWD_COMMAND}`; export r; \
15203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 15204 $(HOST_EXPORTS) \
a90ef4bf 15205 for flag in $(EXTRA_HOST_FLAGS) ; do \
6d389afc
MS
15206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15207 done; \
22121df0 15208 echo "Doing html in libelf"; \
a90ef4bf 15209 (cd $(HOST_SUBDIR)/libelf && \
6d389afc
MS
15210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15212 "RANLIB=$${RANLIB}" \
0c24b341 15213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
15214 html) \
15215 || exit 1
15216
a90ef4bf 15217@endif libelf
6d389afc 15218
a90ef4bf
JM
15219.PHONY: maybe-TAGS-libelf TAGS-libelf
15220maybe-TAGS-libelf:
15221@if libelf
15222maybe-TAGS-libelf: TAGS-libelf
2a4cbe27 15223
a90ef4bf
JM
15224TAGS-libelf: \
15225 configure-libelf
15226 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15227 r=`${PWD_COMMAND}`; export r; \
15228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15229 $(HOST_EXPORTS) \
a90ef4bf 15230 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15232 done; \
22121df0 15233 echo "Doing TAGS in libelf"; \
a90ef4bf 15234 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15237 "RANLIB=$${RANLIB}" \
0c24b341 15238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15239 TAGS) \
2a4cbe27
NN
15240 || exit 1
15241
a90ef4bf 15242@endif libelf
2a4cbe27 15243
a90ef4bf
JM
15244.PHONY: maybe-install-info-libelf install-info-libelf
15245maybe-install-info-libelf:
15246@if libelf
15247maybe-install-info-libelf: install-info-libelf
a2592b1b 15248
a90ef4bf
JM
15249install-info-libelf: \
15250 configure-libelf \
15251 info-libelf
15252 @[ -f ./libelf/Makefile ] || exit 0; \
a2592b1b
DD
15253 r=`${PWD_COMMAND}`; export r; \
15254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15255 $(HOST_EXPORTS) \
a90ef4bf 15256 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
15257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15258 done; \
22121df0 15259 echo "Doing install-info in libelf"; \
a90ef4bf 15260 (cd $(HOST_SUBDIR)/libelf && \
a2592b1b
DD
15261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15263 "RANLIB=$${RANLIB}" \
0c24b341 15264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15265 install-info) \
a2592b1b
DD
15266 || exit 1
15267
a90ef4bf 15268@endif libelf
a2592b1b 15269
a90ef4bf
JM
15270.PHONY: maybe-install-pdf-libelf install-pdf-libelf
15271maybe-install-pdf-libelf:
15272@if libelf
15273maybe-install-pdf-libelf: install-pdf-libelf
a3ca38d2 15274
a90ef4bf
JM
15275install-pdf-libelf: \
15276 configure-libelf \
15277 pdf-libelf
15278 @[ -f ./libelf/Makefile ] || exit 0; \
a3ca38d2
DD
15279 r=`${PWD_COMMAND}`; export r; \
15280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15281 $(HOST_EXPORTS) \
a90ef4bf 15282 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
15283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15284 done; \
22121df0 15285 echo "Doing install-pdf in libelf"; \
a90ef4bf 15286 (cd $(HOST_SUBDIR)/libelf && \
a3ca38d2
DD
15287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15289 "RANLIB=$${RANLIB}" \
0c24b341 15290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
15291 install-pdf) \
15292 || exit 1
15293
a90ef4bf 15294@endif libelf
a3ca38d2 15295
a90ef4bf
JM
15296.PHONY: maybe-install-html-libelf install-html-libelf
15297maybe-install-html-libelf:
15298@if libelf
15299maybe-install-html-libelf: install-html-libelf
108a6f8e 15300
a90ef4bf
JM
15301install-html-libelf: \
15302 configure-libelf \
15303 html-libelf
15304 @[ -f ./libelf/Makefile ] || exit 0; \
108a6f8e
CD
15305 r=`${PWD_COMMAND}`; export r; \
15306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15307 $(HOST_EXPORTS) \
a90ef4bf 15308 for flag in $(EXTRA_HOST_FLAGS) ; do \
108a6f8e
CD
15309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15310 done; \
22121df0 15311 echo "Doing install-html in libelf"; \
a90ef4bf 15312 (cd $(HOST_SUBDIR)/libelf && \
108a6f8e
CD
15313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15315 "RANLIB=$${RANLIB}" \
0c24b341 15316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
15317 install-html) \
15318 || exit 1
15319
a90ef4bf 15320@endif libelf
108a6f8e 15321
a90ef4bf
JM
15322.PHONY: maybe-installcheck-libelf installcheck-libelf
15323maybe-installcheck-libelf:
15324@if libelf
15325maybe-installcheck-libelf: installcheck-libelf
2a4cbe27 15326
a90ef4bf
JM
15327installcheck-libelf: \
15328 configure-libelf
15329 @[ -f ./libelf/Makefile ] || exit 0; \
4fa63067
NN
15330 r=`${PWD_COMMAND}`; export r; \
15331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15332 $(HOST_EXPORTS) \
a90ef4bf 15333 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15335 done; \
22121df0 15336 echo "Doing installcheck in libelf"; \
a90ef4bf 15337 (cd $(HOST_SUBDIR)/libelf && \
4fa63067
NN
15338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15340 "RANLIB=$${RANLIB}" \
0c24b341 15341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15342 installcheck) \
4fa63067 15343 || exit 1
2a4cbe27 15344
a90ef4bf 15345@endif libelf
4fa63067 15346
a90ef4bf
JM
15347.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
15348maybe-mostlyclean-libelf:
15349@if libelf
15350maybe-mostlyclean-libelf: mostlyclean-libelf
4fa63067 15351
a90ef4bf
JM
15352mostlyclean-libelf:
15353 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15354 r=`${PWD_COMMAND}`; export r; \
15355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15356 $(HOST_EXPORTS) \
a90ef4bf 15357 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15359 done; \
22121df0 15360 echo "Doing mostlyclean in libelf"; \
a90ef4bf 15361 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15364 "RANLIB=$${RANLIB}" \
0c24b341 15365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15366 mostlyclean) \
2a4cbe27
NN
15367 || exit 1
15368
a90ef4bf 15369@endif libelf
2a4cbe27 15370
a90ef4bf
JM
15371.PHONY: maybe-clean-libelf clean-libelf
15372maybe-clean-libelf:
15373@if libelf
15374maybe-clean-libelf: clean-libelf
2a4cbe27 15375
a90ef4bf
JM
15376clean-libelf:
15377 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15378 r=`${PWD_COMMAND}`; export r; \
15379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15380 $(HOST_EXPORTS) \
a90ef4bf 15381 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15383 done; \
22121df0 15384 echo "Doing clean in libelf"; \
a90ef4bf 15385 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15388 "RANLIB=$${RANLIB}" \
0c24b341 15389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15390 clean) \
2a4cbe27
NN
15391 || exit 1
15392
a90ef4bf 15393@endif libelf
2a4cbe27 15394
a90ef4bf
JM
15395.PHONY: maybe-distclean-libelf distclean-libelf
15396maybe-distclean-libelf:
15397@if libelf
15398maybe-distclean-libelf: distclean-libelf
2a4cbe27 15399
a90ef4bf
JM
15400distclean-libelf:
15401 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15402 r=`${PWD_COMMAND}`; export r; \
15403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15404 $(HOST_EXPORTS) \
a90ef4bf 15405 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15407 done; \
22121df0 15408 echo "Doing distclean in libelf"; \
a90ef4bf 15409 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15412 "RANLIB=$${RANLIB}" \
0c24b341 15413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15414 distclean) \
2a4cbe27
NN
15415 || exit 1
15416
a90ef4bf 15417@endif libelf
2a4cbe27 15418
a90ef4bf
JM
15419.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
15420maybe-maintainer-clean-libelf:
15421@if libelf
15422maybe-maintainer-clean-libelf: maintainer-clean-libelf
2a4cbe27 15423
a90ef4bf
JM
15424maintainer-clean-libelf:
15425 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15426 r=`${PWD_COMMAND}`; export r; \
15427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15428 $(HOST_EXPORTS) \
a90ef4bf 15429 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15431 done; \
22121df0 15432 echo "Doing maintainer-clean in libelf"; \
a90ef4bf 15433 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15436 "RANLIB=$${RANLIB}" \
0c24b341 15437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15438 maintainer-clean) \
2a4cbe27
NN
15439 || exit 1
15440
a90ef4bf 15441@endif libelf
2a4cbe27 15442
2a4cbe27 15443
a7254363 15444
a90ef4bf
JM
15445.PHONY: configure-gold maybe-configure-gold
15446maybe-configure-gold:
4f0ef2d8 15447@if gcc-bootstrap
a90ef4bf 15448configure-gold: stage_current
4f0ef2d8 15449@endif gcc-bootstrap
a90ef4bf
JM
15450@if gold
15451maybe-configure-gold: configure-gold
15452configure-gold:
c52c6897 15453 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15455 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22121df0 15456 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
1f53ca9a 15457 $(HOST_EXPORTS) \
a90ef4bf
JM
15458 echo Configuring in $(HOST_SUBDIR)/gold; \
15459 cd "$(HOST_SUBDIR)/gold" || exit 1; \
4fa63067 15460 case $(srcdir) in \
b00612cc 15461 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 15462 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
b00612cc 15463 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 15464 esac; \
1b6c0831
L
15465 module_srcdir=gold; \
15466 $(SHELL) \
15467 $$s/$$module_srcdir/configure \
15468 --srcdir=$${topdir}/$$module_srcdir \
4b900473 15469 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15470 --target=${target_alias} \
4fa63067 15471 || exit 1
a90ef4bf 15472@endif gold
a7254363 15473
d545f33b
PB
15474
15475
a90ef4bf
JM
15476.PHONY: configure-stage1-gold maybe-configure-stage1-gold
15477maybe-configure-stage1-gold:
15478@if gold-bootstrap
15479maybe-configure-stage1-gold: configure-stage1-gold
15480configure-stage1-gold:
15481 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15482 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15483 @r=`${PWD_COMMAND}`; export r; \
15484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15485 TFLAGS="$(STAGE1_TFLAGS)"; \
15486 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15487 $(HOST_EXPORTS) \
15488 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15489 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15490 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
15491 echo Configuring stage 1 in $(HOST_SUBDIR)/gold; \
15492 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15493 cd $(HOST_SUBDIR)/gold || exit 1; \
15494 case $(srcdir) in \
15495 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15496 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15497 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15498 esac; \
1b6c0831
L
15499 module_srcdir=gold; \
15500 $(SHELL) $$s/$$module_srcdir/configure \
15501 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15502 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15503 --target=${target_alias} \
15504 \
a90ef4bf
JM
15505 $(STAGE1_CONFIGURE_FLAGS)
15506@endif gold-bootstrap
4fa63067 15507
a90ef4bf
JM
15508.PHONY: configure-stage2-gold maybe-configure-stage2-gold
15509maybe-configure-stage2-gold:
15510@if gold-bootstrap
15511maybe-configure-stage2-gold: configure-stage2-gold
15512configure-stage2-gold:
15513 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15514 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15515 @r=`${PWD_COMMAND}`; export r; \
15516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15517 TFLAGS="$(STAGE2_TFLAGS)"; \
15518 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15519 $(HOST_EXPORTS) \
a90ef4bf
JM
15520 $(POSTSTAGE1_HOST_EXPORTS) \
15521 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15522 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15523 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15524 echo Configuring stage 2 in $(HOST_SUBDIR)/gold; \
15525 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15526 cd $(HOST_SUBDIR)/gold || exit 1; \
15527 case $(srcdir) in \
15528 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15529 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15530 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15531 esac; \
1b6c0831
L
15532 module_srcdir=gold; \
15533 $(SHELL) $$s/$$module_srcdir/configure \
15534 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15535 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15536 --target=${target_alias} \
22121df0 15537 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15538 $(STAGE2_CONFIGURE_FLAGS)
15539@endif gold-bootstrap
4fa63067 15540
a90ef4bf
JM
15541.PHONY: configure-stage3-gold maybe-configure-stage3-gold
15542maybe-configure-stage3-gold:
15543@if gold-bootstrap
15544maybe-configure-stage3-gold: configure-stage3-gold
15545configure-stage3-gold:
15546 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15547 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15548 @r=`${PWD_COMMAND}`; export r; \
15549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15550 TFLAGS="$(STAGE3_TFLAGS)"; \
15551 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15552 $(HOST_EXPORTS) \
a90ef4bf
JM
15553 $(POSTSTAGE1_HOST_EXPORTS) \
15554 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
15555 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
15556 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15557 echo Configuring stage 3 in $(HOST_SUBDIR)/gold; \
15558 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15559 cd $(HOST_SUBDIR)/gold || exit 1; \
15560 case $(srcdir) in \
15561 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15562 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15563 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15564 esac; \
1b6c0831
L
15565 module_srcdir=gold; \
15566 $(SHELL) $$s/$$module_srcdir/configure \
15567 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15568 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15569 --target=${target_alias} \
22121df0 15570 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15571 $(STAGE3_CONFIGURE_FLAGS)
15572@endif gold-bootstrap
9b980aa1 15573
a90ef4bf
JM
15574.PHONY: configure-stage4-gold maybe-configure-stage4-gold
15575maybe-configure-stage4-gold:
15576@if gold-bootstrap
15577maybe-configure-stage4-gold: configure-stage4-gold
15578configure-stage4-gold:
15579 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15580 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
9b980aa1
RW
15581 @r=`${PWD_COMMAND}`; export r; \
15582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15583 TFLAGS="$(STAGE4_TFLAGS)"; \
15584 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
9b980aa1 15585 $(HOST_EXPORTS) \
a90ef4bf
JM
15586 $(POSTSTAGE1_HOST_EXPORTS) \
15587 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
15588 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
15589 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15590 echo Configuring stage 4 in $(HOST_SUBDIR)/gold; \
15591 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15592 cd $(HOST_SUBDIR)/gold || exit 1; \
15593 case $(srcdir) in \
15594 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15595 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15596 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15597 esac; \
1b6c0831
L
15598 module_srcdir=gold; \
15599 $(SHELL) $$s/$$module_srcdir/configure \
15600 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15601 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15602 --target=${target_alias} \
22121df0 15603 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15604 $(STAGE4_CONFIGURE_FLAGS)
15605@endif gold-bootstrap
4fa63067 15606
a90ef4bf
JM
15607.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
15608maybe-configure-stageprofile-gold:
15609@if gold-bootstrap
15610maybe-configure-stageprofile-gold: configure-stageprofile-gold
15611configure-stageprofile-gold:
15612 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15613 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15614 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15616 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15617 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15618 $(HOST_EXPORTS) \
a90ef4bf
JM
15619 $(POSTSTAGE1_HOST_EXPORTS) \
15620 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
15621 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
15622 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15623 echo Configuring stage profile in $(HOST_SUBDIR)/gold; \
15624 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15625 cd $(HOST_SUBDIR)/gold || exit 1; \
15626 case $(srcdir) in \
15627 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15628 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15629 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15630 esac; \
1b6c0831
L
15631 module_srcdir=gold; \
15632 $(SHELL) $$s/$$module_srcdir/configure \
15633 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15634 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15635 --target=${target_alias} \
22121df0 15636 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15637 $(STAGEprofile_CONFIGURE_FLAGS)
15638@endif gold-bootstrap
2a4cbe27 15639
a90ef4bf
JM
15640.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
15641maybe-configure-stagefeedback-gold:
15642@if gold-bootstrap
15643maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
15644configure-stagefeedback-gold:
15645 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15646 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15647 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15649 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15650 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15651 $(HOST_EXPORTS) \
a90ef4bf
JM
15652 $(POSTSTAGE1_HOST_EXPORTS) \
15653 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15654 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15655 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15656 echo Configuring stage feedback in $(HOST_SUBDIR)/gold; \
15657 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15658 cd $(HOST_SUBDIR)/gold || exit 1; \
15659 case $(srcdir) in \
15660 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15661 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15662 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15663 esac; \
1b6c0831
L
15664 module_srcdir=gold; \
15665 $(SHELL) $$s/$$module_srcdir/configure \
15666 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15667 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15668 --target=${target_alias} \
22121df0 15669 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15670 $(STAGEfeedback_CONFIGURE_FLAGS)
15671@endif gold-bootstrap
2a4cbe27 15672
56a8fe78 15673
56a8fe78 15674
56a8fe78 15675
6d389afc 15676
a90ef4bf
JM
15677.PHONY: all-gold maybe-all-gold
15678maybe-all-gold:
15679@if gcc-bootstrap
15680all-gold: stage_current
15681@endif gcc-bootstrap
15682@if gold
15683TARGET-gold=all
15684maybe-all-gold: all-gold
15685all-gold: configure-gold
15686 @r=`${PWD_COMMAND}`; export r; \
6d389afc 15687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15688 $(HOST_EXPORTS) \
15689 (cd $(HOST_SUBDIR)/gold && \
b3676d82 15690 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15691 $(TARGET-gold))
15692@endif gold
6d389afc 15693
6d389afc 15694
2a4cbe27 15695
a90ef4bf
JM
15696.PHONY: all-stage1-gold maybe-all-stage1-gold
15697.PHONY: clean-stage1-gold maybe-clean-stage1-gold
15698maybe-all-stage1-gold:
15699maybe-clean-stage1-gold:
15700@if gold-bootstrap
15701maybe-all-stage1-gold: all-stage1-gold
15702all-stage1: all-stage1-gold
15703TARGET-stage1-gold = $(TARGET-gold)
15704all-stage1-gold: configure-stage1-gold
15705 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15706 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15708 TFLAGS="$(STAGE1_TFLAGS)"; \
15709 $(HOST_EXPORTS) \
15710 cd $(HOST_SUBDIR)/gold && \
05a13254 15711 \
a90ef4bf
JM
15712 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15713 CFLAGS="$(STAGE1_CFLAGS)" \
15714 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15715 LIBCFLAGS="$(LIBCFLAGS)" \
15716 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15717 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15718 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15719 $(EXTRA_HOST_FLAGS) \
15720 $(STAGE1_FLAGS_TO_PASS) \
05a13254 15721 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 15722 $(TARGET-stage1-gold)
2a4cbe27 15723
a90ef4bf
JM
15724maybe-clean-stage1-gold: clean-stage1-gold
15725clean-stage1: clean-stage1-gold
15726clean-stage1-gold:
15727 @if [ $(current_stage) = stage1 ]; then \
15728 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15729 else \
15730 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
15731 $(MAKE) stage1-start; \
15732 fi; \
15733 cd $(HOST_SUBDIR)/gold && \
15734 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15735 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15736@endif gold-bootstrap
2a4cbe27 15737
2a4cbe27 15738
a90ef4bf
JM
15739.PHONY: all-stage2-gold maybe-all-stage2-gold
15740.PHONY: clean-stage2-gold maybe-clean-stage2-gold
15741maybe-all-stage2-gold:
15742maybe-clean-stage2-gold:
15743@if gold-bootstrap
15744maybe-all-stage2-gold: all-stage2-gold
15745all-stage2: all-stage2-gold
15746TARGET-stage2-gold = $(TARGET-gold)
15747all-stage2-gold: configure-stage2-gold
15748 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15749 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15751 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 15752 $(HOST_EXPORTS) \
a90ef4bf
JM
15753 $(POSTSTAGE1_HOST_EXPORTS) \
15754 cd $(HOST_SUBDIR)/gold && \
05a13254 15755 \
a90ef4bf
JM
15756 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15757 CFLAGS="$(STAGE2_CFLAGS)" \
15758 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15759 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15760 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15761 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15762 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15763 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15764 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 15765 $(TARGET-stage2-gold)
2a4cbe27 15766
a90ef4bf
JM
15767maybe-clean-stage2-gold: clean-stage2-gold
15768clean-stage2: clean-stage2-gold
15769clean-stage2-gold:
15770 @if [ $(current_stage) = stage2 ]; then \
15771 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15772 else \
15773 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
15774 $(MAKE) stage2-start; \
15775 fi; \
15776 cd $(HOST_SUBDIR)/gold && \
b3676d82 15777 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15778@endif gold-bootstrap
2a4cbe27 15779
a3ca38d2 15780
a90ef4bf
JM
15781.PHONY: all-stage3-gold maybe-all-stage3-gold
15782.PHONY: clean-stage3-gold maybe-clean-stage3-gold
15783maybe-all-stage3-gold:
15784maybe-clean-stage3-gold:
15785@if gold-bootstrap
15786maybe-all-stage3-gold: all-stage3-gold
15787all-stage3: all-stage3-gold
15788TARGET-stage3-gold = $(TARGET-gold)
15789all-stage3-gold: configure-stage3-gold
15790 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15791 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15793 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 15794 $(HOST_EXPORTS) \
a90ef4bf
JM
15795 $(POSTSTAGE1_HOST_EXPORTS) \
15796 cd $(HOST_SUBDIR)/gold && \
05a13254 15797 \
a90ef4bf
JM
15798 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15799 CFLAGS="$(STAGE3_CFLAGS)" \
15800 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15801 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15802 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15803 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15804 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15805 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15806 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 15807 $(TARGET-stage3-gold)
2a4cbe27 15808
a90ef4bf
JM
15809maybe-clean-stage3-gold: clean-stage3-gold
15810clean-stage3: clean-stage3-gold
15811clean-stage3-gold:
15812 @if [ $(current_stage) = stage3 ]; then \
15813 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15814 else \
15815 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
15816 $(MAKE) stage3-start; \
15817 fi; \
15818 cd $(HOST_SUBDIR)/gold && \
b3676d82 15819 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15820@endif gold-bootstrap
2a4cbe27 15821
2a4cbe27 15822
a90ef4bf
JM
15823.PHONY: all-stage4-gold maybe-all-stage4-gold
15824.PHONY: clean-stage4-gold maybe-clean-stage4-gold
15825maybe-all-stage4-gold:
15826maybe-clean-stage4-gold:
15827@if gold-bootstrap
15828maybe-all-stage4-gold: all-stage4-gold
15829all-stage4: all-stage4-gold
15830TARGET-stage4-gold = $(TARGET-gold)
15831all-stage4-gold: configure-stage4-gold
15832 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15833 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15835 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 15836 $(HOST_EXPORTS) \
a90ef4bf
JM
15837 $(POSTSTAGE1_HOST_EXPORTS) \
15838 cd $(HOST_SUBDIR)/gold && \
05a13254 15839 \
a90ef4bf
JM
15840 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15841 CFLAGS="$(STAGE4_CFLAGS)" \
15842 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15843 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15844 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15845 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15846 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15847 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15848 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 15849 $(TARGET-stage4-gold)
2a4cbe27 15850
a90ef4bf
JM
15851maybe-clean-stage4-gold: clean-stage4-gold
15852clean-stage4: clean-stage4-gold
15853clean-stage4-gold:
15854 @if [ $(current_stage) = stage4 ]; then \
15855 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15856 else \
15857 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
15858 $(MAKE) stage4-start; \
15859 fi; \
15860 cd $(HOST_SUBDIR)/gold && \
b3676d82 15861 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15862@endif gold-bootstrap
2a4cbe27 15863
2a4cbe27 15864
a90ef4bf
JM
15865.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
15866.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
15867maybe-all-stageprofile-gold:
15868maybe-clean-stageprofile-gold:
15869@if gold-bootstrap
15870maybe-all-stageprofile-gold: all-stageprofile-gold
15871all-stageprofile: all-stageprofile-gold
15872TARGET-stageprofile-gold = $(TARGET-gold)
15873all-stageprofile-gold: configure-stageprofile-gold
15874 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15875 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15877 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 15878 $(HOST_EXPORTS) \
a90ef4bf
JM
15879 $(POSTSTAGE1_HOST_EXPORTS) \
15880 cd $(HOST_SUBDIR)/gold && \
05a13254 15881 \
a90ef4bf
JM
15882 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15883 CFLAGS="$(STAGEprofile_CFLAGS)" \
15884 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
15885 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15886 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15887 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15888 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15889 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15890 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 15891 $(TARGET-stageprofile-gold)
2a4cbe27 15892
a90ef4bf
JM
15893maybe-clean-stageprofile-gold: clean-stageprofile-gold
15894clean-stageprofile: clean-stageprofile-gold
15895clean-stageprofile-gold:
15896 @if [ $(current_stage) = stageprofile ]; then \
15897 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15898 else \
15899 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
15900 $(MAKE) stageprofile-start; \
15901 fi; \
15902 cd $(HOST_SUBDIR)/gold && \
b3676d82 15903 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15904@endif gold-bootstrap
2a4cbe27 15905
a7254363 15906
a90ef4bf
JM
15907.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
15908.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
15909maybe-all-stagefeedback-gold:
15910maybe-clean-stagefeedback-gold:
15911@if gold-bootstrap
15912maybe-all-stagefeedback-gold: all-stagefeedback-gold
15913all-stagefeedback: all-stagefeedback-gold
15914TARGET-stagefeedback-gold = $(TARGET-gold)
15915all-stagefeedback-gold: configure-stagefeedback-gold
15916 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 15917 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15919 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15920 $(HOST_EXPORTS) \
15921 $(POSTSTAGE1_HOST_EXPORTS) \
15922 cd $(HOST_SUBDIR)/gold && \
05a13254 15923 \
a90ef4bf
JM
15924 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15925 CFLAGS="$(STAGEfeedback_CFLAGS)" \
15926 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
15927 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15928 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15929 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15930 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15931 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15932 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15933 $(TARGET-stagefeedback-gold)
d545f33b 15934
a90ef4bf
JM
15935maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
15936clean-stagefeedback: clean-stagefeedback-gold
15937clean-stagefeedback-gold:
15938 @if [ $(current_stage) = stagefeedback ]; then \
15939 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15940 else \
15941 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
15942 $(MAKE) stagefeedback-start; \
15943 fi; \
15944 cd $(HOST_SUBDIR)/gold && \
b3676d82 15945 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15946@endif gold-bootstrap
d545f33b 15947
4fa63067 15948
a7254363 15949
d545f33b
PB
15950
15951
a90ef4bf
JM
15952.PHONY: check-gold maybe-check-gold
15953maybe-check-gold:
15954@if gold
15955maybe-check-gold: check-gold
4fa63067 15956
a90ef4bf 15957check-gold:
0aed8855 15958 @: $(MAKE); $(unstage)
4fa63067
NN
15959 @r=`${PWD_COMMAND}`; export r; \
15960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15961 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15962 (cd $(HOST_SUBDIR)/gold && \
f91ca6bc 15963 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15964
a90ef4bf 15965@endif gold
4fa63067 15966
a90ef4bf
JM
15967.PHONY: install-gold maybe-install-gold
15968maybe-install-gold:
15969@if gold
15970maybe-install-gold: install-gold
4fa63067 15971
a90ef4bf 15972install-gold: installdirs
0aed8855 15973 @: $(MAKE); $(unstage)
4fa63067
NN
15974 @r=`${PWD_COMMAND}`; export r; \
15975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15976 $(HOST_EXPORTS) \
a90ef4bf 15977 (cd $(HOST_SUBDIR)/gold && \
2da12f12 15978 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 15979
a90ef4bf 15980@endif gold
4fa63067 15981
a90ef4bf
JM
15982.PHONY: install-strip-gold maybe-install-strip-gold
15983maybe-install-strip-gold:
15984@if gold
15985maybe-install-strip-gold: install-strip-gold
9b980aa1 15986
a90ef4bf 15987install-strip-gold: installdirs
9b980aa1
RW
15988 @: $(MAKE); $(unstage)
15989 @r=`${PWD_COMMAND}`; export r; \
15990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15991 $(HOST_EXPORTS) \
a90ef4bf 15992 (cd $(HOST_SUBDIR)/gold && \
9b980aa1
RW
15993 $(MAKE) $(FLAGS_TO_PASS) install-strip)
15994
a90ef4bf 15995@endif gold
9b980aa1 15996
56a8fe78 15997# Other targets (info, dvi, pdf, etc.)
4fa63067 15998
a90ef4bf
JM
15999.PHONY: maybe-info-gold info-gold
16000maybe-info-gold:
16001@if gold
16002maybe-info-gold: info-gold
4fa63067 16003
a90ef4bf
JM
16004info-gold: \
16005 configure-gold
16006 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16007 r=`${PWD_COMMAND}`; export r; \
16008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16009 $(HOST_EXPORTS) \
b813574b 16010 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16012 done; \
22121df0 16013 echo "Doing info in gold"; \
a90ef4bf 16014 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16017 "RANLIB=$${RANLIB}" \
0c24b341 16018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16019 info) \
2a4cbe27
NN
16020 || exit 1
16021
a90ef4bf 16022@endif gold
2a4cbe27 16023
a90ef4bf
JM
16024.PHONY: maybe-dvi-gold dvi-gold
16025maybe-dvi-gold:
16026@if gold
16027maybe-dvi-gold: dvi-gold
2a4cbe27 16028
a90ef4bf
JM
16029dvi-gold: \
16030 configure-gold
16031 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16032 r=`${PWD_COMMAND}`; export r; \
16033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16034 $(HOST_EXPORTS) \
b813574b 16035 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16037 done; \
22121df0 16038 echo "Doing dvi in gold"; \
a90ef4bf 16039 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16042 "RANLIB=$${RANLIB}" \
0c24b341 16043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16044 dvi) \
2a4cbe27
NN
16045 || exit 1
16046
a90ef4bf 16047@endif gold
2a4cbe27 16048
a90ef4bf
JM
16049.PHONY: maybe-pdf-gold pdf-gold
16050maybe-pdf-gold:
16051@if gold
16052maybe-pdf-gold: pdf-gold
56a8fe78 16053
a90ef4bf
JM
16054pdf-gold: \
16055 configure-gold
16056 @[ -f ./gold/Makefile ] || exit 0; \
56a8fe78
DD
16057 r=`${PWD_COMMAND}`; export r; \
16058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16059 $(HOST_EXPORTS) \
16060 for flag in $(EXTRA_HOST_FLAGS) ; do \
16061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16062 done; \
22121df0 16063 echo "Doing pdf in gold"; \
a90ef4bf 16064 (cd $(HOST_SUBDIR)/gold && \
56a8fe78
DD
16065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16067 "RANLIB=$${RANLIB}" \
0c24b341 16068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
16069 pdf) \
16070 || exit 1
16071
a90ef4bf 16072@endif gold
56a8fe78 16073
a90ef4bf
JM
16074.PHONY: maybe-html-gold html-gold
16075maybe-html-gold:
16076@if gold
16077maybe-html-gold: html-gold
6d389afc 16078
a90ef4bf
JM
16079html-gold: \
16080 configure-gold
16081 @[ -f ./gold/Makefile ] || exit 0; \
6d389afc
MS
16082 r=`${PWD_COMMAND}`; export r; \
16083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
16084 $(HOST_EXPORTS) \
16085 for flag in $(EXTRA_HOST_FLAGS) ; do \
16086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16087 done; \
22121df0 16088 echo "Doing html in gold"; \
a90ef4bf 16089 (cd $(HOST_SUBDIR)/gold && \
6d389afc
MS
16090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16092 "RANLIB=$${RANLIB}" \
0c24b341 16093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
16094 html) \
16095 || exit 1
16096
a90ef4bf 16097@endif gold
6d389afc 16098
a90ef4bf
JM
16099.PHONY: maybe-TAGS-gold TAGS-gold
16100maybe-TAGS-gold:
16101@if gold
16102maybe-TAGS-gold: TAGS-gold
2a4cbe27 16103
a90ef4bf
JM
16104TAGS-gold: \
16105 configure-gold
16106 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16107 r=`${PWD_COMMAND}`; export r; \
16108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16109 $(HOST_EXPORTS) \
b813574b 16110 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16112 done; \
22121df0 16113 echo "Doing TAGS in gold"; \
a90ef4bf 16114 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16117 "RANLIB=$${RANLIB}" \
0c24b341 16118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16119 TAGS) \
2a4cbe27
NN
16120 || exit 1
16121
a90ef4bf 16122@endif gold
2a4cbe27 16123
a90ef4bf
JM
16124.PHONY: maybe-install-info-gold install-info-gold
16125maybe-install-info-gold:
16126@if gold
16127maybe-install-info-gold: install-info-gold
b813574b 16128
a90ef4bf
JM
16129install-info-gold: \
16130 configure-gold \
16131 info-gold
16132 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16133 r=`${PWD_COMMAND}`; export r; \
16134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16135 $(HOST_EXPORTS) \
b813574b 16136 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16138 done; \
22121df0 16139 echo "Doing install-info in gold"; \
a90ef4bf 16140 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16143 "RANLIB=$${RANLIB}" \
0c24b341 16144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16145 install-info) \
2a4cbe27
NN
16146 || exit 1
16147
a90ef4bf 16148@endif gold
2a4cbe27 16149
a90ef4bf
JM
16150.PHONY: maybe-install-pdf-gold install-pdf-gold
16151maybe-install-pdf-gold:
16152@if gold
16153maybe-install-pdf-gold: install-pdf-gold
a3ca38d2 16154
a90ef4bf
JM
16155install-pdf-gold: \
16156 configure-gold \
16157 pdf-gold
16158 @[ -f ./gold/Makefile ] || exit 0; \
a3ca38d2
DD
16159 r=`${PWD_COMMAND}`; export r; \
16160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16161 $(HOST_EXPORTS) \
16162 for flag in $(EXTRA_HOST_FLAGS) ; do \
16163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16164 done; \
22121df0 16165 echo "Doing install-pdf in gold"; \
a90ef4bf 16166 (cd $(HOST_SUBDIR)/gold && \
a3ca38d2
DD
16167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16169 "RANLIB=$${RANLIB}" \
0c24b341 16170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16171 install-pdf) \
16172 || exit 1
16173
a90ef4bf 16174@endif gold
a3ca38d2 16175
a90ef4bf
JM
16176.PHONY: maybe-install-html-gold install-html-gold
16177maybe-install-html-gold:
16178@if gold
16179maybe-install-html-gold: install-html-gold
108a6f8e 16180
a90ef4bf
JM
16181install-html-gold: \
16182 configure-gold \
16183 html-gold
16184 @[ -f ./gold/Makefile ] || exit 0; \
108a6f8e
CD
16185 r=`${PWD_COMMAND}`; export r; \
16186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16187 $(HOST_EXPORTS) \
16188 for flag in $(EXTRA_HOST_FLAGS) ; do \
16189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16190 done; \
22121df0 16191 echo "Doing install-html in gold"; \
a90ef4bf 16192 (cd $(HOST_SUBDIR)/gold && \
108a6f8e
CD
16193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16195 "RANLIB=$${RANLIB}" \
0c24b341 16196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
16197 install-html) \
16198 || exit 1
16199
a90ef4bf 16200@endif gold
108a6f8e 16201
a90ef4bf
JM
16202.PHONY: maybe-installcheck-gold installcheck-gold
16203maybe-installcheck-gold:
16204@if gold
16205maybe-installcheck-gold: installcheck-gold
2a4cbe27 16206
a90ef4bf
JM
16207installcheck-gold: \
16208 configure-gold
16209 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16210 r=`${PWD_COMMAND}`; export r; \
16211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16212 $(HOST_EXPORTS) \
b813574b 16213 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16215 done; \
22121df0 16216 echo "Doing installcheck in gold"; \
a90ef4bf 16217 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16218 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16219 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16220 "RANLIB=$${RANLIB}" \
0c24b341 16221 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16222 installcheck) \
2a4cbe27
NN
16223 || exit 1
16224
a90ef4bf 16225@endif gold
2a4cbe27 16226
a90ef4bf
JM
16227.PHONY: maybe-mostlyclean-gold mostlyclean-gold
16228maybe-mostlyclean-gold:
16229@if gold
16230maybe-mostlyclean-gold: mostlyclean-gold
2a4cbe27 16231
a90ef4bf
JM
16232mostlyclean-gold:
16233 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16234 r=`${PWD_COMMAND}`; export r; \
16235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16236 $(HOST_EXPORTS) \
b813574b 16237 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16239 done; \
22121df0 16240 echo "Doing mostlyclean in gold"; \
a90ef4bf 16241 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16244 "RANLIB=$${RANLIB}" \
0c24b341 16245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16246 mostlyclean) \
2a4cbe27
NN
16247 || exit 1
16248
a90ef4bf 16249@endif gold
2a4cbe27 16250
a90ef4bf
JM
16251.PHONY: maybe-clean-gold clean-gold
16252maybe-clean-gold:
16253@if gold
16254maybe-clean-gold: clean-gold
2a4cbe27 16255
a90ef4bf
JM
16256clean-gold:
16257 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16258 r=`${PWD_COMMAND}`; export r; \
16259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16260 $(HOST_EXPORTS) \
b813574b 16261 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16263 done; \
22121df0 16264 echo "Doing clean in gold"; \
a90ef4bf 16265 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16268 "RANLIB=$${RANLIB}" \
0c24b341 16269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16270 clean) \
2a4cbe27
NN
16271 || exit 1
16272
a90ef4bf 16273@endif gold
2a4cbe27 16274
a90ef4bf
JM
16275.PHONY: maybe-distclean-gold distclean-gold
16276maybe-distclean-gold:
16277@if gold
16278maybe-distclean-gold: distclean-gold
2a4cbe27 16279
a90ef4bf
JM
16280distclean-gold:
16281 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16282 r=`${PWD_COMMAND}`; export r; \
16283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16284 $(HOST_EXPORTS) \
b813574b 16285 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16287 done; \
22121df0 16288 echo "Doing distclean in gold"; \
a90ef4bf 16289 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16292 "RANLIB=$${RANLIB}" \
0c24b341 16293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16294 distclean) \
2a4cbe27
NN
16295 || exit 1
16296
a90ef4bf 16297@endif gold
2a4cbe27 16298
a90ef4bf
JM
16299.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
16300maybe-maintainer-clean-gold:
16301@if gold
16302maybe-maintainer-clean-gold: maintainer-clean-gold
2a4cbe27 16303
a90ef4bf
JM
16304maintainer-clean-gold:
16305 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16306 r=`${PWD_COMMAND}`; export r; \
16307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16308 $(HOST_EXPORTS) \
b813574b 16309 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16311 done; \
22121df0 16312 echo "Doing maintainer-clean in gold"; \
a90ef4bf 16313 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16316 "RANLIB=$${RANLIB}" \
0c24b341 16317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16318 maintainer-clean) \
4fa63067
NN
16319 || exit 1
16320
a90ef4bf 16321@endif gold
4fa63067
NN
16322
16323
a7254363 16324
a90ef4bf
JM
16325.PHONY: configure-gprof maybe-configure-gprof
16326maybe-configure-gprof:
4b900473 16327@if gcc-bootstrap
a90ef4bf 16328configure-gprof: stage_current
4b900473 16329@endif gcc-bootstrap
a90ef4bf
JM
16330@if gprof
16331maybe-configure-gprof: configure-gprof
16332configure-gprof:
16333 @: $(MAKE); $(unstage)
4b900473
PB
16334 @r=`${PWD_COMMAND}`; export r; \
16335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16336 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
22121df0 16337 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof; \
1f53ca9a 16338 $(HOST_EXPORTS) \
a90ef4bf
JM
16339 echo Configuring in $(HOST_SUBDIR)/gprof; \
16340 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
4b900473
PB
16341 case $(srcdir) in \
16342 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16343 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
4b900473
PB
16344 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16345 esac; \
1b6c0831
L
16346 module_srcdir=gprof; \
16347 $(SHELL) \
16348 $$s/$$module_srcdir/configure \
16349 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16350 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16351 --target=${target_alias} \
4b900473 16352 || exit 1
a90ef4bf 16353@endif gprof
4b900473
PB
16354
16355
16356
4b900473 16357
a90ef4bf
JM
16358
16359.PHONY: all-gprof maybe-all-gprof
16360maybe-all-gprof:
16361@if gcc-bootstrap
16362all-gprof: stage_current
16363@endif gcc-bootstrap
16364@if gprof
16365TARGET-gprof=all
16366maybe-all-gprof: all-gprof
16367all-gprof: configure-gprof
16368 @: $(MAKE); $(unstage)
4b900473
PB
16369 @r=`${PWD_COMMAND}`; export r; \
16370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16371 $(HOST_EXPORTS) \
a90ef4bf 16372 (cd $(HOST_SUBDIR)/gprof && \
b3676d82 16373 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16374 $(TARGET-gprof))
16375@endif gprof
4b900473
PB
16376
16377
4b900473 16378
4b900473 16379
a90ef4bf
JM
16380.PHONY: check-gprof maybe-check-gprof
16381maybe-check-gprof:
16382@if gprof
16383maybe-check-gprof: check-gprof
4b900473 16384
a90ef4bf
JM
16385check-gprof:
16386 @: $(MAKE); $(unstage)
4b900473
PB
16387 @r=`${PWD_COMMAND}`; export r; \
16388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 16389 $(HOST_EXPORTS) \
a90ef4bf
JM
16390 (cd $(HOST_SUBDIR)/gprof && \
16391 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 16392
a90ef4bf 16393@endif gprof
4b900473 16394
a90ef4bf
JM
16395.PHONY: install-gprof maybe-install-gprof
16396maybe-install-gprof:
16397@if gprof
16398maybe-install-gprof: install-gprof
4b900473 16399
a90ef4bf
JM
16400install-gprof: installdirs
16401 @: $(MAKE); $(unstage)
4b900473
PB
16402 @r=`${PWD_COMMAND}`; export r; \
16403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16404 $(HOST_EXPORTS) \
a90ef4bf
JM
16405 (cd $(HOST_SUBDIR)/gprof && \
16406 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 16407
a90ef4bf 16408@endif gprof
4b900473 16409
a90ef4bf
JM
16410.PHONY: install-strip-gprof maybe-install-strip-gprof
16411maybe-install-strip-gprof:
16412@if gprof
16413maybe-install-strip-gprof: install-strip-gprof
4b900473 16414
a90ef4bf 16415install-strip-gprof: installdirs
4b900473
PB
16416 @: $(MAKE); $(unstage)
16417 @r=`${PWD_COMMAND}`; export r; \
16418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16419 $(HOST_EXPORTS) \
a90ef4bf
JM
16420 (cd $(HOST_SUBDIR)/gprof && \
16421 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 16422
a90ef4bf 16423@endif gprof
9b980aa1 16424
4b900473
PB
16425# Other targets (info, dvi, pdf, etc.)
16426
a90ef4bf
JM
16427.PHONY: maybe-info-gprof info-gprof
16428maybe-info-gprof:
16429@if gprof
16430maybe-info-gprof: info-gprof
4b900473 16431
a90ef4bf
JM
16432info-gprof: \
16433 configure-gprof
16434 @: $(MAKE); $(unstage)
16435 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16436 r=`${PWD_COMMAND}`; export r; \
16437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16438 $(HOST_EXPORTS) \
16439 for flag in $(EXTRA_HOST_FLAGS) ; do \
16440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16441 done; \
22121df0 16442 echo "Doing info in gprof"; \
a90ef4bf 16443 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16446 "RANLIB=$${RANLIB}" \
0c24b341 16447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16448 info) \
16449 || exit 1
16450
a90ef4bf 16451@endif gprof
4b900473 16452
a90ef4bf
JM
16453.PHONY: maybe-dvi-gprof dvi-gprof
16454maybe-dvi-gprof:
16455@if gprof
16456maybe-dvi-gprof: dvi-gprof
4b900473 16457
a90ef4bf
JM
16458dvi-gprof: \
16459 configure-gprof
16460 @: $(MAKE); $(unstage)
16461 @[ -f ./gprof/Makefile ] || exit 0; \
16462 r=`${PWD_COMMAND}`; export r; \
16463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16464 $(HOST_EXPORTS) \
4b900473
PB
16465 for flag in $(EXTRA_HOST_FLAGS) ; do \
16466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16467 done; \
22121df0 16468 echo "Doing dvi in gprof"; \
a90ef4bf 16469 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16472 "RANLIB=$${RANLIB}" \
0c24b341 16473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16474 dvi) \
16475 || exit 1
16476
a90ef4bf 16477@endif gprof
4b900473 16478
a90ef4bf
JM
16479.PHONY: maybe-pdf-gprof pdf-gprof
16480maybe-pdf-gprof:
16481@if gprof
16482maybe-pdf-gprof: pdf-gprof
4b900473 16483
a90ef4bf
JM
16484pdf-gprof: \
16485 configure-gprof
16486 @: $(MAKE); $(unstage)
16487 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16488 r=`${PWD_COMMAND}`; export r; \
16489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16490 $(HOST_EXPORTS) \
16491 for flag in $(EXTRA_HOST_FLAGS) ; do \
16492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16493 done; \
22121df0 16494 echo "Doing pdf in gprof"; \
a90ef4bf 16495 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16498 "RANLIB=$${RANLIB}" \
0c24b341 16499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16500 pdf) \
16501 || exit 1
16502
a90ef4bf 16503@endif gprof
4b900473 16504
a90ef4bf
JM
16505.PHONY: maybe-html-gprof html-gprof
16506maybe-html-gprof:
16507@if gprof
16508maybe-html-gprof: html-gprof
4b900473 16509
a90ef4bf
JM
16510html-gprof: \
16511 configure-gprof
16512 @: $(MAKE); $(unstage)
16513 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16514 r=`${PWD_COMMAND}`; export r; \
16515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16516 $(HOST_EXPORTS) \
16517 for flag in $(EXTRA_HOST_FLAGS) ; do \
16518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16519 done; \
22121df0 16520 echo "Doing html in gprof"; \
a90ef4bf 16521 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16524 "RANLIB=$${RANLIB}" \
0c24b341 16525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16526 html) \
16527 || exit 1
16528
a90ef4bf 16529@endif gprof
4b900473 16530
a90ef4bf
JM
16531.PHONY: maybe-TAGS-gprof TAGS-gprof
16532maybe-TAGS-gprof:
16533@if gprof
16534maybe-TAGS-gprof: TAGS-gprof
4b900473 16535
a90ef4bf
JM
16536TAGS-gprof: \
16537 configure-gprof
16538 @: $(MAKE); $(unstage)
16539 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16540 r=`${PWD_COMMAND}`; export r; \
16541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16542 $(HOST_EXPORTS) \
16543 for flag in $(EXTRA_HOST_FLAGS) ; do \
16544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16545 done; \
22121df0 16546 echo "Doing TAGS in gprof"; \
a90ef4bf 16547 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16550 "RANLIB=$${RANLIB}" \
0c24b341 16551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16552 TAGS) \
16553 || exit 1
16554
a90ef4bf 16555@endif gprof
4b900473 16556
a90ef4bf
JM
16557.PHONY: maybe-install-info-gprof install-info-gprof
16558maybe-install-info-gprof:
16559@if gprof
16560maybe-install-info-gprof: install-info-gprof
4b900473 16561
a90ef4bf
JM
16562install-info-gprof: \
16563 configure-gprof \
16564 info-gprof
16565 @: $(MAKE); $(unstage)
16566 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16567 r=`${PWD_COMMAND}`; export r; \
16568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16569 $(HOST_EXPORTS) \
16570 for flag in $(EXTRA_HOST_FLAGS) ; do \
16571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16572 done; \
22121df0 16573 echo "Doing install-info in gprof"; \
a90ef4bf 16574 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16577 "RANLIB=$${RANLIB}" \
0c24b341 16578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16579 install-info) \
16580 || exit 1
16581
a90ef4bf 16582@endif gprof
4b900473 16583
a90ef4bf
JM
16584.PHONY: maybe-install-pdf-gprof install-pdf-gprof
16585maybe-install-pdf-gprof:
16586@if gprof
16587maybe-install-pdf-gprof: install-pdf-gprof
a3ca38d2 16588
a90ef4bf
JM
16589install-pdf-gprof: \
16590 configure-gprof \
16591 pdf-gprof
16592 @: $(MAKE); $(unstage)
16593 @[ -f ./gprof/Makefile ] || exit 0; \
a3ca38d2
DD
16594 r=`${PWD_COMMAND}`; export r; \
16595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16596 $(HOST_EXPORTS) \
16597 for flag in $(EXTRA_HOST_FLAGS) ; do \
16598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16599 done; \
22121df0 16600 echo "Doing install-pdf in gprof"; \
a90ef4bf 16601 (cd $(HOST_SUBDIR)/gprof && \
a3ca38d2
DD
16602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16604 "RANLIB=$${RANLIB}" \
0c24b341 16605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16606 install-pdf) \
16607 || exit 1
16608
a90ef4bf 16609@endif gprof
a3ca38d2 16610
a90ef4bf
JM
16611.PHONY: maybe-install-html-gprof install-html-gprof
16612maybe-install-html-gprof:
16613@if gprof
16614maybe-install-html-gprof: install-html-gprof
4b900473 16615
a90ef4bf
JM
16616install-html-gprof: \
16617 configure-gprof \
16618 html-gprof
16619 @: $(MAKE); $(unstage)
16620 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16621 r=`${PWD_COMMAND}`; export r; \
16622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16623 $(HOST_EXPORTS) \
16624 for flag in $(EXTRA_HOST_FLAGS) ; do \
16625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16626 done; \
22121df0 16627 echo "Doing install-html in gprof"; \
a90ef4bf 16628 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16631 "RANLIB=$${RANLIB}" \
0c24b341 16632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16633 install-html) \
16634 || exit 1
16635
a90ef4bf 16636@endif gprof
4b900473 16637
a90ef4bf
JM
16638.PHONY: maybe-installcheck-gprof installcheck-gprof
16639maybe-installcheck-gprof:
16640@if gprof
16641maybe-installcheck-gprof: installcheck-gprof
4b900473 16642
a90ef4bf
JM
16643installcheck-gprof: \
16644 configure-gprof
16645 @: $(MAKE); $(unstage)
16646 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16647 r=`${PWD_COMMAND}`; export r; \
16648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16649 $(HOST_EXPORTS) \
16650 for flag in $(EXTRA_HOST_FLAGS) ; do \
16651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16652 done; \
22121df0 16653 echo "Doing installcheck in gprof"; \
a90ef4bf 16654 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16657 "RANLIB=$${RANLIB}" \
16658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16659 installcheck) \
16660 || exit 1
16661
a90ef4bf 16662@endif gprof
e28c595f 16663
a90ef4bf
JM
16664.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
16665maybe-mostlyclean-gprof:
16666@if gprof
16667maybe-mostlyclean-gprof: mostlyclean-gprof
e28c595f 16668
a90ef4bf
JM
16669mostlyclean-gprof:
16670 @: $(MAKE); $(unstage)
16671 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16672 r=`${PWD_COMMAND}`; export r; \
16673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16674 $(HOST_EXPORTS) \
16675 for flag in $(EXTRA_HOST_FLAGS) ; do \
16676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16677 done; \
22121df0 16678 echo "Doing mostlyclean in gprof"; \
a90ef4bf 16679 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16682 "RANLIB=$${RANLIB}" \
16683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16684 mostlyclean) \
16685 || exit 1
16686
a90ef4bf 16687@endif gprof
e28c595f 16688
a90ef4bf
JM
16689.PHONY: maybe-clean-gprof clean-gprof
16690maybe-clean-gprof:
16691@if gprof
16692maybe-clean-gprof: clean-gprof
e28c595f 16693
a90ef4bf
JM
16694clean-gprof:
16695 @: $(MAKE); $(unstage)
16696 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16697 r=`${PWD_COMMAND}`; export r; \
16698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16699 $(HOST_EXPORTS) \
16700 for flag in $(EXTRA_HOST_FLAGS) ; do \
16701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16702 done; \
22121df0 16703 echo "Doing clean in gprof"; \
a90ef4bf 16704 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16707 "RANLIB=$${RANLIB}" \
16708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16709 clean) \
16710 || exit 1
16711
a90ef4bf 16712@endif gprof
e28c595f 16713
a90ef4bf
JM
16714.PHONY: maybe-distclean-gprof distclean-gprof
16715maybe-distclean-gprof:
16716@if gprof
16717maybe-distclean-gprof: distclean-gprof
e28c595f 16718
a90ef4bf
JM
16719distclean-gprof:
16720 @: $(MAKE); $(unstage)
16721 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16722 r=`${PWD_COMMAND}`; export r; \
16723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16724 $(HOST_EXPORTS) \
16725 for flag in $(EXTRA_HOST_FLAGS) ; do \
16726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16727 done; \
22121df0 16728 echo "Doing distclean in gprof"; \
a90ef4bf 16729 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16732 "RANLIB=$${RANLIB}" \
16733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16734 distclean) \
16735 || exit 1
16736
a90ef4bf 16737@endif gprof
e28c595f 16738
a90ef4bf
JM
16739.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
16740maybe-maintainer-clean-gprof:
16741@if gprof
16742maybe-maintainer-clean-gprof: maintainer-clean-gprof
e28c595f 16743
a90ef4bf
JM
16744maintainer-clean-gprof:
16745 @: $(MAKE); $(unstage)
16746 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16747 r=`${PWD_COMMAND}`; export r; \
16748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16749 $(HOST_EXPORTS) \
16750 for flag in $(EXTRA_HOST_FLAGS) ; do \
16751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16752 done; \
22121df0 16753 echo "Doing maintainer-clean in gprof"; \
a90ef4bf 16754 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16757 "RANLIB=$${RANLIB}" \
16758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16759 maintainer-clean) \
16760 || exit 1
16761
a90ef4bf 16762@endif gprof
e28c595f
JM
16763
16764
16765
a90ef4bf
JM
16766.PHONY: configure-intl maybe-configure-intl
16767maybe-configure-intl:
e28c595f 16768@if gcc-bootstrap
a90ef4bf 16769configure-intl: stage_current
e28c595f 16770@endif gcc-bootstrap
a90ef4bf
JM
16771@if intl
16772maybe-configure-intl: configure-intl
16773configure-intl:
e28c595f
JM
16774 @r=`${PWD_COMMAND}`; export r; \
16775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16776 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
22121df0 16777 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
1f53ca9a 16778 $(HOST_EXPORTS) \
a90ef4bf
JM
16779 echo Configuring in $(HOST_SUBDIR)/intl; \
16780 cd "$(HOST_SUBDIR)/intl" || exit 1; \
e28c595f
JM
16781 case $(srcdir) in \
16782 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16783 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16784 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16785 esac; \
1b6c0831
L
16786 module_srcdir=intl; \
16787 $(SHELL) \
16788 $$s/$$module_srcdir/configure \
16789 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16790 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16791 --target=${target_alias} \
e28c595f 16792 || exit 1
a90ef4bf 16793@endif intl
e28c595f
JM
16794
16795
16796
a90ef4bf
JM
16797.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16798maybe-configure-stage1-intl:
16799@if intl-bootstrap
16800maybe-configure-stage1-intl: configure-stage1-intl
16801configure-stage1-intl:
e28c595f 16802 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 16803 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16804 @r=`${PWD_COMMAND}`; export r; \
16805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16806 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 16807 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
1b05fbbd 16808 $(HOST_EXPORTS) \
e28c595f 16809 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16810 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16811 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
16812 echo Configuring stage 1 in $(HOST_SUBDIR)/intl; \
16813 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16814 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16815 case $(srcdir) in \
16816 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16817 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16818 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16819 esac; \
1b6c0831
L
16820 module_srcdir=intl; \
16821 $(SHELL) $$s/$$module_srcdir/configure \
16822 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16823 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16824 --target=${target_alias} \
16825 \
a90ef4bf
JM
16826 $(STAGE1_CONFIGURE_FLAGS)
16827@endif intl-bootstrap
e28c595f 16828
a90ef4bf
JM
16829.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16830maybe-configure-stage2-intl:
16831@if intl-bootstrap
16832maybe-configure-stage2-intl: configure-stage2-intl
16833configure-stage2-intl:
e28c595f 16834 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 16835 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16836 @r=`${PWD_COMMAND}`; export r; \
16837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16838 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 16839 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16840 $(HOST_EXPORTS) \
1b05fbbd 16841 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16842 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16843 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16844 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16845 echo Configuring stage 2 in $(HOST_SUBDIR)/intl; \
16846 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16847 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16848 case $(srcdir) in \
16849 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16850 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16851 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16852 esac; \
1b6c0831
L
16853 module_srcdir=intl; \
16854 $(SHELL) $$s/$$module_srcdir/configure \
16855 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16856 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16857 --target=${target_alias} \
22121df0 16858 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16859 $(STAGE2_CONFIGURE_FLAGS)
16860@endif intl-bootstrap
e28c595f 16861
a90ef4bf
JM
16862.PHONY: configure-stage3-intl maybe-configure-stage3-intl
16863maybe-configure-stage3-intl:
16864@if intl-bootstrap
16865maybe-configure-stage3-intl: configure-stage3-intl
16866configure-stage3-intl:
e28c595f 16867 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 16868 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16869 @r=`${PWD_COMMAND}`; export r; \
16870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16871 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 16872 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16873 $(HOST_EXPORTS) \
1b05fbbd 16874 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16875 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16876 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
16877 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16878 echo Configuring stage 3 in $(HOST_SUBDIR)/intl; \
16879 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16880 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16881 case $(srcdir) in \
16882 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16883 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16884 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16885 esac; \
1b6c0831
L
16886 module_srcdir=intl; \
16887 $(SHELL) $$s/$$module_srcdir/configure \
16888 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16889 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16890 --target=${target_alias} \
22121df0 16891 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16892 $(STAGE3_CONFIGURE_FLAGS)
16893@endif intl-bootstrap
e28c595f 16894
a90ef4bf
JM
16895.PHONY: configure-stage4-intl maybe-configure-stage4-intl
16896maybe-configure-stage4-intl:
16897@if intl-bootstrap
16898maybe-configure-stage4-intl: configure-stage4-intl
16899configure-stage4-intl:
e28c595f 16900 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 16901 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16902 @r=`${PWD_COMMAND}`; export r; \
16903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16904 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 16905 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16906 $(HOST_EXPORTS) \
1b05fbbd 16907 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16908 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16909 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
16910 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16911 echo Configuring stage 4 in $(HOST_SUBDIR)/intl; \
16912 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16913 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16914 case $(srcdir) in \
16915 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16916 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16917 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16918 esac; \
1b6c0831
L
16919 module_srcdir=intl; \
16920 $(SHELL) $$s/$$module_srcdir/configure \
16921 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16922 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16923 --target=${target_alias} \
22121df0 16924 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16925 $(STAGE4_CONFIGURE_FLAGS)
16926@endif intl-bootstrap
e28c595f 16927
a90ef4bf
JM
16928.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
16929maybe-configure-stageprofile-intl:
16930@if intl-bootstrap
16931maybe-configure-stageprofile-intl: configure-stageprofile-intl
16932configure-stageprofile-intl:
e28c595f 16933 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 16934 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16935 @r=`${PWD_COMMAND}`; export r; \
16936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16937 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 16938 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16939 $(HOST_EXPORTS) \
1b05fbbd
AO
16940 $(POSTSTAGE1_HOST_EXPORTS) \
16941 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16942 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
16943 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16944 echo Configuring stage profile in $(HOST_SUBDIR)/intl; \
16945 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16946 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16947 case $(srcdir) in \
16948 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16949 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16950 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16951 esac; \
1b6c0831
L
16952 module_srcdir=intl; \
16953 $(SHELL) $$s/$$module_srcdir/configure \
16954 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16955 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16956 --target=${target_alias} \
22121df0 16957 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16958 $(STAGEprofile_CONFIGURE_FLAGS)
16959@endif intl-bootstrap
e28c595f 16960
a90ef4bf
JM
16961.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
16962maybe-configure-stagefeedback-intl:
16963@if intl-bootstrap
16964maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
16965configure-stagefeedback-intl:
e28c595f 16966 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 16967 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16968 @r=`${PWD_COMMAND}`; export r; \
16969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16970 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 16971 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16972 $(HOST_EXPORTS) \
1b05fbbd
AO
16973 $(POSTSTAGE1_HOST_EXPORTS) \
16974 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16975 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
16976 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16977 echo Configuring stage feedback in $(HOST_SUBDIR)/intl; \
16978 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16979 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16980 case $(srcdir) in \
16981 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16982 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16983 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16984 esac; \
1b6c0831
L
16985 module_srcdir=intl; \
16986 $(SHELL) $$s/$$module_srcdir/configure \
16987 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16988 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16989 --target=${target_alias} \
22121df0 16990 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16991 $(STAGEfeedback_CONFIGURE_FLAGS)
16992@endif intl-bootstrap
e28c595f
JM
16993
16994
16995
16996
16997
a90ef4bf
JM
16998.PHONY: all-intl maybe-all-intl
16999maybe-all-intl:
e28c595f 17000@if gcc-bootstrap
a90ef4bf 17001all-intl: stage_current
e28c595f 17002@endif gcc-bootstrap
a90ef4bf
JM
17003@if intl
17004TARGET-intl=all
17005maybe-all-intl: all-intl
17006all-intl: configure-intl
e28c595f
JM
17007 @r=`${PWD_COMMAND}`; export r; \
17008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 17009 $(HOST_EXPORTS) \
a90ef4bf 17010 (cd $(HOST_SUBDIR)/intl && \
b3676d82 17011 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17012 $(TARGET-intl))
17013@endif intl
e28c595f
JM
17014
17015
17016
a90ef4bf
JM
17017.PHONY: all-stage1-intl maybe-all-stage1-intl
17018.PHONY: clean-stage1-intl maybe-clean-stage1-intl
17019maybe-all-stage1-intl:
17020maybe-clean-stage1-intl:
17021@if intl-bootstrap
17022maybe-all-stage1-intl: all-stage1-intl
17023all-stage1: all-stage1-intl
17024TARGET-stage1-intl = $(TARGET-intl)
17025all-stage1-intl: configure-stage1-intl
e28c595f
JM
17026 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
17027 @r=`${PWD_COMMAND}`; export r; \
17028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17029 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 17030 $(HOST_EXPORTS) \
a90ef4bf 17031 cd $(HOST_SUBDIR)/intl && \
05a13254 17032 \
e28c595f 17033 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17034 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 17035 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
17036 LIBCFLAGS="$(LIBCFLAGS)" \
17037 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17038 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17039 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
17040 $(EXTRA_HOST_FLAGS) \
17041 $(STAGE1_FLAGS_TO_PASS) \
05a13254 17042 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 17043 $(TARGET-stage1-intl)
e28c595f 17044
a90ef4bf
JM
17045maybe-clean-stage1-intl: clean-stage1-intl
17046clean-stage1: clean-stage1-intl
17047clean-stage1-intl:
e28c595f 17048 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 17049 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17050 else \
a90ef4bf 17051 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
e28c595f
JM
17052 $(MAKE) stage1-start; \
17053 fi; \
a90ef4bf 17054 cd $(HOST_SUBDIR)/intl && \
e28c595f 17055 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 17056 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17057@endif intl-bootstrap
e28c595f
JM
17058
17059
a90ef4bf
JM
17060.PHONY: all-stage2-intl maybe-all-stage2-intl
17061.PHONY: clean-stage2-intl maybe-clean-stage2-intl
17062maybe-all-stage2-intl:
17063maybe-clean-stage2-intl:
17064@if intl-bootstrap
17065maybe-all-stage2-intl: all-stage2-intl
17066all-stage2: all-stage2-intl
17067TARGET-stage2-intl = $(TARGET-intl)
17068all-stage2-intl: configure-stage2-intl
e28c595f
JM
17069 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17070 @r=`${PWD_COMMAND}`; export r; \
17071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17072 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 17073 $(HOST_EXPORTS) \
1f53ca9a 17074 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17075 cd $(HOST_SUBDIR)/intl && \
05a13254 17076 \
e28c595f 17077 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17078 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 17079 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
17080 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17081 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17082 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17083 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17084 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17085 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 17086 $(TARGET-stage2-intl)
e28c595f 17087
a90ef4bf
JM
17088maybe-clean-stage2-intl: clean-stage2-intl
17089clean-stage2: clean-stage2-intl
17090clean-stage2-intl:
e28c595f 17091 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 17092 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17093 else \
a90ef4bf 17094 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
e28c595f
JM
17095 $(MAKE) stage2-start; \
17096 fi; \
a90ef4bf 17097 cd $(HOST_SUBDIR)/intl && \
b3676d82 17098 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17099@endif intl-bootstrap
e28c595f
JM
17100
17101
a90ef4bf
JM
17102.PHONY: all-stage3-intl maybe-all-stage3-intl
17103.PHONY: clean-stage3-intl maybe-clean-stage3-intl
17104maybe-all-stage3-intl:
17105maybe-clean-stage3-intl:
17106@if intl-bootstrap
17107maybe-all-stage3-intl: all-stage3-intl
17108all-stage3: all-stage3-intl
17109TARGET-stage3-intl = $(TARGET-intl)
17110all-stage3-intl: configure-stage3-intl
e28c595f
JM
17111 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17112 @r=`${PWD_COMMAND}`; export r; \
17113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17114 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 17115 $(HOST_EXPORTS) \
1f53ca9a 17116 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17117 cd $(HOST_SUBDIR)/intl && \
05a13254 17118 \
e28c595f 17119 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17120 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 17121 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
17122 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17123 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17124 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17125 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17126 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17127 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 17128 $(TARGET-stage3-intl)
e28c595f 17129
a90ef4bf
JM
17130maybe-clean-stage3-intl: clean-stage3-intl
17131clean-stage3: clean-stage3-intl
17132clean-stage3-intl:
e28c595f 17133 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 17134 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17135 else \
a90ef4bf 17136 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
e28c595f
JM
17137 $(MAKE) stage3-start; \
17138 fi; \
a90ef4bf 17139 cd $(HOST_SUBDIR)/intl && \
b3676d82 17140 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17141@endif intl-bootstrap
e28c595f
JM
17142
17143
a90ef4bf
JM
17144.PHONY: all-stage4-intl maybe-all-stage4-intl
17145.PHONY: clean-stage4-intl maybe-clean-stage4-intl
17146maybe-all-stage4-intl:
17147maybe-clean-stage4-intl:
17148@if intl-bootstrap
17149maybe-all-stage4-intl: all-stage4-intl
17150all-stage4: all-stage4-intl
17151TARGET-stage4-intl = $(TARGET-intl)
17152all-stage4-intl: configure-stage4-intl
e28c595f
JM
17153 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17154 @r=`${PWD_COMMAND}`; export r; \
17155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17156 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 17157 $(HOST_EXPORTS) \
1f53ca9a 17158 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17159 cd $(HOST_SUBDIR)/intl && \
05a13254 17160 \
e28c595f 17161 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17162 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 17163 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 17164 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
17165 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17166 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17167 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17168 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17169 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 17170 $(TARGET-stage4-intl)
e28c595f 17171
a90ef4bf
JM
17172maybe-clean-stage4-intl: clean-stage4-intl
17173clean-stage4: clean-stage4-intl
17174clean-stage4-intl:
e28c595f 17175 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 17176 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17177 else \
a90ef4bf 17178 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
e28c595f
JM
17179 $(MAKE) stage4-start; \
17180 fi; \
a90ef4bf 17181 cd $(HOST_SUBDIR)/intl && \
b3676d82 17182 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17183@endif intl-bootstrap
e28c595f
JM
17184
17185
a90ef4bf
JM
17186.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
17187.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
17188maybe-all-stageprofile-intl:
17189maybe-clean-stageprofile-intl:
17190@if intl-bootstrap
17191maybe-all-stageprofile-intl: all-stageprofile-intl
17192all-stageprofile: all-stageprofile-intl
17193TARGET-stageprofile-intl = $(TARGET-intl)
17194all-stageprofile-intl: configure-stageprofile-intl
e28c595f
JM
17195 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17196 @r=`${PWD_COMMAND}`; export r; \
17197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17198 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 17199 $(HOST_EXPORTS) \
1f53ca9a 17200 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17201 cd $(HOST_SUBDIR)/intl && \
05a13254 17202 \
e28c595f 17203 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17204 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 17205 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
17206 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17207 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17208 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17209 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17210 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17211 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 17212 $(TARGET-stageprofile-intl)
e28c595f 17213
a90ef4bf
JM
17214maybe-clean-stageprofile-intl: clean-stageprofile-intl
17215clean-stageprofile: clean-stageprofile-intl
17216clean-stageprofile-intl:
e28c595f 17217 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 17218 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17219 else \
a90ef4bf 17220 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
e28c595f
JM
17221 $(MAKE) stageprofile-start; \
17222 fi; \
a90ef4bf 17223 cd $(HOST_SUBDIR)/intl && \
b3676d82 17224 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17225@endif intl-bootstrap
e28c595f
JM
17226
17227
a90ef4bf
JM
17228.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
17229.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
17230maybe-all-stagefeedback-intl:
17231maybe-clean-stagefeedback-intl:
17232@if intl-bootstrap
17233maybe-all-stagefeedback-intl: all-stagefeedback-intl
17234all-stagefeedback: all-stagefeedback-intl
17235TARGET-stagefeedback-intl = $(TARGET-intl)
17236all-stagefeedback-intl: configure-stagefeedback-intl
e28c595f
JM
17237 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17238 @r=`${PWD_COMMAND}`; export r; \
17239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17240 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 17241 $(HOST_EXPORTS) \
1f53ca9a 17242 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17243 cd $(HOST_SUBDIR)/intl && \
05a13254 17244 \
e28c595f 17245 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17246 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 17247 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
17248 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17249 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17250 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17251 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17252 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17253 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 17254 $(TARGET-stagefeedback-intl)
e28c595f 17255
a90ef4bf
JM
17256maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
17257clean-stagefeedback: clean-stagefeedback-intl
17258clean-stagefeedback-intl:
e28c595f 17259 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 17260 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17261 else \
a90ef4bf 17262 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
e28c595f
JM
17263 $(MAKE) stagefeedback-start; \
17264 fi; \
a90ef4bf 17265 cd $(HOST_SUBDIR)/intl && \
b3676d82 17266 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17267@endif intl-bootstrap
e28c595f
JM
17268
17269
17270
17271
17272
a90ef4bf
JM
17273.PHONY: check-intl maybe-check-intl
17274maybe-check-intl:
17275@if intl
17276maybe-check-intl: check-intl
e28c595f 17277
a90ef4bf 17278check-intl:
e28c595f
JM
17279 @: $(MAKE); $(unstage)
17280 @r=`${PWD_COMMAND}`; export r; \
17281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17282 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 17283 (cd $(HOST_SUBDIR)/intl && \
f91ca6bc 17284 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 17285
a90ef4bf 17286@endif intl
e28c595f 17287
a90ef4bf
JM
17288.PHONY: install-intl maybe-install-intl
17289maybe-install-intl:
17290@if intl
17291maybe-install-intl: install-intl
e28c595f 17292
a90ef4bf
JM
17293install-intl: installdirs
17294 @: $(MAKE); $(unstage)
17295 @r=`${PWD_COMMAND}`; export r; \
17296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17297 $(HOST_EXPORTS) \
17298 (cd $(HOST_SUBDIR)/intl && \
17299 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 17300
a90ef4bf 17301@endif intl
e28c595f 17302
a90ef4bf
JM
17303.PHONY: install-strip-intl maybe-install-strip-intl
17304maybe-install-strip-intl:
17305@if intl
17306maybe-install-strip-intl: install-strip-intl
9b980aa1 17307
a90ef4bf
JM
17308install-strip-intl: installdirs
17309 @: $(MAKE); $(unstage)
17310 @r=`${PWD_COMMAND}`; export r; \
17311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17312 $(HOST_EXPORTS) \
17313 (cd $(HOST_SUBDIR)/intl && \
17314 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 17315
a90ef4bf 17316@endif intl
9b980aa1 17317
e28c595f
JM
17318# Other targets (info, dvi, pdf, etc.)
17319
a90ef4bf
JM
17320.PHONY: maybe-info-intl info-intl
17321maybe-info-intl:
17322@if intl
17323maybe-info-intl: info-intl
e28c595f 17324
a90ef4bf
JM
17325info-intl: \
17326 configure-intl
17327 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17328 r=`${PWD_COMMAND}`; export r; \
17329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17330 $(HOST_EXPORTS) \
17331 for flag in $(EXTRA_HOST_FLAGS) ; do \
17332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17333 done; \
22121df0 17334 echo "Doing info in intl"; \
a90ef4bf 17335 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17338 "RANLIB=$${RANLIB}" \
17339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17340 info) \
17341 || exit 1
17342
a90ef4bf 17343@endif intl
e28c595f 17344
a90ef4bf
JM
17345.PHONY: maybe-dvi-intl dvi-intl
17346maybe-dvi-intl:
17347@if intl
17348maybe-dvi-intl: dvi-intl
e28c595f 17349
a90ef4bf
JM
17350dvi-intl: \
17351 configure-intl
17352 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17353 r=`${PWD_COMMAND}`; export r; \
17354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17355 $(HOST_EXPORTS) \
17356 for flag in $(EXTRA_HOST_FLAGS) ; do \
17357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17358 done; \
22121df0 17359 echo "Doing dvi in intl"; \
a90ef4bf 17360 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17363 "RANLIB=$${RANLIB}" \
17364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17365 dvi) \
17366 || exit 1
17367
a90ef4bf 17368@endif intl
e28c595f 17369
a90ef4bf
JM
17370.PHONY: maybe-pdf-intl pdf-intl
17371maybe-pdf-intl:
17372@if intl
17373maybe-pdf-intl: pdf-intl
e28c595f 17374
a90ef4bf
JM
17375pdf-intl: \
17376 configure-intl
17377 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17378 r=`${PWD_COMMAND}`; export r; \
17379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17380 $(HOST_EXPORTS) \
17381 for flag in $(EXTRA_HOST_FLAGS) ; do \
17382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17383 done; \
22121df0 17384 echo "Doing pdf in intl"; \
a90ef4bf 17385 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17388 "RANLIB=$${RANLIB}" \
17389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17390 pdf) \
17391 || exit 1
17392
a90ef4bf 17393@endif intl
e28c595f 17394
a90ef4bf
JM
17395.PHONY: maybe-html-intl html-intl
17396maybe-html-intl:
17397@if intl
17398maybe-html-intl: html-intl
e28c595f 17399
a90ef4bf
JM
17400html-intl: \
17401 configure-intl
17402 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17403 r=`${PWD_COMMAND}`; export r; \
17404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17405 $(HOST_EXPORTS) \
17406 for flag in $(EXTRA_HOST_FLAGS) ; do \
17407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17408 done; \
22121df0 17409 echo "Doing html in intl"; \
a90ef4bf 17410 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17413 "RANLIB=$${RANLIB}" \
17414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17415 html) \
17416 || exit 1
17417
a90ef4bf 17418@endif intl
e28c595f 17419
a90ef4bf
JM
17420.PHONY: maybe-TAGS-intl TAGS-intl
17421maybe-TAGS-intl:
17422@if intl
17423maybe-TAGS-intl: TAGS-intl
e28c595f 17424
a90ef4bf
JM
17425TAGS-intl: \
17426 configure-intl
17427 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17428 r=`${PWD_COMMAND}`; export r; \
17429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17430 $(HOST_EXPORTS) \
17431 for flag in $(EXTRA_HOST_FLAGS) ; do \
17432 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17433 done; \
22121df0 17434 echo "Doing TAGS in intl"; \
a90ef4bf 17435 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17438 "RANLIB=$${RANLIB}" \
17439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17440 TAGS) \
17441 || exit 1
17442
a90ef4bf 17443@endif intl
e28c595f 17444
a90ef4bf
JM
17445.PHONY: maybe-install-info-intl install-info-intl
17446maybe-install-info-intl:
17447@if intl
17448maybe-install-info-intl: install-info-intl
e28c595f 17449
a90ef4bf
JM
17450install-info-intl: \
17451 configure-intl \
17452 info-intl
17453 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17454 r=`${PWD_COMMAND}`; export r; \
17455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17456 $(HOST_EXPORTS) \
17457 for flag in $(EXTRA_HOST_FLAGS) ; do \
17458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17459 done; \
22121df0 17460 echo "Doing install-info in intl"; \
a90ef4bf 17461 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17464 "RANLIB=$${RANLIB}" \
17465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17466 install-info) \
17467 || exit 1
17468
a90ef4bf 17469@endif intl
e28c595f 17470
a90ef4bf
JM
17471.PHONY: maybe-install-pdf-intl install-pdf-intl
17472maybe-install-pdf-intl:
17473@if intl
17474maybe-install-pdf-intl: install-pdf-intl
e28c595f 17475
a90ef4bf
JM
17476install-pdf-intl: \
17477 configure-intl \
17478 pdf-intl
17479 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17480 r=`${PWD_COMMAND}`; export r; \
17481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17482 $(HOST_EXPORTS) \
17483 for flag in $(EXTRA_HOST_FLAGS) ; do \
17484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17485 done; \
22121df0 17486 echo "Doing install-pdf in intl"; \
a90ef4bf 17487 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17490 "RANLIB=$${RANLIB}" \
17491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17492 install-pdf) \
17493 || exit 1
17494
a90ef4bf 17495@endif intl
e28c595f 17496
a90ef4bf
JM
17497.PHONY: maybe-install-html-intl install-html-intl
17498maybe-install-html-intl:
17499@if intl
17500maybe-install-html-intl: install-html-intl
e28c595f 17501
a90ef4bf
JM
17502install-html-intl: \
17503 configure-intl \
17504 html-intl
17505 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17506 r=`${PWD_COMMAND}`; export r; \
17507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17508 $(HOST_EXPORTS) \
17509 for flag in $(EXTRA_HOST_FLAGS) ; do \
17510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17511 done; \
22121df0 17512 echo "Doing install-html in intl"; \
a90ef4bf 17513 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17516 "RANLIB=$${RANLIB}" \
17517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17518 install-html) \
17519 || exit 1
17520
a90ef4bf 17521@endif intl
e28c595f 17522
a90ef4bf
JM
17523.PHONY: maybe-installcheck-intl installcheck-intl
17524maybe-installcheck-intl:
17525@if intl
17526maybe-installcheck-intl: installcheck-intl
e28c595f 17527
a90ef4bf
JM
17528installcheck-intl: \
17529 configure-intl
17530 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17531 r=`${PWD_COMMAND}`; export r; \
17532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17533 $(HOST_EXPORTS) \
17534 for flag in $(EXTRA_HOST_FLAGS) ; do \
17535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17536 done; \
22121df0 17537 echo "Doing installcheck in intl"; \
a90ef4bf 17538 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17541 "RANLIB=$${RANLIB}" \
17542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17543 installcheck) \
17544 || exit 1
17545
a90ef4bf 17546@endif intl
e28c595f 17547
a90ef4bf
JM
17548.PHONY: maybe-mostlyclean-intl mostlyclean-intl
17549maybe-mostlyclean-intl:
17550@if intl
17551maybe-mostlyclean-intl: mostlyclean-intl
e28c595f 17552
a90ef4bf
JM
17553mostlyclean-intl:
17554 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17555 r=`${PWD_COMMAND}`; export r; \
17556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17557 $(HOST_EXPORTS) \
17558 for flag in $(EXTRA_HOST_FLAGS) ; do \
17559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17560 done; \
22121df0 17561 echo "Doing mostlyclean in intl"; \
a90ef4bf 17562 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17565 "RANLIB=$${RANLIB}" \
17566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17567 mostlyclean) \
17568 || exit 1
17569
a90ef4bf 17570@endif intl
e28c595f 17571
a90ef4bf
JM
17572.PHONY: maybe-clean-intl clean-intl
17573maybe-clean-intl:
17574@if intl
17575maybe-clean-intl: clean-intl
e28c595f 17576
a90ef4bf
JM
17577clean-intl:
17578 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17579 r=`${PWD_COMMAND}`; export r; \
17580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17581 $(HOST_EXPORTS) \
17582 for flag in $(EXTRA_HOST_FLAGS) ; do \
17583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17584 done; \
22121df0 17585 echo "Doing clean in intl"; \
a90ef4bf 17586 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17589 "RANLIB=$${RANLIB}" \
17590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17591 clean) \
17592 || exit 1
17593
a90ef4bf 17594@endif intl
e28c595f 17595
a90ef4bf
JM
17596.PHONY: maybe-distclean-intl distclean-intl
17597maybe-distclean-intl:
17598@if intl
17599maybe-distclean-intl: distclean-intl
e28c595f 17600
a90ef4bf
JM
17601distclean-intl:
17602 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17603 r=`${PWD_COMMAND}`; export r; \
17604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17605 $(HOST_EXPORTS) \
17606 for flag in $(EXTRA_HOST_FLAGS) ; do \
17607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17608 done; \
22121df0 17609 echo "Doing distclean in intl"; \
a90ef4bf 17610 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17613 "RANLIB=$${RANLIB}" \
17614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17615 distclean) \
17616 || exit 1
17617
a90ef4bf 17618@endif intl
e28c595f 17619
a90ef4bf
JM
17620.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
17621maybe-maintainer-clean-intl:
17622@if intl
17623maybe-maintainer-clean-intl: maintainer-clean-intl
e28c595f 17624
a90ef4bf
JM
17625maintainer-clean-intl:
17626 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17627 r=`${PWD_COMMAND}`; export r; \
17628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17629 $(HOST_EXPORTS) \
17630 for flag in $(EXTRA_HOST_FLAGS) ; do \
17631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17632 done; \
22121df0 17633 echo "Doing maintainer-clean in intl"; \
a90ef4bf 17634 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17637 "RANLIB=$${RANLIB}" \
17638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17639 maintainer-clean) \
17640 || exit 1
17641
a90ef4bf 17642@endif intl
e28c595f
JM
17643
17644
17645
a90ef4bf
JM
17646.PHONY: configure-tcl maybe-configure-tcl
17647maybe-configure-tcl:
e8a5fa9c 17648@if gcc-bootstrap
a90ef4bf 17649configure-tcl: stage_current
e8a5fa9c 17650@endif gcc-bootstrap
a90ef4bf
JM
17651@if tcl
17652maybe-configure-tcl: configure-tcl
17653configure-tcl:
17654 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17655 @r=`${PWD_COMMAND}`; export r; \
17656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 17657 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
22121df0 17658 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl; \
1f53ca9a 17659 $(HOST_EXPORTS) \
a90ef4bf
JM
17660 echo Configuring in $(HOST_SUBDIR)/tcl; \
17661 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
e8a5fa9c
RW
17662 case $(srcdir) in \
17663 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17664 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
e8a5fa9c
RW
17665 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17666 esac; \
1b6c0831
L
17667 module_srcdir=tcl; \
17668 $(SHELL) \
17669 $$s/$$module_srcdir/configure \
17670 --srcdir=$${topdir}/$$module_srcdir \
e8a5fa9c 17671 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17672 --target=${target_alias} \
e8a5fa9c 17673 || exit 1
a90ef4bf 17674@endif tcl
e8a5fa9c
RW
17675
17676
17677
e8a5fa9c 17678
e8a5fa9c 17679
a90ef4bf
JM
17680.PHONY: all-tcl maybe-all-tcl
17681maybe-all-tcl:
17682@if gcc-bootstrap
17683all-tcl: stage_current
17684@endif gcc-bootstrap
17685@if tcl
17686TARGET-tcl=all
17687maybe-all-tcl: all-tcl
17688all-tcl: configure-tcl
17689 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17690 @r=`${PWD_COMMAND}`; export r; \
17691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17692 $(HOST_EXPORTS) \
17693 (cd $(HOST_SUBDIR)/tcl && \
b3676d82 17694 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17695 $(TARGET-tcl))
17696@endif tcl
e8a5fa9c 17697
a90ef4bf
JM
17698
17699
17700
17701.PHONY: check-tcl maybe-check-tcl
17702maybe-check-tcl:
17703@if tcl
17704maybe-check-tcl: check-tcl
17705
17706check-tcl:
17707 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17708 @r=`${PWD_COMMAND}`; export r; \
17709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17710 $(HOST_EXPORTS) \
a90ef4bf
JM
17711 (cd $(HOST_SUBDIR)/tcl && \
17712 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 17713
a90ef4bf
JM
17714@endif tcl
17715
17716.PHONY: install-tcl maybe-install-tcl
17717maybe-install-tcl:
17718@if tcl
17719maybe-install-tcl: install-tcl
17720
17721install-tcl: installdirs
17722 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17723 @r=`${PWD_COMMAND}`; export r; \
17724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17725 $(HOST_EXPORTS) \
a90ef4bf
JM
17726 (cd $(HOST_SUBDIR)/tcl && \
17727 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 17728
a90ef4bf
JM
17729@endif tcl
17730
17731.PHONY: install-strip-tcl maybe-install-strip-tcl
17732maybe-install-strip-tcl:
17733@if tcl
17734maybe-install-strip-tcl: install-strip-tcl
17735
17736install-strip-tcl: installdirs
17737 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17738 @r=`${PWD_COMMAND}`; export r; \
17739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17740 $(HOST_EXPORTS) \
a90ef4bf
JM
17741 (cd $(HOST_SUBDIR)/tcl && \
17742 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 17743
a90ef4bf 17744@endif tcl
e8a5fa9c 17745
a90ef4bf 17746# Other targets (info, dvi, pdf, etc.)
e8a5fa9c 17747
a90ef4bf
JM
17748.PHONY: maybe-info-tcl info-tcl
17749maybe-info-tcl:
17750@if tcl
17751maybe-info-tcl: info-tcl
e8a5fa9c 17752
a90ef4bf
JM
17753info-tcl: \
17754 configure-tcl
17755 @: $(MAKE); $(unstage)
17756 @[ -f ./tcl/Makefile ] || exit 0; \
17757 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17759 $(HOST_EXPORTS) \
17760 for flag in $(EXTRA_HOST_FLAGS) ; do \
17761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17762 done; \
22121df0 17763 echo "Doing info in tcl"; \
a90ef4bf
JM
17764 (cd $(HOST_SUBDIR)/tcl && \
17765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17767 "RANLIB=$${RANLIB}" \
17768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17769 info) \
17770 || exit 1
e8a5fa9c 17771
a90ef4bf 17772@endif tcl
e8a5fa9c 17773
a90ef4bf
JM
17774.PHONY: maybe-dvi-tcl dvi-tcl
17775maybe-dvi-tcl:
17776@if tcl
17777maybe-dvi-tcl: dvi-tcl
e8a5fa9c 17778
a90ef4bf
JM
17779dvi-tcl: \
17780 configure-tcl
17781 @: $(MAKE); $(unstage)
17782 @[ -f ./tcl/Makefile ] || exit 0; \
17783 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17785 $(HOST_EXPORTS) \
17786 for flag in $(EXTRA_HOST_FLAGS) ; do \
17787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17788 done; \
22121df0 17789 echo "Doing dvi in tcl"; \
a90ef4bf
JM
17790 (cd $(HOST_SUBDIR)/tcl && \
17791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17793 "RANLIB=$${RANLIB}" \
17794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17795 dvi) \
17796 || exit 1
e8a5fa9c 17797
a90ef4bf 17798@endif tcl
e8a5fa9c 17799
a90ef4bf
JM
17800.PHONY: maybe-pdf-tcl pdf-tcl
17801maybe-pdf-tcl:
17802@if tcl
17803maybe-pdf-tcl: pdf-tcl
e8a5fa9c 17804
a90ef4bf
JM
17805pdf-tcl: \
17806 configure-tcl
17807 @: $(MAKE); $(unstage)
17808 @[ -f ./tcl/Makefile ] || exit 0; \
17809 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17811 $(HOST_EXPORTS) \
a90ef4bf
JM
17812 for flag in $(EXTRA_HOST_FLAGS) ; do \
17813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17814 done; \
22121df0 17815 echo "Doing pdf in tcl"; \
a90ef4bf
JM
17816 (cd $(HOST_SUBDIR)/tcl && \
17817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17819 "RANLIB=$${RANLIB}" \
17820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17821 pdf) \
17822 || exit 1
e8a5fa9c 17823
a90ef4bf 17824@endif tcl
e8a5fa9c 17825
a90ef4bf
JM
17826.PHONY: maybe-html-tcl html-tcl
17827maybe-html-tcl:
17828@if tcl
17829maybe-html-tcl: html-tcl
e8a5fa9c 17830
a90ef4bf
JM
17831html-tcl: \
17832 configure-tcl
17833 @: $(MAKE); $(unstage)
17834 @[ -f ./tcl/Makefile ] || exit 0; \
17835 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17837 $(HOST_EXPORTS) \
a90ef4bf
JM
17838 for flag in $(EXTRA_HOST_FLAGS) ; do \
17839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17840 done; \
22121df0 17841 echo "Doing html in tcl"; \
a90ef4bf
JM
17842 (cd $(HOST_SUBDIR)/tcl && \
17843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17845 "RANLIB=$${RANLIB}" \
17846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17847 html) \
17848 || exit 1
e8a5fa9c 17849
a90ef4bf 17850@endif tcl
e8a5fa9c 17851
a90ef4bf
JM
17852.PHONY: maybe-TAGS-tcl TAGS-tcl
17853maybe-TAGS-tcl:
17854@if tcl
17855maybe-TAGS-tcl: TAGS-tcl
e8a5fa9c 17856
a90ef4bf
JM
17857TAGS-tcl: \
17858 configure-tcl
17859 @: $(MAKE); $(unstage)
17860 @[ -f ./tcl/Makefile ] || exit 0; \
17861 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17863 $(HOST_EXPORTS) \
a90ef4bf
JM
17864 for flag in $(EXTRA_HOST_FLAGS) ; do \
17865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17866 done; \
22121df0 17867 echo "Doing TAGS in tcl"; \
a90ef4bf
JM
17868 (cd $(HOST_SUBDIR)/tcl && \
17869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17871 "RANLIB=$${RANLIB}" \
17872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17873 TAGS) \
17874 || exit 1
e8a5fa9c 17875
a90ef4bf 17876@endif tcl
e8a5fa9c 17877
a90ef4bf
JM
17878.PHONY: maybe-install-info-tcl install-info-tcl
17879maybe-install-info-tcl:
17880@if tcl
17881maybe-install-info-tcl: install-info-tcl
e8a5fa9c 17882
a90ef4bf
JM
17883install-info-tcl: \
17884 configure-tcl \
17885 info-tcl
e8a5fa9c 17886 @: $(MAKE); $(unstage)
a90ef4bf 17887 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17888 r=`${PWD_COMMAND}`; export r; \
17889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17890 $(HOST_EXPORTS) \
17891 for flag in $(EXTRA_HOST_FLAGS) ; do \
17892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17893 done; \
22121df0 17894 echo "Doing install-info in tcl"; \
a90ef4bf 17895 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17898 "RANLIB=$${RANLIB}" \
17899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17900 install-info) \
e8a5fa9c
RW
17901 || exit 1
17902
a90ef4bf 17903@endif tcl
e8a5fa9c 17904
a90ef4bf
JM
17905.PHONY: maybe-install-pdf-tcl install-pdf-tcl
17906maybe-install-pdf-tcl:
17907@if tcl
17908maybe-install-pdf-tcl: install-pdf-tcl
e8a5fa9c 17909
a90ef4bf
JM
17910install-pdf-tcl: \
17911 configure-tcl \
17912 pdf-tcl
17913 @: $(MAKE); $(unstage)
17914 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17915 r=`${PWD_COMMAND}`; export r; \
17916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17917 $(HOST_EXPORTS) \
17918 for flag in $(EXTRA_HOST_FLAGS) ; do \
17919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17920 done; \
22121df0 17921 echo "Doing install-pdf in tcl"; \
a90ef4bf 17922 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17925 "RANLIB=$${RANLIB}" \
17926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17927 install-pdf) \
e8a5fa9c
RW
17928 || exit 1
17929
a90ef4bf 17930@endif tcl
e8a5fa9c 17931
a90ef4bf
JM
17932.PHONY: maybe-install-html-tcl install-html-tcl
17933maybe-install-html-tcl:
17934@if tcl
17935maybe-install-html-tcl: install-html-tcl
e8a5fa9c 17936
a90ef4bf
JM
17937install-html-tcl: \
17938 configure-tcl \
17939 html-tcl
17940 @: $(MAKE); $(unstage)
17941 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17942 r=`${PWD_COMMAND}`; export r; \
17943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17944 $(HOST_EXPORTS) \
17945 for flag in $(EXTRA_HOST_FLAGS) ; do \
17946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17947 done; \
22121df0 17948 echo "Doing install-html in tcl"; \
a90ef4bf 17949 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17952 "RANLIB=$${RANLIB}" \
17953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17954 install-html) \
e8a5fa9c
RW
17955 || exit 1
17956
a90ef4bf 17957@endif tcl
e8a5fa9c 17958
a90ef4bf
JM
17959.PHONY: maybe-installcheck-tcl installcheck-tcl
17960maybe-installcheck-tcl:
17961@if tcl
17962maybe-installcheck-tcl: installcheck-tcl
e8a5fa9c 17963
a90ef4bf
JM
17964installcheck-tcl: \
17965 configure-tcl
17966 @: $(MAKE); $(unstage)
17967 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17968 r=`${PWD_COMMAND}`; export r; \
17969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17970 $(HOST_EXPORTS) \
17971 for flag in $(EXTRA_HOST_FLAGS) ; do \
17972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17973 done; \
22121df0 17974 echo "Doing installcheck in tcl"; \
a90ef4bf 17975 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17978 "RANLIB=$${RANLIB}" \
17979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17980 installcheck) \
e8a5fa9c
RW
17981 || exit 1
17982
a90ef4bf 17983@endif tcl
e8a5fa9c 17984
a90ef4bf
JM
17985.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
17986maybe-mostlyclean-tcl:
17987@if tcl
17988maybe-mostlyclean-tcl: mostlyclean-tcl
e8a5fa9c 17989
a90ef4bf
JM
17990# tcl doesn't support mostlyclean.
17991mostlyclean-tcl:
17992
17993@endif tcl
17994
17995.PHONY: maybe-clean-tcl clean-tcl
17996maybe-clean-tcl:
17997@if tcl
17998maybe-clean-tcl: clean-tcl
17999
18000clean-tcl:
18001 @: $(MAKE); $(unstage)
18002 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18003 r=`${PWD_COMMAND}`; export r; \
18004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18005 $(HOST_EXPORTS) \
18006 for flag in $(EXTRA_HOST_FLAGS) ; do \
18007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18008 done; \
22121df0 18009 echo "Doing clean in tcl"; \
a90ef4bf 18010 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18013 "RANLIB=$${RANLIB}" \
18014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18015 clean) \
e8a5fa9c
RW
18016 || exit 1
18017
a90ef4bf 18018@endif tcl
e8a5fa9c 18019
a90ef4bf
JM
18020.PHONY: maybe-distclean-tcl distclean-tcl
18021maybe-distclean-tcl:
18022@if tcl
18023maybe-distclean-tcl: distclean-tcl
e8a5fa9c 18024
a90ef4bf
JM
18025distclean-tcl:
18026 @: $(MAKE); $(unstage)
18027 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18028 r=`${PWD_COMMAND}`; export r; \
18029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18030 $(HOST_EXPORTS) \
18031 for flag in $(EXTRA_HOST_FLAGS) ; do \
18032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18033 done; \
22121df0 18034 echo "Doing distclean in tcl"; \
a90ef4bf 18035 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18038 "RANLIB=$${RANLIB}" \
18039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18040 distclean) \
e8a5fa9c
RW
18041 || exit 1
18042
a90ef4bf 18043@endif tcl
e8a5fa9c 18044
a90ef4bf
JM
18045.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
18046maybe-maintainer-clean-tcl:
18047@if tcl
18048maybe-maintainer-clean-tcl: maintainer-clean-tcl
e8a5fa9c 18049
a90ef4bf
JM
18050maintainer-clean-tcl:
18051 @: $(MAKE); $(unstage)
18052 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18053 r=`${PWD_COMMAND}`; export r; \
18054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18055 $(HOST_EXPORTS) \
18056 for flag in $(EXTRA_HOST_FLAGS) ; do \
18057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18058 done; \
22121df0 18059 echo "Doing maintainer-clean in tcl"; \
a90ef4bf 18060 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18063 "RANLIB=$${RANLIB}" \
18064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18065 maintainer-clean) \
e8a5fa9c
RW
18066 || exit 1
18067
a90ef4bf 18068@endif tcl
e8a5fa9c 18069
e8a5fa9c 18070
a90ef4bf
JM
18071
18072.PHONY: configure-itcl maybe-configure-itcl
18073maybe-configure-itcl:
18074@if gcc-bootstrap
18075configure-itcl: stage_current
18076@endif gcc-bootstrap
18077@if itcl
18078maybe-configure-itcl: configure-itcl
18079configure-itcl:
18080 @: $(MAKE); $(unstage)
18081 @r=`${PWD_COMMAND}`; export r; \
18082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18083 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
22121df0 18084 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl; \
a90ef4bf
JM
18085 $(HOST_EXPORTS) \
18086 echo Configuring in $(HOST_SUBDIR)/itcl; \
18087 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
18088 case $(srcdir) in \
18089 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18090 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
18091 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18092 esac; \
1b6c0831
L
18093 module_srcdir=itcl; \
18094 $(SHELL) \
18095 $$s/$$module_srcdir/configure \
18096 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18097 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18098 --target=${target_alias} \
a90ef4bf
JM
18099 || exit 1
18100@endif itcl
18101
18102
18103
18104
18105
18106.PHONY: all-itcl maybe-all-itcl
18107maybe-all-itcl:
18108@if gcc-bootstrap
18109all-itcl: stage_current
18110@endif gcc-bootstrap
18111@if itcl
18112TARGET-itcl=all
18113maybe-all-itcl: all-itcl
18114all-itcl: configure-itcl
18115 @: $(MAKE); $(unstage)
18116 @r=`${PWD_COMMAND}`; export r; \
18117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18118 $(HOST_EXPORTS) \
18119 (cd $(HOST_SUBDIR)/itcl && \
b3676d82 18120 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18121 $(TARGET-itcl))
18122@endif itcl
18123
18124
18125
18126
18127.PHONY: check-itcl maybe-check-itcl
18128maybe-check-itcl:
18129@if itcl
18130maybe-check-itcl: check-itcl
18131
18132check-itcl:
18133 @: $(MAKE); $(unstage)
18134 @r=`${PWD_COMMAND}`; export r; \
18135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18136 $(HOST_EXPORTS) \
a90ef4bf
JM
18137 (cd $(HOST_SUBDIR)/itcl && \
18138 $(MAKE) $(FLAGS_TO_PASS) check)
18139
18140@endif itcl
18141
18142.PHONY: install-itcl maybe-install-itcl
18143maybe-install-itcl:
18144@if itcl
18145maybe-install-itcl: install-itcl
18146
18147install-itcl: installdirs
18148 @: $(MAKE); $(unstage)
18149 @r=`${PWD_COMMAND}`; export r; \
18150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18151 $(HOST_EXPORTS) \
18152 (cd $(HOST_SUBDIR)/itcl && \
18153 $(MAKE) $(FLAGS_TO_PASS) install)
18154
18155@endif itcl
18156
18157.PHONY: install-strip-itcl maybe-install-strip-itcl
18158maybe-install-strip-itcl:
18159@if itcl
18160maybe-install-strip-itcl: install-strip-itcl
18161
18162install-strip-itcl: installdirs
18163 @: $(MAKE); $(unstage)
18164 @r=`${PWD_COMMAND}`; export r; \
18165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18166 $(HOST_EXPORTS) \
18167 (cd $(HOST_SUBDIR)/itcl && \
18168 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18169
18170@endif itcl
18171
18172# Other targets (info, dvi, pdf, etc.)
18173
18174.PHONY: maybe-info-itcl info-itcl
18175maybe-info-itcl:
18176@if itcl
18177maybe-info-itcl: info-itcl
18178
18179info-itcl: \
18180 configure-itcl
18181 @: $(MAKE); $(unstage)
18182 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18183 r=`${PWD_COMMAND}`; export r; \
18184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18185 $(HOST_EXPORTS) \
18186 for flag in $(EXTRA_HOST_FLAGS) ; do \
18187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18188 done; \
22121df0 18189 echo "Doing info in itcl"; \
a90ef4bf 18190 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18193 "RANLIB=$${RANLIB}" \
18194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18195 info) \
e8a5fa9c
RW
18196 || exit 1
18197
a90ef4bf 18198@endif itcl
e8a5fa9c 18199
a90ef4bf
JM
18200.PHONY: maybe-dvi-itcl dvi-itcl
18201maybe-dvi-itcl:
18202@if itcl
18203maybe-dvi-itcl: dvi-itcl
e8a5fa9c 18204
a90ef4bf
JM
18205dvi-itcl: \
18206 configure-itcl
18207 @: $(MAKE); $(unstage)
18208 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18209 r=`${PWD_COMMAND}`; export r; \
18210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18211 $(HOST_EXPORTS) \
18212 for flag in $(EXTRA_HOST_FLAGS) ; do \
18213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18214 done; \
22121df0 18215 echo "Doing dvi in itcl"; \
a90ef4bf 18216 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18219 "RANLIB=$${RANLIB}" \
18220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18221 dvi) \
e8a5fa9c
RW
18222 || exit 1
18223
a90ef4bf 18224@endif itcl
e8a5fa9c 18225
a90ef4bf
JM
18226.PHONY: maybe-pdf-itcl pdf-itcl
18227maybe-pdf-itcl:
18228@if itcl
18229maybe-pdf-itcl: pdf-itcl
e8a5fa9c 18230
a90ef4bf
JM
18231pdf-itcl: \
18232 configure-itcl
18233 @: $(MAKE); $(unstage)
18234 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18235 r=`${PWD_COMMAND}`; export r; \
18236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18237 $(HOST_EXPORTS) \
18238 for flag in $(EXTRA_HOST_FLAGS) ; do \
18239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18240 done; \
22121df0 18241 echo "Doing pdf in itcl"; \
a90ef4bf 18242 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18245 "RANLIB=$${RANLIB}" \
18246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18247 pdf) \
e8a5fa9c
RW
18248 || exit 1
18249
a90ef4bf 18250@endif itcl
e8a5fa9c 18251
a90ef4bf
JM
18252.PHONY: maybe-html-itcl html-itcl
18253maybe-html-itcl:
18254@if itcl
18255maybe-html-itcl: html-itcl
e8a5fa9c 18256
a90ef4bf
JM
18257html-itcl: \
18258 configure-itcl
18259 @: $(MAKE); $(unstage)
18260 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18261 r=`${PWD_COMMAND}`; export r; \
18262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18263 $(HOST_EXPORTS) \
18264 for flag in $(EXTRA_HOST_FLAGS) ; do \
18265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18266 done; \
22121df0 18267 echo "Doing html in itcl"; \
a90ef4bf 18268 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18271 "RANLIB=$${RANLIB}" \
18272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18273 html) \
e8a5fa9c
RW
18274 || exit 1
18275
a90ef4bf 18276@endif itcl
e8a5fa9c 18277
a90ef4bf
JM
18278.PHONY: maybe-TAGS-itcl TAGS-itcl
18279maybe-TAGS-itcl:
18280@if itcl
18281maybe-TAGS-itcl: TAGS-itcl
e8a5fa9c 18282
a90ef4bf
JM
18283TAGS-itcl: \
18284 configure-itcl
18285 @: $(MAKE); $(unstage)
18286 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18287 r=`${PWD_COMMAND}`; export r; \
18288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18289 $(HOST_EXPORTS) \
18290 for flag in $(EXTRA_HOST_FLAGS) ; do \
18291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18292 done; \
22121df0 18293 echo "Doing TAGS in itcl"; \
a90ef4bf
JM
18294 (cd $(HOST_SUBDIR)/itcl && \
18295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18297 "RANLIB=$${RANLIB}" \
18298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18299 TAGS) \
18300 || exit 1
18301
18302@endif itcl
18303
18304.PHONY: maybe-install-info-itcl install-info-itcl
18305maybe-install-info-itcl:
18306@if itcl
18307maybe-install-info-itcl: install-info-itcl
18308
18309install-info-itcl: \
18310 configure-itcl \
18311 info-itcl
18312 @: $(MAKE); $(unstage)
18313 @[ -f ./itcl/Makefile ] || exit 0; \
18314 r=`${PWD_COMMAND}`; export r; \
18315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18316 $(HOST_EXPORTS) \
18317 for flag in $(EXTRA_HOST_FLAGS) ; do \
18318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18319 done; \
22121df0 18320 echo "Doing install-info in itcl"; \
a90ef4bf
JM
18321 (cd $(HOST_SUBDIR)/itcl && \
18322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18324 "RANLIB=$${RANLIB}" \
18325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18326 install-info) \
18327 || exit 1
18328
18329@endif itcl
18330
18331.PHONY: maybe-install-pdf-itcl install-pdf-itcl
18332maybe-install-pdf-itcl:
18333@if itcl
18334maybe-install-pdf-itcl: install-pdf-itcl
18335
18336install-pdf-itcl: \
18337 configure-itcl \
18338 pdf-itcl
18339 @: $(MAKE); $(unstage)
18340 @[ -f ./itcl/Makefile ] || exit 0; \
18341 r=`${PWD_COMMAND}`; export r; \
18342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18343 $(HOST_EXPORTS) \
18344 for flag in $(EXTRA_HOST_FLAGS) ; do \
18345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18346 done; \
22121df0 18347 echo "Doing install-pdf in itcl"; \
a90ef4bf
JM
18348 (cd $(HOST_SUBDIR)/itcl && \
18349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18351 "RANLIB=$${RANLIB}" \
18352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18353 install-pdf) \
18354 || exit 1
18355
18356@endif itcl
18357
18358.PHONY: maybe-install-html-itcl install-html-itcl
18359maybe-install-html-itcl:
18360@if itcl
18361maybe-install-html-itcl: install-html-itcl
18362
18363install-html-itcl: \
18364 configure-itcl \
18365 html-itcl
18366 @: $(MAKE); $(unstage)
18367 @[ -f ./itcl/Makefile ] || exit 0; \
18368 r=`${PWD_COMMAND}`; export r; \
18369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18370 $(HOST_EXPORTS) \
18371 for flag in $(EXTRA_HOST_FLAGS) ; do \
18372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18373 done; \
22121df0 18374 echo "Doing install-html in itcl"; \
a90ef4bf
JM
18375 (cd $(HOST_SUBDIR)/itcl && \
18376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18378 "RANLIB=$${RANLIB}" \
18379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18380 install-html) \
18381 || exit 1
18382
18383@endif itcl
18384
18385.PHONY: maybe-installcheck-itcl installcheck-itcl
18386maybe-installcheck-itcl:
18387@if itcl
18388maybe-installcheck-itcl: installcheck-itcl
18389
18390installcheck-itcl: \
18391 configure-itcl
18392 @: $(MAKE); $(unstage)
18393 @[ -f ./itcl/Makefile ] || exit 0; \
18394 r=`${PWD_COMMAND}`; export r; \
18395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18396 $(HOST_EXPORTS) \
18397 for flag in $(EXTRA_HOST_FLAGS) ; do \
18398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18399 done; \
22121df0 18400 echo "Doing installcheck in itcl"; \
a90ef4bf
JM
18401 (cd $(HOST_SUBDIR)/itcl && \
18402 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18403 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18404 "RANLIB=$${RANLIB}" \
18405 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18406 installcheck) \
18407 || exit 1
18408
18409@endif itcl
18410
18411.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
18412maybe-mostlyclean-itcl:
18413@if itcl
18414maybe-mostlyclean-itcl: mostlyclean-itcl
18415
18416mostlyclean-itcl:
18417 @: $(MAKE); $(unstage)
18418 @[ -f ./itcl/Makefile ] || exit 0; \
18419 r=`${PWD_COMMAND}`; export r; \
18420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18421 $(HOST_EXPORTS) \
18422 for flag in $(EXTRA_HOST_FLAGS) ; do \
18423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18424 done; \
22121df0 18425 echo "Doing mostlyclean in itcl"; \
a90ef4bf
JM
18426 (cd $(HOST_SUBDIR)/itcl && \
18427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18429 "RANLIB=$${RANLIB}" \
18430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18431 mostlyclean) \
18432 || exit 1
18433
18434@endif itcl
18435
18436.PHONY: maybe-clean-itcl clean-itcl
18437maybe-clean-itcl:
18438@if itcl
18439maybe-clean-itcl: clean-itcl
18440
18441clean-itcl:
18442 @: $(MAKE); $(unstage)
18443 @[ -f ./itcl/Makefile ] || exit 0; \
18444 r=`${PWD_COMMAND}`; export r; \
18445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18446 $(HOST_EXPORTS) \
18447 for flag in $(EXTRA_HOST_FLAGS) ; do \
18448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18449 done; \
22121df0 18450 echo "Doing clean in itcl"; \
a90ef4bf
JM
18451 (cd $(HOST_SUBDIR)/itcl && \
18452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18454 "RANLIB=$${RANLIB}" \
18455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18456 clean) \
18457 || exit 1
18458
18459@endif itcl
18460
18461.PHONY: maybe-distclean-itcl distclean-itcl
18462maybe-distclean-itcl:
18463@if itcl
18464maybe-distclean-itcl: distclean-itcl
18465
18466distclean-itcl:
18467 @: $(MAKE); $(unstage)
18468 @[ -f ./itcl/Makefile ] || exit 0; \
18469 r=`${PWD_COMMAND}`; export r; \
18470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18471 $(HOST_EXPORTS) \
18472 for flag in $(EXTRA_HOST_FLAGS) ; do \
18473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18474 done; \
22121df0 18475 echo "Doing distclean in itcl"; \
a90ef4bf 18476 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18479 "RANLIB=$${RANLIB}" \
18480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18481 distclean) \
18482 || exit 1
18483
a90ef4bf 18484@endif itcl
e8a5fa9c 18485
a90ef4bf
JM
18486.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
18487maybe-maintainer-clean-itcl:
18488@if itcl
18489maybe-maintainer-clean-itcl: maintainer-clean-itcl
e8a5fa9c 18490
a90ef4bf
JM
18491maintainer-clean-itcl:
18492 @: $(MAKE); $(unstage)
18493 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18494 r=`${PWD_COMMAND}`; export r; \
18495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18496 $(HOST_EXPORTS) \
18497 for flag in $(EXTRA_HOST_FLAGS) ; do \
18498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18499 done; \
22121df0 18500 echo "Doing maintainer-clean in itcl"; \
a90ef4bf 18501 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18504 "RANLIB=$${RANLIB}" \
18505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18506 maintainer-clean) \
18507 || exit 1
18508
a90ef4bf 18509@endif itcl
e8a5fa9c
RW
18510
18511
18512
a90ef4bf
JM
18513.PHONY: configure-ld maybe-configure-ld
18514maybe-configure-ld:
e28c595f 18515@if gcc-bootstrap
a90ef4bf 18516configure-ld: stage_current
e28c595f 18517@endif gcc-bootstrap
a90ef4bf
JM
18518@if ld
18519maybe-configure-ld: configure-ld
18520configure-ld:
e28c595f
JM
18521 @r=`${PWD_COMMAND}`; export r; \
18522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18523 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
22121df0 18524 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
1f53ca9a 18525 $(HOST_EXPORTS) \
a90ef4bf
JM
18526 echo Configuring in $(HOST_SUBDIR)/ld; \
18527 cd "$(HOST_SUBDIR)/ld" || exit 1; \
e28c595f
JM
18528 case $(srcdir) in \
18529 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18530 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18531 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18532 esac; \
1b6c0831
L
18533 module_srcdir=ld; \
18534 $(SHELL) \
18535 $$s/$$module_srcdir/configure \
18536 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18537 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18538 --target=${target_alias} \
e28c595f 18539 || exit 1
a90ef4bf 18540@endif ld
e28c595f
JM
18541
18542
18543
a90ef4bf
JM
18544.PHONY: configure-stage1-ld maybe-configure-stage1-ld
18545maybe-configure-stage1-ld:
18546@if ld-bootstrap
18547maybe-configure-stage1-ld: configure-stage1-ld
18548configure-stage1-ld:
e28c595f 18549 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 18550 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18551 @r=`${PWD_COMMAND}`; export r; \
18552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18553 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 18554 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
1b05fbbd 18555 $(HOST_EXPORTS) \
e28c595f 18556 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18557 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18558 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
18559 echo Configuring stage 1 in $(HOST_SUBDIR)/ld; \
18560 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18561 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18562 case $(srcdir) in \
18563 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18564 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18565 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18566 esac; \
1b6c0831
L
18567 module_srcdir=ld; \
18568 $(SHELL) $$s/$$module_srcdir/configure \
18569 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18570 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18571 --target=${target_alias} \
18572 \
a90ef4bf
JM
18573 $(STAGE1_CONFIGURE_FLAGS)
18574@endif ld-bootstrap
e28c595f 18575
a90ef4bf
JM
18576.PHONY: configure-stage2-ld maybe-configure-stage2-ld
18577maybe-configure-stage2-ld:
18578@if ld-bootstrap
18579maybe-configure-stage2-ld: configure-stage2-ld
18580configure-stage2-ld:
e28c595f 18581 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 18582 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18583 @r=`${PWD_COMMAND}`; export r; \
18584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18585 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 18586 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18587 $(HOST_EXPORTS) \
1b05fbbd 18588 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18589 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18590 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18591 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18592 echo Configuring stage 2 in $(HOST_SUBDIR)/ld; \
18593 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18594 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18595 case $(srcdir) in \
18596 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18597 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18598 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18599 esac; \
1b6c0831
L
18600 module_srcdir=ld; \
18601 $(SHELL) $$s/$$module_srcdir/configure \
18602 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18603 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18604 --target=${target_alias} \
22121df0 18605 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18606 $(STAGE2_CONFIGURE_FLAGS)
18607@endif ld-bootstrap
e28c595f 18608
a90ef4bf
JM
18609.PHONY: configure-stage3-ld maybe-configure-stage3-ld
18610maybe-configure-stage3-ld:
18611@if ld-bootstrap
18612maybe-configure-stage3-ld: configure-stage3-ld
18613configure-stage3-ld:
e28c595f 18614 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 18615 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18616 @r=`${PWD_COMMAND}`; export r; \
18617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18618 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 18619 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18620 $(HOST_EXPORTS) \
1b05fbbd 18621 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18622 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18623 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18624 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18625 echo Configuring stage 3 in $(HOST_SUBDIR)/ld; \
18626 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18627 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18628 case $(srcdir) in \
18629 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18630 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18631 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18632 esac; \
1b6c0831
L
18633 module_srcdir=ld; \
18634 $(SHELL) $$s/$$module_srcdir/configure \
18635 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18636 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18637 --target=${target_alias} \
22121df0 18638 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18639 $(STAGE3_CONFIGURE_FLAGS)
18640@endif ld-bootstrap
e28c595f 18641
a90ef4bf
JM
18642.PHONY: configure-stage4-ld maybe-configure-stage4-ld
18643maybe-configure-stage4-ld:
18644@if ld-bootstrap
18645maybe-configure-stage4-ld: configure-stage4-ld
18646configure-stage4-ld:
e28c595f 18647 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 18648 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18649 @r=`${PWD_COMMAND}`; export r; \
18650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18651 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 18652 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18653 $(HOST_EXPORTS) \
1b05fbbd 18654 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18655 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18656 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18657 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18658 echo Configuring stage 4 in $(HOST_SUBDIR)/ld; \
18659 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18660 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18661 case $(srcdir) in \
18662 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18663 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18664 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18665 esac; \
1b6c0831
L
18666 module_srcdir=ld; \
18667 $(SHELL) $$s/$$module_srcdir/configure \
18668 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18669 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18670 --target=${target_alias} \
22121df0 18671 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18672 $(STAGE4_CONFIGURE_FLAGS)
18673@endif ld-bootstrap
e28c595f 18674
a90ef4bf
JM
18675.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
18676maybe-configure-stageprofile-ld:
18677@if ld-bootstrap
18678maybe-configure-stageprofile-ld: configure-stageprofile-ld
18679configure-stageprofile-ld:
e28c595f 18680 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 18681 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18682 @r=`${PWD_COMMAND}`; export r; \
18683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18684 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 18685 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18686 $(HOST_EXPORTS) \
1b05fbbd
AO
18687 $(POSTSTAGE1_HOST_EXPORTS) \
18688 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18689 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18690 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18691 echo Configuring stage profile in $(HOST_SUBDIR)/ld; \
18692 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18693 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18694 case $(srcdir) in \
18695 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18696 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18697 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18698 esac; \
1b6c0831
L
18699 module_srcdir=ld; \
18700 $(SHELL) $$s/$$module_srcdir/configure \
18701 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18702 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18703 --target=${target_alias} \
22121df0 18704 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18705 $(STAGEprofile_CONFIGURE_FLAGS)
18706@endif ld-bootstrap
e28c595f 18707
a90ef4bf
JM
18708.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
18709maybe-configure-stagefeedback-ld:
18710@if ld-bootstrap
18711maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
18712configure-stagefeedback-ld:
e28c595f 18713 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 18714 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18715 @r=`${PWD_COMMAND}`; export r; \
18716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18717 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 18718 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18719 $(HOST_EXPORTS) \
1b05fbbd
AO
18720 $(POSTSTAGE1_HOST_EXPORTS) \
18721 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18722 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18723 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18724 echo Configuring stage feedback in $(HOST_SUBDIR)/ld; \
18725 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18726 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18727 case $(srcdir) in \
18728 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18729 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18730 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18731 esac; \
1b6c0831
L
18732 module_srcdir=ld; \
18733 $(SHELL) $$s/$$module_srcdir/configure \
18734 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18735 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18736 --target=${target_alias} \
22121df0 18737 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18738 $(STAGEfeedback_CONFIGURE_FLAGS)
18739@endif ld-bootstrap
e28c595f
JM
18740
18741
18742
18743
18744
a90ef4bf
JM
18745.PHONY: all-ld maybe-all-ld
18746maybe-all-ld:
e28c595f 18747@if gcc-bootstrap
a90ef4bf 18748all-ld: stage_current
e28c595f 18749@endif gcc-bootstrap
a90ef4bf
JM
18750@if ld
18751TARGET-ld=all
18752maybe-all-ld: all-ld
18753all-ld: configure-ld
e28c595f
JM
18754 @r=`${PWD_COMMAND}`; export r; \
18755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 18756 $(HOST_EXPORTS) \
a90ef4bf 18757 (cd $(HOST_SUBDIR)/ld && \
b3676d82 18758 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18759 $(TARGET-ld))
18760@endif ld
e28c595f
JM
18761
18762
18763
a90ef4bf
JM
18764.PHONY: all-stage1-ld maybe-all-stage1-ld
18765.PHONY: clean-stage1-ld maybe-clean-stage1-ld
18766maybe-all-stage1-ld:
18767maybe-clean-stage1-ld:
18768@if ld-bootstrap
18769maybe-all-stage1-ld: all-stage1-ld
18770all-stage1: all-stage1-ld
18771TARGET-stage1-ld = $(TARGET-ld)
18772all-stage1-ld: configure-stage1-ld
e28c595f
JM
18773 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18774 @r=`${PWD_COMMAND}`; export r; \
18775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18776 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 18777 $(HOST_EXPORTS) \
a90ef4bf 18778 cd $(HOST_SUBDIR)/ld && \
05a13254 18779 \
e28c595f 18780 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18781 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 18782 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
18783 LIBCFLAGS="$(LIBCFLAGS)" \
18784 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18785 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18786 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
18787 $(EXTRA_HOST_FLAGS) \
18788 $(STAGE1_FLAGS_TO_PASS) \
05a13254 18789 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 18790 $(TARGET-stage1-ld)
e28c595f 18791
a90ef4bf
JM
18792maybe-clean-stage1-ld: clean-stage1-ld
18793clean-stage1: clean-stage1-ld
18794clean-stage1-ld:
e28c595f 18795 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 18796 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18797 else \
a90ef4bf 18798 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
e28c595f
JM
18799 $(MAKE) stage1-start; \
18800 fi; \
a90ef4bf 18801 cd $(HOST_SUBDIR)/ld && \
e28c595f 18802 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 18803 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18804@endif ld-bootstrap
e28c595f
JM
18805
18806
a90ef4bf
JM
18807.PHONY: all-stage2-ld maybe-all-stage2-ld
18808.PHONY: clean-stage2-ld maybe-clean-stage2-ld
18809maybe-all-stage2-ld:
18810maybe-clean-stage2-ld:
18811@if ld-bootstrap
18812maybe-all-stage2-ld: all-stage2-ld
18813all-stage2: all-stage2-ld
18814TARGET-stage2-ld = $(TARGET-ld)
18815all-stage2-ld: configure-stage2-ld
e28c595f
JM
18816 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18817 @r=`${PWD_COMMAND}`; export r; \
18818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18819 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 18820 $(HOST_EXPORTS) \
1f53ca9a 18821 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18822 cd $(HOST_SUBDIR)/ld && \
05a13254 18823 \
e28c595f 18824 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18825 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 18826 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
18827 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18828 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18829 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18830 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18831 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18832 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 18833 $(TARGET-stage2-ld)
e28c595f 18834
a90ef4bf
JM
18835maybe-clean-stage2-ld: clean-stage2-ld
18836clean-stage2: clean-stage2-ld
18837clean-stage2-ld:
e28c595f 18838 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 18839 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18840 else \
a90ef4bf 18841 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
e28c595f
JM
18842 $(MAKE) stage2-start; \
18843 fi; \
a90ef4bf 18844 cd $(HOST_SUBDIR)/ld && \
b3676d82 18845 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18846@endif ld-bootstrap
e28c595f
JM
18847
18848
a90ef4bf
JM
18849.PHONY: all-stage3-ld maybe-all-stage3-ld
18850.PHONY: clean-stage3-ld maybe-clean-stage3-ld
18851maybe-all-stage3-ld:
18852maybe-clean-stage3-ld:
18853@if ld-bootstrap
18854maybe-all-stage3-ld: all-stage3-ld
18855all-stage3: all-stage3-ld
18856TARGET-stage3-ld = $(TARGET-ld)
18857all-stage3-ld: configure-stage3-ld
e28c595f
JM
18858 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18859 @r=`${PWD_COMMAND}`; export r; \
18860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18861 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 18862 $(HOST_EXPORTS) \
1f53ca9a 18863 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18864 cd $(HOST_SUBDIR)/ld && \
05a13254 18865 \
e28c595f 18866 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18867 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 18868 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
18869 LIBCFLAGS="$(STAGE3_CFLAGS)" \
18870 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18871 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18872 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18873 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18874 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 18875 $(TARGET-stage3-ld)
e28c595f 18876
a90ef4bf
JM
18877maybe-clean-stage3-ld: clean-stage3-ld
18878clean-stage3: clean-stage3-ld
18879clean-stage3-ld:
e28c595f 18880 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 18881 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18882 else \
a90ef4bf 18883 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
e28c595f
JM
18884 $(MAKE) stage3-start; \
18885 fi; \
a90ef4bf 18886 cd $(HOST_SUBDIR)/ld && \
b3676d82 18887 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18888@endif ld-bootstrap
e28c595f
JM
18889
18890
a90ef4bf
JM
18891.PHONY: all-stage4-ld maybe-all-stage4-ld
18892.PHONY: clean-stage4-ld maybe-clean-stage4-ld
18893maybe-all-stage4-ld:
18894maybe-clean-stage4-ld:
18895@if ld-bootstrap
18896maybe-all-stage4-ld: all-stage4-ld
18897all-stage4: all-stage4-ld
18898TARGET-stage4-ld = $(TARGET-ld)
18899all-stage4-ld: configure-stage4-ld
e28c595f
JM
18900 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18901 @r=`${PWD_COMMAND}`; export r; \
18902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18903 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 18904 $(HOST_EXPORTS) \
1f53ca9a 18905 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18906 cd $(HOST_SUBDIR)/ld && \
05a13254 18907 \
e28c595f 18908 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18909 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 18910 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 18911 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
18912 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18913 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18914 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18915 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18916 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 18917 $(TARGET-stage4-ld)
e28c595f 18918
a90ef4bf
JM
18919maybe-clean-stage4-ld: clean-stage4-ld
18920clean-stage4: clean-stage4-ld
18921clean-stage4-ld:
e28c595f 18922 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 18923 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18924 else \
a90ef4bf 18925 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
e28c595f
JM
18926 $(MAKE) stage4-start; \
18927 fi; \
a90ef4bf 18928 cd $(HOST_SUBDIR)/ld && \
b3676d82 18929 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18930@endif ld-bootstrap
e28c595f
JM
18931
18932
a90ef4bf
JM
18933.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
18934.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
18935maybe-all-stageprofile-ld:
18936maybe-clean-stageprofile-ld:
18937@if ld-bootstrap
18938maybe-all-stageprofile-ld: all-stageprofile-ld
18939all-stageprofile: all-stageprofile-ld
18940TARGET-stageprofile-ld = $(TARGET-ld)
18941all-stageprofile-ld: configure-stageprofile-ld
e28c595f
JM
18942 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18943 @r=`${PWD_COMMAND}`; export r; \
18944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18945 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 18946 $(HOST_EXPORTS) \
1f53ca9a 18947 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18948 cd $(HOST_SUBDIR)/ld && \
05a13254 18949 \
e28c595f 18950 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18951 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 18952 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
18953 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
18954 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18955 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18956 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18957 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18958 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 18959 $(TARGET-stageprofile-ld)
e28c595f 18960
a90ef4bf
JM
18961maybe-clean-stageprofile-ld: clean-stageprofile-ld
18962clean-stageprofile: clean-stageprofile-ld
18963clean-stageprofile-ld:
e28c595f 18964 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 18965 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18966 else \
a90ef4bf 18967 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
e28c595f
JM
18968 $(MAKE) stageprofile-start; \
18969 fi; \
a90ef4bf 18970 cd $(HOST_SUBDIR)/ld && \
b3676d82 18971 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18972@endif ld-bootstrap
e28c595f
JM
18973
18974
a90ef4bf
JM
18975.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
18976.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
18977maybe-all-stagefeedback-ld:
18978maybe-clean-stagefeedback-ld:
18979@if ld-bootstrap
18980maybe-all-stagefeedback-ld: all-stagefeedback-ld
18981all-stagefeedback: all-stagefeedback-ld
18982TARGET-stagefeedback-ld = $(TARGET-ld)
18983all-stagefeedback-ld: configure-stagefeedback-ld
e28c595f
JM
18984 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
18985 @r=`${PWD_COMMAND}`; export r; \
18986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18987 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 18988 $(HOST_EXPORTS) \
1f53ca9a 18989 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18990 cd $(HOST_SUBDIR)/ld && \
05a13254 18991 \
e28c595f 18992 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18993 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 18994 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
18995 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
18996 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18997 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18998 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18999 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19000 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 19001 $(TARGET-stagefeedback-ld)
e28c595f 19002
a90ef4bf
JM
19003maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
19004clean-stagefeedback: clean-stagefeedback-ld
19005clean-stagefeedback-ld:
e28c595f 19006 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 19007 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 19008 else \
a90ef4bf 19009 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
e28c595f
JM
19010 $(MAKE) stagefeedback-start; \
19011 fi; \
a90ef4bf 19012 cd $(HOST_SUBDIR)/ld && \
b3676d82 19013 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19014@endif ld-bootstrap
e28c595f
JM
19015
19016
19017
19018
19019
a90ef4bf
JM
19020.PHONY: check-ld maybe-check-ld
19021maybe-check-ld:
19022@if ld
19023maybe-check-ld: check-ld
e28c595f 19024
a90ef4bf 19025check-ld:
e28c595f
JM
19026 @: $(MAKE); $(unstage)
19027 @r=`${PWD_COMMAND}`; export r; \
19028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19029 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 19030 (cd $(HOST_SUBDIR)/ld && \
f91ca6bc 19031 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 19032
a90ef4bf 19033@endif ld
e28c595f 19034
a90ef4bf
JM
19035.PHONY: install-ld maybe-install-ld
19036maybe-install-ld:
19037@if ld
19038maybe-install-ld: install-ld
e28c595f 19039
a90ef4bf
JM
19040install-ld: installdirs
19041 @: $(MAKE); $(unstage)
19042 @r=`${PWD_COMMAND}`; export r; \
19043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19044 $(HOST_EXPORTS) \
19045 (cd $(HOST_SUBDIR)/ld && \
19046 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 19047
a90ef4bf 19048@endif ld
e28c595f 19049
a90ef4bf
JM
19050.PHONY: install-strip-ld maybe-install-strip-ld
19051maybe-install-strip-ld:
19052@if ld
19053maybe-install-strip-ld: install-strip-ld
9b980aa1 19054
a90ef4bf
JM
19055install-strip-ld: installdirs
19056 @: $(MAKE); $(unstage)
19057 @r=`${PWD_COMMAND}`; export r; \
19058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19059 $(HOST_EXPORTS) \
19060 (cd $(HOST_SUBDIR)/ld && \
19061 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 19062
a90ef4bf 19063@endif ld
9b980aa1 19064
e28c595f
JM
19065# Other targets (info, dvi, pdf, etc.)
19066
a90ef4bf
JM
19067.PHONY: maybe-info-ld info-ld
19068maybe-info-ld:
19069@if ld
19070maybe-info-ld: info-ld
e28c595f 19071
a90ef4bf
JM
19072info-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 info 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 info) \
19088 || exit 1
19089
a90ef4bf 19090@endif ld
e28c595f 19091
a90ef4bf
JM
19092.PHONY: maybe-dvi-ld dvi-ld
19093maybe-dvi-ld:
19094@if ld
19095maybe-dvi-ld: dvi-ld
e28c595f 19096
a90ef4bf
JM
19097dvi-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 dvi 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 dvi) \
19113 || exit 1
19114
a90ef4bf 19115@endif ld
e28c595f 19116
a90ef4bf
JM
19117.PHONY: maybe-pdf-ld pdf-ld
19118maybe-pdf-ld:
19119@if ld
19120maybe-pdf-ld: pdf-ld
e28c595f 19121
a90ef4bf
JM
19122pdf-ld: \
19123 configure-ld
19124 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19125 r=`${PWD_COMMAND}`; export r; \
19126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19127 $(HOST_EXPORTS) \
19128 for flag in $(EXTRA_HOST_FLAGS) ; do \
19129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19130 done; \
22121df0 19131 echo "Doing pdf in ld"; \
a90ef4bf 19132 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19135 "RANLIB=$${RANLIB}" \
19136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19137 pdf) \
19138 || exit 1
19139
a90ef4bf 19140@endif ld
e28c595f 19141
a90ef4bf
JM
19142.PHONY: maybe-html-ld html-ld
19143maybe-html-ld:
19144@if ld
19145maybe-html-ld: html-ld
e28c595f 19146
a90ef4bf
JM
19147html-ld: \
19148 configure-ld
19149 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19150 r=`${PWD_COMMAND}`; export r; \
19151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19152 $(HOST_EXPORTS) \
19153 for flag in $(EXTRA_HOST_FLAGS) ; do \
19154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19155 done; \
22121df0 19156 echo "Doing html in ld"; \
a90ef4bf 19157 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19160 "RANLIB=$${RANLIB}" \
19161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19162 html) \
19163 || exit 1
19164
a90ef4bf 19165@endif ld
e28c595f 19166
a90ef4bf
JM
19167.PHONY: maybe-TAGS-ld TAGS-ld
19168maybe-TAGS-ld:
19169@if ld
19170maybe-TAGS-ld: TAGS-ld
e28c595f 19171
a90ef4bf
JM
19172TAGS-ld: \
19173 configure-ld
19174 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19175 r=`${PWD_COMMAND}`; export r; \
19176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19177 $(HOST_EXPORTS) \
19178 for flag in $(EXTRA_HOST_FLAGS) ; do \
19179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19180 done; \
22121df0 19181 echo "Doing TAGS in ld"; \
a90ef4bf 19182 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19185 "RANLIB=$${RANLIB}" \
19186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19187 TAGS) \
19188 || exit 1
19189
a90ef4bf 19190@endif ld
e28c595f 19191
a90ef4bf
JM
19192.PHONY: maybe-install-info-ld install-info-ld
19193maybe-install-info-ld:
19194@if ld
19195maybe-install-info-ld: install-info-ld
e28c595f 19196
a90ef4bf
JM
19197install-info-ld: \
19198 configure-ld \
19199 info-ld
19200 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19201 r=`${PWD_COMMAND}`; export r; \
19202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19203 $(HOST_EXPORTS) \
19204 for flag in $(EXTRA_HOST_FLAGS) ; do \
19205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19206 done; \
22121df0 19207 echo "Doing install-info in ld"; \
a90ef4bf 19208 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19211 "RANLIB=$${RANLIB}" \
19212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19213 install-info) \
19214 || exit 1
19215
a90ef4bf 19216@endif ld
e28c595f 19217
a90ef4bf
JM
19218.PHONY: maybe-install-pdf-ld install-pdf-ld
19219maybe-install-pdf-ld:
19220@if ld
19221maybe-install-pdf-ld: install-pdf-ld
e28c595f 19222
a90ef4bf
JM
19223install-pdf-ld: \
19224 configure-ld \
19225 pdf-ld
19226 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
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 install-pdf in ld"; \
a90ef4bf 19234 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19237 "RANLIB=$${RANLIB}" \
19238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19239 install-pdf) \
19240 || exit 1
19241
a90ef4bf 19242@endif ld
e28c595f 19243
a90ef4bf
JM
19244.PHONY: maybe-install-html-ld install-html-ld
19245maybe-install-html-ld:
19246@if ld
19247maybe-install-html-ld: install-html-ld
e28c595f 19248
a90ef4bf
JM
19249install-html-ld: \
19250 configure-ld \
19251 html-ld
19252 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19253 r=`${PWD_COMMAND}`; export r; \
19254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19255 $(HOST_EXPORTS) \
19256 for flag in $(EXTRA_HOST_FLAGS) ; do \
19257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19258 done; \
22121df0 19259 echo "Doing install-html in ld"; \
a90ef4bf 19260 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19263 "RANLIB=$${RANLIB}" \
19264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19265 install-html) \
19266 || exit 1
19267
a90ef4bf 19268@endif ld
e28c595f 19269
a90ef4bf
JM
19270.PHONY: maybe-installcheck-ld installcheck-ld
19271maybe-installcheck-ld:
19272@if ld
19273maybe-installcheck-ld: installcheck-ld
e28c595f 19274
a90ef4bf
JM
19275installcheck-ld: \
19276 configure-ld
19277 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19278 r=`${PWD_COMMAND}`; export r; \
19279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19280 $(HOST_EXPORTS) \
19281 for flag in $(EXTRA_HOST_FLAGS) ; do \
19282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19283 done; \
22121df0 19284 echo "Doing installcheck in ld"; \
a90ef4bf 19285 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19288 "RANLIB=$${RANLIB}" \
0c24b341 19289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19290 installcheck) \
19291 || exit 1
19292
a90ef4bf 19293@endif ld
4b900473 19294
a90ef4bf
JM
19295.PHONY: maybe-mostlyclean-ld mostlyclean-ld
19296maybe-mostlyclean-ld:
19297@if ld
19298maybe-mostlyclean-ld: mostlyclean-ld
4b900473 19299
a90ef4bf
JM
19300mostlyclean-ld:
19301 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19302 r=`${PWD_COMMAND}`; export r; \
19303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19304 $(HOST_EXPORTS) \
19305 for flag in $(EXTRA_HOST_FLAGS) ; do \
19306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19307 done; \
22121df0 19308 echo "Doing mostlyclean in ld"; \
a90ef4bf 19309 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19312 "RANLIB=$${RANLIB}" \
0c24b341 19313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19314 mostlyclean) \
19315 || exit 1
19316
a90ef4bf 19317@endif ld
4b900473 19318
a90ef4bf
JM
19319.PHONY: maybe-clean-ld clean-ld
19320maybe-clean-ld:
19321@if ld
19322maybe-clean-ld: clean-ld
4b900473 19323
a90ef4bf
JM
19324clean-ld:
19325 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19326 r=`${PWD_COMMAND}`; export r; \
19327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19328 $(HOST_EXPORTS) \
19329 for flag in $(EXTRA_HOST_FLAGS) ; do \
19330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19331 done; \
22121df0 19332 echo "Doing clean in ld"; \
a90ef4bf 19333 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19336 "RANLIB=$${RANLIB}" \
0c24b341 19337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19338 clean) \
19339 || exit 1
19340
a90ef4bf 19341@endif ld
4b900473 19342
a90ef4bf
JM
19343.PHONY: maybe-distclean-ld distclean-ld
19344maybe-distclean-ld:
19345@if ld
19346maybe-distclean-ld: distclean-ld
4b900473 19347
a90ef4bf
JM
19348distclean-ld:
19349 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19350 r=`${PWD_COMMAND}`; export r; \
19351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19352 $(HOST_EXPORTS) \
19353 for flag in $(EXTRA_HOST_FLAGS) ; do \
19354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19355 done; \
22121df0 19356 echo "Doing distclean in ld"; \
a90ef4bf 19357 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19360 "RANLIB=$${RANLIB}" \
0c24b341 19361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19362 distclean) \
19363 || exit 1
19364
a90ef4bf 19365@endif ld
4b900473 19366
a90ef4bf
JM
19367.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
19368maybe-maintainer-clean-ld:
19369@if ld
19370maybe-maintainer-clean-ld: maintainer-clean-ld
4b900473 19371
a90ef4bf
JM
19372maintainer-clean-ld:
19373 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19374 r=`${PWD_COMMAND}`; export r; \
19375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19376 $(HOST_EXPORTS) \
19377 for flag in $(EXTRA_HOST_FLAGS) ; do \
19378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19379 done; \
22121df0 19380 echo "Doing maintainer-clean in ld"; \
a90ef4bf 19381 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19384 "RANLIB=$${RANLIB}" \
0c24b341 19385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19386 maintainer-clean) \
19387 || exit 1
19388
a90ef4bf 19389@endif ld
4b900473
PB
19390
19391
19392
2bf680c4
ILT
19393.PHONY: configure-libbacktrace maybe-configure-libbacktrace
19394maybe-configure-libbacktrace:
19395@if gcc-bootstrap
19396configure-libbacktrace: stage_current
19397@endif gcc-bootstrap
19398@if libbacktrace
19399maybe-configure-libbacktrace: configure-libbacktrace
19400configure-libbacktrace:
19401 @r=`${PWD_COMMAND}`; export r; \
19402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19403 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 19404 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19405 $(HOST_EXPORTS) \
19406 echo Configuring in $(HOST_SUBDIR)/libbacktrace; \
19407 cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \
19408 case $(srcdir) in \
19409 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19410 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19411 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19412 esac; \
1b6c0831
L
19413 module_srcdir=libbacktrace; \
19414 $(SHELL) \
19415 $$s/$$module_srcdir/configure \
19416 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19417 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19418 --target=${target_alias} \
2bf680c4
ILT
19419 || exit 1
19420@endif libbacktrace
19421
19422
19423
19424.PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace
19425maybe-configure-stage1-libbacktrace:
19426@if libbacktrace-bootstrap
19427maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace
19428configure-stage1-libbacktrace:
19429 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19430 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19431 @r=`${PWD_COMMAND}`; export r; \
19432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19433 TFLAGS="$(STAGE1_TFLAGS)"; \
19434 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19435 $(HOST_EXPORTS) \
19436 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
19437 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19438 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
19439 echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace; \
19440 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19441 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19442 case $(srcdir) in \
19443 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19444 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19445 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19446 esac; \
1b6c0831
L
19447 module_srcdir=libbacktrace; \
19448 $(SHELL) $$s/$$module_srcdir/configure \
19449 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19450 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19451 --target=${target_alias} \
19452 \
2bf680c4
ILT
19453 $(STAGE1_CONFIGURE_FLAGS)
19454@endif libbacktrace-bootstrap
19455
19456.PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace
19457maybe-configure-stage2-libbacktrace:
19458@if libbacktrace-bootstrap
19459maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace
19460configure-stage2-libbacktrace:
19461 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19462 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19463 @r=`${PWD_COMMAND}`; export r; \
19464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19465 TFLAGS="$(STAGE2_TFLAGS)"; \
19466 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19467 $(HOST_EXPORTS) \
19468 $(POSTSTAGE1_HOST_EXPORTS) \
19469 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
19470 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19471 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19472 echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace; \
19473 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19474 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19475 case $(srcdir) in \
19476 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19477 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19478 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19479 esac; \
1b6c0831
L
19480 module_srcdir=libbacktrace; \
19481 $(SHELL) $$s/$$module_srcdir/configure \
19482 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19483 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19484 --target=${target_alias} \
22121df0 19485 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19486 $(STAGE2_CONFIGURE_FLAGS)
19487@endif libbacktrace-bootstrap
19488
19489.PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace
19490maybe-configure-stage3-libbacktrace:
19491@if libbacktrace-bootstrap
19492maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace
19493configure-stage3-libbacktrace:
19494 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19495 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19496 @r=`${PWD_COMMAND}`; export r; \
19497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19498 TFLAGS="$(STAGE3_TFLAGS)"; \
19499 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19500 $(HOST_EXPORTS) \
19501 $(POSTSTAGE1_HOST_EXPORTS) \
19502 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
19503 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19504 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19505 echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace; \
19506 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19507 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19508 case $(srcdir) in \
19509 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19510 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19511 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19512 esac; \
1b6c0831
L
19513 module_srcdir=libbacktrace; \
19514 $(SHELL) $$s/$$module_srcdir/configure \
19515 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19516 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19517 --target=${target_alias} \
22121df0 19518 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19519 $(STAGE3_CONFIGURE_FLAGS)
19520@endif libbacktrace-bootstrap
19521
19522.PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace
19523maybe-configure-stage4-libbacktrace:
19524@if libbacktrace-bootstrap
19525maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace
19526configure-stage4-libbacktrace:
19527 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19528 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19529 @r=`${PWD_COMMAND}`; export r; \
19530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19531 TFLAGS="$(STAGE4_TFLAGS)"; \
19532 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19533 $(HOST_EXPORTS) \
19534 $(POSTSTAGE1_HOST_EXPORTS) \
19535 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
19536 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19537 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19538 echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace; \
19539 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19540 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19541 case $(srcdir) in \
19542 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19543 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19544 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19545 esac; \
1b6c0831
L
19546 module_srcdir=libbacktrace; \
19547 $(SHELL) $$s/$$module_srcdir/configure \
19548 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19549 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19550 --target=${target_alias} \
22121df0 19551 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19552 $(STAGE4_CONFIGURE_FLAGS)
19553@endif libbacktrace-bootstrap
19554
19555.PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace
19556maybe-configure-stageprofile-libbacktrace:
19557@if libbacktrace-bootstrap
19558maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19559configure-stageprofile-libbacktrace:
19560 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19561 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19562 @r=`${PWD_COMMAND}`; export r; \
19563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19564 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19565 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19566 $(HOST_EXPORTS) \
19567 $(POSTSTAGE1_HOST_EXPORTS) \
19568 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
19569 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19570 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19571 echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace; \
19572 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19573 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19574 case $(srcdir) in \
19575 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19576 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19577 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19578 esac; \
1b6c0831
L
19579 module_srcdir=libbacktrace; \
19580 $(SHELL) $$s/$$module_srcdir/configure \
19581 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19582 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19583 --target=${target_alias} \
22121df0 19584 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19585 $(STAGEprofile_CONFIGURE_FLAGS)
19586@endif libbacktrace-bootstrap
19587
19588.PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace
19589maybe-configure-stagefeedback-libbacktrace:
19590@if libbacktrace-bootstrap
19591maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19592configure-stagefeedback-libbacktrace:
19593 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19594 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19595 @r=`${PWD_COMMAND}`; export r; \
19596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19597 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19598 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19599 $(HOST_EXPORTS) \
19600 $(POSTSTAGE1_HOST_EXPORTS) \
19601 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
19602 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19603 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19604 echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace; \
19605 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19606 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19607 case $(srcdir) in \
19608 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19609 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19610 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19611 esac; \
1b6c0831
L
19612 module_srcdir=libbacktrace; \
19613 $(SHELL) $$s/$$module_srcdir/configure \
19614 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19615 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19616 --target=${target_alias} \
22121df0 19617 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19618 $(STAGEfeedback_CONFIGURE_FLAGS)
19619@endif libbacktrace-bootstrap
19620
19621
19622
19623
19624
19625.PHONY: all-libbacktrace maybe-all-libbacktrace
19626maybe-all-libbacktrace:
19627@if gcc-bootstrap
19628all-libbacktrace: stage_current
19629@endif gcc-bootstrap
19630@if libbacktrace
19631TARGET-libbacktrace=all
19632maybe-all-libbacktrace: all-libbacktrace
19633all-libbacktrace: configure-libbacktrace
19634 @r=`${PWD_COMMAND}`; export r; \
19635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19636 $(HOST_EXPORTS) \
19637 (cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19638 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19639 $(TARGET-libbacktrace))
19640@endif libbacktrace
19641
19642
19643
19644.PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace
19645.PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace
19646maybe-all-stage1-libbacktrace:
19647maybe-clean-stage1-libbacktrace:
19648@if libbacktrace-bootstrap
19649maybe-all-stage1-libbacktrace: all-stage1-libbacktrace
19650all-stage1: all-stage1-libbacktrace
19651TARGET-stage1-libbacktrace = $(TARGET-libbacktrace)
19652all-stage1-libbacktrace: configure-stage1-libbacktrace
19653 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19654 @r=`${PWD_COMMAND}`; export r; \
19655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19656 TFLAGS="$(STAGE1_TFLAGS)"; \
19657 $(HOST_EXPORTS) \
19658 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19659 \
2bf680c4
ILT
19660 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19661 CFLAGS="$(STAGE1_CFLAGS)" \
19662 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
19663 LIBCFLAGS="$(LIBCFLAGS)" \
19664 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19665 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19666 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
19667 $(EXTRA_HOST_FLAGS) \
19668 $(STAGE1_FLAGS_TO_PASS) \
05a13254 19669 TFLAGS="$(STAGE1_TFLAGS)" \
2bf680c4
ILT
19670 $(TARGET-stage1-libbacktrace)
19671
19672maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace
19673clean-stage1: clean-stage1-libbacktrace
19674clean-stage1-libbacktrace:
19675 @if [ $(current_stage) = stage1 ]; then \
19676 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19677 else \
19678 [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \
19679 $(MAKE) stage1-start; \
19680 fi; \
19681 cd $(HOST_SUBDIR)/libbacktrace && \
19682 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 19683 $(STAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19684@endif libbacktrace-bootstrap
19685
19686
19687.PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace
19688.PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace
19689maybe-all-stage2-libbacktrace:
19690maybe-clean-stage2-libbacktrace:
19691@if libbacktrace-bootstrap
19692maybe-all-stage2-libbacktrace: all-stage2-libbacktrace
19693all-stage2: all-stage2-libbacktrace
19694TARGET-stage2-libbacktrace = $(TARGET-libbacktrace)
19695all-stage2-libbacktrace: configure-stage2-libbacktrace
19696 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19697 @r=`${PWD_COMMAND}`; export r; \
19698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19699 TFLAGS="$(STAGE2_TFLAGS)"; \
19700 $(HOST_EXPORTS) \
19701 $(POSTSTAGE1_HOST_EXPORTS) \
19702 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19703 \
2bf680c4
ILT
19704 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19705 CFLAGS="$(STAGE2_CFLAGS)" \
19706 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
19707 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19708 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19709 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19710 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19711 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19712 TFLAGS="$(STAGE2_TFLAGS)" \
2bf680c4
ILT
19713 $(TARGET-stage2-libbacktrace)
19714
19715maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace
19716clean-stage2: clean-stage2-libbacktrace
19717clean-stage2-libbacktrace:
19718 @if [ $(current_stage) = stage2 ]; then \
19719 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19720 else \
19721 [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \
19722 $(MAKE) stage2-start; \
19723 fi; \
19724 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19725 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19726@endif libbacktrace-bootstrap
19727
19728
19729.PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace
19730.PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace
19731maybe-all-stage3-libbacktrace:
19732maybe-clean-stage3-libbacktrace:
19733@if libbacktrace-bootstrap
19734maybe-all-stage3-libbacktrace: all-stage3-libbacktrace
19735all-stage3: all-stage3-libbacktrace
19736TARGET-stage3-libbacktrace = $(TARGET-libbacktrace)
19737all-stage3-libbacktrace: configure-stage3-libbacktrace
19738 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19739 @r=`${PWD_COMMAND}`; export r; \
19740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19741 TFLAGS="$(STAGE3_TFLAGS)"; \
19742 $(HOST_EXPORTS) \
19743 $(POSTSTAGE1_HOST_EXPORTS) \
19744 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19745 \
2bf680c4
ILT
19746 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19747 CFLAGS="$(STAGE3_CFLAGS)" \
19748 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
19749 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19750 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19751 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19752 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19753 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19754 TFLAGS="$(STAGE3_TFLAGS)" \
2bf680c4
ILT
19755 $(TARGET-stage3-libbacktrace)
19756
19757maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace
19758clean-stage3: clean-stage3-libbacktrace
19759clean-stage3-libbacktrace:
19760 @if [ $(current_stage) = stage3 ]; then \
19761 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19762 else \
19763 [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \
19764 $(MAKE) stage3-start; \
19765 fi; \
19766 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19767 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19768@endif libbacktrace-bootstrap
19769
19770
19771.PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace
19772.PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace
19773maybe-all-stage4-libbacktrace:
19774maybe-clean-stage4-libbacktrace:
19775@if libbacktrace-bootstrap
19776maybe-all-stage4-libbacktrace: all-stage4-libbacktrace
19777all-stage4: all-stage4-libbacktrace
19778TARGET-stage4-libbacktrace = $(TARGET-libbacktrace)
19779all-stage4-libbacktrace: configure-stage4-libbacktrace
19780 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19781 @r=`${PWD_COMMAND}`; export r; \
19782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19783 TFLAGS="$(STAGE4_TFLAGS)"; \
19784 $(HOST_EXPORTS) \
19785 $(POSTSTAGE1_HOST_EXPORTS) \
19786 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19787 \
2bf680c4
ILT
19788 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19789 CFLAGS="$(STAGE4_CFLAGS)" \
19790 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
19791 LIBCFLAGS="$(STAGE4_CFLAGS)" \
19792 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19793 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19794 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19795 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19796 TFLAGS="$(STAGE4_TFLAGS)" \
2bf680c4
ILT
19797 $(TARGET-stage4-libbacktrace)
19798
19799maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace
19800clean-stage4: clean-stage4-libbacktrace
19801clean-stage4-libbacktrace:
19802 @if [ $(current_stage) = stage4 ]; then \
19803 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19804 else \
19805 [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \
19806 $(MAKE) stage4-start; \
19807 fi; \
19808 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19809 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19810@endif libbacktrace-bootstrap
19811
19812
19813.PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace
19814.PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace
19815maybe-all-stageprofile-libbacktrace:
19816maybe-clean-stageprofile-libbacktrace:
19817@if libbacktrace-bootstrap
19818maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace
19819all-stageprofile: all-stageprofile-libbacktrace
19820TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace)
19821all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19822 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19823 @r=`${PWD_COMMAND}`; export r; \
19824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19825 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19826 $(HOST_EXPORTS) \
19827 $(POSTSTAGE1_HOST_EXPORTS) \
19828 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19829 \
2bf680c4
ILT
19830 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19831 CFLAGS="$(STAGEprofile_CFLAGS)" \
19832 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
19833 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19834 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19835 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19836 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19837 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19838 TFLAGS="$(STAGEprofile_TFLAGS)" \
2bf680c4
ILT
19839 $(TARGET-stageprofile-libbacktrace)
19840
19841maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace
19842clean-stageprofile: clean-stageprofile-libbacktrace
19843clean-stageprofile-libbacktrace:
19844 @if [ $(current_stage) = stageprofile ]; then \
19845 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19846 else \
19847 [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \
19848 $(MAKE) stageprofile-start; \
19849 fi; \
19850 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19851 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19852@endif libbacktrace-bootstrap
19853
19854
19855.PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace
19856.PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace
19857maybe-all-stagefeedback-libbacktrace:
19858maybe-clean-stagefeedback-libbacktrace:
19859@if libbacktrace-bootstrap
19860maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace
19861all-stagefeedback: all-stagefeedback-libbacktrace
19862TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace)
19863all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19864 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19865 @r=`${PWD_COMMAND}`; export r; \
19866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19867 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19868 $(HOST_EXPORTS) \
19869 $(POSTSTAGE1_HOST_EXPORTS) \
19870 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19871 \
2bf680c4
ILT
19872 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19873 CFLAGS="$(STAGEfeedback_CFLAGS)" \
19874 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
19875 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19876 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19877 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19878 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19879 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19880 TFLAGS="$(STAGEfeedback_TFLAGS)" \
2bf680c4
ILT
19881 $(TARGET-stagefeedback-libbacktrace)
19882
19883maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace
19884clean-stagefeedback: clean-stagefeedback-libbacktrace
19885clean-stagefeedback-libbacktrace:
19886 @if [ $(current_stage) = stagefeedback ]; then \
19887 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19888 else \
19889 [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \
19890 $(MAKE) stagefeedback-start; \
19891 fi; \
19892 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19893 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19894@endif libbacktrace-bootstrap
19895
19896
19897
19898
19899
19900.PHONY: check-libbacktrace maybe-check-libbacktrace
19901maybe-check-libbacktrace:
19902@if libbacktrace
19903maybe-check-libbacktrace: check-libbacktrace
19904
19905check-libbacktrace:
19906 @: $(MAKE); $(unstage)
19907 @r=`${PWD_COMMAND}`; export r; \
19908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19909 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
2bf680c4 19910 (cd $(HOST_SUBDIR)/libbacktrace && \
f91ca6bc 19911 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2bf680c4
ILT
19912
19913@endif libbacktrace
19914
19915.PHONY: install-libbacktrace maybe-install-libbacktrace
19916maybe-install-libbacktrace:
19917@if libbacktrace
19918maybe-install-libbacktrace: install-libbacktrace
19919
19920install-libbacktrace: installdirs
19921 @: $(MAKE); $(unstage)
19922 @r=`${PWD_COMMAND}`; export r; \
19923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19924 $(HOST_EXPORTS) \
19925 (cd $(HOST_SUBDIR)/libbacktrace && \
19926 $(MAKE) $(FLAGS_TO_PASS) install)
19927
19928@endif libbacktrace
19929
19930.PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace
19931maybe-install-strip-libbacktrace:
19932@if libbacktrace
19933maybe-install-strip-libbacktrace: install-strip-libbacktrace
19934
19935install-strip-libbacktrace: installdirs
19936 @: $(MAKE); $(unstage)
19937 @r=`${PWD_COMMAND}`; export r; \
19938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19939 $(HOST_EXPORTS) \
19940 (cd $(HOST_SUBDIR)/libbacktrace && \
19941 $(MAKE) $(FLAGS_TO_PASS) install-strip)
19942
19943@endif libbacktrace
19944
19945# Other targets (info, dvi, pdf, etc.)
19946
19947.PHONY: maybe-info-libbacktrace info-libbacktrace
19948maybe-info-libbacktrace:
19949@if libbacktrace
19950maybe-info-libbacktrace: info-libbacktrace
19951
19952info-libbacktrace: \
19953 configure-libbacktrace
19954 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19955 r=`${PWD_COMMAND}`; export r; \
19956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19957 $(HOST_EXPORTS) \
19958 for flag in $(EXTRA_HOST_FLAGS) ; do \
19959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19960 done; \
22121df0 19961 echo "Doing info in libbacktrace"; \
2bf680c4
ILT
19962 (cd $(HOST_SUBDIR)/libbacktrace && \
19963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19965 "RANLIB=$${RANLIB}" \
19966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19967 info) \
19968 || exit 1
19969
19970@endif libbacktrace
19971
19972.PHONY: maybe-dvi-libbacktrace dvi-libbacktrace
19973maybe-dvi-libbacktrace:
19974@if libbacktrace
19975maybe-dvi-libbacktrace: dvi-libbacktrace
19976
19977dvi-libbacktrace: \
19978 configure-libbacktrace
19979 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19980 r=`${PWD_COMMAND}`; export r; \
19981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19982 $(HOST_EXPORTS) \
19983 for flag in $(EXTRA_HOST_FLAGS) ; do \
19984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19985 done; \
22121df0 19986 echo "Doing dvi in libbacktrace"; \
2bf680c4
ILT
19987 (cd $(HOST_SUBDIR)/libbacktrace && \
19988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19990 "RANLIB=$${RANLIB}" \
19991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19992 dvi) \
19993 || exit 1
19994
19995@endif libbacktrace
19996
19997.PHONY: maybe-pdf-libbacktrace pdf-libbacktrace
19998maybe-pdf-libbacktrace:
19999@if libbacktrace
20000maybe-pdf-libbacktrace: pdf-libbacktrace
20001
20002pdf-libbacktrace: \
20003 configure-libbacktrace
20004 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20005 r=`${PWD_COMMAND}`; export r; \
20006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20007 $(HOST_EXPORTS) \
20008 for flag in $(EXTRA_HOST_FLAGS) ; do \
20009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20010 done; \
22121df0 20011 echo "Doing pdf in libbacktrace"; \
2bf680c4
ILT
20012 (cd $(HOST_SUBDIR)/libbacktrace && \
20013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20015 "RANLIB=$${RANLIB}" \
20016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20017 pdf) \
20018 || exit 1
20019
20020@endif libbacktrace
20021
20022.PHONY: maybe-html-libbacktrace html-libbacktrace
20023maybe-html-libbacktrace:
20024@if libbacktrace
20025maybe-html-libbacktrace: html-libbacktrace
20026
20027html-libbacktrace: \
20028 configure-libbacktrace
20029 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20030 r=`${PWD_COMMAND}`; export r; \
20031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20032 $(HOST_EXPORTS) \
20033 for flag in $(EXTRA_HOST_FLAGS) ; do \
20034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20035 done; \
22121df0 20036 echo "Doing html in libbacktrace"; \
2bf680c4
ILT
20037 (cd $(HOST_SUBDIR)/libbacktrace && \
20038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20040 "RANLIB=$${RANLIB}" \
20041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20042 html) \
20043 || exit 1
20044
20045@endif libbacktrace
20046
20047.PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace
20048maybe-TAGS-libbacktrace:
20049@if libbacktrace
20050maybe-TAGS-libbacktrace: TAGS-libbacktrace
20051
20052TAGS-libbacktrace: \
20053 configure-libbacktrace
20054 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20055 r=`${PWD_COMMAND}`; export r; \
20056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20057 $(HOST_EXPORTS) \
20058 for flag in $(EXTRA_HOST_FLAGS) ; do \
20059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20060 done; \
22121df0 20061 echo "Doing TAGS in libbacktrace"; \
2bf680c4
ILT
20062 (cd $(HOST_SUBDIR)/libbacktrace && \
20063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20065 "RANLIB=$${RANLIB}" \
20066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20067 TAGS) \
20068 || exit 1
20069
20070@endif libbacktrace
20071
20072.PHONY: maybe-install-info-libbacktrace install-info-libbacktrace
20073maybe-install-info-libbacktrace:
20074@if libbacktrace
20075maybe-install-info-libbacktrace: install-info-libbacktrace
20076
20077install-info-libbacktrace: \
20078 configure-libbacktrace \
20079 info-libbacktrace
20080 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20081 r=`${PWD_COMMAND}`; export r; \
20082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20083 $(HOST_EXPORTS) \
20084 for flag in $(EXTRA_HOST_FLAGS) ; do \
20085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20086 done; \
22121df0 20087 echo "Doing install-info in libbacktrace"; \
2bf680c4
ILT
20088 (cd $(HOST_SUBDIR)/libbacktrace && \
20089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20091 "RANLIB=$${RANLIB}" \
20092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20093 install-info) \
20094 || exit 1
20095
20096@endif libbacktrace
20097
20098.PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace
20099maybe-install-pdf-libbacktrace:
20100@if libbacktrace
20101maybe-install-pdf-libbacktrace: install-pdf-libbacktrace
20102
20103install-pdf-libbacktrace: \
20104 configure-libbacktrace \
20105 pdf-libbacktrace
20106 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20107 r=`${PWD_COMMAND}`; export r; \
20108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20109 $(HOST_EXPORTS) \
20110 for flag in $(EXTRA_HOST_FLAGS) ; do \
20111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20112 done; \
22121df0 20113 echo "Doing install-pdf in libbacktrace"; \
2bf680c4
ILT
20114 (cd $(HOST_SUBDIR)/libbacktrace && \
20115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20117 "RANLIB=$${RANLIB}" \
20118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20119 install-pdf) \
20120 || exit 1
20121
20122@endif libbacktrace
20123
20124.PHONY: maybe-install-html-libbacktrace install-html-libbacktrace
20125maybe-install-html-libbacktrace:
20126@if libbacktrace
20127maybe-install-html-libbacktrace: install-html-libbacktrace
20128
20129install-html-libbacktrace: \
20130 configure-libbacktrace \
20131 html-libbacktrace
20132 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20133 r=`${PWD_COMMAND}`; export r; \
20134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20135 $(HOST_EXPORTS) \
20136 for flag in $(EXTRA_HOST_FLAGS) ; do \
20137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20138 done; \
22121df0 20139 echo "Doing install-html in libbacktrace"; \
2bf680c4
ILT
20140 (cd $(HOST_SUBDIR)/libbacktrace && \
20141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20143 "RANLIB=$${RANLIB}" \
20144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20145 install-html) \
20146 || exit 1
20147
20148@endif libbacktrace
20149
20150.PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace
20151maybe-installcheck-libbacktrace:
20152@if libbacktrace
20153maybe-installcheck-libbacktrace: installcheck-libbacktrace
20154
20155installcheck-libbacktrace: \
20156 configure-libbacktrace
20157 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20158 r=`${PWD_COMMAND}`; export r; \
20159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20160 $(HOST_EXPORTS) \
20161 for flag in $(EXTRA_HOST_FLAGS) ; do \
20162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20163 done; \
22121df0 20164 echo "Doing installcheck in libbacktrace"; \
2bf680c4
ILT
20165 (cd $(HOST_SUBDIR)/libbacktrace && \
20166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20168 "RANLIB=$${RANLIB}" \
20169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20170 installcheck) \
20171 || exit 1
20172
20173@endif libbacktrace
20174
20175.PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace
20176maybe-mostlyclean-libbacktrace:
20177@if libbacktrace
20178maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace
20179
20180mostlyclean-libbacktrace:
20181 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20182 r=`${PWD_COMMAND}`; export r; \
20183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20184 $(HOST_EXPORTS) \
20185 for flag in $(EXTRA_HOST_FLAGS) ; do \
20186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20187 done; \
22121df0 20188 echo "Doing mostlyclean in libbacktrace"; \
2bf680c4
ILT
20189 (cd $(HOST_SUBDIR)/libbacktrace && \
20190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20192 "RANLIB=$${RANLIB}" \
20193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20194 mostlyclean) \
20195 || exit 1
20196
20197@endif libbacktrace
20198
20199.PHONY: maybe-clean-libbacktrace clean-libbacktrace
20200maybe-clean-libbacktrace:
20201@if libbacktrace
20202maybe-clean-libbacktrace: clean-libbacktrace
20203
20204clean-libbacktrace:
20205 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20206 r=`${PWD_COMMAND}`; export r; \
20207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20208 $(HOST_EXPORTS) \
20209 for flag in $(EXTRA_HOST_FLAGS) ; do \
20210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20211 done; \
22121df0 20212 echo "Doing clean in libbacktrace"; \
2bf680c4
ILT
20213 (cd $(HOST_SUBDIR)/libbacktrace && \
20214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20216 "RANLIB=$${RANLIB}" \
20217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20218 clean) \
20219 || exit 1
20220
20221@endif libbacktrace
20222
20223.PHONY: maybe-distclean-libbacktrace distclean-libbacktrace
20224maybe-distclean-libbacktrace:
20225@if libbacktrace
20226maybe-distclean-libbacktrace: distclean-libbacktrace
20227
20228distclean-libbacktrace:
20229 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20230 r=`${PWD_COMMAND}`; export r; \
20231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20232 $(HOST_EXPORTS) \
20233 for flag in $(EXTRA_HOST_FLAGS) ; do \
20234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20235 done; \
22121df0 20236 echo "Doing distclean in libbacktrace"; \
2bf680c4
ILT
20237 (cd $(HOST_SUBDIR)/libbacktrace && \
20238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20240 "RANLIB=$${RANLIB}" \
20241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20242 distclean) \
20243 || exit 1
20244
20245@endif libbacktrace
20246
20247.PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace
20248maybe-maintainer-clean-libbacktrace:
20249@if libbacktrace
20250maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace
20251
20252maintainer-clean-libbacktrace:
20253 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20254 r=`${PWD_COMMAND}`; export r; \
20255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20256 $(HOST_EXPORTS) \
20257 for flag in $(EXTRA_HOST_FLAGS) ; do \
20258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20259 done; \
22121df0 20260 echo "Doing maintainer-clean in libbacktrace"; \
2bf680c4
ILT
20261 (cd $(HOST_SUBDIR)/libbacktrace && \
20262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20264 "RANLIB=$${RANLIB}" \
20265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20266 maintainer-clean) \
20267 || exit 1
20268
20269@endif libbacktrace
20270
20271
20272
a90ef4bf
JM
20273.PHONY: configure-libcpp maybe-configure-libcpp
20274maybe-configure-libcpp:
4b900473 20275@if gcc-bootstrap
a90ef4bf 20276configure-libcpp: stage_current
4b900473 20277@endif gcc-bootstrap
a90ef4bf
JM
20278@if libcpp
20279maybe-configure-libcpp: configure-libcpp
20280configure-libcpp:
4b900473
PB
20281 @r=`${PWD_COMMAND}`; export r; \
20282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 20283 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 20284 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf
JM
20285 $(HOST_EXPORTS) \
20286 echo Configuring in $(HOST_SUBDIR)/libcpp; \
20287 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
4b900473
PB
20288 case $(srcdir) in \
20289 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20290 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20291 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20292 esac; \
1b6c0831
L
20293 module_srcdir=libcpp; \
20294 $(SHELL) \
20295 $$s/$$module_srcdir/configure \
20296 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20297 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20298 --target=${target_alias} \
4b900473 20299 || exit 1
a90ef4bf 20300@endif libcpp
4b900473
PB
20301
20302
20303
a90ef4bf
JM
20304.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
20305maybe-configure-stage1-libcpp:
20306@if libcpp-bootstrap
20307maybe-configure-stage1-libcpp: configure-stage1-libcpp
20308configure-stage1-libcpp:
4b900473 20309 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 20310 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20311 @r=`${PWD_COMMAND}`; export r; \
20312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20313 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 20314 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
1b05fbbd 20315 $(HOST_EXPORTS) \
8ee82aff 20316 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 20317 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20318 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
20319 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp; \
20320 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20321 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20322 case $(srcdir) in \
20323 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20324 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20325 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20326 esac; \
1b6c0831
L
20327 module_srcdir=libcpp; \
20328 $(SHELL) $$s/$$module_srcdir/configure \
20329 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20330 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20331 --target=${target_alias} \
20332 \
a90ef4bf
JM
20333 $(STAGE1_CONFIGURE_FLAGS)
20334@endif libcpp-bootstrap
e28c595f 20335
a90ef4bf
JM
20336.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
20337maybe-configure-stage2-libcpp:
20338@if libcpp-bootstrap
20339maybe-configure-stage2-libcpp: configure-stage2-libcpp
20340configure-stage2-libcpp:
4b900473 20341 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 20342 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20343 @r=`${PWD_COMMAND}`; export r; \
20344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20345 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 20346 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20347 $(HOST_EXPORTS) \
1b05fbbd 20348 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20349 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 20350 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20351 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20352 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp; \
20353 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20354 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20355 case $(srcdir) in \
20356 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20357 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20358 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20359 esac; \
1b6c0831
L
20360 module_srcdir=libcpp; \
20361 $(SHELL) $$s/$$module_srcdir/configure \
20362 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20363 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20364 --target=${target_alias} \
22121df0 20365 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20366 $(STAGE2_CONFIGURE_FLAGS)
20367@endif libcpp-bootstrap
e28c595f 20368
a90ef4bf
JM
20369.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
20370maybe-configure-stage3-libcpp:
20371@if libcpp-bootstrap
20372maybe-configure-stage3-libcpp: configure-stage3-libcpp
20373configure-stage3-libcpp:
4b900473 20374 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 20375 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20376 @r=`${PWD_COMMAND}`; export r; \
20377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20378 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 20379 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20380 $(HOST_EXPORTS) \
1b05fbbd 20381 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20382 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 20383 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20384 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20385 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp; \
20386 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20387 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20388 case $(srcdir) in \
20389 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20390 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20391 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20392 esac; \
1b6c0831
L
20393 module_srcdir=libcpp; \
20394 $(SHELL) $$s/$$module_srcdir/configure \
20395 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20396 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20397 --target=${target_alias} \
22121df0 20398 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20399 $(STAGE3_CONFIGURE_FLAGS)
20400@endif libcpp-bootstrap
e28c595f 20401
a90ef4bf
JM
20402.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
20403maybe-configure-stage4-libcpp:
20404@if libcpp-bootstrap
20405maybe-configure-stage4-libcpp: configure-stage4-libcpp
20406configure-stage4-libcpp:
4b900473 20407 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 20408 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20409 @r=`${PWD_COMMAND}`; export r; \
20410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20411 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 20412 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20413 $(HOST_EXPORTS) \
1b05fbbd 20414 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20415 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 20416 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20417 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20418 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp; \
20419 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20420 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20421 case $(srcdir) in \
20422 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20423 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20424 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20425 esac; \
1b6c0831
L
20426 module_srcdir=libcpp; \
20427 $(SHELL) $$s/$$module_srcdir/configure \
20428 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20429 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20430 --target=${target_alias} \
22121df0 20431 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20432 $(STAGE4_CONFIGURE_FLAGS)
20433@endif libcpp-bootstrap
e28c595f 20434
a90ef4bf
JM
20435.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
20436maybe-configure-stageprofile-libcpp:
20437@if libcpp-bootstrap
20438maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
20439configure-stageprofile-libcpp:
4b900473 20440 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 20441 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20442 @r=`${PWD_COMMAND}`; export r; \
20443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20444 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 20445 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20446 $(HOST_EXPORTS) \
1b05fbbd
AO
20447 $(POSTSTAGE1_HOST_EXPORTS) \
20448 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 20449 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20450 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20451 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp; \
20452 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20453 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20454 case $(srcdir) in \
20455 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20456 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20457 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20458 esac; \
1b6c0831
L
20459 module_srcdir=libcpp; \
20460 $(SHELL) $$s/$$module_srcdir/configure \
20461 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20462 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20463 --target=${target_alias} \
22121df0 20464 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20465 $(STAGEprofile_CONFIGURE_FLAGS)
20466@endif libcpp-bootstrap
e28c595f 20467
a90ef4bf
JM
20468.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
20469maybe-configure-stagefeedback-libcpp:
20470@if libcpp-bootstrap
20471maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
20472configure-stagefeedback-libcpp:
4b900473 20473 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 20474 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20475 @r=`${PWD_COMMAND}`; export r; \
20476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20477 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 20478 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20479 $(HOST_EXPORTS) \
1b05fbbd
AO
20480 $(POSTSTAGE1_HOST_EXPORTS) \
20481 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 20482 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20483 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20484 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp; \
20485 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20486 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20487 case $(srcdir) in \
20488 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20489 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20490 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20491 esac; \
1b6c0831
L
20492 module_srcdir=libcpp; \
20493 $(SHELL) $$s/$$module_srcdir/configure \
20494 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20495 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20496 --target=${target_alias} \
22121df0 20497 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20498 $(STAGEfeedback_CONFIGURE_FLAGS)
20499@endif libcpp-bootstrap
4b900473
PB
20500
20501
20502
20503
20504
a90ef4bf
JM
20505.PHONY: all-libcpp maybe-all-libcpp
20506maybe-all-libcpp:
4b900473 20507@if gcc-bootstrap
a90ef4bf 20508all-libcpp: stage_current
4b900473 20509@endif gcc-bootstrap
a90ef4bf
JM
20510@if libcpp
20511TARGET-libcpp=all
20512maybe-all-libcpp: all-libcpp
20513all-libcpp: configure-libcpp
4b900473
PB
20514 @r=`${PWD_COMMAND}`; export r; \
20515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20516 $(HOST_EXPORTS) \
20517 (cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20518 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20519 $(TARGET-libcpp))
20520@endif libcpp
4b900473
PB
20521
20522
20523
a90ef4bf
JM
20524.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
20525.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
20526maybe-all-stage1-libcpp:
20527maybe-clean-stage1-libcpp:
20528@if libcpp-bootstrap
20529maybe-all-stage1-libcpp: all-stage1-libcpp
20530all-stage1: all-stage1-libcpp
20531TARGET-stage1-libcpp = $(TARGET-libcpp)
20532all-stage1-libcpp: configure-stage1-libcpp
4b900473
PB
20533 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20534 @r=`${PWD_COMMAND}`; export r; \
20535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20536 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf
JM
20537 $(HOST_EXPORTS) \
20538 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20539 \
7f6ef0c0 20540 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20541 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 20542 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
20543 LIBCFLAGS="$(LIBCFLAGS)" \
20544 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20545 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20546 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
20547 $(EXTRA_HOST_FLAGS) \
20548 $(STAGE1_FLAGS_TO_PASS) \
05a13254 20549 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 20550 $(TARGET-stage1-libcpp)
4b900473 20551
a90ef4bf
JM
20552maybe-clean-stage1-libcpp: clean-stage1-libcpp
20553clean-stage1: clean-stage1-libcpp
20554clean-stage1-libcpp:
4b900473 20555 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 20556 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20557 else \
a90ef4bf 20558 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
4b900473
PB
20559 $(MAKE) stage1-start; \
20560 fi; \
a90ef4bf 20561 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20562 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 20563 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20564@endif libcpp-bootstrap
e28c595f
JM
20565
20566
a90ef4bf
JM
20567.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
20568.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
20569maybe-all-stage2-libcpp:
20570maybe-clean-stage2-libcpp:
20571@if libcpp-bootstrap
20572maybe-all-stage2-libcpp: all-stage2-libcpp
20573all-stage2: all-stage2-libcpp
20574TARGET-stage2-libcpp = $(TARGET-libcpp)
20575all-stage2-libcpp: configure-stage2-libcpp
4b900473
PB
20576 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20577 @r=`${PWD_COMMAND}`; export r; \
20578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20579 TFLAGS="$(STAGE2_TFLAGS)"; \
4b900473 20580 $(HOST_EXPORTS) \
a90ef4bf
JM
20581 $(POSTSTAGE1_HOST_EXPORTS) \
20582 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20583 \
7f6ef0c0 20584 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20585 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 20586 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
20587 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20588 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20589 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20590 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20591 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20592 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 20593 $(TARGET-stage2-libcpp)
4b900473 20594
a90ef4bf
JM
20595maybe-clean-stage2-libcpp: clean-stage2-libcpp
20596clean-stage2: clean-stage2-libcpp
20597clean-stage2-libcpp:
4b900473 20598 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 20599 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20600 else \
a90ef4bf 20601 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
4b900473
PB
20602 $(MAKE) stage2-start; \
20603 fi; \
a90ef4bf 20604 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20605 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20606@endif libcpp-bootstrap
e28c595f
JM
20607
20608
a90ef4bf
JM
20609.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
20610.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
20611maybe-all-stage3-libcpp:
20612maybe-clean-stage3-libcpp:
20613@if libcpp-bootstrap
20614maybe-all-stage3-libcpp: all-stage3-libcpp
20615all-stage3: all-stage3-libcpp
20616TARGET-stage3-libcpp = $(TARGET-libcpp)
20617all-stage3-libcpp: configure-stage3-libcpp
4b900473
PB
20618 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20619 @r=`${PWD_COMMAND}`; export r; \
20620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20621 TFLAGS="$(STAGE3_TFLAGS)"; \
4b900473 20622 $(HOST_EXPORTS) \
a90ef4bf
JM
20623 $(POSTSTAGE1_HOST_EXPORTS) \
20624 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20625 \
7f6ef0c0 20626 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20627 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 20628 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
20629 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20630 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20631 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20632 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20633 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20634 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 20635 $(TARGET-stage3-libcpp)
4b900473 20636
a90ef4bf
JM
20637maybe-clean-stage3-libcpp: clean-stage3-libcpp
20638clean-stage3: clean-stage3-libcpp
20639clean-stage3-libcpp:
4b900473 20640 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 20641 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20642 else \
a90ef4bf 20643 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
4b900473
PB
20644 $(MAKE) stage3-start; \
20645 fi; \
a90ef4bf 20646 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20647 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20648@endif libcpp-bootstrap
e28c595f
JM
20649
20650
a90ef4bf
JM
20651.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
20652.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
20653maybe-all-stage4-libcpp:
20654maybe-clean-stage4-libcpp:
20655@if libcpp-bootstrap
20656maybe-all-stage4-libcpp: all-stage4-libcpp
20657all-stage4: all-stage4-libcpp
20658TARGET-stage4-libcpp = $(TARGET-libcpp)
20659all-stage4-libcpp: configure-stage4-libcpp
4b900473
PB
20660 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20661 @r=`${PWD_COMMAND}`; export r; \
20662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20663 TFLAGS="$(STAGE4_TFLAGS)"; \
4b900473 20664 $(HOST_EXPORTS) \
a90ef4bf
JM
20665 $(POSTSTAGE1_HOST_EXPORTS) \
20666 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20667 \
7f6ef0c0 20668 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20669 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 20670 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 20671 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
20672 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20673 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20674 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20675 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20676 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 20677 $(TARGET-stage4-libcpp)
4b900473 20678
a90ef4bf
JM
20679maybe-clean-stage4-libcpp: clean-stage4-libcpp
20680clean-stage4: clean-stage4-libcpp
20681clean-stage4-libcpp:
4b900473 20682 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 20683 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20684 else \
a90ef4bf 20685 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
4b900473
PB
20686 $(MAKE) stage4-start; \
20687 fi; \
a90ef4bf 20688 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20689 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20690@endif libcpp-bootstrap
e28c595f
JM
20691
20692
a90ef4bf
JM
20693.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
20694.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
20695maybe-all-stageprofile-libcpp:
20696maybe-clean-stageprofile-libcpp:
20697@if libcpp-bootstrap
20698maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
20699all-stageprofile: all-stageprofile-libcpp
20700TARGET-stageprofile-libcpp = $(TARGET-libcpp)
20701all-stageprofile-libcpp: configure-stageprofile-libcpp
4b900473
PB
20702 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20703 @r=`${PWD_COMMAND}`; export r; \
20704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20705 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4b900473 20706 $(HOST_EXPORTS) \
a90ef4bf
JM
20707 $(POSTSTAGE1_HOST_EXPORTS) \
20708 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20709 \
7f6ef0c0 20710 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20711 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 20712 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
20713 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20714 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20715 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20716 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20717 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20718 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 20719 $(TARGET-stageprofile-libcpp)
4b900473 20720
a90ef4bf
JM
20721maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
20722clean-stageprofile: clean-stageprofile-libcpp
20723clean-stageprofile-libcpp:
4b900473 20724 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 20725 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20726 else \
a90ef4bf 20727 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
4b900473
PB
20728 $(MAKE) stageprofile-start; \
20729 fi; \
a90ef4bf 20730 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20731 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20732@endif libcpp-bootstrap
e28c595f
JM
20733
20734
a90ef4bf
JM
20735.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
20736.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
20737maybe-all-stagefeedback-libcpp:
20738maybe-clean-stagefeedback-libcpp:
20739@if libcpp-bootstrap
20740maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
20741all-stagefeedback: all-stagefeedback-libcpp
20742TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
20743all-stagefeedback-libcpp: configure-stagefeedback-libcpp
4b900473
PB
20744 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20745 @r=`${PWD_COMMAND}`; export r; \
20746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20747 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4b900473 20748 $(HOST_EXPORTS) \
a90ef4bf
JM
20749 $(POSTSTAGE1_HOST_EXPORTS) \
20750 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20751 \
7f6ef0c0 20752 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20753 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 20754 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
20755 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20756 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20757 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20758 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20759 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20760 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 20761 $(TARGET-stagefeedback-libcpp)
4b900473 20762
a90ef4bf
JM
20763maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
20764clean-stagefeedback: clean-stagefeedback-libcpp
20765clean-stagefeedback-libcpp:
4b900473 20766 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 20767 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20768 else \
a90ef4bf 20769 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
4b900473
PB
20770 $(MAKE) stagefeedback-start; \
20771 fi; \
a90ef4bf 20772 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20773 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20774@endif libcpp-bootstrap
4b900473
PB
20775
20776
20777
20778
20779
a90ef4bf
JM
20780.PHONY: check-libcpp maybe-check-libcpp
20781maybe-check-libcpp:
20782@if libcpp
20783maybe-check-libcpp: check-libcpp
4b900473 20784
a90ef4bf 20785check-libcpp:
4b900473
PB
20786 @: $(MAKE); $(unstage)
20787 @r=`${PWD_COMMAND}`; export r; \
20788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 20789 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 20790 (cd $(HOST_SUBDIR)/libcpp && \
f91ca6bc 20791 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4b900473 20792
a90ef4bf 20793@endif libcpp
4b900473 20794
a90ef4bf
JM
20795.PHONY: install-libcpp maybe-install-libcpp
20796maybe-install-libcpp:
20797@if libcpp
20798maybe-install-libcpp: install-libcpp
4b900473 20799
a90ef4bf
JM
20800install-libcpp: installdirs
20801 @: $(MAKE); $(unstage)
20802 @r=`${PWD_COMMAND}`; export r; \
20803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20804 $(HOST_EXPORTS) \
20805 (cd $(HOST_SUBDIR)/libcpp && \
20806 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 20807
a90ef4bf 20808@endif libcpp
4b900473 20809
a90ef4bf
JM
20810.PHONY: install-strip-libcpp maybe-install-strip-libcpp
20811maybe-install-strip-libcpp:
20812@if libcpp
20813maybe-install-strip-libcpp: install-strip-libcpp
9b980aa1 20814
a90ef4bf
JM
20815install-strip-libcpp: installdirs
20816 @: $(MAKE); $(unstage)
20817 @r=`${PWD_COMMAND}`; export r; \
20818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20819 $(HOST_EXPORTS) \
20820 (cd $(HOST_SUBDIR)/libcpp && \
20821 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 20822
a90ef4bf 20823@endif libcpp
9b980aa1 20824
4b900473
PB
20825# Other targets (info, dvi, pdf, etc.)
20826
a90ef4bf
JM
20827.PHONY: maybe-info-libcpp info-libcpp
20828maybe-info-libcpp:
20829@if libcpp
20830maybe-info-libcpp: info-libcpp
4b900473 20831
a90ef4bf
JM
20832info-libcpp: \
20833 configure-libcpp
20834 @[ -f ./libcpp/Makefile ] || exit 0; \
20835 r=`${PWD_COMMAND}`; export r; \
4b900473
PB
20836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20837 $(HOST_EXPORTS) \
a90ef4bf 20838 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20840 done; \
22121df0 20841 echo "Doing info in libcpp"; \
a90ef4bf 20842 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20845 "RANLIB=$${RANLIB}" \
0c24b341 20846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20847 info) \
20848 || exit 1
20849
a90ef4bf 20850@endif libcpp
4b900473 20851
a90ef4bf
JM
20852.PHONY: maybe-dvi-libcpp dvi-libcpp
20853maybe-dvi-libcpp:
20854@if libcpp
20855maybe-dvi-libcpp: dvi-libcpp
4b900473 20856
a90ef4bf
JM
20857dvi-libcpp: \
20858 configure-libcpp
20859 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20860 r=`${PWD_COMMAND}`; export r; \
20861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20862 $(HOST_EXPORTS) \
a90ef4bf 20863 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20865 done; \
22121df0 20866 echo "Doing dvi in libcpp"; \
a90ef4bf 20867 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20870 "RANLIB=$${RANLIB}" \
0c24b341 20871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20872 dvi) \
20873 || exit 1
20874
a90ef4bf 20875@endif libcpp
4b900473 20876
a90ef4bf
JM
20877.PHONY: maybe-pdf-libcpp pdf-libcpp
20878maybe-pdf-libcpp:
20879@if libcpp
20880maybe-pdf-libcpp: pdf-libcpp
4b900473 20881
a90ef4bf
JM
20882pdf-libcpp: \
20883 configure-libcpp
20884 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20885 r=`${PWD_COMMAND}`; export r; \
20886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20887 $(HOST_EXPORTS) \
a90ef4bf 20888 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20890 done; \
22121df0 20891 echo "Doing pdf in libcpp"; \
a90ef4bf 20892 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20895 "RANLIB=$${RANLIB}" \
0c24b341 20896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20897 pdf) \
20898 || exit 1
20899
a90ef4bf 20900@endif libcpp
4b900473 20901
a90ef4bf
JM
20902.PHONY: maybe-html-libcpp html-libcpp
20903maybe-html-libcpp:
20904@if libcpp
20905maybe-html-libcpp: html-libcpp
4b900473 20906
a90ef4bf
JM
20907html-libcpp: \
20908 configure-libcpp
20909 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20910 r=`${PWD_COMMAND}`; export r; \
20911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20912 $(HOST_EXPORTS) \
a90ef4bf 20913 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20915 done; \
22121df0 20916 echo "Doing html in libcpp"; \
a90ef4bf 20917 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20920 "RANLIB=$${RANLIB}" \
0c24b341 20921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20922 html) \
20923 || exit 1
20924
a90ef4bf 20925@endif libcpp
4b900473 20926
a90ef4bf
JM
20927.PHONY: maybe-TAGS-libcpp TAGS-libcpp
20928maybe-TAGS-libcpp:
20929@if libcpp
20930maybe-TAGS-libcpp: TAGS-libcpp
4b900473 20931
a90ef4bf
JM
20932TAGS-libcpp: \
20933 configure-libcpp
20934 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20935 r=`${PWD_COMMAND}`; export r; \
20936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20937 $(HOST_EXPORTS) \
a90ef4bf 20938 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20940 done; \
22121df0 20941 echo "Doing TAGS in libcpp"; \
a90ef4bf 20942 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20945 "RANLIB=$${RANLIB}" \
0c24b341 20946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20947 TAGS) \
20948 || exit 1
20949
a90ef4bf 20950@endif libcpp
4b900473 20951
a90ef4bf
JM
20952.PHONY: maybe-install-info-libcpp install-info-libcpp
20953maybe-install-info-libcpp:
20954@if libcpp
20955maybe-install-info-libcpp: install-info-libcpp
4b900473 20956
a90ef4bf
JM
20957install-info-libcpp: \
20958 configure-libcpp \
20959 info-libcpp
20960 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20961 r=`${PWD_COMMAND}`; export r; \
20962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20963 $(HOST_EXPORTS) \
a90ef4bf 20964 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20966 done; \
22121df0 20967 echo "Doing install-info in libcpp"; \
a90ef4bf 20968 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20971 "RANLIB=$${RANLIB}" \
0c24b341 20972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20973 install-info) \
20974 || exit 1
20975
a90ef4bf 20976@endif libcpp
4b900473 20977
a90ef4bf
JM
20978.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
20979maybe-install-pdf-libcpp:
20980@if libcpp
20981maybe-install-pdf-libcpp: install-pdf-libcpp
a3ca38d2 20982
a90ef4bf
JM
20983install-pdf-libcpp: \
20984 configure-libcpp \
20985 pdf-libcpp
20986 @[ -f ./libcpp/Makefile ] || exit 0; \
a3ca38d2
DD
20987 r=`${PWD_COMMAND}`; export r; \
20988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20989 $(HOST_EXPORTS) \
a90ef4bf 20990 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
20991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20992 done; \
22121df0 20993 echo "Doing install-pdf in libcpp"; \
a90ef4bf 20994 (cd $(HOST_SUBDIR)/libcpp && \
a3ca38d2
DD
20995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20997 "RANLIB=$${RANLIB}" \
0c24b341 20998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
20999 install-pdf) \
21000 || exit 1
21001
a90ef4bf 21002@endif libcpp
a3ca38d2 21003
a90ef4bf
JM
21004.PHONY: maybe-install-html-libcpp install-html-libcpp
21005maybe-install-html-libcpp:
21006@if libcpp
21007maybe-install-html-libcpp: install-html-libcpp
4b900473 21008
a90ef4bf
JM
21009install-html-libcpp: \
21010 configure-libcpp \
21011 html-libcpp
21012 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21013 r=`${PWD_COMMAND}`; export r; \
21014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21015 $(HOST_EXPORTS) \
a90ef4bf 21016 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21018 done; \
22121df0 21019 echo "Doing install-html in libcpp"; \
a90ef4bf 21020 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21023 "RANLIB=$${RANLIB}" \
0c24b341 21024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21025 install-html) \
21026 || exit 1
21027
a90ef4bf 21028@endif libcpp
4b900473 21029
a90ef4bf
JM
21030.PHONY: maybe-installcheck-libcpp installcheck-libcpp
21031maybe-installcheck-libcpp:
21032@if libcpp
21033maybe-installcheck-libcpp: installcheck-libcpp
4b900473 21034
a90ef4bf
JM
21035installcheck-libcpp: \
21036 configure-libcpp
21037 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21038 r=`${PWD_COMMAND}`; export r; \
21039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21040 $(HOST_EXPORTS) \
a90ef4bf 21041 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21043 done; \
22121df0 21044 echo "Doing installcheck in libcpp"; \
a90ef4bf 21045 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21048 "RANLIB=$${RANLIB}" \
0c24b341 21049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21050 installcheck) \
21051 || exit 1
21052
a90ef4bf 21053@endif libcpp
4b900473 21054
a90ef4bf
JM
21055.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
21056maybe-mostlyclean-libcpp:
21057@if libcpp
21058maybe-mostlyclean-libcpp: mostlyclean-libcpp
4b900473 21059
a90ef4bf
JM
21060mostlyclean-libcpp:
21061 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21062 r=`${PWD_COMMAND}`; export r; \
21063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21064 $(HOST_EXPORTS) \
a90ef4bf 21065 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21067 done; \
22121df0 21068 echo "Doing mostlyclean in libcpp"; \
a90ef4bf 21069 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21072 "RANLIB=$${RANLIB}" \
0c24b341 21073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21074 mostlyclean) \
21075 || exit 1
21076
a90ef4bf 21077@endif libcpp
4b900473 21078
a90ef4bf
JM
21079.PHONY: maybe-clean-libcpp clean-libcpp
21080maybe-clean-libcpp:
21081@if libcpp
21082maybe-clean-libcpp: clean-libcpp
4b900473 21083
a90ef4bf
JM
21084clean-libcpp:
21085 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21086 r=`${PWD_COMMAND}`; export r; \
21087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21088 $(HOST_EXPORTS) \
a90ef4bf 21089 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21091 done; \
22121df0 21092 echo "Doing clean in libcpp"; \
a90ef4bf 21093 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21096 "RANLIB=$${RANLIB}" \
0c24b341 21097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21098 clean) \
21099 || exit 1
21100
a90ef4bf 21101@endif libcpp
4b900473 21102
a90ef4bf
JM
21103.PHONY: maybe-distclean-libcpp distclean-libcpp
21104maybe-distclean-libcpp:
21105@if libcpp
21106maybe-distclean-libcpp: distclean-libcpp
4b900473 21107
a90ef4bf
JM
21108distclean-libcpp:
21109 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21110 r=`${PWD_COMMAND}`; export r; \
21111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21112 $(HOST_EXPORTS) \
a90ef4bf 21113 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21115 done; \
22121df0 21116 echo "Doing distclean in libcpp"; \
a90ef4bf 21117 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21120 "RANLIB=$${RANLIB}" \
0c24b341 21121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21122 distclean) \
21123 || exit 1
21124
a90ef4bf 21125@endif libcpp
4b900473 21126
a90ef4bf
JM
21127.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
21128maybe-maintainer-clean-libcpp:
21129@if libcpp
21130maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
4b900473 21131
a90ef4bf
JM
21132maintainer-clean-libcpp:
21133 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21134 r=`${PWD_COMMAND}`; export r; \
21135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21136 $(HOST_EXPORTS) \
a90ef4bf 21137 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21139 done; \
22121df0 21140 echo "Doing maintainer-clean in libcpp"; \
a90ef4bf 21141 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21144 "RANLIB=$${RANLIB}" \
0c24b341 21145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21146 maintainer-clean) \
21147 || exit 1
21148
a90ef4bf 21149@endif libcpp
4b900473
PB
21150
21151
21152
a90ef4bf
JM
21153.PHONY: configure-libdecnumber maybe-configure-libdecnumber
21154maybe-configure-libdecnumber:
1f53ca9a 21155@if gcc-bootstrap
a90ef4bf 21156configure-libdecnumber: stage_current
1f53ca9a 21157@endif gcc-bootstrap
a90ef4bf
JM
21158@if libdecnumber
21159maybe-configure-libdecnumber: configure-libdecnumber
21160configure-libdecnumber:
1f53ca9a
AO
21161 @r=`${PWD_COMMAND}`; export r; \
21162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21163 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
22121df0 21164 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
1f53ca9a 21165 $(HOST_EXPORTS) \
a90ef4bf
JM
21166 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
21167 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
1f53ca9a
AO
21168 case $(srcdir) in \
21169 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21170 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21171 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21172 esac; \
1b6c0831
L
21173 module_srcdir=libdecnumber; \
21174 $(SHELL) \
21175 $$s/$$module_srcdir/configure \
21176 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21177 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21178 --target=${target_alias} \
1f53ca9a 21179 || exit 1
a90ef4bf 21180@endif libdecnumber
1f53ca9a
AO
21181
21182
21183
a90ef4bf
JM
21184.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
21185maybe-configure-stage1-libdecnumber:
21186@if libdecnumber-bootstrap
21187maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
21188configure-stage1-libdecnumber:
1f53ca9a 21189 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 21190 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21191 @r=`${PWD_COMMAND}`; export r; \
21192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21193 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 21194 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21195 $(HOST_EXPORTS) \
21196 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
21197 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21198 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
21199 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber; \
21200 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21201 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21202 case $(srcdir) in \
21203 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21204 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21205 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21206 esac; \
1b6c0831
L
21207 module_srcdir=libdecnumber; \
21208 $(SHELL) $$s/$$module_srcdir/configure \
21209 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21210 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21211 --target=${target_alias} \
21212 \
a90ef4bf
JM
21213 $(STAGE1_CONFIGURE_FLAGS)
21214@endif libdecnumber-bootstrap
1f53ca9a 21215
a90ef4bf
JM
21216.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
21217maybe-configure-stage2-libdecnumber:
21218@if libdecnumber-bootstrap
21219maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
21220configure-stage2-libdecnumber:
1f53ca9a 21221 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 21222 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21223 @r=`${PWD_COMMAND}`; export r; \
21224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21225 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 21226 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21227 $(HOST_EXPORTS) \
21228 $(POSTSTAGE1_HOST_EXPORTS) \
21229 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
21230 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21231 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21232 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber; \
21233 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21234 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21235 case $(srcdir) in \
21236 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21237 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21238 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21239 esac; \
1b6c0831
L
21240 module_srcdir=libdecnumber; \
21241 $(SHELL) $$s/$$module_srcdir/configure \
21242 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21243 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21244 --target=${target_alias} \
22121df0 21245 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21246 $(STAGE2_CONFIGURE_FLAGS)
21247@endif libdecnumber-bootstrap
1f53ca9a 21248
a90ef4bf
JM
21249.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
21250maybe-configure-stage3-libdecnumber:
21251@if libdecnumber-bootstrap
21252maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
21253configure-stage3-libdecnumber:
1f53ca9a 21254 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 21255 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21256 @r=`${PWD_COMMAND}`; export r; \
21257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21258 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 21259 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21260 $(HOST_EXPORTS) \
21261 $(POSTSTAGE1_HOST_EXPORTS) \
21262 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
21263 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21264 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21265 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber; \
21266 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21267 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21268 case $(srcdir) in \
21269 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21270 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21271 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21272 esac; \
1b6c0831
L
21273 module_srcdir=libdecnumber; \
21274 $(SHELL) $$s/$$module_srcdir/configure \
21275 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21276 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21277 --target=${target_alias} \
22121df0 21278 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21279 $(STAGE3_CONFIGURE_FLAGS)
21280@endif libdecnumber-bootstrap
1f53ca9a 21281
a90ef4bf
JM
21282.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
21283maybe-configure-stage4-libdecnumber:
21284@if libdecnumber-bootstrap
21285maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
21286configure-stage4-libdecnumber:
1f53ca9a 21287 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 21288 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21289 @r=`${PWD_COMMAND}`; export r; \
21290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21291 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 21292 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21293 $(HOST_EXPORTS) \
21294 $(POSTSTAGE1_HOST_EXPORTS) \
21295 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
21296 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21297 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21298 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber; \
21299 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21300 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21301 case $(srcdir) in \
21302 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21303 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21304 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21305 esac; \
1b6c0831
L
21306 module_srcdir=libdecnumber; \
21307 $(SHELL) $$s/$$module_srcdir/configure \
21308 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21309 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21310 --target=${target_alias} \
22121df0 21311 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21312 $(STAGE4_CONFIGURE_FLAGS)
21313@endif libdecnumber-bootstrap
1f53ca9a 21314
a90ef4bf
JM
21315.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
21316maybe-configure-stageprofile-libdecnumber:
21317@if libdecnumber-bootstrap
21318maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
21319configure-stageprofile-libdecnumber:
1f53ca9a 21320 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 21321 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21322 @r=`${PWD_COMMAND}`; export r; \
21323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21324 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 21325 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21326 $(HOST_EXPORTS) \
21327 $(POSTSTAGE1_HOST_EXPORTS) \
21328 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
21329 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21330 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21331 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber; \
21332 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21333 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21334 case $(srcdir) in \
21335 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21336 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21337 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21338 esac; \
1b6c0831
L
21339 module_srcdir=libdecnumber; \
21340 $(SHELL) $$s/$$module_srcdir/configure \
21341 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21342 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21343 --target=${target_alias} \
22121df0 21344 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21345 $(STAGEprofile_CONFIGURE_FLAGS)
21346@endif libdecnumber-bootstrap
1f53ca9a 21347
a90ef4bf
JM
21348.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
21349maybe-configure-stagefeedback-libdecnumber:
21350@if libdecnumber-bootstrap
21351maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
21352configure-stagefeedback-libdecnumber:
1f53ca9a 21353 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 21354 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21355 @r=`${PWD_COMMAND}`; export r; \
21356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21357 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 21358 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21359 $(HOST_EXPORTS) \
21360 $(POSTSTAGE1_HOST_EXPORTS) \
21361 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
21362 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21363 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21364 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber; \
21365 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21366 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21367 case $(srcdir) in \
21368 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21369 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21370 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21371 esac; \
1b6c0831
L
21372 module_srcdir=libdecnumber; \
21373 $(SHELL) $$s/$$module_srcdir/configure \
21374 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21375 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21376 --target=${target_alias} \
22121df0 21377 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21378 $(STAGEfeedback_CONFIGURE_FLAGS)
21379@endif libdecnumber-bootstrap
1f53ca9a
AO
21380
21381
21382
21383
21384
a90ef4bf
JM
21385.PHONY: all-libdecnumber maybe-all-libdecnumber
21386maybe-all-libdecnumber:
1f53ca9a 21387@if gcc-bootstrap
a90ef4bf 21388all-libdecnumber: stage_current
1f53ca9a 21389@endif gcc-bootstrap
a90ef4bf
JM
21390@if libdecnumber
21391TARGET-libdecnumber=all
21392maybe-all-libdecnumber: all-libdecnumber
21393all-libdecnumber: configure-libdecnumber
1f53ca9a
AO
21394 @r=`${PWD_COMMAND}`; export r; \
21395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21396 $(HOST_EXPORTS) \
a90ef4bf 21397 (cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21398 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21399 $(TARGET-libdecnumber))
21400@endif libdecnumber
1f53ca9a
AO
21401
21402
21403
a90ef4bf
JM
21404.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
21405.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
21406maybe-all-stage1-libdecnumber:
21407maybe-clean-stage1-libdecnumber:
21408@if libdecnumber-bootstrap
21409maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
21410all-stage1: all-stage1-libdecnumber
21411TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
21412all-stage1-libdecnumber: configure-stage1-libdecnumber
1f53ca9a
AO
21413 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
21414 @r=`${PWD_COMMAND}`; export r; \
21415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21416 TFLAGS="$(STAGE1_TFLAGS)"; \
21417 $(HOST_EXPORTS) \
a90ef4bf 21418 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21419 \
1f53ca9a
AO
21420 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21421 CFLAGS="$(STAGE1_CFLAGS)" \
21422 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
21423 LIBCFLAGS="$(LIBCFLAGS)" \
21424 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21425 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21426 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
21427 $(EXTRA_HOST_FLAGS) \
21428 $(STAGE1_FLAGS_TO_PASS) \
05a13254 21429 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 21430 $(TARGET-stage1-libdecnumber)
1f53ca9a 21431
a90ef4bf
JM
21432maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
21433clean-stage1: clean-stage1-libdecnumber
21434clean-stage1-libdecnumber:
1f53ca9a 21435 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 21436 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21437 else \
a90ef4bf 21438 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21439 $(MAKE) stage1-start; \
21440 fi; \
a90ef4bf 21441 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a 21442 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 21443 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21444@endif libdecnumber-bootstrap
1f53ca9a
AO
21445
21446
a90ef4bf
JM
21447.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
21448.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
21449maybe-all-stage2-libdecnumber:
21450maybe-clean-stage2-libdecnumber:
21451@if libdecnumber-bootstrap
21452maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
21453all-stage2: all-stage2-libdecnumber
21454TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
21455all-stage2-libdecnumber: configure-stage2-libdecnumber
1f53ca9a
AO
21456 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
21457 @r=`${PWD_COMMAND}`; export r; \
21458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21459 TFLAGS="$(STAGE2_TFLAGS)"; \
21460 $(HOST_EXPORTS) \
21461 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21462 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21463 \
1f53ca9a
AO
21464 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21465 CFLAGS="$(STAGE2_CFLAGS)" \
21466 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
21467 LIBCFLAGS="$(STAGE2_CFLAGS)" \
21468 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21469 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21470 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21471 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21472 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 21473 $(TARGET-stage2-libdecnumber)
1f53ca9a 21474
a90ef4bf
JM
21475maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
21476clean-stage2: clean-stage2-libdecnumber
21477clean-stage2-libdecnumber:
1f53ca9a 21478 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 21479 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21480 else \
a90ef4bf 21481 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21482 $(MAKE) stage2-start; \
21483 fi; \
a90ef4bf 21484 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21485 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21486@endif libdecnumber-bootstrap
1f53ca9a
AO
21487
21488
a90ef4bf
JM
21489.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
21490.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
21491maybe-all-stage3-libdecnumber:
21492maybe-clean-stage3-libdecnumber:
21493@if libdecnumber-bootstrap
21494maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
21495all-stage3: all-stage3-libdecnumber
21496TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
21497all-stage3-libdecnumber: configure-stage3-libdecnumber
1f53ca9a
AO
21498 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
21499 @r=`${PWD_COMMAND}`; export r; \
21500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21501 TFLAGS="$(STAGE3_TFLAGS)"; \
21502 $(HOST_EXPORTS) \
21503 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21504 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21505 \
1f53ca9a
AO
21506 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21507 CFLAGS="$(STAGE3_CFLAGS)" \
21508 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
21509 LIBCFLAGS="$(STAGE3_CFLAGS)" \
21510 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21511 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21512 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21513 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21514 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 21515 $(TARGET-stage3-libdecnumber)
1f53ca9a 21516
a90ef4bf
JM
21517maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
21518clean-stage3: clean-stage3-libdecnumber
21519clean-stage3-libdecnumber:
1f53ca9a 21520 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 21521 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21522 else \
a90ef4bf 21523 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21524 $(MAKE) stage3-start; \
21525 fi; \
a90ef4bf 21526 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21527 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21528@endif libdecnumber-bootstrap
1f53ca9a
AO
21529
21530
a90ef4bf
JM
21531.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
21532.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
21533maybe-all-stage4-libdecnumber:
21534maybe-clean-stage4-libdecnumber:
21535@if libdecnumber-bootstrap
21536maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
21537all-stage4: all-stage4-libdecnumber
21538TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
21539all-stage4-libdecnumber: configure-stage4-libdecnumber
1f53ca9a
AO
21540 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
21541 @r=`${PWD_COMMAND}`; export r; \
21542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21543 TFLAGS="$(STAGE4_TFLAGS)"; \
21544 $(HOST_EXPORTS) \
21545 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21546 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21547 \
1f53ca9a
AO
21548 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21549 CFLAGS="$(STAGE4_CFLAGS)" \
21550 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
21551 LIBCFLAGS="$(STAGE4_CFLAGS)" \
21552 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21553 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21554 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21555 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21556 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 21557 $(TARGET-stage4-libdecnumber)
1f53ca9a 21558
a90ef4bf
JM
21559maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
21560clean-stage4: clean-stage4-libdecnumber
21561clean-stage4-libdecnumber:
1f53ca9a 21562 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 21563 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21564 else \
a90ef4bf 21565 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21566 $(MAKE) stage4-start; \
21567 fi; \
a90ef4bf 21568 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21569 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21570@endif libdecnumber-bootstrap
1f53ca9a
AO
21571
21572
a90ef4bf
JM
21573.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
21574.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
21575maybe-all-stageprofile-libdecnumber:
21576maybe-clean-stageprofile-libdecnumber:
21577@if libdecnumber-bootstrap
21578maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
21579all-stageprofile: all-stageprofile-libdecnumber
21580TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
21581all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
1f53ca9a
AO
21582 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
21583 @r=`${PWD_COMMAND}`; export r; \
21584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21585 TFLAGS="$(STAGEprofile_TFLAGS)"; \
21586 $(HOST_EXPORTS) \
21587 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21588 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21589 \
1f53ca9a
AO
21590 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21591 CFLAGS="$(STAGEprofile_CFLAGS)" \
21592 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
21593 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
21594 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21595 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21596 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21597 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21598 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 21599 $(TARGET-stageprofile-libdecnumber)
1f53ca9a 21600
a90ef4bf
JM
21601maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
21602clean-stageprofile: clean-stageprofile-libdecnumber
21603clean-stageprofile-libdecnumber:
1f53ca9a 21604 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 21605 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21606 else \
a90ef4bf 21607 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21608 $(MAKE) stageprofile-start; \
21609 fi; \
a90ef4bf 21610 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21611 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21612@endif libdecnumber-bootstrap
1f53ca9a
AO
21613
21614
a90ef4bf
JM
21615.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
21616.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
21617maybe-all-stagefeedback-libdecnumber:
21618maybe-clean-stagefeedback-libdecnumber:
21619@if libdecnumber-bootstrap
21620maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
21621all-stagefeedback: all-stagefeedback-libdecnumber
21622TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
21623all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
1f53ca9a
AO
21624 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
21625 @r=`${PWD_COMMAND}`; export r; \
21626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21627 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
21628 $(HOST_EXPORTS) \
21629 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21630 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21631 \
1f53ca9a
AO
21632 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21633 CFLAGS="$(STAGEfeedback_CFLAGS)" \
21634 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
21635 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
21636 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21637 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21638 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21639 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21640 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 21641 $(TARGET-stagefeedback-libdecnumber)
1f53ca9a 21642
a90ef4bf
JM
21643maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
21644clean-stagefeedback: clean-stagefeedback-libdecnumber
21645clean-stagefeedback-libdecnumber:
1f53ca9a 21646 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 21647 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21648 else \
a90ef4bf 21649 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21650 $(MAKE) stagefeedback-start; \
21651 fi; \
a90ef4bf 21652 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21653 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21654@endif libdecnumber-bootstrap
1f53ca9a
AO
21655
21656
21657
21658
21659
a90ef4bf
JM
21660.PHONY: check-libdecnumber maybe-check-libdecnumber
21661maybe-check-libdecnumber:
21662@if libdecnumber
21663maybe-check-libdecnumber: check-libdecnumber
1f53ca9a 21664
a90ef4bf 21665check-libdecnumber:
1f53ca9a
AO
21666 @: $(MAKE); $(unstage)
21667 @r=`${PWD_COMMAND}`; export r; \
21668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 21669 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 21670 (cd $(HOST_SUBDIR)/libdecnumber && \
f91ca6bc 21671 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
1f53ca9a 21672
a90ef4bf 21673@endif libdecnumber
1f53ca9a 21674
a90ef4bf
JM
21675.PHONY: install-libdecnumber maybe-install-libdecnumber
21676maybe-install-libdecnumber:
21677@if libdecnumber
21678maybe-install-libdecnumber: install-libdecnumber
1f53ca9a 21679
a90ef4bf
JM
21680install-libdecnumber: installdirs
21681 @: $(MAKE); $(unstage)
21682 @r=`${PWD_COMMAND}`; export r; \
21683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21684 $(HOST_EXPORTS) \
21685 (cd $(HOST_SUBDIR)/libdecnumber && \
21686 $(MAKE) $(FLAGS_TO_PASS) install)
1f53ca9a 21687
a90ef4bf 21688@endif libdecnumber
1f53ca9a 21689
a90ef4bf
JM
21690.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
21691maybe-install-strip-libdecnumber:
21692@if libdecnumber
21693maybe-install-strip-libdecnumber: install-strip-libdecnumber
9b980aa1 21694
a90ef4bf
JM
21695install-strip-libdecnumber: installdirs
21696 @: $(MAKE); $(unstage)
21697 @r=`${PWD_COMMAND}`; export r; \
21698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21699 $(HOST_EXPORTS) \
21700 (cd $(HOST_SUBDIR)/libdecnumber && \
21701 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 21702
a90ef4bf 21703@endif libdecnumber
9b980aa1 21704
1f53ca9a
AO
21705# Other targets (info, dvi, pdf, etc.)
21706
a90ef4bf
JM
21707.PHONY: maybe-info-libdecnumber info-libdecnumber
21708maybe-info-libdecnumber:
21709@if libdecnumber
21710maybe-info-libdecnumber: info-libdecnumber
1f53ca9a 21711
a90ef4bf
JM
21712info-libdecnumber: \
21713 configure-libdecnumber
21714 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21715 r=`${PWD_COMMAND}`; export r; \
21716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21717 $(HOST_EXPORTS) \
21718 for flag in $(EXTRA_HOST_FLAGS) ; do \
21719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21720 done; \
22121df0 21721 echo "Doing info in libdecnumber"; \
a90ef4bf 21722 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21725 "RANLIB=$${RANLIB}" \
21726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21727 info) \
21728 || exit 1
21729
a90ef4bf 21730@endif libdecnumber
1f53ca9a 21731
a90ef4bf
JM
21732.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
21733maybe-dvi-libdecnumber:
21734@if libdecnumber
21735maybe-dvi-libdecnumber: dvi-libdecnumber
1f53ca9a 21736
a90ef4bf
JM
21737dvi-libdecnumber: \
21738 configure-libdecnumber
21739 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21740 r=`${PWD_COMMAND}`; export r; \
21741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21742 $(HOST_EXPORTS) \
21743 for flag in $(EXTRA_HOST_FLAGS) ; do \
21744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21745 done; \
22121df0 21746 echo "Doing dvi in libdecnumber"; \
a90ef4bf 21747 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21750 "RANLIB=$${RANLIB}" \
21751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21752 dvi) \
21753 || exit 1
21754
a90ef4bf 21755@endif libdecnumber
1f53ca9a 21756
a90ef4bf
JM
21757.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
21758maybe-pdf-libdecnumber:
21759@if libdecnumber
21760maybe-pdf-libdecnumber: pdf-libdecnumber
1f53ca9a 21761
a90ef4bf
JM
21762pdf-libdecnumber: \
21763 configure-libdecnumber
21764 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21765 r=`${PWD_COMMAND}`; export r; \
21766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21767 $(HOST_EXPORTS) \
21768 for flag in $(EXTRA_HOST_FLAGS) ; do \
21769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21770 done; \
22121df0 21771 echo "Doing pdf in libdecnumber"; \
a90ef4bf 21772 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21775 "RANLIB=$${RANLIB}" \
21776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21777 pdf) \
21778 || exit 1
21779
a90ef4bf 21780@endif libdecnumber
1f53ca9a 21781
a90ef4bf
JM
21782.PHONY: maybe-html-libdecnumber html-libdecnumber
21783maybe-html-libdecnumber:
21784@if libdecnumber
21785maybe-html-libdecnumber: html-libdecnumber
1f53ca9a 21786
a90ef4bf
JM
21787html-libdecnumber: \
21788 configure-libdecnumber
21789 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21790 r=`${PWD_COMMAND}`; export r; \
21791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21792 $(HOST_EXPORTS) \
21793 for flag in $(EXTRA_HOST_FLAGS) ; do \
21794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21795 done; \
22121df0 21796 echo "Doing html in libdecnumber"; \
a90ef4bf 21797 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21800 "RANLIB=$${RANLIB}" \
21801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21802 html) \
21803 || exit 1
21804
a90ef4bf 21805@endif libdecnumber
1f53ca9a 21806
a90ef4bf
JM
21807.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
21808maybe-TAGS-libdecnumber:
21809@if libdecnumber
21810maybe-TAGS-libdecnumber: TAGS-libdecnumber
1f53ca9a 21811
a90ef4bf
JM
21812TAGS-libdecnumber: \
21813 configure-libdecnumber
21814 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21815 r=`${PWD_COMMAND}`; export r; \
21816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21817 $(HOST_EXPORTS) \
21818 for flag in $(EXTRA_HOST_FLAGS) ; do \
21819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21820 done; \
22121df0 21821 echo "Doing TAGS in libdecnumber"; \
a90ef4bf 21822 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21825 "RANLIB=$${RANLIB}" \
21826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21827 TAGS) \
21828 || exit 1
21829
a90ef4bf 21830@endif libdecnumber
1f53ca9a 21831
a90ef4bf
JM
21832.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
21833maybe-install-info-libdecnumber:
21834@if libdecnumber
21835maybe-install-info-libdecnumber: install-info-libdecnumber
1f53ca9a 21836
a90ef4bf
JM
21837install-info-libdecnumber: \
21838 configure-libdecnumber \
21839 info-libdecnumber
21840 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21841 r=`${PWD_COMMAND}`; export r; \
21842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21843 $(HOST_EXPORTS) \
21844 for flag in $(EXTRA_HOST_FLAGS) ; do \
21845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21846 done; \
22121df0 21847 echo "Doing install-info in libdecnumber"; \
a90ef4bf 21848 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21851 "RANLIB=$${RANLIB}" \
21852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21853 install-info) \
21854 || exit 1
21855
a90ef4bf 21856@endif libdecnumber
1f53ca9a 21857
a90ef4bf
JM
21858.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
21859maybe-install-pdf-libdecnumber:
21860@if libdecnumber
21861maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
1f53ca9a 21862
a90ef4bf
JM
21863install-pdf-libdecnumber: \
21864 configure-libdecnumber \
21865 pdf-libdecnumber
21866 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21867 r=`${PWD_COMMAND}`; export r; \
21868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21869 $(HOST_EXPORTS) \
21870 for flag in $(EXTRA_HOST_FLAGS) ; do \
21871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21872 done; \
22121df0 21873 echo "Doing install-pdf in libdecnumber"; \
a90ef4bf 21874 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21877 "RANLIB=$${RANLIB}" \
21878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21879 install-pdf) \
21880 || exit 1
21881
a90ef4bf 21882@endif libdecnumber
1f53ca9a 21883
a90ef4bf
JM
21884.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
21885maybe-install-html-libdecnumber:
21886@if libdecnumber
21887maybe-install-html-libdecnumber: install-html-libdecnumber
1f53ca9a 21888
a90ef4bf
JM
21889install-html-libdecnumber: \
21890 configure-libdecnumber \
21891 html-libdecnumber
21892 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21893 r=`${PWD_COMMAND}`; export r; \
21894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21895 $(HOST_EXPORTS) \
21896 for flag in $(EXTRA_HOST_FLAGS) ; do \
21897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21898 done; \
22121df0 21899 echo "Doing install-html in libdecnumber"; \
a90ef4bf 21900 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21903 "RANLIB=$${RANLIB}" \
21904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21905 install-html) \
21906 || exit 1
21907
a90ef4bf 21908@endif libdecnumber
1f53ca9a 21909
a90ef4bf
JM
21910.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
21911maybe-installcheck-libdecnumber:
21912@if libdecnumber
21913maybe-installcheck-libdecnumber: installcheck-libdecnumber
1f53ca9a 21914
a90ef4bf
JM
21915installcheck-libdecnumber: \
21916 configure-libdecnumber
21917 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21918 r=`${PWD_COMMAND}`; export r; \
21919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21920 $(HOST_EXPORTS) \
21921 for flag in $(EXTRA_HOST_FLAGS) ; do \
21922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21923 done; \
22121df0 21924 echo "Doing installcheck in libdecnumber"; \
a90ef4bf 21925 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21928 "RANLIB=$${RANLIB}" \
21929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21930 installcheck) \
21931 || exit 1
21932
a90ef4bf 21933@endif libdecnumber
1f53ca9a 21934
a90ef4bf
JM
21935.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
21936maybe-mostlyclean-libdecnumber:
21937@if libdecnumber
21938maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
1f53ca9a 21939
a90ef4bf
JM
21940mostlyclean-libdecnumber:
21941 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21942 r=`${PWD_COMMAND}`; export r; \
21943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21944 $(HOST_EXPORTS) \
21945 for flag in $(EXTRA_HOST_FLAGS) ; do \
21946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21947 done; \
22121df0 21948 echo "Doing mostlyclean in libdecnumber"; \
a90ef4bf 21949 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21952 "RANLIB=$${RANLIB}" \
21953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21954 mostlyclean) \
21955 || exit 1
21956
a90ef4bf 21957@endif libdecnumber
1f53ca9a 21958
a90ef4bf
JM
21959.PHONY: maybe-clean-libdecnumber clean-libdecnumber
21960maybe-clean-libdecnumber:
21961@if libdecnumber
21962maybe-clean-libdecnumber: clean-libdecnumber
1f53ca9a 21963
a90ef4bf
JM
21964clean-libdecnumber:
21965 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21966 r=`${PWD_COMMAND}`; export r; \
21967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21968 $(HOST_EXPORTS) \
21969 for flag in $(EXTRA_HOST_FLAGS) ; do \
21970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21971 done; \
22121df0 21972 echo "Doing clean in libdecnumber"; \
a90ef4bf 21973 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21976 "RANLIB=$${RANLIB}" \
21977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21978 clean) \
21979 || exit 1
21980
a90ef4bf 21981@endif libdecnumber
1f53ca9a 21982
a90ef4bf
JM
21983.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
21984maybe-distclean-libdecnumber:
21985@if libdecnumber
21986maybe-distclean-libdecnumber: distclean-libdecnumber
1f53ca9a 21987
a90ef4bf
JM
21988distclean-libdecnumber:
21989 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21990 r=`${PWD_COMMAND}`; export r; \
21991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21992 $(HOST_EXPORTS) \
21993 for flag in $(EXTRA_HOST_FLAGS) ; do \
21994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21995 done; \
22121df0 21996 echo "Doing distclean in libdecnumber"; \
a90ef4bf 21997 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22000 "RANLIB=$${RANLIB}" \
22001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22002 distclean) \
22003 || exit 1
22004
a90ef4bf 22005@endif libdecnumber
1f53ca9a 22006
a90ef4bf
JM
22007.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
22008maybe-maintainer-clean-libdecnumber:
22009@if libdecnumber
22010maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
1f53ca9a 22011
a90ef4bf
JM
22012maintainer-clean-libdecnumber:
22013 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22014 r=`${PWD_COMMAND}`; export r; \
22015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22016 $(HOST_EXPORTS) \
22017 for flag in $(EXTRA_HOST_FLAGS) ; do \
22018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22019 done; \
22121df0 22020 echo "Doing maintainer-clean in libdecnumber"; \
a90ef4bf 22021 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22024 "RANLIB=$${RANLIB}" \
22025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22026 maintainer-clean) \
22027 || exit 1
22028
a90ef4bf 22029@endif libdecnumber
1f53ca9a
AO
22030
22031
22032
a90ef4bf
JM
22033.PHONY: configure-libgui maybe-configure-libgui
22034maybe-configure-libgui:
4f0ef2d8 22035@if gcc-bootstrap
a90ef4bf 22036configure-libgui: stage_current
4f0ef2d8 22037@endif gcc-bootstrap
a90ef4bf
JM
22038@if libgui
22039maybe-configure-libgui: configure-libgui
22040configure-libgui:
0aed8855 22041 @: $(MAKE); $(unstage)
c52c6897 22042 @r=`${PWD_COMMAND}`; export r; \
4fa63067 22043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22044 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
22121df0 22045 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui; \
1f53ca9a 22046 $(HOST_EXPORTS) \
a90ef4bf
JM
22047 echo Configuring in $(HOST_SUBDIR)/libgui; \
22048 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
4fa63067 22049 case $(srcdir) in \
b00612cc 22050 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22051 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
b00612cc 22052 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 22053 esac; \
1b6c0831
L
22054 module_srcdir=libgui; \
22055 $(SHELL) \
22056 $$s/$$module_srcdir/configure \
22057 --srcdir=$${topdir}/$$module_srcdir \
4b900473 22058 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22059 --target=${target_alias} \
2a4cbe27 22060 || exit 1
a90ef4bf 22061@endif libgui
2a4cbe27 22062
a7254363
PB
22063
22064
d545f33b
PB
22065
22066
a90ef4bf
JM
22067.PHONY: all-libgui maybe-all-libgui
22068maybe-all-libgui:
4f0ef2d8 22069@if gcc-bootstrap
a90ef4bf 22070all-libgui: stage_current
4f0ef2d8 22071@endif gcc-bootstrap
a90ef4bf
JM
22072@if libgui
22073TARGET-libgui=all
22074maybe-all-libgui: all-libgui
22075all-libgui: configure-libgui
0aed8855 22076 @: $(MAKE); $(unstage)
4fa63067
NN
22077 @r=`${PWD_COMMAND}`; export r; \
22078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22079 $(HOST_EXPORTS) \
a90ef4bf 22080 (cd $(HOST_SUBDIR)/libgui && \
b3676d82 22081 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22082 $(TARGET-libgui))
22083@endif libgui
2a4cbe27 22084
a7254363 22085
d545f33b
PB
22086
22087
a90ef4bf
JM
22088.PHONY: check-libgui maybe-check-libgui
22089maybe-check-libgui:
22090@if libgui
22091maybe-check-libgui: check-libgui
2a4cbe27 22092
a90ef4bf 22093check-libgui:
0aed8855 22094 @: $(MAKE); $(unstage)
4fa63067 22095 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22097 $(HOST_EXPORTS) \
a90ef4bf 22098 (cd $(HOST_SUBDIR)/libgui && \
b00612cc 22099 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 22100
a90ef4bf 22101@endif libgui
2a4cbe27 22102
a90ef4bf
JM
22103.PHONY: install-libgui maybe-install-libgui
22104maybe-install-libgui:
22105@if libgui
22106maybe-install-libgui: install-libgui
2a4cbe27 22107
a90ef4bf 22108install-libgui: installdirs
0aed8855 22109 @: $(MAKE); $(unstage)
4fa63067 22110 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22112 $(HOST_EXPORTS) \
a90ef4bf 22113 (cd $(HOST_SUBDIR)/libgui && \
2da12f12 22114 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 22115
a90ef4bf 22116@endif libgui
2a4cbe27 22117
a90ef4bf
JM
22118.PHONY: install-strip-libgui maybe-install-strip-libgui
22119maybe-install-strip-libgui:
22120@if libgui
22121maybe-install-strip-libgui: install-strip-libgui
9b980aa1 22122
a90ef4bf 22123install-strip-libgui: installdirs
9b980aa1
RW
22124 @: $(MAKE); $(unstage)
22125 @r=`${PWD_COMMAND}`; export r; \
22126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22127 $(HOST_EXPORTS) \
a90ef4bf 22128 (cd $(HOST_SUBDIR)/libgui && \
9b980aa1
RW
22129 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22130
a90ef4bf 22131@endif libgui
9b980aa1 22132
56a8fe78 22133# Other targets (info, dvi, pdf, etc.)
2a4cbe27 22134
a90ef4bf
JM
22135.PHONY: maybe-info-libgui info-libgui
22136maybe-info-libgui:
22137@if libgui
22138maybe-info-libgui: info-libgui
4fa63067 22139
a90ef4bf
JM
22140info-libgui: \
22141 configure-libgui
0aed8855 22142 @: $(MAKE); $(unstage)
a90ef4bf 22143 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22144 r=`${PWD_COMMAND}`; export r; \
22145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22146 $(HOST_EXPORTS) \
b813574b 22147 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22149 done; \
22121df0 22150 echo "Doing info in libgui"; \
a90ef4bf 22151 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22154 "RANLIB=$${RANLIB}" \
0c24b341 22155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22156 info) \
2a4cbe27
NN
22157 || exit 1
22158
a90ef4bf 22159@endif libgui
2a4cbe27 22160
a90ef4bf
JM
22161.PHONY: maybe-dvi-libgui dvi-libgui
22162maybe-dvi-libgui:
22163@if libgui
22164maybe-dvi-libgui: dvi-libgui
2a4cbe27 22165
a90ef4bf
JM
22166dvi-libgui: \
22167 configure-libgui
0aed8855 22168 @: $(MAKE); $(unstage)
a90ef4bf 22169 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22170 r=`${PWD_COMMAND}`; export r; \
22171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22172 $(HOST_EXPORTS) \
b813574b 22173 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22175 done; \
22121df0 22176 echo "Doing dvi in libgui"; \
a90ef4bf 22177 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22180 "RANLIB=$${RANLIB}" \
0c24b341 22181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22182 dvi) \
2a4cbe27
NN
22183 || exit 1
22184
a90ef4bf 22185@endif libgui
2a4cbe27 22186
a90ef4bf
JM
22187.PHONY: maybe-pdf-libgui pdf-libgui
22188maybe-pdf-libgui:
22189@if libgui
22190maybe-pdf-libgui: pdf-libgui
56a8fe78 22191
a90ef4bf
JM
22192pdf-libgui: \
22193 configure-libgui
56a8fe78 22194 @: $(MAKE); $(unstage)
a90ef4bf 22195 @[ -f ./libgui/Makefile ] || exit 0; \
56a8fe78
DD
22196 r=`${PWD_COMMAND}`; export r; \
22197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22198 $(HOST_EXPORTS) \
22199 for flag in $(EXTRA_HOST_FLAGS) ; do \
22200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22201 done; \
22121df0 22202 echo "Doing pdf in libgui"; \
a90ef4bf 22203 (cd $(HOST_SUBDIR)/libgui && \
56a8fe78
DD
22204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22206 "RANLIB=$${RANLIB}" \
0c24b341 22207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
22208 pdf) \
22209 || exit 1
22210
a90ef4bf 22211@endif libgui
56a8fe78 22212
a90ef4bf
JM
22213.PHONY: maybe-html-libgui html-libgui
22214maybe-html-libgui:
22215@if libgui
22216maybe-html-libgui: html-libgui
6d389afc 22217
a90ef4bf
JM
22218html-libgui: \
22219 configure-libgui
0aed8855 22220 @: $(MAKE); $(unstage)
a90ef4bf 22221 @[ -f ./libgui/Makefile ] || exit 0; \
6d389afc
MS
22222 r=`${PWD_COMMAND}`; export r; \
22223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
22224 $(HOST_EXPORTS) \
22225 for flag in $(EXTRA_HOST_FLAGS) ; do \
22226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22227 done; \
22121df0 22228 echo "Doing html in libgui"; \
a90ef4bf 22229 (cd $(HOST_SUBDIR)/libgui && \
6d389afc
MS
22230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22232 "RANLIB=$${RANLIB}" \
0c24b341 22233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
22234 html) \
22235 || exit 1
22236
a90ef4bf 22237@endif libgui
6d389afc 22238
a90ef4bf
JM
22239.PHONY: maybe-TAGS-libgui TAGS-libgui
22240maybe-TAGS-libgui:
22241@if libgui
22242maybe-TAGS-libgui: TAGS-libgui
2a4cbe27 22243
a90ef4bf
JM
22244TAGS-libgui: \
22245 configure-libgui
0aed8855 22246 @: $(MAKE); $(unstage)
a90ef4bf 22247 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22248 r=`${PWD_COMMAND}`; export r; \
22249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22250 $(HOST_EXPORTS) \
b813574b 22251 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22253 done; \
22121df0 22254 echo "Doing TAGS in libgui"; \
a90ef4bf 22255 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22258 "RANLIB=$${RANLIB}" \
0c24b341 22259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22260 TAGS) \
2a4cbe27
NN
22261 || exit 1
22262
a90ef4bf 22263@endif libgui
2a4cbe27 22264
a90ef4bf
JM
22265.PHONY: maybe-install-info-libgui install-info-libgui
22266maybe-install-info-libgui:
22267@if libgui
22268maybe-install-info-libgui: install-info-libgui
2a4cbe27 22269
a90ef4bf
JM
22270install-info-libgui: \
22271 configure-libgui \
22272 info-libgui
0aed8855 22273 @: $(MAKE); $(unstage)
a90ef4bf 22274 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22275 r=`${PWD_COMMAND}`; export r; \
22276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22277 $(HOST_EXPORTS) \
b813574b 22278 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22280 done; \
22121df0 22281 echo "Doing install-info in libgui"; \
a90ef4bf 22282 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22285 "RANLIB=$${RANLIB}" \
0c24b341 22286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22287 install-info) \
2a4cbe27
NN
22288 || exit 1
22289
a90ef4bf 22290@endif libgui
2a4cbe27 22291
a90ef4bf
JM
22292.PHONY: maybe-install-pdf-libgui install-pdf-libgui
22293maybe-install-pdf-libgui:
22294@if libgui
22295maybe-install-pdf-libgui: install-pdf-libgui
a3ca38d2 22296
a90ef4bf
JM
22297install-pdf-libgui: \
22298 configure-libgui \
22299 pdf-libgui
a3ca38d2 22300 @: $(MAKE); $(unstage)
a90ef4bf 22301 @[ -f ./libgui/Makefile ] || exit 0; \
a3ca38d2
DD
22302 r=`${PWD_COMMAND}`; export r; \
22303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22304 $(HOST_EXPORTS) \
22305 for flag in $(EXTRA_HOST_FLAGS) ; do \
22306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22307 done; \
22121df0 22308 echo "Doing install-pdf in libgui"; \
a90ef4bf 22309 (cd $(HOST_SUBDIR)/libgui && \
a3ca38d2
DD
22310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22312 "RANLIB=$${RANLIB}" \
0c24b341 22313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
22314 install-pdf) \
22315 || exit 1
22316
a90ef4bf 22317@endif libgui
a3ca38d2 22318
a90ef4bf
JM
22319.PHONY: maybe-install-html-libgui install-html-libgui
22320maybe-install-html-libgui:
22321@if libgui
22322maybe-install-html-libgui: install-html-libgui
108a6f8e 22323
a90ef4bf
JM
22324install-html-libgui: \
22325 configure-libgui \
22326 html-libgui
108a6f8e 22327 @: $(MAKE); $(unstage)
a90ef4bf 22328 @[ -f ./libgui/Makefile ] || exit 0; \
108a6f8e
CD
22329 r=`${PWD_COMMAND}`; export r; \
22330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22331 $(HOST_EXPORTS) \
22332 for flag in $(EXTRA_HOST_FLAGS) ; do \
22333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22334 done; \
22121df0 22335 echo "Doing install-html in libgui"; \
a90ef4bf 22336 (cd $(HOST_SUBDIR)/libgui && \
108a6f8e
CD
22337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22339 "RANLIB=$${RANLIB}" \
0c24b341 22340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
22341 install-html) \
22342 || exit 1
22343
a90ef4bf 22344@endif libgui
108a6f8e 22345
a90ef4bf
JM
22346.PHONY: maybe-installcheck-libgui installcheck-libgui
22347maybe-installcheck-libgui:
22348@if libgui
22349maybe-installcheck-libgui: installcheck-libgui
2a4cbe27 22350
a90ef4bf
JM
22351installcheck-libgui: \
22352 configure-libgui
0aed8855 22353 @: $(MAKE); $(unstage)
a90ef4bf 22354 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22355 r=`${PWD_COMMAND}`; export r; \
22356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22357 $(HOST_EXPORTS) \
b813574b 22358 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22360 done; \
22121df0 22361 echo "Doing installcheck in libgui"; \
a90ef4bf 22362 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22365 "RANLIB=$${RANLIB}" \
0c24b341 22366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22367 installcheck) \
2a4cbe27
NN
22368 || exit 1
22369
a90ef4bf 22370@endif libgui
2a4cbe27 22371
a90ef4bf
JM
22372.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
22373maybe-mostlyclean-libgui:
22374@if libgui
22375maybe-mostlyclean-libgui: mostlyclean-libgui
2a4cbe27 22376
a90ef4bf 22377mostlyclean-libgui:
0aed8855 22378 @: $(MAKE); $(unstage)
a90ef4bf 22379 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22380 r=`${PWD_COMMAND}`; export r; \
22381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22382 $(HOST_EXPORTS) \
b813574b 22383 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22385 done; \
22121df0 22386 echo "Doing mostlyclean in libgui"; \
a90ef4bf 22387 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22390 "RANLIB=$${RANLIB}" \
0c24b341 22391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22392 mostlyclean) \
2a4cbe27
NN
22393 || exit 1
22394
a90ef4bf 22395@endif libgui
2a4cbe27 22396
a90ef4bf
JM
22397.PHONY: maybe-clean-libgui clean-libgui
22398maybe-clean-libgui:
22399@if libgui
22400maybe-clean-libgui: clean-libgui
2a4cbe27 22401
a90ef4bf 22402clean-libgui:
0aed8855 22403 @: $(MAKE); $(unstage)
a90ef4bf 22404 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22405 r=`${PWD_COMMAND}`; export r; \
22406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22407 $(HOST_EXPORTS) \
b813574b 22408 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22410 done; \
22121df0 22411 echo "Doing clean in libgui"; \
a90ef4bf 22412 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22415 "RANLIB=$${RANLIB}" \
0c24b341 22416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22417 clean) \
2a4cbe27
NN
22418 || exit 1
22419
a90ef4bf 22420@endif libgui
2a4cbe27 22421
a90ef4bf
JM
22422.PHONY: maybe-distclean-libgui distclean-libgui
22423maybe-distclean-libgui:
22424@if libgui
22425maybe-distclean-libgui: distclean-libgui
2a4cbe27 22426
a90ef4bf 22427distclean-libgui:
0aed8855 22428 @: $(MAKE); $(unstage)
a90ef4bf 22429 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22430 r=`${PWD_COMMAND}`; export r; \
22431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22432 $(HOST_EXPORTS) \
b813574b 22433 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22435 done; \
22121df0 22436 echo "Doing distclean in libgui"; \
a90ef4bf 22437 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22440 "RANLIB=$${RANLIB}" \
0c24b341 22441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22442 distclean) \
2a4cbe27
NN
22443 || exit 1
22444
a90ef4bf 22445@endif libgui
2a4cbe27 22446
a90ef4bf
JM
22447.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
22448maybe-maintainer-clean-libgui:
22449@if libgui
22450maybe-maintainer-clean-libgui: maintainer-clean-libgui
2a4cbe27 22451
a90ef4bf 22452maintainer-clean-libgui:
0aed8855 22453 @: $(MAKE); $(unstage)
a90ef4bf 22454 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22455 r=`${PWD_COMMAND}`; export r; \
22456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22457 $(HOST_EXPORTS) \
b813574b 22458 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22460 done; \
22121df0 22461 echo "Doing maintainer-clean in libgui"; \
a90ef4bf 22462 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22465 "RANLIB=$${RANLIB}" \
0c24b341 22466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22467 maintainer-clean) \
2a4cbe27
NN
22468 || exit 1
22469
a90ef4bf 22470@endif libgui
2a4cbe27 22471
2a4cbe27 22472
a7254363 22473
a90ef4bf
JM
22474.PHONY: configure-libiberty maybe-configure-libiberty
22475maybe-configure-libiberty:
93f9b408 22476@if gcc-bootstrap
a90ef4bf 22477configure-libiberty: stage_current
93f9b408 22478@endif gcc-bootstrap
a90ef4bf
JM
22479@if libiberty
22480maybe-configure-libiberty: configure-libiberty
22481configure-libiberty:
93f9b408
ILT
22482 @r=`${PWD_COMMAND}`; export r; \
22483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22484 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 22485 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
1f53ca9a 22486 $(HOST_EXPORTS) \
a90ef4bf
JM
22487 echo Configuring in $(HOST_SUBDIR)/libiberty; \
22488 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
93f9b408
ILT
22489 case $(srcdir) in \
22490 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22491 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22492 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22493 esac; \
1b6c0831
L
22494 module_srcdir=libiberty; \
22495 $(SHELL) \
22496 $$s/$$module_srcdir/configure \
22497 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22498 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22499 --target=${target_alias} @extra_host_libiberty_configure_flags@ \
93f9b408 22500 || exit 1
a90ef4bf 22501@endif libiberty
93f9b408
ILT
22502
22503
22504
a90ef4bf
JM
22505.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
22506maybe-configure-stage1-libiberty:
22507@if libiberty-bootstrap
22508maybe-configure-stage1-libiberty: configure-stage1-libiberty
22509configure-stage1-libiberty:
93f9b408 22510 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 22511 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22512 @r=`${PWD_COMMAND}`; export r; \
22513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22514 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 22515 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
1b05fbbd 22516 $(HOST_EXPORTS) \
93f9b408 22517 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22518 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
22519 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
22520 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty; \
22521 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22522 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22523 case $(srcdir) in \
22524 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22525 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22526 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22527 esac; \
1b6c0831
L
22528 module_srcdir=libiberty; \
22529 $(SHELL) $$s/$$module_srcdir/configure \
22530 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22531 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22532 --target=${target_alias} \
22533 \
a90ef4bf
JM
22534 $(STAGE1_CONFIGURE_FLAGS) \
22535 @extra_host_libiberty_configure_flags@
22536@endif libiberty-bootstrap
93f9b408 22537
a90ef4bf
JM
22538.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
22539maybe-configure-stage2-libiberty:
22540@if libiberty-bootstrap
22541maybe-configure-stage2-libiberty: configure-stage2-libiberty
22542configure-stage2-libiberty:
93f9b408 22543 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 22544 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22545 @r=`${PWD_COMMAND}`; export r; \
22546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22547 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 22548 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22549 $(HOST_EXPORTS) \
1b05fbbd 22550 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22551 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22552 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
22553 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22554 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty; \
22555 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22556 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22557 case $(srcdir) in \
22558 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22559 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22560 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22561 esac; \
1b6c0831
L
22562 module_srcdir=libiberty; \
22563 $(SHELL) $$s/$$module_srcdir/configure \
22564 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22565 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22566 --target=${target_alias} \
22121df0 22567 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22568 $(STAGE2_CONFIGURE_FLAGS) \
22569 @extra_host_libiberty_configure_flags@
22570@endif libiberty-bootstrap
93f9b408 22571
a90ef4bf
JM
22572.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
22573maybe-configure-stage3-libiberty:
22574@if libiberty-bootstrap
22575maybe-configure-stage3-libiberty: configure-stage3-libiberty
22576configure-stage3-libiberty:
93f9b408 22577 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 22578 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22579 @r=`${PWD_COMMAND}`; export r; \
22580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22581 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 22582 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22583 $(HOST_EXPORTS) \
1b05fbbd 22584 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22585 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22586 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22587 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22588 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty; \
22589 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22590 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22591 case $(srcdir) in \
22592 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22593 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22594 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22595 esac; \
1b6c0831
L
22596 module_srcdir=libiberty; \
22597 $(SHELL) $$s/$$module_srcdir/configure \
22598 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22599 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22600 --target=${target_alias} \
22121df0 22601 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22602 $(STAGE3_CONFIGURE_FLAGS) \
22603 @extra_host_libiberty_configure_flags@
22604@endif libiberty-bootstrap
93f9b408 22605
a90ef4bf
JM
22606.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
22607maybe-configure-stage4-libiberty:
22608@if libiberty-bootstrap
22609maybe-configure-stage4-libiberty: configure-stage4-libiberty
22610configure-stage4-libiberty:
93f9b408 22611 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 22612 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22613 @r=`${PWD_COMMAND}`; export r; \
22614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22615 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 22616 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22617 $(HOST_EXPORTS) \
1b05fbbd 22618 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22619 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22620 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22621 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22622 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty; \
22623 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22624 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22625 case $(srcdir) in \
22626 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22627 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22628 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22629 esac; \
1b6c0831
L
22630 module_srcdir=libiberty; \
22631 $(SHELL) $$s/$$module_srcdir/configure \
22632 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22633 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22634 --target=${target_alias} \
22121df0 22635 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22636 $(STAGE4_CONFIGURE_FLAGS) \
22637 @extra_host_libiberty_configure_flags@
22638@endif libiberty-bootstrap
93f9b408 22639
a90ef4bf
JM
22640.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
22641maybe-configure-stageprofile-libiberty:
22642@if libiberty-bootstrap
22643maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
22644configure-stageprofile-libiberty:
93f9b408 22645 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 22646 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22647 @r=`${PWD_COMMAND}`; export r; \
22648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22649 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 22650 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22651 $(HOST_EXPORTS) \
1b05fbbd
AO
22652 $(POSTSTAGE1_HOST_EXPORTS) \
22653 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22654 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22655 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22656 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty; \
22657 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22658 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22659 case $(srcdir) in \
22660 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22661 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22662 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22663 esac; \
1b6c0831
L
22664 module_srcdir=libiberty; \
22665 $(SHELL) $$s/$$module_srcdir/configure \
22666 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22667 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22668 --target=${target_alias} \
22121df0 22669 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22670 $(STAGEprofile_CONFIGURE_FLAGS) \
22671 @extra_host_libiberty_configure_flags@
22672@endif libiberty-bootstrap
93f9b408 22673
a90ef4bf
JM
22674.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
22675maybe-configure-stagefeedback-libiberty:
22676@if libiberty-bootstrap
22677maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
22678configure-stagefeedback-libiberty:
93f9b408 22679 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 22680 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22681 @r=`${PWD_COMMAND}`; export r; \
22682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22683 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 22684 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22685 $(HOST_EXPORTS) \
1b05fbbd
AO
22686 $(POSTSTAGE1_HOST_EXPORTS) \
22687 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22688 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
22689 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22690 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty; \
22691 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22692 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22693 case $(srcdir) in \
22694 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22695 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22696 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22697 esac; \
1b6c0831
L
22698 module_srcdir=libiberty; \
22699 $(SHELL) $$s/$$module_srcdir/configure \
22700 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22701 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22702 --target=${target_alias} \
22121df0 22703 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22704 $(STAGEfeedback_CONFIGURE_FLAGS) \
22705 @extra_host_libiberty_configure_flags@
22706@endif libiberty-bootstrap
93f9b408
ILT
22707
22708
22709
22710
22711
a90ef4bf
JM
22712.PHONY: all-libiberty maybe-all-libiberty
22713maybe-all-libiberty:
93f9b408 22714@if gcc-bootstrap
a90ef4bf 22715all-libiberty: stage_current
93f9b408 22716@endif gcc-bootstrap
a90ef4bf
JM
22717@if libiberty
22718TARGET-libiberty=all
22719maybe-all-libiberty: all-libiberty
22720all-libiberty: configure-libiberty
93f9b408
ILT
22721 @r=`${PWD_COMMAND}`; export r; \
22722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22723 $(HOST_EXPORTS) \
a90ef4bf 22724 (cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22725 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22726 $(TARGET-libiberty))
22727@endif libiberty
93f9b408
ILT
22728
22729
22730
a90ef4bf
JM
22731.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
22732.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
22733maybe-all-stage1-libiberty:
22734maybe-clean-stage1-libiberty:
22735@if libiberty-bootstrap
22736maybe-all-stage1-libiberty: all-stage1-libiberty
22737all-stage1: all-stage1-libiberty
22738TARGET-stage1-libiberty = $(TARGET-libiberty)
22739all-stage1-libiberty: configure-stage1-libiberty
93f9b408
ILT
22740 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22741 @r=`${PWD_COMMAND}`; export r; \
22742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22743 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 22744 $(HOST_EXPORTS) \
a90ef4bf 22745 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22746 \
93f9b408 22747 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22748 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 22749 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
22750 LIBCFLAGS="$(LIBCFLAGS)" \
22751 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22752 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22753 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
22754 $(EXTRA_HOST_FLAGS) \
22755 $(STAGE1_FLAGS_TO_PASS) \
05a13254 22756 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 22757 $(TARGET-stage1-libiberty)
93f9b408 22758
a90ef4bf
JM
22759maybe-clean-stage1-libiberty: clean-stage1-libiberty
22760clean-stage1: clean-stage1-libiberty
22761clean-stage1-libiberty:
93f9b408 22762 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 22763 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22764 else \
a90ef4bf 22765 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22766 $(MAKE) stage1-start; \
22767 fi; \
a90ef4bf 22768 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22769 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 22770 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22771@endif libiberty-bootstrap
93f9b408
ILT
22772
22773
a90ef4bf
JM
22774.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
22775.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
22776maybe-all-stage2-libiberty:
22777maybe-clean-stage2-libiberty:
22778@if libiberty-bootstrap
22779maybe-all-stage2-libiberty: all-stage2-libiberty
22780all-stage2: all-stage2-libiberty
22781TARGET-stage2-libiberty = $(TARGET-libiberty)
22782all-stage2-libiberty: configure-stage2-libiberty
93f9b408
ILT
22783 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22784 @r=`${PWD_COMMAND}`; export r; \
22785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22786 TFLAGS="$(STAGE2_TFLAGS)"; \
93f9b408 22787 $(HOST_EXPORTS) \
1f53ca9a 22788 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22789 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22790 \
93f9b408 22791 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22792 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 22793 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
22794 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22795 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22796 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22797 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22798 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22799 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 22800 $(TARGET-stage2-libiberty)
93f9b408 22801
a90ef4bf
JM
22802maybe-clean-stage2-libiberty: clean-stage2-libiberty
22803clean-stage2: clean-stage2-libiberty
22804clean-stage2-libiberty:
93f9b408 22805 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 22806 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22807 else \
a90ef4bf 22808 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22809 $(MAKE) stage2-start; \
22810 fi; \
a90ef4bf 22811 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22812 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22813@endif libiberty-bootstrap
93f9b408
ILT
22814
22815
a90ef4bf
JM
22816.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
22817.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
22818maybe-all-stage3-libiberty:
22819maybe-clean-stage3-libiberty:
22820@if libiberty-bootstrap
22821maybe-all-stage3-libiberty: all-stage3-libiberty
22822all-stage3: all-stage3-libiberty
22823TARGET-stage3-libiberty = $(TARGET-libiberty)
22824all-stage3-libiberty: configure-stage3-libiberty
93f9b408
ILT
22825 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22826 @r=`${PWD_COMMAND}`; export r; \
22827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22828 TFLAGS="$(STAGE3_TFLAGS)"; \
93f9b408 22829 $(HOST_EXPORTS) \
1f53ca9a 22830 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22831 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22832 \
93f9b408 22833 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22834 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 22835 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
22836 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22837 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22838 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22839 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22840 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22841 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 22842 $(TARGET-stage3-libiberty)
93f9b408 22843
a90ef4bf
JM
22844maybe-clean-stage3-libiberty: clean-stage3-libiberty
22845clean-stage3: clean-stage3-libiberty
22846clean-stage3-libiberty:
93f9b408 22847 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 22848 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22849 else \
a90ef4bf 22850 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22851 $(MAKE) stage3-start; \
22852 fi; \
a90ef4bf 22853 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22854 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22855@endif libiberty-bootstrap
93f9b408
ILT
22856
22857
a90ef4bf
JM
22858.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
22859.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
22860maybe-all-stage4-libiberty:
22861maybe-clean-stage4-libiberty:
22862@if libiberty-bootstrap
22863maybe-all-stage4-libiberty: all-stage4-libiberty
22864all-stage4: all-stage4-libiberty
22865TARGET-stage4-libiberty = $(TARGET-libiberty)
22866all-stage4-libiberty: configure-stage4-libiberty
93f9b408
ILT
22867 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22868 @r=`${PWD_COMMAND}`; export r; \
22869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22870 TFLAGS="$(STAGE4_TFLAGS)"; \
93f9b408 22871 $(HOST_EXPORTS) \
1f53ca9a 22872 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22873 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22874 \
93f9b408 22875 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22876 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 22877 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
93f9b408 22878 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
22879 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22880 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22881 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22882 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22883 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 22884 $(TARGET-stage4-libiberty)
93f9b408 22885
a90ef4bf
JM
22886maybe-clean-stage4-libiberty: clean-stage4-libiberty
22887clean-stage4: clean-stage4-libiberty
22888clean-stage4-libiberty:
93f9b408 22889 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 22890 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22891 else \
a90ef4bf 22892 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22893 $(MAKE) stage4-start; \
22894 fi; \
a90ef4bf 22895 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22896 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22897@endif libiberty-bootstrap
93f9b408
ILT
22898
22899
a90ef4bf
JM
22900.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
22901.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
22902maybe-all-stageprofile-libiberty:
22903maybe-clean-stageprofile-libiberty:
22904@if libiberty-bootstrap
22905maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
22906all-stageprofile: all-stageprofile-libiberty
22907TARGET-stageprofile-libiberty = $(TARGET-libiberty)
22908all-stageprofile-libiberty: configure-stageprofile-libiberty
93f9b408
ILT
22909 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22910 @r=`${PWD_COMMAND}`; export r; \
22911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22912 TFLAGS="$(STAGEprofile_TFLAGS)"; \
93f9b408 22913 $(HOST_EXPORTS) \
1f53ca9a 22914 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22915 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22916 \
93f9b408 22917 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22918 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 22919 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
22920 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
22921 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22922 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22923 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22924 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22925 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 22926 $(TARGET-stageprofile-libiberty)
93f9b408 22927
a90ef4bf
JM
22928maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
22929clean-stageprofile: clean-stageprofile-libiberty
22930clean-stageprofile-libiberty:
93f9b408 22931 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 22932 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22933 else \
a90ef4bf 22934 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22935 $(MAKE) stageprofile-start; \
22936 fi; \
a90ef4bf 22937 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22938 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22939@endif libiberty-bootstrap
93f9b408
ILT
22940
22941
a90ef4bf
JM
22942.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
22943.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
22944maybe-all-stagefeedback-libiberty:
22945maybe-clean-stagefeedback-libiberty:
22946@if libiberty-bootstrap
22947maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
22948all-stagefeedback: all-stagefeedback-libiberty
22949TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
22950all-stagefeedback-libiberty: configure-stagefeedback-libiberty
93f9b408
ILT
22951 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
22952 @r=`${PWD_COMMAND}`; export r; \
22953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22954 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
93f9b408 22955 $(HOST_EXPORTS) \
1f53ca9a 22956 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22957 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22958 \
93f9b408 22959 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22960 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 22961 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
22962 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
22963 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22964 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22965 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22966 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22967 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 22968 $(TARGET-stagefeedback-libiberty)
93f9b408 22969
a90ef4bf
JM
22970maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
22971clean-stagefeedback: clean-stagefeedback-libiberty
22972clean-stagefeedback-libiberty:
93f9b408 22973 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 22974 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22975 else \
a90ef4bf 22976 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22977 $(MAKE) stagefeedback-start; \
22978 fi; \
a90ef4bf 22979 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22980 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22981@endif libiberty-bootstrap
93f9b408
ILT
22982
22983
22984
22985
22986
a90ef4bf
JM
22987.PHONY: check-libiberty maybe-check-libiberty
22988maybe-check-libiberty:
22989@if libiberty
22990maybe-check-libiberty: check-libiberty
93f9b408 22991
a90ef4bf 22992check-libiberty:
93f9b408
ILT
22993 @: $(MAKE); $(unstage)
22994 @r=`${PWD_COMMAND}`; export r; \
22995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22996 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 22997 (cd $(HOST_SUBDIR)/libiberty && \
f91ca6bc 22998 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
93f9b408 22999
a90ef4bf 23000@endif libiberty
93f9b408 23001
a90ef4bf
JM
23002.PHONY: install-libiberty maybe-install-libiberty
23003maybe-install-libiberty:
23004@if libiberty
23005maybe-install-libiberty: install-libiberty
93f9b408 23006
a90ef4bf 23007install-libiberty: installdirs
93f9b408
ILT
23008 @: $(MAKE); $(unstage)
23009 @r=`${PWD_COMMAND}`; export r; \
23010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23011 $(HOST_EXPORTS) \
a90ef4bf 23012 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23013 $(MAKE) $(FLAGS_TO_PASS) install)
23014
a90ef4bf 23015@endif libiberty
93f9b408 23016
a90ef4bf
JM
23017.PHONY: install-strip-libiberty maybe-install-strip-libiberty
23018maybe-install-strip-libiberty:
23019@if libiberty
23020maybe-install-strip-libiberty: install-strip-libiberty
9b980aa1 23021
a90ef4bf 23022install-strip-libiberty: installdirs
9b980aa1
RW
23023 @: $(MAKE); $(unstage)
23024 @r=`${PWD_COMMAND}`; export r; \
23025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23026 $(HOST_EXPORTS) \
a90ef4bf 23027 (cd $(HOST_SUBDIR)/libiberty && \
9b980aa1
RW
23028 $(MAKE) $(FLAGS_TO_PASS) install-strip)
23029
a90ef4bf 23030@endif libiberty
9b980aa1 23031
93f9b408
ILT
23032# Other targets (info, dvi, pdf, etc.)
23033
a90ef4bf
JM
23034.PHONY: maybe-info-libiberty info-libiberty
23035maybe-info-libiberty:
23036@if libiberty
23037maybe-info-libiberty: info-libiberty
93f9b408 23038
a90ef4bf
JM
23039info-libiberty: \
23040 configure-libiberty
23041 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23042 r=`${PWD_COMMAND}`; export r; \
23043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23044 $(HOST_EXPORTS) \
23045 for flag in $(EXTRA_HOST_FLAGS) ; do \
23046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23047 done; \
22121df0 23048 echo "Doing info in libiberty"; \
a90ef4bf 23049 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23052 "RANLIB=$${RANLIB}" \
23053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23054 info) \
23055 || exit 1
23056
a90ef4bf 23057@endif libiberty
93f9b408 23058
a90ef4bf
JM
23059.PHONY: maybe-dvi-libiberty dvi-libiberty
23060maybe-dvi-libiberty:
23061@if libiberty
23062maybe-dvi-libiberty: dvi-libiberty
93f9b408 23063
a90ef4bf
JM
23064dvi-libiberty: \
23065 configure-libiberty
23066 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23067 r=`${PWD_COMMAND}`; export r; \
23068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23069 $(HOST_EXPORTS) \
23070 for flag in $(EXTRA_HOST_FLAGS) ; do \
23071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23072 done; \
22121df0 23073 echo "Doing dvi in libiberty"; \
a90ef4bf 23074 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23077 "RANLIB=$${RANLIB}" \
23078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23079 dvi) \
23080 || exit 1
23081
a90ef4bf 23082@endif libiberty
93f9b408 23083
a90ef4bf
JM
23084.PHONY: maybe-pdf-libiberty pdf-libiberty
23085maybe-pdf-libiberty:
23086@if libiberty
23087maybe-pdf-libiberty: pdf-libiberty
93f9b408 23088
a90ef4bf
JM
23089pdf-libiberty: \
23090 configure-libiberty
23091 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23092 r=`${PWD_COMMAND}`; export r; \
23093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23094 $(HOST_EXPORTS) \
23095 for flag in $(EXTRA_HOST_FLAGS) ; do \
23096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23097 done; \
22121df0 23098 echo "Doing pdf in libiberty"; \
a90ef4bf 23099 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23102 "RANLIB=$${RANLIB}" \
23103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23104 pdf) \
23105 || exit 1
23106
a90ef4bf 23107@endif libiberty
93f9b408 23108
a90ef4bf
JM
23109.PHONY: maybe-html-libiberty html-libiberty
23110maybe-html-libiberty:
23111@if libiberty
23112maybe-html-libiberty: html-libiberty
93f9b408 23113
a90ef4bf
JM
23114html-libiberty: \
23115 configure-libiberty
23116 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23117 r=`${PWD_COMMAND}`; export r; \
23118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23119 $(HOST_EXPORTS) \
23120 for flag in $(EXTRA_HOST_FLAGS) ; do \
23121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23122 done; \
22121df0 23123 echo "Doing html in libiberty"; \
a90ef4bf 23124 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23127 "RANLIB=$${RANLIB}" \
23128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23129 html) \
23130 || exit 1
23131
a90ef4bf 23132@endif libiberty
93f9b408 23133
a90ef4bf
JM
23134.PHONY: maybe-TAGS-libiberty TAGS-libiberty
23135maybe-TAGS-libiberty:
23136@if libiberty
23137maybe-TAGS-libiberty: TAGS-libiberty
93f9b408 23138
a90ef4bf
JM
23139TAGS-libiberty: \
23140 configure-libiberty
23141 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23142 r=`${PWD_COMMAND}`; export r; \
23143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23144 $(HOST_EXPORTS) \
23145 for flag in $(EXTRA_HOST_FLAGS) ; do \
23146 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23147 done; \
22121df0 23148 echo "Doing TAGS in libiberty"; \
a90ef4bf 23149 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23152 "RANLIB=$${RANLIB}" \
23153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23154 TAGS) \
23155 || exit 1
23156
a90ef4bf 23157@endif libiberty
93f9b408 23158
a90ef4bf
JM
23159.PHONY: maybe-install-info-libiberty install-info-libiberty
23160maybe-install-info-libiberty:
23161@if libiberty
23162maybe-install-info-libiberty: install-info-libiberty
93f9b408 23163
a90ef4bf
JM
23164install-info-libiberty: \
23165 configure-libiberty \
23166 info-libiberty
23167 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23168 r=`${PWD_COMMAND}`; export r; \
23169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23170 $(HOST_EXPORTS) \
23171 for flag in $(EXTRA_HOST_FLAGS) ; do \
23172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23173 done; \
22121df0 23174 echo "Doing install-info in libiberty"; \
a90ef4bf 23175 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23178 "RANLIB=$${RANLIB}" \
23179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23180 install-info) \
23181 || exit 1
23182
a90ef4bf 23183@endif libiberty
93f9b408 23184
a90ef4bf
JM
23185.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
23186maybe-install-pdf-libiberty:
23187@if libiberty
23188maybe-install-pdf-libiberty: install-pdf-libiberty
93f9b408 23189
a90ef4bf
JM
23190install-pdf-libiberty: \
23191 configure-libiberty \
23192 pdf-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 install-pdf 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 install-pdf) \
23207 || exit 1
23208
a90ef4bf 23209@endif libiberty
93f9b408 23210
a90ef4bf
JM
23211.PHONY: maybe-install-html-libiberty install-html-libiberty
23212maybe-install-html-libiberty:
23213@if libiberty
23214maybe-install-html-libiberty: install-html-libiberty
93f9b408 23215
a90ef4bf
JM
23216install-html-libiberty: \
23217 configure-libiberty \
23218 html-libiberty
23219 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23220 r=`${PWD_COMMAND}`; export r; \
23221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23222 $(HOST_EXPORTS) \
23223 for flag in $(EXTRA_HOST_FLAGS) ; do \
23224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23225 done; \
22121df0 23226 echo "Doing install-html in libiberty"; \
a90ef4bf 23227 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23230 "RANLIB=$${RANLIB}" \
23231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23232 install-html) \
23233 || exit 1
23234
a90ef4bf 23235@endif libiberty
93f9b408 23236
a90ef4bf
JM
23237.PHONY: maybe-installcheck-libiberty installcheck-libiberty
23238maybe-installcheck-libiberty:
23239@if libiberty
23240maybe-installcheck-libiberty: installcheck-libiberty
93f9b408 23241
a90ef4bf
JM
23242installcheck-libiberty: \
23243 configure-libiberty
23244 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23245 r=`${PWD_COMMAND}`; export r; \
23246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23247 $(HOST_EXPORTS) \
23248 for flag in $(EXTRA_HOST_FLAGS) ; do \
23249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23250 done; \
22121df0 23251 echo "Doing installcheck in libiberty"; \
a90ef4bf 23252 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23255 "RANLIB=$${RANLIB}" \
23256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23257 installcheck) \
23258 || exit 1
23259
a90ef4bf 23260@endif libiberty
93f9b408 23261
a90ef4bf
JM
23262.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
23263maybe-mostlyclean-libiberty:
23264@if libiberty
23265maybe-mostlyclean-libiberty: mostlyclean-libiberty
93f9b408 23266
a90ef4bf
JM
23267mostlyclean-libiberty:
23268 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23269 r=`${PWD_COMMAND}`; export r; \
23270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23271 $(HOST_EXPORTS) \
23272 for flag in $(EXTRA_HOST_FLAGS) ; do \
23273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23274 done; \
22121df0 23275 echo "Doing mostlyclean in libiberty"; \
a90ef4bf 23276 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23279 "RANLIB=$${RANLIB}" \
23280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23281 mostlyclean) \
23282 || exit 1
23283
a90ef4bf 23284@endif libiberty
93f9b408 23285
a90ef4bf
JM
23286.PHONY: maybe-clean-libiberty clean-libiberty
23287maybe-clean-libiberty:
23288@if libiberty
23289maybe-clean-libiberty: clean-libiberty
93f9b408 23290
a90ef4bf
JM
23291clean-libiberty:
23292 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23293 r=`${PWD_COMMAND}`; export r; \
23294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23295 $(HOST_EXPORTS) \
23296 for flag in $(EXTRA_HOST_FLAGS) ; do \
23297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23298 done; \
22121df0 23299 echo "Doing clean in libiberty"; \
a90ef4bf 23300 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23303 "RANLIB=$${RANLIB}" \
23304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23305 clean) \
23306 || exit 1
23307
a90ef4bf 23308@endif libiberty
93f9b408 23309
a90ef4bf
JM
23310.PHONY: maybe-distclean-libiberty distclean-libiberty
23311maybe-distclean-libiberty:
23312@if libiberty
23313maybe-distclean-libiberty: distclean-libiberty
93f9b408 23314
a90ef4bf
JM
23315distclean-libiberty:
23316 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23317 r=`${PWD_COMMAND}`; export r; \
23318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23319 $(HOST_EXPORTS) \
23320 for flag in $(EXTRA_HOST_FLAGS) ; do \
23321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23322 done; \
22121df0 23323 echo "Doing distclean in libiberty"; \
a90ef4bf 23324 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23327 "RANLIB=$${RANLIB}" \
23328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23329 distclean) \
23330 || exit 1
23331
a90ef4bf 23332@endif libiberty
93f9b408 23333
a90ef4bf
JM
23334.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
23335maybe-maintainer-clean-libiberty:
23336@if libiberty
23337maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
93f9b408 23338
a90ef4bf
JM
23339maintainer-clean-libiberty:
23340 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23341 r=`${PWD_COMMAND}`; export r; \
23342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23343 $(HOST_EXPORTS) \
23344 for flag in $(EXTRA_HOST_FLAGS) ; do \
23345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23346 done; \
22121df0 23347 echo "Doing maintainer-clean in libiberty"; \
a90ef4bf 23348 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23351 "RANLIB=$${RANLIB}" \
23352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23353 maintainer-clean) \
23354 || exit 1
23355
a90ef4bf 23356@endif libiberty
93f9b408
ILT
23357
23358
23359
1b6c0831
L
23360.PHONY: configure-libiberty-linker-plugin maybe-configure-libiberty-linker-plugin
23361maybe-configure-libiberty-linker-plugin:
23362@if gcc-bootstrap
23363configure-libiberty-linker-plugin: stage_current
23364@endif gcc-bootstrap
23365@if libiberty-linker-plugin
23366maybe-configure-libiberty-linker-plugin: configure-libiberty-linker-plugin
23367configure-libiberty-linker-plugin:
23368 @r=`${PWD_COMMAND}`; export r; \
23369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23370 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
22121df0 23371 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23372 $(HOST_EXPORTS) \
23373 echo Configuring in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23374 cd "$(HOST_SUBDIR)/libiberty-linker-plugin" || exit 1; \
23375 case $(srcdir) in \
23376 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23377 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23378 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23379 esac; \
23380 module_srcdir=libiberty; \
23381 $(SHELL) \
23382 $$s/$$module_srcdir/configure \
23383 --srcdir=$${topdir}/$$module_srcdir \
23384 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23385 --target=${target_alias} @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
23386 || exit 1
23387@endif libiberty-linker-plugin
23388
23389
23390
23391.PHONY: configure-stage1-libiberty-linker-plugin maybe-configure-stage1-libiberty-linker-plugin
23392maybe-configure-stage1-libiberty-linker-plugin:
23393@if libiberty-linker-plugin-bootstrap
23394maybe-configure-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23395configure-stage1-libiberty-linker-plugin:
23396 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23397 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23398 @r=`${PWD_COMMAND}`; export r; \
23399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23400 TFLAGS="$(STAGE1_TFLAGS)"; \
23401 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23402 $(HOST_EXPORTS) \
23403 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
23404 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
23405 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
23406 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23407 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23408 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23409 case $(srcdir) in \
23410 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23411 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23412 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23413 esac; \
23414 module_srcdir=libiberty; \
23415 $(SHELL) $$s/$$module_srcdir/configure \
23416 --srcdir=$${topdir}/$$module_srcdir \
23417 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23418 --target=${target_alias} \
23419 \
23420 $(STAGE1_CONFIGURE_FLAGS) \
23421 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23422@endif libiberty-linker-plugin-bootstrap
23423
23424.PHONY: configure-stage2-libiberty-linker-plugin maybe-configure-stage2-libiberty-linker-plugin
23425maybe-configure-stage2-libiberty-linker-plugin:
23426@if libiberty-linker-plugin-bootstrap
23427maybe-configure-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23428configure-stage2-libiberty-linker-plugin:
23429 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23430 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23431 @r=`${PWD_COMMAND}`; export r; \
23432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23433 TFLAGS="$(STAGE2_TFLAGS)"; \
23434 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23435 $(HOST_EXPORTS) \
23436 $(POSTSTAGE1_HOST_EXPORTS) \
23437 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
23438 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
23439 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23440 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23441 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23442 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23443 case $(srcdir) in \
23444 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23445 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23446 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23447 esac; \
23448 module_srcdir=libiberty; \
23449 $(SHELL) $$s/$$module_srcdir/configure \
23450 --srcdir=$${topdir}/$$module_srcdir \
23451 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23452 --target=${target_alias} \
22121df0 23453 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23454 $(STAGE2_CONFIGURE_FLAGS) \
23455 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23456@endif libiberty-linker-plugin-bootstrap
23457
23458.PHONY: configure-stage3-libiberty-linker-plugin maybe-configure-stage3-libiberty-linker-plugin
23459maybe-configure-stage3-libiberty-linker-plugin:
23460@if libiberty-linker-plugin-bootstrap
23461maybe-configure-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23462configure-stage3-libiberty-linker-plugin:
23463 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23464 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23465 @r=`${PWD_COMMAND}`; export r; \
23466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23467 TFLAGS="$(STAGE3_TFLAGS)"; \
23468 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23469 $(HOST_EXPORTS) \
23470 $(POSTSTAGE1_HOST_EXPORTS) \
23471 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
23472 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
23473 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23474 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23475 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23476 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23477 case $(srcdir) in \
23478 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23479 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23480 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23481 esac; \
23482 module_srcdir=libiberty; \
23483 $(SHELL) $$s/$$module_srcdir/configure \
23484 --srcdir=$${topdir}/$$module_srcdir \
23485 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23486 --target=${target_alias} \
22121df0 23487 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23488 $(STAGE3_CONFIGURE_FLAGS) \
23489 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23490@endif libiberty-linker-plugin-bootstrap
23491
23492.PHONY: configure-stage4-libiberty-linker-plugin maybe-configure-stage4-libiberty-linker-plugin
23493maybe-configure-stage4-libiberty-linker-plugin:
23494@if libiberty-linker-plugin-bootstrap
23495maybe-configure-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23496configure-stage4-libiberty-linker-plugin:
23497 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23498 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23499 @r=`${PWD_COMMAND}`; export r; \
23500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23501 TFLAGS="$(STAGE4_TFLAGS)"; \
23502 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23503 $(HOST_EXPORTS) \
23504 $(POSTSTAGE1_HOST_EXPORTS) \
23505 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
23506 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
23507 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23508 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23509 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23510 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23511 case $(srcdir) in \
23512 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23513 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23514 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23515 esac; \
23516 module_srcdir=libiberty; \
23517 $(SHELL) $$s/$$module_srcdir/configure \
23518 --srcdir=$${topdir}/$$module_srcdir \
23519 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23520 --target=${target_alias} \
22121df0 23521 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23522 $(STAGE4_CONFIGURE_FLAGS) \
23523 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23524@endif libiberty-linker-plugin-bootstrap
23525
23526.PHONY: configure-stageprofile-libiberty-linker-plugin maybe-configure-stageprofile-libiberty-linker-plugin
23527maybe-configure-stageprofile-libiberty-linker-plugin:
23528@if libiberty-linker-plugin-bootstrap
23529maybe-configure-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23530configure-stageprofile-libiberty-linker-plugin:
23531 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23532 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23533 @r=`${PWD_COMMAND}`; export r; \
23534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23535 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23536 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23537 $(HOST_EXPORTS) \
23538 $(POSTSTAGE1_HOST_EXPORTS) \
23539 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
23540 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
23541 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23542 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23543 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23544 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23545 case $(srcdir) in \
23546 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23547 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23548 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23549 esac; \
23550 module_srcdir=libiberty; \
23551 $(SHELL) $$s/$$module_srcdir/configure \
23552 --srcdir=$${topdir}/$$module_srcdir \
23553 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23554 --target=${target_alias} \
22121df0 23555 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23556 $(STAGEprofile_CONFIGURE_FLAGS) \
23557 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23558@endif libiberty-linker-plugin-bootstrap
23559
23560.PHONY: configure-stagefeedback-libiberty-linker-plugin maybe-configure-stagefeedback-libiberty-linker-plugin
23561maybe-configure-stagefeedback-libiberty-linker-plugin:
23562@if libiberty-linker-plugin-bootstrap
23563maybe-configure-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23564configure-stagefeedback-libiberty-linker-plugin:
23565 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23566 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23567 @r=`${PWD_COMMAND}`; export r; \
23568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23569 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23570 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23571 $(HOST_EXPORTS) \
23572 $(POSTSTAGE1_HOST_EXPORTS) \
23573 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
23574 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
23575 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23576 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23577 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23578 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23579 case $(srcdir) in \
23580 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23581 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23582 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23583 esac; \
23584 module_srcdir=libiberty; \
23585 $(SHELL) $$s/$$module_srcdir/configure \
23586 --srcdir=$${topdir}/$$module_srcdir \
23587 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23588 --target=${target_alias} \
22121df0 23589 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23590 $(STAGEfeedback_CONFIGURE_FLAGS) \
23591 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23592@endif libiberty-linker-plugin-bootstrap
23593
23594
23595
23596
23597
23598.PHONY: all-libiberty-linker-plugin maybe-all-libiberty-linker-plugin
23599maybe-all-libiberty-linker-plugin:
23600@if gcc-bootstrap
23601all-libiberty-linker-plugin: stage_current
23602@endif gcc-bootstrap
23603@if libiberty-linker-plugin
23604TARGET-libiberty-linker-plugin=all
23605maybe-all-libiberty-linker-plugin: all-libiberty-linker-plugin
23606all-libiberty-linker-plugin: configure-libiberty-linker-plugin
23607 @r=`${PWD_COMMAND}`; export r; \
23608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23609 $(HOST_EXPORTS) \
23610 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23611 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23612 $(TARGET-libiberty-linker-plugin))
23613@endif libiberty-linker-plugin
23614
23615
23616
23617.PHONY: all-stage1-libiberty-linker-plugin maybe-all-stage1-libiberty-linker-plugin
23618.PHONY: clean-stage1-libiberty-linker-plugin maybe-clean-stage1-libiberty-linker-plugin
23619maybe-all-stage1-libiberty-linker-plugin:
23620maybe-clean-stage1-libiberty-linker-plugin:
23621@if libiberty-linker-plugin-bootstrap
23622maybe-all-stage1-libiberty-linker-plugin: all-stage1-libiberty-linker-plugin
23623all-stage1: all-stage1-libiberty-linker-plugin
23624TARGET-stage1-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23625all-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23626 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23627 @r=`${PWD_COMMAND}`; export r; \
23628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23629 TFLAGS="$(STAGE1_TFLAGS)"; \
23630 $(HOST_EXPORTS) \
23631 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23632 \
1b6c0831
L
23633 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23634 CFLAGS="$(STAGE1_CFLAGS)" \
23635 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
23636 LIBCFLAGS="$(LIBCFLAGS)" \
23637 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23638 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23639 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23640 $(EXTRA_HOST_FLAGS) \
23641 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23642 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
23643 $(TARGET-stage1-libiberty-linker-plugin)
23644
23645maybe-clean-stage1-libiberty-linker-plugin: clean-stage1-libiberty-linker-plugin
23646clean-stage1: clean-stage1-libiberty-linker-plugin
23647clean-stage1-libiberty-linker-plugin:
23648 @if [ $(current_stage) = stage1 ]; then \
23649 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23650 else \
23651 [ -f $(HOST_SUBDIR)/stage1-libiberty-linker-plugin/Makefile ] || exit 0; \
23652 $(MAKE) stage1-start; \
23653 fi; \
23654 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23655 $(MAKE) $(EXTRA_HOST_FLAGS) \
23656 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23657@endif libiberty-linker-plugin-bootstrap
23658
23659
23660.PHONY: all-stage2-libiberty-linker-plugin maybe-all-stage2-libiberty-linker-plugin
23661.PHONY: clean-stage2-libiberty-linker-plugin maybe-clean-stage2-libiberty-linker-plugin
23662maybe-all-stage2-libiberty-linker-plugin:
23663maybe-clean-stage2-libiberty-linker-plugin:
23664@if libiberty-linker-plugin-bootstrap
23665maybe-all-stage2-libiberty-linker-plugin: all-stage2-libiberty-linker-plugin
23666all-stage2: all-stage2-libiberty-linker-plugin
23667TARGET-stage2-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23668all-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23669 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23670 @r=`${PWD_COMMAND}`; export r; \
23671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23672 TFLAGS="$(STAGE2_TFLAGS)"; \
23673 $(HOST_EXPORTS) \
23674 $(POSTSTAGE1_HOST_EXPORTS) \
23675 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23676 \
1b6c0831
L
23677 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23678 CFLAGS="$(STAGE2_CFLAGS)" \
23679 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
23680 LIBCFLAGS="$(STAGE2_CFLAGS)" \
23681 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23682 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23683 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23684 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23685 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
23686 $(TARGET-stage2-libiberty-linker-plugin)
23687
23688maybe-clean-stage2-libiberty-linker-plugin: clean-stage2-libiberty-linker-plugin
23689clean-stage2: clean-stage2-libiberty-linker-plugin
23690clean-stage2-libiberty-linker-plugin:
23691 @if [ $(current_stage) = stage2 ]; then \
23692 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23693 else \
23694 [ -f $(HOST_SUBDIR)/stage2-libiberty-linker-plugin/Makefile ] || exit 0; \
23695 $(MAKE) stage2-start; \
23696 fi; \
23697 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23698 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23699@endif libiberty-linker-plugin-bootstrap
23700
23701
23702.PHONY: all-stage3-libiberty-linker-plugin maybe-all-stage3-libiberty-linker-plugin
23703.PHONY: clean-stage3-libiberty-linker-plugin maybe-clean-stage3-libiberty-linker-plugin
23704maybe-all-stage3-libiberty-linker-plugin:
23705maybe-clean-stage3-libiberty-linker-plugin:
23706@if libiberty-linker-plugin-bootstrap
23707maybe-all-stage3-libiberty-linker-plugin: all-stage3-libiberty-linker-plugin
23708all-stage3: all-stage3-libiberty-linker-plugin
23709TARGET-stage3-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23710all-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23711 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23712 @r=`${PWD_COMMAND}`; export r; \
23713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23714 TFLAGS="$(STAGE3_TFLAGS)"; \
23715 $(HOST_EXPORTS) \
23716 $(POSTSTAGE1_HOST_EXPORTS) \
23717 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23718 \
1b6c0831
L
23719 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23720 CFLAGS="$(STAGE3_CFLAGS)" \
23721 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
23722 LIBCFLAGS="$(STAGE3_CFLAGS)" \
23723 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23724 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23725 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23726 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23727 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
23728 $(TARGET-stage3-libiberty-linker-plugin)
23729
23730maybe-clean-stage3-libiberty-linker-plugin: clean-stage3-libiberty-linker-plugin
23731clean-stage3: clean-stage3-libiberty-linker-plugin
23732clean-stage3-libiberty-linker-plugin:
23733 @if [ $(current_stage) = stage3 ]; then \
23734 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23735 else \
23736 [ -f $(HOST_SUBDIR)/stage3-libiberty-linker-plugin/Makefile ] || exit 0; \
23737 $(MAKE) stage3-start; \
23738 fi; \
23739 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23740 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23741@endif libiberty-linker-plugin-bootstrap
23742
23743
23744.PHONY: all-stage4-libiberty-linker-plugin maybe-all-stage4-libiberty-linker-plugin
23745.PHONY: clean-stage4-libiberty-linker-plugin maybe-clean-stage4-libiberty-linker-plugin
23746maybe-all-stage4-libiberty-linker-plugin:
23747maybe-clean-stage4-libiberty-linker-plugin:
23748@if libiberty-linker-plugin-bootstrap
23749maybe-all-stage4-libiberty-linker-plugin: all-stage4-libiberty-linker-plugin
23750all-stage4: all-stage4-libiberty-linker-plugin
23751TARGET-stage4-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23752all-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23753 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23754 @r=`${PWD_COMMAND}`; export r; \
23755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23756 TFLAGS="$(STAGE4_TFLAGS)"; \
23757 $(HOST_EXPORTS) \
23758 $(POSTSTAGE1_HOST_EXPORTS) \
23759 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23760 \
1b6c0831
L
23761 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23762 CFLAGS="$(STAGE4_CFLAGS)" \
23763 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
23764 LIBCFLAGS="$(STAGE4_CFLAGS)" \
23765 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23766 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23767 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23768 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23769 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
23770 $(TARGET-stage4-libiberty-linker-plugin)
23771
23772maybe-clean-stage4-libiberty-linker-plugin: clean-stage4-libiberty-linker-plugin
23773clean-stage4: clean-stage4-libiberty-linker-plugin
23774clean-stage4-libiberty-linker-plugin:
23775 @if [ $(current_stage) = stage4 ]; then \
23776 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23777 else \
23778 [ -f $(HOST_SUBDIR)/stage4-libiberty-linker-plugin/Makefile ] || exit 0; \
23779 $(MAKE) stage4-start; \
23780 fi; \
23781 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23782 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23783@endif libiberty-linker-plugin-bootstrap
23784
23785
23786.PHONY: all-stageprofile-libiberty-linker-plugin maybe-all-stageprofile-libiberty-linker-plugin
23787.PHONY: clean-stageprofile-libiberty-linker-plugin maybe-clean-stageprofile-libiberty-linker-plugin
23788maybe-all-stageprofile-libiberty-linker-plugin:
23789maybe-clean-stageprofile-libiberty-linker-plugin:
23790@if libiberty-linker-plugin-bootstrap
23791maybe-all-stageprofile-libiberty-linker-plugin: all-stageprofile-libiberty-linker-plugin
23792all-stageprofile: all-stageprofile-libiberty-linker-plugin
23793TARGET-stageprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23794all-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23795 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23796 @r=`${PWD_COMMAND}`; export r; \
23797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23798 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23799 $(HOST_EXPORTS) \
23800 $(POSTSTAGE1_HOST_EXPORTS) \
23801 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23802 \
1b6c0831
L
23803 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23804 CFLAGS="$(STAGEprofile_CFLAGS)" \
23805 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
23806 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23807 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23808 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23809 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23810 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23811 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
23812 $(TARGET-stageprofile-libiberty-linker-plugin)
23813
23814maybe-clean-stageprofile-libiberty-linker-plugin: clean-stageprofile-libiberty-linker-plugin
23815clean-stageprofile: clean-stageprofile-libiberty-linker-plugin
23816clean-stageprofile-libiberty-linker-plugin:
23817 @if [ $(current_stage) = stageprofile ]; then \
23818 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23819 else \
23820 [ -f $(HOST_SUBDIR)/stageprofile-libiberty-linker-plugin/Makefile ] || exit 0; \
23821 $(MAKE) stageprofile-start; \
23822 fi; \
23823 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23824 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23825@endif libiberty-linker-plugin-bootstrap
23826
23827
23828.PHONY: all-stagefeedback-libiberty-linker-plugin maybe-all-stagefeedback-libiberty-linker-plugin
23829.PHONY: clean-stagefeedback-libiberty-linker-plugin maybe-clean-stagefeedback-libiberty-linker-plugin
23830maybe-all-stagefeedback-libiberty-linker-plugin:
23831maybe-clean-stagefeedback-libiberty-linker-plugin:
23832@if libiberty-linker-plugin-bootstrap
23833maybe-all-stagefeedback-libiberty-linker-plugin: all-stagefeedback-libiberty-linker-plugin
23834all-stagefeedback: all-stagefeedback-libiberty-linker-plugin
23835TARGET-stagefeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23836all-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23837 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23838 @r=`${PWD_COMMAND}`; export r; \
23839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23840 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23841 $(HOST_EXPORTS) \
23842 $(POSTSTAGE1_HOST_EXPORTS) \
23843 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23844 \
1b6c0831
L
23845 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23846 CFLAGS="$(STAGEfeedback_CFLAGS)" \
23847 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
23848 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23849 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23850 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23851 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23852 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23853 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
23854 $(TARGET-stagefeedback-libiberty-linker-plugin)
23855
23856maybe-clean-stagefeedback-libiberty-linker-plugin: clean-stagefeedback-libiberty-linker-plugin
23857clean-stagefeedback: clean-stagefeedback-libiberty-linker-plugin
23858clean-stagefeedback-libiberty-linker-plugin:
23859 @if [ $(current_stage) = stagefeedback ]; then \
23860 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23861 else \
23862 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty-linker-plugin/Makefile ] || exit 0; \
23863 $(MAKE) stagefeedback-start; \
23864 fi; \
23865 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23866 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23867@endif libiberty-linker-plugin-bootstrap
23868
23869
23870
23871
23872
23873.PHONY: check-libiberty-linker-plugin maybe-check-libiberty-linker-plugin
23874maybe-check-libiberty-linker-plugin:
23875@if libiberty-linker-plugin
23876maybe-check-libiberty-linker-plugin: check-libiberty-linker-plugin
23877
23878check-libiberty-linker-plugin:
23879 @: $(MAKE); $(unstage)
23880 @r=`${PWD_COMMAND}`; export r; \
23881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23882 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
1b6c0831 23883 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
f91ca6bc 23884 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
1b6c0831
L
23885
23886@endif libiberty-linker-plugin
23887
23888.PHONY: install-libiberty-linker-plugin maybe-install-libiberty-linker-plugin
23889maybe-install-libiberty-linker-plugin:
23890@if libiberty-linker-plugin
23891maybe-install-libiberty-linker-plugin: install-libiberty-linker-plugin
23892
23893install-libiberty-linker-plugin: installdirs
23894 @: $(MAKE); $(unstage)
23895 @r=`${PWD_COMMAND}`; export r; \
23896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23897 $(HOST_EXPORTS) \
23898 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23899 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
23900
23901@endif libiberty-linker-plugin
23902
23903.PHONY: install-strip-libiberty-linker-plugin maybe-install-strip-libiberty-linker-plugin
23904maybe-install-strip-libiberty-linker-plugin:
23905@if libiberty-linker-plugin
23906maybe-install-strip-libiberty-linker-plugin: install-strip-libiberty-linker-plugin
23907
23908install-strip-libiberty-linker-plugin: installdirs
23909 @: $(MAKE); $(unstage)
23910 @r=`${PWD_COMMAND}`; export r; \
23911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23912 $(HOST_EXPORTS) \
23913 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23914 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
23915
23916@endif libiberty-linker-plugin
23917
23918# Other targets (info, dvi, pdf, etc.)
23919
23920.PHONY: maybe-info-libiberty-linker-plugin info-libiberty-linker-plugin
23921maybe-info-libiberty-linker-plugin:
23922@if libiberty-linker-plugin
23923maybe-info-libiberty-linker-plugin: info-libiberty-linker-plugin
23924
23925info-libiberty-linker-plugin: \
23926 configure-libiberty-linker-plugin
23927 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23928 r=`${PWD_COMMAND}`; export r; \
23929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23930 $(HOST_EXPORTS) \
23931 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23933 done; \
22121df0 23934 echo "Doing info in libiberty-linker-plugin"; \
1b6c0831
L
23935 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23938 "RANLIB=$${RANLIB}" \
23939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23940 info) \
23941 || exit 1
23942
23943@endif libiberty-linker-plugin
23944
23945.PHONY: maybe-dvi-libiberty-linker-plugin dvi-libiberty-linker-plugin
23946maybe-dvi-libiberty-linker-plugin:
23947@if libiberty-linker-plugin
23948maybe-dvi-libiberty-linker-plugin: dvi-libiberty-linker-plugin
23949
23950dvi-libiberty-linker-plugin: \
23951 configure-libiberty-linker-plugin
23952 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23953 r=`${PWD_COMMAND}`; export r; \
23954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23955 $(HOST_EXPORTS) \
23956 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23958 done; \
22121df0 23959 echo "Doing dvi in libiberty-linker-plugin"; \
1b6c0831
L
23960 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23963 "RANLIB=$${RANLIB}" \
23964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23965 dvi) \
23966 || exit 1
23967
23968@endif libiberty-linker-plugin
23969
23970.PHONY: maybe-pdf-libiberty-linker-plugin pdf-libiberty-linker-plugin
23971maybe-pdf-libiberty-linker-plugin:
23972@if libiberty-linker-plugin
23973maybe-pdf-libiberty-linker-plugin: pdf-libiberty-linker-plugin
23974
23975pdf-libiberty-linker-plugin: \
23976 configure-libiberty-linker-plugin
23977 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23978 r=`${PWD_COMMAND}`; export r; \
23979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23980 $(HOST_EXPORTS) \
23981 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23983 done; \
22121df0 23984 echo "Doing pdf in libiberty-linker-plugin"; \
1b6c0831
L
23985 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23988 "RANLIB=$${RANLIB}" \
23989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23990 pdf) \
23991 || exit 1
23992
23993@endif libiberty-linker-plugin
23994
23995.PHONY: maybe-html-libiberty-linker-plugin html-libiberty-linker-plugin
23996maybe-html-libiberty-linker-plugin:
23997@if libiberty-linker-plugin
23998maybe-html-libiberty-linker-plugin: html-libiberty-linker-plugin
23999
24000html-libiberty-linker-plugin: \
24001 configure-libiberty-linker-plugin
24002 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24003 r=`${PWD_COMMAND}`; export r; \
24004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24005 $(HOST_EXPORTS) \
24006 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24008 done; \
22121df0 24009 echo "Doing html in libiberty-linker-plugin"; \
1b6c0831
L
24010 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24013 "RANLIB=$${RANLIB}" \
24014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24015 html) \
24016 || exit 1
24017
24018@endif libiberty-linker-plugin
24019
24020.PHONY: maybe-TAGS-libiberty-linker-plugin TAGS-libiberty-linker-plugin
24021maybe-TAGS-libiberty-linker-plugin:
24022@if libiberty-linker-plugin
24023maybe-TAGS-libiberty-linker-plugin: TAGS-libiberty-linker-plugin
24024
24025TAGS-libiberty-linker-plugin: \
24026 configure-libiberty-linker-plugin
24027 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24028 r=`${PWD_COMMAND}`; export r; \
24029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24030 $(HOST_EXPORTS) \
24031 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24033 done; \
22121df0 24034 echo "Doing TAGS in libiberty-linker-plugin"; \
1b6c0831
L
24035 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24038 "RANLIB=$${RANLIB}" \
24039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24040 TAGS) \
24041 || exit 1
24042
24043@endif libiberty-linker-plugin
24044
24045.PHONY: maybe-install-info-libiberty-linker-plugin install-info-libiberty-linker-plugin
24046maybe-install-info-libiberty-linker-plugin:
24047@if libiberty-linker-plugin
24048maybe-install-info-libiberty-linker-plugin: install-info-libiberty-linker-plugin
24049
24050install-info-libiberty-linker-plugin: \
24051 configure-libiberty-linker-plugin \
24052 info-libiberty-linker-plugin
24053 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24054 r=`${PWD_COMMAND}`; export r; \
24055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24056 $(HOST_EXPORTS) \
24057 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24059 done; \
22121df0 24060 echo "Doing install-info in libiberty-linker-plugin"; \
1b6c0831
L
24061 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24064 "RANLIB=$${RANLIB}" \
24065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24066 install-info) \
24067 || exit 1
24068
24069@endif libiberty-linker-plugin
24070
24071.PHONY: maybe-install-pdf-libiberty-linker-plugin install-pdf-libiberty-linker-plugin
24072maybe-install-pdf-libiberty-linker-plugin:
24073@if libiberty-linker-plugin
24074maybe-install-pdf-libiberty-linker-plugin: install-pdf-libiberty-linker-plugin
24075
24076install-pdf-libiberty-linker-plugin: \
24077 configure-libiberty-linker-plugin \
24078 pdf-libiberty-linker-plugin
24079 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24080 r=`${PWD_COMMAND}`; export r; \
24081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24082 $(HOST_EXPORTS) \
24083 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24085 done; \
22121df0 24086 echo "Doing install-pdf in libiberty-linker-plugin"; \
1b6c0831
L
24087 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24090 "RANLIB=$${RANLIB}" \
24091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24092 install-pdf) \
24093 || exit 1
24094
24095@endif libiberty-linker-plugin
24096
24097.PHONY: maybe-install-html-libiberty-linker-plugin install-html-libiberty-linker-plugin
24098maybe-install-html-libiberty-linker-plugin:
24099@if libiberty-linker-plugin
24100maybe-install-html-libiberty-linker-plugin: install-html-libiberty-linker-plugin
24101
24102install-html-libiberty-linker-plugin: \
24103 configure-libiberty-linker-plugin \
24104 html-libiberty-linker-plugin
24105 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24106 r=`${PWD_COMMAND}`; export r; \
24107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24108 $(HOST_EXPORTS) \
24109 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24111 done; \
22121df0 24112 echo "Doing install-html in libiberty-linker-plugin"; \
1b6c0831
L
24113 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24116 "RANLIB=$${RANLIB}" \
24117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24118 install-html) \
24119 || exit 1
24120
24121@endif libiberty-linker-plugin
24122
24123.PHONY: maybe-installcheck-libiberty-linker-plugin installcheck-libiberty-linker-plugin
24124maybe-installcheck-libiberty-linker-plugin:
24125@if libiberty-linker-plugin
24126maybe-installcheck-libiberty-linker-plugin: installcheck-libiberty-linker-plugin
24127
24128installcheck-libiberty-linker-plugin: \
24129 configure-libiberty-linker-plugin
24130 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24131 r=`${PWD_COMMAND}`; export r; \
24132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24133 $(HOST_EXPORTS) \
24134 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24136 done; \
22121df0 24137 echo "Doing installcheck in libiberty-linker-plugin"; \
1b6c0831
L
24138 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24141 "RANLIB=$${RANLIB}" \
24142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24143 installcheck) \
24144 || exit 1
24145
24146@endif libiberty-linker-plugin
24147
24148.PHONY: maybe-mostlyclean-libiberty-linker-plugin mostlyclean-libiberty-linker-plugin
24149maybe-mostlyclean-libiberty-linker-plugin:
24150@if libiberty-linker-plugin
24151maybe-mostlyclean-libiberty-linker-plugin: mostlyclean-libiberty-linker-plugin
24152
24153mostlyclean-libiberty-linker-plugin:
24154 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24155 r=`${PWD_COMMAND}`; export r; \
24156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24157 $(HOST_EXPORTS) \
24158 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24160 done; \
22121df0 24161 echo "Doing mostlyclean in libiberty-linker-plugin"; \
1b6c0831
L
24162 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24165 "RANLIB=$${RANLIB}" \
24166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24167 mostlyclean) \
24168 || exit 1
24169
24170@endif libiberty-linker-plugin
24171
24172.PHONY: maybe-clean-libiberty-linker-plugin clean-libiberty-linker-plugin
24173maybe-clean-libiberty-linker-plugin:
24174@if libiberty-linker-plugin
24175maybe-clean-libiberty-linker-plugin: clean-libiberty-linker-plugin
24176
24177clean-libiberty-linker-plugin:
24178 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24179 r=`${PWD_COMMAND}`; export r; \
24180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24181 $(HOST_EXPORTS) \
24182 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24184 done; \
22121df0 24185 echo "Doing clean in libiberty-linker-plugin"; \
1b6c0831
L
24186 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24189 "RANLIB=$${RANLIB}" \
24190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24191 clean) \
24192 || exit 1
24193
24194@endif libiberty-linker-plugin
24195
24196.PHONY: maybe-distclean-libiberty-linker-plugin distclean-libiberty-linker-plugin
24197maybe-distclean-libiberty-linker-plugin:
24198@if libiberty-linker-plugin
24199maybe-distclean-libiberty-linker-plugin: distclean-libiberty-linker-plugin
24200
24201distclean-libiberty-linker-plugin:
24202 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24203 r=`${PWD_COMMAND}`; export r; \
24204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24205 $(HOST_EXPORTS) \
24206 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24208 done; \
22121df0 24209 echo "Doing distclean in libiberty-linker-plugin"; \
1b6c0831
L
24210 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24213 "RANLIB=$${RANLIB}" \
24214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24215 distclean) \
24216 || exit 1
24217
24218@endif libiberty-linker-plugin
24219
24220.PHONY: maybe-maintainer-clean-libiberty-linker-plugin maintainer-clean-libiberty-linker-plugin
24221maybe-maintainer-clean-libiberty-linker-plugin:
24222@if libiberty-linker-plugin
24223maybe-maintainer-clean-libiberty-linker-plugin: maintainer-clean-libiberty-linker-plugin
24224
24225maintainer-clean-libiberty-linker-plugin:
24226 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24227 r=`${PWD_COMMAND}`; export r; \
24228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24229 $(HOST_EXPORTS) \
24230 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24232 done; \
22121df0 24233 echo "Doing maintainer-clean in libiberty-linker-plugin"; \
1b6c0831
L
24234 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24237 "RANLIB=$${RANLIB}" \
24238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24239 maintainer-clean) \
24240 || exit 1
24241
24242@endif libiberty-linker-plugin
24243
24244
24245
a90ef4bf
JM
24246.PHONY: configure-libiconv maybe-configure-libiconv
24247maybe-configure-libiconv:
4f0ef2d8 24248@if gcc-bootstrap
a90ef4bf 24249configure-libiconv: stage_current
4f0ef2d8 24250@endif gcc-bootstrap
a90ef4bf
JM
24251@if libiconv
24252maybe-configure-libiconv: configure-libiconv
24253configure-libiconv:
c52c6897 24254 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 24256 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
22121df0 24257 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
1f53ca9a 24258 $(HOST_EXPORTS) \
a90ef4bf
JM
24259 echo Configuring in $(HOST_SUBDIR)/libiconv; \
24260 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
4fa63067 24261 case $(srcdir) in \
b00612cc 24262 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24263 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
b00612cc 24264 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24265 esac; \
1b6c0831
L
24266 module_srcdir=libiconv; \
24267 $(SHELL) \
24268 $$s/$$module_srcdir/configure \
24269 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24270 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24271 --target=${target_alias} --disable-shared \
2a4cbe27 24272 || exit 1
a90ef4bf 24273@endif libiconv
2a4cbe27 24274
a7254363
PB
24275
24276
016a3251
DD
24277.PHONY: configure-stage1-libiconv maybe-configure-stage1-libiconv
24278maybe-configure-stage1-libiconv:
24279@if libiconv-bootstrap
24280maybe-configure-stage1-libiconv: configure-stage1-libiconv
24281configure-stage1-libiconv:
24282 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24283 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24284 @r=`${PWD_COMMAND}`; export r; \
24285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24286 TFLAGS="$(STAGE1_TFLAGS)"; \
24287 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24288 $(HOST_EXPORTS) \
24289 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
24290 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
24291 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
24292 echo Configuring stage 1 in $(HOST_SUBDIR)/libiconv; \
24293 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24294 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24295 case $(srcdir) in \
24296 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24297 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24298 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24299 esac; \
24300 module_srcdir=libiconv; \
24301 $(SHELL) $$s/$$module_srcdir/configure \
24302 --srcdir=$${topdir}/$$module_srcdir \
24303 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24304 --target=${target_alias} \
24305 \
24306 $(STAGE1_CONFIGURE_FLAGS) \
24307 --disable-shared
24308@endif libiconv-bootstrap
24309
24310.PHONY: configure-stage2-libiconv maybe-configure-stage2-libiconv
24311maybe-configure-stage2-libiconv:
24312@if libiconv-bootstrap
24313maybe-configure-stage2-libiconv: configure-stage2-libiconv
24314configure-stage2-libiconv:
24315 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24316 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24317 @r=`${PWD_COMMAND}`; export r; \
24318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24319 TFLAGS="$(STAGE2_TFLAGS)"; \
24320 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24321 $(HOST_EXPORTS) \
24322 $(POSTSTAGE1_HOST_EXPORTS) \
24323 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
24324 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
24325 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
24326 echo Configuring stage 2 in $(HOST_SUBDIR)/libiconv; \
24327 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24328 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24329 case $(srcdir) in \
24330 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24331 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24332 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24333 esac; \
24334 module_srcdir=libiconv; \
24335 $(SHELL) $$s/$$module_srcdir/configure \
24336 --srcdir=$${topdir}/$$module_srcdir \
24337 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24338 --target=${target_alias} \
24339 --with-build-libsubdir=$(HOST_SUBDIR) \
24340 $(STAGE2_CONFIGURE_FLAGS) \
24341 --disable-shared
24342@endif libiconv-bootstrap
24343
24344.PHONY: configure-stage3-libiconv maybe-configure-stage3-libiconv
24345maybe-configure-stage3-libiconv:
24346@if libiconv-bootstrap
24347maybe-configure-stage3-libiconv: configure-stage3-libiconv
24348configure-stage3-libiconv:
24349 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24350 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24351 @r=`${PWD_COMMAND}`; export r; \
24352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24353 TFLAGS="$(STAGE3_TFLAGS)"; \
24354 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24355 $(HOST_EXPORTS) \
24356 $(POSTSTAGE1_HOST_EXPORTS) \
24357 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
24358 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
24359 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
24360 echo Configuring stage 3 in $(HOST_SUBDIR)/libiconv; \
24361 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24362 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24363 case $(srcdir) in \
24364 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24365 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24366 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24367 esac; \
24368 module_srcdir=libiconv; \
24369 $(SHELL) $$s/$$module_srcdir/configure \
24370 --srcdir=$${topdir}/$$module_srcdir \
24371 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24372 --target=${target_alias} \
24373 --with-build-libsubdir=$(HOST_SUBDIR) \
24374 $(STAGE3_CONFIGURE_FLAGS) \
24375 --disable-shared
24376@endif libiconv-bootstrap
24377
24378.PHONY: configure-stage4-libiconv maybe-configure-stage4-libiconv
24379maybe-configure-stage4-libiconv:
24380@if libiconv-bootstrap
24381maybe-configure-stage4-libiconv: configure-stage4-libiconv
24382configure-stage4-libiconv:
24383 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24384 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24385 @r=`${PWD_COMMAND}`; export r; \
24386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24387 TFLAGS="$(STAGE4_TFLAGS)"; \
24388 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24389 $(HOST_EXPORTS) \
24390 $(POSTSTAGE1_HOST_EXPORTS) \
24391 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
24392 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
24393 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
24394 echo Configuring stage 4 in $(HOST_SUBDIR)/libiconv; \
24395 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24396 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24397 case $(srcdir) in \
24398 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24399 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24400 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24401 esac; \
24402 module_srcdir=libiconv; \
24403 $(SHELL) $$s/$$module_srcdir/configure \
24404 --srcdir=$${topdir}/$$module_srcdir \
24405 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24406 --target=${target_alias} \
24407 --with-build-libsubdir=$(HOST_SUBDIR) \
24408 $(STAGE4_CONFIGURE_FLAGS) \
24409 --disable-shared
24410@endif libiconv-bootstrap
24411
24412.PHONY: configure-stageprofile-libiconv maybe-configure-stageprofile-libiconv
24413maybe-configure-stageprofile-libiconv:
24414@if libiconv-bootstrap
24415maybe-configure-stageprofile-libiconv: configure-stageprofile-libiconv
24416configure-stageprofile-libiconv:
24417 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24418 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24419 @r=`${PWD_COMMAND}`; export r; \
24420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24421 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24422 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24423 $(HOST_EXPORTS) \
24424 $(POSTSTAGE1_HOST_EXPORTS) \
24425 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
24426 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
24427 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
24428 echo Configuring stage profile in $(HOST_SUBDIR)/libiconv; \
24429 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24430 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24431 case $(srcdir) in \
24432 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24433 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24434 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24435 esac; \
24436 module_srcdir=libiconv; \
24437 $(SHELL) $$s/$$module_srcdir/configure \
24438 --srcdir=$${topdir}/$$module_srcdir \
24439 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24440 --target=${target_alias} \
24441 --with-build-libsubdir=$(HOST_SUBDIR) \
24442 $(STAGEprofile_CONFIGURE_FLAGS) \
24443 --disable-shared
24444@endif libiconv-bootstrap
24445
24446.PHONY: configure-stagefeedback-libiconv maybe-configure-stagefeedback-libiconv
24447maybe-configure-stagefeedback-libiconv:
24448@if libiconv-bootstrap
24449maybe-configure-stagefeedback-libiconv: configure-stagefeedback-libiconv
24450configure-stagefeedback-libiconv:
24451 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24452 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24453 @r=`${PWD_COMMAND}`; export r; \
24454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24455 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24456 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24457 $(HOST_EXPORTS) \
24458 $(POSTSTAGE1_HOST_EXPORTS) \
24459 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
24460 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
24461 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
24462 echo Configuring stage feedback in $(HOST_SUBDIR)/libiconv; \
24463 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24464 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24465 case $(srcdir) in \
24466 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24467 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24468 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24469 esac; \
24470 module_srcdir=libiconv; \
24471 $(SHELL) $$s/$$module_srcdir/configure \
24472 --srcdir=$${topdir}/$$module_srcdir \
24473 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24474 --target=${target_alias} \
24475 --with-build-libsubdir=$(HOST_SUBDIR) \
24476 $(STAGEfeedback_CONFIGURE_FLAGS) \
24477 --disable-shared
24478@endif libiconv-bootstrap
24479
24480
24481
d545f33b
PB
24482
24483
a90ef4bf
JM
24484.PHONY: all-libiconv maybe-all-libiconv
24485maybe-all-libiconv:
4f0ef2d8 24486@if gcc-bootstrap
a90ef4bf 24487all-libiconv: stage_current
4f0ef2d8 24488@endif gcc-bootstrap
a90ef4bf
JM
24489@if libiconv
24490TARGET-libiconv=all
24491maybe-all-libiconv: all-libiconv
24492all-libiconv: configure-libiconv
4fa63067
NN
24493 @r=`${PWD_COMMAND}`; export r; \
24494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24495 $(HOST_EXPORTS) \
a90ef4bf 24496 (cd $(HOST_SUBDIR)/libiconv && \
b3676d82 24497 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24498 $(TARGET-libiconv))
24499@endif libiconv
2a4cbe27 24500
a7254363 24501
d545f33b 24502
016a3251
DD
24503.PHONY: all-stage1-libiconv maybe-all-stage1-libiconv
24504.PHONY: clean-stage1-libiconv maybe-clean-stage1-libiconv
24505maybe-all-stage1-libiconv:
24506maybe-clean-stage1-libiconv:
24507@if libiconv-bootstrap
24508maybe-all-stage1-libiconv: all-stage1-libiconv
24509all-stage1: all-stage1-libiconv
24510TARGET-stage1-libiconv = $(TARGET-libiconv)
24511all-stage1-libiconv: configure-stage1-libiconv
24512 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24513 @r=`${PWD_COMMAND}`; export r; \
24514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24515 TFLAGS="$(STAGE1_TFLAGS)"; \
24516 $(HOST_EXPORTS) \
24517 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24518 \
016a3251
DD
24519 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24520 CFLAGS="$(STAGE1_CFLAGS)" \
24521 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
24522 LIBCFLAGS="$(LIBCFLAGS)" \
24523 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24524 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24525 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24526 $(EXTRA_HOST_FLAGS) \
24527 $(STAGE1_FLAGS_TO_PASS) \
05a13254 24528 TFLAGS="$(STAGE1_TFLAGS)" \
016a3251
DD
24529 $(TARGET-stage1-libiconv)
24530
24531maybe-clean-stage1-libiconv: clean-stage1-libiconv
24532clean-stage1: clean-stage1-libiconv
24533clean-stage1-libiconv:
24534 @if [ $(current_stage) = stage1 ]; then \
24535 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24536 else \
24537 [ -f $(HOST_SUBDIR)/stage1-libiconv/Makefile ] || exit 0; \
24538 $(MAKE) stage1-start; \
24539 fi; \
24540 cd $(HOST_SUBDIR)/libiconv && \
24541 $(MAKE) $(EXTRA_HOST_FLAGS) \
24542 $(STAGE1_FLAGS_TO_PASS) clean
24543@endif libiconv-bootstrap
24544
24545
24546.PHONY: all-stage2-libiconv maybe-all-stage2-libiconv
24547.PHONY: clean-stage2-libiconv maybe-clean-stage2-libiconv
24548maybe-all-stage2-libiconv:
24549maybe-clean-stage2-libiconv:
24550@if libiconv-bootstrap
24551maybe-all-stage2-libiconv: all-stage2-libiconv
24552all-stage2: all-stage2-libiconv
24553TARGET-stage2-libiconv = $(TARGET-libiconv)
24554all-stage2-libiconv: configure-stage2-libiconv
24555 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24556 @r=`${PWD_COMMAND}`; export r; \
24557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24558 TFLAGS="$(STAGE2_TFLAGS)"; \
24559 $(HOST_EXPORTS) \
24560 $(POSTSTAGE1_HOST_EXPORTS) \
24561 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24562 \
016a3251
DD
24563 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24564 CFLAGS="$(STAGE2_CFLAGS)" \
24565 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
24566 LIBCFLAGS="$(STAGE2_CFLAGS)" \
24567 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24568 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24569 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24570 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24571 TFLAGS="$(STAGE2_TFLAGS)" \
016a3251
DD
24572 $(TARGET-stage2-libiconv)
24573
24574maybe-clean-stage2-libiconv: clean-stage2-libiconv
24575clean-stage2: clean-stage2-libiconv
24576clean-stage2-libiconv:
24577 @if [ $(current_stage) = stage2 ]; then \
24578 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24579 else \
24580 [ -f $(HOST_SUBDIR)/stage2-libiconv/Makefile ] || exit 0; \
24581 $(MAKE) stage2-start; \
24582 fi; \
24583 cd $(HOST_SUBDIR)/libiconv && \
24584 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24585@endif libiconv-bootstrap
24586
24587
24588.PHONY: all-stage3-libiconv maybe-all-stage3-libiconv
24589.PHONY: clean-stage3-libiconv maybe-clean-stage3-libiconv
24590maybe-all-stage3-libiconv:
24591maybe-clean-stage3-libiconv:
24592@if libiconv-bootstrap
24593maybe-all-stage3-libiconv: all-stage3-libiconv
24594all-stage3: all-stage3-libiconv
24595TARGET-stage3-libiconv = $(TARGET-libiconv)
24596all-stage3-libiconv: configure-stage3-libiconv
24597 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24598 @r=`${PWD_COMMAND}`; export r; \
24599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24600 TFLAGS="$(STAGE3_TFLAGS)"; \
24601 $(HOST_EXPORTS) \
24602 $(POSTSTAGE1_HOST_EXPORTS) \
24603 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24604 \
016a3251
DD
24605 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24606 CFLAGS="$(STAGE3_CFLAGS)" \
24607 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
24608 LIBCFLAGS="$(STAGE3_CFLAGS)" \
24609 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24610 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24611 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24612 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24613 TFLAGS="$(STAGE3_TFLAGS)" \
016a3251
DD
24614 $(TARGET-stage3-libiconv)
24615
24616maybe-clean-stage3-libiconv: clean-stage3-libiconv
24617clean-stage3: clean-stage3-libiconv
24618clean-stage3-libiconv:
24619 @if [ $(current_stage) = stage3 ]; then \
24620 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24621 else \
24622 [ -f $(HOST_SUBDIR)/stage3-libiconv/Makefile ] || exit 0; \
24623 $(MAKE) stage3-start; \
24624 fi; \
24625 cd $(HOST_SUBDIR)/libiconv && \
24626 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24627@endif libiconv-bootstrap
24628
24629
24630.PHONY: all-stage4-libiconv maybe-all-stage4-libiconv
24631.PHONY: clean-stage4-libiconv maybe-clean-stage4-libiconv
24632maybe-all-stage4-libiconv:
24633maybe-clean-stage4-libiconv:
24634@if libiconv-bootstrap
24635maybe-all-stage4-libiconv: all-stage4-libiconv
24636all-stage4: all-stage4-libiconv
24637TARGET-stage4-libiconv = $(TARGET-libiconv)
24638all-stage4-libiconv: configure-stage4-libiconv
24639 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24640 @r=`${PWD_COMMAND}`; export r; \
24641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24642 TFLAGS="$(STAGE4_TFLAGS)"; \
24643 $(HOST_EXPORTS) \
24644 $(POSTSTAGE1_HOST_EXPORTS) \
24645 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24646 \
016a3251
DD
24647 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24648 CFLAGS="$(STAGE4_CFLAGS)" \
24649 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
24650 LIBCFLAGS="$(STAGE4_CFLAGS)" \
24651 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24652 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24653 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24654 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24655 TFLAGS="$(STAGE4_TFLAGS)" \
016a3251
DD
24656 $(TARGET-stage4-libiconv)
24657
24658maybe-clean-stage4-libiconv: clean-stage4-libiconv
24659clean-stage4: clean-stage4-libiconv
24660clean-stage4-libiconv:
24661 @if [ $(current_stage) = stage4 ]; then \
24662 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24663 else \
24664 [ -f $(HOST_SUBDIR)/stage4-libiconv/Makefile ] || exit 0; \
24665 $(MAKE) stage4-start; \
24666 fi; \
24667 cd $(HOST_SUBDIR)/libiconv && \
24668 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24669@endif libiconv-bootstrap
24670
24671
24672.PHONY: all-stageprofile-libiconv maybe-all-stageprofile-libiconv
24673.PHONY: clean-stageprofile-libiconv maybe-clean-stageprofile-libiconv
24674maybe-all-stageprofile-libiconv:
24675maybe-clean-stageprofile-libiconv:
24676@if libiconv-bootstrap
24677maybe-all-stageprofile-libiconv: all-stageprofile-libiconv
24678all-stageprofile: all-stageprofile-libiconv
24679TARGET-stageprofile-libiconv = $(TARGET-libiconv)
24680all-stageprofile-libiconv: configure-stageprofile-libiconv
24681 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24682 @r=`${PWD_COMMAND}`; export r; \
24683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24684 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24685 $(HOST_EXPORTS) \
24686 $(POSTSTAGE1_HOST_EXPORTS) \
24687 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24688 \
016a3251
DD
24689 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24690 CFLAGS="$(STAGEprofile_CFLAGS)" \
24691 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
24692 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
24693 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24694 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24695 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24696 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24697 TFLAGS="$(STAGEprofile_TFLAGS)" \
016a3251
DD
24698 $(TARGET-stageprofile-libiconv)
24699
24700maybe-clean-stageprofile-libiconv: clean-stageprofile-libiconv
24701clean-stageprofile: clean-stageprofile-libiconv
24702clean-stageprofile-libiconv:
24703 @if [ $(current_stage) = stageprofile ]; then \
24704 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24705 else \
24706 [ -f $(HOST_SUBDIR)/stageprofile-libiconv/Makefile ] || exit 0; \
24707 $(MAKE) stageprofile-start; \
24708 fi; \
24709 cd $(HOST_SUBDIR)/libiconv && \
24710 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24711@endif libiconv-bootstrap
24712
24713
24714.PHONY: all-stagefeedback-libiconv maybe-all-stagefeedback-libiconv
24715.PHONY: clean-stagefeedback-libiconv maybe-clean-stagefeedback-libiconv
24716maybe-all-stagefeedback-libiconv:
24717maybe-clean-stagefeedback-libiconv:
24718@if libiconv-bootstrap
24719maybe-all-stagefeedback-libiconv: all-stagefeedback-libiconv
24720all-stagefeedback: all-stagefeedback-libiconv
24721TARGET-stagefeedback-libiconv = $(TARGET-libiconv)
24722all-stagefeedback-libiconv: configure-stagefeedback-libiconv
24723 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24724 @r=`${PWD_COMMAND}`; export r; \
24725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24726 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24727 $(HOST_EXPORTS) \
24728 $(POSTSTAGE1_HOST_EXPORTS) \
24729 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24730 \
016a3251
DD
24731 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24732 CFLAGS="$(STAGEfeedback_CFLAGS)" \
24733 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
24734 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
24735 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24736 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24737 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24738 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24739 TFLAGS="$(STAGEfeedback_TFLAGS)" \
016a3251
DD
24740 $(TARGET-stagefeedback-libiconv)
24741
24742maybe-clean-stagefeedback-libiconv: clean-stagefeedback-libiconv
24743clean-stagefeedback: clean-stagefeedback-libiconv
24744clean-stagefeedback-libiconv:
24745 @if [ $(current_stage) = stagefeedback ]; then \
24746 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24747 else \
24748 [ -f $(HOST_SUBDIR)/stagefeedback-libiconv/Makefile ] || exit 0; \
24749 $(MAKE) stagefeedback-start; \
24750 fi; \
24751 cd $(HOST_SUBDIR)/libiconv && \
24752 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24753@endif libiconv-bootstrap
24754
24755
24756
24757
d545f33b 24758
a90ef4bf
JM
24759.PHONY: check-libiconv maybe-check-libiconv
24760maybe-check-libiconv:
24761@if libiconv
24762maybe-check-libiconv: check-libiconv
2a4cbe27 24763
a90ef4bf 24764check-libiconv:
0aed8855 24765 @: $(MAKE); $(unstage)
4fa63067 24766 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
016a3251 24768 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 24769 (cd $(HOST_SUBDIR)/libiconv && \
016a3251 24770 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 24771
a90ef4bf 24772@endif libiconv
4fa63067 24773
a90ef4bf
JM
24774.PHONY: install-libiconv maybe-install-libiconv
24775maybe-install-libiconv:
24776@if libiconv
24777maybe-install-libiconv: install-libiconv
2a4cbe27 24778
a90ef4bf 24779install-libiconv:
2a4cbe27 24780
a90ef4bf 24781@endif libiconv
9b980aa1 24782
a90ef4bf
JM
24783.PHONY: install-strip-libiconv maybe-install-strip-libiconv
24784maybe-install-strip-libiconv:
24785@if libiconv
24786maybe-install-strip-libiconv: install-strip-libiconv
9b980aa1 24787
a90ef4bf
JM
24788install-strip-libiconv:
24789
24790@endif libiconv
9b980aa1 24791
56a8fe78 24792# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24793
a90ef4bf
JM
24794.PHONY: maybe-info-libiconv info-libiconv
24795maybe-info-libiconv:
24796@if libiconv
24797maybe-info-libiconv: info-libiconv
4fa63067 24798
016a3251
DD
24799# libiconv doesn't support info.
24800info-libiconv:
2a4cbe27 24801
a90ef4bf 24802@endif libiconv
2a4cbe27 24803
a90ef4bf
JM
24804.PHONY: maybe-dvi-libiconv dvi-libiconv
24805maybe-dvi-libiconv:
24806@if libiconv
24807maybe-dvi-libiconv: dvi-libiconv
2a4cbe27 24808
a90ef4bf
JM
24809dvi-libiconv: \
24810 configure-libiconv
a90ef4bf 24811 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24812 r=`${PWD_COMMAND}`; export r; \
24813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24814 $(HOST_EXPORTS) \
b813574b 24815 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24817 done; \
22121df0 24818 echo "Doing dvi in libiconv"; \
a90ef4bf 24819 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24822 "RANLIB=$${RANLIB}" \
0c24b341 24823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24824 dvi) \
2a4cbe27
NN
24825 || exit 1
24826
a90ef4bf 24827@endif libiconv
2a4cbe27 24828
a90ef4bf
JM
24829.PHONY: maybe-pdf-libiconv pdf-libiconv
24830maybe-pdf-libiconv:
24831@if libiconv
24832maybe-pdf-libiconv: pdf-libiconv
56a8fe78 24833
016a3251
DD
24834# libiconv doesn't support pdf.
24835pdf-libiconv:
56a8fe78 24836
a90ef4bf 24837@endif libiconv
56a8fe78 24838
a90ef4bf
JM
24839.PHONY: maybe-html-libiconv html-libiconv
24840maybe-html-libiconv:
24841@if libiconv
24842maybe-html-libiconv: html-libiconv
6d389afc 24843
016a3251
DD
24844# libiconv doesn't support html.
24845html-libiconv:
6d389afc 24846
a90ef4bf 24847@endif libiconv
6d389afc 24848
a90ef4bf
JM
24849.PHONY: maybe-TAGS-libiconv TAGS-libiconv
24850maybe-TAGS-libiconv:
24851@if libiconv
24852maybe-TAGS-libiconv: TAGS-libiconv
2a4cbe27 24853
a90ef4bf
JM
24854TAGS-libiconv: \
24855 configure-libiconv
a90ef4bf 24856 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24857 r=`${PWD_COMMAND}`; export r; \
24858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24859 $(HOST_EXPORTS) \
b813574b 24860 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24862 done; \
22121df0 24863 echo "Doing TAGS in libiconv"; \
a90ef4bf 24864 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24867 "RANLIB=$${RANLIB}" \
0c24b341 24868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24869 TAGS) \
2a4cbe27
NN
24870 || exit 1
24871
a90ef4bf 24872@endif libiconv
2a4cbe27 24873
a90ef4bf
JM
24874.PHONY: maybe-install-info-libiconv install-info-libiconv
24875maybe-install-info-libiconv:
24876@if libiconv
24877maybe-install-info-libiconv: install-info-libiconv
2a4cbe27 24878
a90ef4bf
JM
24879# libiconv doesn't support install-info.
24880install-info-libiconv:
2a4cbe27 24881
a90ef4bf 24882@endif libiconv
2a4cbe27 24883
a90ef4bf
JM
24884.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
24885maybe-install-pdf-libiconv:
24886@if libiconv
24887maybe-install-pdf-libiconv: install-pdf-libiconv
a3ca38d2 24888
a90ef4bf
JM
24889# libiconv doesn't support install-pdf.
24890install-pdf-libiconv:
a3ca38d2 24891
a90ef4bf 24892@endif libiconv
a3ca38d2 24893
a90ef4bf
JM
24894.PHONY: maybe-install-html-libiconv install-html-libiconv
24895maybe-install-html-libiconv:
24896@if libiconv
24897maybe-install-html-libiconv: install-html-libiconv
108a6f8e 24898
a90ef4bf
JM
24899# libiconv doesn't support install-html.
24900install-html-libiconv:
108a6f8e 24901
a90ef4bf 24902@endif libiconv
108a6f8e 24903
a90ef4bf
JM
24904.PHONY: maybe-installcheck-libiconv installcheck-libiconv
24905maybe-installcheck-libiconv:
24906@if libiconv
24907maybe-installcheck-libiconv: installcheck-libiconv
2a4cbe27 24908
a90ef4bf
JM
24909installcheck-libiconv: \
24910 configure-libiconv
a90ef4bf 24911 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24912 r=`${PWD_COMMAND}`; export r; \
24913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24914 $(HOST_EXPORTS) \
b813574b 24915 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24917 done; \
22121df0 24918 echo "Doing installcheck in libiconv"; \
a90ef4bf 24919 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24922 "RANLIB=$${RANLIB}" \
0c24b341 24923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24924 installcheck) \
2a4cbe27
NN
24925 || exit 1
24926
a90ef4bf 24927@endif libiconv
2a4cbe27 24928
a90ef4bf
JM
24929.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
24930maybe-mostlyclean-libiconv:
24931@if libiconv
24932maybe-mostlyclean-libiconv: mostlyclean-libiconv
2a4cbe27 24933
a90ef4bf 24934mostlyclean-libiconv:
a90ef4bf 24935 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24936 r=`${PWD_COMMAND}`; export r; \
24937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24938 $(HOST_EXPORTS) \
b813574b 24939 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24941 done; \
22121df0 24942 echo "Doing mostlyclean in libiconv"; \
a90ef4bf 24943 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24946 "RANLIB=$${RANLIB}" \
0c24b341 24947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24948 mostlyclean) \
2a4cbe27
NN
24949 || exit 1
24950
a90ef4bf 24951@endif libiconv
2a4cbe27 24952
a90ef4bf
JM
24953.PHONY: maybe-clean-libiconv clean-libiconv
24954maybe-clean-libiconv:
24955@if libiconv
24956maybe-clean-libiconv: clean-libiconv
2a4cbe27 24957
a90ef4bf 24958clean-libiconv:
a90ef4bf 24959 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24960 r=`${PWD_COMMAND}`; export r; \
24961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24962 $(HOST_EXPORTS) \
b813574b 24963 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24965 done; \
22121df0 24966 echo "Doing clean in libiconv"; \
a90ef4bf 24967 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24970 "RANLIB=$${RANLIB}" \
0c24b341 24971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24972 clean) \
2a4cbe27
NN
24973 || exit 1
24974
a90ef4bf 24975@endif libiconv
2a4cbe27 24976
a90ef4bf
JM
24977.PHONY: maybe-distclean-libiconv distclean-libiconv
24978maybe-distclean-libiconv:
24979@if libiconv
24980maybe-distclean-libiconv: distclean-libiconv
2a4cbe27 24981
a90ef4bf 24982distclean-libiconv:
a90ef4bf 24983 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24984 r=`${PWD_COMMAND}`; export r; \
24985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24986 $(HOST_EXPORTS) \
b813574b 24987 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24989 done; \
22121df0 24990 echo "Doing distclean in libiconv"; \
a90ef4bf 24991 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24994 "RANLIB=$${RANLIB}" \
0c24b341 24995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24996 distclean) \
2a4cbe27
NN
24997 || exit 1
24998
a90ef4bf 24999@endif libiconv
2a4cbe27 25000
a90ef4bf
JM
25001.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
25002maybe-maintainer-clean-libiconv:
25003@if libiconv
25004maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
2a4cbe27 25005
a90ef4bf 25006maintainer-clean-libiconv:
a90ef4bf 25007 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25008 r=`${PWD_COMMAND}`; export r; \
25009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25010 $(HOST_EXPORTS) \
b813574b 25011 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25013 done; \
22121df0 25014 echo "Doing maintainer-clean in libiconv"; \
a90ef4bf 25015 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25018 "RANLIB=$${RANLIB}" \
0c24b341 25019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25020 maintainer-clean) \
2a4cbe27
NN
25021 || exit 1
25022
a90ef4bf 25023@endif libiconv
2a4cbe27 25024
2a4cbe27 25025
a7254363 25026
a90ef4bf
JM
25027.PHONY: configure-m4 maybe-configure-m4
25028maybe-configure-m4:
4f0ef2d8 25029@if gcc-bootstrap
a90ef4bf 25030configure-m4: stage_current
4f0ef2d8 25031@endif gcc-bootstrap
a90ef4bf
JM
25032@if m4
25033maybe-configure-m4: configure-m4
25034configure-m4:
0aed8855 25035 @: $(MAKE); $(unstage)
c52c6897 25036 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25038 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
22121df0 25039 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4; \
1f53ca9a 25040 $(HOST_EXPORTS) \
a90ef4bf
JM
25041 echo Configuring in $(HOST_SUBDIR)/m4; \
25042 cd "$(HOST_SUBDIR)/m4" || exit 1; \
4fa63067 25043 case $(srcdir) in \
b00612cc 25044 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25045 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
b00612cc 25046 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25047 esac; \
1b6c0831
L
25048 module_srcdir=m4; \
25049 $(SHELL) \
25050 $$s/$$module_srcdir/configure \
25051 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25052 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25053 --target=${target_alias} \
2a4cbe27 25054 || exit 1
a90ef4bf 25055@endif m4
2a4cbe27 25056
a7254363
PB
25057
25058
d545f33b
PB
25059
25060
a90ef4bf
JM
25061.PHONY: all-m4 maybe-all-m4
25062maybe-all-m4:
4f0ef2d8 25063@if gcc-bootstrap
a90ef4bf 25064all-m4: stage_current
4f0ef2d8 25065@endif gcc-bootstrap
a90ef4bf
JM
25066@if m4
25067TARGET-m4=all
25068maybe-all-m4: all-m4
25069all-m4: configure-m4
0aed8855 25070 @: $(MAKE); $(unstage)
4fa63067
NN
25071 @r=`${PWD_COMMAND}`; export r; \
25072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25073 $(HOST_EXPORTS) \
a90ef4bf 25074 (cd $(HOST_SUBDIR)/m4 && \
b3676d82 25075 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25076 $(TARGET-m4))
25077@endif m4
2a4cbe27 25078
a7254363 25079
d545f33b
PB
25080
25081
a90ef4bf
JM
25082.PHONY: check-m4 maybe-check-m4
25083maybe-check-m4:
25084@if m4
25085maybe-check-m4: check-m4
2a4cbe27 25086
a90ef4bf 25087check-m4:
0aed8855 25088 @: $(MAKE); $(unstage)
4fa63067 25089 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25091 $(HOST_EXPORTS) \
a90ef4bf 25092 (cd $(HOST_SUBDIR)/m4 && \
b00612cc 25093 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25094
a90ef4bf 25095@endif m4
2a4cbe27 25096
a90ef4bf
JM
25097.PHONY: install-m4 maybe-install-m4
25098maybe-install-m4:
25099@if m4
25100maybe-install-m4: install-m4
2a4cbe27 25101
a90ef4bf 25102install-m4: installdirs
0aed8855 25103 @: $(MAKE); $(unstage)
4fa63067 25104 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25106 $(HOST_EXPORTS) \
a90ef4bf 25107 (cd $(HOST_SUBDIR)/m4 && \
2da12f12 25108 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25109
a90ef4bf 25110@endif m4
2a4cbe27 25111
a90ef4bf
JM
25112.PHONY: install-strip-m4 maybe-install-strip-m4
25113maybe-install-strip-m4:
25114@if m4
25115maybe-install-strip-m4: install-strip-m4
9b980aa1 25116
a90ef4bf 25117install-strip-m4: installdirs
9b980aa1
RW
25118 @: $(MAKE); $(unstage)
25119 @r=`${PWD_COMMAND}`; export r; \
25120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25121 $(HOST_EXPORTS) \
a90ef4bf 25122 (cd $(HOST_SUBDIR)/m4 && \
9b980aa1
RW
25123 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25124
a90ef4bf 25125@endif m4
9b980aa1 25126
56a8fe78 25127# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25128
a90ef4bf
JM
25129.PHONY: maybe-info-m4 info-m4
25130maybe-info-m4:
25131@if m4
25132maybe-info-m4: info-m4
4fa63067 25133
a90ef4bf
JM
25134info-m4: \
25135 configure-m4
0aed8855 25136 @: $(MAKE); $(unstage)
a90ef4bf 25137 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25138 r=`${PWD_COMMAND}`; export r; \
25139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25140 $(HOST_EXPORTS) \
b813574b 25141 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25143 done; \
22121df0 25144 echo "Doing info in m4"; \
a90ef4bf 25145 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25148 "RANLIB=$${RANLIB}" \
0c24b341 25149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25150 info) \
2a4cbe27
NN
25151 || exit 1
25152
a90ef4bf 25153@endif m4
2a4cbe27 25154
a90ef4bf
JM
25155.PHONY: maybe-dvi-m4 dvi-m4
25156maybe-dvi-m4:
25157@if m4
25158maybe-dvi-m4: dvi-m4
2a4cbe27 25159
a90ef4bf
JM
25160dvi-m4: \
25161 configure-m4
0aed8855 25162 @: $(MAKE); $(unstage)
a90ef4bf 25163 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25164 r=`${PWD_COMMAND}`; export r; \
25165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25166 $(HOST_EXPORTS) \
b813574b 25167 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25169 done; \
22121df0 25170 echo "Doing dvi in m4"; \
a90ef4bf 25171 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25174 "RANLIB=$${RANLIB}" \
0c24b341 25175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25176 dvi) \
2a4cbe27
NN
25177 || exit 1
25178
a90ef4bf 25179@endif m4
2a4cbe27 25180
a90ef4bf
JM
25181.PHONY: maybe-pdf-m4 pdf-m4
25182maybe-pdf-m4:
25183@if m4
25184maybe-pdf-m4: pdf-m4
56a8fe78 25185
a90ef4bf
JM
25186pdf-m4: \
25187 configure-m4
56a8fe78 25188 @: $(MAKE); $(unstage)
a90ef4bf 25189 @[ -f ./m4/Makefile ] || exit 0; \
56a8fe78
DD
25190 r=`${PWD_COMMAND}`; export r; \
25191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25192 $(HOST_EXPORTS) \
25193 for flag in $(EXTRA_HOST_FLAGS) ; do \
25194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25195 done; \
22121df0 25196 echo "Doing pdf in m4"; \
a90ef4bf 25197 (cd $(HOST_SUBDIR)/m4 && \
56a8fe78
DD
25198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25200 "RANLIB=$${RANLIB}" \
0c24b341 25201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25202 pdf) \
25203 || exit 1
25204
a90ef4bf 25205@endif m4
56a8fe78 25206
a90ef4bf
JM
25207.PHONY: maybe-html-m4 html-m4
25208maybe-html-m4:
25209@if m4
25210maybe-html-m4: html-m4
6d389afc 25211
a90ef4bf
JM
25212html-m4: \
25213 configure-m4
0aed8855 25214 @: $(MAKE); $(unstage)
a90ef4bf 25215 @[ -f ./m4/Makefile ] || exit 0; \
6d389afc
MS
25216 r=`${PWD_COMMAND}`; export r; \
25217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25218 $(HOST_EXPORTS) \
25219 for flag in $(EXTRA_HOST_FLAGS) ; do \
25220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25221 done; \
22121df0 25222 echo "Doing html in m4"; \
a90ef4bf 25223 (cd $(HOST_SUBDIR)/m4 && \
6d389afc
MS
25224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25226 "RANLIB=$${RANLIB}" \
0c24b341 25227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25228 html) \
25229 || exit 1
25230
a90ef4bf 25231@endif m4
6d389afc 25232
a90ef4bf
JM
25233.PHONY: maybe-TAGS-m4 TAGS-m4
25234maybe-TAGS-m4:
25235@if m4
25236maybe-TAGS-m4: TAGS-m4
2a4cbe27 25237
a90ef4bf
JM
25238TAGS-m4: \
25239 configure-m4
0aed8855 25240 @: $(MAKE); $(unstage)
a90ef4bf 25241 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25242 r=`${PWD_COMMAND}`; export r; \
25243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25244 $(HOST_EXPORTS) \
b813574b 25245 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25247 done; \
22121df0 25248 echo "Doing TAGS in m4"; \
a90ef4bf 25249 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25252 "RANLIB=$${RANLIB}" \
0c24b341 25253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25254 TAGS) \
2a4cbe27
NN
25255 || exit 1
25256
a90ef4bf 25257@endif m4
2a4cbe27 25258
a90ef4bf
JM
25259.PHONY: maybe-install-info-m4 install-info-m4
25260maybe-install-info-m4:
25261@if m4
25262maybe-install-info-m4: install-info-m4
2a4cbe27 25263
a90ef4bf
JM
25264install-info-m4: \
25265 configure-m4 \
25266 info-m4
0aed8855 25267 @: $(MAKE); $(unstage)
a90ef4bf 25268 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25269 r=`${PWD_COMMAND}`; export r; \
25270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25271 $(HOST_EXPORTS) \
b813574b 25272 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25274 done; \
22121df0 25275 echo "Doing install-info in m4"; \
a90ef4bf 25276 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25279 "RANLIB=$${RANLIB}" \
0c24b341 25280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25281 install-info) \
2a4cbe27
NN
25282 || exit 1
25283
a90ef4bf 25284@endif m4
2a4cbe27 25285
a90ef4bf
JM
25286.PHONY: maybe-install-pdf-m4 install-pdf-m4
25287maybe-install-pdf-m4:
25288@if m4
25289maybe-install-pdf-m4: install-pdf-m4
a3ca38d2 25290
a90ef4bf
JM
25291install-pdf-m4: \
25292 configure-m4 \
25293 pdf-m4
a3ca38d2 25294 @: $(MAKE); $(unstage)
a90ef4bf 25295 @[ -f ./m4/Makefile ] || exit 0; \
a3ca38d2
DD
25296 r=`${PWD_COMMAND}`; export r; \
25297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25298 $(HOST_EXPORTS) \
25299 for flag in $(EXTRA_HOST_FLAGS) ; do \
25300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25301 done; \
22121df0 25302 echo "Doing install-pdf in m4"; \
a90ef4bf 25303 (cd $(HOST_SUBDIR)/m4 && \
a3ca38d2
DD
25304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25306 "RANLIB=$${RANLIB}" \
0c24b341 25307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25308 install-pdf) \
25309 || exit 1
25310
a90ef4bf 25311@endif m4
a3ca38d2 25312
a90ef4bf
JM
25313.PHONY: maybe-install-html-m4 install-html-m4
25314maybe-install-html-m4:
25315@if m4
25316maybe-install-html-m4: install-html-m4
108a6f8e 25317
a90ef4bf
JM
25318install-html-m4: \
25319 configure-m4 \
25320 html-m4
108a6f8e 25321 @: $(MAKE); $(unstage)
a90ef4bf 25322 @[ -f ./m4/Makefile ] || exit 0; \
108a6f8e
CD
25323 r=`${PWD_COMMAND}`; export r; \
25324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25325 $(HOST_EXPORTS) \
25326 for flag in $(EXTRA_HOST_FLAGS) ; do \
25327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25328 done; \
22121df0 25329 echo "Doing install-html in m4"; \
a90ef4bf 25330 (cd $(HOST_SUBDIR)/m4 && \
108a6f8e
CD
25331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25333 "RANLIB=$${RANLIB}" \
0c24b341 25334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25335 install-html) \
25336 || exit 1
25337
a90ef4bf 25338@endif m4
108a6f8e 25339
a90ef4bf
JM
25340.PHONY: maybe-installcheck-m4 installcheck-m4
25341maybe-installcheck-m4:
25342@if m4
25343maybe-installcheck-m4: installcheck-m4
2a4cbe27 25344
a90ef4bf
JM
25345installcheck-m4: \
25346 configure-m4
0aed8855 25347 @: $(MAKE); $(unstage)
a90ef4bf 25348 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25349 r=`${PWD_COMMAND}`; export r; \
25350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25351 $(HOST_EXPORTS) \
b813574b 25352 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25354 done; \
22121df0 25355 echo "Doing installcheck in m4"; \
a90ef4bf 25356 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25359 "RANLIB=$${RANLIB}" \
0c24b341 25360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25361 installcheck) \
2a4cbe27
NN
25362 || exit 1
25363
a90ef4bf 25364@endif m4
2a4cbe27 25365
a90ef4bf
JM
25366.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
25367maybe-mostlyclean-m4:
25368@if m4
25369maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 25370
a90ef4bf 25371mostlyclean-m4:
0aed8855 25372 @: $(MAKE); $(unstage)
a90ef4bf 25373 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25374 r=`${PWD_COMMAND}`; export r; \
25375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25376 $(HOST_EXPORTS) \
b813574b 25377 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25379 done; \
22121df0 25380 echo "Doing mostlyclean in m4"; \
a90ef4bf 25381 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25384 "RANLIB=$${RANLIB}" \
0c24b341 25385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25386 mostlyclean) \
2a4cbe27
NN
25387 || exit 1
25388
a90ef4bf 25389@endif m4
2a4cbe27 25390
a90ef4bf
JM
25391.PHONY: maybe-clean-m4 clean-m4
25392maybe-clean-m4:
25393@if m4
25394maybe-clean-m4: clean-m4
2a4cbe27 25395
a90ef4bf 25396clean-m4:
0aed8855 25397 @: $(MAKE); $(unstage)
a90ef4bf 25398 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25399 r=`${PWD_COMMAND}`; export r; \
25400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25401 $(HOST_EXPORTS) \
b813574b 25402 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25404 done; \
22121df0 25405 echo "Doing clean in m4"; \
a90ef4bf 25406 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25409 "RANLIB=$${RANLIB}" \
0c24b341 25410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25411 clean) \
2a4cbe27
NN
25412 || exit 1
25413
a90ef4bf 25414@endif m4
2a4cbe27 25415
a90ef4bf
JM
25416.PHONY: maybe-distclean-m4 distclean-m4
25417maybe-distclean-m4:
25418@if m4
25419maybe-distclean-m4: distclean-m4
2a4cbe27 25420
a90ef4bf 25421distclean-m4:
0aed8855 25422 @: $(MAKE); $(unstage)
a90ef4bf 25423 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25424 r=`${PWD_COMMAND}`; export r; \
25425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25426 $(HOST_EXPORTS) \
b813574b 25427 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25429 done; \
22121df0 25430 echo "Doing distclean in m4"; \
a90ef4bf 25431 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25434 "RANLIB=$${RANLIB}" \
0c24b341 25435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25436 distclean) \
2a4cbe27
NN
25437 || exit 1
25438
a90ef4bf 25439@endif m4
2a4cbe27 25440
a90ef4bf
JM
25441.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
25442maybe-maintainer-clean-m4:
25443@if m4
25444maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 25445
a90ef4bf 25446maintainer-clean-m4:
0aed8855 25447 @: $(MAKE); $(unstage)
a90ef4bf 25448 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25449 r=`${PWD_COMMAND}`; export r; \
25450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25451 $(HOST_EXPORTS) \
b813574b 25452 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25454 done; \
22121df0 25455 echo "Doing maintainer-clean in m4"; \
a90ef4bf 25456 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25459 "RANLIB=$${RANLIB}" \
0c24b341 25460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25461 maintainer-clean) \
2a4cbe27
NN
25462 || exit 1
25463
a90ef4bf 25464@endif m4
2a4cbe27 25465
2a4cbe27 25466
a7254363 25467
a90ef4bf
JM
25468.PHONY: configure-readline maybe-configure-readline
25469maybe-configure-readline:
4f0ef2d8 25470@if gcc-bootstrap
a90ef4bf 25471configure-readline: stage_current
4f0ef2d8 25472@endif gcc-bootstrap
a90ef4bf
JM
25473@if readline
25474maybe-configure-readline: configure-readline
25475configure-readline:
0aed8855 25476 @: $(MAKE); $(unstage)
c52c6897 25477 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25479 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
22121df0 25480 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline; \
1f53ca9a 25481 $(HOST_EXPORTS) \
a90ef4bf
JM
25482 echo Configuring in $(HOST_SUBDIR)/readline; \
25483 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4fa63067 25484 case $(srcdir) in \
b00612cc 25485 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25486 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
b00612cc 25487 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25488 esac; \
1b6c0831
L
25489 module_srcdir=readline; \
25490 $(SHELL) \
25491 $$s/$$module_srcdir/configure \
25492 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25493 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25494 --target=${target_alias} \
2a4cbe27 25495 || exit 1
a90ef4bf 25496@endif readline
2a4cbe27 25497
a7254363
PB
25498
25499
d545f33b
PB
25500
25501
a90ef4bf
JM
25502.PHONY: all-readline maybe-all-readline
25503maybe-all-readline:
4f0ef2d8 25504@if gcc-bootstrap
a90ef4bf 25505all-readline: stage_current
4f0ef2d8 25506@endif gcc-bootstrap
a90ef4bf
JM
25507@if readline
25508TARGET-readline=all
25509maybe-all-readline: all-readline
25510all-readline: configure-readline
0aed8855 25511 @: $(MAKE); $(unstage)
4fa63067
NN
25512 @r=`${PWD_COMMAND}`; export r; \
25513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25514 $(HOST_EXPORTS) \
a90ef4bf 25515 (cd $(HOST_SUBDIR)/readline && \
b3676d82 25516 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25517 $(TARGET-readline))
25518@endif readline
2a4cbe27 25519
a7254363 25520
d545f33b
PB
25521
25522
a90ef4bf
JM
25523.PHONY: check-readline maybe-check-readline
25524maybe-check-readline:
25525@if readline
25526maybe-check-readline: check-readline
2a4cbe27 25527
a90ef4bf 25528check-readline:
0aed8855 25529 @: $(MAKE); $(unstage)
4fa63067 25530 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25532 $(HOST_EXPORTS) \
a90ef4bf 25533 (cd $(HOST_SUBDIR)/readline && \
b00612cc 25534 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25535
a90ef4bf 25536@endif readline
2a4cbe27 25537
a90ef4bf
JM
25538.PHONY: install-readline maybe-install-readline
25539maybe-install-readline:
25540@if readline
25541maybe-install-readline: install-readline
2a4cbe27 25542
a90ef4bf 25543install-readline: installdirs
0aed8855 25544 @: $(MAKE); $(unstage)
4fa63067
NN
25545 @r=`${PWD_COMMAND}`; export r; \
25546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25547 $(HOST_EXPORTS) \
a90ef4bf 25548 (cd $(HOST_SUBDIR)/readline && \
2da12f12 25549 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 25550
a90ef4bf 25551@endif readline
9b980aa1 25552
a90ef4bf
JM
25553.PHONY: install-strip-readline maybe-install-strip-readline
25554maybe-install-strip-readline:
25555@if readline
25556maybe-install-strip-readline: install-strip-readline
25557
25558install-strip-readline: installdirs
9b980aa1
RW
25559 @: $(MAKE); $(unstage)
25560 @r=`${PWD_COMMAND}`; export r; \
25561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25562 $(HOST_EXPORTS) \
a90ef4bf 25563 (cd $(HOST_SUBDIR)/readline && \
9b980aa1
RW
25564 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25565
a90ef4bf 25566@endif readline
9b980aa1 25567
56a8fe78 25568# Other targets (info, dvi, pdf, etc.)
4fa63067 25569
a90ef4bf
JM
25570.PHONY: maybe-info-readline info-readline
25571maybe-info-readline:
25572@if readline
25573maybe-info-readline: info-readline
4fa63067 25574
a90ef4bf
JM
25575info-readline: \
25576 configure-readline
0aed8855 25577 @: $(MAKE); $(unstage)
a90ef4bf 25578 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25579 r=`${PWD_COMMAND}`; export r; \
25580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25581 $(HOST_EXPORTS) \
b813574b 25582 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25584 done; \
22121df0 25585 echo "Doing info in readline"; \
a90ef4bf 25586 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25589 "RANLIB=$${RANLIB}" \
0c24b341 25590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25591 info) \
2a4cbe27
NN
25592 || exit 1
25593
a90ef4bf 25594@endif readline
2a4cbe27 25595
a90ef4bf
JM
25596.PHONY: maybe-dvi-readline dvi-readline
25597maybe-dvi-readline:
25598@if readline
25599maybe-dvi-readline: dvi-readline
2a4cbe27 25600
a90ef4bf
JM
25601dvi-readline: \
25602 configure-readline
0aed8855 25603 @: $(MAKE); $(unstage)
a90ef4bf 25604 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25605 r=`${PWD_COMMAND}`; export r; \
25606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25607 $(HOST_EXPORTS) \
b813574b 25608 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25610 done; \
22121df0 25611 echo "Doing dvi in readline"; \
a90ef4bf 25612 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25615 "RANLIB=$${RANLIB}" \
0c24b341 25616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25617 dvi) \
2a4cbe27
NN
25618 || exit 1
25619
a90ef4bf 25620@endif readline
2a4cbe27 25621
a90ef4bf
JM
25622.PHONY: maybe-pdf-readline pdf-readline
25623maybe-pdf-readline:
25624@if readline
25625maybe-pdf-readline: pdf-readline
56a8fe78 25626
a90ef4bf
JM
25627pdf-readline: \
25628 configure-readline
56a8fe78 25629 @: $(MAKE); $(unstage)
a90ef4bf 25630 @[ -f ./readline/Makefile ] || exit 0; \
56a8fe78
DD
25631 r=`${PWD_COMMAND}`; export r; \
25632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25633 $(HOST_EXPORTS) \
25634 for flag in $(EXTRA_HOST_FLAGS) ; do \
25635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25636 done; \
22121df0 25637 echo "Doing pdf in readline"; \
a90ef4bf 25638 (cd $(HOST_SUBDIR)/readline && \
56a8fe78
DD
25639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25641 "RANLIB=$${RANLIB}" \
0c24b341 25642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25643 pdf) \
25644 || exit 1
25645
a90ef4bf 25646@endif readline
56a8fe78 25647
a90ef4bf
JM
25648.PHONY: maybe-html-readline html-readline
25649maybe-html-readline:
25650@if readline
25651maybe-html-readline: html-readline
6d389afc 25652
a90ef4bf
JM
25653html-readline: \
25654 configure-readline
0aed8855 25655 @: $(MAKE); $(unstage)
a90ef4bf 25656 @[ -f ./readline/Makefile ] || exit 0; \
6d389afc
MS
25657 r=`${PWD_COMMAND}`; export r; \
25658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25659 $(HOST_EXPORTS) \
25660 for flag in $(EXTRA_HOST_FLAGS) ; do \
25661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25662 done; \
22121df0 25663 echo "Doing html in readline"; \
a90ef4bf 25664 (cd $(HOST_SUBDIR)/readline && \
6d389afc
MS
25665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25667 "RANLIB=$${RANLIB}" \
0c24b341 25668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25669 html) \
25670 || exit 1
25671
a90ef4bf 25672@endif readline
6d389afc 25673
a90ef4bf
JM
25674.PHONY: maybe-TAGS-readline TAGS-readline
25675maybe-TAGS-readline:
25676@if readline
25677maybe-TAGS-readline: TAGS-readline
2a4cbe27 25678
a90ef4bf
JM
25679TAGS-readline: \
25680 configure-readline
0aed8855 25681 @: $(MAKE); $(unstage)
a90ef4bf 25682 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25683 r=`${PWD_COMMAND}`; export r; \
25684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25685 $(HOST_EXPORTS) \
b813574b 25686 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25688 done; \
22121df0 25689 echo "Doing TAGS in readline"; \
a90ef4bf 25690 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25693 "RANLIB=$${RANLIB}" \
0c24b341 25694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25695 TAGS) \
2a4cbe27
NN
25696 || exit 1
25697
a90ef4bf 25698@endif readline
2a4cbe27 25699
a90ef4bf
JM
25700.PHONY: maybe-install-info-readline install-info-readline
25701maybe-install-info-readline:
25702@if readline
25703maybe-install-info-readline: install-info-readline
2a4cbe27 25704
a90ef4bf
JM
25705install-info-readline: \
25706 configure-readline \
25707 info-readline
0aed8855 25708 @: $(MAKE); $(unstage)
a90ef4bf 25709 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25710 r=`${PWD_COMMAND}`; export r; \
25711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25712 $(HOST_EXPORTS) \
b813574b 25713 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25715 done; \
22121df0 25716 echo "Doing install-info in readline"; \
a90ef4bf 25717 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25720 "RANLIB=$${RANLIB}" \
0c24b341 25721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25722 install-info) \
2a4cbe27
NN
25723 || exit 1
25724
a90ef4bf 25725@endif readline
2a4cbe27 25726
a90ef4bf
JM
25727.PHONY: maybe-install-pdf-readline install-pdf-readline
25728maybe-install-pdf-readline:
25729@if readline
25730maybe-install-pdf-readline: install-pdf-readline
a3ca38d2 25731
a90ef4bf
JM
25732install-pdf-readline: \
25733 configure-readline \
25734 pdf-readline
a3ca38d2 25735 @: $(MAKE); $(unstage)
a90ef4bf 25736 @[ -f ./readline/Makefile ] || exit 0; \
a3ca38d2
DD
25737 r=`${PWD_COMMAND}`; export r; \
25738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25739 $(HOST_EXPORTS) \
25740 for flag in $(EXTRA_HOST_FLAGS) ; do \
25741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25742 done; \
22121df0 25743 echo "Doing install-pdf in readline"; \
a90ef4bf 25744 (cd $(HOST_SUBDIR)/readline && \
a3ca38d2
DD
25745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25747 "RANLIB=$${RANLIB}" \
0c24b341 25748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25749 install-pdf) \
25750 || exit 1
25751
a90ef4bf 25752@endif readline
a3ca38d2 25753
a90ef4bf
JM
25754.PHONY: maybe-install-html-readline install-html-readline
25755maybe-install-html-readline:
25756@if readline
25757maybe-install-html-readline: install-html-readline
108a6f8e 25758
a90ef4bf
JM
25759install-html-readline: \
25760 configure-readline \
25761 html-readline
108a6f8e 25762 @: $(MAKE); $(unstage)
a90ef4bf 25763 @[ -f ./readline/Makefile ] || exit 0; \
108a6f8e
CD
25764 r=`${PWD_COMMAND}`; export r; \
25765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25766 $(HOST_EXPORTS) \
25767 for flag in $(EXTRA_HOST_FLAGS) ; do \
25768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25769 done; \
22121df0 25770 echo "Doing install-html in readline"; \
a90ef4bf 25771 (cd $(HOST_SUBDIR)/readline && \
108a6f8e
CD
25772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25774 "RANLIB=$${RANLIB}" \
0c24b341 25775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25776 install-html) \
25777 || exit 1
25778
a90ef4bf 25779@endif readline
108a6f8e 25780
a90ef4bf
JM
25781.PHONY: maybe-installcheck-readline installcheck-readline
25782maybe-installcheck-readline:
25783@if readline
25784maybe-installcheck-readline: installcheck-readline
2a4cbe27 25785
a90ef4bf
JM
25786installcheck-readline: \
25787 configure-readline
0aed8855 25788 @: $(MAKE); $(unstage)
a90ef4bf 25789 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25790 r=`${PWD_COMMAND}`; export r; \
25791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25792 $(HOST_EXPORTS) \
b813574b 25793 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25795 done; \
22121df0 25796 echo "Doing installcheck in readline"; \
a90ef4bf 25797 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25800 "RANLIB=$${RANLIB}" \
0c24b341 25801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25802 installcheck) \
2a4cbe27
NN
25803 || exit 1
25804
a90ef4bf 25805@endif readline
2a4cbe27 25806
a90ef4bf
JM
25807.PHONY: maybe-mostlyclean-readline mostlyclean-readline
25808maybe-mostlyclean-readline:
25809@if readline
25810maybe-mostlyclean-readline: mostlyclean-readline
2a4cbe27 25811
a90ef4bf 25812mostlyclean-readline:
0aed8855 25813 @: $(MAKE); $(unstage)
a90ef4bf 25814 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25815 r=`${PWD_COMMAND}`; export r; \
25816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25817 $(HOST_EXPORTS) \
b813574b 25818 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25820 done; \
22121df0 25821 echo "Doing mostlyclean in readline"; \
a90ef4bf 25822 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25825 "RANLIB=$${RANLIB}" \
0c24b341 25826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25827 mostlyclean) \
2a4cbe27
NN
25828 || exit 1
25829
a90ef4bf 25830@endif readline
2a4cbe27 25831
a90ef4bf
JM
25832.PHONY: maybe-clean-readline clean-readline
25833maybe-clean-readline:
25834@if readline
25835maybe-clean-readline: clean-readline
2a4cbe27 25836
a90ef4bf 25837clean-readline:
0aed8855 25838 @: $(MAKE); $(unstage)
a90ef4bf 25839 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25840 r=`${PWD_COMMAND}`; export r; \
25841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25842 $(HOST_EXPORTS) \
b813574b 25843 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25845 done; \
22121df0 25846 echo "Doing clean in readline"; \
a90ef4bf 25847 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25850 "RANLIB=$${RANLIB}" \
0c24b341 25851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25852 clean) \
2a4cbe27
NN
25853 || exit 1
25854
a90ef4bf 25855@endif readline
2a4cbe27 25856
a90ef4bf
JM
25857.PHONY: maybe-distclean-readline distclean-readline
25858maybe-distclean-readline:
25859@if readline
25860maybe-distclean-readline: distclean-readline
2a4cbe27 25861
a90ef4bf 25862distclean-readline:
0aed8855 25863 @: $(MAKE); $(unstage)
a90ef4bf 25864 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25865 r=`${PWD_COMMAND}`; export r; \
25866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25867 $(HOST_EXPORTS) \
b813574b 25868 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25870 done; \
22121df0 25871 echo "Doing distclean in readline"; \
a90ef4bf 25872 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25875 "RANLIB=$${RANLIB}" \
0c24b341 25876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25877 distclean) \
2a4cbe27
NN
25878 || exit 1
25879
a90ef4bf 25880@endif readline
2a4cbe27 25881
a90ef4bf
JM
25882.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
25883maybe-maintainer-clean-readline:
25884@if readline
25885maybe-maintainer-clean-readline: maintainer-clean-readline
2a4cbe27 25886
a90ef4bf 25887maintainer-clean-readline:
0aed8855 25888 @: $(MAKE); $(unstage)
a90ef4bf 25889 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25890 r=`${PWD_COMMAND}`; export r; \
25891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25892 $(HOST_EXPORTS) \
b813574b 25893 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25895 done; \
22121df0 25896 echo "Doing maintainer-clean in readline"; \
a90ef4bf 25897 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25900 "RANLIB=$${RANLIB}" \
0c24b341 25901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25902 maintainer-clean) \
2a4cbe27
NN
25903 || exit 1
25904
a90ef4bf 25905@endif readline
2a4cbe27 25906
2a4cbe27 25907
a7254363 25908
a90ef4bf
JM
25909.PHONY: configure-sid maybe-configure-sid
25910maybe-configure-sid:
4f0ef2d8 25911@if gcc-bootstrap
a90ef4bf 25912configure-sid: stage_current
4f0ef2d8 25913@endif gcc-bootstrap
a90ef4bf
JM
25914@if sid
25915maybe-configure-sid: configure-sid
25916configure-sid:
0aed8855 25917 @: $(MAKE); $(unstage)
c52c6897 25918 @r=`${PWD_COMMAND}`; export r; \
4fa63067 25919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25920 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
22121df0 25921 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid; \
1f53ca9a 25922 $(HOST_EXPORTS) \
a90ef4bf
JM
25923 echo Configuring in $(HOST_SUBDIR)/sid; \
25924 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4fa63067 25925 case $(srcdir) in \
b00612cc 25926 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25927 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
b00612cc 25928 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25929 esac; \
1b6c0831
L
25930 module_srcdir=sid; \
25931 $(SHELL) \
25932 $$s/$$module_srcdir/configure \
25933 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25934 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25935 --target=${target_alias} \
4fa63067 25936 || exit 1
a90ef4bf 25937@endif sid
2a4cbe27 25938
a7254363
PB
25939
25940
d545f33b
PB
25941
25942
a90ef4bf
JM
25943.PHONY: all-sid maybe-all-sid
25944maybe-all-sid:
4f0ef2d8 25945@if gcc-bootstrap
a90ef4bf 25946all-sid: stage_current
4f0ef2d8 25947@endif gcc-bootstrap
a90ef4bf
JM
25948@if sid
25949TARGET-sid=all
25950maybe-all-sid: all-sid
25951all-sid: configure-sid
0aed8855 25952 @: $(MAKE); $(unstage)
4fa63067
NN
25953 @r=`${PWD_COMMAND}`; export r; \
25954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25955 $(HOST_EXPORTS) \
a90ef4bf 25956 (cd $(HOST_SUBDIR)/sid && \
b3676d82 25957 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25958 $(TARGET-sid))
25959@endif sid
2a4cbe27 25960
a7254363 25961
d545f33b
PB
25962
25963
a90ef4bf
JM
25964.PHONY: check-sid maybe-check-sid
25965maybe-check-sid:
25966@if sid
25967maybe-check-sid: check-sid
2a4cbe27 25968
a90ef4bf 25969check-sid:
0aed8855 25970 @: $(MAKE); $(unstage)
4fa63067 25971 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25973 $(HOST_EXPORTS) \
a90ef4bf 25974 (cd $(HOST_SUBDIR)/sid && \
b00612cc 25975 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25976
a90ef4bf 25977@endif sid
2a4cbe27 25978
a90ef4bf
JM
25979.PHONY: install-sid maybe-install-sid
25980maybe-install-sid:
25981@if sid
25982maybe-install-sid: install-sid
2a4cbe27 25983
a90ef4bf 25984install-sid: installdirs
0aed8855 25985 @: $(MAKE); $(unstage)
4fa63067 25986 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25988 $(HOST_EXPORTS) \
a90ef4bf 25989 (cd $(HOST_SUBDIR)/sid && \
2da12f12 25990 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25991
a90ef4bf 25992@endif sid
2a4cbe27 25993
a90ef4bf
JM
25994.PHONY: install-strip-sid maybe-install-strip-sid
25995maybe-install-strip-sid:
25996@if sid
25997maybe-install-strip-sid: install-strip-sid
9b980aa1 25998
a90ef4bf 25999install-strip-sid: installdirs
9b980aa1
RW
26000 @: $(MAKE); $(unstage)
26001 @r=`${PWD_COMMAND}`; export r; \
26002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26003 $(HOST_EXPORTS) \
a90ef4bf 26004 (cd $(HOST_SUBDIR)/sid && \
9b980aa1
RW
26005 $(MAKE) $(FLAGS_TO_PASS) install-strip)
26006
a90ef4bf 26007@endif sid
9b980aa1 26008
56a8fe78 26009# Other targets (info, dvi, pdf, etc.)
2a4cbe27 26010
a90ef4bf
JM
26011.PHONY: maybe-info-sid info-sid
26012maybe-info-sid:
26013@if sid
26014maybe-info-sid: info-sid
4fa63067 26015
a90ef4bf
JM
26016info-sid: \
26017 configure-sid
0aed8855 26018 @: $(MAKE); $(unstage)
a90ef4bf 26019 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26020 r=`${PWD_COMMAND}`; export r; \
26021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26022 $(HOST_EXPORTS) \
b813574b 26023 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26025 done; \
22121df0 26026 echo "Doing info in sid"; \
a90ef4bf 26027 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26030 "RANLIB=$${RANLIB}" \
0c24b341 26031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26032 info) \
2a4cbe27
NN
26033 || exit 1
26034
a90ef4bf 26035@endif sid
2a4cbe27 26036
a90ef4bf
JM
26037.PHONY: maybe-dvi-sid dvi-sid
26038maybe-dvi-sid:
26039@if sid
26040maybe-dvi-sid: dvi-sid
2a4cbe27 26041
a90ef4bf
JM
26042dvi-sid: \
26043 configure-sid
0aed8855 26044 @: $(MAKE); $(unstage)
a90ef4bf 26045 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26046 r=`${PWD_COMMAND}`; export r; \
26047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26048 $(HOST_EXPORTS) \
b813574b 26049 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26051 done; \
22121df0 26052 echo "Doing dvi in sid"; \
a90ef4bf 26053 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26056 "RANLIB=$${RANLIB}" \
0c24b341 26057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26058 dvi) \
2a4cbe27
NN
26059 || exit 1
26060
a90ef4bf 26061@endif sid
2a4cbe27 26062
a90ef4bf
JM
26063.PHONY: maybe-pdf-sid pdf-sid
26064maybe-pdf-sid:
26065@if sid
26066maybe-pdf-sid: pdf-sid
56a8fe78 26067
a90ef4bf
JM
26068pdf-sid: \
26069 configure-sid
56a8fe78 26070 @: $(MAKE); $(unstage)
a90ef4bf 26071 @[ -f ./sid/Makefile ] || exit 0; \
56a8fe78
DD
26072 r=`${PWD_COMMAND}`; export r; \
26073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26074 $(HOST_EXPORTS) \
26075 for flag in $(EXTRA_HOST_FLAGS) ; do \
26076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26077 done; \
22121df0 26078 echo "Doing pdf in sid"; \
a90ef4bf 26079 (cd $(HOST_SUBDIR)/sid && \
56a8fe78
DD
26080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26082 "RANLIB=$${RANLIB}" \
0c24b341 26083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26084 pdf) \
26085 || exit 1
26086
a90ef4bf 26087@endif sid
56a8fe78 26088
a90ef4bf
JM
26089.PHONY: maybe-html-sid html-sid
26090maybe-html-sid:
26091@if sid
26092maybe-html-sid: html-sid
6d389afc 26093
a90ef4bf
JM
26094html-sid: \
26095 configure-sid
0aed8855 26096 @: $(MAKE); $(unstage)
a90ef4bf 26097 @[ -f ./sid/Makefile ] || exit 0; \
6d389afc
MS
26098 r=`${PWD_COMMAND}`; export r; \
26099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26100 $(HOST_EXPORTS) \
26101 for flag in $(EXTRA_HOST_FLAGS) ; do \
26102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26103 done; \
22121df0 26104 echo "Doing html in sid"; \
a90ef4bf 26105 (cd $(HOST_SUBDIR)/sid && \
6d389afc
MS
26106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26108 "RANLIB=$${RANLIB}" \
0c24b341 26109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26110 html) \
26111 || exit 1
26112
a90ef4bf 26113@endif sid
6d389afc 26114
a90ef4bf
JM
26115.PHONY: maybe-TAGS-sid TAGS-sid
26116maybe-TAGS-sid:
26117@if sid
26118maybe-TAGS-sid: TAGS-sid
2a4cbe27 26119
a90ef4bf
JM
26120TAGS-sid: \
26121 configure-sid
0aed8855 26122 @: $(MAKE); $(unstage)
a90ef4bf 26123 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26124 r=`${PWD_COMMAND}`; export r; \
26125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26126 $(HOST_EXPORTS) \
b813574b 26127 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26129 done; \
22121df0 26130 echo "Doing TAGS in sid"; \
a90ef4bf 26131 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26134 "RANLIB=$${RANLIB}" \
0c24b341 26135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26136 TAGS) \
2a4cbe27
NN
26137 || exit 1
26138
a90ef4bf 26139@endif sid
2a4cbe27 26140
a90ef4bf
JM
26141.PHONY: maybe-install-info-sid install-info-sid
26142maybe-install-info-sid:
26143@if sid
26144maybe-install-info-sid: install-info-sid
2a4cbe27 26145
a90ef4bf
JM
26146install-info-sid: \
26147 configure-sid \
26148 info-sid
0aed8855 26149 @: $(MAKE); $(unstage)
a90ef4bf 26150 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26151 r=`${PWD_COMMAND}`; export r; \
26152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26153 $(HOST_EXPORTS) \
b813574b 26154 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26156 done; \
22121df0 26157 echo "Doing install-info in sid"; \
a90ef4bf 26158 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26161 "RANLIB=$${RANLIB}" \
0c24b341 26162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26163 install-info) \
2a4cbe27
NN
26164 || exit 1
26165
a90ef4bf 26166@endif sid
2a4cbe27 26167
a90ef4bf
JM
26168.PHONY: maybe-install-pdf-sid install-pdf-sid
26169maybe-install-pdf-sid:
26170@if sid
26171maybe-install-pdf-sid: install-pdf-sid
a3ca38d2 26172
a90ef4bf
JM
26173install-pdf-sid: \
26174 configure-sid \
26175 pdf-sid
a3ca38d2 26176 @: $(MAKE); $(unstage)
a90ef4bf 26177 @[ -f ./sid/Makefile ] || exit 0; \
a3ca38d2
DD
26178 r=`${PWD_COMMAND}`; export r; \
26179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26180 $(HOST_EXPORTS) \
26181 for flag in $(EXTRA_HOST_FLAGS) ; do \
26182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26183 done; \
22121df0 26184 echo "Doing install-pdf in sid"; \
a90ef4bf 26185 (cd $(HOST_SUBDIR)/sid && \
a3ca38d2
DD
26186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26188 "RANLIB=$${RANLIB}" \
0c24b341 26189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26190 install-pdf) \
26191 || exit 1
26192
a90ef4bf 26193@endif sid
a3ca38d2 26194
a90ef4bf
JM
26195.PHONY: maybe-install-html-sid install-html-sid
26196maybe-install-html-sid:
26197@if sid
26198maybe-install-html-sid: install-html-sid
108a6f8e 26199
a90ef4bf
JM
26200install-html-sid: \
26201 configure-sid \
26202 html-sid
108a6f8e 26203 @: $(MAKE); $(unstage)
a90ef4bf 26204 @[ -f ./sid/Makefile ] || exit 0; \
108a6f8e
CD
26205 r=`${PWD_COMMAND}`; export r; \
26206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26207 $(HOST_EXPORTS) \
26208 for flag in $(EXTRA_HOST_FLAGS) ; do \
26209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26210 done; \
22121df0 26211 echo "Doing install-html in sid"; \
a90ef4bf 26212 (cd $(HOST_SUBDIR)/sid && \
108a6f8e
CD
26213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26215 "RANLIB=$${RANLIB}" \
0c24b341 26216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26217 install-html) \
26218 || exit 1
26219
a90ef4bf 26220@endif sid
108a6f8e 26221
a90ef4bf
JM
26222.PHONY: maybe-installcheck-sid installcheck-sid
26223maybe-installcheck-sid:
26224@if sid
26225maybe-installcheck-sid: installcheck-sid
2a4cbe27 26226
a90ef4bf
JM
26227installcheck-sid: \
26228 configure-sid
0aed8855 26229 @: $(MAKE); $(unstage)
a90ef4bf 26230 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26231 r=`${PWD_COMMAND}`; export r; \
26232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26233 $(HOST_EXPORTS) \
b813574b 26234 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26236 done; \
22121df0 26237 echo "Doing installcheck in sid"; \
a90ef4bf 26238 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26241 "RANLIB=$${RANLIB}" \
0c24b341 26242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26243 installcheck) \
2a4cbe27
NN
26244 || exit 1
26245
a90ef4bf 26246@endif sid
2a4cbe27 26247
a90ef4bf
JM
26248.PHONY: maybe-mostlyclean-sid mostlyclean-sid
26249maybe-mostlyclean-sid:
26250@if sid
26251maybe-mostlyclean-sid: mostlyclean-sid
2a4cbe27 26252
a90ef4bf 26253mostlyclean-sid:
0aed8855 26254 @: $(MAKE); $(unstage)
a90ef4bf 26255 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26256 r=`${PWD_COMMAND}`; export r; \
26257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26258 $(HOST_EXPORTS) \
b813574b 26259 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26261 done; \
22121df0 26262 echo "Doing mostlyclean in sid"; \
a90ef4bf 26263 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26266 "RANLIB=$${RANLIB}" \
0c24b341 26267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26268 mostlyclean) \
2a4cbe27
NN
26269 || exit 1
26270
a90ef4bf 26271@endif sid
2a4cbe27 26272
a90ef4bf
JM
26273.PHONY: maybe-clean-sid clean-sid
26274maybe-clean-sid:
26275@if sid
26276maybe-clean-sid: clean-sid
2a4cbe27 26277
a90ef4bf 26278clean-sid:
0aed8855 26279 @: $(MAKE); $(unstage)
a90ef4bf 26280 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26281 r=`${PWD_COMMAND}`; export r; \
26282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26283 $(HOST_EXPORTS) \
b813574b 26284 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26286 done; \
22121df0 26287 echo "Doing clean in sid"; \
a90ef4bf 26288 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26291 "RANLIB=$${RANLIB}" \
0c24b341 26292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26293 clean) \
2a4cbe27
NN
26294 || exit 1
26295
a90ef4bf 26296@endif sid
2a4cbe27 26297
a90ef4bf
JM
26298.PHONY: maybe-distclean-sid distclean-sid
26299maybe-distclean-sid:
26300@if sid
26301maybe-distclean-sid: distclean-sid
2a4cbe27 26302
a90ef4bf 26303distclean-sid:
0aed8855 26304 @: $(MAKE); $(unstage)
a90ef4bf 26305 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26306 r=`${PWD_COMMAND}`; export r; \
26307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26308 $(HOST_EXPORTS) \
b813574b 26309 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26311 done; \
22121df0 26312 echo "Doing distclean in sid"; \
a90ef4bf 26313 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26316 "RANLIB=$${RANLIB}" \
0c24b341 26317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26318 distclean) \
2a4cbe27
NN
26319 || exit 1
26320
a90ef4bf 26321@endif sid
2a4cbe27 26322
a90ef4bf
JM
26323.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
26324maybe-maintainer-clean-sid:
26325@if sid
26326maybe-maintainer-clean-sid: maintainer-clean-sid
2a4cbe27 26327
a90ef4bf 26328maintainer-clean-sid:
0aed8855 26329 @: $(MAKE); $(unstage)
a90ef4bf 26330 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26331 r=`${PWD_COMMAND}`; export r; \
26332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26333 $(HOST_EXPORTS) \
b813574b 26334 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26336 done; \
22121df0 26337 echo "Doing maintainer-clean in sid"; \
a90ef4bf 26338 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26341 "RANLIB=$${RANLIB}" \
0c24b341 26342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26343 maintainer-clean) \
2a4cbe27
NN
26344 || exit 1
26345
a90ef4bf 26346@endif sid
2a4cbe27 26347
a2592b1b 26348
a7254363 26349
a90ef4bf
JM
26350.PHONY: configure-sim maybe-configure-sim
26351maybe-configure-sim:
4f0ef2d8 26352@if gcc-bootstrap
a90ef4bf 26353configure-sim: stage_current
4f0ef2d8 26354@endif gcc-bootstrap
a90ef4bf
JM
26355@if sim
26356maybe-configure-sim: configure-sim
26357configure-sim:
26358 @: $(MAKE); $(unstage)
c52c6897
PB
26359 @r=`${PWD_COMMAND}`; export r; \
26360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26361 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
22121df0 26362 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim; \
1f53ca9a 26363 $(HOST_EXPORTS) \
a90ef4bf
JM
26364 echo Configuring in $(HOST_SUBDIR)/sim; \
26365 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4fa63067 26366 case $(srcdir) in \
b00612cc 26367 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26368 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
b00612cc 26369 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26370 esac; \
1b6c0831
L
26371 module_srcdir=sim; \
26372 $(SHELL) \
26373 $$s/$$module_srcdir/configure \
26374 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26375 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26376 --target=${target_alias} \
a2592b1b 26377 || exit 1
a90ef4bf 26378@endif sim
a2592b1b 26379
a7254363
PB
26380
26381
a90ef4bf
JM
26382
26383
26384.PHONY: all-sim maybe-all-sim
26385maybe-all-sim:
26386@if gcc-bootstrap
26387all-sim: stage_current
26388@endif gcc-bootstrap
26389@if sim
26390TARGET-sim=all
26391maybe-all-sim: all-sim
26392all-sim: configure-sim
26393 @: $(MAKE); $(unstage)
c52c6897
PB
26394 @r=`${PWD_COMMAND}`; export r; \
26395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26396 $(HOST_EXPORTS) \
26397 (cd $(HOST_SUBDIR)/sim && \
b3676d82 26398 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26399 $(TARGET-sim))
26400@endif sim
d545f33b 26401
a90ef4bf
JM
26402
26403
26404
26405.PHONY: check-sim maybe-check-sim
26406maybe-check-sim:
26407@if sim
26408maybe-check-sim: check-sim
26409
26410check-sim:
26411 @: $(MAKE); $(unstage)
c52c6897
PB
26412 @r=`${PWD_COMMAND}`; export r; \
26413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26414 $(HOST_EXPORTS) \
a90ef4bf
JM
26415 (cd $(HOST_SUBDIR)/sim && \
26416 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 26417
a90ef4bf
JM
26418@endif sim
26419
26420.PHONY: install-sim maybe-install-sim
26421maybe-install-sim:
26422@if sim
26423maybe-install-sim: install-sim
26424
26425install-sim: installdirs
26426 @: $(MAKE); $(unstage)
c52c6897
PB
26427 @r=`${PWD_COMMAND}`; export r; \
26428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26429 $(HOST_EXPORTS) \
a90ef4bf
JM
26430 (cd $(HOST_SUBDIR)/sim && \
26431 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 26432
a90ef4bf
JM
26433@endif sim
26434
26435.PHONY: install-strip-sim maybe-install-strip-sim
26436maybe-install-strip-sim:
26437@if sim
26438maybe-install-strip-sim: install-strip-sim
26439
26440install-strip-sim: installdirs
26441 @: $(MAKE); $(unstage)
c52c6897
PB
26442 @r=`${PWD_COMMAND}`; export r; \
26443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26444 $(HOST_EXPORTS) \
a90ef4bf
JM
26445 (cd $(HOST_SUBDIR)/sim && \
26446 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 26447
a90ef4bf 26448@endif sim
9b980aa1 26449
56a8fe78 26450# Other targets (info, dvi, pdf, etc.)
4fa63067 26451
a90ef4bf
JM
26452.PHONY: maybe-info-sim info-sim
26453maybe-info-sim:
26454@if sim
26455maybe-info-sim: info-sim
4fa63067 26456
a90ef4bf
JM
26457info-sim: \
26458 configure-sim
26459 @: $(MAKE); $(unstage)
26460 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26461 r=`${PWD_COMMAND}`; export r; \
26462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26463 $(HOST_EXPORTS) \
b813574b 26464 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26466 done; \
22121df0 26467 echo "Doing info in sim"; \
a90ef4bf 26468 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26471 "RANLIB=$${RANLIB}" \
0c24b341 26472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26473 info) \
2a4cbe27
NN
26474 || exit 1
26475
a90ef4bf 26476@endif sim
2a4cbe27 26477
a90ef4bf
JM
26478.PHONY: maybe-dvi-sim dvi-sim
26479maybe-dvi-sim:
26480@if sim
26481maybe-dvi-sim: dvi-sim
2a4cbe27 26482
a90ef4bf
JM
26483dvi-sim: \
26484 configure-sim
26485 @: $(MAKE); $(unstage)
26486 @[ -f ./sim/Makefile ] || exit 0; \
b813574b 26487 r=`${PWD_COMMAND}`; export r; \
b40e3958 26488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26489 $(HOST_EXPORTS) \
b813574b 26490 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26492 done; \
22121df0 26493 echo "Doing dvi in sim"; \
a90ef4bf 26494 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26497 "RANLIB=$${RANLIB}" \
0c24b341 26498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26499 dvi) \
2a4cbe27
NN
26500 || exit 1
26501
a90ef4bf 26502@endif sim
2a4cbe27 26503
a90ef4bf
JM
26504.PHONY: maybe-pdf-sim pdf-sim
26505maybe-pdf-sim:
26506@if sim
26507maybe-pdf-sim: pdf-sim
56a8fe78 26508
a90ef4bf
JM
26509pdf-sim: \
26510 configure-sim
26511 @: $(MAKE); $(unstage)
26512 @[ -f ./sim/Makefile ] || exit 0; \
56a8fe78
DD
26513 r=`${PWD_COMMAND}`; export r; \
26514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26515 $(HOST_EXPORTS) \
26516 for flag in $(EXTRA_HOST_FLAGS) ; do \
26517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26518 done; \
22121df0 26519 echo "Doing pdf in sim"; \
a90ef4bf 26520 (cd $(HOST_SUBDIR)/sim && \
56a8fe78
DD
26521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26523 "RANLIB=$${RANLIB}" \
0c24b341 26524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26525 pdf) \
26526 || exit 1
26527
a90ef4bf 26528@endif sim
56a8fe78 26529
a90ef4bf
JM
26530.PHONY: maybe-html-sim html-sim
26531maybe-html-sim:
26532@if sim
26533maybe-html-sim: html-sim
6d389afc 26534
a90ef4bf
JM
26535html-sim: \
26536 configure-sim
26537 @: $(MAKE); $(unstage)
26538 @[ -f ./sim/Makefile ] || exit 0; \
6d389afc
MS
26539 r=`${PWD_COMMAND}`; export r; \
26540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26541 $(HOST_EXPORTS) \
26542 for flag in $(EXTRA_HOST_FLAGS) ; do \
26543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26544 done; \
22121df0 26545 echo "Doing html in sim"; \
a90ef4bf 26546 (cd $(HOST_SUBDIR)/sim && \
6d389afc
MS
26547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26549 "RANLIB=$${RANLIB}" \
0c24b341 26550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26551 html) \
26552 || exit 1
26553
a90ef4bf 26554@endif sim
6d389afc 26555
a90ef4bf
JM
26556.PHONY: maybe-TAGS-sim TAGS-sim
26557maybe-TAGS-sim:
26558@if sim
26559maybe-TAGS-sim: TAGS-sim
2a4cbe27 26560
a90ef4bf
JM
26561TAGS-sim: \
26562 configure-sim
26563 @: $(MAKE); $(unstage)
26564 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26565 r=`${PWD_COMMAND}`; export r; \
26566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26567 $(HOST_EXPORTS) \
b813574b 26568 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26570 done; \
22121df0 26571 echo "Doing TAGS in sim"; \
a90ef4bf 26572 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26575 "RANLIB=$${RANLIB}" \
0c24b341 26576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26577 TAGS) \
2a4cbe27
NN
26578 || exit 1
26579
a90ef4bf 26580@endif sim
2a4cbe27 26581
a90ef4bf
JM
26582.PHONY: maybe-install-info-sim install-info-sim
26583maybe-install-info-sim:
26584@if sim
26585maybe-install-info-sim: install-info-sim
2a4cbe27 26586
a90ef4bf
JM
26587install-info-sim: \
26588 configure-sim \
26589 info-sim
26590 @: $(MAKE); $(unstage)
26591 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26592 r=`${PWD_COMMAND}`; export r; \
26593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26594 $(HOST_EXPORTS) \
b813574b 26595 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26597 done; \
22121df0 26598 echo "Doing install-info in sim"; \
a90ef4bf
JM
26599 (cd $(HOST_SUBDIR)/sim && \
26600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2a4cbe27
NN
26601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26602 "RANLIB=$${RANLIB}" \
0c24b341 26603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26604 install-info) \
2a4cbe27
NN
26605 || exit 1
26606
a90ef4bf 26607@endif sim
2a4cbe27 26608
a90ef4bf
JM
26609.PHONY: maybe-install-pdf-sim install-pdf-sim
26610maybe-install-pdf-sim:
26611@if sim
26612maybe-install-pdf-sim: install-pdf-sim
a3ca38d2 26613
a90ef4bf
JM
26614install-pdf-sim: \
26615 configure-sim \
26616 pdf-sim
26617 @: $(MAKE); $(unstage)
26618 @[ -f ./sim/Makefile ] || exit 0; \
a3ca38d2
DD
26619 r=`${PWD_COMMAND}`; export r; \
26620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26621 $(HOST_EXPORTS) \
26622 for flag in $(EXTRA_HOST_FLAGS) ; do \
26623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26624 done; \
22121df0 26625 echo "Doing install-pdf in sim"; \
a90ef4bf 26626 (cd $(HOST_SUBDIR)/sim && \
a3ca38d2
DD
26627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26629 "RANLIB=$${RANLIB}" \
0c24b341 26630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26631 install-pdf) \
26632 || exit 1
26633
a90ef4bf 26634@endif sim
a3ca38d2 26635
a90ef4bf
JM
26636.PHONY: maybe-install-html-sim install-html-sim
26637maybe-install-html-sim:
26638@if sim
26639maybe-install-html-sim: install-html-sim
108a6f8e 26640
a90ef4bf
JM
26641install-html-sim: \
26642 configure-sim \
26643 html-sim
26644 @: $(MAKE); $(unstage)
26645 @[ -f ./sim/Makefile ] || exit 0; \
108a6f8e
CD
26646 r=`${PWD_COMMAND}`; export r; \
26647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26648 $(HOST_EXPORTS) \
26649 for flag in $(EXTRA_HOST_FLAGS) ; do \
26650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26651 done; \
22121df0 26652 echo "Doing install-html in sim"; \
a90ef4bf 26653 (cd $(HOST_SUBDIR)/sim && \
108a6f8e
CD
26654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26656 "RANLIB=$${RANLIB}" \
0c24b341 26657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26658 install-html) \
26659 || exit 1
26660
a90ef4bf 26661@endif sim
108a6f8e 26662
a90ef4bf
JM
26663.PHONY: maybe-installcheck-sim installcheck-sim
26664maybe-installcheck-sim:
26665@if sim
26666maybe-installcheck-sim: installcheck-sim
2a4cbe27 26667
a90ef4bf
JM
26668installcheck-sim: \
26669 configure-sim
26670 @: $(MAKE); $(unstage)
26671 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26672 r=`${PWD_COMMAND}`; export r; \
26673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26674 $(HOST_EXPORTS) \
b813574b 26675 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26677 done; \
22121df0 26678 echo "Doing installcheck in sim"; \
a90ef4bf 26679 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26682 "RANLIB=$${RANLIB}" \
0c24b341 26683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26684 installcheck) \
2a4cbe27
NN
26685 || exit 1
26686
a90ef4bf 26687@endif sim
2a4cbe27 26688
a90ef4bf
JM
26689.PHONY: maybe-mostlyclean-sim mostlyclean-sim
26690maybe-mostlyclean-sim:
26691@if sim
26692maybe-mostlyclean-sim: mostlyclean-sim
2a4cbe27 26693
a90ef4bf
JM
26694mostlyclean-sim:
26695 @: $(MAKE); $(unstage)
26696 @[ -f ./sim/Makefile ] || exit 0; \
b813574b
PB
26697 r=`${PWD_COMMAND}`; export r; \
26698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b
PB
26699 $(HOST_EXPORTS) \
26700 for flag in $(EXTRA_HOST_FLAGS) ; do \
26701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26702 done; \
22121df0 26703 echo "Doing mostlyclean in sim"; \
a90ef4bf 26704 (cd $(HOST_SUBDIR)/sim && \
b813574b
PB
26705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26707 "RANLIB=$${RANLIB}" \
0c24b341 26708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b
PB
26709 mostlyclean) \
26710 || exit 1
4fa63067 26711
a90ef4bf 26712@endif sim
4fa63067 26713
a90ef4bf
JM
26714.PHONY: maybe-clean-sim clean-sim
26715maybe-clean-sim:
26716@if sim
26717maybe-clean-sim: clean-sim
4fa63067 26718
a90ef4bf
JM
26719clean-sim:
26720 @: $(MAKE); $(unstage)
26721 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26722 r=`${PWD_COMMAND}`; export r; \
26723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26724 $(HOST_EXPORTS) \
b813574b 26725 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26727 done; \
22121df0 26728 echo "Doing clean in sim"; \
a90ef4bf 26729 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26732 "RANLIB=$${RANLIB}" \
0c24b341 26733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26734 clean) \
2a4cbe27
NN
26735 || exit 1
26736
a90ef4bf 26737@endif sim
2a4cbe27 26738
a90ef4bf
JM
26739.PHONY: maybe-distclean-sim distclean-sim
26740maybe-distclean-sim:
26741@if sim
26742maybe-distclean-sim: distclean-sim
2a4cbe27 26743
a90ef4bf
JM
26744distclean-sim:
26745 @: $(MAKE); $(unstage)
26746 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26747 r=`${PWD_COMMAND}`; export r; \
26748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26749 $(HOST_EXPORTS) \
b813574b 26750 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26752 done; \
22121df0 26753 echo "Doing distclean in sim"; \
a90ef4bf 26754 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26757 "RANLIB=$${RANLIB}" \
0c24b341 26758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26759 distclean) \
2a4cbe27
NN
26760 || exit 1
26761
a90ef4bf 26762@endif sim
2a4cbe27 26763
a90ef4bf
JM
26764.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
26765maybe-maintainer-clean-sim:
26766@if sim
26767maybe-maintainer-clean-sim: maintainer-clean-sim
2a4cbe27 26768
a90ef4bf
JM
26769maintainer-clean-sim:
26770 @: $(MAKE); $(unstage)
26771 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26772 r=`${PWD_COMMAND}`; export r; \
26773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26774 $(HOST_EXPORTS) \
b813574b 26775 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26777 done; \
22121df0 26778 echo "Doing maintainer-clean in sim"; \
a90ef4bf 26779 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26782 "RANLIB=$${RANLIB}" \
0c24b341 26783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26784 maintainer-clean) \
2a4cbe27
NN
26785 || exit 1
26786
a90ef4bf 26787@endif sim
2a4cbe27 26788
2a4cbe27 26789
a7254363 26790
a90ef4bf
JM
26791.PHONY: configure-texinfo maybe-configure-texinfo
26792maybe-configure-texinfo:
4f0ef2d8 26793@if gcc-bootstrap
a90ef4bf 26794configure-texinfo: stage_current
4f0ef2d8 26795@endif gcc-bootstrap
a90ef4bf
JM
26796@if texinfo
26797maybe-configure-texinfo: configure-texinfo
26798configure-texinfo:
0aed8855 26799 @: $(MAKE); $(unstage)
c52c6897 26800 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26802 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 26803 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo; \
1f53ca9a 26804 $(HOST_EXPORTS) \
a90ef4bf
JM
26805 echo Configuring in $(HOST_SUBDIR)/texinfo; \
26806 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4fa63067 26807 case $(srcdir) in \
b00612cc 26808 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26809 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
b00612cc 26810 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26811 esac; \
1b6c0831
L
26812 module_srcdir=texinfo; \
26813 $(SHELL) \
26814 $$s/$$module_srcdir/configure \
26815 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26816 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26817 --target=${target_alias} \
2a4cbe27 26818 || exit 1
a90ef4bf 26819@endif texinfo
2a4cbe27 26820
a7254363
PB
26821
26822
d545f33b
PB
26823
26824
a90ef4bf
JM
26825.PHONY: all-texinfo maybe-all-texinfo
26826maybe-all-texinfo:
4f0ef2d8 26827@if gcc-bootstrap
a90ef4bf 26828all-texinfo: stage_current
4f0ef2d8 26829@endif gcc-bootstrap
a90ef4bf
JM
26830@if texinfo
26831TARGET-texinfo=all
26832maybe-all-texinfo: all-texinfo
26833all-texinfo: configure-texinfo
0aed8855 26834 @: $(MAKE); $(unstage)
4fa63067
NN
26835 @r=`${PWD_COMMAND}`; export r; \
26836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26837 $(HOST_EXPORTS) \
a90ef4bf 26838 (cd $(HOST_SUBDIR)/texinfo && \
b3676d82 26839 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26840 $(TARGET-texinfo))
26841@endif texinfo
4fa63067 26842
a7254363 26843
d545f33b
PB
26844
26845
a90ef4bf
JM
26846.PHONY: check-texinfo maybe-check-texinfo
26847maybe-check-texinfo:
26848@if texinfo
26849maybe-check-texinfo: check-texinfo
2a4cbe27 26850
a90ef4bf 26851check-texinfo:
0aed8855 26852 @: $(MAKE); $(unstage)
4fa63067
NN
26853 @r=`${PWD_COMMAND}`; export r; \
26854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26855 $(HOST_EXPORTS) \
a90ef4bf 26856 (cd $(HOST_SUBDIR)/texinfo && \
b00612cc 26857 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26858
a90ef4bf 26859@endif texinfo
4fa63067 26860
a90ef4bf
JM
26861.PHONY: install-texinfo maybe-install-texinfo
26862maybe-install-texinfo:
26863@if texinfo
26864maybe-install-texinfo: install-texinfo
4fa63067 26865
a90ef4bf 26866install-texinfo:
4fa63067 26867
a90ef4bf 26868@endif texinfo
4fa63067 26869
a90ef4bf
JM
26870.PHONY: install-strip-texinfo maybe-install-strip-texinfo
26871maybe-install-strip-texinfo:
26872@if texinfo
26873maybe-install-strip-texinfo: install-strip-texinfo
9b980aa1 26874
a90ef4bf 26875install-strip-texinfo:
9b980aa1 26876
a90ef4bf 26877@endif texinfo
9b980aa1 26878
56a8fe78 26879# Other targets (info, dvi, pdf, etc.)
4fa63067 26880
a90ef4bf
JM
26881.PHONY: maybe-info-texinfo info-texinfo
26882maybe-info-texinfo:
26883@if texinfo
26884maybe-info-texinfo: info-texinfo
4fa63067 26885
a90ef4bf
JM
26886info-texinfo: \
26887 configure-texinfo
0aed8855 26888 @: $(MAKE); $(unstage)
a90ef4bf 26889 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26890 r=`${PWD_COMMAND}`; export r; \
26891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26892 $(HOST_EXPORTS) \
b813574b 26893 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26895 done; \
22121df0 26896 echo "Doing info in texinfo"; \
a90ef4bf 26897 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26900 "RANLIB=$${RANLIB}" \
0c24b341 26901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26902 info) \
2a4cbe27
NN
26903 || exit 1
26904
a90ef4bf 26905@endif texinfo
2a4cbe27 26906
a90ef4bf
JM
26907.PHONY: maybe-dvi-texinfo dvi-texinfo
26908maybe-dvi-texinfo:
26909@if texinfo
26910maybe-dvi-texinfo: dvi-texinfo
2a4cbe27 26911
a90ef4bf
JM
26912dvi-texinfo: \
26913 configure-texinfo
0aed8855 26914 @: $(MAKE); $(unstage)
a90ef4bf 26915 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26916 r=`${PWD_COMMAND}`; export r; \
26917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26918 $(HOST_EXPORTS) \
b813574b 26919 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26921 done; \
22121df0 26922 echo "Doing dvi in texinfo"; \
a90ef4bf 26923 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26926 "RANLIB=$${RANLIB}" \
0c24b341 26927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26928 dvi) \
2a4cbe27
NN
26929 || exit 1
26930
a90ef4bf 26931@endif texinfo
2a4cbe27 26932
a90ef4bf
JM
26933.PHONY: maybe-pdf-texinfo pdf-texinfo
26934maybe-pdf-texinfo:
26935@if texinfo
26936maybe-pdf-texinfo: pdf-texinfo
56a8fe78 26937
a90ef4bf
JM
26938pdf-texinfo: \
26939 configure-texinfo
56a8fe78 26940 @: $(MAKE); $(unstage)
a90ef4bf 26941 @[ -f ./texinfo/Makefile ] || exit 0; \
56a8fe78
DD
26942 r=`${PWD_COMMAND}`; export r; \
26943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26944 $(HOST_EXPORTS) \
26945 for flag in $(EXTRA_HOST_FLAGS) ; do \
26946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26947 done; \
22121df0 26948 echo "Doing pdf in texinfo"; \
a90ef4bf 26949 (cd $(HOST_SUBDIR)/texinfo && \
56a8fe78
DD
26950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26952 "RANLIB=$${RANLIB}" \
0c24b341 26953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26954 pdf) \
26955 || exit 1
26956
a90ef4bf 26957@endif texinfo
56a8fe78 26958
a90ef4bf
JM
26959.PHONY: maybe-html-texinfo html-texinfo
26960maybe-html-texinfo:
26961@if texinfo
26962maybe-html-texinfo: html-texinfo
6d389afc 26963
a90ef4bf
JM
26964html-texinfo: \
26965 configure-texinfo
0aed8855 26966 @: $(MAKE); $(unstage)
a90ef4bf 26967 @[ -f ./texinfo/Makefile ] || exit 0; \
6d389afc
MS
26968 r=`${PWD_COMMAND}`; export r; \
26969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26970 $(HOST_EXPORTS) \
26971 for flag in $(EXTRA_HOST_FLAGS) ; do \
26972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26973 done; \
22121df0 26974 echo "Doing html in texinfo"; \
a90ef4bf 26975 (cd $(HOST_SUBDIR)/texinfo && \
6d389afc
MS
26976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26978 "RANLIB=$${RANLIB}" \
0c24b341 26979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26980 html) \
26981 || exit 1
26982
a90ef4bf 26983@endif texinfo
6d389afc 26984
a90ef4bf
JM
26985.PHONY: maybe-TAGS-texinfo TAGS-texinfo
26986maybe-TAGS-texinfo:
26987@if texinfo
26988maybe-TAGS-texinfo: TAGS-texinfo
2a4cbe27 26989
a90ef4bf
JM
26990TAGS-texinfo: \
26991 configure-texinfo
0aed8855 26992 @: $(MAKE); $(unstage)
a90ef4bf 26993 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26994 r=`${PWD_COMMAND}`; export r; \
26995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26996 $(HOST_EXPORTS) \
b813574b 26997 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26999 done; \
22121df0 27000 echo "Doing TAGS in texinfo"; \
a90ef4bf 27001 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27004 "RANLIB=$${RANLIB}" \
0c24b341 27005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27006 TAGS) \
2a4cbe27
NN
27007 || exit 1
27008
a90ef4bf 27009@endif texinfo
2a4cbe27 27010
a90ef4bf
JM
27011.PHONY: maybe-install-info-texinfo install-info-texinfo
27012maybe-install-info-texinfo:
27013@if texinfo
27014maybe-install-info-texinfo: install-info-texinfo
2a4cbe27 27015
a90ef4bf
JM
27016install-info-texinfo: \
27017 configure-texinfo \
27018 info-texinfo
0aed8855 27019 @: $(MAKE); $(unstage)
a90ef4bf 27020 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27021 r=`${PWD_COMMAND}`; export r; \
27022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27023 $(HOST_EXPORTS) \
b813574b 27024 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27026 done; \
22121df0 27027 echo "Doing install-info in texinfo"; \
a90ef4bf 27028 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27031 "RANLIB=$${RANLIB}" \
0c24b341 27032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27033 install-info) \
2a4cbe27
NN
27034 || exit 1
27035
a90ef4bf 27036@endif texinfo
2a4cbe27 27037
a90ef4bf
JM
27038.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
27039maybe-install-pdf-texinfo:
27040@if texinfo
27041maybe-install-pdf-texinfo: install-pdf-texinfo
a3ca38d2 27042
a90ef4bf
JM
27043install-pdf-texinfo: \
27044 configure-texinfo \
27045 pdf-texinfo
a3ca38d2 27046 @: $(MAKE); $(unstage)
a90ef4bf 27047 @[ -f ./texinfo/Makefile ] || exit 0; \
a3ca38d2
DD
27048 r=`${PWD_COMMAND}`; export r; \
27049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27050 $(HOST_EXPORTS) \
27051 for flag in $(EXTRA_HOST_FLAGS) ; do \
27052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27053 done; \
22121df0 27054 echo "Doing install-pdf in texinfo"; \
a90ef4bf 27055 (cd $(HOST_SUBDIR)/texinfo && \
a3ca38d2
DD
27056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27058 "RANLIB=$${RANLIB}" \
0c24b341 27059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27060 install-pdf) \
27061 || exit 1
27062
a90ef4bf 27063@endif texinfo
a3ca38d2 27064
a90ef4bf
JM
27065.PHONY: maybe-install-html-texinfo install-html-texinfo
27066maybe-install-html-texinfo:
27067@if texinfo
27068maybe-install-html-texinfo: install-html-texinfo
108a6f8e 27069
a90ef4bf
JM
27070install-html-texinfo: \
27071 configure-texinfo \
27072 html-texinfo
108a6f8e 27073 @: $(MAKE); $(unstage)
a90ef4bf 27074 @[ -f ./texinfo/Makefile ] || exit 0; \
108a6f8e
CD
27075 r=`${PWD_COMMAND}`; export r; \
27076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27077 $(HOST_EXPORTS) \
27078 for flag in $(EXTRA_HOST_FLAGS) ; do \
27079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27080 done; \
22121df0 27081 echo "Doing install-html in texinfo"; \
a90ef4bf 27082 (cd $(HOST_SUBDIR)/texinfo && \
108a6f8e
CD
27083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27085 "RANLIB=$${RANLIB}" \
0c24b341 27086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27087 install-html) \
27088 || exit 1
27089
a90ef4bf 27090@endif texinfo
108a6f8e 27091
a90ef4bf
JM
27092.PHONY: maybe-installcheck-texinfo installcheck-texinfo
27093maybe-installcheck-texinfo:
27094@if texinfo
27095maybe-installcheck-texinfo: installcheck-texinfo
2a4cbe27 27096
a90ef4bf
JM
27097installcheck-texinfo: \
27098 configure-texinfo
0aed8855 27099 @: $(MAKE); $(unstage)
a90ef4bf 27100 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27101 r=`${PWD_COMMAND}`; export r; \
27102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27103 $(HOST_EXPORTS) \
b813574b 27104 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27106 done; \
22121df0 27107 echo "Doing installcheck in texinfo"; \
a90ef4bf 27108 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27111 "RANLIB=$${RANLIB}" \
0c24b341 27112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27113 installcheck) \
2a4cbe27
NN
27114 || exit 1
27115
a90ef4bf 27116@endif texinfo
2a4cbe27 27117
a90ef4bf
JM
27118.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
27119maybe-mostlyclean-texinfo:
27120@if texinfo
27121maybe-mostlyclean-texinfo: mostlyclean-texinfo
2a4cbe27 27122
a90ef4bf 27123mostlyclean-texinfo:
0aed8855 27124 @: $(MAKE); $(unstage)
a90ef4bf 27125 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27126 r=`${PWD_COMMAND}`; export r; \
27127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27128 $(HOST_EXPORTS) \
b813574b 27129 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27131 done; \
22121df0 27132 echo "Doing mostlyclean in texinfo"; \
a90ef4bf 27133 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27136 "RANLIB=$${RANLIB}" \
0c24b341 27137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27138 mostlyclean) \
2a4cbe27
NN
27139 || exit 1
27140
a90ef4bf 27141@endif texinfo
2a4cbe27 27142
a90ef4bf
JM
27143.PHONY: maybe-clean-texinfo clean-texinfo
27144maybe-clean-texinfo:
27145@if texinfo
27146maybe-clean-texinfo: clean-texinfo
2a4cbe27 27147
a90ef4bf 27148clean-texinfo:
0aed8855 27149 @: $(MAKE); $(unstage)
a90ef4bf 27150 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27151 r=`${PWD_COMMAND}`; export r; \
27152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27153 $(HOST_EXPORTS) \
b813574b 27154 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27156 done; \
22121df0 27157 echo "Doing clean in texinfo"; \
a90ef4bf 27158 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27161 "RANLIB=$${RANLIB}" \
0c24b341 27162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27163 clean) \
2a4cbe27
NN
27164 || exit 1
27165
a90ef4bf 27166@endif texinfo
2a4cbe27 27167
a90ef4bf
JM
27168.PHONY: maybe-distclean-texinfo distclean-texinfo
27169maybe-distclean-texinfo:
27170@if texinfo
27171maybe-distclean-texinfo: distclean-texinfo
2a4cbe27 27172
a90ef4bf 27173distclean-texinfo:
0aed8855 27174 @: $(MAKE); $(unstage)
a90ef4bf 27175 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27176 r=`${PWD_COMMAND}`; export r; \
27177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27178 $(HOST_EXPORTS) \
b813574b 27179 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27181 done; \
22121df0 27182 echo "Doing distclean in texinfo"; \
a90ef4bf 27183 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27186 "RANLIB=$${RANLIB}" \
0c24b341 27187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27188 distclean) \
2a4cbe27
NN
27189 || exit 1
27190
a90ef4bf 27191@endif texinfo
2a4cbe27 27192
a90ef4bf
JM
27193.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
27194maybe-maintainer-clean-texinfo:
27195@if texinfo
27196maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
a7254363 27197
a90ef4bf 27198maintainer-clean-texinfo:
0aed8855 27199 @: $(MAKE); $(unstage)
a90ef4bf 27200 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27201 r=`${PWD_COMMAND}`; export r; \
27202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27203 $(HOST_EXPORTS) \
b813574b 27204 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27206 done; \
22121df0 27207 echo "Doing maintainer-clean in texinfo"; \
a90ef4bf 27208 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27211 "RANLIB=$${RANLIB}" \
0c24b341 27212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27213 maintainer-clean) \
2a4cbe27
NN
27214 || exit 1
27215
a90ef4bf 27216@endif texinfo
2a4cbe27 27217
2a4cbe27 27218
a7254363 27219
a90ef4bf
JM
27220.PHONY: configure-zlib maybe-configure-zlib
27221maybe-configure-zlib:
4f0ef2d8 27222@if gcc-bootstrap
a90ef4bf 27223configure-zlib: stage_current
4f0ef2d8 27224@endif gcc-bootstrap
a90ef4bf
JM
27225@if zlib
27226maybe-configure-zlib: configure-zlib
27227configure-zlib:
c52c6897
PB
27228 @r=`${PWD_COMMAND}`; export r; \
27229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 27230 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 27231 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
1f53ca9a 27232 $(HOST_EXPORTS) \
a90ef4bf
JM
27233 echo Configuring in $(HOST_SUBDIR)/zlib; \
27234 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
04cf1b77 27235 case $(srcdir) in \
b00612cc 27236 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27237 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
b00612cc 27238 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
04cf1b77 27239 esac; \
1b6c0831
L
27240 module_srcdir=zlib; \
27241 $(SHELL) \
27242 $$s/$$module_srcdir/configure \
27243 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27244 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e81d5d05 27245 --target=${target_alias} @extra_host_zlib_configure_flags@ \
04cf1b77 27246 || exit 1
a90ef4bf 27247@endif zlib
04cf1b77 27248
a7254363
PB
27249
27250
a90ef4bf
JM
27251.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
27252maybe-configure-stage1-zlib:
27253@if zlib-bootstrap
27254maybe-configure-stage1-zlib: configure-stage1-zlib
27255configure-stage1-zlib:
c52c6897 27256 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 27257 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27258 @r=`${PWD_COMMAND}`; export r; \
27259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27260 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 27261 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
1b05fbbd 27262 $(HOST_EXPORTS) \
8ee82aff 27263 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27264 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
27265 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
27266 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib; \
27267 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27268 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27269 case $(srcdir) in \
27270 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27271 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27272 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27273 esac; \
1b6c0831
L
27274 module_srcdir=zlib; \
27275 $(SHELL) $$s/$$module_srcdir/configure \
27276 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27277 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
27278 --target=${target_alias} \
27279 \
e81d5d05
L
27280 $(STAGE1_CONFIGURE_FLAGS) \
27281 @extra_host_zlib_configure_flags@
a90ef4bf 27282@endif zlib-bootstrap
d545f33b 27283
a90ef4bf
JM
27284.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
27285maybe-configure-stage2-zlib:
27286@if zlib-bootstrap
27287maybe-configure-stage2-zlib: configure-stage2-zlib
27288configure-stage2-zlib:
c52c6897 27289 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 27290 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27291 @r=`${PWD_COMMAND}`; export r; \
27292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27293 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 27294 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27295 $(HOST_EXPORTS) \
1b05fbbd 27296 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27297 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27298 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
27299 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27300 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib; \
27301 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27302 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27303 case $(srcdir) in \
27304 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27305 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27306 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27307 esac; \
1b6c0831
L
27308 module_srcdir=zlib; \
27309 $(SHELL) $$s/$$module_srcdir/configure \
27310 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27311 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27312 --target=${target_alias} \
22121df0 27313 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27314 $(STAGE2_CONFIGURE_FLAGS) \
27315 @extra_host_zlib_configure_flags@
a90ef4bf 27316@endif zlib-bootstrap
8520c408 27317
a90ef4bf
JM
27318.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
27319maybe-configure-stage3-zlib:
27320@if zlib-bootstrap
27321maybe-configure-stage3-zlib: configure-stage3-zlib
27322configure-stage3-zlib:
c52c6897 27323 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 27324 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27325 @r=`${PWD_COMMAND}`; export r; \
27326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27327 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 27328 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27329 $(HOST_EXPORTS) \
1b05fbbd 27330 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27331 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27332 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
27333 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27334 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib; \
27335 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27336 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27337 case $(srcdir) in \
27338 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27339 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27340 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27341 esac; \
1b6c0831
L
27342 module_srcdir=zlib; \
27343 $(SHELL) $$s/$$module_srcdir/configure \
27344 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27345 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27346 --target=${target_alias} \
22121df0 27347 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27348 $(STAGE3_CONFIGURE_FLAGS) \
27349 @extra_host_zlib_configure_flags@
a90ef4bf 27350@endif zlib-bootstrap
8520c408 27351
a90ef4bf
JM
27352.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
27353maybe-configure-stage4-zlib:
27354@if zlib-bootstrap
27355maybe-configure-stage4-zlib: configure-stage4-zlib
27356configure-stage4-zlib:
c52c6897 27357 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 27358 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27359 @r=`${PWD_COMMAND}`; export r; \
27360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27361 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 27362 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27363 $(HOST_EXPORTS) \
1b05fbbd 27364 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27365 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27366 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
27367 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27368 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib; \
27369 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27370 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27371 case $(srcdir) in \
27372 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27373 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27374 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27375 esac; \
1b6c0831
L
27376 module_srcdir=zlib; \
27377 $(SHELL) $$s/$$module_srcdir/configure \
27378 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27379 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27380 --target=${target_alias} \
22121df0 27381 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27382 $(STAGE4_CONFIGURE_FLAGS) \
27383 @extra_host_zlib_configure_flags@
a90ef4bf 27384@endif zlib-bootstrap
d545f33b 27385
a90ef4bf
JM
27386.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
27387maybe-configure-stageprofile-zlib:
27388@if zlib-bootstrap
27389maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
27390configure-stageprofile-zlib:
c52c6897 27391 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 27392 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27393 @r=`${PWD_COMMAND}`; export r; \
27394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27395 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 27396 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27397 $(HOST_EXPORTS) \
1b05fbbd
AO
27398 $(POSTSTAGE1_HOST_EXPORTS) \
27399 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27400 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
27401 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27402 echo Configuring stage profile in $(HOST_SUBDIR)/zlib; \
27403 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27404 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27405 case $(srcdir) in \
27406 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27407 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27408 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27409 esac; \
1b6c0831
L
27410 module_srcdir=zlib; \
27411 $(SHELL) $$s/$$module_srcdir/configure \
27412 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27413 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27414 --target=${target_alias} \
22121df0 27415 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27416 $(STAGEprofile_CONFIGURE_FLAGS) \
27417 @extra_host_zlib_configure_flags@
a90ef4bf 27418@endif zlib-bootstrap
d545f33b 27419
a90ef4bf
JM
27420.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
27421maybe-configure-stagefeedback-zlib:
27422@if zlib-bootstrap
27423maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
27424configure-stagefeedback-zlib:
c52c6897 27425 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 27426 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27427 @r=`${PWD_COMMAND}`; export r; \
27428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27429 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 27430 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27431 $(HOST_EXPORTS) \
1b05fbbd
AO
27432 $(POSTSTAGE1_HOST_EXPORTS) \
27433 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27434 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
27435 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27436 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib; \
27437 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27438 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27439 case $(srcdir) in \
27440 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27441 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27442 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27443 esac; \
1b6c0831
L
27444 module_srcdir=zlib; \
27445 $(SHELL) $$s/$$module_srcdir/configure \
27446 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27447 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27448 --target=${target_alias} \
22121df0 27449 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27450 $(STAGEfeedback_CONFIGURE_FLAGS) \
27451 @extra_host_zlib_configure_flags@
a90ef4bf 27452@endif zlib-bootstrap
d545f33b
PB
27453
27454
27455
27456
27457
a90ef4bf
JM
27458.PHONY: all-zlib maybe-all-zlib
27459maybe-all-zlib:
4f0ef2d8 27460@if gcc-bootstrap
a90ef4bf 27461all-zlib: stage_current
4f0ef2d8 27462@endif gcc-bootstrap
a90ef4bf
JM
27463@if zlib
27464TARGET-zlib=all
27465maybe-all-zlib: all-zlib
27466all-zlib: configure-zlib
c52c6897 27467 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 27468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 27469 $(HOST_EXPORTS) \
a90ef4bf 27470 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 27471 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27472 $(TARGET-zlib))
27473@endif zlib
04cf1b77 27474
a7254363 27475
d545f33b 27476
a90ef4bf
JM
27477.PHONY: all-stage1-zlib maybe-all-stage1-zlib
27478.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
27479maybe-all-stage1-zlib:
27480maybe-clean-stage1-zlib:
27481@if zlib-bootstrap
27482maybe-all-stage1-zlib: all-stage1-zlib
27483all-stage1: all-stage1-zlib
27484TARGET-stage1-zlib = $(TARGET-zlib)
27485all-stage1-zlib: configure-stage1-zlib
c52c6897 27486 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
27487 @r=`${PWD_COMMAND}`; export r; \
27488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27489 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 27490 $(HOST_EXPORTS) \
a90ef4bf 27491 cd $(HOST_SUBDIR)/zlib && \
05a13254 27492 \
7f6ef0c0 27493 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27494 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 27495 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
27496 LIBCFLAGS="$(LIBCFLAGS)" \
27497 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27498 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27499 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
27500 $(EXTRA_HOST_FLAGS) \
27501 $(STAGE1_FLAGS_TO_PASS) \
05a13254 27502 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 27503 $(TARGET-stage1-zlib)
d545f33b 27504
a90ef4bf
JM
27505maybe-clean-stage1-zlib: clean-stage1-zlib
27506clean-stage1: clean-stage1-zlib
27507clean-stage1-zlib:
9dbaa842 27508 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 27509 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27510 else \
a90ef4bf 27511 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27512 $(MAKE) stage1-start; \
27513 fi; \
a90ef4bf 27514 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27515 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 27516 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27517@endif zlib-bootstrap
d545f33b
PB
27518
27519
a90ef4bf
JM
27520.PHONY: all-stage2-zlib maybe-all-stage2-zlib
27521.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
27522maybe-all-stage2-zlib:
27523maybe-clean-stage2-zlib:
27524@if zlib-bootstrap
27525maybe-all-stage2-zlib: all-stage2-zlib
27526all-stage2: all-stage2-zlib
27527TARGET-stage2-zlib = $(TARGET-zlib)
27528all-stage2-zlib: configure-stage2-zlib
c52c6897 27529 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
27530 @r=`${PWD_COMMAND}`; export r; \
27531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27532 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 27533 $(HOST_EXPORTS) \
1f53ca9a 27534 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27535 cd $(HOST_SUBDIR)/zlib && \
05a13254 27536 \
7f6ef0c0 27537 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27538 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 27539 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
27540 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27541 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27542 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27543 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27544 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27545 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 27546 $(TARGET-stage2-zlib)
d545f33b 27547
a90ef4bf
JM
27548maybe-clean-stage2-zlib: clean-stage2-zlib
27549clean-stage2: clean-stage2-zlib
27550clean-stage2-zlib:
9dbaa842 27551 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 27552 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27553 else \
a90ef4bf 27554 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27555 $(MAKE) stage2-start; \
27556 fi; \
a90ef4bf 27557 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27558 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27559@endif zlib-bootstrap
d545f33b
PB
27560
27561
a90ef4bf
JM
27562.PHONY: all-stage3-zlib maybe-all-stage3-zlib
27563.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
27564maybe-all-stage3-zlib:
27565maybe-clean-stage3-zlib:
27566@if zlib-bootstrap
27567maybe-all-stage3-zlib: all-stage3-zlib
27568all-stage3: all-stage3-zlib
27569TARGET-stage3-zlib = $(TARGET-zlib)
27570all-stage3-zlib: configure-stage3-zlib
c52c6897 27571 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
27572 @r=`${PWD_COMMAND}`; export r; \
27573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27574 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 27575 $(HOST_EXPORTS) \
1f53ca9a 27576 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27577 cd $(HOST_SUBDIR)/zlib && \
05a13254 27578 \
7f6ef0c0 27579 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27580 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 27581 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
27582 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27583 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27584 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27585 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27586 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27587 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 27588 $(TARGET-stage3-zlib)
d545f33b 27589
a90ef4bf
JM
27590maybe-clean-stage3-zlib: clean-stage3-zlib
27591clean-stage3: clean-stage3-zlib
27592clean-stage3-zlib:
9dbaa842 27593 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 27594 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27595 else \
a90ef4bf 27596 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27597 $(MAKE) stage3-start; \
27598 fi; \
a90ef4bf 27599 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27600 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27601@endif zlib-bootstrap
d545f33b
PB
27602
27603
a90ef4bf
JM
27604.PHONY: all-stage4-zlib maybe-all-stage4-zlib
27605.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
27606maybe-all-stage4-zlib:
27607maybe-clean-stage4-zlib:
27608@if zlib-bootstrap
27609maybe-all-stage4-zlib: all-stage4-zlib
27610all-stage4: all-stage4-zlib
27611TARGET-stage4-zlib = $(TARGET-zlib)
27612all-stage4-zlib: configure-stage4-zlib
c52c6897 27613 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
27614 @r=`${PWD_COMMAND}`; export r; \
27615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27616 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 27617 $(HOST_EXPORTS) \
1f53ca9a 27618 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27619 cd $(HOST_SUBDIR)/zlib && \
05a13254 27620 \
7f6ef0c0 27621 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27622 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 27623 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 27624 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
27625 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27626 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27627 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27628 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27629 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 27630 $(TARGET-stage4-zlib)
d545f33b 27631
a90ef4bf
JM
27632maybe-clean-stage4-zlib: clean-stage4-zlib
27633clean-stage4: clean-stage4-zlib
27634clean-stage4-zlib:
9dbaa842 27635 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 27636 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27637 else \
a90ef4bf 27638 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27639 $(MAKE) stage4-start; \
27640 fi; \
a90ef4bf 27641 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27642 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27643@endif zlib-bootstrap
d545f33b
PB
27644
27645
a90ef4bf
JM
27646.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
27647.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
27648maybe-all-stageprofile-zlib:
27649maybe-clean-stageprofile-zlib:
27650@if zlib-bootstrap
27651maybe-all-stageprofile-zlib: all-stageprofile-zlib
27652all-stageprofile: all-stageprofile-zlib
27653TARGET-stageprofile-zlib = $(TARGET-zlib)
27654all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 27655 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
27656 @r=`${PWD_COMMAND}`; export r; \
27657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27658 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 27659 $(HOST_EXPORTS) \
1f53ca9a 27660 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27661 cd $(HOST_SUBDIR)/zlib && \
05a13254 27662 \
7f6ef0c0 27663 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27664 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 27665 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
27666 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27667 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27668 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27669 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27670 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27671 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 27672 $(TARGET-stageprofile-zlib)
d545f33b 27673
a90ef4bf
JM
27674maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
27675clean-stageprofile: clean-stageprofile-zlib
27676clean-stageprofile-zlib:
9dbaa842 27677 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 27678 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27679 else \
a90ef4bf 27680 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27681 $(MAKE) stageprofile-start; \
27682 fi; \
a90ef4bf 27683 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27684 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27685@endif zlib-bootstrap
d545f33b
PB
27686
27687
a90ef4bf
JM
27688.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
27689.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
27690maybe-all-stagefeedback-zlib:
27691maybe-clean-stagefeedback-zlib:
27692@if zlib-bootstrap
27693maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
27694all-stagefeedback: all-stagefeedback-zlib
27695TARGET-stagefeedback-zlib = $(TARGET-zlib)
27696all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 27697 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
27698 @r=`${PWD_COMMAND}`; export r; \
27699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27700 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 27701 $(HOST_EXPORTS) \
1f53ca9a 27702 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27703 cd $(HOST_SUBDIR)/zlib && \
05a13254 27704 \
7f6ef0c0 27705 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27706 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 27707 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
27708 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27709 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27710 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27711 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27712 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27713 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 27714 $(TARGET-stagefeedback-zlib)
d545f33b 27715
a90ef4bf
JM
27716maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
27717clean-stagefeedback: clean-stagefeedback-zlib
27718clean-stagefeedback-zlib:
9dbaa842 27719 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 27720 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27721 else \
a90ef4bf 27722 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27723 $(MAKE) stagefeedback-start; \
27724 fi; \
a90ef4bf 27725 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27726 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27727@endif zlib-bootstrap
d545f33b
PB
27728
27729
27730
27731
27732
a90ef4bf
JM
27733.PHONY: check-zlib maybe-check-zlib
27734maybe-check-zlib:
27735@if zlib
27736maybe-check-zlib: check-zlib
04cf1b77 27737
a90ef4bf 27738check-zlib:
04cf1b77 27739
a90ef4bf 27740@endif zlib
04cf1b77 27741
a90ef4bf
JM
27742.PHONY: install-zlib maybe-install-zlib
27743maybe-install-zlib:
27744@if zlib
27745maybe-install-zlib: install-zlib
04cf1b77 27746
a90ef4bf 27747install-zlib:
04cf1b77 27748
a90ef4bf 27749@endif zlib
04cf1b77 27750
a90ef4bf
JM
27751.PHONY: install-strip-zlib maybe-install-strip-zlib
27752maybe-install-strip-zlib:
27753@if zlib
27754maybe-install-strip-zlib: install-strip-zlib
9b980aa1 27755
a90ef4bf 27756install-strip-zlib:
9b980aa1 27757
a90ef4bf 27758@endif zlib
9b980aa1 27759
56a8fe78 27760# Other targets (info, dvi, pdf, etc.)
04cf1b77 27761
a90ef4bf
JM
27762.PHONY: maybe-info-zlib info-zlib
27763maybe-info-zlib:
27764@if zlib
27765maybe-info-zlib: info-zlib
04cf1b77 27766
a90ef4bf
JM
27767info-zlib: \
27768 configure-zlib
27769 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27770 r=`${PWD_COMMAND}`; export r; \
27771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27772 $(HOST_EXPORTS) \
b813574b 27773 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27775 done; \
22121df0 27776 echo "Doing info in zlib"; \
a90ef4bf 27777 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27780 "RANLIB=$${RANLIB}" \
0c24b341 27781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27782 info) \
04cf1b77
PB
27783 || exit 1
27784
a90ef4bf 27785@endif zlib
04cf1b77 27786
a90ef4bf
JM
27787.PHONY: maybe-dvi-zlib dvi-zlib
27788maybe-dvi-zlib:
27789@if zlib
27790maybe-dvi-zlib: dvi-zlib
04cf1b77 27791
a90ef4bf
JM
27792dvi-zlib: \
27793 configure-zlib
27794 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27795 r=`${PWD_COMMAND}`; export r; \
27796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27797 $(HOST_EXPORTS) \
b813574b 27798 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27800 done; \
22121df0 27801 echo "Doing dvi in zlib"; \
a90ef4bf 27802 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27805 "RANLIB=$${RANLIB}" \
0c24b341 27806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27807 dvi) \
04cf1b77
PB
27808 || exit 1
27809
a90ef4bf 27810@endif zlib
04cf1b77 27811
a90ef4bf
JM
27812.PHONY: maybe-pdf-zlib pdf-zlib
27813maybe-pdf-zlib:
27814@if zlib
27815maybe-pdf-zlib: pdf-zlib
56a8fe78 27816
a90ef4bf
JM
27817pdf-zlib: \
27818 configure-zlib
27819 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
27820 r=`${PWD_COMMAND}`; export r; \
27821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27822 $(HOST_EXPORTS) \
27823 for flag in $(EXTRA_HOST_FLAGS) ; do \
27824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27825 done; \
22121df0 27826 echo "Doing pdf in zlib"; \
a90ef4bf 27827 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
27828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27830 "RANLIB=$${RANLIB}" \
0c24b341 27831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27832 pdf) \
27833 || exit 1
27834
a90ef4bf 27835@endif zlib
56a8fe78 27836
a90ef4bf
JM
27837.PHONY: maybe-html-zlib html-zlib
27838maybe-html-zlib:
27839@if zlib
27840maybe-html-zlib: html-zlib
6d389afc 27841
a90ef4bf
JM
27842html-zlib: \
27843 configure-zlib
27844 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
27845 r=`${PWD_COMMAND}`; export r; \
27846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27847 $(HOST_EXPORTS) \
27848 for flag in $(EXTRA_HOST_FLAGS) ; do \
27849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27850 done; \
22121df0 27851 echo "Doing html in zlib"; \
a90ef4bf 27852 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
27853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27855 "RANLIB=$${RANLIB}" \
0c24b341 27856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27857 html) \
27858 || exit 1
27859
a90ef4bf 27860@endif zlib
6d389afc 27861
a90ef4bf
JM
27862.PHONY: maybe-TAGS-zlib TAGS-zlib
27863maybe-TAGS-zlib:
27864@if zlib
27865maybe-TAGS-zlib: TAGS-zlib
04cf1b77 27866
a90ef4bf
JM
27867TAGS-zlib: \
27868 configure-zlib
27869 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27870 r=`${PWD_COMMAND}`; export r; \
27871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27872 $(HOST_EXPORTS) \
b813574b 27873 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27875 done; \
22121df0 27876 echo "Doing TAGS in zlib"; \
a90ef4bf 27877 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27880 "RANLIB=$${RANLIB}" \
0c24b341 27881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27882 TAGS) \
04cf1b77
PB
27883 || exit 1
27884
a90ef4bf 27885@endif zlib
04cf1b77 27886
a90ef4bf
JM
27887.PHONY: maybe-install-info-zlib install-info-zlib
27888maybe-install-info-zlib:
27889@if zlib
27890maybe-install-info-zlib: install-info-zlib
04cf1b77 27891
a90ef4bf
JM
27892install-info-zlib: \
27893 configure-zlib \
27894 info-zlib
27895 @[ -f ./zlib/Makefile ] || exit 0; \
27896 r=`${PWD_COMMAND}`; export r; \
27897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27898 $(HOST_EXPORTS) \
b813574b 27899 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27901 done; \
22121df0 27902 echo "Doing install-info in zlib"; \
a90ef4bf 27903 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27906 "RANLIB=$${RANLIB}" \
0c24b341 27907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27908 install-info) \
04cf1b77
PB
27909 || exit 1
27910
a90ef4bf 27911@endif zlib
04cf1b77 27912
a90ef4bf
JM
27913.PHONY: maybe-install-pdf-zlib install-pdf-zlib
27914maybe-install-pdf-zlib:
27915@if zlib
27916maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 27917
a90ef4bf
JM
27918install-pdf-zlib: \
27919 configure-zlib \
27920 pdf-zlib
27921 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
27922 r=`${PWD_COMMAND}`; export r; \
27923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27924 $(HOST_EXPORTS) \
27925 for flag in $(EXTRA_HOST_FLAGS) ; do \
27926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27927 done; \
22121df0 27928 echo "Doing install-pdf in zlib"; \
a90ef4bf 27929 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
27930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27932 "RANLIB=$${RANLIB}" \
0c24b341 27933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27934 install-pdf) \
27935 || exit 1
27936
a90ef4bf 27937@endif zlib
a3ca38d2 27938
a90ef4bf
JM
27939.PHONY: maybe-install-html-zlib install-html-zlib
27940maybe-install-html-zlib:
27941@if zlib
27942maybe-install-html-zlib: install-html-zlib
108a6f8e 27943
a90ef4bf
JM
27944install-html-zlib: \
27945 configure-zlib \
27946 html-zlib
27947 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
27948 r=`${PWD_COMMAND}`; export r; \
27949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27950 $(HOST_EXPORTS) \
27951 for flag in $(EXTRA_HOST_FLAGS) ; do \
27952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27953 done; \
22121df0 27954 echo "Doing install-html in zlib"; \
a90ef4bf 27955 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
27956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27958 "RANLIB=$${RANLIB}" \
0c24b341 27959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27960 install-html) \
27961 || exit 1
27962
a90ef4bf 27963@endif zlib
108a6f8e 27964
a90ef4bf
JM
27965.PHONY: maybe-installcheck-zlib installcheck-zlib
27966maybe-installcheck-zlib:
27967@if zlib
27968maybe-installcheck-zlib: installcheck-zlib
04cf1b77 27969
a90ef4bf
JM
27970installcheck-zlib: \
27971 configure-zlib
27972 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27973 r=`${PWD_COMMAND}`; export r; \
27974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27975 $(HOST_EXPORTS) \
b813574b 27976 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27978 done; \
22121df0 27979 echo "Doing installcheck in zlib"; \
a90ef4bf 27980 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27983 "RANLIB=$${RANLIB}" \
0c24b341 27984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27985 installcheck) \
04cf1b77
PB
27986 || exit 1
27987
a90ef4bf 27988@endif zlib
04cf1b77 27989
a90ef4bf
JM
27990.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
27991maybe-mostlyclean-zlib:
27992@if zlib
27993maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 27994
a90ef4bf
JM
27995mostlyclean-zlib:
27996 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27997 r=`${PWD_COMMAND}`; export r; \
27998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27999 $(HOST_EXPORTS) \
b813574b 28000 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28002 done; \
22121df0 28003 echo "Doing mostlyclean in zlib"; \
a90ef4bf 28004 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28007 "RANLIB=$${RANLIB}" \
0c24b341 28008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28009 mostlyclean) \
04cf1b77
PB
28010 || exit 1
28011
a90ef4bf 28012@endif zlib
04cf1b77 28013
a90ef4bf
JM
28014.PHONY: maybe-clean-zlib clean-zlib
28015maybe-clean-zlib:
28016@if zlib
28017maybe-clean-zlib: clean-zlib
04cf1b77 28018
a90ef4bf
JM
28019clean-zlib:
28020 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28021 r=`${PWD_COMMAND}`; export r; \
28022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28023 $(HOST_EXPORTS) \
b813574b 28024 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28026 done; \
22121df0 28027 echo "Doing clean in zlib"; \
a90ef4bf 28028 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28031 "RANLIB=$${RANLIB}" \
0c24b341 28032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28033 clean) \
04cf1b77
PB
28034 || exit 1
28035
a90ef4bf 28036@endif zlib
04cf1b77 28037
a90ef4bf
JM
28038.PHONY: maybe-distclean-zlib distclean-zlib
28039maybe-distclean-zlib:
28040@if zlib
28041maybe-distclean-zlib: distclean-zlib
04cf1b77 28042
a90ef4bf
JM
28043distclean-zlib:
28044 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28045 r=`${PWD_COMMAND}`; export r; \
28046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28047 $(HOST_EXPORTS) \
b813574b 28048 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28050 done; \
22121df0 28051 echo "Doing distclean in zlib"; \
a90ef4bf 28052 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28055 "RANLIB=$${RANLIB}" \
0c24b341 28056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28057 distclean) \
04cf1b77
PB
28058 || exit 1
28059
a90ef4bf 28060@endif zlib
04cf1b77 28061
a90ef4bf
JM
28062.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
28063maybe-maintainer-clean-zlib:
28064@if zlib
28065maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 28066
a90ef4bf
JM
28067maintainer-clean-zlib:
28068 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28069 r=`${PWD_COMMAND}`; export r; \
28070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28071 $(HOST_EXPORTS) \
b813574b 28072 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28074 done; \
22121df0 28075 echo "Doing maintainer-clean in zlib"; \
a90ef4bf 28076 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28079 "RANLIB=$${RANLIB}" \
0c24b341 28080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28081 maintainer-clean) \
04cf1b77
PB
28082 || exit 1
28083
a90ef4bf 28084@endif zlib
04cf1b77
PB
28085
28086
a7254363 28087
a90ef4bf
JM
28088.PHONY: configure-gdb maybe-configure-gdb
28089maybe-configure-gdb:
4f0ef2d8 28090@if gcc-bootstrap
a90ef4bf 28091configure-gdb: stage_current
4f0ef2d8 28092@endif gcc-bootstrap
a90ef4bf
JM
28093@if gdb
28094maybe-configure-gdb: configure-gdb
28095configure-gdb:
28096 @: $(MAKE); $(unstage)
c52c6897
PB
28097 @r=`${PWD_COMMAND}`; export r; \
28098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 28099 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
22121df0 28100 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb; \
1f53ca9a 28101 $(HOST_EXPORTS) \
a90ef4bf
JM
28102 echo Configuring in $(HOST_SUBDIR)/gdb; \
28103 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 28104 case $(srcdir) in \
b00612cc 28105 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28106 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 28107 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 28108 esac; \
1b6c0831
L
28109 module_srcdir=gdb; \
28110 $(SHELL) \
28111 $$s/$$module_srcdir/configure \
28112 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28113 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28114 --target=${target_alias} \
4fa63067 28115 || exit 1
a90ef4bf 28116@endif gdb
4fa63067 28117
a7254363
PB
28118
28119
d545f33b 28120
8520c408 28121
a90ef4bf
JM
28122.PHONY: all-gdb maybe-all-gdb
28123maybe-all-gdb:
28124@if gcc-bootstrap
28125all-gdb: stage_current
28126@endif gcc-bootstrap
28127@if gdb
28128TARGET-gdb=all
28129maybe-all-gdb: all-gdb
28130all-gdb: configure-gdb
28131 @: $(MAKE); $(unstage)
c52c6897
PB
28132 @r=`${PWD_COMMAND}`; export r; \
28133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28134 $(HOST_EXPORTS) \
28135 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 28136 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28137 $(TARGET-gdb))
28138@endif gdb
8520c408 28139
a90ef4bf
JM
28140
28141
28142
28143.PHONY: check-gdb maybe-check-gdb
28144maybe-check-gdb:
28145@if gdb
28146maybe-check-gdb: check-gdb
28147
28148check-gdb:
28149 @: $(MAKE); $(unstage)
c52c6897
PB
28150 @r=`${PWD_COMMAND}`; export r; \
28151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28152 $(HOST_EXPORTS) \
a90ef4bf
JM
28153 (cd $(HOST_SUBDIR)/gdb && \
28154 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 28155
a90ef4bf
JM
28156@endif gdb
28157
28158.PHONY: install-gdb maybe-install-gdb
28159maybe-install-gdb:
28160@if gdb
28161maybe-install-gdb: install-gdb
28162
28163install-gdb: installdirs
28164 @: $(MAKE); $(unstage)
c52c6897
PB
28165 @r=`${PWD_COMMAND}`; export r; \
28166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28167 $(HOST_EXPORTS) \
a90ef4bf
JM
28168 (cd $(HOST_SUBDIR)/gdb && \
28169 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 28170
a90ef4bf
JM
28171@endif gdb
28172
28173.PHONY: install-strip-gdb maybe-install-strip-gdb
28174maybe-install-strip-gdb:
28175@if gdb
28176maybe-install-strip-gdb: install-strip-gdb
28177
28178install-strip-gdb: installdirs
28179 @: $(MAKE); $(unstage)
c52c6897
PB
28180 @r=`${PWD_COMMAND}`; export r; \
28181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28182 $(HOST_EXPORTS) \
a90ef4bf
JM
28183 (cd $(HOST_SUBDIR)/gdb && \
28184 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 28185
a90ef4bf 28186@endif gdb
d545f33b 28187
a90ef4bf 28188# Other targets (info, dvi, pdf, etc.)
d545f33b 28189
a90ef4bf
JM
28190.PHONY: maybe-info-gdb info-gdb
28191maybe-info-gdb:
28192@if gdb
28193maybe-info-gdb: info-gdb
d545f33b 28194
a90ef4bf
JM
28195info-gdb: \
28196 configure-gdb
28197 @: $(MAKE); $(unstage)
28198 @[ -f ./gdb/Makefile ] || exit 0; \
28199 r=`${PWD_COMMAND}`; export r; \
4fa63067 28200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28201 $(HOST_EXPORTS) \
28202 for flag in $(EXTRA_HOST_FLAGS) ; do \
28203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28204 done; \
22121df0 28205 echo "Doing info in gdb"; \
a90ef4bf
JM
28206 (cd $(HOST_SUBDIR)/gdb && \
28207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28209 "RANLIB=$${RANLIB}" \
28210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28211 info) \
28212 || exit 1
4fa63067 28213
a90ef4bf 28214@endif gdb
a7254363 28215
a90ef4bf
JM
28216.PHONY: maybe-dvi-gdb dvi-gdb
28217maybe-dvi-gdb:
28218@if gdb
28219maybe-dvi-gdb: dvi-gdb
d545f33b 28220
a90ef4bf
JM
28221dvi-gdb: \
28222 configure-gdb
28223 @: $(MAKE); $(unstage)
28224 @[ -f ./gdb/Makefile ] || exit 0; \
28225 r=`${PWD_COMMAND}`; export r; \
d545f33b 28226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28227 $(HOST_EXPORTS) \
28228 for flag in $(EXTRA_HOST_FLAGS) ; do \
28229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28230 done; \
22121df0 28231 echo "Doing dvi in gdb"; \
a90ef4bf
JM
28232 (cd $(HOST_SUBDIR)/gdb && \
28233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28235 "RANLIB=$${RANLIB}" \
28236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28237 dvi) \
28238 || exit 1
d545f33b 28239
a90ef4bf 28240@endif gdb
d545f33b 28241
a90ef4bf
JM
28242.PHONY: maybe-pdf-gdb pdf-gdb
28243maybe-pdf-gdb:
28244@if gdb
28245maybe-pdf-gdb: pdf-gdb
d545f33b 28246
a90ef4bf
JM
28247pdf-gdb: \
28248 configure-gdb
9b980aa1 28249 @: $(MAKE); $(unstage)
a90ef4bf 28250 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28251 r=`${PWD_COMMAND}`; export r; \
28252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28253 $(HOST_EXPORTS) \
b813574b 28254 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28256 done; \
22121df0 28257 echo "Doing pdf in gdb"; \
a90ef4bf 28258 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28261 "RANLIB=$${RANLIB}" \
0c24b341 28262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28263 pdf) \
2a4cbe27
NN
28264 || exit 1
28265
a90ef4bf 28266@endif gdb
2a4cbe27 28267
a90ef4bf
JM
28268.PHONY: maybe-html-gdb html-gdb
28269maybe-html-gdb:
28270@if gdb
28271maybe-html-gdb: html-gdb
2a4cbe27 28272
a90ef4bf
JM
28273html-gdb: \
28274 configure-gdb
28275 @: $(MAKE); $(unstage)
28276 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28277 r=`${PWD_COMMAND}`; export r; \
28278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28279 $(HOST_EXPORTS) \
b813574b 28280 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28282 done; \
22121df0 28283 echo "Doing html in gdb"; \
a90ef4bf 28284 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28287 "RANLIB=$${RANLIB}" \
0c24b341 28288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28289 html) \
2a4cbe27
NN
28290 || exit 1
28291
a90ef4bf 28292@endif gdb
2a4cbe27 28293
a90ef4bf
JM
28294.PHONY: maybe-TAGS-gdb TAGS-gdb
28295maybe-TAGS-gdb:
28296@if gdb
28297maybe-TAGS-gdb: TAGS-gdb
56a8fe78 28298
a90ef4bf
JM
28299TAGS-gdb: \
28300 configure-gdb
28301 @: $(MAKE); $(unstage)
28302 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
28303 r=`${PWD_COMMAND}`; export r; \
28304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28305 $(HOST_EXPORTS) \
28306 for flag in $(EXTRA_HOST_FLAGS) ; do \
28307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28308 done; \
22121df0 28309 echo "Doing TAGS in gdb"; \
a90ef4bf 28310 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
28311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28313 "RANLIB=$${RANLIB}" \
0c24b341 28314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28315 TAGS) \
56a8fe78
DD
28316 || exit 1
28317
a90ef4bf 28318@endif gdb
56a8fe78 28319
a90ef4bf
JM
28320.PHONY: maybe-install-info-gdb install-info-gdb
28321maybe-install-info-gdb:
28322@if gdb
28323maybe-install-info-gdb: install-info-gdb
6d389afc 28324
a90ef4bf
JM
28325install-info-gdb: \
28326 configure-gdb \
28327 info-gdb
28328 @: $(MAKE); $(unstage)
28329 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
28330 r=`${PWD_COMMAND}`; export r; \
28331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
28332 $(HOST_EXPORTS) \
28333 for flag in $(EXTRA_HOST_FLAGS) ; do \
28334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28335 done; \
22121df0 28336 echo "Doing install-info in gdb"; \
a90ef4bf 28337 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
28338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28340 "RANLIB=$${RANLIB}" \
0c24b341 28341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28342 install-info) \
6d389afc
MS
28343 || exit 1
28344
a90ef4bf 28345@endif gdb
6d389afc 28346
a90ef4bf
JM
28347.PHONY: maybe-install-pdf-gdb install-pdf-gdb
28348maybe-install-pdf-gdb:
28349@if gdb
28350maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 28351
a90ef4bf
JM
28352install-pdf-gdb: \
28353 configure-gdb \
28354 pdf-gdb
28355 @: $(MAKE); $(unstage)
28356 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28357 r=`${PWD_COMMAND}`; export r; \
28358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28359 $(HOST_EXPORTS) \
b813574b 28360 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28362 done; \
22121df0 28363 echo "Doing install-pdf in gdb"; \
a90ef4bf 28364 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28367 "RANLIB=$${RANLIB}" \
0c24b341 28368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28369 install-pdf) \
2a4cbe27
NN
28370 || exit 1
28371
a90ef4bf 28372@endif gdb
2a4cbe27 28373
a90ef4bf
JM
28374.PHONY: maybe-install-html-gdb install-html-gdb
28375maybe-install-html-gdb:
28376@if gdb
28377maybe-install-html-gdb: install-html-gdb
2a4cbe27 28378
a90ef4bf
JM
28379install-html-gdb: \
28380 configure-gdb \
28381 html-gdb
28382 @: $(MAKE); $(unstage)
28383 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28384 r=`${PWD_COMMAND}`; export r; \
28385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28386 $(HOST_EXPORTS) \
b813574b 28387 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28389 done; \
22121df0 28390 echo "Doing install-html in gdb"; \
a90ef4bf 28391 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28394 "RANLIB=$${RANLIB}" \
0c24b341 28395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28396 install-html) \
2a4cbe27
NN
28397 || exit 1
28398
a90ef4bf 28399@endif gdb
2a4cbe27 28400
a90ef4bf
JM
28401.PHONY: maybe-installcheck-gdb installcheck-gdb
28402maybe-installcheck-gdb:
28403@if gdb
28404maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 28405
a90ef4bf
JM
28406installcheck-gdb: \
28407 configure-gdb
28408 @: $(MAKE); $(unstage)
28409 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
28410 r=`${PWD_COMMAND}`; export r; \
28411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28412 $(HOST_EXPORTS) \
28413 for flag in $(EXTRA_HOST_FLAGS) ; do \
28414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28415 done; \
22121df0 28416 echo "Doing installcheck in gdb"; \
a90ef4bf 28417 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
28418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28420 "RANLIB=$${RANLIB}" \
0c24b341 28421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28422 installcheck) \
a3ca38d2
DD
28423 || exit 1
28424
a90ef4bf 28425@endif gdb
a3ca38d2 28426
a90ef4bf
JM
28427.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
28428maybe-mostlyclean-gdb:
28429@if gdb
28430maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 28431
a90ef4bf
JM
28432mostlyclean-gdb:
28433 @: $(MAKE); $(unstage)
28434 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
28435 r=`${PWD_COMMAND}`; export r; \
28436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28437 $(HOST_EXPORTS) \
28438 for flag in $(EXTRA_HOST_FLAGS) ; do \
28439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28440 done; \
22121df0 28441 echo "Doing mostlyclean in gdb"; \
a90ef4bf 28442 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
28443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28445 "RANLIB=$${RANLIB}" \
0c24b341 28446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28447 mostlyclean) \
108a6f8e
CD
28448 || exit 1
28449
a90ef4bf 28450@endif gdb
108a6f8e 28451
a90ef4bf
JM
28452.PHONY: maybe-clean-gdb clean-gdb
28453maybe-clean-gdb:
28454@if gdb
28455maybe-clean-gdb: clean-gdb
2a4cbe27 28456
a90ef4bf
JM
28457clean-gdb:
28458 @: $(MAKE); $(unstage)
28459 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28460 r=`${PWD_COMMAND}`; export r; \
28461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28462 $(HOST_EXPORTS) \
b813574b 28463 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28465 done; \
22121df0 28466 echo "Doing clean in gdb"; \
a90ef4bf 28467 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28470 "RANLIB=$${RANLIB}" \
0c24b341 28471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28472 clean) \
2a4cbe27
NN
28473 || exit 1
28474
a90ef4bf 28475@endif gdb
2a4cbe27 28476
a90ef4bf
JM
28477.PHONY: maybe-distclean-gdb distclean-gdb
28478maybe-distclean-gdb:
28479@if gdb
28480maybe-distclean-gdb: distclean-gdb
2a4cbe27 28481
a90ef4bf
JM
28482distclean-gdb:
28483 @: $(MAKE); $(unstage)
28484 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28485 r=`${PWD_COMMAND}`; export r; \
28486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28487 $(HOST_EXPORTS) \
b813574b 28488 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28490 done; \
22121df0 28491 echo "Doing distclean in gdb"; \
a90ef4bf 28492 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28495 "RANLIB=$${RANLIB}" \
0c24b341 28496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28497 distclean) \
2a4cbe27
NN
28498 || exit 1
28499
a90ef4bf 28500@endif gdb
2a4cbe27 28501
a90ef4bf
JM
28502.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
28503maybe-maintainer-clean-gdb:
28504@if gdb
28505maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 28506
a90ef4bf
JM
28507maintainer-clean-gdb:
28508 @: $(MAKE); $(unstage)
28509 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28510 r=`${PWD_COMMAND}`; export r; \
28511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28512 $(HOST_EXPORTS) \
b813574b 28513 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28515 done; \
22121df0 28516 echo "Doing maintainer-clean in gdb"; \
a90ef4bf 28517 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28518 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28519 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28520 "RANLIB=$${RANLIB}" \
0c24b341 28521 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28522 maintainer-clean) \
2a4cbe27
NN
28523 || exit 1
28524
a90ef4bf 28525@endif gdb
2a4cbe27 28526
2a4cbe27 28527
a7254363 28528
a90ef4bf
JM
28529.PHONY: configure-expect maybe-configure-expect
28530maybe-configure-expect:
4f0ef2d8 28531@if gcc-bootstrap
a90ef4bf 28532configure-expect: stage_current
4f0ef2d8 28533@endif gcc-bootstrap
a90ef4bf
JM
28534@if expect
28535maybe-configure-expect: configure-expect
28536configure-expect:
28537 @: $(MAKE); $(unstage)
c52c6897
PB
28538 @r=`${PWD_COMMAND}`; export r; \
28539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 28540 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
22121df0 28541 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect; \
1f53ca9a 28542 $(HOST_EXPORTS) \
a90ef4bf
JM
28543 echo Configuring in $(HOST_SUBDIR)/expect; \
28544 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
28545 case $(srcdir) in \
28546 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28547 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
28548 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28549 esac; \
1b6c0831
L
28550 module_srcdir=expect; \
28551 $(SHELL) \
28552 $$s/$$module_srcdir/configure \
28553 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28554 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28555 --target=${target_alias} \
be01d343 28556 || exit 1
a90ef4bf 28557@endif expect
be01d343
PB
28558
28559
28560
be01d343 28561
8520c408 28562
a90ef4bf
JM
28563.PHONY: all-expect maybe-all-expect
28564maybe-all-expect:
28565@if gcc-bootstrap
28566all-expect: stage_current
28567@endif gcc-bootstrap
28568@if expect
28569TARGET-expect=all
28570maybe-all-expect: all-expect
28571all-expect: configure-expect
28572 @: $(MAKE); $(unstage)
c52c6897
PB
28573 @r=`${PWD_COMMAND}`; export r; \
28574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28575 $(HOST_EXPORTS) \
28576 (cd $(HOST_SUBDIR)/expect && \
b3676d82 28577 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28578 $(TARGET-expect))
28579@endif expect
8520c408 28580
a90ef4bf
JM
28581
28582
28583
28584.PHONY: check-expect maybe-check-expect
28585maybe-check-expect:
28586@if expect
28587maybe-check-expect: check-expect
28588
28589check-expect:
28590 @: $(MAKE); $(unstage)
c52c6897
PB
28591 @r=`${PWD_COMMAND}`; export r; \
28592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28593 $(HOST_EXPORTS) \
a90ef4bf
JM
28594 (cd $(HOST_SUBDIR)/expect && \
28595 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 28596
a90ef4bf
JM
28597@endif expect
28598
28599.PHONY: install-expect maybe-install-expect
28600maybe-install-expect:
28601@if expect
28602maybe-install-expect: install-expect
28603
28604install-expect: installdirs
28605 @: $(MAKE); $(unstage)
c52c6897
PB
28606 @r=`${PWD_COMMAND}`; export r; \
28607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28608 $(HOST_EXPORTS) \
a90ef4bf
JM
28609 (cd $(HOST_SUBDIR)/expect && \
28610 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 28611
a90ef4bf
JM
28612@endif expect
28613
28614.PHONY: install-strip-expect maybe-install-strip-expect
28615maybe-install-strip-expect:
28616@if expect
28617maybe-install-strip-expect: install-strip-expect
28618
28619install-strip-expect: installdirs
28620 @: $(MAKE); $(unstage)
c52c6897
PB
28621 @r=`${PWD_COMMAND}`; export r; \
28622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 28623 $(HOST_EXPORTS) \
a90ef4bf
JM
28624 (cd $(HOST_SUBDIR)/expect && \
28625 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 28626
a90ef4bf 28627@endif expect
be01d343 28628
a90ef4bf 28629# Other targets (info, dvi, pdf, etc.)
be01d343 28630
a90ef4bf
JM
28631.PHONY: maybe-info-expect info-expect
28632maybe-info-expect:
28633@if expect
28634maybe-info-expect: info-expect
be01d343 28635
a90ef4bf
JM
28636info-expect: \
28637 configure-expect
28638 @: $(MAKE); $(unstage)
28639 @[ -f ./expect/Makefile ] || exit 0; \
28640 r=`${PWD_COMMAND}`; export r; \
be01d343 28641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28642 $(HOST_EXPORTS) \
28643 for flag in $(EXTRA_HOST_FLAGS) ; do \
28644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28645 done; \
22121df0 28646 echo "Doing info in expect"; \
a90ef4bf
JM
28647 (cd $(HOST_SUBDIR)/expect && \
28648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28650 "RANLIB=$${RANLIB}" \
28651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28652 info) \
28653 || exit 1
be01d343 28654
a90ef4bf 28655@endif expect
be01d343 28656
a90ef4bf
JM
28657.PHONY: maybe-dvi-expect dvi-expect
28658maybe-dvi-expect:
28659@if expect
28660maybe-dvi-expect: dvi-expect
be01d343 28661
a90ef4bf
JM
28662dvi-expect: \
28663 configure-expect
28664 @: $(MAKE); $(unstage)
28665 @[ -f ./expect/Makefile ] || exit 0; \
28666 r=`${PWD_COMMAND}`; export r; \
be01d343 28667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28668 $(HOST_EXPORTS) \
28669 for flag in $(EXTRA_HOST_FLAGS) ; do \
28670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28671 done; \
22121df0 28672 echo "Doing dvi in expect"; \
a90ef4bf
JM
28673 (cd $(HOST_SUBDIR)/expect && \
28674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28676 "RANLIB=$${RANLIB}" \
28677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28678 dvi) \
28679 || exit 1
be01d343 28680
a90ef4bf 28681@endif expect
be01d343 28682
a90ef4bf
JM
28683.PHONY: maybe-pdf-expect pdf-expect
28684maybe-pdf-expect:
28685@if expect
28686maybe-pdf-expect: pdf-expect
be01d343 28687
a90ef4bf
JM
28688pdf-expect: \
28689 configure-expect
28690 @: $(MAKE); $(unstage)
28691 @[ -f ./expect/Makefile ] || exit 0; \
28692 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28694 $(HOST_EXPORTS) \
a90ef4bf
JM
28695 for flag in $(EXTRA_HOST_FLAGS) ; do \
28696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28697 done; \
22121df0 28698 echo "Doing pdf in expect"; \
a90ef4bf
JM
28699 (cd $(HOST_SUBDIR)/expect && \
28700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28702 "RANLIB=$${RANLIB}" \
28703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28704 pdf) \
28705 || exit 1
be01d343 28706
a90ef4bf 28707@endif expect
be01d343 28708
a90ef4bf
JM
28709.PHONY: maybe-html-expect html-expect
28710maybe-html-expect:
28711@if expect
28712maybe-html-expect: html-expect
be01d343 28713
a90ef4bf
JM
28714html-expect: \
28715 configure-expect
28716 @: $(MAKE); $(unstage)
28717 @[ -f ./expect/Makefile ] || exit 0; \
28718 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
28719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28720 $(HOST_EXPORTS) \
a90ef4bf
JM
28721 for flag in $(EXTRA_HOST_FLAGS) ; do \
28722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28723 done; \
22121df0 28724 echo "Doing html in expect"; \
a90ef4bf
JM
28725 (cd $(HOST_SUBDIR)/expect && \
28726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28728 "RANLIB=$${RANLIB}" \
28729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28730 html) \
28731 || exit 1
be01d343 28732
a90ef4bf 28733@endif expect
be01d343 28734
a90ef4bf
JM
28735.PHONY: maybe-TAGS-expect TAGS-expect
28736maybe-TAGS-expect:
28737@if expect
28738maybe-TAGS-expect: TAGS-expect
9b980aa1 28739
a90ef4bf
JM
28740TAGS-expect: \
28741 configure-expect
9b980aa1 28742 @: $(MAKE); $(unstage)
a90ef4bf 28743 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28744 r=`${PWD_COMMAND}`; export r; \
28745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28746 $(HOST_EXPORTS) \
28747 for flag in $(EXTRA_HOST_FLAGS) ; do \
28748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28749 done; \
22121df0 28750 echo "Doing TAGS in expect"; \
a90ef4bf 28751 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28754 "RANLIB=$${RANLIB}" \
0c24b341 28755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28756 TAGS) \
28757 || exit 1
28758
a90ef4bf 28759@endif expect
be01d343 28760
a90ef4bf
JM
28761.PHONY: maybe-install-info-expect install-info-expect
28762maybe-install-info-expect:
28763@if expect
28764maybe-install-info-expect: install-info-expect
be01d343 28765
a90ef4bf
JM
28766install-info-expect: \
28767 configure-expect \
28768 info-expect
28769 @: $(MAKE); $(unstage)
28770 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28771 r=`${PWD_COMMAND}`; export r; \
28772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28773 $(HOST_EXPORTS) \
28774 for flag in $(EXTRA_HOST_FLAGS) ; do \
28775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28776 done; \
22121df0 28777 echo "Doing install-info in expect"; \
a90ef4bf 28778 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28781 "RANLIB=$${RANLIB}" \
0c24b341 28782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28783 install-info) \
28784 || exit 1
28785
a90ef4bf 28786@endif expect
be01d343 28787
a90ef4bf
JM
28788.PHONY: maybe-install-pdf-expect install-pdf-expect
28789maybe-install-pdf-expect:
28790@if expect
28791maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 28792
a90ef4bf
JM
28793install-pdf-expect: \
28794 configure-expect \
28795 pdf-expect
28796 @: $(MAKE); $(unstage)
28797 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
28798 r=`${PWD_COMMAND}`; export r; \
28799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28800 $(HOST_EXPORTS) \
28801 for flag in $(EXTRA_HOST_FLAGS) ; do \
28802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28803 done; \
22121df0 28804 echo "Doing install-pdf in expect"; \
a90ef4bf 28805 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
28806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28808 "RANLIB=$${RANLIB}" \
0c24b341 28809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
28810 install-pdf) \
28811 || exit 1
28812
a90ef4bf 28813@endif expect
a3ca38d2 28814
a90ef4bf
JM
28815.PHONY: maybe-install-html-expect install-html-expect
28816maybe-install-html-expect:
28817@if expect
28818maybe-install-html-expect: install-html-expect
108a6f8e 28819
a90ef4bf
JM
28820install-html-expect: \
28821 configure-expect \
28822 html-expect
28823 @: $(MAKE); $(unstage)
28824 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
28825 r=`${PWD_COMMAND}`; export r; \
28826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28827 $(HOST_EXPORTS) \
28828 for flag in $(EXTRA_HOST_FLAGS) ; do \
28829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28830 done; \
22121df0 28831 echo "Doing install-html in expect"; \
a90ef4bf 28832 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
28833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28835 "RANLIB=$${RANLIB}" \
0c24b341 28836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
28837 install-html) \
28838 || exit 1
28839
a90ef4bf 28840@endif expect
108a6f8e 28841
a90ef4bf
JM
28842.PHONY: maybe-installcheck-expect installcheck-expect
28843maybe-installcheck-expect:
28844@if expect
28845maybe-installcheck-expect: installcheck-expect
be01d343 28846
a90ef4bf
JM
28847installcheck-expect: \
28848 configure-expect
28849 @: $(MAKE); $(unstage)
28850 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28851 r=`${PWD_COMMAND}`; export r; \
28852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28853 $(HOST_EXPORTS) \
28854 for flag in $(EXTRA_HOST_FLAGS) ; do \
28855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28856 done; \
22121df0 28857 echo "Doing installcheck in expect"; \
a90ef4bf 28858 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28861 "RANLIB=$${RANLIB}" \
0c24b341 28862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28863 installcheck) \
28864 || exit 1
28865
a90ef4bf 28866@endif expect
be01d343 28867
a90ef4bf
JM
28868.PHONY: maybe-mostlyclean-expect mostlyclean-expect
28869maybe-mostlyclean-expect:
28870@if expect
28871maybe-mostlyclean-expect: mostlyclean-expect
be01d343 28872
a90ef4bf
JM
28873mostlyclean-expect:
28874 @: $(MAKE); $(unstage)
28875 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28876 r=`${PWD_COMMAND}`; export r; \
28877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28878 $(HOST_EXPORTS) \
28879 for flag in $(EXTRA_HOST_FLAGS) ; do \
28880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28881 done; \
22121df0 28882 echo "Doing mostlyclean in expect"; \
a90ef4bf 28883 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28886 "RANLIB=$${RANLIB}" \
0c24b341 28887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28888 mostlyclean) \
28889 || exit 1
28890
a90ef4bf 28891@endif expect
be01d343 28892
a90ef4bf
JM
28893.PHONY: maybe-clean-expect clean-expect
28894maybe-clean-expect:
28895@if expect
28896maybe-clean-expect: clean-expect
be01d343 28897
a90ef4bf
JM
28898clean-expect:
28899 @: $(MAKE); $(unstage)
28900 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28901 r=`${PWD_COMMAND}`; export r; \
28902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28903 $(HOST_EXPORTS) \
28904 for flag in $(EXTRA_HOST_FLAGS) ; do \
28905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28906 done; \
22121df0 28907 echo "Doing clean in expect"; \
a90ef4bf 28908 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28911 "RANLIB=$${RANLIB}" \
0c24b341 28912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28913 clean) \
28914 || exit 1
28915
a90ef4bf 28916@endif expect
be01d343 28917
a90ef4bf
JM
28918.PHONY: maybe-distclean-expect distclean-expect
28919maybe-distclean-expect:
28920@if expect
28921maybe-distclean-expect: distclean-expect
be01d343 28922
a90ef4bf
JM
28923distclean-expect:
28924 @: $(MAKE); $(unstage)
28925 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28926 r=`${PWD_COMMAND}`; export r; \
28927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28928 $(HOST_EXPORTS) \
28929 for flag in $(EXTRA_HOST_FLAGS) ; do \
28930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28931 done; \
22121df0 28932 echo "Doing distclean in expect"; \
a90ef4bf 28933 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28936 "RANLIB=$${RANLIB}" \
0c24b341 28937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28938 distclean) \
28939 || exit 1
28940
a90ef4bf 28941@endif expect
be01d343 28942
a90ef4bf
JM
28943.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
28944maybe-maintainer-clean-expect:
28945@if expect
28946maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 28947
a90ef4bf
JM
28948maintainer-clean-expect:
28949 @: $(MAKE); $(unstage)
28950 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
28951 r=`${PWD_COMMAND}`; export r; \
28952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28953 $(HOST_EXPORTS) \
28954 for flag in $(EXTRA_HOST_FLAGS) ; do \
28955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28956 done; \
22121df0 28957 echo "Doing maintainer-clean in expect"; \
a90ef4bf 28958 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
28959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28961 "RANLIB=$${RANLIB}" \
0c24b341 28962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
28963 maintainer-clean) \
28964 || exit 1
28965
a90ef4bf 28966@endif expect
be01d343
PB
28967
28968
28969
a90ef4bf
JM
28970.PHONY: configure-guile maybe-configure-guile
28971maybe-configure-guile:
4f0ef2d8 28972@if gcc-bootstrap
a90ef4bf 28973configure-guile: stage_current
4f0ef2d8 28974@endif gcc-bootstrap
a90ef4bf
JM
28975@if guile
28976maybe-configure-guile: configure-guile
28977configure-guile:
0aed8855 28978 @: $(MAKE); $(unstage)
c52c6897 28979 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 28980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 28981 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
22121df0 28982 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile; \
1f53ca9a 28983 $(HOST_EXPORTS) \
a90ef4bf
JM
28984 echo Configuring in $(HOST_SUBDIR)/guile; \
28985 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 28986 case $(srcdir) in \
b00612cc 28987 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28988 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 28989 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 28990 esac; \
1b6c0831
L
28991 module_srcdir=guile; \
28992 $(SHELL) \
28993 $$s/$$module_srcdir/configure \
28994 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28995 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28996 --target=${target_alias} \
4b1cb4fe 28997 || exit 1
a90ef4bf 28998@endif guile
4b1cb4fe 28999
a7254363
PB
29000
29001
d545f33b
PB
29002
29003
a90ef4bf
JM
29004.PHONY: all-guile maybe-all-guile
29005maybe-all-guile:
4f0ef2d8 29006@if gcc-bootstrap
a90ef4bf 29007all-guile: stage_current
4f0ef2d8 29008@endif gcc-bootstrap
a90ef4bf
JM
29009@if guile
29010TARGET-guile=all
29011maybe-all-guile: all-guile
29012all-guile: configure-guile
29013 @: $(MAKE); $(unstage)
4b1cb4fe
DD
29014 @r=`${PWD_COMMAND}`; export r; \
29015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29016 $(HOST_EXPORTS) \
a90ef4bf 29017 (cd $(HOST_SUBDIR)/guile && \
b3676d82 29018 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29019 $(TARGET-guile))
29020@endif guile
4b1cb4fe 29021
a7254363 29022
d545f33b
PB
29023
29024
a90ef4bf
JM
29025.PHONY: check-guile maybe-check-guile
29026maybe-check-guile:
29027@if guile
29028maybe-check-guile: check-guile
4b1cb4fe 29029
a90ef4bf 29030check-guile:
0aed8855 29031 @: $(MAKE); $(unstage)
4b1cb4fe
DD
29032 @r=`${PWD_COMMAND}`; export r; \
29033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29034 $(HOST_EXPORTS) \
a90ef4bf 29035 (cd $(HOST_SUBDIR)/guile && \
b00612cc 29036 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 29037
a90ef4bf 29038@endif guile
4b1cb4fe 29039
a90ef4bf
JM
29040.PHONY: install-guile maybe-install-guile
29041maybe-install-guile:
29042@if guile
29043maybe-install-guile: install-guile
4b1cb4fe 29044
a90ef4bf 29045install-guile: installdirs
0aed8855 29046 @: $(MAKE); $(unstage)
b813574b
PB
29047 @r=`${PWD_COMMAND}`; export r; \
29048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 29049 $(HOST_EXPORTS) \
a90ef4bf 29050 (cd $(HOST_SUBDIR)/guile && \
2da12f12 29051 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 29052
a90ef4bf 29053@endif guile
4b1cb4fe 29054
a90ef4bf
JM
29055.PHONY: install-strip-guile maybe-install-strip-guile
29056maybe-install-strip-guile:
29057@if guile
29058maybe-install-strip-guile: install-strip-guile
9b980aa1 29059
a90ef4bf 29060install-strip-guile: installdirs
9b980aa1
RW
29061 @: $(MAKE); $(unstage)
29062 @r=`${PWD_COMMAND}`; export r; \
29063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29064 $(HOST_EXPORTS) \
a90ef4bf 29065 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
29066 $(MAKE) $(FLAGS_TO_PASS) install-strip)
29067
a90ef4bf 29068@endif guile
9b980aa1 29069
56a8fe78 29070# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 29071
a90ef4bf
JM
29072.PHONY: maybe-info-guile info-guile
29073maybe-info-guile:
29074@if guile
29075maybe-info-guile: info-guile
4b1cb4fe 29076
a90ef4bf
JM
29077info-guile: \
29078 configure-guile
0aed8855 29079 @: $(MAKE); $(unstage)
a90ef4bf 29080 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29081 r=`${PWD_COMMAND}`; export r; \
29082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29083 $(HOST_EXPORTS) \
b813574b 29084 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29086 done; \
22121df0 29087 echo "Doing info in guile"; \
a90ef4bf 29088 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29091 "RANLIB=$${RANLIB}" \
0c24b341 29092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29093 info) \
4b1cb4fe
DD
29094 || exit 1
29095
a90ef4bf 29096@endif guile
4b1cb4fe 29097
a90ef4bf
JM
29098.PHONY: maybe-dvi-guile dvi-guile
29099maybe-dvi-guile:
29100@if guile
29101maybe-dvi-guile: dvi-guile
4b1cb4fe 29102
a90ef4bf
JM
29103dvi-guile: \
29104 configure-guile
0aed8855 29105 @: $(MAKE); $(unstage)
a90ef4bf 29106 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29107 r=`${PWD_COMMAND}`; export r; \
29108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29109 $(HOST_EXPORTS) \
b813574b 29110 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29112 done; \
22121df0 29113 echo "Doing dvi in guile"; \
a90ef4bf 29114 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29117 "RANLIB=$${RANLIB}" \
0c24b341 29118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29119 dvi) \
4b1cb4fe
DD
29120 || exit 1
29121
a90ef4bf 29122@endif guile
4b1cb4fe 29123
a90ef4bf
JM
29124.PHONY: maybe-pdf-guile pdf-guile
29125maybe-pdf-guile:
29126@if guile
29127maybe-pdf-guile: pdf-guile
56a8fe78 29128
a90ef4bf
JM
29129pdf-guile: \
29130 configure-guile
56a8fe78 29131 @: $(MAKE); $(unstage)
a90ef4bf 29132 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
29133 r=`${PWD_COMMAND}`; export r; \
29134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29135 $(HOST_EXPORTS) \
29136 for flag in $(EXTRA_HOST_FLAGS) ; do \
29137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29138 done; \
22121df0 29139 echo "Doing pdf in guile"; \
a90ef4bf 29140 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
29141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29143 "RANLIB=$${RANLIB}" \
0c24b341 29144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29145 pdf) \
29146 || exit 1
29147
a90ef4bf 29148@endif guile
56a8fe78 29149
a90ef4bf
JM
29150.PHONY: maybe-html-guile html-guile
29151maybe-html-guile:
29152@if guile
29153maybe-html-guile: html-guile
6d389afc 29154
a90ef4bf
JM
29155html-guile: \
29156 configure-guile
0aed8855 29157 @: $(MAKE); $(unstage)
a90ef4bf 29158 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
29159 r=`${PWD_COMMAND}`; export r; \
29160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29161 $(HOST_EXPORTS) \
29162 for flag in $(EXTRA_HOST_FLAGS) ; do \
29163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29164 done; \
22121df0 29165 echo "Doing html in guile"; \
a90ef4bf 29166 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
29167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29169 "RANLIB=$${RANLIB}" \
0c24b341 29170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29171 html) \
29172 || exit 1
29173
a90ef4bf 29174@endif guile
6d389afc 29175
a90ef4bf
JM
29176.PHONY: maybe-TAGS-guile TAGS-guile
29177maybe-TAGS-guile:
29178@if guile
29179maybe-TAGS-guile: TAGS-guile
4b1cb4fe 29180
a90ef4bf
JM
29181TAGS-guile: \
29182 configure-guile
0aed8855 29183 @: $(MAKE); $(unstage)
a90ef4bf 29184 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29185 r=`${PWD_COMMAND}`; export r; \
29186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29187 $(HOST_EXPORTS) \
b813574b 29188 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29190 done; \
22121df0 29191 echo "Doing TAGS in guile"; \
a90ef4bf 29192 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29195 "RANLIB=$${RANLIB}" \
0c24b341 29196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29197 TAGS) \
4b1cb4fe
DD
29198 || exit 1
29199
a90ef4bf 29200@endif guile
4b1cb4fe 29201
a90ef4bf
JM
29202.PHONY: maybe-install-info-guile install-info-guile
29203maybe-install-info-guile:
29204@if guile
29205maybe-install-info-guile: install-info-guile
4b1cb4fe 29206
a90ef4bf
JM
29207install-info-guile: \
29208 configure-guile \
29209 info-guile
0aed8855 29210 @: $(MAKE); $(unstage)
a90ef4bf 29211 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29212 r=`${PWD_COMMAND}`; export r; \
29213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29214 $(HOST_EXPORTS) \
b813574b 29215 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29217 done; \
22121df0 29218 echo "Doing install-info in guile"; \
a90ef4bf 29219 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29222 "RANLIB=$${RANLIB}" \
0c24b341 29223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29224 install-info) \
4b1cb4fe
DD
29225 || exit 1
29226
a90ef4bf 29227@endif guile
4b1cb4fe 29228
a90ef4bf
JM
29229.PHONY: maybe-install-pdf-guile install-pdf-guile
29230maybe-install-pdf-guile:
29231@if guile
29232maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 29233
a90ef4bf
JM
29234install-pdf-guile: \
29235 configure-guile \
29236 pdf-guile
a3ca38d2 29237 @: $(MAKE); $(unstage)
a90ef4bf 29238 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
29239 r=`${PWD_COMMAND}`; export r; \
29240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29241 $(HOST_EXPORTS) \
29242 for flag in $(EXTRA_HOST_FLAGS) ; do \
29243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29244 done; \
22121df0 29245 echo "Doing install-pdf in guile"; \
a90ef4bf 29246 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
29247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29249 "RANLIB=$${RANLIB}" \
0c24b341 29250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29251 install-pdf) \
29252 || exit 1
29253
a90ef4bf 29254@endif guile
a3ca38d2 29255
a90ef4bf
JM
29256.PHONY: maybe-install-html-guile install-html-guile
29257maybe-install-html-guile:
29258@if guile
29259maybe-install-html-guile: install-html-guile
108a6f8e 29260
a90ef4bf
JM
29261install-html-guile: \
29262 configure-guile \
29263 html-guile
108a6f8e 29264 @: $(MAKE); $(unstage)
a90ef4bf 29265 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
29266 r=`${PWD_COMMAND}`; export r; \
29267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29268 $(HOST_EXPORTS) \
29269 for flag in $(EXTRA_HOST_FLAGS) ; do \
29270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29271 done; \
22121df0 29272 echo "Doing install-html in guile"; \
a90ef4bf 29273 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
29274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29276 "RANLIB=$${RANLIB}" \
0c24b341 29277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29278 install-html) \
29279 || exit 1
29280
a90ef4bf 29281@endif guile
108a6f8e 29282
a90ef4bf
JM
29283.PHONY: maybe-installcheck-guile installcheck-guile
29284maybe-installcheck-guile:
29285@if guile
29286maybe-installcheck-guile: installcheck-guile
4b1cb4fe 29287
a90ef4bf
JM
29288installcheck-guile: \
29289 configure-guile
0aed8855 29290 @: $(MAKE); $(unstage)
a90ef4bf 29291 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29292 r=`${PWD_COMMAND}`; export r; \
29293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29294 $(HOST_EXPORTS) \
b813574b 29295 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29297 done; \
22121df0 29298 echo "Doing installcheck in guile"; \
a90ef4bf 29299 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29302 "RANLIB=$${RANLIB}" \
0c24b341 29303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29304 installcheck) \
4b1cb4fe
DD
29305 || exit 1
29306
a90ef4bf 29307@endif guile
4b1cb4fe 29308
a90ef4bf
JM
29309.PHONY: maybe-mostlyclean-guile mostlyclean-guile
29310maybe-mostlyclean-guile:
29311@if guile
29312maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 29313
a90ef4bf 29314mostlyclean-guile:
0aed8855 29315 @: $(MAKE); $(unstage)
a90ef4bf 29316 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29317 r=`${PWD_COMMAND}`; export r; \
29318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29319 $(HOST_EXPORTS) \
b813574b 29320 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29322 done; \
22121df0 29323 echo "Doing mostlyclean in guile"; \
a90ef4bf 29324 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29327 "RANLIB=$${RANLIB}" \
0c24b341 29328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29329 mostlyclean) \
4b1cb4fe
DD
29330 || exit 1
29331
a90ef4bf 29332@endif guile
4b1cb4fe 29333
a90ef4bf
JM
29334.PHONY: maybe-clean-guile clean-guile
29335maybe-clean-guile:
29336@if guile
29337maybe-clean-guile: clean-guile
4b1cb4fe 29338
a90ef4bf 29339clean-guile:
0aed8855 29340 @: $(MAKE); $(unstage)
a90ef4bf 29341 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29342 r=`${PWD_COMMAND}`; export r; \
29343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29344 $(HOST_EXPORTS) \
b813574b 29345 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29347 done; \
22121df0 29348 echo "Doing clean in guile"; \
a90ef4bf 29349 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29352 "RANLIB=$${RANLIB}" \
0c24b341 29353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29354 clean) \
4b1cb4fe
DD
29355 || exit 1
29356
a90ef4bf 29357@endif guile
4b1cb4fe 29358
a90ef4bf
JM
29359.PHONY: maybe-distclean-guile distclean-guile
29360maybe-distclean-guile:
29361@if guile
29362maybe-distclean-guile: distclean-guile
4b1cb4fe 29363
a90ef4bf 29364distclean-guile:
0aed8855 29365 @: $(MAKE); $(unstage)
a90ef4bf 29366 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29367 r=`${PWD_COMMAND}`; export r; \
29368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29369 $(HOST_EXPORTS) \
b813574b 29370 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29372 done; \
22121df0 29373 echo "Doing distclean in guile"; \
a90ef4bf 29374 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29377 "RANLIB=$${RANLIB}" \
0c24b341 29378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29379 distclean) \
4b1cb4fe
DD
29380 || exit 1
29381
a90ef4bf 29382@endif guile
4b1cb4fe 29383
a90ef4bf
JM
29384.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
29385maybe-maintainer-clean-guile:
29386@if guile
29387maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 29388
a90ef4bf 29389maintainer-clean-guile:
0aed8855 29390 @: $(MAKE); $(unstage)
a90ef4bf 29391 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29392 r=`${PWD_COMMAND}`; export r; \
29393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29394 $(HOST_EXPORTS) \
b813574b 29395 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29397 done; \
22121df0 29398 echo "Doing maintainer-clean in guile"; \
a90ef4bf 29399 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29402 "RANLIB=$${RANLIB}" \
0c24b341 29403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29404 maintainer-clean) \
4b1cb4fe
DD
29405 || exit 1
29406
a90ef4bf 29407@endif guile
4b1cb4fe
DD
29408
29409
a7254363 29410
a90ef4bf
JM
29411.PHONY: configure-tk maybe-configure-tk
29412maybe-configure-tk:
4f0ef2d8 29413@if gcc-bootstrap
a90ef4bf 29414configure-tk: stage_current
4f0ef2d8 29415@endif gcc-bootstrap
a90ef4bf
JM
29416@if tk
29417maybe-configure-tk: configure-tk
29418configure-tk:
29419 @: $(MAKE); $(unstage)
c52c6897
PB
29420 @r=`${PWD_COMMAND}`; export r; \
29421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29422 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
22121df0 29423 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk; \
1f53ca9a 29424 $(HOST_EXPORTS) \
a90ef4bf
JM
29425 echo Configuring in $(HOST_SUBDIR)/tk; \
29426 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 29427 case $(srcdir) in \
b00612cc 29428 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29429 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 29430 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29431 esac; \
1b6c0831
L
29432 module_srcdir=tk; \
29433 $(SHELL) \
29434 $$s/$$module_srcdir/configure \
29435 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29436 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29437 --target=${target_alias} \
2a4cbe27 29438 || exit 1
a90ef4bf 29439@endif tk
2a4cbe27 29440
a7254363
PB
29441
29442
a90ef4bf
JM
29443
29444
29445.PHONY: all-tk maybe-all-tk
29446maybe-all-tk:
29447@if gcc-bootstrap
29448all-tk: stage_current
29449@endif gcc-bootstrap
29450@if tk
29451TARGET-tk=all
29452maybe-all-tk: all-tk
29453all-tk: configure-tk
29454 @: $(MAKE); $(unstage)
c52c6897
PB
29455 @r=`${PWD_COMMAND}`; export r; \
29456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29457 $(HOST_EXPORTS) \
29458 (cd $(HOST_SUBDIR)/tk && \
b3676d82 29459 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29460 $(TARGET-tk))
29461@endif tk
d545f33b 29462
a90ef4bf
JM
29463
29464
29465
29466.PHONY: check-tk maybe-check-tk
29467maybe-check-tk:
29468@if tk
29469maybe-check-tk: check-tk
29470
29471check-tk:
29472 @: $(MAKE); $(unstage)
c52c6897
PB
29473 @r=`${PWD_COMMAND}`; export r; \
29474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29475 $(HOST_EXPORTS) \
a90ef4bf
JM
29476 (cd $(HOST_SUBDIR)/tk && \
29477 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 29478
a90ef4bf
JM
29479@endif tk
29480
29481.PHONY: install-tk maybe-install-tk
29482maybe-install-tk:
29483@if tk
29484maybe-install-tk: install-tk
29485
29486install-tk: installdirs
29487 @: $(MAKE); $(unstage)
c52c6897
PB
29488 @r=`${PWD_COMMAND}`; export r; \
29489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29490 $(HOST_EXPORTS) \
a90ef4bf
JM
29491 (cd $(HOST_SUBDIR)/tk && \
29492 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 29493
a90ef4bf
JM
29494@endif tk
29495
29496.PHONY: install-strip-tk maybe-install-strip-tk
29497maybe-install-strip-tk:
29498@if tk
29499maybe-install-strip-tk: install-strip-tk
29500
29501install-strip-tk: installdirs
29502 @: $(MAKE); $(unstage)
c52c6897
PB
29503 @r=`${PWD_COMMAND}`; export r; \
29504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29505 $(HOST_EXPORTS) \
a90ef4bf
JM
29506 (cd $(HOST_SUBDIR)/tk && \
29507 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 29508
a90ef4bf 29509@endif tk
9b980aa1 29510
56a8fe78 29511# Other targets (info, dvi, pdf, etc.)
2a4cbe27 29512
a90ef4bf
JM
29513.PHONY: maybe-info-tk info-tk
29514maybe-info-tk:
29515@if tk
29516maybe-info-tk: info-tk
4fa63067 29517
a90ef4bf
JM
29518info-tk: \
29519 configure-tk
29520 @: $(MAKE); $(unstage)
29521 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29522 r=`${PWD_COMMAND}`; export r; \
29523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29524 $(HOST_EXPORTS) \
b813574b 29525 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29527 done; \
22121df0 29528 echo "Doing info in tk"; \
a90ef4bf 29529 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
29530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29532 "RANLIB=$${RANLIB}" \
0c24b341 29533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29534 info) \
29535 || exit 1
29536
a90ef4bf 29537@endif tk
6d389afc 29538
a90ef4bf
JM
29539.PHONY: maybe-dvi-tk dvi-tk
29540maybe-dvi-tk:
29541@if tk
29542maybe-dvi-tk: dvi-tk
6d389afc 29543
a90ef4bf
JM
29544dvi-tk: \
29545 configure-tk
29546 @: $(MAKE); $(unstage)
29547 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
29548 r=`${PWD_COMMAND}`; export r; \
29549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29550 $(HOST_EXPORTS) \
29551 for flag in $(EXTRA_HOST_FLAGS) ; do \
29552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29553 done; \
22121df0 29554 echo "Doing dvi in tk"; \
a90ef4bf 29555 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29558 "RANLIB=$${RANLIB}" \
0c24b341 29559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29560 dvi) \
2a4cbe27
NN
29561 || exit 1
29562
a90ef4bf 29563@endif tk
2a4cbe27 29564
a90ef4bf
JM
29565.PHONY: maybe-pdf-tk pdf-tk
29566maybe-pdf-tk:
29567@if tk
29568maybe-pdf-tk: pdf-tk
56a8fe78 29569
a90ef4bf
JM
29570pdf-tk: \
29571 configure-tk
29572 @: $(MAKE); $(unstage)
29573 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
29574 r=`${PWD_COMMAND}`; export r; \
29575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29576 $(HOST_EXPORTS) \
29577 for flag in $(EXTRA_HOST_FLAGS) ; do \
29578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29579 done; \
22121df0 29580 echo "Doing pdf in tk"; \
a90ef4bf 29581 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
29582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29584 "RANLIB=$${RANLIB}" \
0c24b341 29585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29586 pdf) \
29587 || exit 1
29588
a90ef4bf 29589@endif tk
56a8fe78 29590
a90ef4bf
JM
29591.PHONY: maybe-html-tk html-tk
29592maybe-html-tk:
29593@if tk
29594maybe-html-tk: html-tk
2a4cbe27 29595
a90ef4bf
JM
29596html-tk: \
29597 configure-tk
29598 @: $(MAKE); $(unstage)
29599 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29600 r=`${PWD_COMMAND}`; export r; \
29601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29602 $(HOST_EXPORTS) \
b813574b 29603 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29605 done; \
22121df0 29606 echo "Doing html in tk"; \
a90ef4bf 29607 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29610 "RANLIB=$${RANLIB}" \
0c24b341 29611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 29612 html) \
2a4cbe27
NN
29613 || exit 1
29614
a90ef4bf 29615@endif tk
2a4cbe27 29616
a90ef4bf
JM
29617.PHONY: maybe-TAGS-tk TAGS-tk
29618maybe-TAGS-tk:
29619@if tk
29620maybe-TAGS-tk: TAGS-tk
2a4cbe27 29621
a90ef4bf
JM
29622TAGS-tk: \
29623 configure-tk
29624 @: $(MAKE); $(unstage)
29625 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29626 r=`${PWD_COMMAND}`; export r; \
29627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29628 $(HOST_EXPORTS) \
b813574b 29629 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29631 done; \
22121df0 29632 echo "Doing TAGS in tk"; \
a90ef4bf 29633 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29636 "RANLIB=$${RANLIB}" \
0c24b341 29637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29638 TAGS) \
2a4cbe27
NN
29639 || exit 1
29640
a90ef4bf 29641@endif tk
2a4cbe27 29642
a90ef4bf
JM
29643.PHONY: maybe-install-info-tk install-info-tk
29644maybe-install-info-tk:
29645@if tk
29646maybe-install-info-tk: install-info-tk
2a4cbe27 29647
a90ef4bf
JM
29648install-info-tk: \
29649 configure-tk \
29650 info-tk
29651 @: $(MAKE); $(unstage)
29652 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29653 r=`${PWD_COMMAND}`; export r; \
29654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29655 $(HOST_EXPORTS) \
b813574b 29656 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29658 done; \
22121df0 29659 echo "Doing install-info in tk"; \
a90ef4bf 29660 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29663 "RANLIB=$${RANLIB}" \
0c24b341 29664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29665 install-info) \
2a4cbe27
NN
29666 || exit 1
29667
a90ef4bf 29668@endif tk
2a4cbe27 29669
a90ef4bf
JM
29670.PHONY: maybe-install-pdf-tk install-pdf-tk
29671maybe-install-pdf-tk:
29672@if tk
29673maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 29674
a90ef4bf
JM
29675install-pdf-tk: \
29676 configure-tk \
29677 pdf-tk
29678 @: $(MAKE); $(unstage)
29679 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
29680 r=`${PWD_COMMAND}`; export r; \
29681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29682 $(HOST_EXPORTS) \
29683 for flag in $(EXTRA_HOST_FLAGS) ; do \
29684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29685 done; \
22121df0 29686 echo "Doing install-pdf in tk"; \
a90ef4bf 29687 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
29688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29690 "RANLIB=$${RANLIB}" \
0c24b341 29691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29692 install-pdf) \
29693 || exit 1
29694
a90ef4bf 29695@endif tk
a3ca38d2 29696
a90ef4bf
JM
29697.PHONY: maybe-install-html-tk install-html-tk
29698maybe-install-html-tk:
29699@if tk
29700maybe-install-html-tk: install-html-tk
108a6f8e 29701
a90ef4bf
JM
29702install-html-tk: \
29703 configure-tk \
29704 html-tk
29705 @: $(MAKE); $(unstage)
29706 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
29707 r=`${PWD_COMMAND}`; export r; \
29708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29709 $(HOST_EXPORTS) \
29710 for flag in $(EXTRA_HOST_FLAGS) ; do \
29711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29712 done; \
22121df0 29713 echo "Doing install-html in tk"; \
a90ef4bf 29714 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
29715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29717 "RANLIB=$${RANLIB}" \
0c24b341 29718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29719 install-html) \
29720 || exit 1
29721
a90ef4bf 29722@endif tk
108a6f8e 29723
a90ef4bf
JM
29724.PHONY: maybe-installcheck-tk installcheck-tk
29725maybe-installcheck-tk:
29726@if tk
29727maybe-installcheck-tk: installcheck-tk
2a4cbe27 29728
a90ef4bf
JM
29729installcheck-tk: \
29730 configure-tk
29731 @: $(MAKE); $(unstage)
29732 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29733 r=`${PWD_COMMAND}`; export r; \
29734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29735 $(HOST_EXPORTS) \
b813574b 29736 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29738 done; \
22121df0 29739 echo "Doing installcheck in tk"; \
a90ef4bf 29740 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29743 "RANLIB=$${RANLIB}" \
0c24b341 29744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29745 installcheck) \
2a4cbe27
NN
29746 || exit 1
29747
a90ef4bf 29748@endif tk
2a4cbe27 29749
a90ef4bf
JM
29750.PHONY: maybe-mostlyclean-tk mostlyclean-tk
29751maybe-mostlyclean-tk:
29752@if tk
29753maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 29754
a90ef4bf
JM
29755mostlyclean-tk:
29756 @: $(MAKE); $(unstage)
29757 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29758 r=`${PWD_COMMAND}`; export r; \
29759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29760 $(HOST_EXPORTS) \
b813574b 29761 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29763 done; \
22121df0 29764 echo "Doing mostlyclean in tk"; \
a90ef4bf 29765 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29768 "RANLIB=$${RANLIB}" \
0c24b341 29769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29770 mostlyclean) \
2a4cbe27
NN
29771 || exit 1
29772
a90ef4bf 29773@endif tk
2a4cbe27 29774
a90ef4bf
JM
29775.PHONY: maybe-clean-tk clean-tk
29776maybe-clean-tk:
29777@if tk
29778maybe-clean-tk: clean-tk
2a4cbe27 29779
a90ef4bf
JM
29780clean-tk:
29781 @: $(MAKE); $(unstage)
29782 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29783 r=`${PWD_COMMAND}`; export r; \
29784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29785 $(HOST_EXPORTS) \
b813574b 29786 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29788 done; \
22121df0 29789 echo "Doing clean in tk"; \
a90ef4bf 29790 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29793 "RANLIB=$${RANLIB}" \
0c24b341 29794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29795 clean) \
2a4cbe27
NN
29796 || exit 1
29797
a90ef4bf 29798@endif tk
2a4cbe27 29799
a90ef4bf
JM
29800.PHONY: maybe-distclean-tk distclean-tk
29801maybe-distclean-tk:
29802@if tk
29803maybe-distclean-tk: distclean-tk
2a4cbe27 29804
a90ef4bf
JM
29805distclean-tk:
29806 @: $(MAKE); $(unstage)
29807 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29808 r=`${PWD_COMMAND}`; export r; \
29809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29810 $(HOST_EXPORTS) \
b813574b 29811 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29813 done; \
22121df0 29814 echo "Doing distclean in tk"; \
a90ef4bf 29815 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29818 "RANLIB=$${RANLIB}" \
0c24b341 29819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29820 distclean) \
2a4cbe27
NN
29821 || exit 1
29822
a90ef4bf 29823@endif tk
2a4cbe27 29824
a90ef4bf
JM
29825.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
29826maybe-maintainer-clean-tk:
29827@if tk
29828maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 29829
a90ef4bf
JM
29830maintainer-clean-tk:
29831 @: $(MAKE); $(unstage)
29832 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29833 r=`${PWD_COMMAND}`; export r; \
29834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29835 $(HOST_EXPORTS) \
b813574b 29836 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29838 done; \
22121df0 29839 echo "Doing maintainer-clean in tk"; \
a90ef4bf 29840 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
29841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29843 "RANLIB=$${RANLIB}" \
0c24b341 29844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29845 maintainer-clean) \
2a4cbe27
NN
29846 || exit 1
29847
a90ef4bf 29848@endif tk
2a4cbe27 29849
2a4cbe27 29850
a7254363 29851
a90ef4bf
JM
29852.PHONY: configure-libtermcap maybe-configure-libtermcap
29853maybe-configure-libtermcap:
dc448a7b 29854@if gcc-bootstrap
a90ef4bf 29855configure-libtermcap: stage_current
dc448a7b 29856@endif gcc-bootstrap
a90ef4bf
JM
29857@if libtermcap
29858maybe-configure-libtermcap: configure-libtermcap
29859configure-libtermcap:
dc448a7b
TT
29860 @: $(MAKE); $(unstage)
29861 @r=`${PWD_COMMAND}`; export r; \
29862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29863 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 29864 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap; \
1f53ca9a 29865 $(HOST_EXPORTS) \
a90ef4bf
JM
29866 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
29867 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
29868 case $(srcdir) in \
29869 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29870 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
29871 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29872 esac; \
1b6c0831
L
29873 module_srcdir=libtermcap; \
29874 $(SHELL) \
29875 $$s/$$module_srcdir/configure \
29876 --srcdir=$${topdir}/$$module_srcdir \
dc448a7b 29877 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29878 --target=${target_alias} \
dc448a7b 29879 || exit 1
a90ef4bf 29880@endif libtermcap
dc448a7b
TT
29881
29882
29883
29884
29885
a90ef4bf
JM
29886.PHONY: all-libtermcap maybe-all-libtermcap
29887maybe-all-libtermcap:
dc448a7b 29888@if gcc-bootstrap
a90ef4bf 29889all-libtermcap: stage_current
dc448a7b 29890@endif gcc-bootstrap
a90ef4bf
JM
29891@if libtermcap
29892TARGET-libtermcap=all
29893maybe-all-libtermcap: all-libtermcap
29894all-libtermcap: configure-libtermcap
dc448a7b
TT
29895 @: $(MAKE); $(unstage)
29896 @r=`${PWD_COMMAND}`; export r; \
29897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29898 $(HOST_EXPORTS) \
a90ef4bf 29899 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 29900 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29901 $(TARGET-libtermcap))
29902@endif libtermcap
dc448a7b
TT
29903
29904
29905
29906
a90ef4bf
JM
29907.PHONY: check-libtermcap maybe-check-libtermcap
29908maybe-check-libtermcap:
29909@if libtermcap
29910maybe-check-libtermcap: check-libtermcap
dc448a7b 29911
a90ef4bf
JM
29912check-libtermcap:
29913
29914@endif libtermcap
29915
29916.PHONY: install-libtermcap maybe-install-libtermcap
29917maybe-install-libtermcap:
29918@if libtermcap
29919maybe-install-libtermcap: install-libtermcap
29920
29921install-libtermcap: installdirs
dc448a7b
TT
29922 @: $(MAKE); $(unstage)
29923 @r=`${PWD_COMMAND}`; export r; \
29924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29925 $(HOST_EXPORTS) \
a90ef4bf
JM
29926 (cd $(HOST_SUBDIR)/libtermcap && \
29927 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 29928
a90ef4bf 29929@endif libtermcap
dc448a7b 29930
a90ef4bf
JM
29931.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
29932maybe-install-strip-libtermcap:
29933@if libtermcap
29934maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 29935
a90ef4bf
JM
29936install-strip-libtermcap: installdirs
29937 @: $(MAKE); $(unstage)
29938 @r=`${PWD_COMMAND}`; export r; \
29939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29940 $(HOST_EXPORTS) \
29941 (cd $(HOST_SUBDIR)/libtermcap && \
29942 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 29943
a90ef4bf 29944@endif libtermcap
9b980aa1 29945
dc448a7b
TT
29946# Other targets (info, dvi, pdf, etc.)
29947
a90ef4bf
JM
29948.PHONY: maybe-info-libtermcap info-libtermcap
29949maybe-info-libtermcap:
29950@if libtermcap
29951maybe-info-libtermcap: info-libtermcap
dc448a7b 29952
a90ef4bf
JM
29953info-libtermcap: \
29954 configure-libtermcap
dc448a7b 29955 @: $(MAKE); $(unstage)
a90ef4bf 29956 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29957 r=`${PWD_COMMAND}`; export r; \
29958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29959 $(HOST_EXPORTS) \
29960 for flag in $(EXTRA_HOST_FLAGS) ; do \
29961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29962 done; \
22121df0 29963 echo "Doing info in libtermcap"; \
a90ef4bf 29964 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29967 "RANLIB=$${RANLIB}" \
29968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29969 info) \
29970 || exit 1
29971
a90ef4bf 29972@endif libtermcap
dc448a7b 29973
a90ef4bf
JM
29974.PHONY: maybe-dvi-libtermcap dvi-libtermcap
29975maybe-dvi-libtermcap:
29976@if libtermcap
29977maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 29978
a90ef4bf
JM
29979dvi-libtermcap: \
29980 configure-libtermcap
dc448a7b 29981 @: $(MAKE); $(unstage)
a90ef4bf 29982 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
29983 r=`${PWD_COMMAND}`; export r; \
29984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29985 $(HOST_EXPORTS) \
29986 for flag in $(EXTRA_HOST_FLAGS) ; do \
29987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29988 done; \
22121df0 29989 echo "Doing dvi in libtermcap"; \
a90ef4bf 29990 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
29991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29993 "RANLIB=$${RANLIB}" \
29994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29995 dvi) \
29996 || exit 1
29997
a90ef4bf 29998@endif libtermcap
dc448a7b 29999
a90ef4bf
JM
30000.PHONY: maybe-pdf-libtermcap pdf-libtermcap
30001maybe-pdf-libtermcap:
30002@if libtermcap
30003maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 30004
a90ef4bf
JM
30005pdf-libtermcap: \
30006 configure-libtermcap
dc448a7b 30007 @: $(MAKE); $(unstage)
a90ef4bf 30008 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30009 r=`${PWD_COMMAND}`; export r; \
30010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30011 $(HOST_EXPORTS) \
30012 for flag in $(EXTRA_HOST_FLAGS) ; do \
30013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30014 done; \
22121df0 30015 echo "Doing pdf in libtermcap"; \
a90ef4bf 30016 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30019 "RANLIB=$${RANLIB}" \
30020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30021 pdf) \
30022 || exit 1
30023
a90ef4bf 30024@endif libtermcap
dc448a7b 30025
a90ef4bf
JM
30026.PHONY: maybe-html-libtermcap html-libtermcap
30027maybe-html-libtermcap:
30028@if libtermcap
30029maybe-html-libtermcap: html-libtermcap
dc448a7b 30030
a90ef4bf
JM
30031html-libtermcap: \
30032 configure-libtermcap
dc448a7b 30033 @: $(MAKE); $(unstage)
a90ef4bf 30034 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30035 r=`${PWD_COMMAND}`; export r; \
30036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30037 $(HOST_EXPORTS) \
30038 for flag in $(EXTRA_HOST_FLAGS) ; do \
30039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30040 done; \
22121df0 30041 echo "Doing html in libtermcap"; \
a90ef4bf 30042 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30045 "RANLIB=$${RANLIB}" \
30046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30047 html) \
30048 || exit 1
30049
a90ef4bf 30050@endif libtermcap
dc448a7b 30051
a90ef4bf
JM
30052.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
30053maybe-TAGS-libtermcap:
30054@if libtermcap
30055maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 30056
a90ef4bf
JM
30057TAGS-libtermcap: \
30058 configure-libtermcap
dc448a7b 30059 @: $(MAKE); $(unstage)
a90ef4bf 30060 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30061 r=`${PWD_COMMAND}`; export r; \
30062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30063 $(HOST_EXPORTS) \
30064 for flag in $(EXTRA_HOST_FLAGS) ; do \
30065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30066 done; \
22121df0 30067 echo "Doing TAGS in libtermcap"; \
a90ef4bf 30068 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30071 "RANLIB=$${RANLIB}" \
30072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30073 TAGS) \
30074 || exit 1
30075
a90ef4bf 30076@endif libtermcap
dc448a7b 30077
a90ef4bf
JM
30078.PHONY: maybe-install-info-libtermcap install-info-libtermcap
30079maybe-install-info-libtermcap:
30080@if libtermcap
30081maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 30082
a90ef4bf
JM
30083install-info-libtermcap: \
30084 configure-libtermcap \
30085 info-libtermcap
dc448a7b 30086 @: $(MAKE); $(unstage)
a90ef4bf 30087 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30088 r=`${PWD_COMMAND}`; export r; \
30089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30090 $(HOST_EXPORTS) \
30091 for flag in $(EXTRA_HOST_FLAGS) ; do \
30092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30093 done; \
22121df0 30094 echo "Doing install-info in libtermcap"; \
a90ef4bf 30095 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30098 "RANLIB=$${RANLIB}" \
30099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30100 install-info) \
dc448a7b
TT
30101 || exit 1
30102
a90ef4bf 30103@endif libtermcap
dc448a7b 30104
a90ef4bf
JM
30105.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
30106maybe-install-pdf-libtermcap:
30107@if libtermcap
30108maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 30109
a90ef4bf
JM
30110install-pdf-libtermcap: \
30111 configure-libtermcap \
30112 pdf-libtermcap
dc448a7b 30113 @: $(MAKE); $(unstage)
a90ef4bf 30114 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30115 r=`${PWD_COMMAND}`; export r; \
30116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30117 $(HOST_EXPORTS) \
30118 for flag in $(EXTRA_HOST_FLAGS) ; do \
30119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30120 done; \
22121df0 30121 echo "Doing install-pdf in libtermcap"; \
a90ef4bf 30122 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30125 "RANLIB=$${RANLIB}" \
30126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30127 install-pdf) \
dc448a7b
TT
30128 || exit 1
30129
a90ef4bf 30130@endif libtermcap
dc448a7b 30131
a90ef4bf
JM
30132.PHONY: maybe-install-html-libtermcap install-html-libtermcap
30133maybe-install-html-libtermcap:
30134@if libtermcap
30135maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 30136
a90ef4bf
JM
30137install-html-libtermcap: \
30138 configure-libtermcap \
30139 html-libtermcap
dc448a7b 30140 @: $(MAKE); $(unstage)
a90ef4bf 30141 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30142 r=`${PWD_COMMAND}`; export r; \
30143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30144 $(HOST_EXPORTS) \
30145 for flag in $(EXTRA_HOST_FLAGS) ; do \
30146 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30147 done; \
22121df0 30148 echo "Doing install-html in libtermcap"; \
a90ef4bf 30149 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30152 "RANLIB=$${RANLIB}" \
30153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30154 install-html) \
dc448a7b
TT
30155 || exit 1
30156
a90ef4bf 30157@endif libtermcap
dc448a7b 30158
a90ef4bf
JM
30159.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
30160maybe-installcheck-libtermcap:
30161@if libtermcap
30162maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 30163
a90ef4bf
JM
30164installcheck-libtermcap: \
30165 configure-libtermcap
dc448a7b 30166 @: $(MAKE); $(unstage)
a90ef4bf 30167 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30168 r=`${PWD_COMMAND}`; export r; \
30169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30170 $(HOST_EXPORTS) \
30171 for flag in $(EXTRA_HOST_FLAGS) ; do \
30172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30173 done; \
22121df0 30174 echo "Doing installcheck in libtermcap"; \
a90ef4bf 30175 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30178 "RANLIB=$${RANLIB}" \
30179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30180 installcheck) \
dc448a7b
TT
30181 || exit 1
30182
a90ef4bf 30183@endif libtermcap
dc448a7b 30184
a90ef4bf
JM
30185.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
30186maybe-mostlyclean-libtermcap:
30187@if libtermcap
30188maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 30189
a90ef4bf
JM
30190# libtermcap doesn't support mostlyclean.
30191mostlyclean-libtermcap:
dc448a7b 30192
a90ef4bf 30193@endif libtermcap
dc448a7b 30194
a90ef4bf
JM
30195.PHONY: maybe-clean-libtermcap clean-libtermcap
30196maybe-clean-libtermcap:
30197@if libtermcap
30198maybe-clean-libtermcap: clean-libtermcap
dc448a7b 30199
a90ef4bf
JM
30200# libtermcap doesn't support clean.
30201clean-libtermcap:
dc448a7b 30202
a90ef4bf
JM
30203@endif libtermcap
30204
30205.PHONY: maybe-distclean-libtermcap distclean-libtermcap
30206maybe-distclean-libtermcap:
30207@if libtermcap
30208maybe-distclean-libtermcap: distclean-libtermcap
30209
30210# libtermcap doesn't support distclean.
30211distclean-libtermcap:
30212
30213@endif libtermcap
30214
30215.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
30216maybe-maintainer-clean-libtermcap:
30217@if libtermcap
30218maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
30219
30220# libtermcap doesn't support maintainer-clean.
30221maintainer-clean-libtermcap:
30222
30223@endif libtermcap
30224
30225
30226
30227.PHONY: configure-utils maybe-configure-utils
30228maybe-configure-utils:
30229@if gcc-bootstrap
30230configure-utils: stage_current
30231@endif gcc-bootstrap
30232@if utils
30233maybe-configure-utils: configure-utils
30234configure-utils:
30235 @: $(MAKE); $(unstage)
c52c6897 30236 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30238 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
22121df0 30239 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils; \
1f53ca9a 30240 $(HOST_EXPORTS) \
a90ef4bf
JM
30241 echo Configuring in $(HOST_SUBDIR)/utils; \
30242 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 30243 case $(srcdir) in \
b00612cc 30244 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30245 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 30246 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30247 esac; \
1b6c0831
L
30248 module_srcdir=utils; \
30249 $(SHELL) \
30250 $$s/$$module_srcdir/configure \
30251 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30252 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30253 --target=${target_alias} \
2a4cbe27 30254 || exit 1
a90ef4bf 30255@endif utils
2a4cbe27 30256
a7254363
PB
30257
30258
d545f33b
PB
30259
30260
a90ef4bf
JM
30261.PHONY: all-utils maybe-all-utils
30262maybe-all-utils:
4f0ef2d8 30263@if gcc-bootstrap
a90ef4bf 30264all-utils: stage_current
4f0ef2d8 30265@endif gcc-bootstrap
a90ef4bf
JM
30266@if utils
30267TARGET-utils=all
30268maybe-all-utils: all-utils
30269all-utils: configure-utils
0aed8855 30270 @: $(MAKE); $(unstage)
4fa63067
NN
30271 @r=`${PWD_COMMAND}`; export r; \
30272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30273 $(HOST_EXPORTS) \
a90ef4bf 30274 (cd $(HOST_SUBDIR)/utils && \
b3676d82 30275 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30276 $(TARGET-utils))
30277@endif utils
2a4cbe27 30278
a7254363 30279
d545f33b
PB
30280
30281
a90ef4bf
JM
30282.PHONY: check-utils maybe-check-utils
30283maybe-check-utils:
30284@if utils
30285maybe-check-utils: check-utils
2a4cbe27 30286
a90ef4bf 30287check-utils:
2a4cbe27 30288
a90ef4bf 30289@endif utils
2a4cbe27 30290
a90ef4bf
JM
30291.PHONY: install-utils maybe-install-utils
30292maybe-install-utils:
30293@if utils
30294maybe-install-utils: install-utils
2a4cbe27 30295
a90ef4bf 30296install-utils: installdirs
0aed8855 30297 @: $(MAKE); $(unstage)
4fa63067 30298 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30300 $(HOST_EXPORTS) \
a90ef4bf 30301 (cd $(HOST_SUBDIR)/utils && \
2da12f12 30302 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 30303
a90ef4bf 30304@endif utils
2a4cbe27 30305
a90ef4bf
JM
30306.PHONY: install-strip-utils maybe-install-strip-utils
30307maybe-install-strip-utils:
30308@if utils
30309maybe-install-strip-utils: install-strip-utils
9b980aa1 30310
a90ef4bf 30311install-strip-utils: installdirs
9b980aa1
RW
30312 @: $(MAKE); $(unstage)
30313 @r=`${PWD_COMMAND}`; export r; \
30314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30315 $(HOST_EXPORTS) \
a90ef4bf 30316 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
30317 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30318
a90ef4bf 30319@endif utils
9b980aa1 30320
56a8fe78 30321# Other targets (info, dvi, pdf, etc.)
2a4cbe27 30322
a90ef4bf
JM
30323.PHONY: maybe-info-utils info-utils
30324maybe-info-utils:
30325@if utils
30326maybe-info-utils: info-utils
4fa63067 30327
a90ef4bf
JM
30328info-utils: \
30329 configure-utils
0aed8855 30330 @: $(MAKE); $(unstage)
a90ef4bf 30331 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30332 r=`${PWD_COMMAND}`; export r; \
30333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30334 $(HOST_EXPORTS) \
b813574b 30335 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30337 done; \
22121df0 30338 echo "Doing info in utils"; \
a90ef4bf 30339 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30342 "RANLIB=$${RANLIB}" \
0c24b341 30343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30344 info) \
2a4cbe27
NN
30345 || exit 1
30346
a90ef4bf 30347@endif utils
2a4cbe27 30348
a90ef4bf
JM
30349.PHONY: maybe-dvi-utils dvi-utils
30350maybe-dvi-utils:
30351@if utils
30352maybe-dvi-utils: dvi-utils
2a4cbe27 30353
a90ef4bf
JM
30354dvi-utils: \
30355 configure-utils
0aed8855 30356 @: $(MAKE); $(unstage)
a90ef4bf 30357 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30358 r=`${PWD_COMMAND}`; export r; \
30359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30360 $(HOST_EXPORTS) \
b813574b 30361 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30363 done; \
22121df0 30364 echo "Doing dvi in utils"; \
a90ef4bf 30365 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30368 "RANLIB=$${RANLIB}" \
0c24b341 30369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30370 dvi) \
2a4cbe27
NN
30371 || exit 1
30372
a90ef4bf 30373@endif utils
2a4cbe27 30374
a90ef4bf
JM
30375.PHONY: maybe-pdf-utils pdf-utils
30376maybe-pdf-utils:
30377@if utils
30378maybe-pdf-utils: pdf-utils
56a8fe78 30379
a90ef4bf
JM
30380pdf-utils: \
30381 configure-utils
56a8fe78 30382 @: $(MAKE); $(unstage)
a90ef4bf 30383 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
30384 r=`${PWD_COMMAND}`; export r; \
30385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30386 $(HOST_EXPORTS) \
30387 for flag in $(EXTRA_HOST_FLAGS) ; do \
30388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30389 done; \
22121df0 30390 echo "Doing pdf in utils"; \
a90ef4bf 30391 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
30392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30394 "RANLIB=$${RANLIB}" \
0c24b341 30395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30396 pdf) \
30397 || exit 1
30398
a90ef4bf 30399@endif utils
56a8fe78 30400
a90ef4bf
JM
30401.PHONY: maybe-html-utils html-utils
30402maybe-html-utils:
30403@if utils
30404maybe-html-utils: html-utils
6d389afc 30405
a90ef4bf
JM
30406html-utils: \
30407 configure-utils
0aed8855 30408 @: $(MAKE); $(unstage)
a90ef4bf 30409 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
30410 r=`${PWD_COMMAND}`; export r; \
30411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30412 $(HOST_EXPORTS) \
30413 for flag in $(EXTRA_HOST_FLAGS) ; do \
30414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30415 done; \
22121df0 30416 echo "Doing html in utils"; \
a90ef4bf 30417 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
30418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30420 "RANLIB=$${RANLIB}" \
0c24b341 30421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30422 html) \
30423 || exit 1
30424
a90ef4bf 30425@endif utils
6d389afc 30426
a90ef4bf
JM
30427.PHONY: maybe-TAGS-utils TAGS-utils
30428maybe-TAGS-utils:
30429@if utils
30430maybe-TAGS-utils: TAGS-utils
2a4cbe27 30431
a90ef4bf
JM
30432TAGS-utils: \
30433 configure-utils
0aed8855 30434 @: $(MAKE); $(unstage)
a90ef4bf 30435 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30436 r=`${PWD_COMMAND}`; export r; \
30437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30438 $(HOST_EXPORTS) \
b813574b 30439 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30441 done; \
22121df0 30442 echo "Doing TAGS in utils"; \
a90ef4bf 30443 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30446 "RANLIB=$${RANLIB}" \
0c24b341 30447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30448 TAGS) \
2a4cbe27
NN
30449 || exit 1
30450
a90ef4bf 30451@endif utils
2a4cbe27 30452
a90ef4bf
JM
30453.PHONY: maybe-install-info-utils install-info-utils
30454maybe-install-info-utils:
30455@if utils
30456maybe-install-info-utils: install-info-utils
2a4cbe27 30457
a90ef4bf
JM
30458install-info-utils: \
30459 configure-utils \
30460 info-utils
0aed8855 30461 @: $(MAKE); $(unstage)
a90ef4bf 30462 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30463 r=`${PWD_COMMAND}`; export r; \
30464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30465 $(HOST_EXPORTS) \
b813574b 30466 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30468 done; \
22121df0 30469 echo "Doing install-info in utils"; \
a90ef4bf 30470 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30473 "RANLIB=$${RANLIB}" \
0c24b341 30474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30475 install-info) \
2a4cbe27
NN
30476 || exit 1
30477
a90ef4bf 30478@endif utils
2a4cbe27 30479
a90ef4bf
JM
30480.PHONY: maybe-install-pdf-utils install-pdf-utils
30481maybe-install-pdf-utils:
30482@if utils
30483maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 30484
a90ef4bf
JM
30485install-pdf-utils: \
30486 configure-utils \
30487 pdf-utils
a3ca38d2 30488 @: $(MAKE); $(unstage)
a90ef4bf 30489 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
30490 r=`${PWD_COMMAND}`; export r; \
30491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30492 $(HOST_EXPORTS) \
30493 for flag in $(EXTRA_HOST_FLAGS) ; do \
30494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30495 done; \
22121df0 30496 echo "Doing install-pdf in utils"; \
a90ef4bf 30497 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
30498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30500 "RANLIB=$${RANLIB}" \
0c24b341 30501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30502 install-pdf) \
30503 || exit 1
30504
a90ef4bf 30505@endif utils
a3ca38d2 30506
a90ef4bf
JM
30507.PHONY: maybe-install-html-utils install-html-utils
30508maybe-install-html-utils:
30509@if utils
30510maybe-install-html-utils: install-html-utils
108a6f8e 30511
a90ef4bf
JM
30512install-html-utils: \
30513 configure-utils \
30514 html-utils
108a6f8e 30515 @: $(MAKE); $(unstage)
a90ef4bf 30516 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
30517 r=`${PWD_COMMAND}`; export r; \
30518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30519 $(HOST_EXPORTS) \
30520 for flag in $(EXTRA_HOST_FLAGS) ; do \
30521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30522 done; \
22121df0 30523 echo "Doing install-html in utils"; \
a90ef4bf 30524 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
30525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30527 "RANLIB=$${RANLIB}" \
0c24b341 30528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30529 install-html) \
30530 || exit 1
30531
a90ef4bf 30532@endif utils
108a6f8e 30533
a90ef4bf
JM
30534.PHONY: maybe-installcheck-utils installcheck-utils
30535maybe-installcheck-utils:
30536@if utils
30537maybe-installcheck-utils: installcheck-utils
2a4cbe27 30538
a90ef4bf
JM
30539installcheck-utils: \
30540 configure-utils
0aed8855 30541 @: $(MAKE); $(unstage)
a90ef4bf 30542 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30543 r=`${PWD_COMMAND}`; export r; \
30544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30545 $(HOST_EXPORTS) \
b813574b 30546 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30548 done; \
22121df0 30549 echo "Doing installcheck in utils"; \
a90ef4bf 30550 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30553 "RANLIB=$${RANLIB}" \
0c24b341 30554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30555 installcheck) \
2a4cbe27
NN
30556 || exit 1
30557
a90ef4bf 30558@endif utils
2a4cbe27 30559
a90ef4bf
JM
30560.PHONY: maybe-mostlyclean-utils mostlyclean-utils
30561maybe-mostlyclean-utils:
30562@if utils
30563maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 30564
a90ef4bf 30565mostlyclean-utils:
0aed8855 30566 @: $(MAKE); $(unstage)
a90ef4bf 30567 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30568 r=`${PWD_COMMAND}`; export r; \
30569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30570 $(HOST_EXPORTS) \
b813574b 30571 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30573 done; \
22121df0 30574 echo "Doing mostlyclean in utils"; \
a90ef4bf 30575 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30578 "RANLIB=$${RANLIB}" \
0c24b341 30579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30580 mostlyclean) \
2a4cbe27
NN
30581 || exit 1
30582
a90ef4bf 30583@endif utils
2a4cbe27 30584
a90ef4bf
JM
30585.PHONY: maybe-clean-utils clean-utils
30586maybe-clean-utils:
30587@if utils
30588maybe-clean-utils: clean-utils
2a4cbe27 30589
a90ef4bf 30590clean-utils:
0aed8855 30591 @: $(MAKE); $(unstage)
a90ef4bf 30592 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30593 r=`${PWD_COMMAND}`; export r; \
30594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30595 $(HOST_EXPORTS) \
b813574b 30596 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30598 done; \
22121df0 30599 echo "Doing clean in utils"; \
a90ef4bf 30600 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30603 "RANLIB=$${RANLIB}" \
0c24b341 30604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30605 clean) \
2a4cbe27
NN
30606 || exit 1
30607
a90ef4bf 30608@endif utils
2a4cbe27 30609
a90ef4bf
JM
30610.PHONY: maybe-distclean-utils distclean-utils
30611maybe-distclean-utils:
30612@if utils
30613maybe-distclean-utils: distclean-utils
2a4cbe27 30614
a90ef4bf 30615distclean-utils:
0aed8855 30616 @: $(MAKE); $(unstage)
a90ef4bf 30617 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30618 r=`${PWD_COMMAND}`; export r; \
30619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30620 $(HOST_EXPORTS) \
b813574b 30621 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30623 done; \
22121df0 30624 echo "Doing distclean in utils"; \
a90ef4bf 30625 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30628 "RANLIB=$${RANLIB}" \
0c24b341 30629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30630 distclean) \
2a4cbe27
NN
30631 || exit 1
30632
a90ef4bf 30633@endif utils
2a4cbe27 30634
a90ef4bf
JM
30635.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
30636maybe-maintainer-clean-utils:
30637@if utils
30638maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 30639
a90ef4bf 30640maintainer-clean-utils:
0aed8855 30641 @: $(MAKE); $(unstage)
a90ef4bf 30642 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30643 r=`${PWD_COMMAND}`; export r; \
30644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30645 $(HOST_EXPORTS) \
b813574b 30646 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30648 done; \
22121df0 30649 echo "Doing maintainer-clean in utils"; \
a90ef4bf 30650 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30653 "RANLIB=$${RANLIB}" \
0c24b341 30654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30655 maintainer-clean) \
2a4cbe27
NN
30656 || exit 1
30657
a90ef4bf 30658@endif utils
2a4cbe27 30659
2a4cbe27 30660
a7254363 30661
a90ef4bf
JM
30662.PHONY: configure-gnattools maybe-configure-gnattools
30663maybe-configure-gnattools:
4f0ef2d8 30664@if gcc-bootstrap
a90ef4bf 30665configure-gnattools: stage_current
4f0ef2d8 30666@endif gcc-bootstrap
a90ef4bf
JM
30667@if gnattools
30668maybe-configure-gnattools: configure-gnattools
30669configure-gnattools:
0aed8855 30670 @: $(MAKE); $(unstage)
c52c6897 30671 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30673 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
22121df0 30674 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools; \
1f53ca9a 30675 $(HOST_EXPORTS) \
a90ef4bf
JM
30676 echo Configuring in $(HOST_SUBDIR)/gnattools; \
30677 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 30678 case $(srcdir) in \
b00612cc 30679 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30680 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 30681 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30682 esac; \
1b6c0831
L
30683 module_srcdir=gnattools; \
30684 $(SHELL) \
30685 $$s/$$module_srcdir/configure \
30686 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30687 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30688 --target=${target_alias} \
2a4cbe27 30689 || exit 1
a90ef4bf 30690@endif gnattools
2a4cbe27 30691
a7254363
PB
30692
30693
d545f33b
PB
30694
30695
a90ef4bf
JM
30696.PHONY: all-gnattools maybe-all-gnattools
30697maybe-all-gnattools:
4f0ef2d8 30698@if gcc-bootstrap
a90ef4bf 30699all-gnattools: stage_current
4f0ef2d8 30700@endif gcc-bootstrap
a90ef4bf
JM
30701@if gnattools
30702TARGET-gnattools=all
30703maybe-all-gnattools: all-gnattools
30704all-gnattools: configure-gnattools
0aed8855 30705 @: $(MAKE); $(unstage)
4fa63067
NN
30706 @r=`${PWD_COMMAND}`; export r; \
30707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30708 $(HOST_EXPORTS) \
a90ef4bf 30709 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 30710 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30711 $(TARGET-gnattools))
30712@endif gnattools
4fa63067 30713
a7254363 30714
d545f33b
PB
30715
30716
a90ef4bf
JM
30717.PHONY: check-gnattools maybe-check-gnattools
30718maybe-check-gnattools:
30719@if gnattools
30720maybe-check-gnattools: check-gnattools
2a4cbe27 30721
a90ef4bf 30722check-gnattools:
0aed8855 30723 @: $(MAKE); $(unstage)
4fa63067
NN
30724 @r=`${PWD_COMMAND}`; export r; \
30725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 30726 $(HOST_EXPORTS) \
a90ef4bf 30727 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 30728 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 30729
a90ef4bf 30730@endif gnattools
4fa63067 30731
a90ef4bf
JM
30732.PHONY: install-gnattools maybe-install-gnattools
30733maybe-install-gnattools:
30734@if gnattools
30735maybe-install-gnattools: install-gnattools
4fa63067 30736
a90ef4bf 30737install-gnattools: installdirs
0aed8855 30738 @: $(MAKE); $(unstage)
4fa63067
NN
30739 @r=`${PWD_COMMAND}`; export r; \
30740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30741 $(HOST_EXPORTS) \
a90ef4bf 30742 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 30743 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 30744
a90ef4bf 30745@endif gnattools
4fa63067 30746
a90ef4bf
JM
30747.PHONY: install-strip-gnattools maybe-install-strip-gnattools
30748maybe-install-strip-gnattools:
30749@if gnattools
30750maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 30751
a90ef4bf 30752install-strip-gnattools: installdirs
9b980aa1
RW
30753 @: $(MAKE); $(unstage)
30754 @r=`${PWD_COMMAND}`; export r; \
30755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30756 $(HOST_EXPORTS) \
a90ef4bf 30757 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
30758 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30759
a90ef4bf 30760@endif gnattools
9b980aa1 30761
56a8fe78 30762# Other targets (info, dvi, pdf, etc.)
4fa63067 30763
a90ef4bf
JM
30764.PHONY: maybe-info-gnattools info-gnattools
30765maybe-info-gnattools:
30766@if gnattools
30767maybe-info-gnattools: info-gnattools
4fa63067 30768
a90ef4bf
JM
30769info-gnattools: \
30770 configure-gnattools
0aed8855 30771 @: $(MAKE); $(unstage)
a90ef4bf 30772 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30773 r=`${PWD_COMMAND}`; export r; \
30774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30775 $(HOST_EXPORTS) \
b813574b 30776 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30778 done; \
22121df0 30779 echo "Doing info in gnattools"; \
a90ef4bf 30780 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30783 "RANLIB=$${RANLIB}" \
0c24b341 30784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30785 info) \
2a4cbe27
NN
30786 || exit 1
30787
a90ef4bf 30788@endif gnattools
2a4cbe27 30789
a90ef4bf
JM
30790.PHONY: maybe-dvi-gnattools dvi-gnattools
30791maybe-dvi-gnattools:
30792@if gnattools
30793maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 30794
a90ef4bf
JM
30795dvi-gnattools: \
30796 configure-gnattools
0aed8855 30797 @: $(MAKE); $(unstage)
a90ef4bf 30798 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30799 r=`${PWD_COMMAND}`; export r; \
30800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30801 $(HOST_EXPORTS) \
b813574b 30802 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30804 done; \
22121df0 30805 echo "Doing dvi in gnattools"; \
a90ef4bf 30806 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30809 "RANLIB=$${RANLIB}" \
0c24b341 30810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30811 dvi) \
2a4cbe27
NN
30812 || exit 1
30813
a90ef4bf 30814@endif gnattools
2a4cbe27 30815
a90ef4bf
JM
30816.PHONY: maybe-pdf-gnattools pdf-gnattools
30817maybe-pdf-gnattools:
30818@if gnattools
30819maybe-pdf-gnattools: pdf-gnattools
56a8fe78 30820
a90ef4bf
JM
30821pdf-gnattools: \
30822 configure-gnattools
56a8fe78 30823 @: $(MAKE); $(unstage)
a90ef4bf 30824 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
30825 r=`${PWD_COMMAND}`; export r; \
30826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30827 $(HOST_EXPORTS) \
30828 for flag in $(EXTRA_HOST_FLAGS) ; do \
30829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30830 done; \
22121df0 30831 echo "Doing pdf in gnattools"; \
a90ef4bf 30832 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
30833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30835 "RANLIB=$${RANLIB}" \
0c24b341 30836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30837 pdf) \
30838 || exit 1
30839
a90ef4bf 30840@endif gnattools
56a8fe78 30841
a90ef4bf
JM
30842.PHONY: maybe-html-gnattools html-gnattools
30843maybe-html-gnattools:
30844@if gnattools
30845maybe-html-gnattools: html-gnattools
6d389afc 30846
a90ef4bf
JM
30847html-gnattools: \
30848 configure-gnattools
0aed8855 30849 @: $(MAKE); $(unstage)
a90ef4bf 30850 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
30851 r=`${PWD_COMMAND}`; export r; \
30852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30853 $(HOST_EXPORTS) \
30854 for flag in $(EXTRA_HOST_FLAGS) ; do \
30855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30856 done; \
22121df0 30857 echo "Doing html in gnattools"; \
a90ef4bf 30858 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
30859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30861 "RANLIB=$${RANLIB}" \
0c24b341 30862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30863 html) \
30864 || exit 1
30865
a90ef4bf 30866@endif gnattools
6d389afc 30867
a90ef4bf
JM
30868.PHONY: maybe-TAGS-gnattools TAGS-gnattools
30869maybe-TAGS-gnattools:
30870@if gnattools
30871maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 30872
a90ef4bf
JM
30873TAGS-gnattools: \
30874 configure-gnattools
0aed8855 30875 @: $(MAKE); $(unstage)
a90ef4bf 30876 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30877 r=`${PWD_COMMAND}`; export r; \
30878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30879 $(HOST_EXPORTS) \
b813574b 30880 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30882 done; \
22121df0 30883 echo "Doing TAGS in gnattools"; \
a90ef4bf 30884 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30887 "RANLIB=$${RANLIB}" \
0c24b341 30888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30889 TAGS) \
2a4cbe27
NN
30890 || exit 1
30891
a90ef4bf 30892@endif gnattools
2a4cbe27 30893
a90ef4bf
JM
30894.PHONY: maybe-install-info-gnattools install-info-gnattools
30895maybe-install-info-gnattools:
30896@if gnattools
30897maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 30898
a90ef4bf
JM
30899install-info-gnattools: \
30900 configure-gnattools \
30901 info-gnattools
0aed8855 30902 @: $(MAKE); $(unstage)
a90ef4bf 30903 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30904 r=`${PWD_COMMAND}`; export r; \
30905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30906 $(HOST_EXPORTS) \
b813574b 30907 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30909 done; \
22121df0 30910 echo "Doing install-info in gnattools"; \
a90ef4bf 30911 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30914 "RANLIB=$${RANLIB}" \
0c24b341 30915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30916 install-info) \
2a4cbe27
NN
30917 || exit 1
30918
a90ef4bf 30919@endif gnattools
2a4cbe27 30920
a90ef4bf
JM
30921.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
30922maybe-install-pdf-gnattools:
30923@if gnattools
30924maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 30925
a90ef4bf
JM
30926install-pdf-gnattools: \
30927 configure-gnattools \
30928 pdf-gnattools
a3ca38d2 30929 @: $(MAKE); $(unstage)
a90ef4bf 30930 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
30931 r=`${PWD_COMMAND}`; export r; \
30932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30933 $(HOST_EXPORTS) \
30934 for flag in $(EXTRA_HOST_FLAGS) ; do \
30935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30936 done; \
22121df0 30937 echo "Doing install-pdf in gnattools"; \
a90ef4bf 30938 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
30939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30941 "RANLIB=$${RANLIB}" \
0c24b341 30942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30943 install-pdf) \
30944 || exit 1
30945
a90ef4bf 30946@endif gnattools
a3ca38d2 30947
a90ef4bf
JM
30948.PHONY: maybe-install-html-gnattools install-html-gnattools
30949maybe-install-html-gnattools:
30950@if gnattools
30951maybe-install-html-gnattools: install-html-gnattools
108a6f8e 30952
a90ef4bf
JM
30953install-html-gnattools: \
30954 configure-gnattools \
30955 html-gnattools
108a6f8e 30956 @: $(MAKE); $(unstage)
a90ef4bf 30957 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
30958 r=`${PWD_COMMAND}`; export r; \
30959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30960 $(HOST_EXPORTS) \
30961 for flag in $(EXTRA_HOST_FLAGS) ; do \
30962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30963 done; \
22121df0 30964 echo "Doing install-html in gnattools"; \
a90ef4bf 30965 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
30966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30968 "RANLIB=$${RANLIB}" \
0c24b341 30969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30970 install-html) \
30971 || exit 1
30972
a90ef4bf 30973@endif gnattools
108a6f8e 30974
a90ef4bf
JM
30975.PHONY: maybe-installcheck-gnattools installcheck-gnattools
30976maybe-installcheck-gnattools:
30977@if gnattools
30978maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 30979
a90ef4bf
JM
30980installcheck-gnattools: \
30981 configure-gnattools
0aed8855 30982 @: $(MAKE); $(unstage)
a90ef4bf 30983 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
30984 r=`${PWD_COMMAND}`; export r; \
30985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30986 $(HOST_EXPORTS) \
b813574b 30987 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30989 done; \
22121df0 30990 echo "Doing installcheck in gnattools"; \
a90ef4bf 30991 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
30992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30994 "RANLIB=$${RANLIB}" \
0c24b341 30995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30996 installcheck) \
2a4cbe27
NN
30997 || exit 1
30998
a90ef4bf 30999@endif gnattools
2a4cbe27 31000
a90ef4bf
JM
31001.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
31002maybe-mostlyclean-gnattools:
31003@if gnattools
31004maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 31005
a90ef4bf 31006mostlyclean-gnattools:
0aed8855 31007 @: $(MAKE); $(unstage)
a90ef4bf 31008 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31009 r=`${PWD_COMMAND}`; export r; \
31010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31011 $(HOST_EXPORTS) \
b813574b 31012 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31014 done; \
22121df0 31015 echo "Doing mostlyclean in gnattools"; \
a90ef4bf 31016 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31019 "RANLIB=$${RANLIB}" \
0c24b341 31020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31021 mostlyclean) \
2a4cbe27
NN
31022 || exit 1
31023
a90ef4bf 31024@endif gnattools
2a4cbe27 31025
a90ef4bf
JM
31026.PHONY: maybe-clean-gnattools clean-gnattools
31027maybe-clean-gnattools:
31028@if gnattools
31029maybe-clean-gnattools: clean-gnattools
2a4cbe27 31030
a90ef4bf 31031clean-gnattools:
0aed8855 31032 @: $(MAKE); $(unstage)
a90ef4bf 31033 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31034 r=`${PWD_COMMAND}`; export r; \
31035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31036 $(HOST_EXPORTS) \
b813574b 31037 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31039 done; \
22121df0 31040 echo "Doing clean in gnattools"; \
a90ef4bf 31041 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31044 "RANLIB=$${RANLIB}" \
0c24b341 31045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31046 clean) \
2a4cbe27
NN
31047 || exit 1
31048
a90ef4bf 31049@endif gnattools
2a4cbe27 31050
a90ef4bf
JM
31051.PHONY: maybe-distclean-gnattools distclean-gnattools
31052maybe-distclean-gnattools:
31053@if gnattools
31054maybe-distclean-gnattools: distclean-gnattools
a2592b1b 31055
a90ef4bf 31056distclean-gnattools:
0aed8855 31057 @: $(MAKE); $(unstage)
a90ef4bf 31058 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
31059 r=`${PWD_COMMAND}`; export r; \
31060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31061 $(HOST_EXPORTS) \
b813574b 31062 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
31063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31064 done; \
22121df0 31065 echo "Doing distclean in gnattools"; \
a90ef4bf 31066 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
31067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31069 "RANLIB=$${RANLIB}" \
0c24b341 31070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31071 distclean) \
a2592b1b
DD
31072 || exit 1
31073
a90ef4bf 31074@endif gnattools
a2592b1b 31075
a90ef4bf
JM
31076.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
31077maybe-maintainer-clean-gnattools:
31078@if gnattools
31079maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 31080
a90ef4bf 31081maintainer-clean-gnattools:
0aed8855 31082 @: $(MAKE); $(unstage)
a90ef4bf 31083 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 31084 r=`${PWD_COMMAND}`; export r; \
b40e3958 31085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31086 $(HOST_EXPORTS) \
b813574b 31087 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
31088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31089 done; \
22121df0 31090 echo "Doing maintainer-clean in gnattools"; \
a90ef4bf 31091 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
31092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31094 "RANLIB=$${RANLIB}" \
0c24b341 31095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31096 maintainer-clean) \
4fa63067 31097 || exit 1
252b5132 31098
a90ef4bf 31099@endif gnattools
252b5132 31100
252b5132 31101
a7254363 31102
a90ef4bf
JM
31103.PHONY: configure-lto-plugin maybe-configure-lto-plugin
31104maybe-configure-lto-plugin:
4f0ef2d8 31105@if gcc-bootstrap
a90ef4bf 31106configure-lto-plugin: stage_current
4f0ef2d8 31107@endif gcc-bootstrap
a90ef4bf
JM
31108@if lto-plugin
31109maybe-configure-lto-plugin: configure-lto-plugin
31110configure-lto-plugin:
c52c6897 31111 @r=`${PWD_COMMAND}`; export r; \
b813574b 31112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31113 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
22121df0 31114 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
1f53ca9a 31115 $(HOST_EXPORTS) \
a90ef4bf
JM
31116 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
31117 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 31118 case $(srcdir) in \
b00612cc 31119 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31120 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 31121 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 31122 esac; \
1b6c0831
L
31123 module_srcdir=lto-plugin; \
31124 $(SHELL) \
31125 $$s/$$module_srcdir/configure \
31126 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31127 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31128 --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
4fa63067 31129 || exit 1
a90ef4bf 31130@endif lto-plugin
a7254363 31131
d545f33b
PB
31132
31133
a90ef4bf
JM
31134.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
31135maybe-configure-stage1-lto-plugin:
31136@if lto-plugin-bootstrap
31137maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
31138configure-stage1-lto-plugin:
31139 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31140 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
31141 @r=`${PWD_COMMAND}`; export r; \
31142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31143 TFLAGS="$(STAGE1_TFLAGS)"; \
31144 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
31145 $(HOST_EXPORTS) \
31146 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
31147 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
31148 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
31149 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin; \
31150 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31151 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31152 case $(srcdir) in \
31153 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31154 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31155 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31156 esac; \
1b6c0831
L
31157 module_srcdir=lto-plugin; \
31158 $(SHELL) $$s/$$module_srcdir/configure \
31159 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31160 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
31161 --target=${target_alias} \
31162 \
a90ef4bf 31163 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 31164 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31165@endif lto-plugin-bootstrap
252b5132 31166
a90ef4bf
JM
31167.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
31168maybe-configure-stage2-lto-plugin:
31169@if lto-plugin-bootstrap
31170maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
31171configure-stage2-lto-plugin:
31172 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31173 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
31174 @r=`${PWD_COMMAND}`; export r; \
31175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31176 TFLAGS="$(STAGE2_TFLAGS)"; \
31177 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 31178 $(HOST_EXPORTS) \
a90ef4bf
JM
31179 $(POSTSTAGE1_HOST_EXPORTS) \
31180 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
31181 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
31182 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31183 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin; \
31184 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31185 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31186 case $(srcdir) in \
31187 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31188 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31189 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31190 esac; \
1b6c0831
L
31191 module_srcdir=lto-plugin; \
31192 $(SHELL) $$s/$$module_srcdir/configure \
31193 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31194 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31195 --target=${target_alias} \
22121df0 31196 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31197 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 31198 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31199@endif lto-plugin-bootstrap
4fa63067 31200
a90ef4bf
JM
31201.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
31202maybe-configure-stage3-lto-plugin:
31203@if lto-plugin-bootstrap
31204maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
31205configure-stage3-lto-plugin:
31206 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31207 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
31208 @r=`${PWD_COMMAND}`; export r; \
31209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31210 TFLAGS="$(STAGE3_TFLAGS)"; \
31211 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31212 $(HOST_EXPORTS) \
a90ef4bf
JM
31213 $(POSTSTAGE1_HOST_EXPORTS) \
31214 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
31215 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
31216 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31217 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin; \
31218 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31219 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31220 case $(srcdir) in \
31221 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31222 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31223 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31224 esac; \
1b6c0831
L
31225 module_srcdir=lto-plugin; \
31226 $(SHELL) $$s/$$module_srcdir/configure \
31227 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31228 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31229 --target=${target_alias} \
22121df0 31230 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31231 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 31232 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31233@endif lto-plugin-bootstrap
9b980aa1 31234
a90ef4bf
JM
31235.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
31236maybe-configure-stage4-lto-plugin:
31237@if lto-plugin-bootstrap
31238maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
31239configure-stage4-lto-plugin:
31240 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31241 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
31242 @r=`${PWD_COMMAND}`; export r; \
31243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31244 TFLAGS="$(STAGE4_TFLAGS)"; \
31245 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 31246 $(HOST_EXPORTS) \
a90ef4bf
JM
31247 $(POSTSTAGE1_HOST_EXPORTS) \
31248 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
31249 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
31250 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31251 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin; \
31252 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31253 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31254 case $(srcdir) in \
31255 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31256 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31257 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31258 esac; \
1b6c0831
L
31259 module_srcdir=lto-plugin; \
31260 $(SHELL) $$s/$$module_srcdir/configure \
31261 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31262 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31263 --target=${target_alias} \
22121df0 31264 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31265 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 31266 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31267@endif lto-plugin-bootstrap
4fa63067 31268
a90ef4bf
JM
31269.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
31270maybe-configure-stageprofile-lto-plugin:
31271@if lto-plugin-bootstrap
31272maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31273configure-stageprofile-lto-plugin:
31274 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31275 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
31276 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31278 TFLAGS="$(STAGEprofile_TFLAGS)"; \
31279 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31280 $(HOST_EXPORTS) \
a90ef4bf
JM
31281 $(POSTSTAGE1_HOST_EXPORTS) \
31282 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
31283 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
31284 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31285 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin; \
31286 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31287 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31288 case $(srcdir) in \
31289 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31290 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31291 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31292 esac; \
1b6c0831
L
31293 module_srcdir=lto-plugin; \
31294 $(SHELL) $$s/$$module_srcdir/configure \
31295 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31296 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31297 --target=${target_alias} \
22121df0 31298 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31299 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 31300 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31301@endif lto-plugin-bootstrap
4fa63067 31302
a90ef4bf
JM
31303.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
31304maybe-configure-stagefeedback-lto-plugin:
31305@if lto-plugin-bootstrap
31306maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31307configure-stagefeedback-lto-plugin:
31308 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31309 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
31310 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31312 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
31313 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31314 $(HOST_EXPORTS) \
a90ef4bf
JM
31315 $(POSTSTAGE1_HOST_EXPORTS) \
31316 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
31317 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
31318 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31319 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin; \
31320 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31321 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31322 case $(srcdir) in \
31323 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31324 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31325 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31326 esac; \
1b6c0831
L
31327 module_srcdir=lto-plugin; \
31328 $(SHELL) $$s/$$module_srcdir/configure \
31329 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31330 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31331 --target=${target_alias} \
22121df0 31332 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31333 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 31334 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31335@endif lto-plugin-bootstrap
252b5132 31336
56a8fe78 31337
56a8fe78 31338
56a8fe78 31339
6d389afc 31340
a90ef4bf
JM
31341.PHONY: all-lto-plugin maybe-all-lto-plugin
31342maybe-all-lto-plugin:
31343@if gcc-bootstrap
31344all-lto-plugin: stage_current
31345@endif gcc-bootstrap
31346@if lto-plugin
31347TARGET-lto-plugin=all
31348maybe-all-lto-plugin: all-lto-plugin
31349all-lto-plugin: configure-lto-plugin
31350 @r=`${PWD_COMMAND}`; export r; \
6d389afc 31351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31352 $(HOST_EXPORTS) \
31353 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31354 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31355 $(TARGET-lto-plugin))
31356@endif lto-plugin
6d389afc 31357
6d389afc 31358
252b5132 31359
a90ef4bf
JM
31360.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
31361.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
31362maybe-all-stage1-lto-plugin:
31363maybe-clean-stage1-lto-plugin:
31364@if lto-plugin-bootstrap
31365maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
31366all-stage1: all-stage1-lto-plugin
31367TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
31368all-stage1-lto-plugin: configure-stage1-lto-plugin
31369 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31370 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31372 TFLAGS="$(STAGE1_TFLAGS)"; \
31373 $(HOST_EXPORTS) \
31374 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 31375 \
a90ef4bf
JM
31376 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31377 CFLAGS="$(STAGE1_CFLAGS)" \
31378 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
31379 LIBCFLAGS="$(LIBCFLAGS)" \
31380 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31381 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31382 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 31383 $(EXTRA_HOST_FLAGS) \
1b6c0831 31384 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 31385 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 31386 $(TARGET-stage1-lto-plugin)
3866be5d 31387
a90ef4bf
JM
31388maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
31389clean-stage1: clean-stage1-lto-plugin
31390clean-stage1-lto-plugin:
31391 @if [ $(current_stage) = stage1 ]; then \
31392 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31393 else \
31394 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
31395 $(MAKE) stage1-start; \
31396 fi; \
31397 cd $(HOST_SUBDIR)/lto-plugin && \
31398 $(MAKE) $(EXTRA_HOST_FLAGS) \
1b6c0831 31399 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31400@endif lto-plugin-bootstrap
3866be5d 31401
3866be5d 31402
a90ef4bf
JM
31403.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
31404.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
31405maybe-all-stage2-lto-plugin:
31406maybe-clean-stage2-lto-plugin:
31407@if lto-plugin-bootstrap
31408maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
31409all-stage2: all-stage2-lto-plugin
31410TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
31411all-stage2-lto-plugin: configure-stage2-lto-plugin
31412 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31413 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31415 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 31416 $(HOST_EXPORTS) \
a90ef4bf
JM
31417 $(POSTSTAGE1_HOST_EXPORTS) \
31418 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 31419 \
a90ef4bf
JM
31420 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31421 CFLAGS="$(STAGE2_CFLAGS)" \
31422 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
31423 LIBCFLAGS="$(STAGE2_CFLAGS)" \
31424 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31425 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31426 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31427 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 31428 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 31429 $(TARGET-stage2-lto-plugin)
3866be5d 31430
a90ef4bf
JM
31431maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
31432clean-stage2: clean-stage2-lto-plugin
31433clean-stage2-lto-plugin:
31434 @if [ $(current_stage) = stage2 ]; then \
31435 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31436 else \
31437 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
31438 $(MAKE) stage2-start; \
31439 fi; \
31440 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31441 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31442@endif lto-plugin-bootstrap
3866be5d 31443
a3ca38d2 31444
a90ef4bf
JM
31445.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
31446.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
31447maybe-all-stage3-lto-plugin:
31448maybe-clean-stage3-lto-plugin:
31449@if lto-plugin-bootstrap
31450maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
31451all-stage3: all-stage3-lto-plugin
31452TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
31453all-stage3-lto-plugin: configure-stage3-lto-plugin
31454 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31455 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 31456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31457 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 31458 $(HOST_EXPORTS) \
a90ef4bf
JM
31459 $(POSTSTAGE1_HOST_EXPORTS) \
31460 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 31461 \
a90ef4bf
JM
31462 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31463 CFLAGS="$(STAGE3_CFLAGS)" \
31464 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
31465 LIBCFLAGS="$(STAGE3_CFLAGS)" \
31466 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31467 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31468 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31469 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 31470 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 31471 $(TARGET-stage3-lto-plugin)
a3ca38d2 31472
a90ef4bf
JM
31473maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
31474clean-stage3: clean-stage3-lto-plugin
31475clean-stage3-lto-plugin:
31476 @if [ $(current_stage) = stage3 ]; then \
31477 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31478 else \
31479 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
31480 $(MAKE) stage3-start; \
31481 fi; \
31482 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31483 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31484@endif lto-plugin-bootstrap
a3ca38d2 31485
108a6f8e 31486
a90ef4bf
JM
31487.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
31488.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
31489maybe-all-stage4-lto-plugin:
31490maybe-clean-stage4-lto-plugin:
31491@if lto-plugin-bootstrap
31492maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
31493all-stage4: all-stage4-lto-plugin
31494TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
31495all-stage4-lto-plugin: configure-stage4-lto-plugin
31496 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31497 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 31498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31499 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 31500 $(HOST_EXPORTS) \
a90ef4bf
JM
31501 $(POSTSTAGE1_HOST_EXPORTS) \
31502 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 31503 \
a90ef4bf
JM
31504 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31505 CFLAGS="$(STAGE4_CFLAGS)" \
31506 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
31507 LIBCFLAGS="$(STAGE4_CFLAGS)" \
31508 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31509 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31510 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31511 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 31512 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 31513 $(TARGET-stage4-lto-plugin)
108a6f8e 31514
a90ef4bf
JM
31515maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
31516clean-stage4: clean-stage4-lto-plugin
31517clean-stage4-lto-plugin:
31518 @if [ $(current_stage) = stage4 ]; then \
31519 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31520 else \
31521 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
31522 $(MAKE) stage4-start; \
31523 fi; \
31524 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31525 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31526@endif lto-plugin-bootstrap
4fa63067 31527
4fa63067 31528
a90ef4bf
JM
31529.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
31530.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
31531maybe-all-stageprofile-lto-plugin:
31532maybe-clean-stageprofile-lto-plugin:
31533@if lto-plugin-bootstrap
31534maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
31535all-stageprofile: all-stageprofile-lto-plugin
31536TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
31537all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31538 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31539 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31541 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 31542 $(HOST_EXPORTS) \
a90ef4bf
JM
31543 $(POSTSTAGE1_HOST_EXPORTS) \
31544 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 31545 \
a90ef4bf
JM
31546 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31547 CFLAGS="$(STAGEprofile_CFLAGS)" \
31548 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
31549 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
31550 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31551 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31552 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31553 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 31554 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 31555 $(TARGET-stageprofile-lto-plugin)
4fa63067 31556
a90ef4bf
JM
31557maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
31558clean-stageprofile: clean-stageprofile-lto-plugin
31559clean-stageprofile-lto-plugin:
31560 @if [ $(current_stage) = stageprofile ]; then \
31561 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31562 else \
31563 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
31564 $(MAKE) stageprofile-start; \
31565 fi; \
31566 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31567 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31568@endif lto-plugin-bootstrap
4fa63067 31569
4fa63067 31570
a90ef4bf
JM
31571.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
31572.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
31573maybe-all-stagefeedback-lto-plugin:
31574maybe-clean-stagefeedback-lto-plugin:
31575@if lto-plugin-bootstrap
31576maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
31577all-stagefeedback: all-stagefeedback-lto-plugin
31578TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
31579all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31580 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31581 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31583 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 31584 $(HOST_EXPORTS) \
a90ef4bf
JM
31585 $(POSTSTAGE1_HOST_EXPORTS) \
31586 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 31587 \
a90ef4bf
JM
31588 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31589 CFLAGS="$(STAGEfeedback_CFLAGS)" \
31590 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
31591 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
31592 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31593 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31594 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31595 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 31596 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 31597 $(TARGET-stagefeedback-lto-plugin)
3866be5d 31598
a90ef4bf
JM
31599maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
31600clean-stagefeedback: clean-stagefeedback-lto-plugin
31601clean-stagefeedback-lto-plugin:
31602 @if [ $(current_stage) = stagefeedback ]; then \
31603 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31604 else \
31605 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
31606 $(MAKE) stagefeedback-start; \
31607 fi; \
31608 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31609 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31610@endif lto-plugin-bootstrap
a7254363 31611
e2b9e2dc 31612
a7254363
PB
31613
31614
d545f33b 31615
a90ef4bf
JM
31616.PHONY: check-lto-plugin maybe-check-lto-plugin
31617maybe-check-lto-plugin:
31618@if lto-plugin
31619maybe-check-lto-plugin: check-lto-plugin
d545f33b 31620
a90ef4bf 31621check-lto-plugin:
0aed8855 31622 @: $(MAKE); $(unstage)
b40e3958
L
31623 @r=`${PWD_COMMAND}`; export r; \
31624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31625 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 31626 (cd $(HOST_SUBDIR)/lto-plugin && \
f91ca6bc 31627 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
3866be5d 31628
a90ef4bf 31629@endif lto-plugin
3866be5d 31630
a90ef4bf
JM
31631.PHONY: install-lto-plugin maybe-install-lto-plugin
31632maybe-install-lto-plugin:
31633@if lto-plugin
31634maybe-install-lto-plugin: install-lto-plugin
4fa63067 31635
a90ef4bf 31636install-lto-plugin: installdirs
0aed8855 31637 @: $(MAKE); $(unstage)
4fa63067
NN
31638 @r=`${PWD_COMMAND}`; export r; \
31639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31640 $(HOST_EXPORTS) \
a90ef4bf 31641 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31642 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
4fa63067 31643
a90ef4bf 31644@endif lto-plugin
4fa63067 31645
a90ef4bf
JM
31646.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
31647maybe-install-strip-lto-plugin:
31648@if lto-plugin
31649maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 31650
a90ef4bf 31651install-strip-lto-plugin: installdirs
9b980aa1
RW
31652 @: $(MAKE); $(unstage)
31653 @r=`${PWD_COMMAND}`; export r; \
31654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31655 $(HOST_EXPORTS) \
a90ef4bf 31656 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31657 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
9b980aa1 31658
a90ef4bf 31659@endif lto-plugin
9b980aa1 31660
56a8fe78 31661# Other targets (info, dvi, pdf, etc.)
4fa63067 31662
a90ef4bf
JM
31663.PHONY: maybe-info-lto-plugin info-lto-plugin
31664maybe-info-lto-plugin:
31665@if lto-plugin
31666maybe-info-lto-plugin: info-lto-plugin
4fa63067 31667
a90ef4bf
JM
31668info-lto-plugin: \
31669 configure-lto-plugin
31670 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31671 r=`${PWD_COMMAND}`; export r; \
31672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31673 $(HOST_EXPORTS) \
1b6c0831 31674 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31676 done; \
22121df0 31677 echo "Doing info in lto-plugin"; \
a90ef4bf 31678 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31681 "RANLIB=$${RANLIB}" \
0c24b341 31682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31683 info) \
4fa63067
NN
31684 || exit 1
31685
a90ef4bf 31686@endif lto-plugin
4fa63067 31687
a90ef4bf
JM
31688.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
31689maybe-dvi-lto-plugin:
31690@if lto-plugin
31691maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 31692
a90ef4bf
JM
31693dvi-lto-plugin: \
31694 configure-lto-plugin
31695 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31696 r=`${PWD_COMMAND}`; export r; \
31697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31698 $(HOST_EXPORTS) \
1b6c0831 31699 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31701 done; \
22121df0 31702 echo "Doing dvi in lto-plugin"; \
a90ef4bf 31703 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31706 "RANLIB=$${RANLIB}" \
0c24b341 31707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31708 dvi) \
4fa63067
NN
31709 || exit 1
31710
a90ef4bf 31711@endif lto-plugin
4fa63067 31712
a90ef4bf
JM
31713.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
31714maybe-pdf-lto-plugin:
31715@if lto-plugin
31716maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 31717
a90ef4bf
JM
31718pdf-lto-plugin: \
31719 configure-lto-plugin
31720 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
31721 r=`${PWD_COMMAND}`; export r; \
31722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31723 $(HOST_EXPORTS) \
1b6c0831 31724 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
56a8fe78
DD
31725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31726 done; \
22121df0 31727 echo "Doing pdf in lto-plugin"; \
a90ef4bf 31728 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
31729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31731 "RANLIB=$${RANLIB}" \
0c24b341 31732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31733 pdf) \
31734 || exit 1
31735
a90ef4bf 31736@endif lto-plugin
56a8fe78 31737
a90ef4bf
JM
31738.PHONY: maybe-html-lto-plugin html-lto-plugin
31739maybe-html-lto-plugin:
31740@if lto-plugin
31741maybe-html-lto-plugin: html-lto-plugin
6d389afc 31742
a90ef4bf
JM
31743html-lto-plugin: \
31744 configure-lto-plugin
31745 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
31746 r=`${PWD_COMMAND}`; export r; \
31747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 31748 $(HOST_EXPORTS) \
1b6c0831 31749 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
6d389afc
MS
31750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31751 done; \
22121df0 31752 echo "Doing html in lto-plugin"; \
a90ef4bf 31753 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
31754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31756 "RANLIB=$${RANLIB}" \
0c24b341 31757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31758 html) \
31759 || exit 1
31760
a90ef4bf 31761@endif lto-plugin
6d389afc 31762
a90ef4bf
JM
31763.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
31764maybe-TAGS-lto-plugin:
31765@if lto-plugin
31766maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 31767
a90ef4bf
JM
31768TAGS-lto-plugin: \
31769 configure-lto-plugin
31770 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31771 r=`${PWD_COMMAND}`; export r; \
31772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31773 $(HOST_EXPORTS) \
1b6c0831 31774 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31776 done; \
22121df0 31777 echo "Doing TAGS in lto-plugin"; \
a90ef4bf 31778 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31781 "RANLIB=$${RANLIB}" \
0c24b341 31782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31783 TAGS) \
4fa63067
NN
31784 || exit 1
31785
a90ef4bf 31786@endif lto-plugin
4fa63067 31787
a90ef4bf
JM
31788.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
31789maybe-install-info-lto-plugin:
31790@if lto-plugin
31791maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 31792
a90ef4bf
JM
31793install-info-lto-plugin: \
31794 configure-lto-plugin \
31795 info-lto-plugin
31796 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31797 r=`${PWD_COMMAND}`; export r; \
31798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31799 $(HOST_EXPORTS) \
1b6c0831 31800 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31802 done; \
22121df0 31803 echo "Doing install-info in lto-plugin"; \
a90ef4bf 31804 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31807 "RANLIB=$${RANLIB}" \
0c24b341 31808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31809 install-info) \
4fa63067
NN
31810 || exit 1
31811
a90ef4bf 31812@endif lto-plugin
4fa63067 31813
a90ef4bf
JM
31814.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
31815maybe-install-pdf-lto-plugin:
31816@if lto-plugin
31817maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 31818
a90ef4bf
JM
31819install-pdf-lto-plugin: \
31820 configure-lto-plugin \
31821 pdf-lto-plugin
31822 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
31823 r=`${PWD_COMMAND}`; export r; \
31824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31825 $(HOST_EXPORTS) \
1b6c0831 31826 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
a3ca38d2
DD
31827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31828 done; \
22121df0 31829 echo "Doing install-pdf in lto-plugin"; \
a90ef4bf 31830 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
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}" \
a3ca38d2
DD
31835 install-pdf) \
31836 || exit 1
31837
a90ef4bf 31838@endif lto-plugin
a3ca38d2 31839
a90ef4bf
JM
31840.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
31841maybe-install-html-lto-plugin:
31842@if lto-plugin
31843maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 31844
a90ef4bf
JM
31845install-html-lto-plugin: \
31846 configure-lto-plugin \
31847 html-lto-plugin
31848 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
31849 r=`${PWD_COMMAND}`; export r; \
31850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31851 $(HOST_EXPORTS) \
1b6c0831 31852 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
108a6f8e
CD
31853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31854 done; \
22121df0 31855 echo "Doing install-html in lto-plugin"; \
a90ef4bf 31856 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
31857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31859 "RANLIB=$${RANLIB}" \
0c24b341 31860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31861 install-html) \
31862 || exit 1
31863
a90ef4bf 31864@endif lto-plugin
108a6f8e 31865
a90ef4bf
JM
31866.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
31867maybe-installcheck-lto-plugin:
31868@if lto-plugin
31869maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 31870
a90ef4bf
JM
31871installcheck-lto-plugin: \
31872 configure-lto-plugin
31873 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31874 r=`${PWD_COMMAND}`; export r; \
31875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31876 $(HOST_EXPORTS) \
1b6c0831 31877 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31879 done; \
22121df0 31880 echo "Doing installcheck in lto-plugin"; \
a90ef4bf 31881 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31884 "RANLIB=$${RANLIB}" \
0c24b341 31885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31886 installcheck) \
4fa63067
NN
31887 || exit 1
31888
a90ef4bf 31889@endif lto-plugin
4fa63067 31890
a90ef4bf
JM
31891.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
31892maybe-mostlyclean-lto-plugin:
31893@if lto-plugin
31894maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 31895
a90ef4bf
JM
31896mostlyclean-lto-plugin:
31897 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31898 r=`${PWD_COMMAND}`; export r; \
31899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31900 $(HOST_EXPORTS) \
1b6c0831 31901 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31903 done; \
22121df0 31904 echo "Doing mostlyclean in lto-plugin"; \
a90ef4bf 31905 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31908 "RANLIB=$${RANLIB}" \
0c24b341 31909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31910 mostlyclean) \
4fa63067
NN
31911 || exit 1
31912
a90ef4bf 31913@endif lto-plugin
4fa63067 31914
a90ef4bf
JM
31915.PHONY: maybe-clean-lto-plugin clean-lto-plugin
31916maybe-clean-lto-plugin:
31917@if lto-plugin
31918maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 31919
a90ef4bf
JM
31920clean-lto-plugin:
31921 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31922 r=`${PWD_COMMAND}`; export r; \
31923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31924 $(HOST_EXPORTS) \
1b6c0831 31925 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31927 done; \
22121df0 31928 echo "Doing clean in lto-plugin"; \
a90ef4bf 31929 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31932 "RANLIB=$${RANLIB}" \
0c24b341 31933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31934 clean) \
4fa63067
NN
31935 || exit 1
31936
a90ef4bf 31937@endif lto-plugin
4fa63067 31938
a90ef4bf
JM
31939.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
31940maybe-distclean-lto-plugin:
31941@if lto-plugin
31942maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 31943
a90ef4bf
JM
31944distclean-lto-plugin:
31945 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31946 r=`${PWD_COMMAND}`; export r; \
31947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31948 $(HOST_EXPORTS) \
1b6c0831 31949 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31951 done; \
22121df0 31952 echo "Doing distclean in lto-plugin"; \
a90ef4bf 31953 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31956 "RANLIB=$${RANLIB}" \
0c24b341 31957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31958 distclean) \
4fa63067
NN
31959 || exit 1
31960
a90ef4bf 31961@endif lto-plugin
4fa63067 31962
a90ef4bf
JM
31963.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
31964maybe-maintainer-clean-lto-plugin:
31965@if lto-plugin
31966maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 31967
a90ef4bf
JM
31968maintainer-clean-lto-plugin:
31969 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
31970 r=`${PWD_COMMAND}`; export r; \
31971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31972 $(HOST_EXPORTS) \
1b6c0831 31973 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
31974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31975 done; \
22121df0 31976 echo "Doing maintainer-clean in lto-plugin"; \
a90ef4bf 31977 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
31978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31980 "RANLIB=$${RANLIB}" \
0c24b341 31981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31982 maintainer-clean) \
4fa63067 31983 || exit 1
16ae0395 31984
a90ef4bf
JM
31985@endif lto-plugin
31986
31987
31988
1b6c0831
L
31989.PHONY: configure-libcc1 maybe-configure-libcc1
31990maybe-configure-libcc1:
4f0ef2d8 31991@if gcc-bootstrap
1b6c0831 31992configure-libcc1: stage_current
4f0ef2d8 31993@endif gcc-bootstrap
1b6c0831
L
31994@if libcc1
31995maybe-configure-libcc1: configure-libcc1
31996configure-libcc1:
31997 @: $(MAKE); $(unstage)
c52c6897 31998 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 32000 test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
22121df0 32001 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1; \
1b6c0831
L
32002 $(HOST_EXPORTS) \
32003 echo Configuring in $(HOST_SUBDIR)/libcc1; \
32004 cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
e2b9e2dc 32005 case $(srcdir) in \
b00612cc 32006 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 32007 *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \
b00612cc 32008 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 32009 esac; \
1b6c0831
L
32010 module_srcdir=libcc1; \
32011 $(SHELL) \
32012 $$s/$$module_srcdir/configure \
32013 --srcdir=$${topdir}/$$module_srcdir \
32014 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32015 --target=${target_alias} --enable-shared \
e2b9e2dc 32016 || exit 1
1b6c0831 32017@endif libcc1
d545f33b
PB
32018
32019
3866be5d 32020
16ae0395 32021
9b980aa1 32022
1b6c0831
L
32023.PHONY: all-libcc1 maybe-all-libcc1
32024maybe-all-libcc1:
32025@if gcc-bootstrap
32026all-libcc1: stage_current
32027@endif gcc-bootstrap
32028@if libcc1
32029TARGET-libcc1=all
32030maybe-all-libcc1: all-libcc1
32031all-libcc1: configure-libcc1
32032 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32033 @r=`${PWD_COMMAND}`; export r; \
32034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32035 $(HOST_EXPORTS) \
32036 (cd $(HOST_SUBDIR)/libcc1 && \
32037 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
32038 $(TARGET-libcc1))
32039@endif libcc1
e8a5fa9c 32040
1b6c0831
L
32041
32042
32043
32044.PHONY: check-libcc1 maybe-check-libcc1
32045maybe-check-libcc1:
32046@if libcc1
32047maybe-check-libcc1: check-libcc1
32048
32049check-libcc1:
32050 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32051 @r=`${PWD_COMMAND}`; export r; \
32052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32053 $(HOST_EXPORTS) \
1b6c0831
L
32054 (cd $(HOST_SUBDIR)/libcc1 && \
32055 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 32056
1b6c0831
L
32057@endif libcc1
32058
32059.PHONY: install-libcc1 maybe-install-libcc1
32060maybe-install-libcc1:
32061@if libcc1
32062maybe-install-libcc1: install-libcc1
32063
32064install-libcc1: installdirs
32065 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32066 @r=`${PWD_COMMAND}`; export r; \
32067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32068 $(HOST_EXPORTS) \
32069 (cd $(HOST_SUBDIR)/libcc1 && \
32070 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 32071
1b6c0831
L
32072@endif libcc1
32073
32074.PHONY: install-strip-libcc1 maybe-install-strip-libcc1
32075maybe-install-strip-libcc1:
32076@if libcc1
32077maybe-install-strip-libcc1: install-strip-libcc1
32078
32079install-strip-libcc1: installdirs
32080 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32081 @r=`${PWD_COMMAND}`; export r; \
32082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32083 $(HOST_EXPORTS) \
32084 (cd $(HOST_SUBDIR)/libcc1 && \
32085 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 32086
1b6c0831 32087@endif libcc1
e8a5fa9c 32088
1b6c0831 32089# Other targets (info, dvi, pdf, etc.)
d545f33b 32090
1b6c0831
L
32091.PHONY: maybe-info-libcc1 info-libcc1
32092maybe-info-libcc1:
32093@if libcc1
32094maybe-info-libcc1: info-libcc1
d545f33b 32095
1b6c0831
L
32096info-libcc1: \
32097 configure-libcc1
32098 @: $(MAKE); $(unstage)
32099 @[ -f ./libcc1/Makefile ] || exit 0; \
32100 r=`${PWD_COMMAND}`; export r; \
b40e3958 32101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32102 $(HOST_EXPORTS) \
32103 for flag in $(EXTRA_HOST_FLAGS) ; do \
32104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32105 done; \
22121df0 32106 echo "Doing info in libcc1"; \
1b6c0831
L
32107 (cd $(HOST_SUBDIR)/libcc1 && \
32108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32110 "RANLIB=$${RANLIB}" \
32111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32112 info) \
32113 || exit 1
3866be5d 32114
1b6c0831 32115@endif libcc1
a7254363 32116
1b6c0831
L
32117.PHONY: maybe-dvi-libcc1 dvi-libcc1
32118maybe-dvi-libcc1:
32119@if libcc1
32120maybe-dvi-libcc1: dvi-libcc1
a7254363 32121
1b6c0831
L
32122dvi-libcc1: \
32123 configure-libcc1
32124 @: $(MAKE); $(unstage)
32125 @[ -f ./libcc1/Makefile ] || exit 0; \
32126 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32128 $(HOST_EXPORTS) \
32129 for flag in $(EXTRA_HOST_FLAGS) ; do \
32130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32131 done; \
22121df0 32132 echo "Doing dvi in libcc1"; \
1b6c0831
L
32133 (cd $(HOST_SUBDIR)/libcc1 && \
32134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32136 "RANLIB=$${RANLIB}" \
32137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32138 dvi) \
32139 || exit 1
e8a5fa9c 32140
1b6c0831 32141@endif libcc1
e8a5fa9c 32142
1b6c0831
L
32143.PHONY: maybe-pdf-libcc1 pdf-libcc1
32144maybe-pdf-libcc1:
32145@if libcc1
32146maybe-pdf-libcc1: pdf-libcc1
e8a5fa9c 32147
1b6c0831
L
32148pdf-libcc1: \
32149 configure-libcc1
32150 @: $(MAKE); $(unstage)
32151 @[ -f ./libcc1/Makefile ] || exit 0; \
32152 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32154 $(HOST_EXPORTS) \
32155 for flag in $(EXTRA_HOST_FLAGS) ; do \
32156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32157 done; \
22121df0 32158 echo "Doing pdf in libcc1"; \
1b6c0831
L
32159 (cd $(HOST_SUBDIR)/libcc1 && \
32160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32162 "RANLIB=$${RANLIB}" \
32163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32164 pdf) \
32165 || exit 1
e8a5fa9c 32166
1b6c0831 32167@endif libcc1
e8a5fa9c 32168
1b6c0831
L
32169.PHONY: maybe-html-libcc1 html-libcc1
32170maybe-html-libcc1:
32171@if libcc1
32172maybe-html-libcc1: html-libcc1
e8a5fa9c 32173
1b6c0831
L
32174html-libcc1: \
32175 configure-libcc1
32176 @: $(MAKE); $(unstage)
32177 @[ -f ./libcc1/Makefile ] || exit 0; \
32178 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32180 $(HOST_EXPORTS) \
32181 for flag in $(EXTRA_HOST_FLAGS) ; do \
32182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32183 done; \
22121df0 32184 echo "Doing html in libcc1"; \
1b6c0831
L
32185 (cd $(HOST_SUBDIR)/libcc1 && \
32186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32188 "RANLIB=$${RANLIB}" \
32189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32190 html) \
32191 || exit 1
e8a5fa9c 32192
1b6c0831 32193@endif libcc1
e8a5fa9c 32194
1b6c0831
L
32195.PHONY: maybe-TAGS-libcc1 TAGS-libcc1
32196maybe-TAGS-libcc1:
32197@if libcc1
32198maybe-TAGS-libcc1: TAGS-libcc1
e8a5fa9c 32199
1b6c0831
L
32200TAGS-libcc1: \
32201 configure-libcc1
32202 @: $(MAKE); $(unstage)
32203 @[ -f ./libcc1/Makefile ] || exit 0; \
32204 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32206 $(HOST_EXPORTS) \
32207 for flag in $(EXTRA_HOST_FLAGS) ; do \
32208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32209 done; \
22121df0 32210 echo "Doing TAGS in libcc1"; \
1b6c0831
L
32211 (cd $(HOST_SUBDIR)/libcc1 && \
32212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32214 "RANLIB=$${RANLIB}" \
32215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32216 TAGS) \
32217 || exit 1
32218
32219@endif libcc1
32220
32221.PHONY: maybe-install-info-libcc1 install-info-libcc1
32222maybe-install-info-libcc1:
32223@if libcc1
32224maybe-install-info-libcc1: install-info-libcc1
32225
32226install-info-libcc1: \
32227 configure-libcc1 \
32228 info-libcc1
32229 @: $(MAKE); $(unstage)
32230 @[ -f ./libcc1/Makefile ] || exit 0; \
32231 r=`${PWD_COMMAND}`; export r; \
32232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32233 $(HOST_EXPORTS) \
32234 for flag in $(EXTRA_HOST_FLAGS) ; do \
32235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32236 done; \
22121df0 32237 echo "Doing install-info in libcc1"; \
1b6c0831
L
32238 (cd $(HOST_SUBDIR)/libcc1 && \
32239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32241 "RANLIB=$${RANLIB}" \
32242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32243 install-info) \
32244 || exit 1
32245
32246@endif libcc1
32247
32248.PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1
32249maybe-install-pdf-libcc1:
32250@if libcc1
32251maybe-install-pdf-libcc1: install-pdf-libcc1
32252
32253install-pdf-libcc1: \
32254 configure-libcc1 \
32255 pdf-libcc1
32256 @: $(MAKE); $(unstage)
32257 @[ -f ./libcc1/Makefile ] || exit 0; \
32258 r=`${PWD_COMMAND}`; export r; \
32259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32260 $(HOST_EXPORTS) \
32261 for flag in $(EXTRA_HOST_FLAGS) ; do \
32262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32263 done; \
22121df0 32264 echo "Doing install-pdf in libcc1"; \
1b6c0831
L
32265 (cd $(HOST_SUBDIR)/libcc1 && \
32266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32268 "RANLIB=$${RANLIB}" \
32269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32270 install-pdf) \
32271 || exit 1
32272
32273@endif libcc1
32274
32275.PHONY: maybe-install-html-libcc1 install-html-libcc1
32276maybe-install-html-libcc1:
32277@if libcc1
32278maybe-install-html-libcc1: install-html-libcc1
32279
32280install-html-libcc1: \
32281 configure-libcc1 \
32282 html-libcc1
32283 @: $(MAKE); $(unstage)
32284 @[ -f ./libcc1/Makefile ] || exit 0; \
32285 r=`${PWD_COMMAND}`; export r; \
32286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32287 $(HOST_EXPORTS) \
32288 for flag in $(EXTRA_HOST_FLAGS) ; do \
32289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32290 done; \
22121df0 32291 echo "Doing install-html in libcc1"; \
1b6c0831
L
32292 (cd $(HOST_SUBDIR)/libcc1 && \
32293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32295 "RANLIB=$${RANLIB}" \
32296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32297 install-html) \
32298 || exit 1
32299
32300@endif libcc1
32301
32302.PHONY: maybe-installcheck-libcc1 installcheck-libcc1
32303maybe-installcheck-libcc1:
32304@if libcc1
32305maybe-installcheck-libcc1: installcheck-libcc1
32306
32307installcheck-libcc1: \
32308 configure-libcc1
32309 @: $(MAKE); $(unstage)
32310 @[ -f ./libcc1/Makefile ] || exit 0; \
32311 r=`${PWD_COMMAND}`; export r; \
32312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32313 $(HOST_EXPORTS) \
32314 for flag in $(EXTRA_HOST_FLAGS) ; do \
32315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32316 done; \
22121df0 32317 echo "Doing installcheck in libcc1"; \
1b6c0831
L
32318 (cd $(HOST_SUBDIR)/libcc1 && \
32319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32321 "RANLIB=$${RANLIB}" \
32322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32323 installcheck) \
32324 || exit 1
32325
32326@endif libcc1
32327
32328.PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1
32329maybe-mostlyclean-libcc1:
32330@if libcc1
32331maybe-mostlyclean-libcc1: mostlyclean-libcc1
32332
32333mostlyclean-libcc1:
32334 @: $(MAKE); $(unstage)
32335 @[ -f ./libcc1/Makefile ] || exit 0; \
32336 r=`${PWD_COMMAND}`; export r; \
32337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32338 $(HOST_EXPORTS) \
32339 for flag in $(EXTRA_HOST_FLAGS) ; do \
32340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32341 done; \
22121df0 32342 echo "Doing mostlyclean in libcc1"; \
1b6c0831
L
32343 (cd $(HOST_SUBDIR)/libcc1 && \
32344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32346 "RANLIB=$${RANLIB}" \
32347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32348 mostlyclean) \
32349 || exit 1
32350
32351@endif libcc1
32352
32353.PHONY: maybe-clean-libcc1 clean-libcc1
32354maybe-clean-libcc1:
32355@if libcc1
32356maybe-clean-libcc1: clean-libcc1
32357
32358clean-libcc1:
32359 @: $(MAKE); $(unstage)
32360 @[ -f ./libcc1/Makefile ] || exit 0; \
32361 r=`${PWD_COMMAND}`; export r; \
32362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32363 $(HOST_EXPORTS) \
32364 for flag in $(EXTRA_HOST_FLAGS) ; do \
32365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32366 done; \
22121df0 32367 echo "Doing clean in libcc1"; \
1b6c0831
L
32368 (cd $(HOST_SUBDIR)/libcc1 && \
32369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32371 "RANLIB=$${RANLIB}" \
32372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32373 clean) \
32374 || exit 1
32375
32376@endif libcc1
32377
32378.PHONY: maybe-distclean-libcc1 distclean-libcc1
32379maybe-distclean-libcc1:
32380@if libcc1
32381maybe-distclean-libcc1: distclean-libcc1
32382
32383distclean-libcc1:
32384 @: $(MAKE); $(unstage)
32385 @[ -f ./libcc1/Makefile ] || exit 0; \
32386 r=`${PWD_COMMAND}`; export r; \
32387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32388 $(HOST_EXPORTS) \
32389 for flag in $(EXTRA_HOST_FLAGS) ; do \
32390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32391 done; \
22121df0 32392 echo "Doing distclean in libcc1"; \
1b6c0831
L
32393 (cd $(HOST_SUBDIR)/libcc1 && \
32394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32396 "RANLIB=$${RANLIB}" \
32397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32398 distclean) \
32399 || exit 1
32400
32401@endif libcc1
32402
32403.PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1
32404maybe-maintainer-clean-libcc1:
32405@if libcc1
32406maybe-maintainer-clean-libcc1: maintainer-clean-libcc1
32407
32408maintainer-clean-libcc1:
32409 @: $(MAKE); $(unstage)
32410 @[ -f ./libcc1/Makefile ] || exit 0; \
32411 r=`${PWD_COMMAND}`; export r; \
32412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32413 $(HOST_EXPORTS) \
32414 for flag in $(EXTRA_HOST_FLAGS) ; do \
32415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32416 done; \
22121df0 32417 echo "Doing maintainer-clean in libcc1"; \
1b6c0831
L
32418 (cd $(HOST_SUBDIR)/libcc1 && \
32419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32421 "RANLIB=$${RANLIB}" \
32422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32423 maintainer-clean) \
32424 || exit 1
32425
32426@endif libcc1
32427
32428
32429
32430.PHONY: configure-gotools maybe-configure-gotools
32431maybe-configure-gotools:
32432@if gcc-bootstrap
32433configure-gotools: stage_current
32434@endif gcc-bootstrap
32435@if gotools
32436maybe-configure-gotools: configure-gotools
32437configure-gotools:
32438 @: $(MAKE); $(unstage)
32439 @r=`${PWD_COMMAND}`; export r; \
32440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32441 test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \
22121df0 32442 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools; \
1b6c0831
L
32443 $(HOST_EXPORTS) \
32444 echo Configuring in $(HOST_SUBDIR)/gotools; \
32445 cd "$(HOST_SUBDIR)/gotools" || exit 1; \
32446 case $(srcdir) in \
32447 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32448 *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \
32449 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32450 esac; \
32451 module_srcdir=gotools; \
32452 $(SHELL) \
32453 $$s/$$module_srcdir/configure \
32454 --srcdir=$${topdir}/$$module_srcdir \
32455 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32456 --target=${target_alias} \
32457 || exit 1
32458@endif gotools
32459
32460
32461
32462
32463
32464.PHONY: all-gotools maybe-all-gotools
32465maybe-all-gotools:
32466@if gcc-bootstrap
32467all-gotools: stage_current
32468@endif gcc-bootstrap
32469@if gotools
32470TARGET-gotools=all
32471maybe-all-gotools: all-gotools
32472all-gotools: configure-gotools
32473 @: $(MAKE); $(unstage)
32474 @r=`${PWD_COMMAND}`; export r; \
32475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32476 $(HOST_EXPORTS) \
32477 (cd $(HOST_SUBDIR)/gotools && \
32478 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
32479 $(TARGET-gotools))
32480@endif gotools
32481
32482
32483
32484
32485.PHONY: check-gotools maybe-check-gotools
32486maybe-check-gotools:
32487@if gotools
32488maybe-check-gotools: check-gotools
32489
32490check-gotools:
32491 @: $(MAKE); $(unstage)
32492 @r=`${PWD_COMMAND}`; export r; \
32493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32494 $(HOST_EXPORTS) \
1b6c0831
L
32495 (cd $(HOST_SUBDIR)/gotools && \
32496 $(MAKE) $(FLAGS_TO_PASS) check)
32497
32498@endif gotools
32499
32500.PHONY: install-gotools maybe-install-gotools
32501maybe-install-gotools:
32502@if gotools
32503maybe-install-gotools: install-gotools
32504
32505install-gotools: installdirs
32506 @: $(MAKE); $(unstage)
32507 @r=`${PWD_COMMAND}`; export r; \
32508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32509 $(HOST_EXPORTS) \
32510 (cd $(HOST_SUBDIR)/gotools && \
32511 $(MAKE) $(FLAGS_TO_PASS) install)
32512
32513@endif gotools
32514
32515.PHONY: install-strip-gotools maybe-install-strip-gotools
32516maybe-install-strip-gotools:
32517@if gotools
32518maybe-install-strip-gotools: install-strip-gotools
32519
32520install-strip-gotools: installdirs
32521 @: $(MAKE); $(unstage)
32522 @r=`${PWD_COMMAND}`; export r; \
32523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32524 $(HOST_EXPORTS) \
32525 (cd $(HOST_SUBDIR)/gotools && \
32526 $(MAKE) $(FLAGS_TO_PASS) install-strip)
32527
32528@endif gotools
32529
32530# Other targets (info, dvi, pdf, etc.)
32531
32532.PHONY: maybe-info-gotools info-gotools
32533maybe-info-gotools:
32534@if gotools
32535maybe-info-gotools: info-gotools
32536
32537info-gotools: \
32538 configure-gotools
32539 @: $(MAKE); $(unstage)
32540 @[ -f ./gotools/Makefile ] || exit 0; \
32541 r=`${PWD_COMMAND}`; export r; \
32542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32543 $(HOST_EXPORTS) \
32544 for flag in $(EXTRA_HOST_FLAGS) ; do \
32545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32546 done; \
22121df0 32547 echo "Doing info in gotools"; \
1b6c0831
L
32548 (cd $(HOST_SUBDIR)/gotools && \
32549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32551 "RANLIB=$${RANLIB}" \
32552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32553 info) \
32554 || exit 1
32555
32556@endif gotools
32557
32558.PHONY: maybe-dvi-gotools dvi-gotools
32559maybe-dvi-gotools:
32560@if gotools
32561maybe-dvi-gotools: dvi-gotools
32562
32563dvi-gotools: \
32564 configure-gotools
32565 @: $(MAKE); $(unstage)
32566 @[ -f ./gotools/Makefile ] || exit 0; \
32567 r=`${PWD_COMMAND}`; export r; \
32568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32569 $(HOST_EXPORTS) \
32570 for flag in $(EXTRA_HOST_FLAGS) ; do \
32571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32572 done; \
22121df0 32573 echo "Doing dvi in gotools"; \
1b6c0831
L
32574 (cd $(HOST_SUBDIR)/gotools && \
32575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32577 "RANLIB=$${RANLIB}" \
32578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32579 dvi) \
32580 || exit 1
32581
32582@endif gotools
32583
32584.PHONY: maybe-pdf-gotools pdf-gotools
32585maybe-pdf-gotools:
32586@if gotools
32587maybe-pdf-gotools: pdf-gotools
32588
32589pdf-gotools: \
32590 configure-gotools
32591 @: $(MAKE); $(unstage)
32592 @[ -f ./gotools/Makefile ] || exit 0; \
32593 r=`${PWD_COMMAND}`; export r; \
32594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32595 $(HOST_EXPORTS) \
32596 for flag in $(EXTRA_HOST_FLAGS) ; do \
32597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32598 done; \
22121df0 32599 echo "Doing pdf in gotools"; \
1b6c0831
L
32600 (cd $(HOST_SUBDIR)/gotools && \
32601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32603 "RANLIB=$${RANLIB}" \
32604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32605 pdf) \
32606 || exit 1
32607
32608@endif gotools
32609
32610.PHONY: maybe-html-gotools html-gotools
32611maybe-html-gotools:
32612@if gotools
32613maybe-html-gotools: html-gotools
32614
32615html-gotools: \
32616 configure-gotools
32617 @: $(MAKE); $(unstage)
32618 @[ -f ./gotools/Makefile ] || exit 0; \
32619 r=`${PWD_COMMAND}`; export r; \
32620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32621 $(HOST_EXPORTS) \
32622 for flag in $(EXTRA_HOST_FLAGS) ; do \
32623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32624 done; \
22121df0 32625 echo "Doing html in gotools"; \
1b6c0831
L
32626 (cd $(HOST_SUBDIR)/gotools && \
32627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32629 "RANLIB=$${RANLIB}" \
32630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32631 html) \
32632 || exit 1
32633
32634@endif gotools
32635
32636.PHONY: maybe-TAGS-gotools TAGS-gotools
32637maybe-TAGS-gotools:
32638@if gotools
32639maybe-TAGS-gotools: TAGS-gotools
32640
32641TAGS-gotools: \
32642 configure-gotools
32643 @: $(MAKE); $(unstage)
32644 @[ -f ./gotools/Makefile ] || exit 0; \
32645 r=`${PWD_COMMAND}`; export r; \
32646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32647 $(HOST_EXPORTS) \
32648 for flag in $(EXTRA_HOST_FLAGS) ; do \
32649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32650 done; \
22121df0 32651 echo "Doing TAGS in gotools"; \
1b6c0831
L
32652 (cd $(HOST_SUBDIR)/gotools && \
32653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32655 "RANLIB=$${RANLIB}" \
32656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32657 TAGS) \
32658 || exit 1
32659
32660@endif gotools
32661
32662.PHONY: maybe-install-info-gotools install-info-gotools
32663maybe-install-info-gotools:
32664@if gotools
32665maybe-install-info-gotools: install-info-gotools
32666
32667install-info-gotools: \
32668 configure-gotools \
32669 info-gotools
32670 @: $(MAKE); $(unstage)
32671 @[ -f ./gotools/Makefile ] || exit 0; \
32672 r=`${PWD_COMMAND}`; export r; \
32673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32674 $(HOST_EXPORTS) \
32675 for flag in $(EXTRA_HOST_FLAGS) ; do \
32676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32677 done; \
22121df0 32678 echo "Doing install-info in gotools"; \
1b6c0831
L
32679 (cd $(HOST_SUBDIR)/gotools && \
32680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32682 "RANLIB=$${RANLIB}" \
32683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32684 install-info) \
32685 || exit 1
32686
32687@endif gotools
32688
32689.PHONY: maybe-install-pdf-gotools install-pdf-gotools
32690maybe-install-pdf-gotools:
32691@if gotools
32692maybe-install-pdf-gotools: install-pdf-gotools
32693
32694install-pdf-gotools: \
32695 configure-gotools \
32696 pdf-gotools
32697 @: $(MAKE); $(unstage)
32698 @[ -f ./gotools/Makefile ] || exit 0; \
32699 r=`${PWD_COMMAND}`; export r; \
32700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32701 $(HOST_EXPORTS) \
32702 for flag in $(EXTRA_HOST_FLAGS) ; do \
32703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32704 done; \
22121df0 32705 echo "Doing install-pdf in gotools"; \
1b6c0831
L
32706 (cd $(HOST_SUBDIR)/gotools && \
32707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32709 "RANLIB=$${RANLIB}" \
32710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32711 install-pdf) \
32712 || exit 1
32713
32714@endif gotools
32715
32716.PHONY: maybe-install-html-gotools install-html-gotools
32717maybe-install-html-gotools:
32718@if gotools
32719maybe-install-html-gotools: install-html-gotools
32720
32721install-html-gotools: \
32722 configure-gotools \
32723 html-gotools
32724 @: $(MAKE); $(unstage)
32725 @[ -f ./gotools/Makefile ] || exit 0; \
32726 r=`${PWD_COMMAND}`; export r; \
32727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32728 $(HOST_EXPORTS) \
32729 for flag in $(EXTRA_HOST_FLAGS) ; do \
32730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32731 done; \
22121df0 32732 echo "Doing install-html in gotools"; \
1b6c0831
L
32733 (cd $(HOST_SUBDIR)/gotools && \
32734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32736 "RANLIB=$${RANLIB}" \
32737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32738 install-html) \
32739 || exit 1
32740
32741@endif gotools
32742
32743.PHONY: maybe-installcheck-gotools installcheck-gotools
32744maybe-installcheck-gotools:
32745@if gotools
32746maybe-installcheck-gotools: installcheck-gotools
32747
32748installcheck-gotools: \
32749 configure-gotools
32750 @: $(MAKE); $(unstage)
32751 @[ -f ./gotools/Makefile ] || exit 0; \
32752 r=`${PWD_COMMAND}`; export r; \
32753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32754 $(HOST_EXPORTS) \
32755 for flag in $(EXTRA_HOST_FLAGS) ; do \
32756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32757 done; \
22121df0 32758 echo "Doing installcheck in gotools"; \
1b6c0831
L
32759 (cd $(HOST_SUBDIR)/gotools && \
32760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32762 "RANLIB=$${RANLIB}" \
32763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32764 installcheck) \
32765 || exit 1
32766
32767@endif gotools
32768
32769.PHONY: maybe-mostlyclean-gotools mostlyclean-gotools
32770maybe-mostlyclean-gotools:
32771@if gotools
32772maybe-mostlyclean-gotools: mostlyclean-gotools
32773
32774mostlyclean-gotools:
32775 @: $(MAKE); $(unstage)
32776 @[ -f ./gotools/Makefile ] || exit 0; \
32777 r=`${PWD_COMMAND}`; export r; \
32778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32779 $(HOST_EXPORTS) \
32780 for flag in $(EXTRA_HOST_FLAGS) ; do \
32781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32782 done; \
22121df0 32783 echo "Doing mostlyclean in gotools"; \
1b6c0831
L
32784 (cd $(HOST_SUBDIR)/gotools && \
32785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32787 "RANLIB=$${RANLIB}" \
32788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32789 mostlyclean) \
32790 || exit 1
32791
32792@endif gotools
32793
32794.PHONY: maybe-clean-gotools clean-gotools
32795maybe-clean-gotools:
32796@if gotools
32797maybe-clean-gotools: clean-gotools
32798
32799clean-gotools:
32800 @: $(MAKE); $(unstage)
32801 @[ -f ./gotools/Makefile ] || exit 0; \
32802 r=`${PWD_COMMAND}`; export r; \
32803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32804 $(HOST_EXPORTS) \
32805 for flag in $(EXTRA_HOST_FLAGS) ; do \
32806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32807 done; \
22121df0 32808 echo "Doing clean in gotools"; \
1b6c0831
L
32809 (cd $(HOST_SUBDIR)/gotools && \
32810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32812 "RANLIB=$${RANLIB}" \
32813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32814 clean) \
32815 || exit 1
32816
32817@endif gotools
32818
32819.PHONY: maybe-distclean-gotools distclean-gotools
32820maybe-distclean-gotools:
32821@if gotools
32822maybe-distclean-gotools: distclean-gotools
32823
32824distclean-gotools:
32825 @: $(MAKE); $(unstage)
32826 @[ -f ./gotools/Makefile ] || exit 0; \
32827 r=`${PWD_COMMAND}`; export r; \
32828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32829 $(HOST_EXPORTS) \
32830 for flag in $(EXTRA_HOST_FLAGS) ; do \
32831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32832 done; \
22121df0 32833 echo "Doing distclean in gotools"; \
1b6c0831
L
32834 (cd $(HOST_SUBDIR)/gotools && \
32835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32837 "RANLIB=$${RANLIB}" \
32838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32839 distclean) \
32840 || exit 1
32841
32842@endif gotools
32843
32844.PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools
32845maybe-maintainer-clean-gotools:
32846@if gotools
32847maybe-maintainer-clean-gotools: maintainer-clean-gotools
32848
32849maintainer-clean-gotools:
32850 @: $(MAKE); $(unstage)
32851 @[ -f ./gotools/Makefile ] || exit 0; \
32852 r=`${PWD_COMMAND}`; export r; \
32853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32854 $(HOST_EXPORTS) \
32855 for flag in $(EXTRA_HOST_FLAGS) ; do \
32856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32857 done; \
22121df0 32858 echo "Doing maintainer-clean in gotools"; \
1b6c0831
L
32859 (cd $(HOST_SUBDIR)/gotools && \
32860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32862 "RANLIB=$${RANLIB}" \
32863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32864 maintainer-clean) \
32865 || exit 1
32866
32867@endif gotools
32868
32869
32870
0e65dfba
NA
32871.PHONY: configure-libctf maybe-configure-libctf
32872maybe-configure-libctf:
32873@if gcc-bootstrap
32874configure-libctf: stage_current
32875@endif gcc-bootstrap
32876@if libctf
32877maybe-configure-libctf: configure-libctf
32878configure-libctf:
32879 @r=`${PWD_COMMAND}`; export r; \
32880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32881 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
32882 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
32883 $(HOST_EXPORTS) \
32884 echo Configuring in $(HOST_SUBDIR)/libctf; \
32885 cd "$(HOST_SUBDIR)/libctf" || exit 1; \
32886 case $(srcdir) in \
32887 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32888 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
32889 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32890 esac; \
32891 module_srcdir=libctf; \
32892 $(SHELL) \
32893 $$s/$$module_srcdir/configure \
32894 --srcdir=$${topdir}/$$module_srcdir \
32895 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32896 --target=${target_alias} \
32897 || exit 1
32898@endif libctf
32899
32900
32901
32902.PHONY: configure-stage1-libctf maybe-configure-stage1-libctf
32903maybe-configure-stage1-libctf:
32904@if libctf-bootstrap
32905maybe-configure-stage1-libctf: configure-stage1-libctf
32906configure-stage1-libctf:
32907 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32908 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
32909 @r=`${PWD_COMMAND}`; export r; \
32910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32911 TFLAGS="$(STAGE1_TFLAGS)"; \
32912 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
32913 $(HOST_EXPORTS) \
32914 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
32915 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
32916 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
32917 echo Configuring stage 1 in $(HOST_SUBDIR)/libctf; \
32918 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
32919 cd $(HOST_SUBDIR)/libctf || exit 1; \
32920 case $(srcdir) in \
32921 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32922 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
32923 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32924 esac; \
32925 module_srcdir=libctf; \
32926 $(SHELL) $$s/$$module_srcdir/configure \
32927 --srcdir=$${topdir}/$$module_srcdir \
32928 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32929 --target=${target_alias} \
32930 \
32931 $(STAGE1_CONFIGURE_FLAGS)
32932@endif libctf-bootstrap
32933
32934.PHONY: configure-stage2-libctf maybe-configure-stage2-libctf
32935maybe-configure-stage2-libctf:
32936@if libctf-bootstrap
32937maybe-configure-stage2-libctf: configure-stage2-libctf
32938configure-stage2-libctf:
32939 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32940 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
32941 @r=`${PWD_COMMAND}`; export r; \
32942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32943 TFLAGS="$(STAGE2_TFLAGS)"; \
32944 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
32945 $(HOST_EXPORTS) \
32946 $(POSTSTAGE1_HOST_EXPORTS) \
32947 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
32948 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
32949 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
32950 echo Configuring stage 2 in $(HOST_SUBDIR)/libctf; \
32951 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
32952 cd $(HOST_SUBDIR)/libctf || exit 1; \
32953 case $(srcdir) in \
32954 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32955 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
32956 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32957 esac; \
32958 module_srcdir=libctf; \
32959 $(SHELL) $$s/$$module_srcdir/configure \
32960 --srcdir=$${topdir}/$$module_srcdir \
32961 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32962 --target=${target_alias} \
32963 --with-build-libsubdir=$(HOST_SUBDIR) \
32964 $(STAGE2_CONFIGURE_FLAGS)
32965@endif libctf-bootstrap
32966
32967.PHONY: configure-stage3-libctf maybe-configure-stage3-libctf
32968maybe-configure-stage3-libctf:
32969@if libctf-bootstrap
32970maybe-configure-stage3-libctf: configure-stage3-libctf
32971configure-stage3-libctf:
32972 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32973 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
32974 @r=`${PWD_COMMAND}`; export r; \
32975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32976 TFLAGS="$(STAGE3_TFLAGS)"; \
32977 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
32978 $(HOST_EXPORTS) \
32979 $(POSTSTAGE1_HOST_EXPORTS) \
32980 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
32981 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
32982 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
32983 echo Configuring stage 3 in $(HOST_SUBDIR)/libctf; \
32984 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
32985 cd $(HOST_SUBDIR)/libctf || exit 1; \
32986 case $(srcdir) in \
32987 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32988 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
32989 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32990 esac; \
32991 module_srcdir=libctf; \
32992 $(SHELL) $$s/$$module_srcdir/configure \
32993 --srcdir=$${topdir}/$$module_srcdir \
32994 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32995 --target=${target_alias} \
32996 --with-build-libsubdir=$(HOST_SUBDIR) \
32997 $(STAGE3_CONFIGURE_FLAGS)
32998@endif libctf-bootstrap
32999
33000.PHONY: configure-stage4-libctf maybe-configure-stage4-libctf
33001maybe-configure-stage4-libctf:
33002@if libctf-bootstrap
33003maybe-configure-stage4-libctf: configure-stage4-libctf
33004configure-stage4-libctf:
33005 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33006 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33007 @r=`${PWD_COMMAND}`; export r; \
33008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33009 TFLAGS="$(STAGE4_TFLAGS)"; \
33010 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33011 $(HOST_EXPORTS) \
33012 $(POSTSTAGE1_HOST_EXPORTS) \
33013 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
33014 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
33015 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
33016 echo Configuring stage 4 in $(HOST_SUBDIR)/libctf; \
33017 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33018 cd $(HOST_SUBDIR)/libctf || exit 1; \
33019 case $(srcdir) in \
33020 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33021 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33022 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33023 esac; \
33024 module_srcdir=libctf; \
33025 $(SHELL) $$s/$$module_srcdir/configure \
33026 --srcdir=$${topdir}/$$module_srcdir \
33027 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33028 --target=${target_alias} \
33029 --with-build-libsubdir=$(HOST_SUBDIR) \
33030 $(STAGE4_CONFIGURE_FLAGS)
33031@endif libctf-bootstrap
33032
33033.PHONY: configure-stageprofile-libctf maybe-configure-stageprofile-libctf
33034maybe-configure-stageprofile-libctf:
33035@if libctf-bootstrap
33036maybe-configure-stageprofile-libctf: configure-stageprofile-libctf
33037configure-stageprofile-libctf:
33038 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33039 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33040 @r=`${PWD_COMMAND}`; export r; \
33041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33042 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33043 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33044 $(HOST_EXPORTS) \
33045 $(POSTSTAGE1_HOST_EXPORTS) \
33046 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
33047 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
33048 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
33049 echo Configuring stage profile in $(HOST_SUBDIR)/libctf; \
33050 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33051 cd $(HOST_SUBDIR)/libctf || exit 1; \
33052 case $(srcdir) in \
33053 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33054 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33055 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33056 esac; \
33057 module_srcdir=libctf; \
33058 $(SHELL) $$s/$$module_srcdir/configure \
33059 --srcdir=$${topdir}/$$module_srcdir \
33060 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33061 --target=${target_alias} \
33062 --with-build-libsubdir=$(HOST_SUBDIR) \
33063 $(STAGEprofile_CONFIGURE_FLAGS)
33064@endif libctf-bootstrap
33065
33066.PHONY: configure-stagefeedback-libctf maybe-configure-stagefeedback-libctf
33067maybe-configure-stagefeedback-libctf:
33068@if libctf-bootstrap
33069maybe-configure-stagefeedback-libctf: configure-stagefeedback-libctf
33070configure-stagefeedback-libctf:
33071 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33072 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33073 @r=`${PWD_COMMAND}`; export r; \
33074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33075 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33076 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33077 $(HOST_EXPORTS) \
33078 $(POSTSTAGE1_HOST_EXPORTS) \
33079 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
33080 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
33081 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
33082 echo Configuring stage feedback in $(HOST_SUBDIR)/libctf; \
33083 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33084 cd $(HOST_SUBDIR)/libctf || exit 1; \
33085 case $(srcdir) in \
33086 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33087 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33088 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33089 esac; \
33090 module_srcdir=libctf; \
33091 $(SHELL) $$s/$$module_srcdir/configure \
33092 --srcdir=$${topdir}/$$module_srcdir \
33093 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33094 --target=${target_alias} \
33095 --with-build-libsubdir=$(HOST_SUBDIR) \
33096 $(STAGEfeedback_CONFIGURE_FLAGS)
33097@endif libctf-bootstrap
33098
33099
33100
33101
33102
33103.PHONY: all-libctf maybe-all-libctf
33104maybe-all-libctf:
33105@if gcc-bootstrap
33106all-libctf: stage_current
33107@endif gcc-bootstrap
33108@if libctf
33109TARGET-libctf=all
33110maybe-all-libctf: all-libctf
33111all-libctf: configure-libctf
33112 @r=`${PWD_COMMAND}`; export r; \
33113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33114 $(HOST_EXPORTS) \
33115 (cd $(HOST_SUBDIR)/libctf && \
33116 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
33117 $(TARGET-libctf))
33118@endif libctf
33119
33120
33121
33122.PHONY: all-stage1-libctf maybe-all-stage1-libctf
33123.PHONY: clean-stage1-libctf maybe-clean-stage1-libctf
33124maybe-all-stage1-libctf:
33125maybe-clean-stage1-libctf:
33126@if libctf-bootstrap
33127maybe-all-stage1-libctf: all-stage1-libctf
33128all-stage1: all-stage1-libctf
33129TARGET-stage1-libctf = $(TARGET-libctf)
33130all-stage1-libctf: configure-stage1-libctf
33131 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33132 @r=`${PWD_COMMAND}`; export r; \
33133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33134 TFLAGS="$(STAGE1_TFLAGS)"; \
33135 $(HOST_EXPORTS) \
33136 cd $(HOST_SUBDIR)/libctf && \
33137 \
33138 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33139 CFLAGS="$(STAGE1_CFLAGS)" \
33140 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
33141 LIBCFLAGS="$(LIBCFLAGS)" \
33142 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33143 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33144 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33145 $(EXTRA_HOST_FLAGS) \
33146 $(STAGE1_FLAGS_TO_PASS) \
33147 TFLAGS="$(STAGE1_TFLAGS)" \
33148 $(TARGET-stage1-libctf)
33149
33150maybe-clean-stage1-libctf: clean-stage1-libctf
33151clean-stage1: clean-stage1-libctf
33152clean-stage1-libctf:
33153 @if [ $(current_stage) = stage1 ]; then \
33154 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33155 else \
33156 [ -f $(HOST_SUBDIR)/stage1-libctf/Makefile ] || exit 0; \
33157 $(MAKE) stage1-start; \
33158 fi; \
33159 cd $(HOST_SUBDIR)/libctf && \
33160 $(MAKE) $(EXTRA_HOST_FLAGS) \
33161 $(STAGE1_FLAGS_TO_PASS) clean
33162@endif libctf-bootstrap
33163
33164
33165.PHONY: all-stage2-libctf maybe-all-stage2-libctf
33166.PHONY: clean-stage2-libctf maybe-clean-stage2-libctf
33167maybe-all-stage2-libctf:
33168maybe-clean-stage2-libctf:
33169@if libctf-bootstrap
33170maybe-all-stage2-libctf: all-stage2-libctf
33171all-stage2: all-stage2-libctf
33172TARGET-stage2-libctf = $(TARGET-libctf)
33173all-stage2-libctf: configure-stage2-libctf
33174 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33175 @r=`${PWD_COMMAND}`; export r; \
33176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33177 TFLAGS="$(STAGE2_TFLAGS)"; \
33178 $(HOST_EXPORTS) \
33179 $(POSTSTAGE1_HOST_EXPORTS) \
33180 cd $(HOST_SUBDIR)/libctf && \
33181 \
33182 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33183 CFLAGS="$(STAGE2_CFLAGS)" \
33184 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
33185 LIBCFLAGS="$(STAGE2_CFLAGS)" \
33186 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33187 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33188 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33189 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33190 TFLAGS="$(STAGE2_TFLAGS)" \
33191 $(TARGET-stage2-libctf)
33192
33193maybe-clean-stage2-libctf: clean-stage2-libctf
33194clean-stage2: clean-stage2-libctf
33195clean-stage2-libctf:
33196 @if [ $(current_stage) = stage2 ]; then \
33197 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33198 else \
33199 [ -f $(HOST_SUBDIR)/stage2-libctf/Makefile ] || exit 0; \
33200 $(MAKE) stage2-start; \
33201 fi; \
33202 cd $(HOST_SUBDIR)/libctf && \
33203 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33204@endif libctf-bootstrap
33205
33206
33207.PHONY: all-stage3-libctf maybe-all-stage3-libctf
33208.PHONY: clean-stage3-libctf maybe-clean-stage3-libctf
33209maybe-all-stage3-libctf:
33210maybe-clean-stage3-libctf:
33211@if libctf-bootstrap
33212maybe-all-stage3-libctf: all-stage3-libctf
33213all-stage3: all-stage3-libctf
33214TARGET-stage3-libctf = $(TARGET-libctf)
33215all-stage3-libctf: configure-stage3-libctf
33216 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33217 @r=`${PWD_COMMAND}`; export r; \
33218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33219 TFLAGS="$(STAGE3_TFLAGS)"; \
33220 $(HOST_EXPORTS) \
33221 $(POSTSTAGE1_HOST_EXPORTS) \
33222 cd $(HOST_SUBDIR)/libctf && \
33223 \
33224 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33225 CFLAGS="$(STAGE3_CFLAGS)" \
33226 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
33227 LIBCFLAGS="$(STAGE3_CFLAGS)" \
33228 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33229 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33230 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33231 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33232 TFLAGS="$(STAGE3_TFLAGS)" \
33233 $(TARGET-stage3-libctf)
33234
33235maybe-clean-stage3-libctf: clean-stage3-libctf
33236clean-stage3: clean-stage3-libctf
33237clean-stage3-libctf:
33238 @if [ $(current_stage) = stage3 ]; then \
33239 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33240 else \
33241 [ -f $(HOST_SUBDIR)/stage3-libctf/Makefile ] || exit 0; \
33242 $(MAKE) stage3-start; \
33243 fi; \
33244 cd $(HOST_SUBDIR)/libctf && \
33245 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33246@endif libctf-bootstrap
33247
33248
33249.PHONY: all-stage4-libctf maybe-all-stage4-libctf
33250.PHONY: clean-stage4-libctf maybe-clean-stage4-libctf
33251maybe-all-stage4-libctf:
33252maybe-clean-stage4-libctf:
33253@if libctf-bootstrap
33254maybe-all-stage4-libctf: all-stage4-libctf
33255all-stage4: all-stage4-libctf
33256TARGET-stage4-libctf = $(TARGET-libctf)
33257all-stage4-libctf: configure-stage4-libctf
33258 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33259 @r=`${PWD_COMMAND}`; export r; \
33260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33261 TFLAGS="$(STAGE4_TFLAGS)"; \
33262 $(HOST_EXPORTS) \
33263 $(POSTSTAGE1_HOST_EXPORTS) \
33264 cd $(HOST_SUBDIR)/libctf && \
33265 \
33266 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33267 CFLAGS="$(STAGE4_CFLAGS)" \
33268 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
33269 LIBCFLAGS="$(STAGE4_CFLAGS)" \
33270 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33271 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33272 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33273 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33274 TFLAGS="$(STAGE4_TFLAGS)" \
33275 $(TARGET-stage4-libctf)
33276
33277maybe-clean-stage4-libctf: clean-stage4-libctf
33278clean-stage4: clean-stage4-libctf
33279clean-stage4-libctf:
33280 @if [ $(current_stage) = stage4 ]; then \
33281 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33282 else \
33283 [ -f $(HOST_SUBDIR)/stage4-libctf/Makefile ] || exit 0; \
33284 $(MAKE) stage4-start; \
33285 fi; \
33286 cd $(HOST_SUBDIR)/libctf && \
33287 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33288@endif libctf-bootstrap
33289
33290
33291.PHONY: all-stageprofile-libctf maybe-all-stageprofile-libctf
33292.PHONY: clean-stageprofile-libctf maybe-clean-stageprofile-libctf
33293maybe-all-stageprofile-libctf:
33294maybe-clean-stageprofile-libctf:
33295@if libctf-bootstrap
33296maybe-all-stageprofile-libctf: all-stageprofile-libctf
33297all-stageprofile: all-stageprofile-libctf
33298TARGET-stageprofile-libctf = $(TARGET-libctf)
33299all-stageprofile-libctf: configure-stageprofile-libctf
33300 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33301 @r=`${PWD_COMMAND}`; export r; \
33302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33303 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33304 $(HOST_EXPORTS) \
33305 $(POSTSTAGE1_HOST_EXPORTS) \
33306 cd $(HOST_SUBDIR)/libctf && \
33307 \
33308 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33309 CFLAGS="$(STAGEprofile_CFLAGS)" \
33310 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
33311 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
33312 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33313 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33314 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33315 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33316 TFLAGS="$(STAGEprofile_TFLAGS)" \
33317 $(TARGET-stageprofile-libctf)
33318
33319maybe-clean-stageprofile-libctf: clean-stageprofile-libctf
33320clean-stageprofile: clean-stageprofile-libctf
33321clean-stageprofile-libctf:
33322 @if [ $(current_stage) = stageprofile ]; then \
33323 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33324 else \
33325 [ -f $(HOST_SUBDIR)/stageprofile-libctf/Makefile ] || exit 0; \
33326 $(MAKE) stageprofile-start; \
33327 fi; \
33328 cd $(HOST_SUBDIR)/libctf && \
33329 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33330@endif libctf-bootstrap
33331
33332
33333.PHONY: all-stagefeedback-libctf maybe-all-stagefeedback-libctf
33334.PHONY: clean-stagefeedback-libctf maybe-clean-stagefeedback-libctf
33335maybe-all-stagefeedback-libctf:
33336maybe-clean-stagefeedback-libctf:
33337@if libctf-bootstrap
33338maybe-all-stagefeedback-libctf: all-stagefeedback-libctf
33339all-stagefeedback: all-stagefeedback-libctf
33340TARGET-stagefeedback-libctf = $(TARGET-libctf)
33341all-stagefeedback-libctf: configure-stagefeedback-libctf
33342 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33343 @r=`${PWD_COMMAND}`; export r; \
33344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33345 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33346 $(HOST_EXPORTS) \
33347 $(POSTSTAGE1_HOST_EXPORTS) \
33348 cd $(HOST_SUBDIR)/libctf && \
33349 \
33350 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33351 CFLAGS="$(STAGEfeedback_CFLAGS)" \
33352 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
33353 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
33354 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33355 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33356 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33357 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33358 TFLAGS="$(STAGEfeedback_TFLAGS)" \
33359 $(TARGET-stagefeedback-libctf)
33360
33361maybe-clean-stagefeedback-libctf: clean-stagefeedback-libctf
33362clean-stagefeedback: clean-stagefeedback-libctf
33363clean-stagefeedback-libctf:
33364 @if [ $(current_stage) = stagefeedback ]; then \
33365 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33366 else \
33367 [ -f $(HOST_SUBDIR)/stagefeedback-libctf/Makefile ] || exit 0; \
33368 $(MAKE) stagefeedback-start; \
33369 fi; \
33370 cd $(HOST_SUBDIR)/libctf && \
33371 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33372@endif libctf-bootstrap
33373
33374
33375
33376
33377
33378.PHONY: check-libctf maybe-check-libctf
33379maybe-check-libctf:
33380@if libctf
33381maybe-check-libctf: check-libctf
33382
33383check-libctf:
33384
33385@endif libctf
33386
33387.PHONY: install-libctf maybe-install-libctf
33388maybe-install-libctf:
33389@if libctf
33390maybe-install-libctf: install-libctf
33391
33392install-libctf:
33393
33394@endif libctf
33395
33396.PHONY: install-strip-libctf maybe-install-strip-libctf
33397maybe-install-strip-libctf:
33398@if libctf
33399maybe-install-strip-libctf: install-strip-libctf
33400
33401install-strip-libctf:
33402
33403@endif libctf
33404
33405# Other targets (info, dvi, pdf, etc.)
33406
33407.PHONY: maybe-info-libctf info-libctf
33408maybe-info-libctf:
33409@if libctf
33410maybe-info-libctf: info-libctf
33411
33412info-libctf: \
33413 configure-libctf
33414 @[ -f ./libctf/Makefile ] || exit 0; \
33415 r=`${PWD_COMMAND}`; export r; \
33416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33417 $(HOST_EXPORTS) \
33418 for flag in $(EXTRA_HOST_FLAGS) ; do \
33419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33420 done; \
33421 echo "Doing info in libctf"; \
33422 (cd $(HOST_SUBDIR)/libctf && \
33423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33425 "RANLIB=$${RANLIB}" \
33426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33427 info) \
33428 || exit 1
33429
33430@endif libctf
33431
33432.PHONY: maybe-dvi-libctf dvi-libctf
33433maybe-dvi-libctf:
33434@if libctf
33435maybe-dvi-libctf: dvi-libctf
33436
33437dvi-libctf: \
33438 configure-libctf
33439 @[ -f ./libctf/Makefile ] || exit 0; \
33440 r=`${PWD_COMMAND}`; export r; \
33441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33442 $(HOST_EXPORTS) \
33443 for flag in $(EXTRA_HOST_FLAGS) ; do \
33444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33445 done; \
33446 echo "Doing dvi in libctf"; \
33447 (cd $(HOST_SUBDIR)/libctf && \
33448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33450 "RANLIB=$${RANLIB}" \
33451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33452 dvi) \
33453 || exit 1
33454
33455@endif libctf
33456
33457.PHONY: maybe-pdf-libctf pdf-libctf
33458maybe-pdf-libctf:
33459@if libctf
33460maybe-pdf-libctf: pdf-libctf
33461
33462pdf-libctf: \
33463 configure-libctf
33464 @[ -f ./libctf/Makefile ] || exit 0; \
33465 r=`${PWD_COMMAND}`; export r; \
33466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33467 $(HOST_EXPORTS) \
33468 for flag in $(EXTRA_HOST_FLAGS) ; do \
33469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33470 done; \
33471 echo "Doing pdf in libctf"; \
33472 (cd $(HOST_SUBDIR)/libctf && \
33473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33475 "RANLIB=$${RANLIB}" \
33476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33477 pdf) \
33478 || exit 1
33479
33480@endif libctf
33481
33482.PHONY: maybe-html-libctf html-libctf
33483maybe-html-libctf:
33484@if libctf
33485maybe-html-libctf: html-libctf
33486
33487html-libctf: \
33488 configure-libctf
33489 @[ -f ./libctf/Makefile ] || exit 0; \
33490 r=`${PWD_COMMAND}`; export r; \
33491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33492 $(HOST_EXPORTS) \
33493 for flag in $(EXTRA_HOST_FLAGS) ; do \
33494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33495 done; \
33496 echo "Doing html in libctf"; \
33497 (cd $(HOST_SUBDIR)/libctf && \
33498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33500 "RANLIB=$${RANLIB}" \
33501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33502 html) \
33503 || exit 1
33504
33505@endif libctf
33506
33507.PHONY: maybe-TAGS-libctf TAGS-libctf
33508maybe-TAGS-libctf:
33509@if libctf
33510maybe-TAGS-libctf: TAGS-libctf
33511
33512TAGS-libctf: \
33513 configure-libctf
33514 @[ -f ./libctf/Makefile ] || exit 0; \
33515 r=`${PWD_COMMAND}`; export r; \
33516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33517 $(HOST_EXPORTS) \
33518 for flag in $(EXTRA_HOST_FLAGS) ; do \
33519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33520 done; \
33521 echo "Doing TAGS in libctf"; \
33522 (cd $(HOST_SUBDIR)/libctf && \
33523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33525 "RANLIB=$${RANLIB}" \
33526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33527 TAGS) \
33528 || exit 1
33529
33530@endif libctf
33531
33532.PHONY: maybe-install-info-libctf install-info-libctf
33533maybe-install-info-libctf:
33534@if libctf
33535maybe-install-info-libctf: install-info-libctf
33536
33537install-info-libctf: \
33538 configure-libctf \
33539 info-libctf
33540 @[ -f ./libctf/Makefile ] || exit 0; \
33541 r=`${PWD_COMMAND}`; export r; \
33542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33543 $(HOST_EXPORTS) \
33544 for flag in $(EXTRA_HOST_FLAGS) ; do \
33545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33546 done; \
33547 echo "Doing install-info in libctf"; \
33548 (cd $(HOST_SUBDIR)/libctf && \
33549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33551 "RANLIB=$${RANLIB}" \
33552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33553 install-info) \
33554 || exit 1
33555
33556@endif libctf
33557
33558.PHONY: maybe-install-pdf-libctf install-pdf-libctf
33559maybe-install-pdf-libctf:
33560@if libctf
33561maybe-install-pdf-libctf: install-pdf-libctf
33562
33563install-pdf-libctf: \
33564 configure-libctf \
33565 pdf-libctf
33566 @[ -f ./libctf/Makefile ] || exit 0; \
33567 r=`${PWD_COMMAND}`; export r; \
33568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33569 $(HOST_EXPORTS) \
33570 for flag in $(EXTRA_HOST_FLAGS) ; do \
33571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33572 done; \
33573 echo "Doing install-pdf in libctf"; \
33574 (cd $(HOST_SUBDIR)/libctf && \
33575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33577 "RANLIB=$${RANLIB}" \
33578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33579 install-pdf) \
33580 || exit 1
33581
33582@endif libctf
33583
33584.PHONY: maybe-install-html-libctf install-html-libctf
33585maybe-install-html-libctf:
33586@if libctf
33587maybe-install-html-libctf: install-html-libctf
33588
33589install-html-libctf: \
33590 configure-libctf \
33591 html-libctf
33592 @[ -f ./libctf/Makefile ] || exit 0; \
33593 r=`${PWD_COMMAND}`; export r; \
33594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33595 $(HOST_EXPORTS) \
33596 for flag in $(EXTRA_HOST_FLAGS) ; do \
33597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33598 done; \
33599 echo "Doing install-html in libctf"; \
33600 (cd $(HOST_SUBDIR)/libctf && \
33601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33603 "RANLIB=$${RANLIB}" \
33604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33605 install-html) \
33606 || exit 1
33607
33608@endif libctf
33609
33610.PHONY: maybe-installcheck-libctf installcheck-libctf
33611maybe-installcheck-libctf:
33612@if libctf
33613maybe-installcheck-libctf: installcheck-libctf
33614
33615installcheck-libctf: \
33616 configure-libctf
33617 @[ -f ./libctf/Makefile ] || exit 0; \
33618 r=`${PWD_COMMAND}`; export r; \
33619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33620 $(HOST_EXPORTS) \
33621 for flag in $(EXTRA_HOST_FLAGS) ; do \
33622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33623 done; \
33624 echo "Doing installcheck in libctf"; \
33625 (cd $(HOST_SUBDIR)/libctf && \
33626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33628 "RANLIB=$${RANLIB}" \
33629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33630 installcheck) \
33631 || exit 1
33632
33633@endif libctf
33634
33635.PHONY: maybe-mostlyclean-libctf mostlyclean-libctf
33636maybe-mostlyclean-libctf:
33637@if libctf
33638maybe-mostlyclean-libctf: mostlyclean-libctf
33639
33640mostlyclean-libctf:
33641 @[ -f ./libctf/Makefile ] || exit 0; \
33642 r=`${PWD_COMMAND}`; export r; \
33643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33644 $(HOST_EXPORTS) \
33645 for flag in $(EXTRA_HOST_FLAGS) ; do \
33646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33647 done; \
33648 echo "Doing mostlyclean in libctf"; \
33649 (cd $(HOST_SUBDIR)/libctf && \
33650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33652 "RANLIB=$${RANLIB}" \
33653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33654 mostlyclean) \
33655 || exit 1
33656
33657@endif libctf
33658
33659.PHONY: maybe-clean-libctf clean-libctf
33660maybe-clean-libctf:
33661@if libctf
33662maybe-clean-libctf: clean-libctf
33663
33664clean-libctf:
33665 @[ -f ./libctf/Makefile ] || exit 0; \
33666 r=`${PWD_COMMAND}`; export r; \
33667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33668 $(HOST_EXPORTS) \
33669 for flag in $(EXTRA_HOST_FLAGS) ; do \
33670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33671 done; \
33672 echo "Doing clean in libctf"; \
33673 (cd $(HOST_SUBDIR)/libctf && \
33674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33676 "RANLIB=$${RANLIB}" \
33677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33678 clean) \
33679 || exit 1
33680
33681@endif libctf
33682
33683.PHONY: maybe-distclean-libctf distclean-libctf
33684maybe-distclean-libctf:
33685@if libctf
33686maybe-distclean-libctf: distclean-libctf
33687
33688distclean-libctf:
33689 @[ -f ./libctf/Makefile ] || exit 0; \
33690 r=`${PWD_COMMAND}`; export r; \
33691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33692 $(HOST_EXPORTS) \
33693 for flag in $(EXTRA_HOST_FLAGS) ; do \
33694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33695 done; \
33696 echo "Doing distclean in libctf"; \
33697 (cd $(HOST_SUBDIR)/libctf && \
33698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33700 "RANLIB=$${RANLIB}" \
33701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33702 distclean) \
33703 || exit 1
33704
33705@endif libctf
33706
33707.PHONY: maybe-maintainer-clean-libctf maintainer-clean-libctf
33708maybe-maintainer-clean-libctf:
33709@if libctf
33710maybe-maintainer-clean-libctf: maintainer-clean-libctf
33711
33712maintainer-clean-libctf:
33713 @[ -f ./libctf/Makefile ] || exit 0; \
33714 r=`${PWD_COMMAND}`; export r; \
33715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33716 $(HOST_EXPORTS) \
33717 for flag in $(EXTRA_HOST_FLAGS) ; do \
33718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33719 done; \
33720 echo "Doing maintainer-clean in libctf"; \
33721 (cd $(HOST_SUBDIR)/libctf && \
33722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33724 "RANLIB=$${RANLIB}" \
33725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33726 maintainer-clean) \
33727 || exit 1
33728
33729@endif libctf
33730
33731
33732
1b6c0831
L
33733# ---------------------------------------
33734# Modules which run on the target machine
33735# ---------------------------------------
33736
33737
33738
33739
33740.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
33741maybe-configure-target-libstdc++-v3:
33742@if gcc-bootstrap
33743configure-target-libstdc++-v3: stage_current
33744@endif gcc-bootstrap
33745@if target-libstdc++-v3
33746maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
33747configure-target-libstdc++-v3:
33748 @r=`${PWD_COMMAND}`; export r; \
33749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33750 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0
L
33751 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
33752 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
33753 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33754 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33755 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
33756 else \
33757 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
33758 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33759 fi; \
33760 else \
33761 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33762 fi; \
33763 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
22121df0 33764 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
33765 $(RAW_CXX_TARGET_EXPORTS) \
33766 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
33767 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
33768 case $(srcdir) in \
33769 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33770 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33771 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33772 esac; \
33773 module_srcdir=libstdc++-v3; \
33774 rm -f no-such-file || : ; \
33775 CONFIG_SITE=no-such-file $(SHELL) \
33776 $$s/$$module_srcdir/configure \
33777 --srcdir=$${topdir}/$$module_srcdir \
33778 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33779 --target=${target_alias} \
33780 || exit 1
33781@endif target-libstdc++-v3
33782
33783
33784
33785.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
33786maybe-configure-stage1-target-libstdc++-v3:
33787@if target-libstdc++-v3-bootstrap
33788maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
33789configure-stage1-target-libstdc++-v3:
33790 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33791 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
33792 @r=`${PWD_COMMAND}`; export r; \
33793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33794 TFLAGS="$(STAGE1_TFLAGS)"; \
33795 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 33796 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
33797 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33798 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33799 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
33800 else \
33801 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
33802 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33803 fi; \
33804 else \
33805 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33806 fi; \
33807 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
33808 $(RAW_CXX_TARGET_EXPORTS) \
33809 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33810 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33811 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33812 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3; \
33813 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
33814 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
33815 case $(srcdir) in \
33816 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33817 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33818 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33819 esac; \
33820 module_srcdir=libstdc++-v3; \
33821 $(SHELL) $$s/$$module_srcdir/configure \
33822 --srcdir=$${topdir}/$$module_srcdir \
33823 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33824 --target=${target_alias} \
33825 \
33826 $(STAGE1_CONFIGURE_FLAGS)
33827@endif target-libstdc++-v3-bootstrap
33828
33829.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
33830maybe-configure-stage2-target-libstdc++-v3:
33831@if target-libstdc++-v3-bootstrap
33832maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
33833configure-stage2-target-libstdc++-v3:
33834 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33835 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
33836 @r=`${PWD_COMMAND}`; export r; \
33837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33838 TFLAGS="$(STAGE2_TFLAGS)"; \
33839 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 33840 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
33841 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33842 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33843 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
33844 else \
33845 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
33846 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33847 fi; \
33848 else \
33849 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33850 fi; \
33851 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
33852 $(RAW_CXX_TARGET_EXPORTS) \
33853 \
33854 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33855 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33856 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33857 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3; \
33858 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
33859 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
33860 case $(srcdir) in \
33861 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33862 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33863 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33864 esac; \
33865 module_srcdir=libstdc++-v3; \
33866 $(SHELL) $$s/$$module_srcdir/configure \
33867 --srcdir=$${topdir}/$$module_srcdir \
33868 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33869 --target=${target_alias} \
22121df0 33870 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33871 $(STAGE2_CONFIGURE_FLAGS)
33872@endif target-libstdc++-v3-bootstrap
33873
33874.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
33875maybe-configure-stage3-target-libstdc++-v3:
33876@if target-libstdc++-v3-bootstrap
33877maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
33878configure-stage3-target-libstdc++-v3:
33879 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33880 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
33881 @r=`${PWD_COMMAND}`; export r; \
33882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33883 TFLAGS="$(STAGE3_TFLAGS)"; \
33884 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 33885 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
33886 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33887 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33888 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
33889 else \
33890 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
33891 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33892 fi; \
33893 else \
33894 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33895 fi; \
33896 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
33897 $(RAW_CXX_TARGET_EXPORTS) \
33898 \
33899 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33900 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33901 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33902 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3; \
33903 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
33904 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
33905 case $(srcdir) in \
33906 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33907 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33908 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33909 esac; \
33910 module_srcdir=libstdc++-v3; \
33911 $(SHELL) $$s/$$module_srcdir/configure \
33912 --srcdir=$${topdir}/$$module_srcdir \
33913 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33914 --target=${target_alias} \
22121df0 33915 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33916 $(STAGE3_CONFIGURE_FLAGS)
33917@endif target-libstdc++-v3-bootstrap
33918
33919.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
33920maybe-configure-stage4-target-libstdc++-v3:
33921@if target-libstdc++-v3-bootstrap
33922maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
33923configure-stage4-target-libstdc++-v3:
33924 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33925 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
33926 @r=`${PWD_COMMAND}`; export r; \
33927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33928 TFLAGS="$(STAGE4_TFLAGS)"; \
33929 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 33930 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
33931 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33932 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33933 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
33934 else \
33935 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
33936 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33937 fi; \
33938 else \
33939 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33940 fi; \
33941 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
33942 $(RAW_CXX_TARGET_EXPORTS) \
33943 \
33944 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33945 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33946 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33947 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3; \
33948 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
33949 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
33950 case $(srcdir) in \
33951 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33952 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33953 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33954 esac; \
33955 module_srcdir=libstdc++-v3; \
33956 $(SHELL) $$s/$$module_srcdir/configure \
33957 --srcdir=$${topdir}/$$module_srcdir \
33958 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
33959 --target=${target_alias} \
22121df0 33960 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
33961 $(STAGE4_CONFIGURE_FLAGS)
33962@endif target-libstdc++-v3-bootstrap
33963
33964.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
33965maybe-configure-stageprofile-target-libstdc++-v3:
33966@if target-libstdc++-v3-bootstrap
33967maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
33968configure-stageprofile-target-libstdc++-v3:
33969 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33970 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
33971 @r=`${PWD_COMMAND}`; export r; \
33972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33973 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33974 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 33975 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
33976 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33977 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33978 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
33979 else \
33980 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
33981 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33982 fi; \
33983 else \
33984 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33985 fi; \
33986 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
33987 $(RAW_CXX_TARGET_EXPORTS) \
33988 \
33989 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
33990 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
33991 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
33992 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3; \
33993 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
33994 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
33995 case $(srcdir) in \
33996 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33997 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33998 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33999 esac; \
34000 module_srcdir=libstdc++-v3; \
34001 $(SHELL) $$s/$$module_srcdir/configure \
34002 --srcdir=$${topdir}/$$module_srcdir \
34003 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34004 --target=${target_alias} \
22121df0 34005 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34006 $(STAGEprofile_CONFIGURE_FLAGS)
34007@endif target-libstdc++-v3-bootstrap
34008
34009.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
34010maybe-configure-stagefeedback-target-libstdc++-v3:
34011@if target-libstdc++-v3-bootstrap
34012maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
34013configure-stagefeedback-target-libstdc++-v3:
34014 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34015 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34016 @r=`${PWD_COMMAND}`; export r; \
34017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34018 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34019 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34020 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34021 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34022 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34023 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34024 else \
34025 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34026 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34027 fi; \
34028 else \
34029 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34030 fi; \
34031 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34032 $(RAW_CXX_TARGET_EXPORTS) \
34033 \
34034 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34035 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34036 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34037 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3; \
34038 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34039 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34040 case $(srcdir) in \
34041 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34042 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34043 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34044 esac; \
34045 module_srcdir=libstdc++-v3; \
34046 $(SHELL) $$s/$$module_srcdir/configure \
34047 --srcdir=$${topdir}/$$module_srcdir \
34048 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34049 --target=${target_alias} \
22121df0 34050 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34051 $(STAGEfeedback_CONFIGURE_FLAGS)
34052@endif target-libstdc++-v3-bootstrap
34053
34054
34055
34056
34057
34058.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
34059maybe-all-target-libstdc++-v3:
34060@if gcc-bootstrap
34061all-target-libstdc++-v3: stage_current
34062@endif gcc-bootstrap
34063@if target-libstdc++-v3
34064TARGET-target-libstdc++-v3=all
34065maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
34066all-target-libstdc++-v3: configure-target-libstdc++-v3
34067 @r=`${PWD_COMMAND}`; export r; \
34068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34069 $(RAW_CXX_TARGET_EXPORTS) \
34070 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34071 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34072 $(TARGET-target-libstdc++-v3))
34073@endif target-libstdc++-v3
34074
34075
34076
34077.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
34078.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
34079maybe-all-stage1-target-libstdc++-v3:
34080maybe-clean-stage1-target-libstdc++-v3:
34081@if target-libstdc++-v3-bootstrap
34082maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
34083all-stage1: all-stage1-target-libstdc++-v3
34084TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34085all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
34086 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34087 @r=`${PWD_COMMAND}`; export r; \
34088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34089 TFLAGS="$(STAGE1_TFLAGS)"; \
34090 $(RAW_CXX_TARGET_EXPORTS) \
34091 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34092 \
1b6c0831
L
34093 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34094 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34095 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34096 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34097 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34098 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34099 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34100 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34101 \
05a13254 34102 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
34103 $(TARGET-stage1-target-libstdc++-v3)
34104
34105maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
34106clean-stage1: clean-stage1-target-libstdc++-v3
34107clean-stage1-target-libstdc++-v3:
34108 @if [ $(current_stage) = stage1 ]; then \
34109 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34110 else \
34111 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
34112 $(MAKE) stage1-start; \
34113 fi; \
34114 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34115 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34116 clean
34117@endif target-libstdc++-v3-bootstrap
34118
34119
34120.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
34121.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
34122maybe-all-stage2-target-libstdc++-v3:
34123maybe-clean-stage2-target-libstdc++-v3:
34124@if target-libstdc++-v3-bootstrap
34125maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
34126all-stage2: all-stage2-target-libstdc++-v3
34127TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34128all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
34129 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34130 @r=`${PWD_COMMAND}`; export r; \
34131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34132 TFLAGS="$(STAGE2_TFLAGS)"; \
34133 $(RAW_CXX_TARGET_EXPORTS) \
34134 \
34135 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34136 \
1b6c0831
L
34137 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34138 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34139 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34140 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34141 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34142 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34143 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34144 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34145 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
34146 $(TARGET-stage2-target-libstdc++-v3)
34147
34148maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
34149clean-stage2: clean-stage2-target-libstdc++-v3
34150clean-stage2-target-libstdc++-v3:
34151 @if [ $(current_stage) = stage2 ]; then \
34152 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34153 else \
34154 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
34155 $(MAKE) stage2-start; \
34156 fi; \
34157 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34158 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34159@endif target-libstdc++-v3-bootstrap
34160
34161
34162.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
34163.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
34164maybe-all-stage3-target-libstdc++-v3:
34165maybe-clean-stage3-target-libstdc++-v3:
34166@if target-libstdc++-v3-bootstrap
34167maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
34168all-stage3: all-stage3-target-libstdc++-v3
34169TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34170all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
34171 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34172 @r=`${PWD_COMMAND}`; export r; \
34173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34174 TFLAGS="$(STAGE3_TFLAGS)"; \
34175 $(RAW_CXX_TARGET_EXPORTS) \
34176 \
34177 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34178 \
1b6c0831
L
34179 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34180 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34181 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34182 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34183 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34184 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34185 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34186 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34187 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
34188 $(TARGET-stage3-target-libstdc++-v3)
34189
34190maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
34191clean-stage3: clean-stage3-target-libstdc++-v3
34192clean-stage3-target-libstdc++-v3:
34193 @if [ $(current_stage) = stage3 ]; then \
34194 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34195 else \
34196 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
34197 $(MAKE) stage3-start; \
34198 fi; \
34199 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34200 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34201@endif target-libstdc++-v3-bootstrap
34202
34203
34204.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
34205.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
34206maybe-all-stage4-target-libstdc++-v3:
34207maybe-clean-stage4-target-libstdc++-v3:
34208@if target-libstdc++-v3-bootstrap
34209maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
34210all-stage4: all-stage4-target-libstdc++-v3
34211TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34212all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
34213 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34214 @r=`${PWD_COMMAND}`; export r; \
34215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34216 TFLAGS="$(STAGE4_TFLAGS)"; \
34217 $(RAW_CXX_TARGET_EXPORTS) \
34218 \
34219 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34220 \
1b6c0831
L
34221 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34222 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34223 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34224 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34225 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34226 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34227 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34228 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34229 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
34230 $(TARGET-stage4-target-libstdc++-v3)
34231
34232maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
34233clean-stage4: clean-stage4-target-libstdc++-v3
34234clean-stage4-target-libstdc++-v3:
34235 @if [ $(current_stage) = stage4 ]; then \
34236 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34237 else \
34238 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
34239 $(MAKE) stage4-start; \
34240 fi; \
34241 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34242 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34243@endif target-libstdc++-v3-bootstrap
34244
34245
34246.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
34247.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
34248maybe-all-stageprofile-target-libstdc++-v3:
34249maybe-clean-stageprofile-target-libstdc++-v3:
34250@if target-libstdc++-v3-bootstrap
34251maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
34252all-stageprofile: all-stageprofile-target-libstdc++-v3
34253TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34254all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
34255 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34256 @r=`${PWD_COMMAND}`; export r; \
34257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34258 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34259 $(RAW_CXX_TARGET_EXPORTS) \
34260 \
34261 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34262 \
1b6c0831
L
34263 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34264 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34265 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34266 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34267 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34268 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34269 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34270 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34271 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
34272 $(TARGET-stageprofile-target-libstdc++-v3)
34273
34274maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
34275clean-stageprofile: clean-stageprofile-target-libstdc++-v3
34276clean-stageprofile-target-libstdc++-v3:
34277 @if [ $(current_stage) = stageprofile ]; then \
34278 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34279 else \
34280 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
34281 $(MAKE) stageprofile-start; \
34282 fi; \
34283 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34284 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34285@endif target-libstdc++-v3-bootstrap
34286
34287
34288.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
34289.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
34290maybe-all-stagefeedback-target-libstdc++-v3:
34291maybe-clean-stagefeedback-target-libstdc++-v3:
34292@if target-libstdc++-v3-bootstrap
34293maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
34294all-stagefeedback: all-stagefeedback-target-libstdc++-v3
34295TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34296all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
34297 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34298 @r=`${PWD_COMMAND}`; export r; \
34299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34300 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34301 $(RAW_CXX_TARGET_EXPORTS) \
34302 \
34303 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34304 \
1b6c0831
L
34305 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34306 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34307 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34308 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34309 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34310 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34311 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34312 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34313 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
34314 $(TARGET-stagefeedback-target-libstdc++-v3)
34315
34316maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
34317clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
34318clean-stagefeedback-target-libstdc++-v3:
34319 @if [ $(current_stage) = stagefeedback ]; then \
34320 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34321 else \
34322 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
34323 $(MAKE) stagefeedback-start; \
34324 fi; \
34325 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34326 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34327@endif target-libstdc++-v3-bootstrap
34328
34329
34330
34331
34332
34333
34334.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
34335maybe-check-target-libstdc++-v3:
34336@if target-libstdc++-v3
34337maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
34338
34339check-target-libstdc++-v3:
34340 @: $(MAKE); $(unstage)
34341 @r=`${PWD_COMMAND}`; export r; \
34342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34343 $(RAW_CXX_TARGET_EXPORTS) \
34344 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34345 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
34346
34347@endif target-libstdc++-v3
34348
34349.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
34350maybe-install-target-libstdc++-v3:
34351@if target-libstdc++-v3
34352maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
34353
34354install-target-libstdc++-v3: installdirs
34355 @: $(MAKE); $(unstage)
34356 @r=`${PWD_COMMAND}`; export r; \
34357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34358 $(RAW_CXX_TARGET_EXPORTS) \
34359 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34360 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
34361
34362@endif target-libstdc++-v3
34363
34364.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
34365maybe-install-strip-target-libstdc++-v3:
34366@if target-libstdc++-v3
34367maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
34368
34369install-strip-target-libstdc++-v3: installdirs
34370 @: $(MAKE); $(unstage)
34371 @r=`${PWD_COMMAND}`; export r; \
34372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34373 $(RAW_CXX_TARGET_EXPORTS) \
34374 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34375 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
34376
34377@endif target-libstdc++-v3
34378
34379# Other targets (info, dvi, pdf, etc.)
34380
34381.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
34382maybe-info-target-libstdc++-v3:
34383@if target-libstdc++-v3
34384maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
34385
34386info-target-libstdc++-v3: \
34387 configure-target-libstdc++-v3
34388 @: $(MAKE); $(unstage)
22121df0 34389 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34390 r=`${PWD_COMMAND}`; export r; \
34391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34392 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34393 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34394 for flag in $(EXTRA_TARGET_FLAGS); do \
34395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34396 done; \
34397 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34400 "RANLIB=$${RANLIB}" \
34401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34402 info) \
34403 || exit 1
34404
34405@endif target-libstdc++-v3
34406
34407.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
34408maybe-dvi-target-libstdc++-v3:
34409@if target-libstdc++-v3
34410maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
34411
34412dvi-target-libstdc++-v3: \
34413 configure-target-libstdc++-v3
34414 @: $(MAKE); $(unstage)
22121df0 34415 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34416 r=`${PWD_COMMAND}`; export r; \
34417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34418 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34419 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34420 for flag in $(EXTRA_TARGET_FLAGS); do \
34421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34422 done; \
34423 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34426 "RANLIB=$${RANLIB}" \
34427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34428 dvi) \
34429 || exit 1
34430
34431@endif target-libstdc++-v3
34432
34433.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
34434maybe-pdf-target-libstdc++-v3:
34435@if target-libstdc++-v3
34436maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
34437
34438pdf-target-libstdc++-v3: \
34439 configure-target-libstdc++-v3
34440 @: $(MAKE); $(unstage)
22121df0 34441 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34442 r=`${PWD_COMMAND}`; export r; \
34443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34444 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34445 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34446 for flag in $(EXTRA_TARGET_FLAGS); do \
34447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34448 done; \
34449 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34450 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34451 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34452 "RANLIB=$${RANLIB}" \
34453 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34454 pdf) \
34455 || exit 1
34456
34457@endif target-libstdc++-v3
34458
34459.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
34460maybe-html-target-libstdc++-v3:
34461@if target-libstdc++-v3
34462maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
34463
34464html-target-libstdc++-v3: \
34465 configure-target-libstdc++-v3
34466 @: $(MAKE); $(unstage)
22121df0 34467 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34468 r=`${PWD_COMMAND}`; export r; \
34469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34470 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34471 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34472 for flag in $(EXTRA_TARGET_FLAGS); do \
34473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34474 done; \
34475 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34478 "RANLIB=$${RANLIB}" \
34479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34480 html) \
34481 || exit 1
34482
34483@endif target-libstdc++-v3
34484
34485.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
34486maybe-TAGS-target-libstdc++-v3:
34487@if target-libstdc++-v3
34488maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
34489
34490TAGS-target-libstdc++-v3: \
34491 configure-target-libstdc++-v3
34492 @: $(MAKE); $(unstage)
22121df0 34493 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34494 r=`${PWD_COMMAND}`; export r; \
34495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34496 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34497 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34498 for flag in $(EXTRA_TARGET_FLAGS); do \
34499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34500 done; \
34501 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34504 "RANLIB=$${RANLIB}" \
34505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34506 TAGS) \
34507 || exit 1
34508
34509@endif target-libstdc++-v3
34510
34511.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
34512maybe-install-info-target-libstdc++-v3:
34513@if target-libstdc++-v3
34514maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
34515
34516install-info-target-libstdc++-v3: \
34517 configure-target-libstdc++-v3 \
34518 info-target-libstdc++-v3
34519 @: $(MAKE); $(unstage)
22121df0 34520 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34521 r=`${PWD_COMMAND}`; export r; \
34522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34523 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34524 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34525 for flag in $(EXTRA_TARGET_FLAGS); do \
34526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34527 done; \
34528 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34531 "RANLIB=$${RANLIB}" \
34532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34533 install-info) \
34534 || exit 1
34535
34536@endif target-libstdc++-v3
34537
34538.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
34539maybe-install-pdf-target-libstdc++-v3:
34540@if target-libstdc++-v3
34541maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
34542
34543install-pdf-target-libstdc++-v3: \
34544 configure-target-libstdc++-v3 \
34545 pdf-target-libstdc++-v3
34546 @: $(MAKE); $(unstage)
22121df0 34547 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34548 r=`${PWD_COMMAND}`; export r; \
34549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34550 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34551 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34552 for flag in $(EXTRA_TARGET_FLAGS); do \
34553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34554 done; \
34555 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34558 "RANLIB=$${RANLIB}" \
34559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34560 install-pdf) \
34561 || exit 1
34562
34563@endif target-libstdc++-v3
34564
34565.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
34566maybe-install-html-target-libstdc++-v3:
34567@if target-libstdc++-v3
34568maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
34569
34570install-html-target-libstdc++-v3: \
34571 configure-target-libstdc++-v3 \
34572 html-target-libstdc++-v3
34573 @: $(MAKE); $(unstage)
22121df0 34574 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34575 r=`${PWD_COMMAND}`; export r; \
34576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34577 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34578 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34579 for flag in $(EXTRA_TARGET_FLAGS); do \
34580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34581 done; \
34582 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34585 "RANLIB=$${RANLIB}" \
34586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34587 install-html) \
34588 || exit 1
34589
34590@endif target-libstdc++-v3
34591
34592.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
34593maybe-installcheck-target-libstdc++-v3:
34594@if target-libstdc++-v3
34595maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
34596
34597installcheck-target-libstdc++-v3: \
34598 configure-target-libstdc++-v3
34599 @: $(MAKE); $(unstage)
22121df0 34600 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34601 r=`${PWD_COMMAND}`; export r; \
34602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34603 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34604 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34605 for flag in $(EXTRA_TARGET_FLAGS); do \
34606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34607 done; \
34608 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34611 "RANLIB=$${RANLIB}" \
34612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34613 installcheck) \
34614 || exit 1
34615
34616@endif target-libstdc++-v3
34617
34618.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
34619maybe-mostlyclean-target-libstdc++-v3:
34620@if target-libstdc++-v3
34621maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
34622
34623mostlyclean-target-libstdc++-v3:
34624 @: $(MAKE); $(unstage)
22121df0 34625 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34626 r=`${PWD_COMMAND}`; export r; \
34627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34628 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34629 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34630 for flag in $(EXTRA_TARGET_FLAGS); do \
34631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34632 done; \
34633 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34636 "RANLIB=$${RANLIB}" \
34637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34638 mostlyclean) \
34639 || exit 1
34640
34641@endif target-libstdc++-v3
34642
34643.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
34644maybe-clean-target-libstdc++-v3:
34645@if target-libstdc++-v3
34646maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
34647
34648clean-target-libstdc++-v3:
34649 @: $(MAKE); $(unstage)
22121df0 34650 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34651 r=`${PWD_COMMAND}`; export r; \
34652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34653 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34654 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34655 for flag in $(EXTRA_TARGET_FLAGS); do \
34656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34657 done; \
34658 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34661 "RANLIB=$${RANLIB}" \
34662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34663 clean) \
34664 || exit 1
34665
34666@endif target-libstdc++-v3
34667
34668.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
34669maybe-distclean-target-libstdc++-v3:
34670@if target-libstdc++-v3
34671maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
34672
34673distclean-target-libstdc++-v3:
34674 @: $(MAKE); $(unstage)
22121df0 34675 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34676 r=`${PWD_COMMAND}`; export r; \
34677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34678 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34679 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34680 for flag in $(EXTRA_TARGET_FLAGS); do \
34681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34682 done; \
34683 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34686 "RANLIB=$${RANLIB}" \
34687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34688 distclean) \
34689 || exit 1
34690
34691@endif target-libstdc++-v3
34692
34693.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
34694maybe-maintainer-clean-target-libstdc++-v3:
34695@if target-libstdc++-v3
34696maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
34697
34698maintainer-clean-target-libstdc++-v3:
34699 @: $(MAKE); $(unstage)
22121df0 34700 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34701 r=`${PWD_COMMAND}`; export r; \
34702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34703 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34704 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34705 for flag in $(EXTRA_TARGET_FLAGS); do \
34706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34707 done; \
34708 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34711 "RANLIB=$${RANLIB}" \
34712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34713 maintainer-clean) \
34714 || exit 1
34715
34716@endif target-libstdc++-v3
34717
34718
34719
34720
34721
34722.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
34723maybe-configure-target-libsanitizer:
34724@if gcc-bootstrap
34725configure-target-libsanitizer: stage_current
34726@endif gcc-bootstrap
34727@if target-libsanitizer
34728maybe-configure-target-libsanitizer: configure-target-libsanitizer
34729configure-target-libsanitizer:
34730 @r=`${PWD_COMMAND}`; export r; \
34731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34732 echo "Checking multilib configuration for libsanitizer..."; \
22121df0
L
34733 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
34734 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
34735 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34736 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34737 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
34738 else \
34739 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
34740 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34741 fi; \
34742 else \
34743 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34744 fi; \
34745 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
22121df0 34746 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
34747 $(RAW_CXX_TARGET_EXPORTS) \
34748 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
34749 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
34750 case $(srcdir) in \
34751 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34752 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
34753 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34754 esac; \
34755 module_srcdir=libsanitizer; \
34756 rm -f no-such-file || : ; \
34757 CONFIG_SITE=no-such-file $(SHELL) \
34758 $$s/$$module_srcdir/configure \
34759 --srcdir=$${topdir}/$$module_srcdir \
34760 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34761 --target=${target_alias} \
34762 || exit 1
34763@endif target-libsanitizer
34764
34765
34766
34767.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
34768maybe-configure-stage1-target-libsanitizer:
34769@if target-libsanitizer-bootstrap
34770maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
34771configure-stage1-target-libsanitizer:
34772 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34773 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
34774 @r=`${PWD_COMMAND}`; export r; \
34775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34776 TFLAGS="$(STAGE1_TFLAGS)"; \
34777 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 34778 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
34779 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34780 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34781 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
34782 else \
34783 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
34784 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34785 fi; \
34786 else \
34787 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34788 fi; \
34789 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
34790 $(RAW_CXX_TARGET_EXPORTS) \
34791 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34792 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34793 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34794 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer; \
34795 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
34796 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
34797 case $(srcdir) in \
34798 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34799 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
34800 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34801 esac; \
34802 module_srcdir=libsanitizer; \
34803 $(SHELL) $$s/$$module_srcdir/configure \
34804 --srcdir=$${topdir}/$$module_srcdir \
34805 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34806 --target=${target_alias} \
34807 \
34808 $(STAGE1_CONFIGURE_FLAGS)
34809@endif target-libsanitizer-bootstrap
34810
34811.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
34812maybe-configure-stage2-target-libsanitizer:
34813@if target-libsanitizer-bootstrap
34814maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
34815configure-stage2-target-libsanitizer:
34816 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34817 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
34818 @r=`${PWD_COMMAND}`; export r; \
34819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34820 TFLAGS="$(STAGE2_TFLAGS)"; \
34821 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 34822 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
34823 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34824 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34825 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
34826 else \
34827 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
34828 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34829 fi; \
34830 else \
34831 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34832 fi; \
34833 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
34834 $(RAW_CXX_TARGET_EXPORTS) \
34835 \
34836 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34837 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34838 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34839 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer; \
34840 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
34841 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
34842 case $(srcdir) in \
34843 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34844 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
34845 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34846 esac; \
34847 module_srcdir=libsanitizer; \
34848 $(SHELL) $$s/$$module_srcdir/configure \
34849 --srcdir=$${topdir}/$$module_srcdir \
34850 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34851 --target=${target_alias} \
22121df0 34852 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34853 $(STAGE2_CONFIGURE_FLAGS)
34854@endif target-libsanitizer-bootstrap
34855
34856.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
34857maybe-configure-stage3-target-libsanitizer:
34858@if target-libsanitizer-bootstrap
34859maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
34860configure-stage3-target-libsanitizer:
34861 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34862 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
34863 @r=`${PWD_COMMAND}`; export r; \
34864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34865 TFLAGS="$(STAGE3_TFLAGS)"; \
34866 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 34867 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
34868 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34869 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34870 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
34871 else \
34872 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
34873 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34874 fi; \
34875 else \
34876 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34877 fi; \
34878 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
34879 $(RAW_CXX_TARGET_EXPORTS) \
34880 \
34881 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34882 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34883 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34884 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer; \
34885 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
34886 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
34887 case $(srcdir) in \
34888 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34889 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
34890 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34891 esac; \
34892 module_srcdir=libsanitizer; \
34893 $(SHELL) $$s/$$module_srcdir/configure \
34894 --srcdir=$${topdir}/$$module_srcdir \
34895 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34896 --target=${target_alias} \
22121df0 34897 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34898 $(STAGE3_CONFIGURE_FLAGS)
34899@endif target-libsanitizer-bootstrap
34900
34901.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
34902maybe-configure-stage4-target-libsanitizer:
34903@if target-libsanitizer-bootstrap
34904maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
34905configure-stage4-target-libsanitizer:
34906 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34907 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
34908 @r=`${PWD_COMMAND}`; export r; \
34909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34910 TFLAGS="$(STAGE4_TFLAGS)"; \
34911 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 34912 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
34913 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34914 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34915 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
34916 else \
34917 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
34918 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34919 fi; \
34920 else \
34921 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34922 fi; \
34923 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
34924 $(RAW_CXX_TARGET_EXPORTS) \
34925 \
34926 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34927 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34928 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34929 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer; \
34930 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
34931 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
34932 case $(srcdir) in \
34933 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34934 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
34935 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34936 esac; \
34937 module_srcdir=libsanitizer; \
34938 $(SHELL) $$s/$$module_srcdir/configure \
34939 --srcdir=$${topdir}/$$module_srcdir \
34940 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34941 --target=${target_alias} \
22121df0 34942 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34943 $(STAGE4_CONFIGURE_FLAGS)
34944@endif target-libsanitizer-bootstrap
34945
34946.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
34947maybe-configure-stageprofile-target-libsanitizer:
34948@if target-libsanitizer-bootstrap
34949maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
34950configure-stageprofile-target-libsanitizer:
34951 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34952 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
34953 @r=`${PWD_COMMAND}`; export r; \
34954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34955 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34956 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 34957 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
34958 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34959 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
34960 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
34961 else \
34962 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
34963 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34964 fi; \
34965 else \
34966 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
34967 fi; \
34968 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
34969 $(RAW_CXX_TARGET_EXPORTS) \
34970 \
34971 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34972 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34973 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34974 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer; \
34975 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
34976 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
34977 case $(srcdir) in \
34978 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34979 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
34980 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34981 esac; \
34982 module_srcdir=libsanitizer; \
34983 $(SHELL) $$s/$$module_srcdir/configure \
34984 --srcdir=$${topdir}/$$module_srcdir \
34985 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34986 --target=${target_alias} \
22121df0 34987 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34988 $(STAGEprofile_CONFIGURE_FLAGS)
34989@endif target-libsanitizer-bootstrap
34990
34991.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
34992maybe-configure-stagefeedback-target-libsanitizer:
34993@if target-libsanitizer-bootstrap
34994maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
34995configure-stagefeedback-target-libsanitizer:
34996 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34997 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
34998 @r=`${PWD_COMMAND}`; export r; \
34999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35000 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35001 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35002 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35003 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35004 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35005 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35006 else \
35007 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35008 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35009 fi; \
35010 else \
35011 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35012 fi; \
35013 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35014 $(RAW_CXX_TARGET_EXPORTS) \
35015 \
35016 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35017 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35018 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35019 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer; \
35020 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35021 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35022 case $(srcdir) in \
35023 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35024 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35025 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35026 esac; \
35027 module_srcdir=libsanitizer; \
35028 $(SHELL) $$s/$$module_srcdir/configure \
35029 --srcdir=$${topdir}/$$module_srcdir \
35030 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35031 --target=${target_alias} \
22121df0 35032 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35033 $(STAGEfeedback_CONFIGURE_FLAGS)
35034@endif target-libsanitizer-bootstrap
35035
35036
35037
35038
35039
35040.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
35041maybe-all-target-libsanitizer:
35042@if gcc-bootstrap
35043all-target-libsanitizer: stage_current
35044@endif gcc-bootstrap
35045@if target-libsanitizer
35046TARGET-target-libsanitizer=all
35047maybe-all-target-libsanitizer: all-target-libsanitizer
35048all-target-libsanitizer: configure-target-libsanitizer
35049 @r=`${PWD_COMMAND}`; export r; \
35050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35051 $(RAW_CXX_TARGET_EXPORTS) \
35052 (cd $(TARGET_SUBDIR)/libsanitizer && \
35053 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35054 $(TARGET-target-libsanitizer))
35055@endif target-libsanitizer
35056
35057
35058
35059.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
35060.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
35061maybe-all-stage1-target-libsanitizer:
35062maybe-clean-stage1-target-libsanitizer:
35063@if target-libsanitizer-bootstrap
35064maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
35065all-stage1: all-stage1-target-libsanitizer
35066TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
35067all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
35068 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35069 @r=`${PWD_COMMAND}`; export r; \
35070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35071 TFLAGS="$(STAGE1_TFLAGS)"; \
35072 $(RAW_CXX_TARGET_EXPORTS) \
35073 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35074 \
1b6c0831
L
35075 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35076 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35077 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35078 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35079 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35080 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35081 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35082 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35083 \
05a13254 35084 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
35085 $(TARGET-stage1-target-libsanitizer)
35086
35087maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
35088clean-stage1: clean-stage1-target-libsanitizer
35089clean-stage1-target-libsanitizer:
35090 @if [ $(current_stage) = stage1 ]; then \
35091 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
35092 else \
35093 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
35094 $(MAKE) stage1-start; \
35095 fi; \
35096 cd $(TARGET_SUBDIR)/libsanitizer && \
35097 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35098 clean
35099@endif target-libsanitizer-bootstrap
35100
35101
35102.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
35103.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
35104maybe-all-stage2-target-libsanitizer:
35105maybe-clean-stage2-target-libsanitizer:
35106@if target-libsanitizer-bootstrap
35107maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
35108all-stage2: all-stage2-target-libsanitizer
35109TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
35110all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
35111 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35112 @r=`${PWD_COMMAND}`; export r; \
35113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35114 TFLAGS="$(STAGE2_TFLAGS)"; \
35115 $(RAW_CXX_TARGET_EXPORTS) \
35116 \
35117 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35118 \
1b6c0831
L
35119 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35120 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35121 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35122 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35123 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35124 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35125 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35126 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35127 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
35128 $(TARGET-stage2-target-libsanitizer)
35129
35130maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
35131clean-stage2: clean-stage2-target-libsanitizer
35132clean-stage2-target-libsanitizer:
35133 @if [ $(current_stage) = stage2 ]; then \
35134 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
35135 else \
35136 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
35137 $(MAKE) stage2-start; \
35138 fi; \
35139 cd $(TARGET_SUBDIR)/libsanitizer && \
35140 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35141@endif target-libsanitizer-bootstrap
35142
35143
35144.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
35145.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
35146maybe-all-stage3-target-libsanitizer:
35147maybe-clean-stage3-target-libsanitizer:
35148@if target-libsanitizer-bootstrap
35149maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
35150all-stage3: all-stage3-target-libsanitizer
35151TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
35152all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
35153 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35154 @r=`${PWD_COMMAND}`; export r; \
35155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35156 TFLAGS="$(STAGE3_TFLAGS)"; \
35157 $(RAW_CXX_TARGET_EXPORTS) \
35158 \
35159 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35160 \
1b6c0831
L
35161 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35162 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35163 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35164 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35165 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35166 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35167 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35168 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35169 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
35170 $(TARGET-stage3-target-libsanitizer)
35171
35172maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
35173clean-stage3: clean-stage3-target-libsanitizer
35174clean-stage3-target-libsanitizer:
35175 @if [ $(current_stage) = stage3 ]; then \
35176 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
35177 else \
35178 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
35179 $(MAKE) stage3-start; \
35180 fi; \
35181 cd $(TARGET_SUBDIR)/libsanitizer && \
35182 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35183@endif target-libsanitizer-bootstrap
35184
35185
35186.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
35187.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
35188maybe-all-stage4-target-libsanitizer:
35189maybe-clean-stage4-target-libsanitizer:
35190@if target-libsanitizer-bootstrap
35191maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
35192all-stage4: all-stage4-target-libsanitizer
35193TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
35194all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
35195 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35196 @r=`${PWD_COMMAND}`; export r; \
35197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35198 TFLAGS="$(STAGE4_TFLAGS)"; \
35199 $(RAW_CXX_TARGET_EXPORTS) \
35200 \
35201 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35202 \
1b6c0831
L
35203 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35204 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35205 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35206 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
35207 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35208 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35209 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35210 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35211 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 35212 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 35213
1b6c0831
L
35214maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
35215clean-stage4: clean-stage4-target-libsanitizer
35216clean-stage4-target-libsanitizer:
e8a5fa9c 35217 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 35218 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 35219 else \
1b6c0831 35220 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
35221 $(MAKE) stage4-start; \
35222 fi; \
1b6c0831 35223 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 35224 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 35225@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
35226
35227
1b6c0831
L
35228.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
35229.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
35230maybe-all-stageprofile-target-libsanitizer:
35231maybe-clean-stageprofile-target-libsanitizer:
35232@if target-libsanitizer-bootstrap
35233maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
35234all-stageprofile: all-stageprofile-target-libsanitizer
35235TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
35236all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
35237 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35238 @r=`${PWD_COMMAND}`; export r; \
35239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35240 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35241 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 35242 \
1b6c0831 35243 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35244 \
e8a5fa9c
RW
35245 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35246 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35247 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35248 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35249 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35250 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35251 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35252 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35253 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 35254 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 35255
1b6c0831
L
35256maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
35257clean-stageprofile: clean-stageprofile-target-libsanitizer
35258clean-stageprofile-target-libsanitizer:
e8a5fa9c 35259 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 35260 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 35261 else \
1b6c0831 35262 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
35263 $(MAKE) stageprofile-start; \
35264 fi; \
1b6c0831 35265 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 35266 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 35267@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
35268
35269
1b6c0831
L
35270.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
35271.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
35272maybe-all-stagefeedback-target-libsanitizer:
35273maybe-clean-stagefeedback-target-libsanitizer:
35274@if target-libsanitizer-bootstrap
35275maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
35276all-stagefeedback: all-stagefeedback-target-libsanitizer
35277TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
35278all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
35279 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35280 @r=`${PWD_COMMAND}`; export r; \
35281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35282 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35283 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 35284 \
1b6c0831 35285 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35286 \
e8a5fa9c
RW
35287 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35288 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35289 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35290 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35291 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35292 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35293 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35294 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35295 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 35296 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 35297
1b6c0831
L
35298maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
35299clean-stagefeedback: clean-stagefeedback-target-libsanitizer
35300clean-stagefeedback-target-libsanitizer:
e8a5fa9c 35301 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 35302 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 35303 else \
1b6c0831 35304 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
35305 $(MAKE) stagefeedback-start; \
35306 fi; \
1b6c0831 35307 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 35308 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 35309@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
35310
35311
35312
35313
d545f33b
PB
35314
35315
1b6c0831
L
35316.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
35317maybe-check-target-libsanitizer:
35318@if target-libsanitizer
35319maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 35320
1b6c0831 35321check-target-libsanitizer:
0aed8855 35322 @: $(MAKE); $(unstage)
b40e3958
L
35323 @r=`${PWD_COMMAND}`; export r; \
35324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35325 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 35326 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 35327 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 35328
1b6c0831 35329@endif target-libsanitizer
3866be5d 35330
1b6c0831
L
35331.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
35332maybe-install-target-libsanitizer:
35333@if target-libsanitizer
35334maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 35335
1b6c0831 35336install-target-libsanitizer: installdirs
0aed8855 35337 @: $(MAKE); $(unstage)
b40e3958
L
35338 @r=`${PWD_COMMAND}`; export r; \
35339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35340 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 35341 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 35342 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 35343
1b6c0831 35344@endif target-libsanitizer
e2b9e2dc 35345
1b6c0831
L
35346.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
35347maybe-install-strip-target-libsanitizer:
35348@if target-libsanitizer
35349maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 35350
1b6c0831 35351install-strip-target-libsanitizer: installdirs
9b980aa1
RW
35352 @: $(MAKE); $(unstage)
35353 @r=`${PWD_COMMAND}`; export r; \
35354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35355 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 35356 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
35357 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35358
1b6c0831 35359@endif target-libsanitizer
9b980aa1 35360
56a8fe78 35361# Other targets (info, dvi, pdf, etc.)
3866be5d 35362
1b6c0831
L
35363.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
35364maybe-info-target-libsanitizer:
35365@if target-libsanitizer
35366maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 35367
1b6c0831
L
35368info-target-libsanitizer: \
35369 configure-target-libsanitizer
0aed8855 35370 @: $(MAKE); $(unstage)
22121df0 35371 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 35372 r=`${PWD_COMMAND}`; export r; \
b40e3958 35373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35374 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35375 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35376 for flag in $(EXTRA_TARGET_FLAGS); do \
35377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35378 done; \
1b6c0831 35379 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35382 "RANLIB=$${RANLIB}" \
0c24b341 35383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35384 info) \
4fa63067 35385 || exit 1
3866be5d 35386
1b6c0831 35387@endif target-libsanitizer
3866be5d 35388
1b6c0831
L
35389.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
35390maybe-dvi-target-libsanitizer:
35391@if target-libsanitizer
35392maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 35393
1b6c0831
L
35394dvi-target-libsanitizer: \
35395 configure-target-libsanitizer
0aed8855 35396 @: $(MAKE); $(unstage)
22121df0 35397 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 35398 r=`${PWD_COMMAND}`; export r; \
b40e3958 35399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35400 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35401 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35402 for flag in $(EXTRA_TARGET_FLAGS); do \
35403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35404 done; \
1b6c0831 35405 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35408 "RANLIB=$${RANLIB}" \
0c24b341 35409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35410 dvi) \
4fa63067 35411 || exit 1
3866be5d 35412
1b6c0831 35413@endif target-libsanitizer
3866be5d 35414
1b6c0831
L
35415.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
35416maybe-pdf-target-libsanitizer:
35417@if target-libsanitizer
35418maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 35419
1b6c0831
L
35420pdf-target-libsanitizer: \
35421 configure-target-libsanitizer
56a8fe78 35422 @: $(MAKE); $(unstage)
22121df0 35423 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
56a8fe78
DD
35424 r=`${PWD_COMMAND}`; export r; \
35425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35426 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35427 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer"; \
56a8fe78
DD
35428 for flag in $(EXTRA_TARGET_FLAGS); do \
35429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35430 done; \
1b6c0831 35431 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
35432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35434 "RANLIB=$${RANLIB}" \
0c24b341 35435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
35436 pdf) \
35437 || exit 1
35438
1b6c0831 35439@endif target-libsanitizer
56a8fe78 35440
1b6c0831
L
35441.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
35442maybe-html-target-libsanitizer:
35443@if target-libsanitizer
35444maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 35445
1b6c0831
L
35446html-target-libsanitizer: \
35447 configure-target-libsanitizer
0aed8855 35448 @: $(MAKE); $(unstage)
22121df0 35449 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
6d389afc
MS
35450 r=`${PWD_COMMAND}`; export r; \
35451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 35452 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35453 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer"; \
6d389afc
MS
35454 for flag in $(EXTRA_TARGET_FLAGS); do \
35455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35456 done; \
1b6c0831 35457 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
35458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35460 "RANLIB=$${RANLIB}" \
0c24b341 35461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
35462 html) \
35463 || exit 1
35464
1b6c0831 35465@endif target-libsanitizer
6d389afc 35466
1b6c0831
L
35467.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
35468maybe-TAGS-target-libsanitizer:
35469@if target-libsanitizer
35470maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 35471
1b6c0831
L
35472TAGS-target-libsanitizer: \
35473 configure-target-libsanitizer
0aed8855 35474 @: $(MAKE); $(unstage)
22121df0 35475 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
35476 r=`${PWD_COMMAND}`; export r; \
35477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35478 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35479 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35480 for flag in $(EXTRA_TARGET_FLAGS); do \
35481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35482 done; \
1b6c0831 35483 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35486 "RANLIB=$${RANLIB}" \
0c24b341 35487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35488 TAGS) \
e2b9e2dc
NN
35489 || exit 1
35490
1b6c0831 35491@endif target-libsanitizer
3866be5d 35492
1b6c0831
L
35493.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
35494maybe-install-info-target-libsanitizer:
35495@if target-libsanitizer
35496maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 35497
1b6c0831
L
35498install-info-target-libsanitizer: \
35499 configure-target-libsanitizer \
35500 info-target-libsanitizer
0aed8855 35501 @: $(MAKE); $(unstage)
22121df0 35502 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 35503 r=`${PWD_COMMAND}`; export r; \
b40e3958 35504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35505 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35506 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35507 for flag in $(EXTRA_TARGET_FLAGS); do \
35508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35509 done; \
1b6c0831 35510 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35513 "RANLIB=$${RANLIB}" \
0c24b341 35514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35515 install-info) \
4fa63067 35516 || exit 1
3866be5d 35517
1b6c0831 35518@endif target-libsanitizer
3866be5d 35519
1b6c0831
L
35520.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
35521maybe-install-pdf-target-libsanitizer:
35522@if target-libsanitizer
35523maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 35524
1b6c0831
L
35525install-pdf-target-libsanitizer: \
35526 configure-target-libsanitizer \
35527 pdf-target-libsanitizer
a3ca38d2 35528 @: $(MAKE); $(unstage)
22121df0 35529 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
a3ca38d2
DD
35530 r=`${PWD_COMMAND}`; export r; \
35531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35532 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35533 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer"; \
a3ca38d2
DD
35534 for flag in $(EXTRA_TARGET_FLAGS); do \
35535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35536 done; \
1b6c0831 35537 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
35538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35540 "RANLIB=$${RANLIB}" \
0c24b341 35541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
35542 install-pdf) \
35543 || exit 1
35544
1b6c0831 35545@endif target-libsanitizer
a3ca38d2 35546
1b6c0831
L
35547.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
35548maybe-install-html-target-libsanitizer:
35549@if target-libsanitizer
35550maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 35551
1b6c0831
L
35552install-html-target-libsanitizer: \
35553 configure-target-libsanitizer \
35554 html-target-libsanitizer
108a6f8e 35555 @: $(MAKE); $(unstage)
22121df0 35556 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
108a6f8e
CD
35557 r=`${PWD_COMMAND}`; export r; \
35558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35559 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35560 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer"; \
108a6f8e
CD
35561 for flag in $(EXTRA_TARGET_FLAGS); do \
35562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35563 done; \
1b6c0831 35564 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
35565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35567 "RANLIB=$${RANLIB}" \
0c24b341 35568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
35569 install-html) \
35570 || exit 1
35571
1b6c0831 35572@endif target-libsanitizer
108a6f8e 35573
1b6c0831
L
35574.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
35575maybe-installcheck-target-libsanitizer:
35576@if target-libsanitizer
35577maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 35578
1b6c0831
L
35579installcheck-target-libsanitizer: \
35580 configure-target-libsanitizer
0aed8855 35581 @: $(MAKE); $(unstage)
22121df0 35582 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 35583 r=`${PWD_COMMAND}`; export r; \
b40e3958 35584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35585 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35586 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35587 for flag in $(EXTRA_TARGET_FLAGS); do \
35588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35589 done; \
1b6c0831 35590 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35593 "RANLIB=$${RANLIB}" \
0c24b341 35594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35595 installcheck) \
4fa63067 35596 || exit 1
3866be5d 35597
1b6c0831 35598@endif target-libsanitizer
3866be5d 35599
1b6c0831
L
35600.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
35601maybe-mostlyclean-target-libsanitizer:
35602@if target-libsanitizer
35603maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 35604
1b6c0831 35605mostlyclean-target-libsanitizer:
0aed8855 35606 @: $(MAKE); $(unstage)
22121df0 35607 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
35608 r=`${PWD_COMMAND}`; export r; \
35609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35610 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35611 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35612 for flag in $(EXTRA_TARGET_FLAGS); do \
35613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35614 done; \
1b6c0831 35615 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35618 "RANLIB=$${RANLIB}" \
0c24b341 35619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35620 mostlyclean) \
e2b9e2dc
NN
35621 || exit 1
35622
1b6c0831 35623@endif target-libsanitizer
4fa63067 35624
1b6c0831
L
35625.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
35626maybe-clean-target-libsanitizer:
35627@if target-libsanitizer
35628maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 35629
1b6c0831 35630clean-target-libsanitizer:
0aed8855 35631 @: $(MAKE); $(unstage)
22121df0 35632 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 35633 r=`${PWD_COMMAND}`; export r; \
b40e3958 35634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35635 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35636 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35637 for flag in $(EXTRA_TARGET_FLAGS); do \
35638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35639 done; \
1b6c0831 35640 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35643 "RANLIB=$${RANLIB}" \
0c24b341 35644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35645 clean) \
4fa63067 35646 || exit 1
3866be5d 35647
1b6c0831 35648@endif target-libsanitizer
3866be5d 35649
1b6c0831
L
35650.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
35651maybe-distclean-target-libsanitizer:
35652@if target-libsanitizer
35653maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 35654
1b6c0831 35655distclean-target-libsanitizer:
0aed8855 35656 @: $(MAKE); $(unstage)
22121df0 35657 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 35658 r=`${PWD_COMMAND}`; export r; \
b40e3958 35659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35660 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35661 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35662 for flag in $(EXTRA_TARGET_FLAGS); do \
35663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35664 done; \
1b6c0831 35665 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35668 "RANLIB=$${RANLIB}" \
0c24b341 35669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35670 distclean) \
4fa63067 35671 || exit 1
3866be5d 35672
1b6c0831 35673@endif target-libsanitizer
3866be5d 35674
1b6c0831
L
35675.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
35676maybe-maintainer-clean-target-libsanitizer:
35677@if target-libsanitizer
35678maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 35679
1b6c0831 35680maintainer-clean-target-libsanitizer:
0aed8855 35681 @: $(MAKE); $(unstage)
22121df0 35682 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 35683 r=`${PWD_COMMAND}`; export r; \
b40e3958 35684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35685 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35686 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35687 for flag in $(EXTRA_TARGET_FLAGS); do \
35688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35689 done; \
1b6c0831 35690 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35693 "RANLIB=$${RANLIB}" \
0c24b341 35694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35695 maintainer-clean) \
4fa63067 35696 || exit 1
3866be5d 35697
1b6c0831 35698@endif target-libsanitizer
3866be5d 35699
4fa63067 35700
4fa63067 35701
a7254363
PB
35702
35703
1b6c0831
L
35704.PHONY: configure-target-libmpx maybe-configure-target-libmpx
35705maybe-configure-target-libmpx:
5286fdef 35706@if gcc-bootstrap
1b6c0831 35707configure-target-libmpx: stage_current
5286fdef 35708@endif gcc-bootstrap
1b6c0831
L
35709@if target-libmpx
35710maybe-configure-target-libmpx: configure-target-libmpx
35711configure-target-libmpx:
5286fdef
L
35712 @r=`${PWD_COMMAND}`; export r; \
35713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 35714 echo "Checking multilib configuration for libmpx..."; \
22121df0
L
35715 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
35716 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
35717 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
35718 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
35719 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 35720 else \
1b6c0831
L
35721 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
35722 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
35723 fi; \
35724 else \
1b6c0831 35725 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 35726 fi; \
1b6c0831 35727 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
22121df0 35728 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831
L
35729 $(NORMAL_TARGET_EXPORTS) \
35730 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
35731 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
35732 case $(srcdir) in \
35733 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 35734 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
35735 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35736 esac; \
1b6c0831 35737 module_srcdir=libmpx; \
5286fdef 35738 rm -f no-such-file || : ; \
1b6c0831
L
35739 CONFIG_SITE=no-such-file $(SHELL) \
35740 $$s/$$module_srcdir/configure \
35741 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 35742 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35743 --target=${target_alias} \
5286fdef 35744 || exit 1
1b6c0831 35745@endif target-libmpx
5286fdef
L
35746
35747
35748
1b6c0831
L
35749.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
35750maybe-configure-stage1-target-libmpx:
35751@if target-libmpx-bootstrap
35752maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
35753configure-stage1-target-libmpx:
5eb08693 35754 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 35755 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
35756 @r=`${PWD_COMMAND}`; export r; \
35757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35758 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831 35759 echo "Checking multilib configuration for libmpx..."; \
22121df0 35760 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
35761 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
35762 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
35763 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 35764 else \
1b6c0831
L
35765 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
35766 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
35767 fi; \
35768 else \
1b6c0831 35769 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 35770 fi; \
1b6c0831
L
35771 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
35772 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
35773 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35774 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35775 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35776 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx; \
35777 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 35778 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
35779 case $(srcdir) in \
35780 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 35781 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
35782 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35783 esac; \
1b6c0831
L
35784 module_srcdir=libmpx; \
35785 $(SHELL) $$s/$$module_srcdir/configure \
35786 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 35787 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
35788 --target=${target_alias} \
35789 \
5eb08693 35790 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 35791@endif target-libmpx-bootstrap
5eb08693 35792
1b6c0831
L
35793.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
35794maybe-configure-stage2-target-libmpx:
35795@if target-libmpx-bootstrap
35796maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
35797configure-stage2-target-libmpx:
5eb08693 35798 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 35799 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
35800 @r=`${PWD_COMMAND}`; export r; \
35801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35802 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 35803 echo "Checking multilib configuration for libmpx..."; \
22121df0 35804 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
35805 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
35806 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
35807 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 35808 else \
1b6c0831
L
35809 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
35810 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
35811 fi; \
35812 else \
1b6c0831 35813 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 35814 fi; \
1b6c0831
L
35815 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
35816 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
35817 \
35818 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35819 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35820 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35821 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx; \
35822 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 35823 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
35824 case $(srcdir) in \
35825 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 35826 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
35827 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35828 esac; \
1b6c0831
L
35829 module_srcdir=libmpx; \
35830 $(SHELL) $$s/$$module_srcdir/configure \
35831 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 35832 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35833 --target=${target_alias} \
22121df0 35834 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 35835 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 35836@endif target-libmpx-bootstrap
5eb08693 35837
1b6c0831
L
35838.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
35839maybe-configure-stage3-target-libmpx:
35840@if target-libmpx-bootstrap
35841maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
35842configure-stage3-target-libmpx:
5eb08693 35843 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 35844 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
35845 @r=`${PWD_COMMAND}`; export r; \
35846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35847 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 35848 echo "Checking multilib configuration for libmpx..."; \
22121df0 35849 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
35850 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
35851 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
35852 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 35853 else \
1b6c0831
L
35854 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
35855 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
35856 fi; \
35857 else \
1b6c0831 35858 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 35859 fi; \
1b6c0831
L
35860 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
35861 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
35862 \
35863 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35864 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35865 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35866 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx; \
35867 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 35868 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
35869 case $(srcdir) in \
35870 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 35871 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
35872 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35873 esac; \
1b6c0831
L
35874 module_srcdir=libmpx; \
35875 $(SHELL) $$s/$$module_srcdir/configure \
35876 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 35877 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35878 --target=${target_alias} \
22121df0 35879 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 35880 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 35881@endif target-libmpx-bootstrap
5eb08693 35882
1b6c0831
L
35883.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
35884maybe-configure-stage4-target-libmpx:
35885@if target-libmpx-bootstrap
35886maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
35887configure-stage4-target-libmpx:
5eb08693 35888 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 35889 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
35890 @r=`${PWD_COMMAND}`; export r; \
35891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35892 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 35893 echo "Checking multilib configuration for libmpx..."; \
22121df0 35894 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
35895 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
35896 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
35897 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 35898 else \
1b6c0831
L
35899 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
35900 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
35901 fi; \
35902 else \
1b6c0831 35903 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 35904 fi; \
1b6c0831
L
35905 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
35906 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
35907 \
35908 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35909 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35910 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35911 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx; \
35912 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 35913 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
35914 case $(srcdir) in \
35915 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 35916 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
35917 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35918 esac; \
1b6c0831
L
35919 module_srcdir=libmpx; \
35920 $(SHELL) $$s/$$module_srcdir/configure \
35921 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 35922 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35923 --target=${target_alias} \
22121df0 35924 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 35925 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 35926@endif target-libmpx-bootstrap
5eb08693 35927
1b6c0831
L
35928.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
35929maybe-configure-stageprofile-target-libmpx:
35930@if target-libmpx-bootstrap
35931maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
35932configure-stageprofile-target-libmpx:
5eb08693 35933 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 35934 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
35935 @r=`${PWD_COMMAND}`; export r; \
35936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35937 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 35938 echo "Checking multilib configuration for libmpx..."; \
22121df0 35939 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
35940 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
35941 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
35942 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 35943 else \
1b6c0831
L
35944 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
35945 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
35946 fi; \
35947 else \
1b6c0831 35948 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 35949 fi; \
1b6c0831
L
35950 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
35951 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
35952 \
35953 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35954 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35955 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35956 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx; \
35957 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 35958 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
35959 case $(srcdir) in \
35960 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 35961 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
35962 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35963 esac; \
1b6c0831
L
35964 module_srcdir=libmpx; \
35965 $(SHELL) $$s/$$module_srcdir/configure \
35966 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 35967 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 35968 --target=${target_alias} \
22121df0 35969 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 35970 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 35971@endif target-libmpx-bootstrap
5eb08693 35972
1b6c0831
L
35973.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
35974maybe-configure-stagefeedback-target-libmpx:
35975@if target-libmpx-bootstrap
35976maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
35977configure-stagefeedback-target-libmpx:
5eb08693 35978 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 35979 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
35980 @r=`${PWD_COMMAND}`; export r; \
35981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35982 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 35983 echo "Checking multilib configuration for libmpx..."; \
22121df0 35984 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
35985 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
35986 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
35987 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 35988 else \
1b6c0831
L
35989 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
35990 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
35991 fi; \
35992 else \
1b6c0831 35993 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 35994 fi; \
1b6c0831
L
35995 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
35996 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
35997 \
35998 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35999 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36000 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36001 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx; \
36002 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36003 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36004 case $(srcdir) in \
36005 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36006 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36007 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36008 esac; \
1b6c0831
L
36009 module_srcdir=libmpx; \
36010 $(SHELL) $$s/$$module_srcdir/configure \
36011 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36012 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36013 --target=${target_alias} \
22121df0 36014 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36015 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 36016@endif target-libmpx-bootstrap
5eb08693
L
36017
36018
36019
5286fdef
L
36020
36021
1b6c0831
L
36022.PHONY: all-target-libmpx maybe-all-target-libmpx
36023maybe-all-target-libmpx:
5286fdef 36024@if gcc-bootstrap
1b6c0831 36025all-target-libmpx: stage_current
5286fdef 36026@endif gcc-bootstrap
1b6c0831
L
36027@if target-libmpx
36028TARGET-target-libmpx=all
36029maybe-all-target-libmpx: all-target-libmpx
36030all-target-libmpx: configure-target-libmpx
5286fdef
L
36031 @r=`${PWD_COMMAND}`; export r; \
36032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
36033 $(NORMAL_TARGET_EXPORTS) \
36034 (cd $(TARGET_SUBDIR)/libmpx && \
36035 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36036 $(TARGET-target-libmpx))
36037@endif target-libmpx
5286fdef
L
36038
36039
36040
1b6c0831
L
36041.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
36042.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
36043maybe-all-stage1-target-libmpx:
36044maybe-clean-stage1-target-libmpx:
36045@if target-libmpx-bootstrap
36046maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
36047all-stage1: all-stage1-target-libmpx
36048TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
36049all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
36050 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36051 @r=`${PWD_COMMAND}`; export r; \
36052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36053 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
36054 $(NORMAL_TARGET_EXPORTS) \
36055 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36056 \
5eb08693
L
36057 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36058 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36059 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36060 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36061 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36062 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36063 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36064 $(EXTRA_TARGET_FLAGS) \
5eb08693 36065 \
05a13254 36066 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 36067 $(TARGET-stage1-target-libmpx)
5eb08693 36068
1b6c0831
L
36069maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
36070clean-stage1: clean-stage1-target-libmpx
36071clean-stage1-target-libmpx:
5eb08693 36072 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 36073 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36074 else \
1b6c0831 36075 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
36076 $(MAKE) stage1-start; \
36077 fi; \
1b6c0831
L
36078 cd $(TARGET_SUBDIR)/libmpx && \
36079 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 36080 clean
1b6c0831
L
36081@endif target-libmpx-bootstrap
36082
36083
36084.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
36085.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
36086maybe-all-stage2-target-libmpx:
36087maybe-clean-stage2-target-libmpx:
36088@if target-libmpx-bootstrap
36089maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
36090all-stage2: all-stage2-target-libmpx
36091TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
36092all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
36093 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36094 @r=`${PWD_COMMAND}`; export r; \
36095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36096 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 36097 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36098 \
1b6c0831 36099 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36100 \
5eb08693
L
36101 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36102 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36103 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36104 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36105 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36106 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36107 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36108 $(EXTRA_TARGET_FLAGS) \
05a13254 36109 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 36110 $(TARGET-stage2-target-libmpx)
5eb08693 36111
1b6c0831
L
36112maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
36113clean-stage2: clean-stage2-target-libmpx
36114clean-stage2-target-libmpx:
5eb08693 36115 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 36116 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36117 else \
1b6c0831 36118 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
36119 $(MAKE) stage2-start; \
36120 fi; \
1b6c0831
L
36121 cd $(TARGET_SUBDIR)/libmpx && \
36122 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36123@endif target-libmpx-bootstrap
36124
36125
36126.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
36127.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
36128maybe-all-stage3-target-libmpx:
36129maybe-clean-stage3-target-libmpx:
36130@if target-libmpx-bootstrap
36131maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
36132all-stage3: all-stage3-target-libmpx
36133TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
36134all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
36135 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36136 @r=`${PWD_COMMAND}`; export r; \
36137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36138 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 36139 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36140 \
1b6c0831 36141 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36142 \
5eb08693
L
36143 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36144 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36145 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36146 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36147 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36148 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36149 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36150 $(EXTRA_TARGET_FLAGS) \
05a13254 36151 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 36152 $(TARGET-stage3-target-libmpx)
5eb08693 36153
1b6c0831
L
36154maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
36155clean-stage3: clean-stage3-target-libmpx
36156clean-stage3-target-libmpx:
5eb08693 36157 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 36158 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36159 else \
1b6c0831 36160 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
36161 $(MAKE) stage3-start; \
36162 fi; \
1b6c0831
L
36163 cd $(TARGET_SUBDIR)/libmpx && \
36164 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36165@endif target-libmpx-bootstrap
36166
36167
36168.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
36169.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
36170maybe-all-stage4-target-libmpx:
36171maybe-clean-stage4-target-libmpx:
36172@if target-libmpx-bootstrap
36173maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
36174all-stage4: all-stage4-target-libmpx
36175TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
36176all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
36177 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36178 @r=`${PWD_COMMAND}`; export r; \
36179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36180 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 36181 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36182 \
1b6c0831 36183 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36184 \
5eb08693
L
36185 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36186 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36187 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36188 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36189 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36190 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36191 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36192 $(EXTRA_TARGET_FLAGS) \
05a13254 36193 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 36194 $(TARGET-stage4-target-libmpx)
5eb08693 36195
1b6c0831
L
36196maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
36197clean-stage4: clean-stage4-target-libmpx
36198clean-stage4-target-libmpx:
5eb08693 36199 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 36200 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36201 else \
1b6c0831 36202 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
36203 $(MAKE) stage4-start; \
36204 fi; \
1b6c0831
L
36205 cd $(TARGET_SUBDIR)/libmpx && \
36206 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36207@endif target-libmpx-bootstrap
36208
36209
36210.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
36211.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
36212maybe-all-stageprofile-target-libmpx:
36213maybe-clean-stageprofile-target-libmpx:
36214@if target-libmpx-bootstrap
36215maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
36216all-stageprofile: all-stageprofile-target-libmpx
36217TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
36218all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
36219 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36220 @r=`${PWD_COMMAND}`; export r; \
36221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36222 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 36223 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36224 \
1b6c0831 36225 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36226 \
5eb08693
L
36227 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36228 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36229 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36230 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36231 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36232 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36233 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36234 $(EXTRA_TARGET_FLAGS) \
05a13254 36235 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 36236 $(TARGET-stageprofile-target-libmpx)
5eb08693 36237
1b6c0831
L
36238maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
36239clean-stageprofile: clean-stageprofile-target-libmpx
36240clean-stageprofile-target-libmpx:
5eb08693 36241 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 36242 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36243 else \
1b6c0831 36244 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
36245 $(MAKE) stageprofile-start; \
36246 fi; \
1b6c0831
L
36247 cd $(TARGET_SUBDIR)/libmpx && \
36248 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36249@endif target-libmpx-bootstrap
36250
36251
36252.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
36253.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
36254maybe-all-stagefeedback-target-libmpx:
36255maybe-clean-stagefeedback-target-libmpx:
36256@if target-libmpx-bootstrap
36257maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
36258all-stagefeedback: all-stagefeedback-target-libmpx
36259TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
36260all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
36261 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36262 @r=`${PWD_COMMAND}`; export r; \
36263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36264 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 36265 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36266 \
1b6c0831 36267 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36268 \
5eb08693
L
36269 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36270 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36271 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36272 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36273 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36274 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36275 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36276 $(EXTRA_TARGET_FLAGS) \
05a13254 36277 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 36278 $(TARGET-stagefeedback-target-libmpx)
5eb08693 36279
1b6c0831
L
36280maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
36281clean-stagefeedback: clean-stagefeedback-target-libmpx
36282clean-stagefeedback-target-libmpx:
5eb08693 36283 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 36284 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36285 else \
1b6c0831 36286 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
36287 $(MAKE) stagefeedback-start; \
36288 fi; \
1b6c0831
L
36289 cd $(TARGET_SUBDIR)/libmpx && \
36290 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36291@endif target-libmpx-bootstrap
5eb08693
L
36292
36293
36294
36295
5286fdef
L
36296
36297
1b6c0831
L
36298.PHONY: check-target-libmpx maybe-check-target-libmpx
36299maybe-check-target-libmpx:
36300@if target-libmpx
36301maybe-check-target-libmpx: check-target-libmpx
5286fdef 36302
1b6c0831 36303check-target-libmpx:
5286fdef
L
36304 @: $(MAKE); $(unstage)
36305 @r=`${PWD_COMMAND}`; export r; \
36306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
36307 $(NORMAL_TARGET_EXPORTS) \
36308 (cd $(TARGET_SUBDIR)/libmpx && \
36309 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 36310
1b6c0831 36311@endif target-libmpx
5286fdef 36312
1b6c0831
L
36313.PHONY: install-target-libmpx maybe-install-target-libmpx
36314maybe-install-target-libmpx:
36315@if target-libmpx
36316maybe-install-target-libmpx: install-target-libmpx
5286fdef 36317
1b6c0831 36318install-target-libmpx: installdirs
5286fdef
L
36319 @: $(MAKE); $(unstage)
36320 @r=`${PWD_COMMAND}`; export r; \
36321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
36322 $(NORMAL_TARGET_EXPORTS) \
36323 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36324 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36325
1b6c0831 36326@endif target-libmpx
5286fdef 36327
1b6c0831
L
36328.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
36329maybe-install-strip-target-libmpx:
36330@if target-libmpx
36331maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 36332
1b6c0831 36333install-strip-target-libmpx: installdirs
5286fdef
L
36334 @: $(MAKE); $(unstage)
36335 @r=`${PWD_COMMAND}`; export r; \
36336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
36337 $(NORMAL_TARGET_EXPORTS) \
36338 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36339 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36340
1b6c0831 36341@endif target-libmpx
5286fdef
L
36342
36343# Other targets (info, dvi, pdf, etc.)
36344
1b6c0831
L
36345.PHONY: maybe-info-target-libmpx info-target-libmpx
36346maybe-info-target-libmpx:
36347@if target-libmpx
36348maybe-info-target-libmpx: info-target-libmpx
5286fdef 36349
1b6c0831
L
36350info-target-libmpx: \
36351 configure-target-libmpx
5286fdef 36352 @: $(MAKE); $(unstage)
22121df0 36353 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36354 r=`${PWD_COMMAND}`; export r; \
36355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36356 $(NORMAL_TARGET_EXPORTS) \
22121df0 36357 echo "Doing info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36358 for flag in $(EXTRA_TARGET_FLAGS); do \
36359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36360 done; \
1b6c0831 36361 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36364 "RANLIB=$${RANLIB}" \
36365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36366 info) \
36367 || exit 1
36368
1b6c0831 36369@endif target-libmpx
5286fdef 36370
1b6c0831
L
36371.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
36372maybe-dvi-target-libmpx:
36373@if target-libmpx
36374maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 36375
1b6c0831
L
36376dvi-target-libmpx: \
36377 configure-target-libmpx
5286fdef 36378 @: $(MAKE); $(unstage)
22121df0 36379 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36380 r=`${PWD_COMMAND}`; export r; \
36381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36382 $(NORMAL_TARGET_EXPORTS) \
22121df0 36383 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36384 for flag in $(EXTRA_TARGET_FLAGS); do \
36385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36386 done; \
1b6c0831 36387 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36390 "RANLIB=$${RANLIB}" \
36391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36392 dvi) \
36393 || exit 1
36394
1b6c0831 36395@endif target-libmpx
5286fdef 36396
1b6c0831
L
36397.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
36398maybe-pdf-target-libmpx:
36399@if target-libmpx
36400maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 36401
1b6c0831
L
36402pdf-target-libmpx: \
36403 configure-target-libmpx
5286fdef 36404 @: $(MAKE); $(unstage)
22121df0 36405 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36406 r=`${PWD_COMMAND}`; export r; \
36407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36408 $(NORMAL_TARGET_EXPORTS) \
22121df0 36409 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36410 for flag in $(EXTRA_TARGET_FLAGS); do \
36411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36412 done; \
1b6c0831 36413 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36416 "RANLIB=$${RANLIB}" \
36417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36418 pdf) \
36419 || exit 1
36420
1b6c0831 36421@endif target-libmpx
5286fdef 36422
1b6c0831
L
36423.PHONY: maybe-html-target-libmpx html-target-libmpx
36424maybe-html-target-libmpx:
36425@if target-libmpx
36426maybe-html-target-libmpx: html-target-libmpx
5286fdef 36427
1b6c0831
L
36428html-target-libmpx: \
36429 configure-target-libmpx
5286fdef 36430 @: $(MAKE); $(unstage)
22121df0 36431 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36432 r=`${PWD_COMMAND}`; export r; \
36433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36434 $(NORMAL_TARGET_EXPORTS) \
22121df0 36435 echo "Doing html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36436 for flag in $(EXTRA_TARGET_FLAGS); do \
36437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36438 done; \
1b6c0831 36439 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36442 "RANLIB=$${RANLIB}" \
36443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36444 html) \
36445 || exit 1
36446
1b6c0831 36447@endif target-libmpx
5286fdef 36448
1b6c0831
L
36449.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
36450maybe-TAGS-target-libmpx:
36451@if target-libmpx
36452maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 36453
1b6c0831
L
36454TAGS-target-libmpx: \
36455 configure-target-libmpx
5286fdef 36456 @: $(MAKE); $(unstage)
22121df0 36457 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36458 r=`${PWD_COMMAND}`; export r; \
36459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36460 $(NORMAL_TARGET_EXPORTS) \
22121df0 36461 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36462 for flag in $(EXTRA_TARGET_FLAGS); do \
36463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36464 done; \
1b6c0831 36465 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
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 TAGS) \
36471 || exit 1
36472
1b6c0831 36473@endif target-libmpx
5286fdef 36474
1b6c0831
L
36475.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
36476maybe-install-info-target-libmpx:
36477@if target-libmpx
36478maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 36479
1b6c0831
L
36480install-info-target-libmpx: \
36481 configure-target-libmpx \
36482 info-target-libmpx
5286fdef 36483 @: $(MAKE); $(unstage)
22121df0 36484 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36485 r=`${PWD_COMMAND}`; export r; \
36486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36487 $(NORMAL_TARGET_EXPORTS) \
22121df0 36488 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36489 for flag in $(EXTRA_TARGET_FLAGS); do \
36490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36491 done; \
1b6c0831 36492 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
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-info) \
36498 || exit 1
36499
1b6c0831 36500@endif target-libmpx
5286fdef 36501
1b6c0831
L
36502.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
36503maybe-install-pdf-target-libmpx:
36504@if target-libmpx
36505maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 36506
1b6c0831
L
36507install-pdf-target-libmpx: \
36508 configure-target-libmpx \
36509 pdf-target-libmpx
5286fdef 36510 @: $(MAKE); $(unstage)
22121df0 36511 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36512 r=`${PWD_COMMAND}`; export r; \
36513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36514 $(NORMAL_TARGET_EXPORTS) \
22121df0 36515 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36516 for flag in $(EXTRA_TARGET_FLAGS); do \
36517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36518 done; \
1b6c0831 36519 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
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-pdf) \
36525 || exit 1
36526
1b6c0831 36527@endif target-libmpx
5286fdef 36528
1b6c0831
L
36529.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
36530maybe-install-html-target-libmpx:
36531@if target-libmpx
36532maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 36533
1b6c0831
L
36534install-html-target-libmpx: \
36535 configure-target-libmpx \
36536 html-target-libmpx
5286fdef 36537 @: $(MAKE); $(unstage)
22121df0 36538 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36539 r=`${PWD_COMMAND}`; export r; \
36540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36541 $(NORMAL_TARGET_EXPORTS) \
22121df0 36542 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36543 for flag in $(EXTRA_TARGET_FLAGS); do \
36544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36545 done; \
1b6c0831 36546 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36549 "RANLIB=$${RANLIB}" \
36550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36551 install-html) \
36552 || exit 1
36553
1b6c0831 36554@endif target-libmpx
5286fdef 36555
1b6c0831
L
36556.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
36557maybe-installcheck-target-libmpx:
36558@if target-libmpx
36559maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 36560
1b6c0831
L
36561installcheck-target-libmpx: \
36562 configure-target-libmpx
5286fdef 36563 @: $(MAKE); $(unstage)
22121df0 36564 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36565 r=`${PWD_COMMAND}`; export r; \
36566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36567 $(NORMAL_TARGET_EXPORTS) \
22121df0 36568 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36569 for flag in $(EXTRA_TARGET_FLAGS); do \
36570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36571 done; \
1b6c0831 36572 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36575 "RANLIB=$${RANLIB}" \
36576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36577 installcheck) \
36578 || exit 1
36579
1b6c0831 36580@endif target-libmpx
5286fdef 36581
1b6c0831
L
36582.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
36583maybe-mostlyclean-target-libmpx:
36584@if target-libmpx
36585maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 36586
1b6c0831 36587mostlyclean-target-libmpx:
5286fdef 36588 @: $(MAKE); $(unstage)
22121df0 36589 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36590 r=`${PWD_COMMAND}`; export r; \
36591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36592 $(NORMAL_TARGET_EXPORTS) \
22121df0 36593 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36594 for flag in $(EXTRA_TARGET_FLAGS); do \
36595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36596 done; \
1b6c0831 36597 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36600 "RANLIB=$${RANLIB}" \
36601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36602 mostlyclean) \
36603 || exit 1
36604
1b6c0831 36605@endif target-libmpx
5286fdef 36606
1b6c0831
L
36607.PHONY: maybe-clean-target-libmpx clean-target-libmpx
36608maybe-clean-target-libmpx:
36609@if target-libmpx
36610maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 36611
1b6c0831 36612clean-target-libmpx:
5286fdef 36613 @: $(MAKE); $(unstage)
22121df0 36614 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36615 r=`${PWD_COMMAND}`; export r; \
36616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36617 $(NORMAL_TARGET_EXPORTS) \
22121df0 36618 echo "Doing clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36619 for flag in $(EXTRA_TARGET_FLAGS); do \
36620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36621 done; \
1b6c0831 36622 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36625 "RANLIB=$${RANLIB}" \
36626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36627 clean) \
36628 || exit 1
36629
1b6c0831 36630@endif target-libmpx
5286fdef 36631
1b6c0831
L
36632.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
36633maybe-distclean-target-libmpx:
36634@if target-libmpx
36635maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 36636
1b6c0831 36637distclean-target-libmpx:
5286fdef 36638 @: $(MAKE); $(unstage)
22121df0 36639 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36640 r=`${PWD_COMMAND}`; export r; \
36641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36642 $(NORMAL_TARGET_EXPORTS) \
22121df0 36643 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36644 for flag in $(EXTRA_TARGET_FLAGS); do \
36645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36646 done; \
1b6c0831 36647 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36650 "RANLIB=$${RANLIB}" \
36651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36652 distclean) \
36653 || exit 1
36654
1b6c0831 36655@endif target-libmpx
5286fdef 36656
1b6c0831
L
36657.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
36658maybe-maintainer-clean-target-libmpx:
36659@if target-libmpx
36660maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 36661
1b6c0831 36662maintainer-clean-target-libmpx:
5286fdef 36663 @: $(MAKE); $(unstage)
22121df0 36664 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36665 r=`${PWD_COMMAND}`; export r; \
36666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36667 $(NORMAL_TARGET_EXPORTS) \
22121df0 36668 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36669 for flag in $(EXTRA_TARGET_FLAGS); do \
36670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36671 done; \
1b6c0831 36672 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36675 "RANLIB=$${RANLIB}" \
36676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36677 maintainer-clean) \
36678 || exit 1
36679
1b6c0831 36680@endif target-libmpx
5286fdef
L
36681
36682
36683
36684
36685
95e43135
JBG
36686.PHONY: configure-target-libvtv maybe-configure-target-libvtv
36687maybe-configure-target-libvtv:
36688@if gcc-bootstrap
36689configure-target-libvtv: stage_current
36690@endif gcc-bootstrap
36691@if target-libvtv
36692maybe-configure-target-libvtv: configure-target-libvtv
36693configure-target-libvtv:
36694 @r=`${PWD_COMMAND}`; export r; \
36695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36696 echo "Checking multilib configuration for libvtv..."; \
22121df0
L
36697 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
36698 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
36699 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
36700 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
36701 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
36702 else \
36703 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
36704 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
36705 fi; \
36706 else \
36707 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
36708 fi; \
36709 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
22121df0 36710 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
36711 $(RAW_CXX_TARGET_EXPORTS) \
36712 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
36713 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
36714 case $(srcdir) in \
36715 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36716 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
36717 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36718 esac; \
1b6c0831 36719 module_srcdir=libvtv; \
95e43135 36720 rm -f no-such-file || : ; \
1b6c0831
L
36721 CONFIG_SITE=no-such-file $(SHELL) \
36722 $$s/$$module_srcdir/configure \
36723 --srcdir=$${topdir}/$$module_srcdir \
95e43135 36724 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36725 --target=${target_alias} \
95e43135
JBG
36726 || exit 1
36727@endif target-libvtv
36728
36729
36730
36731.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
36732maybe-configure-stage1-target-libvtv:
36733@if target-libvtv-bootstrap
36734maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
36735configure-stage1-target-libvtv:
36736 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36737 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
36738 @r=`${PWD_COMMAND}`; export r; \
36739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36740 TFLAGS="$(STAGE1_TFLAGS)"; \
36741 echo "Checking multilib configuration for libvtv..."; \
22121df0 36742 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
36743 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
36744 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
36745 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
36746 else \
36747 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
36748 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
36749 fi; \
36750 else \
36751 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
36752 fi; \
36753 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
36754 $(RAW_CXX_TARGET_EXPORTS) \
36755 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36756 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36757 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36758 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv; \
36759 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
36760 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
36761 case $(srcdir) in \
36762 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36763 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
36764 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36765 esac; \
1b6c0831
L
36766 module_srcdir=libvtv; \
36767 $(SHELL) $$s/$$module_srcdir/configure \
36768 --srcdir=$${topdir}/$$module_srcdir \
95e43135 36769 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
36770 --target=${target_alias} \
36771 \
95e43135
JBG
36772 $(STAGE1_CONFIGURE_FLAGS)
36773@endif target-libvtv-bootstrap
36774
36775.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
36776maybe-configure-stage2-target-libvtv:
36777@if target-libvtv-bootstrap
36778maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
36779configure-stage2-target-libvtv:
36780 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36781 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
36782 @r=`${PWD_COMMAND}`; export r; \
36783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36784 TFLAGS="$(STAGE2_TFLAGS)"; \
36785 echo "Checking multilib configuration for libvtv..."; \
22121df0 36786 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
36787 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
36788 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
36789 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
36790 else \
36791 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
36792 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
36793 fi; \
36794 else \
36795 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
36796 fi; \
36797 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
36798 $(RAW_CXX_TARGET_EXPORTS) \
36799 \
36800 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36801 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36802 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36803 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv; \
36804 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
36805 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
36806 case $(srcdir) in \
36807 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36808 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
36809 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36810 esac; \
1b6c0831
L
36811 module_srcdir=libvtv; \
36812 $(SHELL) $$s/$$module_srcdir/configure \
36813 --srcdir=$${topdir}/$$module_srcdir \
95e43135 36814 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36815 --target=${target_alias} \
22121df0 36816 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
36817 $(STAGE2_CONFIGURE_FLAGS)
36818@endif target-libvtv-bootstrap
36819
36820.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
36821maybe-configure-stage3-target-libvtv:
36822@if target-libvtv-bootstrap
36823maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
36824configure-stage3-target-libvtv:
36825 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36826 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
36827 @r=`${PWD_COMMAND}`; export r; \
36828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36829 TFLAGS="$(STAGE3_TFLAGS)"; \
36830 echo "Checking multilib configuration for libvtv..."; \
22121df0 36831 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
36832 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
36833 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
36834 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
36835 else \
36836 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
36837 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
36838 fi; \
36839 else \
36840 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
36841 fi; \
36842 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
36843 $(RAW_CXX_TARGET_EXPORTS) \
36844 \
36845 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36846 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36847 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36848 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv; \
36849 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
36850 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
36851 case $(srcdir) in \
36852 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36853 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
36854 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36855 esac; \
1b6c0831
L
36856 module_srcdir=libvtv; \
36857 $(SHELL) $$s/$$module_srcdir/configure \
36858 --srcdir=$${topdir}/$$module_srcdir \
95e43135 36859 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36860 --target=${target_alias} \
22121df0 36861 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
36862 $(STAGE3_CONFIGURE_FLAGS)
36863@endif target-libvtv-bootstrap
36864
36865.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
36866maybe-configure-stage4-target-libvtv:
36867@if target-libvtv-bootstrap
36868maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
36869configure-stage4-target-libvtv:
36870 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36871 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
36872 @r=`${PWD_COMMAND}`; export r; \
36873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36874 TFLAGS="$(STAGE4_TFLAGS)"; \
36875 echo "Checking multilib configuration for libvtv..."; \
22121df0 36876 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
36877 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
36878 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
36879 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
36880 else \
36881 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
36882 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
36883 fi; \
36884 else \
36885 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
36886 fi; \
36887 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
36888 $(RAW_CXX_TARGET_EXPORTS) \
36889 \
36890 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36891 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36892 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36893 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv; \
36894 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
36895 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
36896 case $(srcdir) in \
36897 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36898 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
36899 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36900 esac; \
1b6c0831
L
36901 module_srcdir=libvtv; \
36902 $(SHELL) $$s/$$module_srcdir/configure \
36903 --srcdir=$${topdir}/$$module_srcdir \
95e43135 36904 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36905 --target=${target_alias} \
22121df0 36906 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
36907 $(STAGE4_CONFIGURE_FLAGS)
36908@endif target-libvtv-bootstrap
36909
36910.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
36911maybe-configure-stageprofile-target-libvtv:
36912@if target-libvtv-bootstrap
36913maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
36914configure-stageprofile-target-libvtv:
36915 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36916 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
36917 @r=`${PWD_COMMAND}`; export r; \
36918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36919 TFLAGS="$(STAGEprofile_TFLAGS)"; \
36920 echo "Checking multilib configuration for libvtv..."; \
22121df0 36921 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
36922 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
36923 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
36924 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
36925 else \
36926 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
36927 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
36928 fi; \
36929 else \
36930 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
36931 fi; \
36932 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
36933 $(RAW_CXX_TARGET_EXPORTS) \
36934 \
36935 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36936 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36937 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36938 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv; \
36939 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
36940 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
36941 case $(srcdir) in \
36942 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36943 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
36944 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36945 esac; \
1b6c0831
L
36946 module_srcdir=libvtv; \
36947 $(SHELL) $$s/$$module_srcdir/configure \
36948 --srcdir=$${topdir}/$$module_srcdir \
95e43135 36949 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36950 --target=${target_alias} \
22121df0 36951 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
36952 $(STAGEprofile_CONFIGURE_FLAGS)
36953@endif target-libvtv-bootstrap
36954
36955.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
36956maybe-configure-stagefeedback-target-libvtv:
36957@if target-libvtv-bootstrap
36958maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
36959configure-stagefeedback-target-libvtv:
36960 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36961 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
36962 @r=`${PWD_COMMAND}`; export r; \
36963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36964 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
36965 echo "Checking multilib configuration for libvtv..."; \
22121df0 36966 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
36967 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
36968 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
36969 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
36970 else \
36971 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
36972 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
36973 fi; \
36974 else \
36975 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
36976 fi; \
36977 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
36978 $(RAW_CXX_TARGET_EXPORTS) \
36979 \
36980 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36981 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36982 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36983 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv; \
36984 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
36985 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
36986 case $(srcdir) in \
36987 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36988 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
36989 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36990 esac; \
1b6c0831
L
36991 module_srcdir=libvtv; \
36992 $(SHELL) $$s/$$module_srcdir/configure \
36993 --srcdir=$${topdir}/$$module_srcdir \
95e43135 36994 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36995 --target=${target_alias} \
22121df0 36996 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
36997 $(STAGEfeedback_CONFIGURE_FLAGS)
36998@endif target-libvtv-bootstrap
36999
37000
37001
37002
37003
37004.PHONY: all-target-libvtv maybe-all-target-libvtv
37005maybe-all-target-libvtv:
37006@if gcc-bootstrap
37007all-target-libvtv: stage_current
37008@endif gcc-bootstrap
37009@if target-libvtv
37010TARGET-target-libvtv=all
37011maybe-all-target-libvtv: all-target-libvtv
37012all-target-libvtv: configure-target-libvtv
37013 @r=`${PWD_COMMAND}`; export r; \
37014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37015 $(RAW_CXX_TARGET_EXPORTS) \
37016 (cd $(TARGET_SUBDIR)/libvtv && \
37017 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
37018 $(TARGET-target-libvtv))
37019@endif target-libvtv
37020
37021
37022
37023.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
37024.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
37025maybe-all-stage1-target-libvtv:
37026maybe-clean-stage1-target-libvtv:
37027@if target-libvtv-bootstrap
37028maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
37029all-stage1: all-stage1-target-libvtv
37030TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
37031all-stage1-target-libvtv: configure-stage1-target-libvtv
37032 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
37033 @r=`${PWD_COMMAND}`; export r; \
37034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37035 TFLAGS="$(STAGE1_TFLAGS)"; \
37036 $(RAW_CXX_TARGET_EXPORTS) \
37037 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37038 \
95e43135
JBG
37039 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37040 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37041 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37042 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37043 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37044 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37045 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37046 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
37047 \
05a13254 37048 TFLAGS="$(STAGE1_TFLAGS)" \
95e43135
JBG
37049 $(TARGET-stage1-target-libvtv)
37050
37051maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
37052clean-stage1: clean-stage1-target-libvtv
37053clean-stage1-target-libvtv:
37054 @if [ $(current_stage) = stage1 ]; then \
37055 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37056 else \
37057 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
37058 $(MAKE) stage1-start; \
37059 fi; \
37060 cd $(TARGET_SUBDIR)/libvtv && \
37061 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
37062 clean
37063@endif target-libvtv-bootstrap
37064
37065
37066.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
37067.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
37068maybe-all-stage2-target-libvtv:
37069maybe-clean-stage2-target-libvtv:
37070@if target-libvtv-bootstrap
37071maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
37072all-stage2: all-stage2-target-libvtv
37073TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
37074all-stage2-target-libvtv: configure-stage2-target-libvtv
37075 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
37076 @r=`${PWD_COMMAND}`; export r; \
37077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37078 TFLAGS="$(STAGE2_TFLAGS)"; \
37079 $(RAW_CXX_TARGET_EXPORTS) \
37080 \
37081 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37082 \
95e43135
JBG
37083 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37084 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37085 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37086 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37087 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37088 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37089 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37090 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37091 TFLAGS="$(STAGE2_TFLAGS)" \
95e43135
JBG
37092 $(TARGET-stage2-target-libvtv)
37093
37094maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
37095clean-stage2: clean-stage2-target-libvtv
37096clean-stage2-target-libvtv:
37097 @if [ $(current_stage) = stage2 ]; then \
37098 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37099 else \
37100 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
37101 $(MAKE) stage2-start; \
37102 fi; \
37103 cd $(TARGET_SUBDIR)/libvtv && \
37104 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37105@endif target-libvtv-bootstrap
37106
37107
37108.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
37109.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
37110maybe-all-stage3-target-libvtv:
37111maybe-clean-stage3-target-libvtv:
37112@if target-libvtv-bootstrap
37113maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
37114all-stage3: all-stage3-target-libvtv
37115TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
37116all-stage3-target-libvtv: configure-stage3-target-libvtv
37117 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
37118 @r=`${PWD_COMMAND}`; export r; \
37119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37120 TFLAGS="$(STAGE3_TFLAGS)"; \
37121 $(RAW_CXX_TARGET_EXPORTS) \
37122 \
37123 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37124 \
95e43135
JBG
37125 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37126 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37127 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37128 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37129 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37130 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37131 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37132 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37133 TFLAGS="$(STAGE3_TFLAGS)" \
95e43135
JBG
37134 $(TARGET-stage3-target-libvtv)
37135
37136maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
37137clean-stage3: clean-stage3-target-libvtv
37138clean-stage3-target-libvtv:
37139 @if [ $(current_stage) = stage3 ]; then \
37140 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37141 else \
37142 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
37143 $(MAKE) stage3-start; \
37144 fi; \
37145 cd $(TARGET_SUBDIR)/libvtv && \
37146 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37147@endif target-libvtv-bootstrap
37148
37149
37150.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
37151.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
37152maybe-all-stage4-target-libvtv:
37153maybe-clean-stage4-target-libvtv:
37154@if target-libvtv-bootstrap
37155maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
37156all-stage4: all-stage4-target-libvtv
37157TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
37158all-stage4-target-libvtv: configure-stage4-target-libvtv
37159 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
37160 @r=`${PWD_COMMAND}`; export r; \
37161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37162 TFLAGS="$(STAGE4_TFLAGS)"; \
37163 $(RAW_CXX_TARGET_EXPORTS) \
37164 \
37165 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37166 \
95e43135
JBG
37167 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37168 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37169 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37170 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37171 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37172 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37173 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37174 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37175 TFLAGS="$(STAGE4_TFLAGS)" \
95e43135
JBG
37176 $(TARGET-stage4-target-libvtv)
37177
37178maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
37179clean-stage4: clean-stage4-target-libvtv
37180clean-stage4-target-libvtv:
37181 @if [ $(current_stage) = stage4 ]; then \
37182 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37183 else \
37184 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
37185 $(MAKE) stage4-start; \
37186 fi; \
37187 cd $(TARGET_SUBDIR)/libvtv && \
37188 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37189@endif target-libvtv-bootstrap
37190
37191
37192.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
37193.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
37194maybe-all-stageprofile-target-libvtv:
37195maybe-clean-stageprofile-target-libvtv:
37196@if target-libvtv-bootstrap
37197maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
37198all-stageprofile: all-stageprofile-target-libvtv
37199TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
37200all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
37201 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
37202 @r=`${PWD_COMMAND}`; export r; \
37203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37204 TFLAGS="$(STAGEprofile_TFLAGS)"; \
37205 $(RAW_CXX_TARGET_EXPORTS) \
37206 \
37207 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37208 \
95e43135
JBG
37209 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37210 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37211 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37212 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37213 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37214 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37215 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37216 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37217 TFLAGS="$(STAGEprofile_TFLAGS)" \
95e43135
JBG
37218 $(TARGET-stageprofile-target-libvtv)
37219
37220maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
37221clean-stageprofile: clean-stageprofile-target-libvtv
37222clean-stageprofile-target-libvtv:
37223 @if [ $(current_stage) = stageprofile ]; then \
37224 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37225 else \
37226 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
37227 $(MAKE) stageprofile-start; \
37228 fi; \
37229 cd $(TARGET_SUBDIR)/libvtv && \
37230 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37231@endif target-libvtv-bootstrap
37232
37233
37234.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
37235.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
37236maybe-all-stagefeedback-target-libvtv:
37237maybe-clean-stagefeedback-target-libvtv:
37238@if target-libvtv-bootstrap
37239maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
37240all-stagefeedback: all-stagefeedback-target-libvtv
37241TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
37242all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
37243 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
37244 @r=`${PWD_COMMAND}`; export r; \
37245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37246 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
37247 $(RAW_CXX_TARGET_EXPORTS) \
37248 \
37249 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37250 \
95e43135
JBG
37251 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37252 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37253 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37254 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37255 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37256 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37257 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37258 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37259 TFLAGS="$(STAGEfeedback_TFLAGS)" \
95e43135
JBG
37260 $(TARGET-stagefeedback-target-libvtv)
37261
37262maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
37263clean-stagefeedback: clean-stagefeedback-target-libvtv
37264clean-stagefeedback-target-libvtv:
37265 @if [ $(current_stage) = stagefeedback ]; then \
37266 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37267 else \
37268 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
37269 $(MAKE) stagefeedback-start; \
37270 fi; \
37271 cd $(TARGET_SUBDIR)/libvtv && \
37272 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37273@endif target-libvtv-bootstrap
37274
37275
37276
37277
37278
37279
37280.PHONY: check-target-libvtv maybe-check-target-libvtv
37281maybe-check-target-libvtv:
37282@if target-libvtv
37283maybe-check-target-libvtv: check-target-libvtv
37284
37285check-target-libvtv:
37286 @: $(MAKE); $(unstage)
37287 @r=`${PWD_COMMAND}`; export r; \
37288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37289 $(RAW_CXX_TARGET_EXPORTS) \
37290 (cd $(TARGET_SUBDIR)/libvtv && \
37291 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
37292
37293@endif target-libvtv
37294
37295.PHONY: install-target-libvtv maybe-install-target-libvtv
37296maybe-install-target-libvtv:
37297@if target-libvtv
37298maybe-install-target-libvtv: install-target-libvtv
37299
37300install-target-libvtv: installdirs
37301 @: $(MAKE); $(unstage)
37302 @r=`${PWD_COMMAND}`; export r; \
37303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37304 $(RAW_CXX_TARGET_EXPORTS) \
37305 (cd $(TARGET_SUBDIR)/libvtv && \
37306 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37307
37308@endif target-libvtv
37309
37310.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
37311maybe-install-strip-target-libvtv:
37312@if target-libvtv
37313maybe-install-strip-target-libvtv: install-strip-target-libvtv
37314
37315install-strip-target-libvtv: installdirs
37316 @: $(MAKE); $(unstage)
37317 @r=`${PWD_COMMAND}`; export r; \
37318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37319 $(RAW_CXX_TARGET_EXPORTS) \
37320 (cd $(TARGET_SUBDIR)/libvtv && \
37321 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37322
37323@endif target-libvtv
37324
37325# Other targets (info, dvi, pdf, etc.)
37326
37327.PHONY: maybe-info-target-libvtv info-target-libvtv
37328maybe-info-target-libvtv:
37329@if target-libvtv
37330maybe-info-target-libvtv: info-target-libvtv
37331
37332info-target-libvtv: \
37333 configure-target-libvtv
37334 @: $(MAKE); $(unstage)
22121df0 37335 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37336 r=`${PWD_COMMAND}`; export r; \
37337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37338 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37339 echo "Doing info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37340 for flag in $(EXTRA_TARGET_FLAGS); do \
37341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37342 done; \
37343 (cd $(TARGET_SUBDIR)/libvtv && \
37344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37346 "RANLIB=$${RANLIB}" \
37347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37348 info) \
37349 || exit 1
37350
37351@endif target-libvtv
37352
37353.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
37354maybe-dvi-target-libvtv:
37355@if target-libvtv
37356maybe-dvi-target-libvtv: dvi-target-libvtv
37357
37358dvi-target-libvtv: \
37359 configure-target-libvtv
37360 @: $(MAKE); $(unstage)
22121df0 37361 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37362 r=`${PWD_COMMAND}`; export r; \
37363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37364 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37365 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37366 for flag in $(EXTRA_TARGET_FLAGS); do \
37367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37368 done; \
37369 (cd $(TARGET_SUBDIR)/libvtv && \
37370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37372 "RANLIB=$${RANLIB}" \
37373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37374 dvi) \
37375 || exit 1
37376
37377@endif target-libvtv
37378
37379.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
37380maybe-pdf-target-libvtv:
37381@if target-libvtv
37382maybe-pdf-target-libvtv: pdf-target-libvtv
37383
37384pdf-target-libvtv: \
37385 configure-target-libvtv
37386 @: $(MAKE); $(unstage)
22121df0 37387 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37388 r=`${PWD_COMMAND}`; export r; \
37389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37390 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37391 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37392 for flag in $(EXTRA_TARGET_FLAGS); do \
37393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37394 done; \
37395 (cd $(TARGET_SUBDIR)/libvtv && \
37396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37398 "RANLIB=$${RANLIB}" \
37399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37400 pdf) \
37401 || exit 1
37402
37403@endif target-libvtv
37404
37405.PHONY: maybe-html-target-libvtv html-target-libvtv
37406maybe-html-target-libvtv:
37407@if target-libvtv
37408maybe-html-target-libvtv: html-target-libvtv
37409
37410html-target-libvtv: \
37411 configure-target-libvtv
37412 @: $(MAKE); $(unstage)
22121df0 37413 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37414 r=`${PWD_COMMAND}`; export r; \
37415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37416 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37417 echo "Doing html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37418 for flag in $(EXTRA_TARGET_FLAGS); do \
37419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37420 done; \
37421 (cd $(TARGET_SUBDIR)/libvtv && \
37422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37424 "RANLIB=$${RANLIB}" \
37425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37426 html) \
37427 || exit 1
37428
37429@endif target-libvtv
37430
37431.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
37432maybe-TAGS-target-libvtv:
37433@if target-libvtv
37434maybe-TAGS-target-libvtv: TAGS-target-libvtv
37435
37436TAGS-target-libvtv: \
37437 configure-target-libvtv
37438 @: $(MAKE); $(unstage)
22121df0 37439 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37440 r=`${PWD_COMMAND}`; export r; \
37441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37442 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37443 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37444 for flag in $(EXTRA_TARGET_FLAGS); do \
37445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37446 done; \
37447 (cd $(TARGET_SUBDIR)/libvtv && \
37448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37450 "RANLIB=$${RANLIB}" \
37451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37452 TAGS) \
37453 || exit 1
37454
37455@endif target-libvtv
37456
37457.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
37458maybe-install-info-target-libvtv:
37459@if target-libvtv
37460maybe-install-info-target-libvtv: install-info-target-libvtv
37461
37462install-info-target-libvtv: \
37463 configure-target-libvtv \
37464 info-target-libvtv
37465 @: $(MAKE); $(unstage)
22121df0 37466 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37467 r=`${PWD_COMMAND}`; export r; \
37468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37469 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37470 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37471 for flag in $(EXTRA_TARGET_FLAGS); do \
37472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37473 done; \
37474 (cd $(TARGET_SUBDIR)/libvtv && \
37475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37477 "RANLIB=$${RANLIB}" \
37478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37479 install-info) \
37480 || exit 1
37481
37482@endif target-libvtv
37483
37484.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
37485maybe-install-pdf-target-libvtv:
37486@if target-libvtv
37487maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
37488
37489install-pdf-target-libvtv: \
37490 configure-target-libvtv \
37491 pdf-target-libvtv
37492 @: $(MAKE); $(unstage)
22121df0 37493 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37494 r=`${PWD_COMMAND}`; export r; \
37495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37496 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37497 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37498 for flag in $(EXTRA_TARGET_FLAGS); do \
37499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37500 done; \
37501 (cd $(TARGET_SUBDIR)/libvtv && \
37502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37504 "RANLIB=$${RANLIB}" \
37505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37506 install-pdf) \
37507 || exit 1
37508
37509@endif target-libvtv
37510
37511.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
37512maybe-install-html-target-libvtv:
37513@if target-libvtv
37514maybe-install-html-target-libvtv: install-html-target-libvtv
37515
37516install-html-target-libvtv: \
37517 configure-target-libvtv \
37518 html-target-libvtv
37519 @: $(MAKE); $(unstage)
22121df0 37520 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37521 r=`${PWD_COMMAND}`; export r; \
37522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37523 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37524 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37525 for flag in $(EXTRA_TARGET_FLAGS); do \
37526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37527 done; \
37528 (cd $(TARGET_SUBDIR)/libvtv && \
37529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37531 "RANLIB=$${RANLIB}" \
37532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37533 install-html) \
37534 || exit 1
37535
37536@endif target-libvtv
37537
37538.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
37539maybe-installcheck-target-libvtv:
37540@if target-libvtv
37541maybe-installcheck-target-libvtv: installcheck-target-libvtv
37542
37543installcheck-target-libvtv: \
37544 configure-target-libvtv
37545 @: $(MAKE); $(unstage)
22121df0 37546 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37547 r=`${PWD_COMMAND}`; export r; \
37548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37549 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37550 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37551 for flag in $(EXTRA_TARGET_FLAGS); do \
37552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37553 done; \
37554 (cd $(TARGET_SUBDIR)/libvtv && \
37555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37557 "RANLIB=$${RANLIB}" \
37558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37559 installcheck) \
37560 || exit 1
37561
37562@endif target-libvtv
37563
37564.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
37565maybe-mostlyclean-target-libvtv:
37566@if target-libvtv
37567maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
37568
37569mostlyclean-target-libvtv:
37570 @: $(MAKE); $(unstage)
22121df0 37571 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37572 r=`${PWD_COMMAND}`; export r; \
37573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37574 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37575 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37576 for flag in $(EXTRA_TARGET_FLAGS); do \
37577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37578 done; \
37579 (cd $(TARGET_SUBDIR)/libvtv && \
37580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37582 "RANLIB=$${RANLIB}" \
37583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37584 mostlyclean) \
37585 || exit 1
37586
37587@endif target-libvtv
37588
37589.PHONY: maybe-clean-target-libvtv clean-target-libvtv
37590maybe-clean-target-libvtv:
37591@if target-libvtv
37592maybe-clean-target-libvtv: clean-target-libvtv
37593
37594clean-target-libvtv:
37595 @: $(MAKE); $(unstage)
22121df0 37596 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37597 r=`${PWD_COMMAND}`; export r; \
37598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37599 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37600 echo "Doing clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37601 for flag in $(EXTRA_TARGET_FLAGS); do \
37602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37603 done; \
37604 (cd $(TARGET_SUBDIR)/libvtv && \
37605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37607 "RANLIB=$${RANLIB}" \
37608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37609 clean) \
37610 || exit 1
37611
37612@endif target-libvtv
37613
37614.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
37615maybe-distclean-target-libvtv:
37616@if target-libvtv
37617maybe-distclean-target-libvtv: distclean-target-libvtv
37618
37619distclean-target-libvtv:
37620 @: $(MAKE); $(unstage)
22121df0 37621 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37622 r=`${PWD_COMMAND}`; export r; \
37623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37624 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37625 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37626 for flag in $(EXTRA_TARGET_FLAGS); do \
37627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37628 done; \
37629 (cd $(TARGET_SUBDIR)/libvtv && \
37630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37632 "RANLIB=$${RANLIB}" \
37633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37634 distclean) \
37635 || exit 1
37636
37637@endif target-libvtv
37638
37639.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
37640maybe-maintainer-clean-target-libvtv:
37641@if target-libvtv
37642maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
37643
37644maintainer-clean-target-libvtv:
37645 @: $(MAKE); $(unstage)
22121df0 37646 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37647 r=`${PWD_COMMAND}`; export r; \
37648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37649 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37650 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37651 for flag in $(EXTRA_TARGET_FLAGS); do \
37652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37653 done; \
37654 (cd $(TARGET_SUBDIR)/libvtv && \
37655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37657 "RANLIB=$${RANLIB}" \
37658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37659 maintainer-clean) \
37660 || exit 1
37661
37662@endif target-libvtv
37663
37664
37665
37666
37667
e3f56a99
NC
37668.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
37669maybe-configure-target-libcilkrts:
37670@if gcc-bootstrap
37671configure-target-libcilkrts: stage_current
37672@endif gcc-bootstrap
37673@if target-libcilkrts
37674maybe-configure-target-libcilkrts: configure-target-libcilkrts
37675configure-target-libcilkrts:
37676 @: $(MAKE); $(unstage)
37677 @r=`${PWD_COMMAND}`; export r; \
37678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37679 echo "Checking multilib configuration for libcilkrts..."; \
37680 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
37681 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null; \
37682 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
37683 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
37684 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
37685 else \
37686 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
37687 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
37688 fi; \
37689 else \
37690 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
37691 fi; \
37692 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
37693 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
37694 $(NORMAL_TARGET_EXPORTS) \
37695 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
37696 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
37697 case $(srcdir) in \
37698 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37699 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
37700 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37701 esac; \
37702 module_srcdir=libcilkrts; \
37703 rm -f no-such-file || : ; \
37704 CONFIG_SITE=no-such-file $(SHELL) \
37705 $$s/$$module_srcdir/configure \
37706 --srcdir=$${topdir}/$$module_srcdir \
37707 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
37708 --target=${target_alias} \
37709 || exit 1
37710@endif target-libcilkrts
37711
37712
37713
37714
37715
37716.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
37717maybe-all-target-libcilkrts:
37718@if gcc-bootstrap
37719all-target-libcilkrts: stage_current
37720@endif gcc-bootstrap
37721@if target-libcilkrts
37722TARGET-target-libcilkrts=all
37723maybe-all-target-libcilkrts: all-target-libcilkrts
37724all-target-libcilkrts: configure-target-libcilkrts
37725 @: $(MAKE); $(unstage)
37726 @r=`${PWD_COMMAND}`; export r; \
37727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37728 $(NORMAL_TARGET_EXPORTS) \
37729 (cd $(TARGET_SUBDIR)/libcilkrts && \
37730 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
37731 $(TARGET-target-libcilkrts))
37732@endif target-libcilkrts
37733
37734
37735
37736
37737
37738.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
37739maybe-check-target-libcilkrts:
37740@if target-libcilkrts
37741maybe-check-target-libcilkrts: check-target-libcilkrts
37742
37743check-target-libcilkrts:
37744 @: $(MAKE); $(unstage)
37745 @r=`${PWD_COMMAND}`; export r; \
37746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37747 $(NORMAL_TARGET_EXPORTS) \
37748 (cd $(TARGET_SUBDIR)/libcilkrts && \
37749 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
37750
37751@endif target-libcilkrts
37752
37753.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
37754maybe-install-target-libcilkrts:
37755@if target-libcilkrts
37756maybe-install-target-libcilkrts: install-target-libcilkrts
37757
37758install-target-libcilkrts: installdirs
37759 @: $(MAKE); $(unstage)
37760 @r=`${PWD_COMMAND}`; export r; \
37761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37762 $(NORMAL_TARGET_EXPORTS) \
37763 (cd $(TARGET_SUBDIR)/libcilkrts && \
37764 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37765
37766@endif target-libcilkrts
37767
37768.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
37769maybe-install-strip-target-libcilkrts:
37770@if target-libcilkrts
37771maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
37772
37773install-strip-target-libcilkrts: installdirs
37774 @: $(MAKE); $(unstage)
37775 @r=`${PWD_COMMAND}`; export r; \
37776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37777 $(NORMAL_TARGET_EXPORTS) \
37778 (cd $(TARGET_SUBDIR)/libcilkrts && \
37779 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37780
37781@endif target-libcilkrts
37782
37783# Other targets (info, dvi, pdf, etc.)
37784
37785.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
37786maybe-info-target-libcilkrts:
37787@if target-libcilkrts
37788maybe-info-target-libcilkrts: info-target-libcilkrts
37789
37790info-target-libcilkrts: \
37791 configure-target-libcilkrts
37792 @: $(MAKE); $(unstage)
37793 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
37794 r=`${PWD_COMMAND}`; export r; \
37795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37796 $(NORMAL_TARGET_EXPORTS) \
37797 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts"; \
37798 for flag in $(EXTRA_TARGET_FLAGS); do \
37799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37800 done; \
37801 (cd $(TARGET_SUBDIR)/libcilkrts && \
37802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37804 "RANLIB=$${RANLIB}" \
37805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37806 info) \
37807 || exit 1
37808
37809@endif target-libcilkrts
37810
37811.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
37812maybe-dvi-target-libcilkrts:
37813@if target-libcilkrts
37814maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
37815
37816dvi-target-libcilkrts: \
37817 configure-target-libcilkrts
37818 @: $(MAKE); $(unstage)
37819 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
37820 r=`${PWD_COMMAND}`; export r; \
37821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37822 $(NORMAL_TARGET_EXPORTS) \
37823 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts"; \
37824 for flag in $(EXTRA_TARGET_FLAGS); do \
37825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37826 done; \
37827 (cd $(TARGET_SUBDIR)/libcilkrts && \
37828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37830 "RANLIB=$${RANLIB}" \
37831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37832 dvi) \
37833 || exit 1
37834
37835@endif target-libcilkrts
37836
37837.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
37838maybe-pdf-target-libcilkrts:
37839@if target-libcilkrts
37840maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
37841
37842pdf-target-libcilkrts: \
37843 configure-target-libcilkrts
37844 @: $(MAKE); $(unstage)
37845 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
37846 r=`${PWD_COMMAND}`; export r; \
37847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37848 $(NORMAL_TARGET_EXPORTS) \
37849 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts"; \
37850 for flag in $(EXTRA_TARGET_FLAGS); do \
37851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37852 done; \
37853 (cd $(TARGET_SUBDIR)/libcilkrts && \
37854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37856 "RANLIB=$${RANLIB}" \
37857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37858 pdf) \
37859 || exit 1
37860
37861@endif target-libcilkrts
37862
37863.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
37864maybe-html-target-libcilkrts:
37865@if target-libcilkrts
37866maybe-html-target-libcilkrts: html-target-libcilkrts
37867
37868html-target-libcilkrts: \
37869 configure-target-libcilkrts
37870 @: $(MAKE); $(unstage)
37871 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
37872 r=`${PWD_COMMAND}`; export r; \
37873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37874 $(NORMAL_TARGET_EXPORTS) \
37875 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts"; \
37876 for flag in $(EXTRA_TARGET_FLAGS); do \
37877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37878 done; \
37879 (cd $(TARGET_SUBDIR)/libcilkrts && \
37880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37882 "RANLIB=$${RANLIB}" \
37883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37884 html) \
37885 || exit 1
37886
37887@endif target-libcilkrts
37888
37889.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
37890maybe-TAGS-target-libcilkrts:
37891@if target-libcilkrts
37892maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
37893
37894TAGS-target-libcilkrts: \
37895 configure-target-libcilkrts
37896 @: $(MAKE); $(unstage)
37897 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
37898 r=`${PWD_COMMAND}`; export r; \
37899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37900 $(NORMAL_TARGET_EXPORTS) \
37901 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts"; \
37902 for flag in $(EXTRA_TARGET_FLAGS); do \
37903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37904 done; \
37905 (cd $(TARGET_SUBDIR)/libcilkrts && \
37906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37908 "RANLIB=$${RANLIB}" \
37909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37910 TAGS) \
37911 || exit 1
37912
37913@endif target-libcilkrts
37914
37915.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
37916maybe-install-info-target-libcilkrts:
37917@if target-libcilkrts
37918maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
37919
37920install-info-target-libcilkrts: \
37921 configure-target-libcilkrts \
37922 info-target-libcilkrts
37923 @: $(MAKE); $(unstage)
37924 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
37925 r=`${PWD_COMMAND}`; export r; \
37926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37927 $(NORMAL_TARGET_EXPORTS) \
37928 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts"; \
37929 for flag in $(EXTRA_TARGET_FLAGS); do \
37930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37931 done; \
37932 (cd $(TARGET_SUBDIR)/libcilkrts && \
37933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37935 "RANLIB=$${RANLIB}" \
37936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37937 install-info) \
37938 || exit 1
37939
37940@endif target-libcilkrts
37941
37942.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
37943maybe-install-pdf-target-libcilkrts:
37944@if target-libcilkrts
37945maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
37946
37947install-pdf-target-libcilkrts: \
37948 configure-target-libcilkrts \
37949 pdf-target-libcilkrts
37950 @: $(MAKE); $(unstage)
37951 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
37952 r=`${PWD_COMMAND}`; export r; \
37953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37954 $(NORMAL_TARGET_EXPORTS) \
37955 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts"; \
37956 for flag in $(EXTRA_TARGET_FLAGS); do \
37957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37958 done; \
37959 (cd $(TARGET_SUBDIR)/libcilkrts && \
37960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37962 "RANLIB=$${RANLIB}" \
37963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37964 install-pdf) \
37965 || exit 1
37966
37967@endif target-libcilkrts
37968
37969.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
37970maybe-install-html-target-libcilkrts:
37971@if target-libcilkrts
37972maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
37973
37974install-html-target-libcilkrts: \
37975 configure-target-libcilkrts \
37976 html-target-libcilkrts
37977 @: $(MAKE); $(unstage)
37978 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
37979 r=`${PWD_COMMAND}`; export r; \
37980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37981 $(NORMAL_TARGET_EXPORTS) \
37982 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts"; \
37983 for flag in $(EXTRA_TARGET_FLAGS); do \
37984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37985 done; \
37986 (cd $(TARGET_SUBDIR)/libcilkrts && \
37987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37989 "RANLIB=$${RANLIB}" \
37990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37991 install-html) \
37992 || exit 1
37993
37994@endif target-libcilkrts
37995
37996.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
37997maybe-installcheck-target-libcilkrts:
37998@if target-libcilkrts
37999maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
38000
38001installcheck-target-libcilkrts: \
38002 configure-target-libcilkrts
38003 @: $(MAKE); $(unstage)
38004 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38005 r=`${PWD_COMMAND}`; export r; \
38006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38007 $(NORMAL_TARGET_EXPORTS) \
38008 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts"; \
38009 for flag in $(EXTRA_TARGET_FLAGS); do \
38010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38011 done; \
38012 (cd $(TARGET_SUBDIR)/libcilkrts && \
38013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38015 "RANLIB=$${RANLIB}" \
38016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38017 installcheck) \
38018 || exit 1
38019
38020@endif target-libcilkrts
38021
38022.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
38023maybe-mostlyclean-target-libcilkrts:
38024@if target-libcilkrts
38025maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
38026
38027mostlyclean-target-libcilkrts:
38028 @: $(MAKE); $(unstage)
38029 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38030 r=`${PWD_COMMAND}`; export r; \
38031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38032 $(NORMAL_TARGET_EXPORTS) \
38033 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts"; \
38034 for flag in $(EXTRA_TARGET_FLAGS); do \
38035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38036 done; \
38037 (cd $(TARGET_SUBDIR)/libcilkrts && \
38038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38040 "RANLIB=$${RANLIB}" \
38041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38042 mostlyclean) \
38043 || exit 1
38044
38045@endif target-libcilkrts
38046
38047.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
38048maybe-clean-target-libcilkrts:
38049@if target-libcilkrts
38050maybe-clean-target-libcilkrts: clean-target-libcilkrts
38051
38052clean-target-libcilkrts:
38053 @: $(MAKE); $(unstage)
38054 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38055 r=`${PWD_COMMAND}`; export r; \
38056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38057 $(NORMAL_TARGET_EXPORTS) \
38058 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts"; \
38059 for flag in $(EXTRA_TARGET_FLAGS); do \
38060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38061 done; \
38062 (cd $(TARGET_SUBDIR)/libcilkrts && \
38063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38065 "RANLIB=$${RANLIB}" \
38066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38067 clean) \
38068 || exit 1
38069
38070@endif target-libcilkrts
38071
38072.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
38073maybe-distclean-target-libcilkrts:
38074@if target-libcilkrts
38075maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
38076
38077distclean-target-libcilkrts:
38078 @: $(MAKE); $(unstage)
38079 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38080 r=`${PWD_COMMAND}`; export r; \
38081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38082 $(NORMAL_TARGET_EXPORTS) \
38083 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts"; \
38084 for flag in $(EXTRA_TARGET_FLAGS); do \
38085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38086 done; \
38087 (cd $(TARGET_SUBDIR)/libcilkrts && \
38088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38090 "RANLIB=$${RANLIB}" \
38091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38092 distclean) \
38093 || exit 1
38094
38095@endif target-libcilkrts
38096
38097.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
38098maybe-maintainer-clean-target-libcilkrts:
38099@if target-libcilkrts
38100maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
38101
38102maintainer-clean-target-libcilkrts:
38103 @: $(MAKE); $(unstage)
38104 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38105 r=`${PWD_COMMAND}`; export r; \
38106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38107 $(NORMAL_TARGET_EXPORTS) \
38108 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts"; \
38109 for flag in $(EXTRA_TARGET_FLAGS); do \
38110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38111 done; \
38112 (cd $(TARGET_SUBDIR)/libcilkrts && \
38113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38115 "RANLIB=$${RANLIB}" \
38116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38117 maintainer-clean) \
38118 || exit 1
38119
38120@endif target-libcilkrts
38121
38122
38123
38124
38125
1b6c0831
L
38126.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
38127maybe-configure-target-liboffloadmic:
38128@if gcc-bootstrap
38129configure-target-liboffloadmic: stage_current
38130@endif gcc-bootstrap
38131@if target-liboffloadmic
38132maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
38133configure-target-liboffloadmic:
38134 @: $(MAKE); $(unstage)
38135 @r=`${PWD_COMMAND}`; export r; \
38136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38137 echo "Checking multilib configuration for liboffloadmic..."; \
22121df0
L
38138 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
38139 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null; \
1b6c0831
L
38140 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
38141 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
38142 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
38143 else \
38144 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
38145 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
38146 fi; \
38147 else \
38148 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
38149 fi; \
38150 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
22121df0 38151 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
1b6c0831
L
38152 $(NORMAL_TARGET_EXPORTS) \
38153 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
38154 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
38155 case $(srcdir) in \
38156 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38157 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
38158 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38159 esac; \
38160 module_srcdir=liboffloadmic; \
38161 rm -f no-such-file || : ; \
38162 CONFIG_SITE=no-such-file $(SHELL) \
38163 $$s/$$module_srcdir/configure \
38164 --srcdir=$${topdir}/$$module_srcdir \
38165 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
38166 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
38167 || exit 1
38168@endif target-liboffloadmic
38169
38170
38171
38172
38173
38174.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
38175maybe-all-target-liboffloadmic:
38176@if gcc-bootstrap
38177all-target-liboffloadmic: stage_current
38178@endif gcc-bootstrap
38179@if target-liboffloadmic
38180TARGET-target-liboffloadmic=all
38181maybe-all-target-liboffloadmic: all-target-liboffloadmic
38182all-target-liboffloadmic: configure-target-liboffloadmic
38183 @: $(MAKE); $(unstage)
38184 @r=`${PWD_COMMAND}`; export r; \
38185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38186 $(NORMAL_TARGET_EXPORTS) \
38187 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38188 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
38189 $(TARGET-target-liboffloadmic))
38190@endif target-liboffloadmic
38191
38192
38193
38194
38195
38196.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
38197maybe-check-target-liboffloadmic:
38198@if target-liboffloadmic
38199maybe-check-target-liboffloadmic: check-target-liboffloadmic
38200
38201check-target-liboffloadmic:
38202 @: $(MAKE); $(unstage)
38203 @r=`${PWD_COMMAND}`; export r; \
38204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38205 $(NORMAL_TARGET_EXPORTS) \
38206 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38207 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
38208
38209@endif target-liboffloadmic
38210
38211.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
38212maybe-install-target-liboffloadmic:
38213@if target-liboffloadmic
38214maybe-install-target-liboffloadmic: install-target-liboffloadmic
38215
38216install-target-liboffloadmic: installdirs
38217 @: $(MAKE); $(unstage)
38218 @r=`${PWD_COMMAND}`; export r; \
38219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38220 $(NORMAL_TARGET_EXPORTS) \
38221 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38222 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38223
38224@endif target-liboffloadmic
38225
38226.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
38227maybe-install-strip-target-liboffloadmic:
38228@if target-liboffloadmic
38229maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
38230
38231install-strip-target-liboffloadmic: installdirs
38232 @: $(MAKE); $(unstage)
38233 @r=`${PWD_COMMAND}`; export r; \
38234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38235 $(NORMAL_TARGET_EXPORTS) \
38236 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38237 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38238
38239@endif target-liboffloadmic
38240
38241# Other targets (info, dvi, pdf, etc.)
38242
38243.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
38244maybe-info-target-liboffloadmic:
38245@if target-liboffloadmic
38246maybe-info-target-liboffloadmic: info-target-liboffloadmic
38247
38248info-target-liboffloadmic: \
38249 configure-target-liboffloadmic
38250 @: $(MAKE); $(unstage)
22121df0 38251 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38252 r=`${PWD_COMMAND}`; export r; \
38253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38254 $(NORMAL_TARGET_EXPORTS) \
22121df0 38255 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38256 for flag in $(EXTRA_TARGET_FLAGS); do \
38257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38258 done; \
38259 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38262 "RANLIB=$${RANLIB}" \
38263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38264 info) \
38265 || exit 1
38266
38267@endif target-liboffloadmic
38268
38269.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
38270maybe-dvi-target-liboffloadmic:
38271@if target-liboffloadmic
38272maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
38273
38274dvi-target-liboffloadmic: \
38275 configure-target-liboffloadmic
38276 @: $(MAKE); $(unstage)
22121df0 38277 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38278 r=`${PWD_COMMAND}`; export r; \
38279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38280 $(NORMAL_TARGET_EXPORTS) \
22121df0 38281 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38282 for flag in $(EXTRA_TARGET_FLAGS); do \
38283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38284 done; \
38285 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38288 "RANLIB=$${RANLIB}" \
38289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38290 dvi) \
38291 || exit 1
38292
38293@endif target-liboffloadmic
38294
38295.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
38296maybe-pdf-target-liboffloadmic:
38297@if target-liboffloadmic
38298maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
38299
38300pdf-target-liboffloadmic: \
38301 configure-target-liboffloadmic
38302 @: $(MAKE); $(unstage)
22121df0 38303 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38304 r=`${PWD_COMMAND}`; export r; \
38305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38306 $(NORMAL_TARGET_EXPORTS) \
22121df0 38307 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38308 for flag in $(EXTRA_TARGET_FLAGS); do \
38309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38310 done; \
38311 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38314 "RANLIB=$${RANLIB}" \
38315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38316 pdf) \
38317 || exit 1
38318
38319@endif target-liboffloadmic
38320
38321.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
38322maybe-html-target-liboffloadmic:
38323@if target-liboffloadmic
38324maybe-html-target-liboffloadmic: html-target-liboffloadmic
38325
38326html-target-liboffloadmic: \
38327 configure-target-liboffloadmic
38328 @: $(MAKE); $(unstage)
22121df0 38329 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38330 r=`${PWD_COMMAND}`; export r; \
38331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38332 $(NORMAL_TARGET_EXPORTS) \
22121df0 38333 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38334 for flag in $(EXTRA_TARGET_FLAGS); do \
38335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38336 done; \
38337 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38340 "RANLIB=$${RANLIB}" \
38341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38342 html) \
38343 || exit 1
38344
38345@endif target-liboffloadmic
38346
38347.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
38348maybe-TAGS-target-liboffloadmic:
38349@if target-liboffloadmic
38350maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
38351
38352TAGS-target-liboffloadmic: \
38353 configure-target-liboffloadmic
38354 @: $(MAKE); $(unstage)
22121df0 38355 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38356 r=`${PWD_COMMAND}`; export r; \
38357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38358 $(NORMAL_TARGET_EXPORTS) \
22121df0 38359 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38360 for flag in $(EXTRA_TARGET_FLAGS); do \
38361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38362 done; \
38363 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38366 "RANLIB=$${RANLIB}" \
38367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38368 TAGS) \
38369 || exit 1
38370
38371@endif target-liboffloadmic
38372
38373.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
38374maybe-install-info-target-liboffloadmic:
38375@if target-liboffloadmic
38376maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
38377
38378install-info-target-liboffloadmic: \
38379 configure-target-liboffloadmic \
38380 info-target-liboffloadmic
38381 @: $(MAKE); $(unstage)
22121df0 38382 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38383 r=`${PWD_COMMAND}`; export r; \
38384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38385 $(NORMAL_TARGET_EXPORTS) \
22121df0 38386 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38387 for flag in $(EXTRA_TARGET_FLAGS); do \
38388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38389 done; \
38390 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38393 "RANLIB=$${RANLIB}" \
38394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38395 install-info) \
38396 || exit 1
38397
38398@endif target-liboffloadmic
38399
38400.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
38401maybe-install-pdf-target-liboffloadmic:
38402@if target-liboffloadmic
38403maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
38404
38405install-pdf-target-liboffloadmic: \
38406 configure-target-liboffloadmic \
38407 pdf-target-liboffloadmic
38408 @: $(MAKE); $(unstage)
22121df0 38409 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38410 r=`${PWD_COMMAND}`; export r; \
38411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38412 $(NORMAL_TARGET_EXPORTS) \
22121df0 38413 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38414 for flag in $(EXTRA_TARGET_FLAGS); do \
38415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38416 done; \
38417 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38420 "RANLIB=$${RANLIB}" \
38421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38422 install-pdf) \
38423 || exit 1
38424
38425@endif target-liboffloadmic
38426
38427.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
38428maybe-install-html-target-liboffloadmic:
38429@if target-liboffloadmic
38430maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
38431
38432install-html-target-liboffloadmic: \
38433 configure-target-liboffloadmic \
38434 html-target-liboffloadmic
38435 @: $(MAKE); $(unstage)
22121df0 38436 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38437 r=`${PWD_COMMAND}`; export r; \
38438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38439 $(NORMAL_TARGET_EXPORTS) \
22121df0 38440 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38441 for flag in $(EXTRA_TARGET_FLAGS); do \
38442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38443 done; \
38444 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38445 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38446 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38447 "RANLIB=$${RANLIB}" \
38448 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38449 install-html) \
38450 || exit 1
38451
38452@endif target-liboffloadmic
38453
38454.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
38455maybe-installcheck-target-liboffloadmic:
38456@if target-liboffloadmic
38457maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
38458
38459installcheck-target-liboffloadmic: \
38460 configure-target-liboffloadmic
38461 @: $(MAKE); $(unstage)
22121df0 38462 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38463 r=`${PWD_COMMAND}`; export r; \
38464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38465 $(NORMAL_TARGET_EXPORTS) \
22121df0 38466 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38467 for flag in $(EXTRA_TARGET_FLAGS); do \
38468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38469 done; \
38470 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38473 "RANLIB=$${RANLIB}" \
38474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38475 installcheck) \
38476 || exit 1
38477
38478@endif target-liboffloadmic
38479
38480.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
38481maybe-mostlyclean-target-liboffloadmic:
38482@if target-liboffloadmic
38483maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
38484
38485mostlyclean-target-liboffloadmic:
38486 @: $(MAKE); $(unstage)
22121df0 38487 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38488 r=`${PWD_COMMAND}`; export r; \
38489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38490 $(NORMAL_TARGET_EXPORTS) \
22121df0 38491 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38492 for flag in $(EXTRA_TARGET_FLAGS); do \
38493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38494 done; \
38495 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38498 "RANLIB=$${RANLIB}" \
38499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38500 mostlyclean) \
38501 || exit 1
38502
38503@endif target-liboffloadmic
38504
38505.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
38506maybe-clean-target-liboffloadmic:
38507@if target-liboffloadmic
38508maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
38509
38510clean-target-liboffloadmic:
38511 @: $(MAKE); $(unstage)
22121df0 38512 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38513 r=`${PWD_COMMAND}`; export r; \
38514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38515 $(NORMAL_TARGET_EXPORTS) \
22121df0 38516 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38517 for flag in $(EXTRA_TARGET_FLAGS); do \
38518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38519 done; \
38520 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38523 "RANLIB=$${RANLIB}" \
38524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38525 clean) \
38526 || exit 1
38527
38528@endif target-liboffloadmic
38529
38530.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
38531maybe-distclean-target-liboffloadmic:
38532@if target-liboffloadmic
38533maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
38534
38535distclean-target-liboffloadmic:
38536 @: $(MAKE); $(unstage)
22121df0 38537 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38538 r=`${PWD_COMMAND}`; export r; \
38539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38540 $(NORMAL_TARGET_EXPORTS) \
22121df0 38541 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38542 for flag in $(EXTRA_TARGET_FLAGS); do \
38543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38544 done; \
38545 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38548 "RANLIB=$${RANLIB}" \
38549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38550 distclean) \
38551 || exit 1
38552
38553@endif target-liboffloadmic
38554
38555.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
38556maybe-maintainer-clean-target-liboffloadmic:
38557@if target-liboffloadmic
38558maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
38559
38560maintainer-clean-target-liboffloadmic:
38561 @: $(MAKE); $(unstage)
22121df0 38562 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38563 r=`${PWD_COMMAND}`; export r; \
38564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38565 $(NORMAL_TARGET_EXPORTS) \
22121df0 38566 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38567 for flag in $(EXTRA_TARGET_FLAGS); do \
38568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38569 done; \
38570 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38573 "RANLIB=$${RANLIB}" \
38574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38575 maintainer-clean) \
38576 || exit 1
38577
38578@endif target-liboffloadmic
38579
38580
38581
38582
38583
a90ef4bf
JM
38584.PHONY: configure-target-libssp maybe-configure-target-libssp
38585maybe-configure-target-libssp:
4f0ef2d8 38586@if gcc-bootstrap
a90ef4bf 38587configure-target-libssp: stage_current
4f0ef2d8 38588@endif gcc-bootstrap
a90ef4bf
JM
38589@if target-libssp
38590maybe-configure-target-libssp: configure-target-libssp
38591configure-target-libssp:
0aed8855
PB
38592 @: $(MAKE); $(unstage)
38593 @r=`${PWD_COMMAND}`; export r; \
38594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 38595 echo "Checking multilib configuration for libssp..."; \
22121df0
L
38596 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
38597 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
38598 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
38599 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
38600 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 38601 else \
a90ef4bf
JM
38602 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
38603 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
38604 fi; \
38605 else \
a90ef4bf 38606 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 38607 fi; \
a90ef4bf 38608 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
22121df0 38609 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
1f53ca9a 38610 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
38611 echo Configuring in $(TARGET_SUBDIR)/libssp; \
38612 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 38613 case $(srcdir) in \
b00612cc 38614 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 38615 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 38616 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 38617 esac; \
1b6c0831 38618 module_srcdir=libssp; \
4b1cb4fe 38619 rm -f no-such-file || : ; \
1b6c0831
L
38620 CONFIG_SITE=no-such-file $(SHELL) \
38621 $$s/$$module_srcdir/configure \
38622 --srcdir=$${topdir}/$$module_srcdir \
4b900473 38623 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38624 --target=${target_alias} \
4b1cb4fe 38625 || exit 1
a90ef4bf 38626@endif target-libssp
4b1cb4fe 38627
a7254363
PB
38628
38629
d545f33b
PB
38630
38631
a90ef4bf
JM
38632.PHONY: all-target-libssp maybe-all-target-libssp
38633maybe-all-target-libssp:
4f0ef2d8 38634@if gcc-bootstrap
a90ef4bf 38635all-target-libssp: stage_current
4f0ef2d8 38636@endif gcc-bootstrap
a90ef4bf
JM
38637@if target-libssp
38638TARGET-target-libssp=all
38639maybe-all-target-libssp: all-target-libssp
38640all-target-libssp: configure-target-libssp
0aed8855 38641 @: $(MAKE); $(unstage)
4b1cb4fe
DD
38642 @r=`${PWD_COMMAND}`; export r; \
38643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 38644 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38645 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 38646 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
38647 $(TARGET-target-libssp))
38648@endif target-libssp
4b1cb4fe 38649
a7254363
PB
38650
38651
d545f33b
PB
38652
38653
a90ef4bf
JM
38654.PHONY: check-target-libssp maybe-check-target-libssp
38655maybe-check-target-libssp:
38656@if target-libssp
38657maybe-check-target-libssp: check-target-libssp
4b1cb4fe 38658
a90ef4bf 38659check-target-libssp:
0aed8855 38660 @: $(MAKE); $(unstage)
b40e3958
L
38661 @r=`${PWD_COMMAND}`; export r; \
38662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38663 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38664 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 38665 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 38666
a90ef4bf 38667@endif target-libssp
3866be5d 38668
a90ef4bf
JM
38669.PHONY: install-target-libssp maybe-install-target-libssp
38670maybe-install-target-libssp:
38671@if target-libssp
38672maybe-install-target-libssp: install-target-libssp
e2b9e2dc 38673
a90ef4bf 38674install-target-libssp: installdirs
0aed8855 38675 @: $(MAKE); $(unstage)
b40e3958
L
38676 @r=`${PWD_COMMAND}`; export r; \
38677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38678 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38679 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 38680 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 38681
a90ef4bf 38682@endif target-libssp
3866be5d 38683
a90ef4bf
JM
38684.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
38685maybe-install-strip-target-libssp:
38686@if target-libssp
38687maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 38688
a90ef4bf 38689install-strip-target-libssp: installdirs
9b980aa1
RW
38690 @: $(MAKE); $(unstage)
38691 @r=`${PWD_COMMAND}`; export r; \
38692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38693 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 38694 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
38695 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38696
a90ef4bf 38697@endif target-libssp
9b980aa1 38698
56a8fe78 38699# Other targets (info, dvi, pdf, etc.)
3866be5d 38700
a90ef4bf
JM
38701.PHONY: maybe-info-target-libssp info-target-libssp
38702maybe-info-target-libssp:
38703@if target-libssp
38704maybe-info-target-libssp: info-target-libssp
3866be5d 38705
a90ef4bf
JM
38706info-target-libssp: \
38707 configure-target-libssp
0aed8855 38708 @: $(MAKE); $(unstage)
22121df0 38709 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067
NN
38710 r=`${PWD_COMMAND}`; export r; \
38711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38712 $(NORMAL_TARGET_EXPORTS) \
22121df0 38713 echo "Doing info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
38714 for flag in $(EXTRA_TARGET_FLAGS); do \
38715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38716 done; \
a90ef4bf 38717 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
38718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38720 "RANLIB=$${RANLIB}" \
0c24b341 38721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38722 info) \
4fa63067 38723 || exit 1
16ae0395 38724
a90ef4bf 38725@endif target-libssp
3866be5d 38726
a90ef4bf
JM
38727.PHONY: maybe-dvi-target-libssp dvi-target-libssp
38728maybe-dvi-target-libssp:
38729@if target-libssp
38730maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 38731
a90ef4bf
JM
38732dvi-target-libssp: \
38733 configure-target-libssp
0aed8855 38734 @: $(MAKE); $(unstage)
22121df0 38735 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
38736 r=`${PWD_COMMAND}`; export r; \
38737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38738 $(NORMAL_TARGET_EXPORTS) \
22121df0 38739 echo "Doing dvi in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
38740 for flag in $(EXTRA_TARGET_FLAGS); do \
38741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38742 done; \
a90ef4bf 38743 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
38744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38746 "RANLIB=$${RANLIB}" \
0c24b341 38747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 38748 dvi) \
e2b9e2dc
NN
38749 || exit 1
38750
a90ef4bf 38751@endif target-libssp
3866be5d 38752
a90ef4bf
JM
38753.PHONY: maybe-pdf-target-libssp pdf-target-libssp
38754maybe-pdf-target-libssp:
38755@if target-libssp
38756maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 38757
a90ef4bf
JM
38758pdf-target-libssp: \
38759 configure-target-libssp
56a8fe78 38760 @: $(MAKE); $(unstage)
22121df0 38761 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
56a8fe78
DD
38762 r=`${PWD_COMMAND}`; export r; \
38763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38764 $(NORMAL_TARGET_EXPORTS) \
22121df0 38765 echo "Doing pdf in $(TARGET_SUBDIR)/libssp"; \
56a8fe78
DD
38766 for flag in $(EXTRA_TARGET_FLAGS); do \
38767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38768 done; \
a90ef4bf 38769 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
38770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38772 "RANLIB=$${RANLIB}" \
0c24b341 38773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
38774 pdf) \
38775 || exit 1
38776
a90ef4bf 38777@endif target-libssp
a3ca38d2 38778
a90ef4bf
JM
38779.PHONY: maybe-html-target-libssp html-target-libssp
38780maybe-html-target-libssp:
38781@if target-libssp
38782maybe-html-target-libssp: html-target-libssp
108a6f8e 38783
a90ef4bf
JM
38784html-target-libssp: \
38785 configure-target-libssp
108a6f8e 38786 @: $(MAKE); $(unstage)
22121df0 38787 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
108a6f8e
CD
38788 r=`${PWD_COMMAND}`; export r; \
38789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38790 $(NORMAL_TARGET_EXPORTS) \
22121df0 38791 echo "Doing html in $(TARGET_SUBDIR)/libssp"; \
108a6f8e
CD
38792 for flag in $(EXTRA_TARGET_FLAGS); do \
38793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38794 done; \
a90ef4bf 38795 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
38796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38798 "RANLIB=$${RANLIB}" \
0c24b341 38799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 38800 html) \
108a6f8e
CD
38801 || exit 1
38802
a90ef4bf 38803@endif target-libssp
108a6f8e 38804
a90ef4bf
JM
38805.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
38806maybe-TAGS-target-libssp:
38807@if target-libssp
38808maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 38809
a90ef4bf
JM
38810TAGS-target-libssp: \
38811 configure-target-libssp
0aed8855 38812 @: $(MAKE); $(unstage)
22121df0 38813 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
38814 r=`${PWD_COMMAND}`; export r; \
38815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38816 $(NORMAL_TARGET_EXPORTS) \
22121df0 38817 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
38818 for flag in $(EXTRA_TARGET_FLAGS); do \
38819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38820 done; \
a90ef4bf 38821 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
38822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38824 "RANLIB=$${RANLIB}" \
0c24b341 38825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 38826 TAGS) \
e2b9e2dc
NN
38827 || exit 1
38828
a90ef4bf 38829@endif target-libssp
3866be5d 38830
a90ef4bf
JM
38831.PHONY: maybe-install-info-target-libssp install-info-target-libssp
38832maybe-install-info-target-libssp:
38833@if target-libssp
38834maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 38835
a90ef4bf
JM
38836install-info-target-libssp: \
38837 configure-target-libssp \
38838 info-target-libssp
0aed8855 38839 @: $(MAKE); $(unstage)
22121df0 38840 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 38841 r=`${PWD_COMMAND}`; export r; \
b40e3958 38842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38843 $(NORMAL_TARGET_EXPORTS) \
22121df0 38844 echo "Doing install-info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
38845 for flag in $(EXTRA_TARGET_FLAGS); do \
38846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38847 done; \
a90ef4bf 38848 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
38849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38851 "RANLIB=$${RANLIB}" \
0c24b341 38852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 38853 install-info) \
4fa63067 38854 || exit 1
3866be5d 38855
a90ef4bf 38856@endif target-libssp
3866be5d 38857
a90ef4bf
JM
38858.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
38859maybe-install-pdf-target-libssp:
38860@if target-libssp
38861maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 38862
a90ef4bf
JM
38863install-pdf-target-libssp: \
38864 configure-target-libssp \
38865 pdf-target-libssp
0aed8855 38866 @: $(MAKE); $(unstage)
22121df0 38867 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 38868 r=`${PWD_COMMAND}`; export r; \
b40e3958 38869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38870 $(NORMAL_TARGET_EXPORTS) \
22121df0 38871 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
38872 for flag in $(EXTRA_TARGET_FLAGS); do \
38873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38874 done; \
a90ef4bf 38875 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
38876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38878 "RANLIB=$${RANLIB}" \
0c24b341 38879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 38880 install-pdf) \
4fa63067 38881 || exit 1
3866be5d 38882
a90ef4bf 38883@endif target-libssp
3866be5d 38884
a90ef4bf
JM
38885.PHONY: maybe-install-html-target-libssp install-html-target-libssp
38886maybe-install-html-target-libssp:
38887@if target-libssp
38888maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 38889
a90ef4bf
JM
38890install-html-target-libssp: \
38891 configure-target-libssp \
38892 html-target-libssp
0aed8855 38893 @: $(MAKE); $(unstage)
22121df0 38894 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
38895 r=`${PWD_COMMAND}`; export r; \
38896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38897 $(NORMAL_TARGET_EXPORTS) \
22121df0 38898 echo "Doing install-html in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
38899 for flag in $(EXTRA_TARGET_FLAGS); do \
38900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38901 done; \
a90ef4bf 38902 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
38903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38905 "RANLIB=$${RANLIB}" \
0c24b341 38906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 38907 install-html) \
e2b9e2dc
NN
38908 || exit 1
38909
a90ef4bf 38910@endif target-libssp
3866be5d 38911
a90ef4bf
JM
38912.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
38913maybe-installcheck-target-libssp:
38914@if target-libssp
38915maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 38916
a90ef4bf
JM
38917installcheck-target-libssp: \
38918 configure-target-libssp
0aed8855 38919 @: $(MAKE); $(unstage)
22121df0 38920 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 38921 r=`${PWD_COMMAND}`; export r; \
b40e3958 38922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 38923 $(NORMAL_TARGET_EXPORTS) \
22121df0 38924 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
38925 for flag in $(EXTRA_TARGET_FLAGS); do \
38926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38927 done; \
a90ef4bf 38928 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
38929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38931 "RANLIB=$${RANLIB}" \
0c24b341 38932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 38933 installcheck) \
6aa8ef82 38934 || exit 1
6aa8ef82 38935
a90ef4bf 38936@endif target-libssp
6aa8ef82 38937
a90ef4bf
JM
38938.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
38939maybe-mostlyclean-target-libssp:
38940@if target-libssp
38941maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 38942
a90ef4bf
JM
38943mostlyclean-target-libssp:
38944 @: $(MAKE); $(unstage)
22121df0 38945 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 38946 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
38947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38948 $(NORMAL_TARGET_EXPORTS) \
22121df0 38949 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
38950 for flag in $(EXTRA_TARGET_FLAGS); do \
38951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38952 done; \
38953 (cd $(TARGET_SUBDIR)/libssp && \
38954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38956 "RANLIB=$${RANLIB}" \
38957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38958 mostlyclean) \
38959 || exit 1
6aa8ef82 38960
a90ef4bf 38961@endif target-libssp
6aa8ef82 38962
a90ef4bf
JM
38963.PHONY: maybe-clean-target-libssp clean-target-libssp
38964maybe-clean-target-libssp:
38965@if target-libssp
38966maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 38967
a90ef4bf
JM
38968clean-target-libssp:
38969 @: $(MAKE); $(unstage)
22121df0 38970 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 38971 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
38972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38973 $(NORMAL_TARGET_EXPORTS) \
22121df0 38974 echo "Doing clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
38975 for flag in $(EXTRA_TARGET_FLAGS); do \
38976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38977 done; \
38978 (cd $(TARGET_SUBDIR)/libssp && \
38979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38981 "RANLIB=$${RANLIB}" \
38982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38983 clean) \
38984 || exit 1
6aa8ef82 38985
a90ef4bf 38986@endif target-libssp
6aa8ef82 38987
a90ef4bf
JM
38988.PHONY: maybe-distclean-target-libssp distclean-target-libssp
38989maybe-distclean-target-libssp:
38990@if target-libssp
38991maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 38992
a90ef4bf
JM
38993distclean-target-libssp:
38994 @: $(MAKE); $(unstage)
22121df0 38995 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 38996 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
38997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38998 $(NORMAL_TARGET_EXPORTS) \
22121df0 38999 echo "Doing distclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
39000 for flag in $(EXTRA_TARGET_FLAGS); do \
39001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39002 done; \
39003 (cd $(TARGET_SUBDIR)/libssp && \
39004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39006 "RANLIB=$${RANLIB}" \
39007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39008 distclean) \
39009 || exit 1
6aa8ef82 39010
a90ef4bf 39011@endif target-libssp
6aa8ef82 39012
a90ef4bf
JM
39013.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
39014maybe-maintainer-clean-target-libssp:
39015@if target-libssp
39016maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 39017
a90ef4bf
JM
39018maintainer-clean-target-libssp:
39019 @: $(MAKE); $(unstage)
22121df0 39020 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 39021 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
39022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39023 $(NORMAL_TARGET_EXPORTS) \
22121df0 39024 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
39025 for flag in $(EXTRA_TARGET_FLAGS); do \
39026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39027 done; \
39028 (cd $(TARGET_SUBDIR)/libssp && \
39029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39031 "RANLIB=$${RANLIB}" \
39032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39033 maintainer-clean) \
39034 || exit 1
6aa8ef82 39035
a90ef4bf 39036@endif target-libssp
6aa8ef82
DJ
39037
39038
a90ef4bf
JM
39039
39040
39041
39042.PHONY: configure-target-newlib maybe-configure-target-newlib
39043maybe-configure-target-newlib:
39044@if gcc-bootstrap
39045configure-target-newlib: stage_current
39046@endif gcc-bootstrap
39047@if target-newlib
39048maybe-configure-target-newlib: configure-target-newlib
39049configure-target-newlib:
39050 @: $(MAKE); $(unstage)
6aa8ef82
DJ
39051 @r=`${PWD_COMMAND}`; export r; \
39052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39053 echo "Checking multilib configuration for newlib..."; \
22121df0
L
39054 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
39055 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39056 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
39057 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
39058 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
39059 else \
39060 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
39061 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
39062 fi; \
6aa8ef82 39063 else \
a90ef4bf 39064 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 39065 fi; \
a90ef4bf 39066 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
22121df0 39067 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
a90ef4bf
JM
39068 $(NORMAL_TARGET_EXPORTS) \
39069 echo Configuring in $(TARGET_SUBDIR)/newlib; \
39070 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
39071 case $(srcdir) in \
39072 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39073 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
39074 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39075 esac; \
1b6c0831 39076 module_srcdir=newlib; \
a90ef4bf 39077 rm -f no-such-file || : ; \
1b6c0831
L
39078 CONFIG_SITE=no-such-file $(SHELL) \
39079 $$s/$$module_srcdir/configure \
39080 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 39081 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39082 --target=${target_alias} \
a90ef4bf
JM
39083 || exit 1
39084@endif target-newlib
6aa8ef82
DJ
39085
39086
39087
39088
39089
a90ef4bf
JM
39090.PHONY: all-target-newlib maybe-all-target-newlib
39091maybe-all-target-newlib:
39092@if gcc-bootstrap
39093all-target-newlib: stage_current
39094@endif gcc-bootstrap
39095@if target-newlib
39096TARGET-target-newlib=all
39097maybe-all-target-newlib: all-target-newlib
39098all-target-newlib: configure-target-newlib
39099 @: $(MAKE); $(unstage)
39100 @r=`${PWD_COMMAND}`; export r; \
39101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39102 $(NORMAL_TARGET_EXPORTS) \
39103 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 39104 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
39105 $(TARGET-target-newlib))
39106@endif target-newlib
6aa8ef82 39107
6aa8ef82 39108
6aa8ef82 39109
6aa8ef82 39110
6aa8ef82 39111
a90ef4bf
JM
39112.PHONY: check-target-newlib maybe-check-target-newlib
39113maybe-check-target-newlib:
39114@if target-newlib
39115maybe-check-target-newlib: check-target-newlib
39116
39117check-target-newlib:
6aa8ef82
DJ
39118 @: $(MAKE); $(unstage)
39119 @r=`${PWD_COMMAND}`; export r; \
39120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39121 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39122 (cd $(TARGET_SUBDIR)/newlib && \
39123 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39124
39125@endif target-newlib
39126
39127.PHONY: install-target-newlib maybe-install-target-newlib
39128maybe-install-target-newlib:
39129@if target-newlib
39130maybe-install-target-newlib: install-target-newlib
39131
39132install-target-newlib: installdirs
39133 @: $(MAKE); $(unstage)
39134 @r=`${PWD_COMMAND}`; export r; \
39135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39136 $(NORMAL_TARGET_EXPORTS) \
39137 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39138 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39139
a90ef4bf 39140@endif target-newlib
6aa8ef82 39141
a90ef4bf
JM
39142.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
39143maybe-install-strip-target-newlib:
39144@if target-newlib
39145maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 39146
a90ef4bf 39147install-strip-target-newlib: installdirs
9b980aa1
RW
39148 @: $(MAKE); $(unstage)
39149 @r=`${PWD_COMMAND}`; export r; \
39150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39151 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39152 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
39153 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39154
a90ef4bf 39155@endif target-newlib
9b980aa1 39156
6aa8ef82
DJ
39157# Other targets (info, dvi, pdf, etc.)
39158
a90ef4bf
JM
39159.PHONY: maybe-info-target-newlib info-target-newlib
39160maybe-info-target-newlib:
39161@if target-newlib
39162maybe-info-target-newlib: info-target-newlib
6aa8ef82 39163
a90ef4bf
JM
39164info-target-newlib: \
39165 configure-target-newlib
6aa8ef82 39166 @: $(MAKE); $(unstage)
22121df0 39167 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39168 r=`${PWD_COMMAND}`; export r; \
39169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39170 $(NORMAL_TARGET_EXPORTS) \
22121df0 39171 echo "Doing info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39172 for flag in $(EXTRA_TARGET_FLAGS); do \
39173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39174 done; \
a90ef4bf 39175 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39178 "RANLIB=$${RANLIB}" \
0c24b341 39179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39180 info) \
39181 || exit 1
39182
a90ef4bf 39183@endif target-newlib
6aa8ef82 39184
a90ef4bf
JM
39185.PHONY: maybe-dvi-target-newlib dvi-target-newlib
39186maybe-dvi-target-newlib:
39187@if target-newlib
39188maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 39189
a90ef4bf
JM
39190dvi-target-newlib: \
39191 configure-target-newlib
6aa8ef82 39192 @: $(MAKE); $(unstage)
22121df0 39193 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39194 r=`${PWD_COMMAND}`; export r; \
39195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39196 $(NORMAL_TARGET_EXPORTS) \
22121df0 39197 echo "Doing dvi in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39198 for flag in $(EXTRA_TARGET_FLAGS); do \
39199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39200 done; \
a90ef4bf 39201 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39204 "RANLIB=$${RANLIB}" \
0c24b341 39205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39206 dvi) \
39207 || exit 1
39208
a90ef4bf 39209@endif target-newlib
6aa8ef82 39210
a90ef4bf
JM
39211.PHONY: maybe-pdf-target-newlib pdf-target-newlib
39212maybe-pdf-target-newlib:
39213@if target-newlib
39214maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 39215
a90ef4bf
JM
39216pdf-target-newlib: \
39217 configure-target-newlib
6aa8ef82 39218 @: $(MAKE); $(unstage)
22121df0 39219 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39220 r=`${PWD_COMMAND}`; export r; \
39221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39222 $(NORMAL_TARGET_EXPORTS) \
22121df0 39223 echo "Doing pdf in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39224 for flag in $(EXTRA_TARGET_FLAGS); do \
39225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39226 done; \
a90ef4bf 39227 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39230 "RANLIB=$${RANLIB}" \
0c24b341 39231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39232 pdf) \
39233 || exit 1
39234
a90ef4bf 39235@endif target-newlib
6aa8ef82 39236
a90ef4bf
JM
39237.PHONY: maybe-html-target-newlib html-target-newlib
39238maybe-html-target-newlib:
39239@if target-newlib
39240maybe-html-target-newlib: html-target-newlib
6aa8ef82 39241
a90ef4bf
JM
39242html-target-newlib: \
39243 configure-target-newlib
6aa8ef82 39244 @: $(MAKE); $(unstage)
22121df0 39245 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39246 r=`${PWD_COMMAND}`; export r; \
39247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39248 $(NORMAL_TARGET_EXPORTS) \
22121df0 39249 echo "Doing html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39250 for flag in $(EXTRA_TARGET_FLAGS); do \
39251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39252 done; \
a90ef4bf 39253 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39256 "RANLIB=$${RANLIB}" \
0c24b341 39257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39258 html) \
39259 || exit 1
39260
a90ef4bf 39261@endif target-newlib
6aa8ef82 39262
a90ef4bf
JM
39263.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
39264maybe-TAGS-target-newlib:
39265@if target-newlib
39266maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 39267
a90ef4bf
JM
39268TAGS-target-newlib: \
39269 configure-target-newlib
6aa8ef82 39270 @: $(MAKE); $(unstage)
22121df0 39271 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39272 r=`${PWD_COMMAND}`; export r; \
39273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39274 $(NORMAL_TARGET_EXPORTS) \
22121df0 39275 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39276 for flag in $(EXTRA_TARGET_FLAGS); do \
39277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39278 done; \
a90ef4bf 39279 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39282 "RANLIB=$${RANLIB}" \
0c24b341 39283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39284 TAGS) \
39285 || exit 1
39286
a90ef4bf 39287@endif target-newlib
6aa8ef82 39288
a90ef4bf
JM
39289.PHONY: maybe-install-info-target-newlib install-info-target-newlib
39290maybe-install-info-target-newlib:
39291@if target-newlib
39292maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 39293
a90ef4bf
JM
39294install-info-target-newlib: \
39295 configure-target-newlib \
39296 info-target-newlib
6aa8ef82 39297 @: $(MAKE); $(unstage)
22121df0 39298 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39299 r=`${PWD_COMMAND}`; export r; \
39300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39301 $(NORMAL_TARGET_EXPORTS) \
22121df0 39302 echo "Doing install-info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39303 for flag in $(EXTRA_TARGET_FLAGS); do \
39304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39305 done; \
a90ef4bf 39306 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39309 "RANLIB=$${RANLIB}" \
0c24b341 39310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39311 install-info) \
39312 || exit 1
39313
a90ef4bf 39314@endif target-newlib
6aa8ef82 39315
a90ef4bf
JM
39316.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
39317maybe-install-pdf-target-newlib:
39318@if target-newlib
39319maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 39320
a90ef4bf
JM
39321install-pdf-target-newlib: \
39322 configure-target-newlib \
39323 pdf-target-newlib
a3ca38d2 39324 @: $(MAKE); $(unstage)
22121df0 39325 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
a3ca38d2
DD
39326 r=`${PWD_COMMAND}`; export r; \
39327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39328 $(NORMAL_TARGET_EXPORTS) \
22121df0 39329 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib"; \
a3ca38d2
DD
39330 for flag in $(EXTRA_TARGET_FLAGS); do \
39331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39332 done; \
a90ef4bf 39333 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
39334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39336 "RANLIB=$${RANLIB}" \
0c24b341 39337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
39338 install-pdf) \
39339 || exit 1
39340
a90ef4bf 39341@endif target-newlib
a3ca38d2 39342
a90ef4bf
JM
39343.PHONY: maybe-install-html-target-newlib install-html-target-newlib
39344maybe-install-html-target-newlib:
39345@if target-newlib
39346maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 39347
a90ef4bf
JM
39348install-html-target-newlib: \
39349 configure-target-newlib \
39350 html-target-newlib
6aa8ef82 39351 @: $(MAKE); $(unstage)
22121df0 39352 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39353 r=`${PWD_COMMAND}`; export r; \
39354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39355 $(NORMAL_TARGET_EXPORTS) \
22121df0 39356 echo "Doing install-html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39357 for flag in $(EXTRA_TARGET_FLAGS); do \
39358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39359 done; \
a90ef4bf 39360 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39363 "RANLIB=$${RANLIB}" \
0c24b341 39364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39365 install-html) \
39366 || exit 1
39367
a90ef4bf 39368@endif target-newlib
6aa8ef82 39369
a90ef4bf
JM
39370.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
39371maybe-installcheck-target-newlib:
39372@if target-newlib
39373maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 39374
a90ef4bf
JM
39375installcheck-target-newlib: \
39376 configure-target-newlib
6aa8ef82 39377 @: $(MAKE); $(unstage)
22121df0 39378 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39379 r=`${PWD_COMMAND}`; export r; \
39380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39381 $(NORMAL_TARGET_EXPORTS) \
22121df0 39382 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39383 for flag in $(EXTRA_TARGET_FLAGS); do \
39384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39385 done; \
a90ef4bf 39386 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39389 "RANLIB=$${RANLIB}" \
0c24b341 39390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39391 installcheck) \
39392 || exit 1
39393
a90ef4bf 39394@endif target-newlib
6aa8ef82 39395
a90ef4bf
JM
39396.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
39397maybe-mostlyclean-target-newlib:
39398@if target-newlib
39399maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 39400
a90ef4bf 39401mostlyclean-target-newlib:
6aa8ef82 39402 @: $(MAKE); $(unstage)
22121df0 39403 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39404 r=`${PWD_COMMAND}`; export r; \
39405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39406 $(NORMAL_TARGET_EXPORTS) \
22121df0 39407 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39408 for flag in $(EXTRA_TARGET_FLAGS); do \
39409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39410 done; \
a90ef4bf 39411 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39414 "RANLIB=$${RANLIB}" \
0c24b341 39415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39416 mostlyclean) \
39417 || exit 1
39418
a90ef4bf 39419@endif target-newlib
6aa8ef82 39420
a90ef4bf
JM
39421.PHONY: maybe-clean-target-newlib clean-target-newlib
39422maybe-clean-target-newlib:
39423@if target-newlib
39424maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 39425
a90ef4bf 39426clean-target-newlib:
6aa8ef82 39427 @: $(MAKE); $(unstage)
22121df0 39428 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39429 r=`${PWD_COMMAND}`; export r; \
39430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39431 $(NORMAL_TARGET_EXPORTS) \
22121df0 39432 echo "Doing clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39433 for flag in $(EXTRA_TARGET_FLAGS); do \
39434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39435 done; \
a90ef4bf 39436 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39439 "RANLIB=$${RANLIB}" \
0c24b341 39440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39441 clean) \
39442 || exit 1
39443
a90ef4bf 39444@endif target-newlib
6aa8ef82 39445
a90ef4bf
JM
39446.PHONY: maybe-distclean-target-newlib distclean-target-newlib
39447maybe-distclean-target-newlib:
39448@if target-newlib
39449maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 39450
a90ef4bf 39451distclean-target-newlib:
6aa8ef82 39452 @: $(MAKE); $(unstage)
22121df0 39453 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39454 r=`${PWD_COMMAND}`; export r; \
39455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39456 $(NORMAL_TARGET_EXPORTS) \
22121df0 39457 echo "Doing distclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39458 for flag in $(EXTRA_TARGET_FLAGS); do \
39459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39460 done; \
a90ef4bf 39461 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39464 "RANLIB=$${RANLIB}" \
0c24b341 39465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39466 distclean) \
39467 || exit 1
39468
a90ef4bf 39469@endif target-newlib
6aa8ef82 39470
a90ef4bf
JM
39471.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
39472maybe-maintainer-clean-target-newlib:
39473@if target-newlib
39474maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 39475
a90ef4bf 39476maintainer-clean-target-newlib:
6aa8ef82 39477 @: $(MAKE); $(unstage)
22121df0 39478 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39479 r=`${PWD_COMMAND}`; export r; \
39480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39481 $(NORMAL_TARGET_EXPORTS) \
22121df0 39482 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39483 for flag in $(EXTRA_TARGET_FLAGS); do \
39484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39485 done; \
a90ef4bf 39486 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39489 "RANLIB=$${RANLIB}" \
0c24b341 39490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39491 maintainer-clean) \
39492 || exit 1
39493
a90ef4bf 39494@endif target-newlib
6aa8ef82
DJ
39495
39496
39497
39498
39499
a90ef4bf
JM
39500.PHONY: configure-target-libgcc maybe-configure-target-libgcc
39501maybe-configure-target-libgcc:
e552509b 39502@if gcc-bootstrap
a90ef4bf 39503configure-target-libgcc: stage_current
e552509b 39504@endif gcc-bootstrap
a90ef4bf
JM
39505@if target-libgcc
39506maybe-configure-target-libgcc: configure-target-libgcc
39507configure-target-libgcc:
e552509b
ILT
39508 @r=`${PWD_COMMAND}`; export r; \
39509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39510 echo "Checking multilib configuration for libgcc..."; \
22121df0
L
39511 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
39512 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39513 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39514 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39515 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 39516 else \
a90ef4bf
JM
39517 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
39518 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
39519 fi; \
39520 else \
a90ef4bf 39521 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 39522 fi; \
a90ef4bf 39523 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
22121df0 39524 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
e552509b 39525 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39526 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
39527 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
39528 case $(srcdir) in \
39529 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 39530 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
39531 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39532 esac; \
1b6c0831 39533 module_srcdir=libgcc; \
e552509b 39534 rm -f no-such-file || : ; \
1b6c0831
L
39535 CONFIG_SITE=no-such-file $(SHELL) \
39536 $$s/$$module_srcdir/configure \
39537 --srcdir=$${topdir}/$$module_srcdir \
e552509b 39538 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39539 --target=${target_alias} \
e552509b 39540 || exit 1
a90ef4bf 39541@endif target-libgcc
e552509b
ILT
39542
39543
e552509b 39544
a90ef4bf
JM
39545.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
39546maybe-configure-stage1-target-libgcc:
39547@if target-libgcc-bootstrap
39548maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
39549configure-stage1-target-libgcc:
39550 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
39551 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
39552 @r=`${PWD_COMMAND}`; export r; \
39553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39554 TFLAGS="$(STAGE1_TFLAGS)"; \
39555 echo "Checking multilib configuration for libgcc..."; \
22121df0 39556 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39557 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39558 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39559 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
39560 else \
39561 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
39562 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
39563 fi; \
39564 else \
39565 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
39566 fi; \
39567 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 39568 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39569 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39570 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39571 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
39572 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc; \
39573 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
39574 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
39575 case $(srcdir) in \
39576 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39577 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
39578 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39579 esac; \
1b6c0831
L
39580 module_srcdir=libgcc; \
39581 $(SHELL) $$s/$$module_srcdir/configure \
39582 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 39583 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
39584 --target=${target_alias} \
39585 \
a90ef4bf
JM
39586 $(STAGE1_CONFIGURE_FLAGS)
39587@endif target-libgcc-bootstrap
e552509b 39588
a90ef4bf
JM
39589.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
39590maybe-configure-stage2-target-libgcc:
39591@if target-libgcc-bootstrap
39592maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
39593configure-stage2-target-libgcc:
39594 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
39595 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
39596 @r=`${PWD_COMMAND}`; export r; \
39597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39598 TFLAGS="$(STAGE2_TFLAGS)"; \
39599 echo "Checking multilib configuration for libgcc..."; \
22121df0 39600 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39601 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39602 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39603 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
39604 else \
39605 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
39606 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
39607 fi; \
39608 else \
39609 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
39610 fi; \
39611 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 39612 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39613 \
39614 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39615 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39616 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
39617 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc; \
39618 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
39619 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
39620 case $(srcdir) in \
39621 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39622 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
39623 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39624 esac; \
1b6c0831
L
39625 module_srcdir=libgcc; \
39626 $(SHELL) $$s/$$module_srcdir/configure \
39627 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 39628 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39629 --target=${target_alias} \
22121df0 39630 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
39631 $(STAGE2_CONFIGURE_FLAGS)
39632@endif target-libgcc-bootstrap
9b980aa1 39633
a90ef4bf
JM
39634.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
39635maybe-configure-stage3-target-libgcc:
39636@if target-libgcc-bootstrap
39637maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
39638configure-stage3-target-libgcc:
39639 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
39640 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
39641 @r=`${PWD_COMMAND}`; export r; \
39642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39643 TFLAGS="$(STAGE3_TFLAGS)"; \
39644 echo "Checking multilib configuration for libgcc..."; \
22121df0 39645 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39646 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39647 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39648 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
39649 else \
39650 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
39651 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
39652 fi; \
39653 else \
39654 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
39655 fi; \
39656 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 39657 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39658 \
39659 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39660 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39661 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
39662 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc; \
39663 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
39664 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
39665 case $(srcdir) in \
39666 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39667 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
39668 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39669 esac; \
1b6c0831
L
39670 module_srcdir=libgcc; \
39671 $(SHELL) $$s/$$module_srcdir/configure \
39672 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 39673 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39674 --target=${target_alias} \
22121df0 39675 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
39676 $(STAGE3_CONFIGURE_FLAGS)
39677@endif target-libgcc-bootstrap
e552509b 39678
a90ef4bf
JM
39679.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
39680maybe-configure-stage4-target-libgcc:
39681@if target-libgcc-bootstrap
39682maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
39683configure-stage4-target-libgcc:
39684 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
39685 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
39686 @r=`${PWD_COMMAND}`; export r; \
e552509b 39687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39688 TFLAGS="$(STAGE4_TFLAGS)"; \
39689 echo "Checking multilib configuration for libgcc..."; \
22121df0 39690 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39691 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39692 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39693 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
39694 else \
39695 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
39696 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
39697 fi; \
39698 else \
39699 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
39700 fi; \
39701 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 39702 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39703 \
39704 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39705 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39706 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
39707 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc; \
39708 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
39709 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
39710 case $(srcdir) in \
39711 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39712 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
39713 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39714 esac; \
1b6c0831
L
39715 module_srcdir=libgcc; \
39716 $(SHELL) $$s/$$module_srcdir/configure \
39717 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 39718 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39719 --target=${target_alias} \
22121df0 39720 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
39721 $(STAGE4_CONFIGURE_FLAGS)
39722@endif target-libgcc-bootstrap
39723
39724.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
39725maybe-configure-stageprofile-target-libgcc:
39726@if target-libgcc-bootstrap
39727maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
39728configure-stageprofile-target-libgcc:
39729 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
39730 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
39731 @r=`${PWD_COMMAND}`; export r; \
e552509b 39732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39733 TFLAGS="$(STAGEprofile_TFLAGS)"; \
39734 echo "Checking multilib configuration for libgcc..."; \
22121df0 39735 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39736 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39737 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39738 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
39739 else \
39740 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
39741 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
39742 fi; \
39743 else \
39744 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
39745 fi; \
39746 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 39747 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39748 \
39749 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39750 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39751 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
39752 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc; \
39753 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
39754 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
39755 case $(srcdir) in \
39756 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39757 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
39758 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39759 esac; \
1b6c0831
L
39760 module_srcdir=libgcc; \
39761 $(SHELL) $$s/$$module_srcdir/configure \
39762 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 39763 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39764 --target=${target_alias} \
22121df0 39765 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
39766 $(STAGEprofile_CONFIGURE_FLAGS)
39767@endif target-libgcc-bootstrap
e552509b 39768
a90ef4bf
JM
39769.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
39770maybe-configure-stagefeedback-target-libgcc:
39771@if target-libgcc-bootstrap
39772maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
39773configure-stagefeedback-target-libgcc:
39774 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
39775 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
39776 @r=`${PWD_COMMAND}`; export r; \
e552509b 39777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39778 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
39779 echo "Checking multilib configuration for libgcc..."; \
22121df0 39780 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39781 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39782 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39783 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
39784 else \
39785 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
39786 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
39787 fi; \
39788 else \
39789 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
39790 fi; \
39791 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 39792 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39793 \
39794 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39795 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39796 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
39797 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc; \
39798 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
39799 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
39800 case $(srcdir) in \
39801 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39802 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
39803 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39804 esac; \
1b6c0831
L
39805 module_srcdir=libgcc; \
39806 $(SHELL) $$s/$$module_srcdir/configure \
39807 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 39808 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39809 --target=${target_alias} \
22121df0 39810 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
39811 $(STAGEfeedback_CONFIGURE_FLAGS)
39812@endif target-libgcc-bootstrap
e552509b 39813
e552509b 39814
e552509b 39815
e552509b 39816
e552509b 39817
a90ef4bf
JM
39818.PHONY: all-target-libgcc maybe-all-target-libgcc
39819maybe-all-target-libgcc:
39820@if gcc-bootstrap
39821all-target-libgcc: stage_current
39822@endif gcc-bootstrap
39823@if target-libgcc
39824TARGET-target-libgcc=all
39825maybe-all-target-libgcc: all-target-libgcc
39826all-target-libgcc: configure-target-libgcc
39827 @r=`${PWD_COMMAND}`; export r; \
e552509b 39828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39829 $(NORMAL_TARGET_EXPORTS) \
39830 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 39831 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
39832 $(TARGET-target-libgcc))
39833@endif target-libgcc
e552509b 39834
e552509b 39835
e552509b 39836
a90ef4bf
JM
39837.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
39838.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
39839maybe-all-stage1-target-libgcc:
39840maybe-clean-stage1-target-libgcc:
39841@if target-libgcc-bootstrap
39842maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
39843all-stage1: all-stage1-target-libgcc
39844TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
39845all-stage1-target-libgcc: configure-stage1-target-libgcc
39846 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
39847 @r=`${PWD_COMMAND}`; export r; \
e552509b 39848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
39849 TFLAGS="$(STAGE1_TFLAGS)"; \
39850 $(NORMAL_TARGET_EXPORTS) \
39851 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 39852 \
a90ef4bf
JM
39853 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39854 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39855 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39856 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39857 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39858 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39859 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
39860 $(EXTRA_TARGET_FLAGS) \
39861 \
05a13254 39862 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 39863 $(TARGET-stage1-target-libgcc)
e552509b 39864
a90ef4bf
JM
39865maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
39866clean-stage1: clean-stage1-target-libgcc
39867clean-stage1-target-libgcc:
39868 @if [ $(current_stage) = stage1 ]; then \
39869 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
39870 else \
39871 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
39872 $(MAKE) stage1-start; \
39873 fi; \
39874 cd $(TARGET_SUBDIR)/libgcc && \
39875 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 39876 clean
a90ef4bf 39877@endif target-libgcc-bootstrap
e552509b 39878
e552509b 39879
a90ef4bf
JM
39880.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
39881.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
39882maybe-all-stage2-target-libgcc:
39883maybe-clean-stage2-target-libgcc:
39884@if target-libgcc-bootstrap
39885maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
39886all-stage2: all-stage2-target-libgcc
39887TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
39888all-stage2-target-libgcc: configure-stage2-target-libgcc
39889 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
39890 @r=`${PWD_COMMAND}`; export r; \
e552509b 39891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39892 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 39893 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39894 \
39895 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 39896 \
a90ef4bf
JM
39897 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39898 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39899 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39900 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39901 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39902 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39903 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39904 $(EXTRA_TARGET_FLAGS) \
05a13254 39905 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 39906 $(TARGET-stage2-target-libgcc)
e552509b 39907
a90ef4bf
JM
39908maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
39909clean-stage2: clean-stage2-target-libgcc
39910clean-stage2-target-libgcc:
39911 @if [ $(current_stage) = stage2 ]; then \
39912 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
39913 else \
39914 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
39915 $(MAKE) stage2-start; \
39916 fi; \
39917 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 39918 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 39919@endif target-libgcc-bootstrap
e552509b 39920
e552509b 39921
a90ef4bf
JM
39922.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
39923.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
39924maybe-all-stage3-target-libgcc:
39925maybe-clean-stage3-target-libgcc:
39926@if target-libgcc-bootstrap
39927maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
39928all-stage3: all-stage3-target-libgcc
39929TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
39930all-stage3-target-libgcc: configure-stage3-target-libgcc
39931 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
39932 @r=`${PWD_COMMAND}`; export r; \
e552509b 39933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39934 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 39935 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39936 \
39937 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 39938 \
a90ef4bf
JM
39939 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39940 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39941 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39942 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39943 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39944 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39945 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39946 $(EXTRA_TARGET_FLAGS) \
05a13254 39947 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 39948 $(TARGET-stage3-target-libgcc)
e552509b 39949
a90ef4bf
JM
39950maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
39951clean-stage3: clean-stage3-target-libgcc
39952clean-stage3-target-libgcc:
39953 @if [ $(current_stage) = stage3 ]; then \
39954 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
39955 else \
39956 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
39957 $(MAKE) stage3-start; \
39958 fi; \
39959 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 39960 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 39961@endif target-libgcc-bootstrap
e552509b 39962
e552509b 39963
a90ef4bf
JM
39964.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
39965.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
39966maybe-all-stage4-target-libgcc:
39967maybe-clean-stage4-target-libgcc:
39968@if target-libgcc-bootstrap
39969maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
39970all-stage4: all-stage4-target-libgcc
39971TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
39972all-stage4-target-libgcc: configure-stage4-target-libgcc
39973 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
39974 @r=`${PWD_COMMAND}`; export r; \
e552509b 39975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39976 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 39977 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39978 \
39979 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 39980 \
a90ef4bf
JM
39981 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39982 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39983 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39984 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39985 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39986 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39987 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39988 $(EXTRA_TARGET_FLAGS) \
05a13254 39989 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 39990 $(TARGET-stage4-target-libgcc)
e552509b 39991
a90ef4bf
JM
39992maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
39993clean-stage4: clean-stage4-target-libgcc
39994clean-stage4-target-libgcc:
39995 @if [ $(current_stage) = stage4 ]; then \
39996 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
39997 else \
39998 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
39999 $(MAKE) stage4-start; \
40000 fi; \
40001 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40002 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40003@endif target-libgcc-bootstrap
e552509b
ILT
40004
40005
a90ef4bf
JM
40006.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
40007.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
40008maybe-all-stageprofile-target-libgcc:
40009maybe-clean-stageprofile-target-libgcc:
40010@if target-libgcc-bootstrap
40011maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
40012all-stageprofile: all-stageprofile-target-libgcc
40013TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
40014all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
40015 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
40016 @r=`${PWD_COMMAND}`; export r; \
40017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40018 TFLAGS="$(STAGEprofile_TFLAGS)"; \
40019 $(NORMAL_TARGET_EXPORTS) \
40020 \
40021 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40022 \
a90ef4bf
JM
40023 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40024 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40025 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40026 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40027 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40028 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40029 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40030 $(EXTRA_TARGET_FLAGS) \
05a13254 40031 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
40032 $(TARGET-stageprofile-target-libgcc)
40033
40034maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
40035clean-stageprofile: clean-stageprofile-target-libgcc
40036clean-stageprofile-target-libgcc:
40037 @if [ $(current_stage) = stageprofile ]; then \
40038 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 40039 else \
a90ef4bf
JM
40040 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
40041 $(MAKE) stageprofile-start; \
c52c6897 40042 fi; \
a90ef4bf 40043 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40044 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40045@endif target-libgcc-bootstrap
d545f33b
PB
40046
40047
a90ef4bf
JM
40048.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
40049.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
40050maybe-all-stagefeedback-target-libgcc:
40051maybe-clean-stagefeedback-target-libgcc:
40052@if target-libgcc-bootstrap
40053maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
40054all-stagefeedback: all-stagefeedback-target-libgcc
40055TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
40056all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
40057 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
40058 @r=`${PWD_COMMAND}`; export r; \
40059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40060 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
40061 $(NORMAL_TARGET_EXPORTS) \
40062 \
40063 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40064 \
a90ef4bf
JM
40065 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40066 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40067 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40068 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40069 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40070 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40071 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40072 $(EXTRA_TARGET_FLAGS) \
05a13254 40073 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
40074 $(TARGET-stagefeedback-target-libgcc)
40075
40076maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
40077clean-stagefeedback: clean-stagefeedback-target-libgcc
40078clean-stagefeedback-target-libgcc:
40079 @if [ $(current_stage) = stagefeedback ]; then \
40080 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40081 else \
40082 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
40083 $(MAKE) stagefeedback-start; \
40084 fi; \
40085 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40086 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40087@endif target-libgcc-bootstrap
4b1cb4fe 40088
a7254363
PB
40089
40090
d545f33b
PB
40091
40092
4b1cb4fe 40093
a90ef4bf
JM
40094.PHONY: check-target-libgcc maybe-check-target-libgcc
40095maybe-check-target-libgcc:
40096@if target-libgcc
40097maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 40098
a90ef4bf
JM
40099# Dummy target for uncheckable module.
40100check-target-libgcc:
4b1cb4fe 40101
a90ef4bf 40102@endif target-libgcc
4b1cb4fe 40103
a90ef4bf
JM
40104.PHONY: install-target-libgcc maybe-install-target-libgcc
40105maybe-install-target-libgcc:
40106@if target-libgcc
40107maybe-install-target-libgcc: install-target-libgcc
40108
40109install-target-libgcc: installdirs
0aed8855 40110 @: $(MAKE); $(unstage)
4b1cb4fe
DD
40111 @r=`${PWD_COMMAND}`; export r; \
40112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40113 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40114 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 40115 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 40116
a90ef4bf 40117@endif target-libgcc
4b1cb4fe 40118
a90ef4bf
JM
40119.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
40120maybe-install-strip-target-libgcc:
40121@if target-libgcc
40122maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 40123
a90ef4bf 40124install-strip-target-libgcc: installdirs
9b980aa1
RW
40125 @: $(MAKE); $(unstage)
40126 @r=`${PWD_COMMAND}`; export r; \
40127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40128 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40129 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
40130 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40131
a90ef4bf 40132@endif target-libgcc
9b980aa1 40133
56a8fe78 40134# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 40135
a90ef4bf
JM
40136.PHONY: maybe-info-target-libgcc info-target-libgcc
40137maybe-info-target-libgcc:
40138@if target-libgcc
40139maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 40140
a90ef4bf
JM
40141info-target-libgcc: \
40142 configure-target-libgcc
0aed8855 40143 @: $(MAKE); $(unstage)
22121df0 40144 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40145 r=`${PWD_COMMAND}`; export r; \
40146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40147 $(NORMAL_TARGET_EXPORTS) \
22121df0 40148 echo "Doing info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40149 for flag in $(EXTRA_TARGET_FLAGS); do \
40150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40151 done; \
a90ef4bf 40152 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40155 "RANLIB=$${RANLIB}" \
0c24b341 40156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40157 info) \
4b1cb4fe
DD
40158 || exit 1
40159
a90ef4bf 40160@endif target-libgcc
4b1cb4fe 40161
a90ef4bf
JM
40162.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
40163maybe-dvi-target-libgcc:
40164@if target-libgcc
40165maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 40166
a90ef4bf
JM
40167dvi-target-libgcc: \
40168 configure-target-libgcc
0aed8855 40169 @: $(MAKE); $(unstage)
22121df0 40170 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40171 r=`${PWD_COMMAND}`; export r; \
40172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40173 $(NORMAL_TARGET_EXPORTS) \
22121df0 40174 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40175 for flag in $(EXTRA_TARGET_FLAGS); do \
40176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40177 done; \
a90ef4bf 40178 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40181 "RANLIB=$${RANLIB}" \
0c24b341 40182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40183 dvi) \
4b1cb4fe
DD
40184 || exit 1
40185
a90ef4bf 40186@endif target-libgcc
4b1cb4fe 40187
a90ef4bf
JM
40188.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
40189maybe-pdf-target-libgcc:
40190@if target-libgcc
40191maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 40192
a90ef4bf
JM
40193pdf-target-libgcc: \
40194 configure-target-libgcc
56a8fe78 40195 @: $(MAKE); $(unstage)
22121df0 40196 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
56a8fe78
DD
40197 r=`${PWD_COMMAND}`; export r; \
40198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40199 $(NORMAL_TARGET_EXPORTS) \
22121df0 40200 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc"; \
56a8fe78
DD
40201 for flag in $(EXTRA_TARGET_FLAGS); do \
40202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40203 done; \
a90ef4bf 40204 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
40205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40207 "RANLIB=$${RANLIB}" \
0c24b341 40208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40209 pdf) \
40210 || exit 1
40211
a90ef4bf 40212@endif target-libgcc
56a8fe78 40213
a90ef4bf
JM
40214.PHONY: maybe-html-target-libgcc html-target-libgcc
40215maybe-html-target-libgcc:
40216@if target-libgcc
40217maybe-html-target-libgcc: html-target-libgcc
6d389afc 40218
a90ef4bf
JM
40219html-target-libgcc: \
40220 configure-target-libgcc
0aed8855 40221 @: $(MAKE); $(unstage)
22121df0 40222 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
6d389afc
MS
40223 r=`${PWD_COMMAND}`; export r; \
40224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 40225 $(NORMAL_TARGET_EXPORTS) \
22121df0 40226 echo "Doing html in $(TARGET_SUBDIR)/libgcc"; \
6d389afc
MS
40227 for flag in $(EXTRA_TARGET_FLAGS); do \
40228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40229 done; \
a90ef4bf 40230 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
40231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40233 "RANLIB=$${RANLIB}" \
0c24b341 40234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40235 html) \
40236 || exit 1
40237
a90ef4bf 40238@endif target-libgcc
6d389afc 40239
a90ef4bf
JM
40240.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
40241maybe-TAGS-target-libgcc:
40242@if target-libgcc
40243maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 40244
a90ef4bf
JM
40245TAGS-target-libgcc: \
40246 configure-target-libgcc
0aed8855 40247 @: $(MAKE); $(unstage)
22121df0 40248 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40249 r=`${PWD_COMMAND}`; export r; \
40250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40251 $(NORMAL_TARGET_EXPORTS) \
22121df0 40252 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40253 for flag in $(EXTRA_TARGET_FLAGS); do \
40254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40255 done; \
a90ef4bf 40256 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40259 "RANLIB=$${RANLIB}" \
0c24b341 40260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40261 TAGS) \
4b1cb4fe
DD
40262 || exit 1
40263
a90ef4bf 40264@endif target-libgcc
4b1cb4fe 40265
a90ef4bf
JM
40266.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
40267maybe-install-info-target-libgcc:
40268@if target-libgcc
40269maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 40270
a90ef4bf
JM
40271install-info-target-libgcc: \
40272 configure-target-libgcc \
40273 info-target-libgcc
0aed8855 40274 @: $(MAKE); $(unstage)
22121df0 40275 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40276 r=`${PWD_COMMAND}`; export r; \
40277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40278 $(NORMAL_TARGET_EXPORTS) \
22121df0 40279 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40280 for flag in $(EXTRA_TARGET_FLAGS); do \
40281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40282 done; \
a90ef4bf 40283 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40286 "RANLIB=$${RANLIB}" \
0c24b341 40287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40288 install-info) \
4b1cb4fe
DD
40289 || exit 1
40290
a90ef4bf 40291@endif target-libgcc
4b1cb4fe 40292
a90ef4bf
JM
40293.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
40294maybe-install-pdf-target-libgcc:
40295@if target-libgcc
40296maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 40297
a90ef4bf
JM
40298install-pdf-target-libgcc: \
40299 configure-target-libgcc \
40300 pdf-target-libgcc
a3ca38d2 40301 @: $(MAKE); $(unstage)
22121df0 40302 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
a3ca38d2
DD
40303 r=`${PWD_COMMAND}`; export r; \
40304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40305 $(NORMAL_TARGET_EXPORTS) \
22121df0 40306 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc"; \
a3ca38d2
DD
40307 for flag in $(EXTRA_TARGET_FLAGS); do \
40308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40309 done; \
a90ef4bf 40310 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
40311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40313 "RANLIB=$${RANLIB}" \
0c24b341 40314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40315 install-pdf) \
40316 || exit 1
40317
a90ef4bf 40318@endif target-libgcc
a3ca38d2 40319
a90ef4bf
JM
40320.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
40321maybe-install-html-target-libgcc:
40322@if target-libgcc
40323maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 40324
a90ef4bf
JM
40325install-html-target-libgcc: \
40326 configure-target-libgcc \
40327 html-target-libgcc
108a6f8e 40328 @: $(MAKE); $(unstage)
22121df0 40329 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
108a6f8e
CD
40330 r=`${PWD_COMMAND}`; export r; \
40331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40332 $(NORMAL_TARGET_EXPORTS) \
22121df0 40333 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc"; \
108a6f8e
CD
40334 for flag in $(EXTRA_TARGET_FLAGS); do \
40335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40336 done; \
a90ef4bf 40337 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
40338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40340 "RANLIB=$${RANLIB}" \
0c24b341 40341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
40342 install-html) \
40343 || exit 1
40344
a90ef4bf 40345@endif target-libgcc
108a6f8e 40346
a90ef4bf
JM
40347.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
40348maybe-installcheck-target-libgcc:
40349@if target-libgcc
40350maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 40351
a90ef4bf
JM
40352installcheck-target-libgcc: \
40353 configure-target-libgcc
0aed8855 40354 @: $(MAKE); $(unstage)
22121df0 40355 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40356 r=`${PWD_COMMAND}`; export r; \
40357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40358 $(NORMAL_TARGET_EXPORTS) \
22121df0 40359 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40360 for flag in $(EXTRA_TARGET_FLAGS); do \
40361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40362 done; \
a90ef4bf 40363 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40366 "RANLIB=$${RANLIB}" \
0c24b341 40367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40368 installcheck) \
4b1cb4fe
DD
40369 || exit 1
40370
a90ef4bf 40371@endif target-libgcc
4b1cb4fe 40372
a90ef4bf
JM
40373.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
40374maybe-mostlyclean-target-libgcc:
40375@if target-libgcc
40376maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 40377
a90ef4bf 40378mostlyclean-target-libgcc:
0aed8855 40379 @: $(MAKE); $(unstage)
22121df0 40380 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40381 r=`${PWD_COMMAND}`; export r; \
40382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40383 $(NORMAL_TARGET_EXPORTS) \
22121df0 40384 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40385 for flag in $(EXTRA_TARGET_FLAGS); do \
40386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40387 done; \
a90ef4bf 40388 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40391 "RANLIB=$${RANLIB}" \
0c24b341 40392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40393 mostlyclean) \
4b1cb4fe
DD
40394 || exit 1
40395
a90ef4bf 40396@endif target-libgcc
4b1cb4fe 40397
a90ef4bf
JM
40398.PHONY: maybe-clean-target-libgcc clean-target-libgcc
40399maybe-clean-target-libgcc:
40400@if target-libgcc
40401maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 40402
a90ef4bf 40403clean-target-libgcc:
0aed8855 40404 @: $(MAKE); $(unstage)
22121df0 40405 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40406 r=`${PWD_COMMAND}`; export r; \
40407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40408 $(NORMAL_TARGET_EXPORTS) \
22121df0 40409 echo "Doing clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40410 for flag in $(EXTRA_TARGET_FLAGS); do \
40411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40412 done; \
a90ef4bf 40413 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40416 "RANLIB=$${RANLIB}" \
0c24b341 40417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40418 clean) \
4b1cb4fe
DD
40419 || exit 1
40420
a90ef4bf 40421@endif target-libgcc
4b1cb4fe 40422
a90ef4bf
JM
40423.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
40424maybe-distclean-target-libgcc:
40425@if target-libgcc
40426maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 40427
a90ef4bf 40428distclean-target-libgcc:
0aed8855 40429 @: $(MAKE); $(unstage)
22121df0 40430 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40431 r=`${PWD_COMMAND}`; export r; \
40432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40433 $(NORMAL_TARGET_EXPORTS) \
22121df0 40434 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40435 for flag in $(EXTRA_TARGET_FLAGS); do \
40436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40437 done; \
a90ef4bf 40438 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40441 "RANLIB=$${RANLIB}" \
0c24b341 40442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40443 distclean) \
4b1cb4fe
DD
40444 || exit 1
40445
a90ef4bf 40446@endif target-libgcc
4b1cb4fe 40447
a90ef4bf
JM
40448.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
40449maybe-maintainer-clean-target-libgcc:
40450@if target-libgcc
40451maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 40452
a90ef4bf 40453maintainer-clean-target-libgcc:
0aed8855 40454 @: $(MAKE); $(unstage)
22121df0 40455 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40456 r=`${PWD_COMMAND}`; export r; \
40457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40458 $(NORMAL_TARGET_EXPORTS) \
22121df0 40459 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40460 for flag in $(EXTRA_TARGET_FLAGS); do \
40461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40462 done; \
a90ef4bf 40463 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40466 "RANLIB=$${RANLIB}" \
0c24b341 40467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40468 maintainer-clean) \
4b1cb4fe
DD
40469 || exit 1
40470
a90ef4bf 40471@endif target-libgcc
4b1cb4fe
DD
40472
40473
3866be5d 40474
a7254363 40475
e90269c8 40476
2bf680c4
ILT
40477.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
40478maybe-configure-target-libbacktrace:
40479@if gcc-bootstrap
40480configure-target-libbacktrace: stage_current
40481@endif gcc-bootstrap
40482@if target-libbacktrace
40483maybe-configure-target-libbacktrace: configure-target-libbacktrace
40484configure-target-libbacktrace:
40485 @: $(MAKE); $(unstage)
40486 @r=`${PWD_COMMAND}`; export r; \
40487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40488 echo "Checking multilib configuration for libbacktrace..."; \
22121df0
L
40489 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
40490 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null; \
2bf680c4
ILT
40491 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
40492 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
40493 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
40494 else \
40495 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
40496 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
40497 fi; \
40498 else \
40499 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
40500 fi; \
40501 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 40502 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
2bf680c4
ILT
40503 $(NORMAL_TARGET_EXPORTS) \
40504 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
40505 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
40506 case $(srcdir) in \
40507 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40508 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
40509 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40510 esac; \
1b6c0831 40511 module_srcdir=libbacktrace; \
2bf680c4 40512 rm -f no-such-file || : ; \
1b6c0831
L
40513 CONFIG_SITE=no-such-file $(SHELL) \
40514 $$s/$$module_srcdir/configure \
40515 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 40516 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40517 --target=${target_alias} \
2bf680c4
ILT
40518 || exit 1
40519@endif target-libbacktrace
40520
40521
40522
40523
40524
40525.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
40526maybe-all-target-libbacktrace:
40527@if gcc-bootstrap
40528all-target-libbacktrace: stage_current
40529@endif gcc-bootstrap
40530@if target-libbacktrace
40531TARGET-target-libbacktrace=all
40532maybe-all-target-libbacktrace: all-target-libbacktrace
40533all-target-libbacktrace: configure-target-libbacktrace
40534 @: $(MAKE); $(unstage)
40535 @r=`${PWD_COMMAND}`; export r; \
40536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40537 $(NORMAL_TARGET_EXPORTS) \
40538 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 40539 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
40540 $(TARGET-target-libbacktrace))
40541@endif target-libbacktrace
40542
40543
40544
40545
40546
40547.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
40548maybe-check-target-libbacktrace:
40549@if target-libbacktrace
40550maybe-check-target-libbacktrace: check-target-libbacktrace
40551
40552check-target-libbacktrace:
40553 @: $(MAKE); $(unstage)
40554 @r=`${PWD_COMMAND}`; export r; \
40555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40556 $(NORMAL_TARGET_EXPORTS) \
40557 (cd $(TARGET_SUBDIR)/libbacktrace && \
40558 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
40559
40560@endif target-libbacktrace
40561
40562.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
40563maybe-install-target-libbacktrace:
40564@if target-libbacktrace
40565maybe-install-target-libbacktrace: install-target-libbacktrace
40566
40567install-target-libbacktrace: installdirs
40568 @: $(MAKE); $(unstage)
40569 @r=`${PWD_COMMAND}`; export r; \
40570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40571 $(NORMAL_TARGET_EXPORTS) \
40572 (cd $(TARGET_SUBDIR)/libbacktrace && \
40573 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
40574
40575@endif target-libbacktrace
40576
40577.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
40578maybe-install-strip-target-libbacktrace:
40579@if target-libbacktrace
40580maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
40581
40582install-strip-target-libbacktrace: installdirs
40583 @: $(MAKE); $(unstage)
40584 @r=`${PWD_COMMAND}`; export r; \
40585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40586 $(NORMAL_TARGET_EXPORTS) \
40587 (cd $(TARGET_SUBDIR)/libbacktrace && \
40588 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40589
40590@endif target-libbacktrace
40591
40592# Other targets (info, dvi, pdf, etc.)
40593
40594.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
40595maybe-info-target-libbacktrace:
40596@if target-libbacktrace
40597maybe-info-target-libbacktrace: info-target-libbacktrace
40598
40599info-target-libbacktrace: \
40600 configure-target-libbacktrace
40601 @: $(MAKE); $(unstage)
22121df0 40602 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
40603 r=`${PWD_COMMAND}`; export r; \
40604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40605 $(NORMAL_TARGET_EXPORTS) \
22121df0 40606 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
40607 for flag in $(EXTRA_TARGET_FLAGS); do \
40608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40609 done; \
40610 (cd $(TARGET_SUBDIR)/libbacktrace && \
40611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40613 "RANLIB=$${RANLIB}" \
40614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40615 info) \
40616 || exit 1
40617
40618@endif target-libbacktrace
40619
40620.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
40621maybe-dvi-target-libbacktrace:
40622@if target-libbacktrace
40623maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
40624
40625dvi-target-libbacktrace: \
40626 configure-target-libbacktrace
40627 @: $(MAKE); $(unstage)
22121df0 40628 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
40629 r=`${PWD_COMMAND}`; export r; \
40630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40631 $(NORMAL_TARGET_EXPORTS) \
22121df0 40632 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
40633 for flag in $(EXTRA_TARGET_FLAGS); do \
40634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40635 done; \
40636 (cd $(TARGET_SUBDIR)/libbacktrace && \
40637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40639 "RANLIB=$${RANLIB}" \
40640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40641 dvi) \
40642 || exit 1
40643
40644@endif target-libbacktrace
40645
40646.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
40647maybe-pdf-target-libbacktrace:
40648@if target-libbacktrace
40649maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
40650
40651pdf-target-libbacktrace: \
40652 configure-target-libbacktrace
40653 @: $(MAKE); $(unstage)
22121df0 40654 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
40655 r=`${PWD_COMMAND}`; export r; \
40656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40657 $(NORMAL_TARGET_EXPORTS) \
22121df0 40658 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
40659 for flag in $(EXTRA_TARGET_FLAGS); do \
40660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40661 done; \
40662 (cd $(TARGET_SUBDIR)/libbacktrace && \
40663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40665 "RANLIB=$${RANLIB}" \
40666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40667 pdf) \
40668 || exit 1
40669
40670@endif target-libbacktrace
40671
40672.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
40673maybe-html-target-libbacktrace:
40674@if target-libbacktrace
40675maybe-html-target-libbacktrace: html-target-libbacktrace
40676
40677html-target-libbacktrace: \
40678 configure-target-libbacktrace
40679 @: $(MAKE); $(unstage)
22121df0 40680 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
40681 r=`${PWD_COMMAND}`; export r; \
40682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40683 $(NORMAL_TARGET_EXPORTS) \
22121df0 40684 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
40685 for flag in $(EXTRA_TARGET_FLAGS); do \
40686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40687 done; \
40688 (cd $(TARGET_SUBDIR)/libbacktrace && \
40689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40691 "RANLIB=$${RANLIB}" \
40692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40693 html) \
40694 || exit 1
40695
40696@endif target-libbacktrace
40697
40698.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
40699maybe-TAGS-target-libbacktrace:
40700@if target-libbacktrace
40701maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
40702
40703TAGS-target-libbacktrace: \
40704 configure-target-libbacktrace
40705 @: $(MAKE); $(unstage)
22121df0 40706 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
40707 r=`${PWD_COMMAND}`; export r; \
40708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40709 $(NORMAL_TARGET_EXPORTS) \
22121df0 40710 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
40711 for flag in $(EXTRA_TARGET_FLAGS); do \
40712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40713 done; \
40714 (cd $(TARGET_SUBDIR)/libbacktrace && \
40715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40717 "RANLIB=$${RANLIB}" \
40718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40719 TAGS) \
40720 || exit 1
40721
40722@endif target-libbacktrace
40723
40724.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
40725maybe-install-info-target-libbacktrace:
40726@if target-libbacktrace
40727maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
40728
40729install-info-target-libbacktrace: \
40730 configure-target-libbacktrace \
40731 info-target-libbacktrace
40732 @: $(MAKE); $(unstage)
22121df0 40733 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
40734 r=`${PWD_COMMAND}`; export r; \
40735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40736 $(NORMAL_TARGET_EXPORTS) \
22121df0 40737 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
40738 for flag in $(EXTRA_TARGET_FLAGS); do \
40739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40740 done; \
40741 (cd $(TARGET_SUBDIR)/libbacktrace && \
40742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40744 "RANLIB=$${RANLIB}" \
40745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40746 install-info) \
40747 || exit 1
40748
40749@endif target-libbacktrace
40750
40751.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
40752maybe-install-pdf-target-libbacktrace:
40753@if target-libbacktrace
40754maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
40755
40756install-pdf-target-libbacktrace: \
40757 configure-target-libbacktrace \
40758 pdf-target-libbacktrace
40759 @: $(MAKE); $(unstage)
22121df0 40760 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
40761 r=`${PWD_COMMAND}`; export r; \
40762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40763 $(NORMAL_TARGET_EXPORTS) \
22121df0 40764 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
40765 for flag in $(EXTRA_TARGET_FLAGS); do \
40766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40767 done; \
40768 (cd $(TARGET_SUBDIR)/libbacktrace && \
40769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40771 "RANLIB=$${RANLIB}" \
40772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40773 install-pdf) \
40774 || exit 1
40775
40776@endif target-libbacktrace
40777
40778.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
40779maybe-install-html-target-libbacktrace:
40780@if target-libbacktrace
40781maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
40782
40783install-html-target-libbacktrace: \
40784 configure-target-libbacktrace \
40785 html-target-libbacktrace
40786 @: $(MAKE); $(unstage)
22121df0 40787 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
40788 r=`${PWD_COMMAND}`; export r; \
40789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40790 $(NORMAL_TARGET_EXPORTS) \
22121df0 40791 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
40792 for flag in $(EXTRA_TARGET_FLAGS); do \
40793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40794 done; \
40795 (cd $(TARGET_SUBDIR)/libbacktrace && \
40796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40798 "RANLIB=$${RANLIB}" \
40799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40800 install-html) \
40801 || exit 1
40802
40803@endif target-libbacktrace
40804
40805.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
40806maybe-installcheck-target-libbacktrace:
40807@if target-libbacktrace
40808maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
40809
40810installcheck-target-libbacktrace: \
40811 configure-target-libbacktrace
40812 @: $(MAKE); $(unstage)
22121df0 40813 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
40814 r=`${PWD_COMMAND}`; export r; \
40815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40816 $(NORMAL_TARGET_EXPORTS) \
22121df0 40817 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
40818 for flag in $(EXTRA_TARGET_FLAGS); do \
40819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40820 done; \
40821 (cd $(TARGET_SUBDIR)/libbacktrace && \
40822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40824 "RANLIB=$${RANLIB}" \
40825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40826 installcheck) \
40827 || exit 1
40828
40829@endif target-libbacktrace
40830
40831.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
40832maybe-mostlyclean-target-libbacktrace:
40833@if target-libbacktrace
40834maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
40835
40836mostlyclean-target-libbacktrace:
40837 @: $(MAKE); $(unstage)
22121df0 40838 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
40839 r=`${PWD_COMMAND}`; export r; \
40840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40841 $(NORMAL_TARGET_EXPORTS) \
22121df0 40842 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
40843 for flag in $(EXTRA_TARGET_FLAGS); do \
40844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40845 done; \
40846 (cd $(TARGET_SUBDIR)/libbacktrace && \
40847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40849 "RANLIB=$${RANLIB}" \
40850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40851 mostlyclean) \
40852 || exit 1
40853
40854@endif target-libbacktrace
40855
40856.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
40857maybe-clean-target-libbacktrace:
40858@if target-libbacktrace
40859maybe-clean-target-libbacktrace: clean-target-libbacktrace
40860
40861clean-target-libbacktrace:
40862 @: $(MAKE); $(unstage)
22121df0 40863 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
40864 r=`${PWD_COMMAND}`; export r; \
40865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40866 $(NORMAL_TARGET_EXPORTS) \
22121df0 40867 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
40868 for flag in $(EXTRA_TARGET_FLAGS); do \
40869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40870 done; \
40871 (cd $(TARGET_SUBDIR)/libbacktrace && \
40872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40874 "RANLIB=$${RANLIB}" \
40875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40876 clean) \
40877 || exit 1
40878
40879@endif target-libbacktrace
40880
40881.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
40882maybe-distclean-target-libbacktrace:
40883@if target-libbacktrace
40884maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
40885
40886distclean-target-libbacktrace:
40887 @: $(MAKE); $(unstage)
22121df0 40888 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
40889 r=`${PWD_COMMAND}`; export r; \
40890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40891 $(NORMAL_TARGET_EXPORTS) \
22121df0 40892 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
40893 for flag in $(EXTRA_TARGET_FLAGS); do \
40894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40895 done; \
40896 (cd $(TARGET_SUBDIR)/libbacktrace && \
40897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40899 "RANLIB=$${RANLIB}" \
40900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40901 distclean) \
40902 || exit 1
40903
40904@endif target-libbacktrace
40905
40906.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
40907maybe-maintainer-clean-target-libbacktrace:
40908@if target-libbacktrace
40909maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
40910
40911maintainer-clean-target-libbacktrace:
40912 @: $(MAKE); $(unstage)
22121df0 40913 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
40914 r=`${PWD_COMMAND}`; export r; \
40915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40916 $(NORMAL_TARGET_EXPORTS) \
22121df0 40917 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
40918 for flag in $(EXTRA_TARGET_FLAGS); do \
40919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40920 done; \
40921 (cd $(TARGET_SUBDIR)/libbacktrace && \
40922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40924 "RANLIB=$${RANLIB}" \
40925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40926 maintainer-clean) \
40927 || exit 1
40928
40929@endif target-libbacktrace
40930
40931
40932
40933
40934
a90ef4bf
JM
40935.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
40936maybe-configure-target-libquadmath:
4f0ef2d8 40937@if gcc-bootstrap
a90ef4bf 40938configure-target-libquadmath: stage_current
4f0ef2d8 40939@endif gcc-bootstrap
a90ef4bf
JM
40940@if target-libquadmath
40941maybe-configure-target-libquadmath: configure-target-libquadmath
40942configure-target-libquadmath:
0aed8855
PB
40943 @: $(MAKE); $(unstage)
40944 @r=`${PWD_COMMAND}`; export r; \
40945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40946 echo "Checking multilib configuration for libquadmath..."; \
22121df0
L
40947 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
40948 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40949 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
40950 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
40951 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 40952 else \
a90ef4bf
JM
40953 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
40954 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
40955 fi; \
40956 else \
a90ef4bf 40957 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 40958 fi; \
a90ef4bf 40959 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
22121df0 40960 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
1f53ca9a 40961 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40962 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
40963 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 40964 case $(srcdir) in \
b00612cc 40965 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40966 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 40967 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 40968 esac; \
1b6c0831 40969 module_srcdir=libquadmath; \
4fa63067 40970 rm -f no-such-file || : ; \
1b6c0831
L
40971 CONFIG_SITE=no-such-file $(SHELL) \
40972 $$s/$$module_srcdir/configure \
40973 --srcdir=$${topdir}/$$module_srcdir \
4b900473 40974 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40975 --target=${target_alias} \
e2b9e2dc 40976 || exit 1
a90ef4bf 40977@endif target-libquadmath
e2b9e2dc 40978
a7254363
PB
40979
40980
d545f33b
PB
40981
40982
a90ef4bf
JM
40983.PHONY: all-target-libquadmath maybe-all-target-libquadmath
40984maybe-all-target-libquadmath:
4f0ef2d8 40985@if gcc-bootstrap
a90ef4bf 40986all-target-libquadmath: stage_current
4f0ef2d8 40987@endif gcc-bootstrap
a90ef4bf
JM
40988@if target-libquadmath
40989TARGET-target-libquadmath=all
40990maybe-all-target-libquadmath: all-target-libquadmath
40991all-target-libquadmath: configure-target-libquadmath
0aed8855 40992 @: $(MAKE); $(unstage)
b40e3958
L
40993 @r=`${PWD_COMMAND}`; export r; \
40994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40995 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40996 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 40997 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40998 $(TARGET-target-libquadmath))
40999@endif target-libquadmath
3866be5d 41000
a7254363
PB
41001
41002
d545f33b
PB
41003
41004
a90ef4bf
JM
41005.PHONY: check-target-libquadmath maybe-check-target-libquadmath
41006maybe-check-target-libquadmath:
41007@if target-libquadmath
41008maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 41009
a90ef4bf 41010check-target-libquadmath:
0aed8855 41011 @: $(MAKE); $(unstage)
b40e3958
L
41012 @r=`${PWD_COMMAND}`; export r; \
41013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41014 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41015 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 41016 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 41017
a90ef4bf 41018@endif target-libquadmath
3866be5d 41019
a90ef4bf
JM
41020.PHONY: install-target-libquadmath maybe-install-target-libquadmath
41021maybe-install-target-libquadmath:
41022@if target-libquadmath
41023maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 41024
a90ef4bf 41025install-target-libquadmath: installdirs
0aed8855 41026 @: $(MAKE); $(unstage)
b40e3958
L
41027 @r=`${PWD_COMMAND}`; export r; \
41028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41029 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41030 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 41031 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 41032
a90ef4bf 41033@endif target-libquadmath
3866be5d 41034
a90ef4bf
JM
41035.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
41036maybe-install-strip-target-libquadmath:
41037@if target-libquadmath
41038maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 41039
a90ef4bf 41040install-strip-target-libquadmath: installdirs
9b980aa1
RW
41041 @: $(MAKE); $(unstage)
41042 @r=`${PWD_COMMAND}`; export r; \
41043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41044 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41045 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
41046 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41047
a90ef4bf 41048@endif target-libquadmath
9b980aa1 41049
56a8fe78 41050# Other targets (info, dvi, pdf, etc.)
4fa63067 41051
a90ef4bf
JM
41052.PHONY: maybe-info-target-libquadmath info-target-libquadmath
41053maybe-info-target-libquadmath:
41054@if target-libquadmath
41055maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 41056
a90ef4bf
JM
41057info-target-libquadmath: \
41058 configure-target-libquadmath
0aed8855 41059 @: $(MAKE); $(unstage)
22121df0 41060 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41061 r=`${PWD_COMMAND}`; export r; \
b40e3958 41062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41063 $(NORMAL_TARGET_EXPORTS) \
22121df0 41064 echo "Doing info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41065 for flag in $(EXTRA_TARGET_FLAGS); do \
41066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41067 done; \
a90ef4bf 41068 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41071 "RANLIB=$${RANLIB}" \
0c24b341 41072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41073 info) \
4fa63067 41074 || exit 1
3866be5d 41075
a90ef4bf 41076@endif target-libquadmath
3866be5d 41077
a90ef4bf
JM
41078.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
41079maybe-dvi-target-libquadmath:
41080@if target-libquadmath
41081maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 41082
a90ef4bf
JM
41083dvi-target-libquadmath: \
41084 configure-target-libquadmath
0aed8855 41085 @: $(MAKE); $(unstage)
22121df0 41086 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41087 r=`${PWD_COMMAND}`; export r; \
b40e3958 41088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41089 $(NORMAL_TARGET_EXPORTS) \
22121df0 41090 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41091 for flag in $(EXTRA_TARGET_FLAGS); do \
41092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41093 done; \
a90ef4bf 41094 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41097 "RANLIB=$${RANLIB}" \
0c24b341 41098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41099 dvi) \
4fa63067 41100 || exit 1
3866be5d 41101
a90ef4bf 41102@endif target-libquadmath
3866be5d 41103
a90ef4bf
JM
41104.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
41105maybe-pdf-target-libquadmath:
41106@if target-libquadmath
41107maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 41108
a90ef4bf
JM
41109pdf-target-libquadmath: \
41110 configure-target-libquadmath
56a8fe78 41111 @: $(MAKE); $(unstage)
22121df0 41112 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
56a8fe78
DD
41113 r=`${PWD_COMMAND}`; export r; \
41114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41115 $(NORMAL_TARGET_EXPORTS) \
22121df0 41116 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath"; \
56a8fe78
DD
41117 for flag in $(EXTRA_TARGET_FLAGS); do \
41118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41119 done; \
a90ef4bf 41120 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
41121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41123 "RANLIB=$${RANLIB}" \
0c24b341 41124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41125 pdf) \
41126 || exit 1
41127
a90ef4bf 41128@endif target-libquadmath
56a8fe78 41129
a90ef4bf
JM
41130.PHONY: maybe-html-target-libquadmath html-target-libquadmath
41131maybe-html-target-libquadmath:
41132@if target-libquadmath
41133maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 41134
a90ef4bf
JM
41135html-target-libquadmath: \
41136 configure-target-libquadmath
0aed8855 41137 @: $(MAKE); $(unstage)
22121df0 41138 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
6d389afc
MS
41139 r=`${PWD_COMMAND}`; export r; \
41140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41141 $(NORMAL_TARGET_EXPORTS) \
22121df0 41142 echo "Doing html in $(TARGET_SUBDIR)/libquadmath"; \
6d389afc
MS
41143 for flag in $(EXTRA_TARGET_FLAGS); do \
41144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41145 done; \
a90ef4bf 41146 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
41147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41149 "RANLIB=$${RANLIB}" \
0c24b341 41150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41151 html) \
41152 || exit 1
41153
a90ef4bf 41154@endif target-libquadmath
6d389afc 41155
a90ef4bf
JM
41156.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
41157maybe-TAGS-target-libquadmath:
41158@if target-libquadmath
41159maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 41160
a90ef4bf
JM
41161TAGS-target-libquadmath: \
41162 configure-target-libquadmath
0aed8855 41163 @: $(MAKE); $(unstage)
22121df0 41164 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
41165 r=`${PWD_COMMAND}`; export r; \
41166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41167 $(NORMAL_TARGET_EXPORTS) \
22121df0 41168 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41169 for flag in $(EXTRA_TARGET_FLAGS); do \
41170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41171 done; \
a90ef4bf 41172 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41175 "RANLIB=$${RANLIB}" \
0c24b341 41176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41177 TAGS) \
e2b9e2dc
NN
41178 || exit 1
41179
a90ef4bf 41180@endif target-libquadmath
4fa63067 41181
a90ef4bf
JM
41182.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
41183maybe-install-info-target-libquadmath:
41184@if target-libquadmath
41185maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 41186
a90ef4bf
JM
41187install-info-target-libquadmath: \
41188 configure-target-libquadmath \
41189 info-target-libquadmath
0aed8855 41190 @: $(MAKE); $(unstage)
22121df0 41191 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41192 r=`${PWD_COMMAND}`; export r; \
b40e3958 41193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41194 $(NORMAL_TARGET_EXPORTS) \
22121df0 41195 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41196 for flag in $(EXTRA_TARGET_FLAGS); do \
41197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41198 done; \
a90ef4bf 41199 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41202 "RANLIB=$${RANLIB}" \
0c24b341 41203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41204 install-info) \
4fa63067 41205 || exit 1
3866be5d 41206
a90ef4bf 41207@endif target-libquadmath
3866be5d 41208
a90ef4bf
JM
41209.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
41210maybe-install-pdf-target-libquadmath:
41211@if target-libquadmath
41212maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 41213
a90ef4bf
JM
41214install-pdf-target-libquadmath: \
41215 configure-target-libquadmath \
41216 pdf-target-libquadmath
a3ca38d2 41217 @: $(MAKE); $(unstage)
22121df0 41218 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
a3ca38d2
DD
41219 r=`${PWD_COMMAND}`; export r; \
41220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41221 $(NORMAL_TARGET_EXPORTS) \
22121df0 41222 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath"; \
a3ca38d2
DD
41223 for flag in $(EXTRA_TARGET_FLAGS); do \
41224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41225 done; \
a90ef4bf 41226 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
41227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41229 "RANLIB=$${RANLIB}" \
0c24b341 41230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41231 install-pdf) \
41232 || exit 1
41233
a90ef4bf 41234@endif target-libquadmath
a3ca38d2 41235
a90ef4bf
JM
41236.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
41237maybe-install-html-target-libquadmath:
41238@if target-libquadmath
41239maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 41240
a90ef4bf
JM
41241install-html-target-libquadmath: \
41242 configure-target-libquadmath \
41243 html-target-libquadmath
108a6f8e 41244 @: $(MAKE); $(unstage)
22121df0 41245 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
108a6f8e
CD
41246 r=`${PWD_COMMAND}`; export r; \
41247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41248 $(NORMAL_TARGET_EXPORTS) \
22121df0 41249 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath"; \
108a6f8e
CD
41250 for flag in $(EXTRA_TARGET_FLAGS); do \
41251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41252 done; \
a90ef4bf 41253 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
41254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41256 "RANLIB=$${RANLIB}" \
0c24b341 41257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41258 install-html) \
41259 || exit 1
41260
a90ef4bf 41261@endif target-libquadmath
108a6f8e 41262
a90ef4bf
JM
41263.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
41264maybe-installcheck-target-libquadmath:
41265@if target-libquadmath
41266maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 41267
a90ef4bf
JM
41268installcheck-target-libquadmath: \
41269 configure-target-libquadmath
0aed8855 41270 @: $(MAKE); $(unstage)
22121df0 41271 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41272 r=`${PWD_COMMAND}`; export r; \
b40e3958 41273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41274 $(NORMAL_TARGET_EXPORTS) \
22121df0 41275 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41276 for flag in $(EXTRA_TARGET_FLAGS); do \
41277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41278 done; \
a90ef4bf 41279 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41282 "RANLIB=$${RANLIB}" \
0c24b341 41283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41284 installcheck) \
4fa63067 41285 || exit 1
3866be5d 41286
a90ef4bf 41287@endif target-libquadmath
3866be5d 41288
a90ef4bf
JM
41289.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
41290maybe-mostlyclean-target-libquadmath:
41291@if target-libquadmath
41292maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 41293
a90ef4bf 41294mostlyclean-target-libquadmath:
0aed8855 41295 @: $(MAKE); $(unstage)
22121df0 41296 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41297 r=`${PWD_COMMAND}`; export r; \
b40e3958 41298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41299 $(NORMAL_TARGET_EXPORTS) \
22121df0 41300 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41301 for flag in $(EXTRA_TARGET_FLAGS); do \
41302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41303 done; \
a90ef4bf 41304 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41307 "RANLIB=$${RANLIB}" \
0c24b341 41308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41309 mostlyclean) \
4fa63067 41310 || exit 1
3866be5d 41311
a90ef4bf 41312@endif target-libquadmath
3866be5d 41313
a90ef4bf
JM
41314.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
41315maybe-clean-target-libquadmath:
41316@if target-libquadmath
41317maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 41318
a90ef4bf 41319clean-target-libquadmath:
0aed8855 41320 @: $(MAKE); $(unstage)
22121df0 41321 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
41322 r=`${PWD_COMMAND}`; export r; \
41323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41324 $(NORMAL_TARGET_EXPORTS) \
22121df0 41325 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41326 for flag in $(EXTRA_TARGET_FLAGS); do \
41327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41328 done; \
a90ef4bf 41329 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41332 "RANLIB=$${RANLIB}" \
0c24b341 41333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41334 clean) \
e2b9e2dc
NN
41335 || exit 1
41336
a90ef4bf 41337@endif target-libquadmath
3866be5d 41338
a90ef4bf
JM
41339.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
41340maybe-distclean-target-libquadmath:
41341@if target-libquadmath
41342maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 41343
a90ef4bf 41344distclean-target-libquadmath:
0aed8855 41345 @: $(MAKE); $(unstage)
22121df0 41346 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41347 r=`${PWD_COMMAND}`; export r; \
b40e3958 41348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41349 $(NORMAL_TARGET_EXPORTS) \
22121df0 41350 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41351 for flag in $(EXTRA_TARGET_FLAGS); do \
41352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41353 done; \
a90ef4bf 41354 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41357 "RANLIB=$${RANLIB}" \
0c24b341 41358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41359 distclean) \
4fa63067 41360 || exit 1
3866be5d 41361
a90ef4bf 41362@endif target-libquadmath
3866be5d 41363
a90ef4bf
JM
41364.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
41365maybe-maintainer-clean-target-libquadmath:
41366@if target-libquadmath
41367maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 41368
a90ef4bf 41369maintainer-clean-target-libquadmath:
0aed8855 41370 @: $(MAKE); $(unstage)
22121df0 41371 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41372 r=`${PWD_COMMAND}`; export r; \
b40e3958 41373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41374 $(NORMAL_TARGET_EXPORTS) \
22121df0 41375 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41376 for flag in $(EXTRA_TARGET_FLAGS); do \
41377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41378 done; \
a90ef4bf 41379 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41382 "RANLIB=$${RANLIB}" \
0c24b341 41383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41384 maintainer-clean) \
4fa63067 41385 || exit 1
3866be5d 41386
a90ef4bf 41387@endif target-libquadmath
3866be5d 41388
4fa63067 41389
4fa63067 41390
a7254363 41391
e90269c8 41392
a90ef4bf
JM
41393.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
41394maybe-configure-target-libgfortran:
e552509b 41395@if gcc-bootstrap
a90ef4bf 41396configure-target-libgfortran: stage_current
e552509b 41397@endif gcc-bootstrap
a90ef4bf
JM
41398@if target-libgfortran
41399maybe-configure-target-libgfortran: configure-target-libgfortran
41400configure-target-libgfortran:
e552509b
ILT
41401 @: $(MAKE); $(unstage)
41402 @r=`${PWD_COMMAND}`; export r; \
41403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41404 echo "Checking multilib configuration for libgfortran..."; \
22121df0
L
41405 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
41406 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41407 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
41408 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
41409 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 41410 else \
a90ef4bf
JM
41411 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
41412 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
41413 fi; \
41414 else \
a90ef4bf 41415 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 41416 fi; \
a90ef4bf 41417 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
22121df0 41418 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
e552509b 41419 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41420 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
41421 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
41422 case $(srcdir) in \
41423 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41424 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
41425 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41426 esac; \
1b6c0831 41427 module_srcdir=libgfortran; \
e552509b 41428 rm -f no-such-file || : ; \
1b6c0831
L
41429 CONFIG_SITE=no-such-file $(SHELL) \
41430 $$s/$$module_srcdir/configure \
41431 --srcdir=$${topdir}/$$module_srcdir \
e552509b 41432 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41433 --target=${target_alias} \
e552509b 41434 || exit 1
a90ef4bf 41435@endif target-libgfortran
e552509b
ILT
41436
41437
41438
41439
41440
a90ef4bf
JM
41441.PHONY: all-target-libgfortran maybe-all-target-libgfortran
41442maybe-all-target-libgfortran:
e552509b 41443@if gcc-bootstrap
a90ef4bf 41444all-target-libgfortran: stage_current
e552509b 41445@endif gcc-bootstrap
a90ef4bf
JM
41446@if target-libgfortran
41447TARGET-target-libgfortran=all
41448maybe-all-target-libgfortran: all-target-libgfortran
41449all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
41450 @: $(MAKE); $(unstage)
41451 @r=`${PWD_COMMAND}`; export r; \
41452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41453 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41454 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 41455 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41456 $(TARGET-target-libgfortran))
41457@endif target-libgfortran
e552509b
ILT
41458
41459
41460
41461
41462
a90ef4bf
JM
41463.PHONY: check-target-libgfortran maybe-check-target-libgfortran
41464maybe-check-target-libgfortran:
41465@if target-libgfortran
41466maybe-check-target-libgfortran: check-target-libgfortran
e552509b 41467
a90ef4bf 41468check-target-libgfortran:
e552509b
ILT
41469 @: $(MAKE); $(unstage)
41470 @r=`${PWD_COMMAND}`; export r; \
41471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41472 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41473 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41474 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
41475
a90ef4bf 41476@endif target-libgfortran
e552509b 41477
a90ef4bf
JM
41478.PHONY: install-target-libgfortran maybe-install-target-libgfortran
41479maybe-install-target-libgfortran:
41480@if target-libgfortran
41481maybe-install-target-libgfortran: install-target-libgfortran
e552509b 41482
a90ef4bf 41483install-target-libgfortran: installdirs
e552509b
ILT
41484 @: $(MAKE); $(unstage)
41485 @r=`${PWD_COMMAND}`; export r; \
41486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41487 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41488 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41489 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
41490
a90ef4bf 41491@endif target-libgfortran
e552509b 41492
a90ef4bf
JM
41493.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
41494maybe-install-strip-target-libgfortran:
41495@if target-libgfortran
41496maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 41497
a90ef4bf 41498install-strip-target-libgfortran: installdirs
9b980aa1
RW
41499 @: $(MAKE); $(unstage)
41500 @r=`${PWD_COMMAND}`; export r; \
41501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41502 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41503 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
41504 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41505
a90ef4bf 41506@endif target-libgfortran
9b980aa1 41507
e552509b
ILT
41508# Other targets (info, dvi, pdf, etc.)
41509
a90ef4bf
JM
41510.PHONY: maybe-info-target-libgfortran info-target-libgfortran
41511maybe-info-target-libgfortran:
41512@if target-libgfortran
41513maybe-info-target-libgfortran: info-target-libgfortran
e552509b 41514
a90ef4bf
JM
41515info-target-libgfortran: \
41516 configure-target-libgfortran
e552509b 41517 @: $(MAKE); $(unstage)
22121df0 41518 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41519 r=`${PWD_COMMAND}`; export r; \
41520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41521 $(NORMAL_TARGET_EXPORTS) \
22121df0 41522 echo "Doing info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41523 for flag in $(EXTRA_TARGET_FLAGS); do \
41524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41525 done; \
a90ef4bf 41526 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41529 "RANLIB=$${RANLIB}" \
41530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41531 info) \
41532 || exit 1
41533
a90ef4bf 41534@endif target-libgfortran
e552509b 41535
a90ef4bf
JM
41536.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
41537maybe-dvi-target-libgfortran:
41538@if target-libgfortran
41539maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 41540
a90ef4bf
JM
41541dvi-target-libgfortran: \
41542 configure-target-libgfortran
e552509b 41543 @: $(MAKE); $(unstage)
22121df0 41544 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41545 r=`${PWD_COMMAND}`; export r; \
41546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41547 $(NORMAL_TARGET_EXPORTS) \
22121df0 41548 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41549 for flag in $(EXTRA_TARGET_FLAGS); do \
41550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41551 done; \
a90ef4bf 41552 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41555 "RANLIB=$${RANLIB}" \
41556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41557 dvi) \
41558 || exit 1
41559
a90ef4bf 41560@endif target-libgfortran
e552509b 41561
a90ef4bf
JM
41562.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
41563maybe-pdf-target-libgfortran:
41564@if target-libgfortran
41565maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 41566
a90ef4bf
JM
41567pdf-target-libgfortran: \
41568 configure-target-libgfortran
e552509b 41569 @: $(MAKE); $(unstage)
22121df0 41570 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41571 r=`${PWD_COMMAND}`; export r; \
41572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41573 $(NORMAL_TARGET_EXPORTS) \
22121df0 41574 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41575 for flag in $(EXTRA_TARGET_FLAGS); do \
41576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41577 done; \
a90ef4bf 41578 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41581 "RANLIB=$${RANLIB}" \
41582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41583 pdf) \
41584 || exit 1
41585
a90ef4bf 41586@endif target-libgfortran
e552509b 41587
a90ef4bf
JM
41588.PHONY: maybe-html-target-libgfortran html-target-libgfortran
41589maybe-html-target-libgfortran:
41590@if target-libgfortran
41591maybe-html-target-libgfortran: html-target-libgfortran
e552509b 41592
a90ef4bf
JM
41593html-target-libgfortran: \
41594 configure-target-libgfortran
e552509b 41595 @: $(MAKE); $(unstage)
22121df0 41596 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41597 r=`${PWD_COMMAND}`; export r; \
41598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41599 $(NORMAL_TARGET_EXPORTS) \
22121df0 41600 echo "Doing html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41601 for flag in $(EXTRA_TARGET_FLAGS); do \
41602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41603 done; \
a90ef4bf 41604 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41607 "RANLIB=$${RANLIB}" \
41608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41609 html) \
41610 || exit 1
41611
a90ef4bf 41612@endif target-libgfortran
e552509b 41613
a90ef4bf
JM
41614.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
41615maybe-TAGS-target-libgfortran:
41616@if target-libgfortran
41617maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 41618
a90ef4bf
JM
41619TAGS-target-libgfortran: \
41620 configure-target-libgfortran
e552509b 41621 @: $(MAKE); $(unstage)
22121df0 41622 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41623 r=`${PWD_COMMAND}`; export r; \
41624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41625 $(NORMAL_TARGET_EXPORTS) \
22121df0 41626 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41627 for flag in $(EXTRA_TARGET_FLAGS); do \
41628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41629 done; \
a90ef4bf 41630 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41633 "RANLIB=$${RANLIB}" \
41634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41635 TAGS) \
41636 || exit 1
41637
a90ef4bf 41638@endif target-libgfortran
e552509b 41639
a90ef4bf
JM
41640.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
41641maybe-install-info-target-libgfortran:
41642@if target-libgfortran
41643maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 41644
a90ef4bf
JM
41645install-info-target-libgfortran: \
41646 configure-target-libgfortran \
41647 info-target-libgfortran
e552509b 41648 @: $(MAKE); $(unstage)
22121df0 41649 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41650 r=`${PWD_COMMAND}`; export r; \
41651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41652 $(NORMAL_TARGET_EXPORTS) \
22121df0 41653 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41654 for flag in $(EXTRA_TARGET_FLAGS); do \
41655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41656 done; \
a90ef4bf 41657 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41660 "RANLIB=$${RANLIB}" \
41661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41662 install-info) \
41663 || exit 1
41664
a90ef4bf 41665@endif target-libgfortran
e552509b 41666
a90ef4bf
JM
41667.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
41668maybe-install-pdf-target-libgfortran:
41669@if target-libgfortran
41670maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 41671
a90ef4bf
JM
41672install-pdf-target-libgfortran: \
41673 configure-target-libgfortran \
41674 pdf-target-libgfortran
e552509b 41675 @: $(MAKE); $(unstage)
22121df0 41676 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41677 r=`${PWD_COMMAND}`; export r; \
41678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41679 $(NORMAL_TARGET_EXPORTS) \
22121df0 41680 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41681 for flag in $(EXTRA_TARGET_FLAGS); do \
41682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41683 done; \
a90ef4bf 41684 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41687 "RANLIB=$${RANLIB}" \
41688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41689 install-pdf) \
41690 || exit 1
41691
a90ef4bf 41692@endif target-libgfortran
e552509b 41693
a90ef4bf
JM
41694.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
41695maybe-install-html-target-libgfortran:
41696@if target-libgfortran
41697maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 41698
a90ef4bf
JM
41699install-html-target-libgfortran: \
41700 configure-target-libgfortran \
41701 html-target-libgfortran
e552509b 41702 @: $(MAKE); $(unstage)
22121df0 41703 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41704 r=`${PWD_COMMAND}`; export r; \
41705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41706 $(NORMAL_TARGET_EXPORTS) \
22121df0 41707 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41708 for flag in $(EXTRA_TARGET_FLAGS); do \
41709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41710 done; \
a90ef4bf 41711 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41714 "RANLIB=$${RANLIB}" \
41715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41716 install-html) \
41717 || exit 1
41718
a90ef4bf 41719@endif target-libgfortran
e552509b 41720
a90ef4bf
JM
41721.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
41722maybe-installcheck-target-libgfortran:
41723@if target-libgfortran
41724maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 41725
a90ef4bf
JM
41726installcheck-target-libgfortran: \
41727 configure-target-libgfortran
e552509b 41728 @: $(MAKE); $(unstage)
22121df0 41729 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41730 r=`${PWD_COMMAND}`; export r; \
41731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41732 $(NORMAL_TARGET_EXPORTS) \
22121df0 41733 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41734 for flag in $(EXTRA_TARGET_FLAGS); do \
41735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41736 done; \
a90ef4bf 41737 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41740 "RANLIB=$${RANLIB}" \
41741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41742 installcheck) \
41743 || exit 1
41744
a90ef4bf 41745@endif target-libgfortran
e552509b 41746
a90ef4bf
JM
41747.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
41748maybe-mostlyclean-target-libgfortran:
41749@if target-libgfortran
41750maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 41751
a90ef4bf 41752mostlyclean-target-libgfortran:
e552509b 41753 @: $(MAKE); $(unstage)
22121df0 41754 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41755 r=`${PWD_COMMAND}`; export r; \
41756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41757 $(NORMAL_TARGET_EXPORTS) \
22121df0 41758 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41759 for flag in $(EXTRA_TARGET_FLAGS); do \
41760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41761 done; \
a90ef4bf 41762 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41765 "RANLIB=$${RANLIB}" \
41766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41767 mostlyclean) \
41768 || exit 1
41769
a90ef4bf 41770@endif target-libgfortran
e552509b 41771
a90ef4bf
JM
41772.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
41773maybe-clean-target-libgfortran:
41774@if target-libgfortran
41775maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 41776
a90ef4bf 41777clean-target-libgfortran:
e552509b 41778 @: $(MAKE); $(unstage)
22121df0 41779 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41780 r=`${PWD_COMMAND}`; export r; \
41781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41782 $(NORMAL_TARGET_EXPORTS) \
22121df0 41783 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41784 for flag in $(EXTRA_TARGET_FLAGS); do \
41785 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41786 done; \
a90ef4bf 41787 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41790 "RANLIB=$${RANLIB}" \
41791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41792 clean) \
41793 || exit 1
41794
a90ef4bf 41795@endif target-libgfortran
e552509b 41796
a90ef4bf
JM
41797.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
41798maybe-distclean-target-libgfortran:
41799@if target-libgfortran
41800maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 41801
a90ef4bf 41802distclean-target-libgfortran:
e552509b 41803 @: $(MAKE); $(unstage)
22121df0 41804 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41805 r=`${PWD_COMMAND}`; export r; \
41806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41807 $(NORMAL_TARGET_EXPORTS) \
22121df0 41808 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41809 for flag in $(EXTRA_TARGET_FLAGS); do \
41810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41811 done; \
a90ef4bf 41812 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41815 "RANLIB=$${RANLIB}" \
41816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41817 distclean) \
41818 || exit 1
41819
a90ef4bf 41820@endif target-libgfortran
e552509b 41821
a90ef4bf
JM
41822.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
41823maybe-maintainer-clean-target-libgfortran:
41824@if target-libgfortran
41825maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 41826
a90ef4bf 41827maintainer-clean-target-libgfortran:
e552509b 41828 @: $(MAKE); $(unstage)
22121df0 41829 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41830 r=`${PWD_COMMAND}`; export r; \
41831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41832 $(NORMAL_TARGET_EXPORTS) \
22121df0 41833 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41834 for flag in $(EXTRA_TARGET_FLAGS); do \
41835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41836 done; \
a90ef4bf 41837 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41840 "RANLIB=$${RANLIB}" \
41841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41842 maintainer-clean) \
41843 || exit 1
41844
a90ef4bf 41845@endif target-libgfortran
e552509b
ILT
41846
41847
41848
41849
41850
a90ef4bf
JM
41851.PHONY: configure-target-libobjc maybe-configure-target-libobjc
41852maybe-configure-target-libobjc:
4f0ef2d8 41853@if gcc-bootstrap
a90ef4bf 41854configure-target-libobjc: stage_current
4f0ef2d8 41855@endif gcc-bootstrap
a90ef4bf
JM
41856@if target-libobjc
41857maybe-configure-target-libobjc: configure-target-libobjc
41858configure-target-libobjc:
0aed8855
PB
41859 @: $(MAKE); $(unstage)
41860 @r=`${PWD_COMMAND}`; export r; \
41861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41862 echo "Checking multilib configuration for libobjc..."; \
22121df0
L
41863 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
41864 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41865 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
41866 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
41867 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 41868 else \
a90ef4bf
JM
41869 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
41870 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
41871 fi; \
41872 else \
a90ef4bf 41873 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 41874 fi; \
a90ef4bf 41875 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
22121df0 41876 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
1f53ca9a 41877 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41878 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
41879 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 41880 case $(srcdir) in \
b00612cc 41881 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41882 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 41883 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 41884 esac; \
1b6c0831 41885 module_srcdir=libobjc; \
4fa63067 41886 rm -f no-such-file || : ; \
1b6c0831
L
41887 CONFIG_SITE=no-such-file $(SHELL) \
41888 $$s/$$module_srcdir/configure \
41889 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41890 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41891 --target=${target_alias} \
e2b9e2dc 41892 || exit 1
a90ef4bf 41893@endif target-libobjc
e2b9e2dc 41894
a7254363
PB
41895
41896
d545f33b
PB
41897
41898
a90ef4bf
JM
41899.PHONY: all-target-libobjc maybe-all-target-libobjc
41900maybe-all-target-libobjc:
4f0ef2d8 41901@if gcc-bootstrap
a90ef4bf 41902all-target-libobjc: stage_current
4f0ef2d8 41903@endif gcc-bootstrap
a90ef4bf
JM
41904@if target-libobjc
41905TARGET-target-libobjc=all
41906maybe-all-target-libobjc: all-target-libobjc
41907all-target-libobjc: configure-target-libobjc
0aed8855 41908 @: $(MAKE); $(unstage)
b40e3958
L
41909 @r=`${PWD_COMMAND}`; export r; \
41910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41911 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41912 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 41913 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41914 $(TARGET-target-libobjc))
41915@endif target-libobjc
3866be5d 41916
a7254363
PB
41917
41918
d545f33b
PB
41919
41920
a90ef4bf
JM
41921.PHONY: check-target-libobjc maybe-check-target-libobjc
41922maybe-check-target-libobjc:
41923@if target-libobjc
41924maybe-check-target-libobjc: check-target-libobjc
3866be5d 41925
a90ef4bf
JM
41926check-target-libobjc:
41927 @: $(MAKE); $(unstage)
41928 @r=`${PWD_COMMAND}`; export r; \
41929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41930 $(NORMAL_TARGET_EXPORTS) \
41931 (cd $(TARGET_SUBDIR)/libobjc && \
41932 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 41933
a90ef4bf 41934@endif target-libobjc
4fa63067 41935
a90ef4bf
JM
41936.PHONY: install-target-libobjc maybe-install-target-libobjc
41937maybe-install-target-libobjc:
41938@if target-libobjc
41939maybe-install-target-libobjc: install-target-libobjc
4fa63067 41940
a90ef4bf 41941install-target-libobjc: installdirs
0aed8855 41942 @: $(MAKE); $(unstage)
b40e3958
L
41943 @r=`${PWD_COMMAND}`; export r; \
41944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41945 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41946 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 41947 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 41948
a90ef4bf 41949@endif target-libobjc
3866be5d 41950
a90ef4bf
JM
41951.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
41952maybe-install-strip-target-libobjc:
41953@if target-libobjc
41954maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 41955
a90ef4bf 41956install-strip-target-libobjc: installdirs
9b980aa1
RW
41957 @: $(MAKE); $(unstage)
41958 @r=`${PWD_COMMAND}`; export r; \
41959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41960 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41961 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
41962 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41963
a90ef4bf 41964@endif target-libobjc
9b980aa1 41965
56a8fe78 41966# Other targets (info, dvi, pdf, etc.)
16ae0395 41967
a90ef4bf
JM
41968.PHONY: maybe-info-target-libobjc info-target-libobjc
41969maybe-info-target-libobjc:
41970@if target-libobjc
41971maybe-info-target-libobjc: info-target-libobjc
6d389afc 41972
a90ef4bf
JM
41973info-target-libobjc: \
41974 configure-target-libobjc
0aed8855 41975 @: $(MAKE); $(unstage)
22121df0 41976 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
6d389afc
MS
41977 r=`${PWD_COMMAND}`; export r; \
41978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41979 $(NORMAL_TARGET_EXPORTS) \
22121df0 41980 echo "Doing info in $(TARGET_SUBDIR)/libobjc"; \
6d389afc
MS
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)/libobjc && \
6d389afc
MS
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}" \
6d389afc
MS
41989 info) \
41990 || exit 1
41991
a90ef4bf 41992@endif target-libobjc
6d389afc 41993
a90ef4bf
JM
41994.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
41995maybe-dvi-target-libobjc:
41996@if target-libobjc
41997maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 41998
a90ef4bf
JM
41999dvi-target-libobjc: \
42000 configure-target-libobjc
0aed8855 42001 @: $(MAKE); $(unstage)
22121df0 42002 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 42003 r=`${PWD_COMMAND}`; export r; \
b40e3958 42004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42005 $(NORMAL_TARGET_EXPORTS) \
22121df0 42006 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42007 for flag in $(EXTRA_TARGET_FLAGS); do \
42008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42009 done; \
a90ef4bf 42010 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42013 "RANLIB=$${RANLIB}" \
0c24b341 42014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 42015 dvi) \
4fa63067 42016 || exit 1
3866be5d 42017
a90ef4bf 42018@endif target-libobjc
3866be5d 42019
a90ef4bf
JM
42020.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
42021maybe-pdf-target-libobjc:
42022@if target-libobjc
42023maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 42024
a90ef4bf
JM
42025pdf-target-libobjc: \
42026 configure-target-libobjc
56a8fe78 42027 @: $(MAKE); $(unstage)
22121df0 42028 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
56a8fe78
DD
42029 r=`${PWD_COMMAND}`; export r; \
42030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42031 $(NORMAL_TARGET_EXPORTS) \
22121df0 42032 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc"; \
56a8fe78
DD
42033 for flag in $(EXTRA_TARGET_FLAGS); do \
42034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42035 done; \
a90ef4bf 42036 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
42037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42039 "RANLIB=$${RANLIB}" \
0c24b341 42040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42041 pdf) \
42042 || exit 1
42043
a90ef4bf 42044@endif target-libobjc
56a8fe78 42045
a90ef4bf
JM
42046.PHONY: maybe-html-target-libobjc html-target-libobjc
42047maybe-html-target-libobjc:
42048@if target-libobjc
42049maybe-html-target-libobjc: html-target-libobjc
4fa63067 42050
a90ef4bf
JM
42051html-target-libobjc: \
42052 configure-target-libobjc
0aed8855 42053 @: $(MAKE); $(unstage)
22121df0 42054 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
b40e3958
L
42055 r=`${PWD_COMMAND}`; export r; \
42056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42057 $(NORMAL_TARGET_EXPORTS) \
22121df0 42058 echo "Doing html in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42059 for flag in $(EXTRA_TARGET_FLAGS); do \
42060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42061 done; \
a90ef4bf 42062 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42065 "RANLIB=$${RANLIB}" \
0c24b341 42066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 42067 html) \
e2b9e2dc
NN
42068 || exit 1
42069
a90ef4bf 42070@endif target-libobjc
4fa63067 42071
a90ef4bf
JM
42072.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
42073maybe-TAGS-target-libobjc:
42074@if target-libobjc
42075maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 42076
a90ef4bf
JM
42077TAGS-target-libobjc: \
42078 configure-target-libobjc
0aed8855 42079 @: $(MAKE); $(unstage)
22121df0 42080 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 42081 r=`${PWD_COMMAND}`; export r; \
b40e3958 42082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42083 $(NORMAL_TARGET_EXPORTS) \
22121df0 42084 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42085 for flag in $(EXTRA_TARGET_FLAGS); do \
42086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42087 done; \
a90ef4bf 42088 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42091 "RANLIB=$${RANLIB}" \
0c24b341 42092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42093 TAGS) \
4fa63067 42094 || exit 1
3866be5d 42095
a90ef4bf 42096@endif target-libobjc
3866be5d 42097
a90ef4bf
JM
42098.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
42099maybe-install-info-target-libobjc:
42100@if target-libobjc
42101maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 42102
a90ef4bf
JM
42103install-info-target-libobjc: \
42104 configure-target-libobjc \
42105 info-target-libobjc
0aed8855 42106 @: $(MAKE); $(unstage)
22121df0 42107 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067
NN
42108 r=`${PWD_COMMAND}`; export r; \
42109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42110 $(NORMAL_TARGET_EXPORTS) \
22121df0 42111 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42112 for flag in $(EXTRA_TARGET_FLAGS); do \
42113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42114 done; \
a90ef4bf 42115 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42118 "RANLIB=$${RANLIB}" \
0c24b341 42119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42120 install-info) \
4fa63067 42121 || exit 1
3866be5d 42122
a90ef4bf 42123@endif target-libobjc
16ae0395 42124
a90ef4bf
JM
42125.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
42126maybe-install-pdf-target-libobjc:
42127@if target-libobjc
42128maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 42129
a90ef4bf
JM
42130install-pdf-target-libobjc: \
42131 configure-target-libobjc \
42132 pdf-target-libobjc
a3ca38d2 42133 @: $(MAKE); $(unstage)
22121df0 42134 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a3ca38d2
DD
42135 r=`${PWD_COMMAND}`; export r; \
42136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42137 $(NORMAL_TARGET_EXPORTS) \
22121df0 42138 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc"; \
a3ca38d2
DD
42139 for flag in $(EXTRA_TARGET_FLAGS); do \
42140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42141 done; \
a90ef4bf 42142 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
42143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42145 "RANLIB=$${RANLIB}" \
0c24b341 42146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42147 install-pdf) \
42148 || exit 1
42149
a90ef4bf 42150@endif target-libobjc
a3ca38d2 42151
a90ef4bf
JM
42152.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
42153maybe-install-html-target-libobjc:
42154@if target-libobjc
42155maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 42156
a90ef4bf
JM
42157install-html-target-libobjc: \
42158 configure-target-libobjc \
42159 html-target-libobjc
108a6f8e 42160 @: $(MAKE); $(unstage)
22121df0 42161 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
108a6f8e
CD
42162 r=`${PWD_COMMAND}`; export r; \
42163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42164 $(NORMAL_TARGET_EXPORTS) \
22121df0 42165 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc"; \
108a6f8e
CD
42166 for flag in $(EXTRA_TARGET_FLAGS); do \
42167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42168 done; \
a90ef4bf 42169 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
42170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42172 "RANLIB=$${RANLIB}" \
0c24b341 42173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42174 install-html) \
42175 || exit 1
42176
a90ef4bf 42177@endif target-libobjc
108a6f8e 42178
a90ef4bf
JM
42179.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
42180maybe-installcheck-target-libobjc:
42181@if target-libobjc
42182maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 42183
a90ef4bf
JM
42184installcheck-target-libobjc: \
42185 configure-target-libobjc
0aed8855 42186 @: $(MAKE); $(unstage)
22121df0 42187 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 42188 r=`${PWD_COMMAND}`; export r; \
b40e3958 42189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42190 $(NORMAL_TARGET_EXPORTS) \
22121df0 42191 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42192 for flag in $(EXTRA_TARGET_FLAGS); do \
42193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42194 done; \
a90ef4bf 42195 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42198 "RANLIB=$${RANLIB}" \
0c24b341 42199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42200 installcheck) \
4fa63067 42201 || exit 1
3866be5d 42202
a90ef4bf 42203@endif target-libobjc
3866be5d 42204
a90ef4bf
JM
42205.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
42206maybe-mostlyclean-target-libobjc:
42207@if target-libobjc
42208maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 42209
a90ef4bf
JM
42210mostlyclean-target-libobjc:
42211 @: $(MAKE); $(unstage)
22121df0 42212 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
42213 r=`${PWD_COMMAND}`; export r; \
42214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42215 $(NORMAL_TARGET_EXPORTS) \
22121df0 42216 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
42217 for flag in $(EXTRA_TARGET_FLAGS); do \
42218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42219 done; \
42220 (cd $(TARGET_SUBDIR)/libobjc && \
42221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42223 "RANLIB=$${RANLIB}" \
42224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42225 mostlyclean) \
42226 || exit 1
4fa63067 42227
a90ef4bf 42228@endif target-libobjc
4fa63067 42229
a90ef4bf
JM
42230.PHONY: maybe-clean-target-libobjc clean-target-libobjc
42231maybe-clean-target-libobjc:
42232@if target-libobjc
42233maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 42234
a90ef4bf
JM
42235clean-target-libobjc:
42236 @: $(MAKE); $(unstage)
22121df0 42237 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
42238 r=`${PWD_COMMAND}`; export r; \
42239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42240 $(NORMAL_TARGET_EXPORTS) \
22121df0 42241 echo "Doing clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
42242 for flag in $(EXTRA_TARGET_FLAGS); do \
42243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42244 done; \
42245 (cd $(TARGET_SUBDIR)/libobjc && \
42246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42248 "RANLIB=$${RANLIB}" \
42249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42250 clean) \
42251 || exit 1
4fa63067 42252
a90ef4bf 42253@endif target-libobjc
4fa63067 42254
a90ef4bf
JM
42255.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
42256maybe-distclean-target-libobjc:
42257@if target-libobjc
42258maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 42259
a90ef4bf
JM
42260distclean-target-libobjc:
42261 @: $(MAKE); $(unstage)
22121df0 42262 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
42263 r=`${PWD_COMMAND}`; export r; \
42264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42265 $(NORMAL_TARGET_EXPORTS) \
22121df0 42266 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
42267 for flag in $(EXTRA_TARGET_FLAGS); do \
42268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42269 done; \
42270 (cd $(TARGET_SUBDIR)/libobjc && \
42271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42273 "RANLIB=$${RANLIB}" \
42274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42275 distclean) \
42276 || exit 1
4fa63067 42277
a90ef4bf 42278@endif target-libobjc
4fa63067 42279
a90ef4bf
JM
42280.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
42281maybe-maintainer-clean-target-libobjc:
42282@if target-libobjc
42283maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 42284
a90ef4bf
JM
42285maintainer-clean-target-libobjc:
42286 @: $(MAKE); $(unstage)
22121df0 42287 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
42288 r=`${PWD_COMMAND}`; export r; \
42289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42290 $(NORMAL_TARGET_EXPORTS) \
22121df0 42291 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
42292 for flag in $(EXTRA_TARGET_FLAGS); do \
42293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42294 done; \
42295 (cd $(TARGET_SUBDIR)/libobjc && \
42296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42298 "RANLIB=$${RANLIB}" \
42299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42300 maintainer-clean) \
42301 || exit 1
4fa63067 42302
a90ef4bf 42303@endif target-libobjc
4fa63067
NN
42304
42305
4fa63067 42306
4fa63067 42307
a7254363 42308
a90ef4bf
JM
42309.PHONY: configure-target-libgo maybe-configure-target-libgo
42310maybe-configure-target-libgo:
4f0ef2d8 42311@if gcc-bootstrap
a90ef4bf 42312configure-target-libgo: stage_current
4f0ef2d8 42313@endif gcc-bootstrap
a90ef4bf
JM
42314@if target-libgo
42315maybe-configure-target-libgo: configure-target-libgo
42316configure-target-libgo:
0aed8855
PB
42317 @: $(MAKE); $(unstage)
42318 @r=`${PWD_COMMAND}`; export r; \
42319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42320 echo "Checking multilib configuration for libgo..."; \
22121df0
L
42321 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
42322 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42323 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
42324 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
42325 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 42326 else \
a90ef4bf
JM
42327 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
42328 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
42329 fi; \
42330 else \
a90ef4bf 42331 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 42332 fi; \
a90ef4bf 42333 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
22121df0 42334 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
1f53ca9a 42335 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42336 echo Configuring in $(TARGET_SUBDIR)/libgo; \
42337 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 42338 case $(srcdir) in \
b00612cc 42339 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42340 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 42341 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 42342 esac; \
1b6c0831 42343 module_srcdir=libgo; \
4fa63067 42344 rm -f no-such-file || : ; \
1b6c0831
L
42345 CONFIG_SITE=no-such-file $(SHELL) \
42346 $$s/$$module_srcdir/configure \
42347 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42348 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42349 --target=${target_alias} \
e2b9e2dc 42350 || exit 1
a90ef4bf 42351@endif target-libgo
e2b9e2dc 42352
a7254363
PB
42353
42354
d545f33b
PB
42355
42356
a90ef4bf
JM
42357.PHONY: all-target-libgo maybe-all-target-libgo
42358maybe-all-target-libgo:
4f0ef2d8 42359@if gcc-bootstrap
a90ef4bf 42360all-target-libgo: stage_current
4f0ef2d8 42361@endif gcc-bootstrap
a90ef4bf
JM
42362@if target-libgo
42363TARGET-target-libgo=all
42364maybe-all-target-libgo: all-target-libgo
42365all-target-libgo: configure-target-libgo
0aed8855 42366 @: $(MAKE); $(unstage)
b40e3958
L
42367 @r=`${PWD_COMMAND}`; export r; \
42368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42369 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42370 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 42371 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42372 $(TARGET-target-libgo))
42373@endif target-libgo
3866be5d 42374
a7254363
PB
42375
42376
d545f33b
PB
42377
42378
a90ef4bf
JM
42379.PHONY: check-target-libgo maybe-check-target-libgo
42380maybe-check-target-libgo:
42381@if target-libgo
42382maybe-check-target-libgo: check-target-libgo
3866be5d 42383
a90ef4bf 42384check-target-libgo:
0aed8855 42385 @: $(MAKE); $(unstage)
4fa63067
NN
42386 @r=`${PWD_COMMAND}`; export r; \
42387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42388 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42389 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 42390 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 42391
a90ef4bf 42392@endif target-libgo
3866be5d 42393
a90ef4bf
JM
42394.PHONY: install-target-libgo maybe-install-target-libgo
42395maybe-install-target-libgo:
42396@if target-libgo
42397maybe-install-target-libgo: install-target-libgo
16ae0395 42398
a90ef4bf 42399install-target-libgo: installdirs
0aed8855 42400 @: $(MAKE); $(unstage)
4fa63067
NN
42401 @r=`${PWD_COMMAND}`; export r; \
42402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42403 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42404 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 42405 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 42406
a90ef4bf 42407@endif target-libgo
3866be5d 42408
a90ef4bf
JM
42409.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
42410maybe-install-strip-target-libgo:
42411@if target-libgo
42412maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 42413
a90ef4bf 42414install-strip-target-libgo: installdirs
9b980aa1
RW
42415 @: $(MAKE); $(unstage)
42416 @r=`${PWD_COMMAND}`; export r; \
42417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42418 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42419 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
42420 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42421
a90ef4bf 42422@endif target-libgo
9b980aa1 42423
56a8fe78 42424# Other targets (info, dvi, pdf, etc.)
4fa63067 42425
a90ef4bf
JM
42426.PHONY: maybe-info-target-libgo info-target-libgo
42427maybe-info-target-libgo:
42428@if target-libgo
42429maybe-info-target-libgo: info-target-libgo
4fa63067 42430
a90ef4bf
JM
42431info-target-libgo: \
42432 configure-target-libgo
0aed8855 42433 @: $(MAKE); $(unstage)
22121df0 42434 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
42435 r=`${PWD_COMMAND}`; export r; \
42436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42437 $(NORMAL_TARGET_EXPORTS) \
22121df0 42438 echo "Doing info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
42439 for flag in $(EXTRA_TARGET_FLAGS); do \
42440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42441 done; \
a90ef4bf 42442 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
42443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42445 "RANLIB=$${RANLIB}" \
0c24b341 42446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42447 info) \
e2b9e2dc
NN
42448 || exit 1
42449
a90ef4bf 42450@endif target-libgo
3866be5d 42451
a90ef4bf
JM
42452.PHONY: maybe-dvi-target-libgo dvi-target-libgo
42453maybe-dvi-target-libgo:
42454@if target-libgo
42455maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 42456
a90ef4bf
JM
42457dvi-target-libgo: \
42458 configure-target-libgo
0aed8855 42459 @: $(MAKE); $(unstage)
22121df0 42460 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 42461 r=`${PWD_COMMAND}`; export r; \
b40e3958 42462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42463 $(NORMAL_TARGET_EXPORTS) \
22121df0 42464 echo "Doing dvi in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
42465 for flag in $(EXTRA_TARGET_FLAGS); do \
42466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42467 done; \
a90ef4bf 42468 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
42469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42471 "RANLIB=$${RANLIB}" \
0c24b341 42472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42473 dvi) \
4fa63067 42474 || exit 1
3866be5d 42475
a90ef4bf 42476@endif target-libgo
3866be5d 42477
a90ef4bf
JM
42478.PHONY: maybe-pdf-target-libgo pdf-target-libgo
42479maybe-pdf-target-libgo:
42480@if target-libgo
42481maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 42482
a90ef4bf
JM
42483pdf-target-libgo: \
42484 configure-target-libgo
56a8fe78 42485 @: $(MAKE); $(unstage)
22121df0 42486 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
56a8fe78
DD
42487 r=`${PWD_COMMAND}`; export r; \
42488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42489 $(NORMAL_TARGET_EXPORTS) \
22121df0 42490 echo "Doing pdf in $(TARGET_SUBDIR)/libgo"; \
56a8fe78
DD
42491 for flag in $(EXTRA_TARGET_FLAGS); do \
42492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42493 done; \
a90ef4bf 42494 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
42495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42497 "RANLIB=$${RANLIB}" \
0c24b341 42498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42499 pdf) \
42500 || exit 1
42501
a90ef4bf 42502@endif target-libgo
56a8fe78 42503
a90ef4bf
JM
42504.PHONY: maybe-html-target-libgo html-target-libgo
42505maybe-html-target-libgo:
42506@if target-libgo
42507maybe-html-target-libgo: html-target-libgo
6d389afc 42508
a90ef4bf
JM
42509html-target-libgo: \
42510 configure-target-libgo
0aed8855 42511 @: $(MAKE); $(unstage)
22121df0 42512 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
6d389afc
MS
42513 r=`${PWD_COMMAND}`; export r; \
42514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42515 $(NORMAL_TARGET_EXPORTS) \
22121df0 42516 echo "Doing html in $(TARGET_SUBDIR)/libgo"; \
6d389afc
MS
42517 for flag in $(EXTRA_TARGET_FLAGS); do \
42518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42519 done; \
a90ef4bf 42520 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
42521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42523 "RANLIB=$${RANLIB}" \
0c24b341 42524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42525 html) \
42526 || exit 1
42527
a90ef4bf 42528@endif target-libgo
6d389afc 42529
a90ef4bf
JM
42530.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
42531maybe-TAGS-target-libgo:
42532@if target-libgo
42533maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 42534
a90ef4bf
JM
42535TAGS-target-libgo: \
42536 configure-target-libgo
0aed8855 42537 @: $(MAKE); $(unstage)
22121df0 42538 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 42539 r=`${PWD_COMMAND}`; export r; \
b40e3958 42540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42541 $(NORMAL_TARGET_EXPORTS) \
22121df0 42542 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
42543 for flag in $(EXTRA_TARGET_FLAGS); do \
42544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42545 done; \
a90ef4bf 42546 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
42547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42549 "RANLIB=$${RANLIB}" \
0c24b341 42550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42551 TAGS) \
4fa63067 42552 || exit 1
3866be5d 42553
a90ef4bf 42554@endif target-libgo
3866be5d 42555
a90ef4bf
JM
42556.PHONY: maybe-install-info-target-libgo install-info-target-libgo
42557maybe-install-info-target-libgo:
42558@if target-libgo
42559maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 42560
a90ef4bf
JM
42561install-info-target-libgo: \
42562 configure-target-libgo \
42563 info-target-libgo
0aed8855 42564 @: $(MAKE); $(unstage)
22121df0 42565 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
42566 r=`${PWD_COMMAND}`; export r; \
42567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42568 $(NORMAL_TARGET_EXPORTS) \
22121df0 42569 echo "Doing install-info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
42570 for flag in $(EXTRA_TARGET_FLAGS); do \
42571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42572 done; \
a90ef4bf 42573 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
42574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42576 "RANLIB=$${RANLIB}" \
0c24b341 42577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42578 install-info) \
e2b9e2dc
NN
42579 || exit 1
42580
a90ef4bf 42581@endif target-libgo
4fa63067 42582
a90ef4bf
JM
42583.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
42584maybe-install-pdf-target-libgo:
42585@if target-libgo
42586maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 42587
a90ef4bf
JM
42588install-pdf-target-libgo: \
42589 configure-target-libgo \
42590 pdf-target-libgo
a3ca38d2 42591 @: $(MAKE); $(unstage)
22121df0 42592 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
a3ca38d2
DD
42593 r=`${PWD_COMMAND}`; export r; \
42594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42595 $(NORMAL_TARGET_EXPORTS) \
22121df0 42596 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo"; \
a3ca38d2
DD
42597 for flag in $(EXTRA_TARGET_FLAGS); do \
42598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42599 done; \
a90ef4bf 42600 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
42601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42603 "RANLIB=$${RANLIB}" \
0c24b341 42604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42605 install-pdf) \
42606 || exit 1
42607
a90ef4bf 42608@endif target-libgo
a3ca38d2 42609
a90ef4bf
JM
42610.PHONY: maybe-install-html-target-libgo install-html-target-libgo
42611maybe-install-html-target-libgo:
42612@if target-libgo
42613maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 42614
a90ef4bf
JM
42615install-html-target-libgo: \
42616 configure-target-libgo \
42617 html-target-libgo
108a6f8e 42618 @: $(MAKE); $(unstage)
22121df0 42619 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
108a6f8e
CD
42620 r=`${PWD_COMMAND}`; export r; \
42621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42622 $(NORMAL_TARGET_EXPORTS) \
22121df0 42623 echo "Doing install-html in $(TARGET_SUBDIR)/libgo"; \
108a6f8e
CD
42624 for flag in $(EXTRA_TARGET_FLAGS); do \
42625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42626 done; \
a90ef4bf 42627 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
42628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42630 "RANLIB=$${RANLIB}" \
0c24b341 42631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42632 install-html) \
42633 || exit 1
42634
a90ef4bf 42635@endif target-libgo
108a6f8e 42636
a90ef4bf
JM
42637.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
42638maybe-installcheck-target-libgo:
42639@if target-libgo
42640maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 42641
a90ef4bf
JM
42642installcheck-target-libgo: \
42643 configure-target-libgo
0aed8855 42644 @: $(MAKE); $(unstage)
22121df0 42645 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 42646 r=`${PWD_COMMAND}`; export r; \
b40e3958 42647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42648 $(NORMAL_TARGET_EXPORTS) \
22121df0 42649 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
42650 for flag in $(EXTRA_TARGET_FLAGS); do \
42651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42652 done; \
a90ef4bf 42653 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
42654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42656 "RANLIB=$${RANLIB}" \
0c24b341 42657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42658 installcheck) \
4fa63067 42659 || exit 1
3866be5d 42660
a90ef4bf 42661@endif target-libgo
3866be5d 42662
a90ef4bf
JM
42663.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
42664maybe-mostlyclean-target-libgo:
42665@if target-libgo
42666maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 42667
a90ef4bf 42668mostlyclean-target-libgo:
0aed8855 42669 @: $(MAKE); $(unstage)
22121df0 42670 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 42671 r=`${PWD_COMMAND}`; export r; \
b40e3958 42672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42673 $(NORMAL_TARGET_EXPORTS) \
22121df0 42674 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
42675 for flag in $(EXTRA_TARGET_FLAGS); do \
42676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42677 done; \
a90ef4bf 42678 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
42679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42681 "RANLIB=$${RANLIB}" \
0c24b341 42682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42683 mostlyclean) \
4fa63067 42684 || exit 1
3866be5d 42685
a90ef4bf 42686@endif target-libgo
3866be5d 42687
a90ef4bf
JM
42688.PHONY: maybe-clean-target-libgo clean-target-libgo
42689maybe-clean-target-libgo:
42690@if target-libgo
42691maybe-clean-target-libgo: clean-target-libgo
16ae0395 42692
a90ef4bf 42693clean-target-libgo:
0aed8855 42694 @: $(MAKE); $(unstage)
22121df0 42695 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 42696 r=`${PWD_COMMAND}`; export r; \
b40e3958 42697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42698 $(NORMAL_TARGET_EXPORTS) \
22121df0 42699 echo "Doing clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
42700 for flag in $(EXTRA_TARGET_FLAGS); do \
42701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42702 done; \
a90ef4bf 42703 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
42704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42706 "RANLIB=$${RANLIB}" \
0c24b341 42707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42708 clean) \
4fa63067 42709 || exit 1
3866be5d 42710
a90ef4bf 42711@endif target-libgo
3866be5d 42712
a90ef4bf
JM
42713.PHONY: maybe-distclean-target-libgo distclean-target-libgo
42714maybe-distclean-target-libgo:
42715@if target-libgo
42716maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 42717
a90ef4bf 42718distclean-target-libgo:
0aed8855 42719 @: $(MAKE); $(unstage)
22121df0 42720 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
42721 r=`${PWD_COMMAND}`; export r; \
42722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42723 $(NORMAL_TARGET_EXPORTS) \
22121df0 42724 echo "Doing distclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
42725 for flag in $(EXTRA_TARGET_FLAGS); do \
42726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42727 done; \
a90ef4bf 42728 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
42729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42731 "RANLIB=$${RANLIB}" \
0c24b341 42732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42733 distclean) \
e2b9e2dc
NN
42734 || exit 1
42735
a90ef4bf 42736@endif target-libgo
3866be5d 42737
a90ef4bf
JM
42738.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
42739maybe-maintainer-clean-target-libgo:
42740@if target-libgo
42741maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 42742
a90ef4bf 42743maintainer-clean-target-libgo:
0aed8855 42744 @: $(MAKE); $(unstage)
22121df0 42745 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 42746 r=`${PWD_COMMAND}`; export r; \
b40e3958 42747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42748 $(NORMAL_TARGET_EXPORTS) \
22121df0 42749 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
42750 for flag in $(EXTRA_TARGET_FLAGS); do \
42751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42752 done; \
a90ef4bf 42753 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
42754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42756 "RANLIB=$${RANLIB}" \
0c24b341 42757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42758 maintainer-clean) \
4fa63067 42759 || exit 1
3866be5d 42760
a90ef4bf 42761@endif target-libgo
3866be5d 42762
16ae0395 42763
3866be5d 42764
e90269c8 42765
a7254363 42766
a90ef4bf
JM
42767.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
42768maybe-configure-target-libtermcap:
4f0ef2d8 42769@if gcc-bootstrap
a90ef4bf 42770configure-target-libtermcap: stage_current
4f0ef2d8 42771@endif gcc-bootstrap
a90ef4bf
JM
42772@if target-libtermcap
42773maybe-configure-target-libtermcap: configure-target-libtermcap
42774configure-target-libtermcap:
0aed8855
PB
42775 @: $(MAKE); $(unstage)
42776 @r=`${PWD_COMMAND}`; export r; \
42777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42778 echo "Checking multilib configuration for libtermcap..."; \
22121df0
L
42779 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
42780 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42781 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
42782 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
42783 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 42784 else \
a90ef4bf
JM
42785 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
42786 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
42787 fi; \
42788 else \
a90ef4bf 42789 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 42790 fi; \
a90ef4bf 42791 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 42792 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
1f53ca9a 42793 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42794 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
42795 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 42796 case $(srcdir) in \
b00612cc 42797 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42798 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 42799 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 42800 esac; \
1b6c0831 42801 module_srcdir=libtermcap; \
4fa63067 42802 rm -f no-such-file || : ; \
1b6c0831
L
42803 CONFIG_SITE=no-such-file $(SHELL) \
42804 $$s/$$module_srcdir/configure \
42805 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42806 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42807 --target=${target_alias} \
e2b9e2dc 42808 || exit 1
a90ef4bf 42809@endif target-libtermcap
e2b9e2dc 42810
a7254363
PB
42811
42812
d545f33b
PB
42813
42814
a90ef4bf
JM
42815.PHONY: all-target-libtermcap maybe-all-target-libtermcap
42816maybe-all-target-libtermcap:
4f0ef2d8 42817@if gcc-bootstrap
a90ef4bf 42818all-target-libtermcap: stage_current
4f0ef2d8 42819@endif gcc-bootstrap
a90ef4bf
JM
42820@if target-libtermcap
42821TARGET-target-libtermcap=all
42822maybe-all-target-libtermcap: all-target-libtermcap
42823all-target-libtermcap: configure-target-libtermcap
0aed8855 42824 @: $(MAKE); $(unstage)
b40e3958
L
42825 @r=`${PWD_COMMAND}`; export r; \
42826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42827 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42828 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 42829 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42830 $(TARGET-target-libtermcap))
42831@endif target-libtermcap
e393202e 42832
a7254363
PB
42833
42834
d545f33b
PB
42835
42836
a90ef4bf
JM
42837.PHONY: check-target-libtermcap maybe-check-target-libtermcap
42838maybe-check-target-libtermcap:
42839@if target-libtermcap
42840maybe-check-target-libtermcap: check-target-libtermcap
e393202e 42841
4fa63067 42842# Dummy target for uncheckable module.
a90ef4bf 42843check-target-libtermcap:
e393202e 42844
a90ef4bf 42845@endif target-libtermcap
e393202e 42846
a90ef4bf
JM
42847.PHONY: install-target-libtermcap maybe-install-target-libtermcap
42848maybe-install-target-libtermcap:
42849@if target-libtermcap
42850maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 42851
a90ef4bf 42852install-target-libtermcap: installdirs
0aed8855 42853 @: $(MAKE); $(unstage)
b40e3958
L
42854 @r=`${PWD_COMMAND}`; export r; \
42855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42856 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42857 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 42858 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 42859
a90ef4bf 42860@endif target-libtermcap
56a8fe78 42861
a90ef4bf
JM
42862.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
42863maybe-install-strip-target-libtermcap:
42864@if target-libtermcap
42865maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 42866
a90ef4bf 42867install-strip-target-libtermcap: installdirs
0aed8855 42868 @: $(MAKE); $(unstage)
a90ef4bf 42869 @r=`${PWD_COMMAND}`; export r; \
6d389afc 42870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42871 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42872 (cd $(TARGET_SUBDIR)/libtermcap && \
42873 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 42874
a90ef4bf 42875@endif target-libtermcap
6d389afc 42876
a90ef4bf 42877# Other targets (info, dvi, pdf, etc.)
16ae0395 42878
a90ef4bf
JM
42879.PHONY: maybe-info-target-libtermcap info-target-libtermcap
42880maybe-info-target-libtermcap:
42881@if target-libtermcap
42882maybe-info-target-libtermcap: info-target-libtermcap
42883
42884info-target-libtermcap: \
42885 configure-target-libtermcap
0aed8855 42886 @: $(MAKE); $(unstage)
22121df0 42887 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 42888 r=`${PWD_COMMAND}`; export r; \
b40e3958 42889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42890 $(NORMAL_TARGET_EXPORTS) \
22121df0 42891 echo "Doing info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42892 for flag in $(EXTRA_TARGET_FLAGS); do \
42893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42894 done; \
a90ef4bf 42895 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42898 "RANLIB=$${RANLIB}" \
0c24b341 42899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42900 info) \
4fa63067 42901 || exit 1
ce5b542e 42902
a90ef4bf 42903@endif target-libtermcap
ce5b542e 42904
a90ef4bf
JM
42905.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
42906maybe-dvi-target-libtermcap:
42907@if target-libtermcap
42908maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 42909
a90ef4bf
JM
42910dvi-target-libtermcap: \
42911 configure-target-libtermcap
0aed8855 42912 @: $(MAKE); $(unstage)
22121df0 42913 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
42914 r=`${PWD_COMMAND}`; export r; \
42915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42916 $(NORMAL_TARGET_EXPORTS) \
22121df0 42917 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42918 for flag in $(EXTRA_TARGET_FLAGS); do \
42919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42920 done; \
a90ef4bf 42921 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
42922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42924 "RANLIB=$${RANLIB}" \
0c24b341 42925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42926 dvi) \
e2b9e2dc
NN
42927 || exit 1
42928
a90ef4bf 42929@endif target-libtermcap
e393202e 42930
a90ef4bf
JM
42931.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
42932maybe-pdf-target-libtermcap:
42933@if target-libtermcap
42934maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 42935
a90ef4bf
JM
42936pdf-target-libtermcap: \
42937 configure-target-libtermcap
a3ca38d2 42938 @: $(MAKE); $(unstage)
22121df0 42939 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
a3ca38d2
DD
42940 r=`${PWD_COMMAND}`; export r; \
42941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42942 $(NORMAL_TARGET_EXPORTS) \
22121df0 42943 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap"; \
a3ca38d2
DD
42944 for flag in $(EXTRA_TARGET_FLAGS); do \
42945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42946 done; \
a90ef4bf 42947 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
42948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42950 "RANLIB=$${RANLIB}" \
0c24b341 42951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42952 pdf) \
a3ca38d2
DD
42953 || exit 1
42954
a90ef4bf 42955@endif target-libtermcap
a3ca38d2 42956
a90ef4bf
JM
42957.PHONY: maybe-html-target-libtermcap html-target-libtermcap
42958maybe-html-target-libtermcap:
42959@if target-libtermcap
42960maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 42961
a90ef4bf
JM
42962html-target-libtermcap: \
42963 configure-target-libtermcap
108a6f8e 42964 @: $(MAKE); $(unstage)
22121df0 42965 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
108a6f8e
CD
42966 r=`${PWD_COMMAND}`; export r; \
42967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42968 $(NORMAL_TARGET_EXPORTS) \
22121df0 42969 echo "Doing html in $(TARGET_SUBDIR)/libtermcap"; \
108a6f8e
CD
42970 for flag in $(EXTRA_TARGET_FLAGS); do \
42971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42972 done; \
a90ef4bf 42973 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
42974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42976 "RANLIB=$${RANLIB}" \
0c24b341 42977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 42978 html) \
108a6f8e
CD
42979 || exit 1
42980
a90ef4bf 42981@endif target-libtermcap
108a6f8e 42982
a90ef4bf
JM
42983.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
42984maybe-TAGS-target-libtermcap:
42985@if target-libtermcap
42986maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 42987
a90ef4bf
JM
42988TAGS-target-libtermcap: \
42989 configure-target-libtermcap
0aed8855 42990 @: $(MAKE); $(unstage)
22121df0 42991 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
42992 r=`${PWD_COMMAND}`; export r; \
42993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42994 $(NORMAL_TARGET_EXPORTS) \
22121df0 42995 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
42996 for flag in $(EXTRA_TARGET_FLAGS); do \
42997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42998 done; \
a90ef4bf 42999 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43002 "RANLIB=$${RANLIB}" \
0c24b341 43003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43004 TAGS) \
4fa63067 43005 || exit 1
3866be5d 43006
a90ef4bf 43007@endif target-libtermcap
3866be5d 43008
a90ef4bf
JM
43009.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
43010maybe-install-info-target-libtermcap:
43011@if target-libtermcap
43012maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 43013
a90ef4bf
JM
43014install-info-target-libtermcap: \
43015 configure-target-libtermcap \
43016 info-target-libtermcap
0aed8855 43017 @: $(MAKE); $(unstage)
22121df0 43018 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 43019 r=`${PWD_COMMAND}`; export r; \
b40e3958 43020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43021 $(NORMAL_TARGET_EXPORTS) \
22121df0 43022 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43023 for flag in $(EXTRA_TARGET_FLAGS); do \
43024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43025 done; \
a90ef4bf 43026 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43029 "RANLIB=$${RANLIB}" \
0c24b341 43030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43031 install-info) \
4fa63067 43032 || exit 1
e393202e 43033
a90ef4bf 43034@endif target-libtermcap
3866be5d 43035
a90ef4bf
JM
43036.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
43037maybe-install-pdf-target-libtermcap:
43038@if target-libtermcap
43039maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 43040
a90ef4bf
JM
43041install-pdf-target-libtermcap: \
43042 configure-target-libtermcap \
43043 pdf-target-libtermcap
0aed8855 43044 @: $(MAKE); $(unstage)
22121df0 43045 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
43046 r=`${PWD_COMMAND}`; export r; \
43047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43048 $(NORMAL_TARGET_EXPORTS) \
22121df0 43049 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43050 for flag in $(EXTRA_TARGET_FLAGS); do \
43051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43052 done; \
a90ef4bf 43053 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43056 "RANLIB=$${RANLIB}" \
0c24b341 43057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43058 install-pdf) \
e2b9e2dc
NN
43059 || exit 1
43060
a90ef4bf 43061@endif target-libtermcap
e393202e 43062
a90ef4bf
JM
43063.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
43064maybe-install-html-target-libtermcap:
43065@if target-libtermcap
43066maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 43067
a90ef4bf
JM
43068install-html-target-libtermcap: \
43069 configure-target-libtermcap \
43070 html-target-libtermcap
0aed8855 43071 @: $(MAKE); $(unstage)
22121df0 43072 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
43073 r=`${PWD_COMMAND}`; export r; \
43074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43075 $(NORMAL_TARGET_EXPORTS) \
22121df0 43076 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43077 for flag in $(EXTRA_TARGET_FLAGS); do \
43078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43079 done; \
a90ef4bf 43080 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43083 "RANLIB=$${RANLIB}" \
0c24b341 43084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43085 install-html) \
4fa63067 43086 || exit 1
3866be5d 43087
a90ef4bf 43088@endif target-libtermcap
3866be5d 43089
a90ef4bf
JM
43090.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
43091maybe-installcheck-target-libtermcap:
43092@if target-libtermcap
43093maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 43094
a90ef4bf
JM
43095installcheck-target-libtermcap: \
43096 configure-target-libtermcap
0aed8855 43097 @: $(MAKE); $(unstage)
22121df0 43098 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 43099 r=`${PWD_COMMAND}`; export r; \
b40e3958 43100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43101 $(NORMAL_TARGET_EXPORTS) \
22121df0 43102 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43103 for flag in $(EXTRA_TARGET_FLAGS); do \
43104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43105 done; \
a90ef4bf 43106 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43109 "RANLIB=$${RANLIB}" \
0c24b341 43110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43111 installcheck) \
4fa63067 43112 || exit 1
3866be5d 43113
a90ef4bf
JM
43114@endif target-libtermcap
43115
43116.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
43117maybe-mostlyclean-target-libtermcap:
43118@if target-libtermcap
43119maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
43120
43121# libtermcap doesn't support mostlyclean.
43122mostlyclean-target-libtermcap:
43123
43124@endif target-libtermcap
3866be5d 43125
a90ef4bf
JM
43126.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
43127maybe-clean-target-libtermcap:
43128@if target-libtermcap
43129maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 43130
a90ef4bf
JM
43131# libtermcap doesn't support clean.
43132clean-target-libtermcap:
15723a45 43133
a90ef4bf 43134@endif target-libtermcap
e90269c8 43135
a90ef4bf
JM
43136.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
43137maybe-distclean-target-libtermcap:
43138@if target-libtermcap
43139maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 43140
a90ef4bf
JM
43141# libtermcap doesn't support distclean.
43142distclean-target-libtermcap:
43143
43144@endif target-libtermcap
43145
43146.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
43147maybe-maintainer-clean-target-libtermcap:
43148@if target-libtermcap
43149maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
43150
43151# libtermcap doesn't support maintainer-clean.
43152maintainer-clean-target-libtermcap:
43153
43154@endif target-libtermcap
43155
43156
43157
43158
43159
43160.PHONY: configure-target-winsup maybe-configure-target-winsup
43161maybe-configure-target-winsup:
4f0ef2d8 43162@if gcc-bootstrap
a90ef4bf 43163configure-target-winsup: stage_current
4f0ef2d8 43164@endif gcc-bootstrap
a90ef4bf
JM
43165@if target-winsup
43166maybe-configure-target-winsup: configure-target-winsup
43167configure-target-winsup:
0aed8855
PB
43168 @: $(MAKE); $(unstage)
43169 @r=`${PWD_COMMAND}`; export r; \
43170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 43171 echo "Checking multilib configuration for winsup..."; \
22121df0
L
43172 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
43173 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
43174 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
43175 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
43176 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 43177 else \
a90ef4bf
JM
43178 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
43179 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
43180 fi; \
43181 else \
a90ef4bf 43182 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 43183 fi; \
a90ef4bf 43184 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
22121df0 43185 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
1f53ca9a 43186 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43187 echo Configuring in $(TARGET_SUBDIR)/winsup; \
43188 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 43189 case $(srcdir) in \
b00612cc 43190 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 43191 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 43192 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43193 esac; \
1b6c0831 43194 module_srcdir=winsup; \
bba45b8b 43195 rm -f no-such-file || : ; \
1b6c0831
L
43196 CONFIG_SITE=no-such-file $(SHELL) \
43197 $$s/$$module_srcdir/configure \
43198 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43199 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43200 --target=${target_alias} \
bba45b8b 43201 || exit 1
a90ef4bf 43202@endif target-winsup
e393202e 43203
a7254363
PB
43204
43205
d545f33b
PB
43206
43207
a90ef4bf
JM
43208.PHONY: all-target-winsup maybe-all-target-winsup
43209maybe-all-target-winsup:
4f0ef2d8 43210@if gcc-bootstrap
a90ef4bf 43211all-target-winsup: stage_current
4f0ef2d8 43212@endif gcc-bootstrap
a90ef4bf
JM
43213@if target-winsup
43214TARGET-target-winsup=all
43215maybe-all-target-winsup: all-target-winsup
43216all-target-winsup: configure-target-winsup
0aed8855 43217 @: $(MAKE); $(unstage)
b40e3958
L
43218 @r=`${PWD_COMMAND}`; export r; \
43219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43220 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43221 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 43222 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
43223 $(TARGET-target-winsup))
43224@endif target-winsup
e393202e 43225
a7254363
PB
43226
43227
d545f33b
PB
43228
43229
a90ef4bf
JM
43230.PHONY: check-target-winsup maybe-check-target-winsup
43231maybe-check-target-winsup:
43232@if target-winsup
43233maybe-check-target-winsup: check-target-winsup
16ae0395 43234
a90ef4bf 43235check-target-winsup:
0aed8855 43236 @: $(MAKE); $(unstage)
b40e3958
L
43237 @r=`${PWD_COMMAND}`; export r; \
43238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43239 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43240 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 43241 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 43242
a90ef4bf 43243@endif target-winsup
e393202e 43244
a90ef4bf
JM
43245.PHONY: install-target-winsup maybe-install-target-winsup
43246maybe-install-target-winsup:
43247@if target-winsup
43248maybe-install-target-winsup: install-target-winsup
4fa63067 43249
a90ef4bf 43250install-target-winsup: installdirs
0aed8855 43251 @: $(MAKE); $(unstage)
4fa63067
NN
43252 @r=`${PWD_COMMAND}`; export r; \
43253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43254 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43255 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 43256 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 43257
a90ef4bf 43258@endif target-winsup
4fa63067 43259
a90ef4bf
JM
43260.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
43261maybe-install-strip-target-winsup:
43262@if target-winsup
43263maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 43264
a90ef4bf 43265install-strip-target-winsup: installdirs
9b980aa1
RW
43266 @: $(MAKE); $(unstage)
43267 @r=`${PWD_COMMAND}`; export r; \
43268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43269 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43270 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
43271 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43272
a90ef4bf 43273@endif target-winsup
9b980aa1 43274
56a8fe78 43275# Other targets (info, dvi, pdf, etc.)
4fa63067 43276
a90ef4bf
JM
43277.PHONY: maybe-info-target-winsup info-target-winsup
43278maybe-info-target-winsup:
43279@if target-winsup
43280maybe-info-target-winsup: info-target-winsup
4fa63067 43281
a90ef4bf
JM
43282info-target-winsup: \
43283 configure-target-winsup
0aed8855 43284 @: $(MAKE); $(unstage)
22121df0 43285 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43286 r=`${PWD_COMMAND}`; export r; \
43287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43288 $(NORMAL_TARGET_EXPORTS) \
22121df0 43289 echo "Doing info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43290 for flag in $(EXTRA_TARGET_FLAGS); do \
43291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43292 done; \
a90ef4bf 43293 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43296 "RANLIB=$${RANLIB}" \
0c24b341 43297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43298 info) \
4fa63067
NN
43299 || exit 1
43300
a90ef4bf 43301@endif target-winsup
4fa63067 43302
a90ef4bf
JM
43303.PHONY: maybe-dvi-target-winsup dvi-target-winsup
43304maybe-dvi-target-winsup:
43305@if target-winsup
43306maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 43307
a90ef4bf
JM
43308dvi-target-winsup: \
43309 configure-target-winsup
0aed8855 43310 @: $(MAKE); $(unstage)
22121df0 43311 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43312 r=`${PWD_COMMAND}`; export r; \
43313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43314 $(NORMAL_TARGET_EXPORTS) \
22121df0 43315 echo "Doing dvi in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43316 for flag in $(EXTRA_TARGET_FLAGS); do \
43317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43318 done; \
a90ef4bf 43319 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43322 "RANLIB=$${RANLIB}" \
0c24b341 43323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43324 dvi) \
4fa63067
NN
43325 || exit 1
43326
a90ef4bf 43327@endif target-winsup
4fa63067 43328
a90ef4bf
JM
43329.PHONY: maybe-pdf-target-winsup pdf-target-winsup
43330maybe-pdf-target-winsup:
43331@if target-winsup
43332maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 43333
a90ef4bf
JM
43334pdf-target-winsup: \
43335 configure-target-winsup
56a8fe78 43336 @: $(MAKE); $(unstage)
22121df0 43337 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
56a8fe78
DD
43338 r=`${PWD_COMMAND}`; export r; \
43339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43340 $(NORMAL_TARGET_EXPORTS) \
22121df0 43341 echo "Doing pdf in $(TARGET_SUBDIR)/winsup"; \
56a8fe78
DD
43342 for flag in $(EXTRA_TARGET_FLAGS); do \
43343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43344 done; \
a90ef4bf 43345 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
43346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43348 "RANLIB=$${RANLIB}" \
0c24b341 43349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43350 pdf) \
43351 || exit 1
43352
a90ef4bf 43353@endif target-winsup
56a8fe78 43354
a90ef4bf
JM
43355.PHONY: maybe-html-target-winsup html-target-winsup
43356maybe-html-target-winsup:
43357@if target-winsup
43358maybe-html-target-winsup: html-target-winsup
6d389afc 43359
a90ef4bf
JM
43360html-target-winsup: \
43361 configure-target-winsup
0aed8855 43362 @: $(MAKE); $(unstage)
22121df0 43363 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
6d389afc
MS
43364 r=`${PWD_COMMAND}`; export r; \
43365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43366 $(NORMAL_TARGET_EXPORTS) \
22121df0 43367 echo "Doing html in $(TARGET_SUBDIR)/winsup"; \
6d389afc
MS
43368 for flag in $(EXTRA_TARGET_FLAGS); do \
43369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43370 done; \
a90ef4bf 43371 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
43372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43374 "RANLIB=$${RANLIB}" \
0c24b341 43375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43376 html) \
43377 || exit 1
43378
a90ef4bf 43379@endif target-winsup
6d389afc 43380
a90ef4bf
JM
43381.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
43382maybe-TAGS-target-winsup:
43383@if target-winsup
43384maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 43385
a90ef4bf
JM
43386TAGS-target-winsup: \
43387 configure-target-winsup
0aed8855 43388 @: $(MAKE); $(unstage)
22121df0 43389 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43390 r=`${PWD_COMMAND}`; export r; \
43391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43392 $(NORMAL_TARGET_EXPORTS) \
22121df0 43393 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43394 for flag in $(EXTRA_TARGET_FLAGS); do \
43395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43396 done; \
a90ef4bf 43397 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43400 "RANLIB=$${RANLIB}" \
0c24b341 43401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43402 TAGS) \
4fa63067
NN
43403 || exit 1
43404
a90ef4bf 43405@endif target-winsup
4fa63067 43406
a90ef4bf
JM
43407.PHONY: maybe-install-info-target-winsup install-info-target-winsup
43408maybe-install-info-target-winsup:
43409@if target-winsup
43410maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 43411
a90ef4bf
JM
43412install-info-target-winsup: \
43413 configure-target-winsup \
43414 info-target-winsup
0aed8855 43415 @: $(MAKE); $(unstage)
22121df0 43416 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43417 r=`${PWD_COMMAND}`; export r; \
43418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43419 $(NORMAL_TARGET_EXPORTS) \
22121df0 43420 echo "Doing install-info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43421 for flag in $(EXTRA_TARGET_FLAGS); do \
43422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43423 done; \
a90ef4bf 43424 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43427 "RANLIB=$${RANLIB}" \
0c24b341 43428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43429 install-info) \
4fa63067
NN
43430 || exit 1
43431
a90ef4bf 43432@endif target-winsup
4fa63067 43433
a90ef4bf
JM
43434.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
43435maybe-install-pdf-target-winsup:
43436@if target-winsup
43437maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 43438
a90ef4bf
JM
43439install-pdf-target-winsup: \
43440 configure-target-winsup \
43441 pdf-target-winsup
a3ca38d2 43442 @: $(MAKE); $(unstage)
22121df0 43443 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
a3ca38d2
DD
43444 r=`${PWD_COMMAND}`; export r; \
43445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43446 $(NORMAL_TARGET_EXPORTS) \
22121df0 43447 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup"; \
a3ca38d2
DD
43448 for flag in $(EXTRA_TARGET_FLAGS); do \
43449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43450 done; \
a90ef4bf 43451 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
43452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43454 "RANLIB=$${RANLIB}" \
0c24b341 43455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43456 install-pdf) \
43457 || exit 1
43458
a90ef4bf 43459@endif target-winsup
a3ca38d2 43460
a90ef4bf
JM
43461.PHONY: maybe-install-html-target-winsup install-html-target-winsup
43462maybe-install-html-target-winsup:
43463@if target-winsup
43464maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 43465
a90ef4bf
JM
43466install-html-target-winsup: \
43467 configure-target-winsup \
43468 html-target-winsup
108a6f8e 43469 @: $(MAKE); $(unstage)
22121df0 43470 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
108a6f8e
CD
43471 r=`${PWD_COMMAND}`; export r; \
43472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43473 $(NORMAL_TARGET_EXPORTS) \
22121df0 43474 echo "Doing install-html in $(TARGET_SUBDIR)/winsup"; \
108a6f8e
CD
43475 for flag in $(EXTRA_TARGET_FLAGS); do \
43476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43477 done; \
a90ef4bf 43478 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
43479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43481 "RANLIB=$${RANLIB}" \
0c24b341 43482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43483 install-html) \
43484 || exit 1
43485
a90ef4bf 43486@endif target-winsup
108a6f8e 43487
a90ef4bf
JM
43488.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
43489maybe-installcheck-target-winsup:
43490@if target-winsup
43491maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 43492
a90ef4bf
JM
43493installcheck-target-winsup: \
43494 configure-target-winsup
0aed8855 43495 @: $(MAKE); $(unstage)
22121df0 43496 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43497 r=`${PWD_COMMAND}`; export r; \
43498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43499 $(NORMAL_TARGET_EXPORTS) \
22121df0 43500 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43501 for flag in $(EXTRA_TARGET_FLAGS); do \
43502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43503 done; \
a90ef4bf 43504 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43507 "RANLIB=$${RANLIB}" \
0c24b341 43508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43509 installcheck) \
4fa63067
NN
43510 || exit 1
43511
a90ef4bf 43512@endif target-winsup
4fa63067 43513
a90ef4bf
JM
43514.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
43515maybe-mostlyclean-target-winsup:
43516@if target-winsup
43517maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 43518
a90ef4bf 43519mostlyclean-target-winsup:
0aed8855 43520 @: $(MAKE); $(unstage)
22121df0 43521 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43522 r=`${PWD_COMMAND}`; export r; \
43523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43524 $(NORMAL_TARGET_EXPORTS) \
22121df0 43525 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43526 for flag in $(EXTRA_TARGET_FLAGS); do \
43527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43528 done; \
a90ef4bf 43529 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43532 "RANLIB=$${RANLIB}" \
0c24b341 43533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43534 mostlyclean) \
4fa63067
NN
43535 || exit 1
43536
a90ef4bf 43537@endif target-winsup
4fa63067 43538
a90ef4bf
JM
43539.PHONY: maybe-clean-target-winsup clean-target-winsup
43540maybe-clean-target-winsup:
43541@if target-winsup
43542maybe-clean-target-winsup: clean-target-winsup
4fa63067 43543
a90ef4bf 43544clean-target-winsup:
0aed8855 43545 @: $(MAKE); $(unstage)
22121df0 43546 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43547 r=`${PWD_COMMAND}`; export r; \
43548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43549 $(NORMAL_TARGET_EXPORTS) \
22121df0 43550 echo "Doing clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43551 for flag in $(EXTRA_TARGET_FLAGS); do \
43552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43553 done; \
a90ef4bf 43554 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43557 "RANLIB=$${RANLIB}" \
0c24b341 43558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43559 clean) \
4fa63067
NN
43560 || exit 1
43561
a90ef4bf 43562@endif target-winsup
4fa63067 43563
a90ef4bf
JM
43564.PHONY: maybe-distclean-target-winsup distclean-target-winsup
43565maybe-distclean-target-winsup:
43566@if target-winsup
43567maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 43568
a90ef4bf 43569distclean-target-winsup:
0aed8855 43570 @: $(MAKE); $(unstage)
22121df0 43571 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43572 r=`${PWD_COMMAND}`; export r; \
43573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43574 $(NORMAL_TARGET_EXPORTS) \
22121df0 43575 echo "Doing distclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43576 for flag in $(EXTRA_TARGET_FLAGS); do \
43577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43578 done; \
a90ef4bf 43579 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43582 "RANLIB=$${RANLIB}" \
0c24b341 43583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43584 distclean) \
4fa63067
NN
43585 || exit 1
43586
a90ef4bf 43587@endif target-winsup
4fa63067 43588
a90ef4bf
JM
43589.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
43590maybe-maintainer-clean-target-winsup:
43591@if target-winsup
43592maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 43593
a90ef4bf 43594maintainer-clean-target-winsup:
0aed8855 43595 @: $(MAKE); $(unstage)
22121df0 43596 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43597 r=`${PWD_COMMAND}`; export r; \
43598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43599 $(NORMAL_TARGET_EXPORTS) \
22121df0 43600 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43601 for flag in $(EXTRA_TARGET_FLAGS); do \
43602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43603 done; \
a90ef4bf 43604 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43607 "RANLIB=$${RANLIB}" \
0c24b341 43608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43609 maintainer-clean) \
4fa63067 43610 || exit 1
16ae0395 43611
a90ef4bf 43612@endif target-winsup
e393202e
NN
43613
43614
15723a45 43615
e90269c8 43616
a7254363 43617
a90ef4bf
JM
43618.PHONY: configure-target-libgloss maybe-configure-target-libgloss
43619maybe-configure-target-libgloss:
4f0ef2d8 43620@if gcc-bootstrap
a90ef4bf 43621configure-target-libgloss: stage_current
4f0ef2d8 43622@endif gcc-bootstrap
a90ef4bf
JM
43623@if target-libgloss
43624maybe-configure-target-libgloss: configure-target-libgloss
43625configure-target-libgloss:
0aed8855
PB
43626 @: $(MAKE); $(unstage)
43627 @r=`${PWD_COMMAND}`; export r; \
43628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 43629 echo "Checking multilib configuration for libgloss..."; \
22121df0
L
43630 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
43631 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
43632 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
43633 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
43634 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 43635 else \
a90ef4bf
JM
43636 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
43637 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
43638 fi; \
43639 else \
a90ef4bf 43640 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 43641 fi; \
a90ef4bf 43642 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
22121df0 43643 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
1f53ca9a 43644 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43645 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
43646 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 43647 case $(srcdir) in \
b00612cc 43648 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 43649 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 43650 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43651 esac; \
1b6c0831 43652 module_srcdir=libgloss; \
bba45b8b 43653 rm -f no-such-file || : ; \
1b6c0831
L
43654 CONFIG_SITE=no-such-file $(SHELL) \
43655 $$s/$$module_srcdir/configure \
43656 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43657 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43658 --target=${target_alias} \
bba45b8b 43659 || exit 1
a90ef4bf 43660@endif target-libgloss
e393202e 43661
a7254363
PB
43662
43663
d545f33b
PB
43664
43665
a90ef4bf
JM
43666.PHONY: all-target-libgloss maybe-all-target-libgloss
43667maybe-all-target-libgloss:
4f0ef2d8 43668@if gcc-bootstrap
a90ef4bf 43669all-target-libgloss: stage_current
4f0ef2d8 43670@endif gcc-bootstrap
a90ef4bf
JM
43671@if target-libgloss
43672TARGET-target-libgloss=all
43673maybe-all-target-libgloss: all-target-libgloss
43674all-target-libgloss: configure-target-libgloss
0aed8855 43675 @: $(MAKE); $(unstage)
b40e3958
L
43676 @r=`${PWD_COMMAND}`; export r; \
43677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43678 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43679 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 43680 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
43681 $(TARGET-target-libgloss))
43682@endif target-libgloss
e393202e 43683
a7254363
PB
43684
43685
d545f33b
PB
43686
43687
a90ef4bf
JM
43688.PHONY: check-target-libgloss maybe-check-target-libgloss
43689maybe-check-target-libgloss:
43690@if target-libgloss
43691maybe-check-target-libgloss: check-target-libgloss
16ae0395 43692
a90ef4bf
JM
43693# Dummy target for uncheckable module.
43694check-target-libgloss:
930314a4 43695
a90ef4bf 43696@endif target-libgloss
e393202e 43697
a90ef4bf
JM
43698.PHONY: install-target-libgloss maybe-install-target-libgloss
43699maybe-install-target-libgloss:
43700@if target-libgloss
43701maybe-install-target-libgloss: install-target-libgloss
4fa63067 43702
a90ef4bf 43703install-target-libgloss: installdirs
0aed8855 43704 @: $(MAKE); $(unstage)
4fa63067
NN
43705 @r=`${PWD_COMMAND}`; export r; \
43706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43707 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43708 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 43709 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 43710
a90ef4bf 43711@endif target-libgloss
4fa63067 43712
a90ef4bf
JM
43713.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
43714maybe-install-strip-target-libgloss:
43715@if target-libgloss
43716maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 43717
a90ef4bf 43718install-strip-target-libgloss: installdirs
9b980aa1
RW
43719 @: $(MAKE); $(unstage)
43720 @r=`${PWD_COMMAND}`; export r; \
43721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43722 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43723 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
43724 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43725
a90ef4bf 43726@endif target-libgloss
9b980aa1 43727
56a8fe78 43728# Other targets (info, dvi, pdf, etc.)
4fa63067 43729
a90ef4bf
JM
43730.PHONY: maybe-info-target-libgloss info-target-libgloss
43731maybe-info-target-libgloss:
43732@if target-libgloss
43733maybe-info-target-libgloss: info-target-libgloss
4fa63067 43734
a90ef4bf
JM
43735info-target-libgloss: \
43736 configure-target-libgloss
0aed8855 43737 @: $(MAKE); $(unstage)
22121df0 43738 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
43739 r=`${PWD_COMMAND}`; export r; \
43740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43741 $(NORMAL_TARGET_EXPORTS) \
22121df0 43742 echo "Doing info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
43743 for flag in $(EXTRA_TARGET_FLAGS); do \
43744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43745 done; \
a90ef4bf 43746 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
43747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43749 "RANLIB=$${RANLIB}" \
0c24b341 43750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43751 info) \
4fa63067
NN
43752 || exit 1
43753
a90ef4bf 43754@endif target-libgloss
4fa63067 43755
a90ef4bf
JM
43756.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
43757maybe-dvi-target-libgloss:
43758@if target-libgloss
43759maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 43760
a90ef4bf
JM
43761dvi-target-libgloss: \
43762 configure-target-libgloss
0aed8855 43763 @: $(MAKE); $(unstage)
22121df0 43764 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
43765 r=`${PWD_COMMAND}`; export r; \
43766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43767 $(NORMAL_TARGET_EXPORTS) \
22121df0 43768 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
43769 for flag in $(EXTRA_TARGET_FLAGS); do \
43770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43771 done; \
a90ef4bf 43772 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
43773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43775 "RANLIB=$${RANLIB}" \
0c24b341 43776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43777 dvi) \
4fa63067
NN
43778 || exit 1
43779
a90ef4bf 43780@endif target-libgloss
4fa63067 43781
a90ef4bf
JM
43782.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
43783maybe-pdf-target-libgloss:
43784@if target-libgloss
43785maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 43786
a90ef4bf
JM
43787pdf-target-libgloss: \
43788 configure-target-libgloss
56a8fe78 43789 @: $(MAKE); $(unstage)
22121df0 43790 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
56a8fe78
DD
43791 r=`${PWD_COMMAND}`; export r; \
43792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43793 $(NORMAL_TARGET_EXPORTS) \
22121df0 43794 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss"; \
56a8fe78
DD
43795 for flag in $(EXTRA_TARGET_FLAGS); do \
43796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43797 done; \
a90ef4bf 43798 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
43799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43801 "RANLIB=$${RANLIB}" \
0c24b341 43802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43803 pdf) \
43804 || exit 1
43805
a90ef4bf 43806@endif target-libgloss
56a8fe78 43807
a90ef4bf
JM
43808.PHONY: maybe-html-target-libgloss html-target-libgloss
43809maybe-html-target-libgloss:
43810@if target-libgloss
43811maybe-html-target-libgloss: html-target-libgloss
6d389afc 43812
a90ef4bf
JM
43813html-target-libgloss: \
43814 configure-target-libgloss
0aed8855 43815 @: $(MAKE); $(unstage)
22121df0 43816 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
6d389afc
MS
43817 r=`${PWD_COMMAND}`; export r; \
43818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43819 $(NORMAL_TARGET_EXPORTS) \
22121df0 43820 echo "Doing html in $(TARGET_SUBDIR)/libgloss"; \
6d389afc
MS
43821 for flag in $(EXTRA_TARGET_FLAGS); do \
43822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43823 done; \
a90ef4bf 43824 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
43825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43827 "RANLIB=$${RANLIB}" \
0c24b341 43828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43829 html) \
43830 || exit 1
43831
a90ef4bf 43832@endif target-libgloss
6d389afc 43833
a90ef4bf
JM
43834.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
43835maybe-TAGS-target-libgloss:
43836@if target-libgloss
43837maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 43838
a90ef4bf
JM
43839TAGS-target-libgloss: \
43840 configure-target-libgloss
0aed8855 43841 @: $(MAKE); $(unstage)
22121df0 43842 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
43843 r=`${PWD_COMMAND}`; export r; \
43844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43845 $(NORMAL_TARGET_EXPORTS) \
22121df0 43846 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
43847 for flag in $(EXTRA_TARGET_FLAGS); do \
43848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43849 done; \
a90ef4bf 43850 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
43851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43853 "RANLIB=$${RANLIB}" \
0c24b341 43854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43855 TAGS) \
4fa63067
NN
43856 || exit 1
43857
a90ef4bf 43858@endif target-libgloss
4fa63067 43859
a90ef4bf
JM
43860.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
43861maybe-install-info-target-libgloss:
43862@if target-libgloss
43863maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 43864
a90ef4bf
JM
43865install-info-target-libgloss: \
43866 configure-target-libgloss \
43867 info-target-libgloss
0aed8855 43868 @: $(MAKE); $(unstage)
22121df0 43869 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
43870 r=`${PWD_COMMAND}`; export r; \
43871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43872 $(NORMAL_TARGET_EXPORTS) \
22121df0 43873 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
43874 for flag in $(EXTRA_TARGET_FLAGS); do \
43875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43876 done; \
a90ef4bf 43877 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
43878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43880 "RANLIB=$${RANLIB}" \
0c24b341 43881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43882 install-info) \
4fa63067
NN
43883 || exit 1
43884
a90ef4bf 43885@endif target-libgloss
4fa63067 43886
a90ef4bf
JM
43887.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
43888maybe-install-pdf-target-libgloss:
43889@if target-libgloss
43890maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 43891
a90ef4bf
JM
43892install-pdf-target-libgloss: \
43893 configure-target-libgloss \
43894 pdf-target-libgloss
a3ca38d2 43895 @: $(MAKE); $(unstage)
22121df0 43896 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
a3ca38d2
DD
43897 r=`${PWD_COMMAND}`; export r; \
43898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43899 $(NORMAL_TARGET_EXPORTS) \
22121df0 43900 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss"; \
a3ca38d2
DD
43901 for flag in $(EXTRA_TARGET_FLAGS); do \
43902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43903 done; \
a90ef4bf 43904 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
43905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43907 "RANLIB=$${RANLIB}" \
0c24b341 43908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43909 install-pdf) \
43910 || exit 1
43911
a90ef4bf 43912@endif target-libgloss
a3ca38d2 43913
a90ef4bf
JM
43914.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
43915maybe-install-html-target-libgloss:
43916@if target-libgloss
43917maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 43918
a90ef4bf
JM
43919install-html-target-libgloss: \
43920 configure-target-libgloss \
43921 html-target-libgloss
108a6f8e 43922 @: $(MAKE); $(unstage)
22121df0 43923 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
108a6f8e
CD
43924 r=`${PWD_COMMAND}`; export r; \
43925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43926 $(NORMAL_TARGET_EXPORTS) \
22121df0 43927 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss"; \
108a6f8e
CD
43928 for flag in $(EXTRA_TARGET_FLAGS); do \
43929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43930 done; \
a90ef4bf 43931 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
43932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43934 "RANLIB=$${RANLIB}" \
0c24b341 43935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43936 install-html) \
43937 || exit 1
43938
a90ef4bf 43939@endif target-libgloss
108a6f8e 43940
a90ef4bf
JM
43941.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
43942maybe-installcheck-target-libgloss:
43943@if target-libgloss
43944maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 43945
a90ef4bf
JM
43946installcheck-target-libgloss: \
43947 configure-target-libgloss
0aed8855 43948 @: $(MAKE); $(unstage)
22121df0 43949 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
43950 r=`${PWD_COMMAND}`; export r; \
43951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43952 $(NORMAL_TARGET_EXPORTS) \
22121df0 43953 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
43954 for flag in $(EXTRA_TARGET_FLAGS); do \
43955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43956 done; \
a90ef4bf 43957 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
43958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43960 "RANLIB=$${RANLIB}" \
0c24b341 43961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43962 installcheck) \
4fa63067
NN
43963 || exit 1
43964
a90ef4bf 43965@endif target-libgloss
4fa63067 43966
a90ef4bf
JM
43967.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
43968maybe-mostlyclean-target-libgloss:
43969@if target-libgloss
43970maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 43971
a90ef4bf 43972mostlyclean-target-libgloss:
0aed8855 43973 @: $(MAKE); $(unstage)
22121df0 43974 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
43975 r=`${PWD_COMMAND}`; export r; \
43976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43977 $(NORMAL_TARGET_EXPORTS) \
22121df0 43978 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
43979 for flag in $(EXTRA_TARGET_FLAGS); do \
43980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43981 done; \
a90ef4bf 43982 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
43983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43985 "RANLIB=$${RANLIB}" \
0c24b341 43986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43987 mostlyclean) \
4fa63067
NN
43988 || exit 1
43989
a90ef4bf 43990@endif target-libgloss
4fa63067 43991
a90ef4bf
JM
43992.PHONY: maybe-clean-target-libgloss clean-target-libgloss
43993maybe-clean-target-libgloss:
43994@if target-libgloss
43995maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 43996
a90ef4bf 43997clean-target-libgloss:
0aed8855 43998 @: $(MAKE); $(unstage)
22121df0 43999 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44000 r=`${PWD_COMMAND}`; export r; \
44001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44002 $(NORMAL_TARGET_EXPORTS) \
22121df0 44003 echo "Doing clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44004 for flag in $(EXTRA_TARGET_FLAGS); do \
44005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44006 done; \
a90ef4bf 44007 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44010 "RANLIB=$${RANLIB}" \
0c24b341 44011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44012 clean) \
4fa63067
NN
44013 || exit 1
44014
a90ef4bf 44015@endif target-libgloss
4fa63067 44016
a90ef4bf
JM
44017.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
44018maybe-distclean-target-libgloss:
44019@if target-libgloss
44020maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 44021
a90ef4bf 44022distclean-target-libgloss:
0aed8855 44023 @: $(MAKE); $(unstage)
22121df0 44024 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44025 r=`${PWD_COMMAND}`; export r; \
44026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44027 $(NORMAL_TARGET_EXPORTS) \
22121df0 44028 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44029 for flag in $(EXTRA_TARGET_FLAGS); do \
44030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44031 done; \
a90ef4bf 44032 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44035 "RANLIB=$${RANLIB}" \
0c24b341 44036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44037 distclean) \
4fa63067
NN
44038 || exit 1
44039
a90ef4bf 44040@endif target-libgloss
4fa63067 44041
a90ef4bf
JM
44042.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
44043maybe-maintainer-clean-target-libgloss:
44044@if target-libgloss
44045maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 44046
a90ef4bf 44047maintainer-clean-target-libgloss:
0aed8855 44048 @: $(MAKE); $(unstage)
22121df0 44049 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44050 r=`${PWD_COMMAND}`; export r; \
44051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44052 $(NORMAL_TARGET_EXPORTS) \
22121df0 44053 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44054 for flag in $(EXTRA_TARGET_FLAGS); do \
44055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44056 done; \
a90ef4bf 44057 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44060 "RANLIB=$${RANLIB}" \
0c24b341 44061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44062 maintainer-clean) \
4fa63067 44063 || exit 1
16ae0395 44064
a90ef4bf 44065@endif target-libgloss
e393202e
NN
44066
44067
15723a45 44068
a7254363
PB
44069
44070
a7254363
PB
44071.PHONY: configure-target-libffi maybe-configure-target-libffi
44072maybe-configure-target-libffi:
4f0ef2d8
CD
44073@if gcc-bootstrap
44074configure-target-libffi: stage_current
44075@endif gcc-bootstrap
a7254363
PB
44076@if target-libffi
44077maybe-configure-target-libffi: configure-target-libffi
c52c6897 44078configure-target-libffi:
0aed8855
PB
44079 @: $(MAKE); $(unstage)
44080 @r=`${PWD_COMMAND}`; export r; \
44081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44082 echo "Checking multilib configuration for libffi..."; \
22121df0
L
44083 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
44084 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null; \
0aed8855
PB
44085 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
44086 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
44087 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
44088 else \
44089 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
44090 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
44091 fi; \
44092 else \
44093 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
44094 fi; \
44095 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
22121df0 44096 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
1f53ca9a 44097 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44098 echo Configuring in $(TARGET_SUBDIR)/libffi; \
44099 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 44100 case $(srcdir) in \
b00612cc
PB
44101 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44102 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
44103 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44104 esac; \
1b6c0831 44105 module_srcdir=libffi; \
bba45b8b 44106 rm -f no-such-file || : ; \
1b6c0831
L
44107 CONFIG_SITE=no-such-file $(SHELL) \
44108 $$s/$$module_srcdir/configure \
44109 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44110 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44111 --target=${target_alias} \
bba45b8b 44112 || exit 1
6bd3dfaa 44113@endif target-libffi
e393202e 44114
a7254363
PB
44115
44116
d545f33b
PB
44117
44118
4fa63067
NN
44119.PHONY: all-target-libffi maybe-all-target-libffi
44120maybe-all-target-libffi:
4f0ef2d8
CD
44121@if gcc-bootstrap
44122all-target-libffi: stage_current
44123@endif gcc-bootstrap
6bd3dfaa 44124@if target-libffi
72b2455a 44125TARGET-target-libffi=all
6bd3dfaa 44126maybe-all-target-libffi: all-target-libffi
4fa63067 44127all-target-libffi: configure-target-libffi
0aed8855 44128 @: $(MAKE); $(unstage)
b40e3958
L
44129 @r=`${PWD_COMMAND}`; export r; \
44130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44131 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44132 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 44133 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44134 $(TARGET-target-libffi))
6bd3dfaa 44135@endif target-libffi
e393202e 44136
a7254363
PB
44137
44138
d545f33b
PB
44139
44140
4fa63067
NN
44141.PHONY: check-target-libffi maybe-check-target-libffi
44142maybe-check-target-libffi:
6bd3dfaa
PB
44143@if target-libffi
44144maybe-check-target-libffi: check-target-libffi
16ae0395 44145
4fa63067 44146check-target-libffi:
0aed8855 44147 @: $(MAKE); $(unstage)
b40e3958
L
44148 @r=`${PWD_COMMAND}`; export r; \
44149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44150 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44151 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 44152 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 44153
6bd3dfaa 44154@endif target-libffi
e393202e 44155
4fa63067
NN
44156.PHONY: install-target-libffi maybe-install-target-libffi
44157maybe-install-target-libffi:
6bd3dfaa
PB
44158@if target-libffi
44159maybe-install-target-libffi: install-target-libffi
16ae0395 44160
b836cb18
JBG
44161# Dummy target for uninstallable.
44162install-target-libffi:
e393202e 44163
6bd3dfaa 44164@endif target-libffi
e393202e 44165
9b980aa1
RW
44166.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
44167maybe-install-strip-target-libffi:
44168@if target-libffi
44169maybe-install-strip-target-libffi: install-strip-target-libffi
44170
b836cb18
JBG
44171# Dummy target for uninstallable.
44172install-strip-target-libffi:
9b980aa1
RW
44173
44174@endif target-libffi
44175
56a8fe78 44176# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
44177
44178.PHONY: maybe-info-target-libffi info-target-libffi
44179maybe-info-target-libffi:
6bd3dfaa
PB
44180@if target-libffi
44181maybe-info-target-libffi: info-target-libffi
4fa63067
NN
44182
44183info-target-libffi: \
44184 configure-target-libffi
0aed8855 44185 @: $(MAKE); $(unstage)
22121df0 44186 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44187 r=`${PWD_COMMAND}`; export r; \
44188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44189 $(NORMAL_TARGET_EXPORTS) \
22121df0 44190 echo "Doing info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44191 for flag in $(EXTRA_TARGET_FLAGS); do \
44192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44193 done; \
44194 (cd $(TARGET_SUBDIR)/libffi && \
44195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44197 "RANLIB=$${RANLIB}" \
0c24b341 44198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44199 info) \
4fa63067
NN
44200 || exit 1
44201
6bd3dfaa 44202@endif target-libffi
4fa63067
NN
44203
44204.PHONY: maybe-dvi-target-libffi dvi-target-libffi
44205maybe-dvi-target-libffi:
6bd3dfaa
PB
44206@if target-libffi
44207maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
44208
44209dvi-target-libffi: \
44210 configure-target-libffi
0aed8855 44211 @: $(MAKE); $(unstage)
22121df0 44212 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44213 r=`${PWD_COMMAND}`; export r; \
44214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44215 $(NORMAL_TARGET_EXPORTS) \
22121df0 44216 echo "Doing dvi in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44217 for flag in $(EXTRA_TARGET_FLAGS); do \
44218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44219 done; \
44220 (cd $(TARGET_SUBDIR)/libffi && \
44221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44223 "RANLIB=$${RANLIB}" \
0c24b341 44224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44225 dvi) \
4fa63067
NN
44226 || exit 1
44227
6bd3dfaa 44228@endif target-libffi
4fa63067 44229
56a8fe78
DD
44230.PHONY: maybe-pdf-target-libffi pdf-target-libffi
44231maybe-pdf-target-libffi:
44232@if target-libffi
44233maybe-pdf-target-libffi: pdf-target-libffi
44234
44235pdf-target-libffi: \
44236 configure-target-libffi
44237 @: $(MAKE); $(unstage)
22121df0 44238 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
56a8fe78
DD
44239 r=`${PWD_COMMAND}`; export r; \
44240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44241 $(NORMAL_TARGET_EXPORTS) \
22121df0 44242 echo "Doing pdf in $(TARGET_SUBDIR)/libffi"; \
56a8fe78
DD
44243 for flag in $(EXTRA_TARGET_FLAGS); do \
44244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44245 done; \
44246 (cd $(TARGET_SUBDIR)/libffi && \
44247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44249 "RANLIB=$${RANLIB}" \
0c24b341 44250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44251 pdf) \
44252 || exit 1
44253
44254@endif target-libffi
44255
6d389afc
MS
44256.PHONY: maybe-html-target-libffi html-target-libffi
44257maybe-html-target-libffi:
44258@if target-libffi
44259maybe-html-target-libffi: html-target-libffi
44260
44261html-target-libffi: \
44262 configure-target-libffi
0aed8855 44263 @: $(MAKE); $(unstage)
22121df0 44264 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
6d389afc
MS
44265 r=`${PWD_COMMAND}`; export r; \
44266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44267 $(NORMAL_TARGET_EXPORTS) \
22121df0 44268 echo "Doing html in $(TARGET_SUBDIR)/libffi"; \
6d389afc
MS
44269 for flag in $(EXTRA_TARGET_FLAGS); do \
44270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44271 done; \
44272 (cd $(TARGET_SUBDIR)/libffi && \
44273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44275 "RANLIB=$${RANLIB}" \
0c24b341 44276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44277 html) \
44278 || exit 1
44279
44280@endif target-libffi
44281
4fa63067
NN
44282.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
44283maybe-TAGS-target-libffi:
6bd3dfaa
PB
44284@if target-libffi
44285maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
44286
44287TAGS-target-libffi: \
44288 configure-target-libffi
0aed8855 44289 @: $(MAKE); $(unstage)
22121df0 44290 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44291 r=`${PWD_COMMAND}`; export r; \
44292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44293 $(NORMAL_TARGET_EXPORTS) \
22121df0 44294 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44295 for flag in $(EXTRA_TARGET_FLAGS); do \
44296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44297 done; \
44298 (cd $(TARGET_SUBDIR)/libffi && \
44299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44301 "RANLIB=$${RANLIB}" \
0c24b341 44302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44303 TAGS) \
4fa63067
NN
44304 || exit 1
44305
6bd3dfaa 44306@endif target-libffi
4fa63067
NN
44307
44308.PHONY: maybe-install-info-target-libffi install-info-target-libffi
44309maybe-install-info-target-libffi:
6bd3dfaa
PB
44310@if target-libffi
44311maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
44312
44313install-info-target-libffi: \
44314 configure-target-libffi \
44315 info-target-libffi
0aed8855 44316 @: $(MAKE); $(unstage)
22121df0 44317 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44318 r=`${PWD_COMMAND}`; export r; \
44319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44320 $(NORMAL_TARGET_EXPORTS) \
22121df0 44321 echo "Doing install-info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44322 for flag in $(EXTRA_TARGET_FLAGS); do \
44323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44324 done; \
44325 (cd $(TARGET_SUBDIR)/libffi && \
44326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44328 "RANLIB=$${RANLIB}" \
0c24b341 44329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44330 install-info) \
4fa63067
NN
44331 || exit 1
44332
6bd3dfaa 44333@endif target-libffi
4fa63067 44334
a3ca38d2
DD
44335.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
44336maybe-install-pdf-target-libffi:
44337@if target-libffi
44338maybe-install-pdf-target-libffi: install-pdf-target-libffi
44339
44340install-pdf-target-libffi: \
44341 configure-target-libffi \
44342 pdf-target-libffi
44343 @: $(MAKE); $(unstage)
22121df0 44344 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
a3ca38d2
DD
44345 r=`${PWD_COMMAND}`; export r; \
44346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44347 $(NORMAL_TARGET_EXPORTS) \
22121df0 44348 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi"; \
a3ca38d2
DD
44349 for flag in $(EXTRA_TARGET_FLAGS); do \
44350 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44351 done; \
44352 (cd $(TARGET_SUBDIR)/libffi && \
44353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44355 "RANLIB=$${RANLIB}" \
0c24b341 44356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44357 install-pdf) \
44358 || exit 1
44359
44360@endif target-libffi
44361
108a6f8e
CD
44362.PHONY: maybe-install-html-target-libffi install-html-target-libffi
44363maybe-install-html-target-libffi:
44364@if target-libffi
44365maybe-install-html-target-libffi: install-html-target-libffi
44366
44367install-html-target-libffi: \
44368 configure-target-libffi \
44369 html-target-libffi
44370 @: $(MAKE); $(unstage)
22121df0 44371 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
108a6f8e
CD
44372 r=`${PWD_COMMAND}`; export r; \
44373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44374 $(NORMAL_TARGET_EXPORTS) \
22121df0 44375 echo "Doing install-html in $(TARGET_SUBDIR)/libffi"; \
108a6f8e
CD
44376 for flag in $(EXTRA_TARGET_FLAGS); do \
44377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44378 done; \
44379 (cd $(TARGET_SUBDIR)/libffi && \
44380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44382 "RANLIB=$${RANLIB}" \
0c24b341 44383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44384 install-html) \
44385 || exit 1
44386
44387@endif target-libffi
44388
4fa63067
NN
44389.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
44390maybe-installcheck-target-libffi:
6bd3dfaa
PB
44391@if target-libffi
44392maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
44393
44394installcheck-target-libffi: \
44395 configure-target-libffi
0aed8855 44396 @: $(MAKE); $(unstage)
22121df0 44397 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44398 r=`${PWD_COMMAND}`; export r; \
44399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44400 $(NORMAL_TARGET_EXPORTS) \
22121df0 44401 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44402 for flag in $(EXTRA_TARGET_FLAGS); do \
44403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44404 done; \
44405 (cd $(TARGET_SUBDIR)/libffi && \
44406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44408 "RANLIB=$${RANLIB}" \
0c24b341 44409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44410 installcheck) \
4fa63067
NN
44411 || exit 1
44412
6bd3dfaa 44413@endif target-libffi
4fa63067
NN
44414
44415.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
44416maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
44417@if target-libffi
44418maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
44419
44420mostlyclean-target-libffi:
0aed8855 44421 @: $(MAKE); $(unstage)
22121df0 44422 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44423 r=`${PWD_COMMAND}`; export r; \
44424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44425 $(NORMAL_TARGET_EXPORTS) \
22121df0 44426 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44427 for flag in $(EXTRA_TARGET_FLAGS); do \
44428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44429 done; \
44430 (cd $(TARGET_SUBDIR)/libffi && \
44431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44433 "RANLIB=$${RANLIB}" \
0c24b341 44434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44435 mostlyclean) \
4fa63067
NN
44436 || exit 1
44437
6bd3dfaa 44438@endif target-libffi
4fa63067
NN
44439
44440.PHONY: maybe-clean-target-libffi clean-target-libffi
44441maybe-clean-target-libffi:
6bd3dfaa
PB
44442@if target-libffi
44443maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
44444
44445clean-target-libffi:
0aed8855 44446 @: $(MAKE); $(unstage)
22121df0 44447 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44448 r=`${PWD_COMMAND}`; export r; \
44449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44450 $(NORMAL_TARGET_EXPORTS) \
22121df0 44451 echo "Doing clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44452 for flag in $(EXTRA_TARGET_FLAGS); do \
44453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44454 done; \
44455 (cd $(TARGET_SUBDIR)/libffi && \
44456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44458 "RANLIB=$${RANLIB}" \
0c24b341 44459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44460 clean) \
4fa63067
NN
44461 || exit 1
44462
6bd3dfaa 44463@endif target-libffi
4fa63067
NN
44464
44465.PHONY: maybe-distclean-target-libffi distclean-target-libffi
44466maybe-distclean-target-libffi:
6bd3dfaa
PB
44467@if target-libffi
44468maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
44469
44470distclean-target-libffi:
0aed8855 44471 @: $(MAKE); $(unstage)
22121df0 44472 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44473 r=`${PWD_COMMAND}`; export r; \
44474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44475 $(NORMAL_TARGET_EXPORTS) \
22121df0 44476 echo "Doing distclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44477 for flag in $(EXTRA_TARGET_FLAGS); do \
44478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44479 done; \
44480 (cd $(TARGET_SUBDIR)/libffi && \
44481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44483 "RANLIB=$${RANLIB}" \
0c24b341 44484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44485 distclean) \
4fa63067
NN
44486 || exit 1
44487
6bd3dfaa 44488@endif target-libffi
4fa63067
NN
44489
44490.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
44491maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
44492@if target-libffi
44493maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
44494
44495maintainer-clean-target-libffi:
0aed8855 44496 @: $(MAKE); $(unstage)
22121df0 44497 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44498 r=`${PWD_COMMAND}`; export r; \
44499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44500 $(NORMAL_TARGET_EXPORTS) \
22121df0 44501 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44502 for flag in $(EXTRA_TARGET_FLAGS); do \
44503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44504 done; \
44505 (cd $(TARGET_SUBDIR)/libffi && \
44506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44508 "RANLIB=$${RANLIB}" \
0c24b341 44509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44510 maintainer-clean) \
4fa63067
NN
44511 || exit 1
44512
6bd3dfaa 44513@endif target-libffi
4fa63067
NN
44514
44515
15723a45 44516
a7254363 44517
15723a45 44518
a7254363
PB
44519.PHONY: configure-target-zlib maybe-configure-target-zlib
44520maybe-configure-target-zlib:
4f0ef2d8
CD
44521@if gcc-bootstrap
44522configure-target-zlib: stage_current
44523@endif gcc-bootstrap
a7254363
PB
44524@if target-zlib
44525maybe-configure-target-zlib: configure-target-zlib
c52c6897 44526configure-target-zlib:
0aed8855
PB
44527 @: $(MAKE); $(unstage)
44528 @r=`${PWD_COMMAND}`; export r; \
44529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44530 echo "Checking multilib configuration for zlib..."; \
22121df0
L
44531 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
44532 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null; \
0aed8855
PB
44533 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
44534 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
44535 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
44536 else \
44537 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
44538 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
44539 fi; \
44540 else \
44541 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
44542 fi; \
44543 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 44544 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
1f53ca9a 44545 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44546 echo Configuring in $(TARGET_SUBDIR)/zlib; \
44547 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 44548 case $(srcdir) in \
b00612cc
PB
44549 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44550 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
44551 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44552 esac; \
1b6c0831 44553 module_srcdir=zlib; \
bba45b8b 44554 rm -f no-such-file || : ; \
1b6c0831
L
44555 CONFIG_SITE=no-such-file $(SHELL) \
44556 $$s/$$module_srcdir/configure \
44557 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44558 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44559 --target=${target_alias} \
bba45b8b 44560 || exit 1
6bd3dfaa 44561@endif target-zlib
e393202e 44562
a7254363
PB
44563
44564
d545f33b
PB
44565
44566
4fa63067
NN
44567.PHONY: all-target-zlib maybe-all-target-zlib
44568maybe-all-target-zlib:
4f0ef2d8
CD
44569@if gcc-bootstrap
44570all-target-zlib: stage_current
44571@endif gcc-bootstrap
6bd3dfaa 44572@if target-zlib
72b2455a 44573TARGET-target-zlib=all
6bd3dfaa 44574maybe-all-target-zlib: all-target-zlib
4fa63067 44575all-target-zlib: configure-target-zlib
0aed8855 44576 @: $(MAKE); $(unstage)
b40e3958
L
44577 @r=`${PWD_COMMAND}`; export r; \
44578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44579 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44580 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 44581 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44582 $(TARGET-target-zlib))
6bd3dfaa 44583@endif target-zlib
e393202e 44584
a7254363
PB
44585
44586
d545f33b
PB
44587
44588
4fa63067
NN
44589.PHONY: check-target-zlib maybe-check-target-zlib
44590maybe-check-target-zlib:
6bd3dfaa
PB
44591@if target-zlib
44592maybe-check-target-zlib: check-target-zlib
16ae0395 44593
4fa63067 44594check-target-zlib:
0aed8855 44595 @: $(MAKE); $(unstage)
b40e3958
L
44596 @r=`${PWD_COMMAND}`; export r; \
44597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44598 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44599 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 44600 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 44601
6bd3dfaa 44602@endif target-zlib
930314a4 44603
4fa63067
NN
44604.PHONY: install-target-zlib maybe-install-target-zlib
44605maybe-install-target-zlib:
6bd3dfaa
PB
44606@if target-zlib
44607maybe-install-target-zlib: install-target-zlib
16ae0395 44608
4fa63067 44609install-target-zlib: installdirs
0aed8855 44610 @: $(MAKE); $(unstage)
b40e3958
L
44611 @r=`${PWD_COMMAND}`; export r; \
44612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44613 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44614 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 44615 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44616
6bd3dfaa 44617@endif target-zlib
e393202e 44618
9b980aa1
RW
44619.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
44620maybe-install-strip-target-zlib:
44621@if target-zlib
44622maybe-install-strip-target-zlib: install-strip-target-zlib
44623
44624install-strip-target-zlib: installdirs
44625 @: $(MAKE); $(unstage)
44626 @r=`${PWD_COMMAND}`; export r; \
44627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44628 $(NORMAL_TARGET_EXPORTS) \
44629 (cd $(TARGET_SUBDIR)/zlib && \
44630 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44631
44632@endif target-zlib
44633
56a8fe78 44634# Other targets (info, dvi, pdf, etc.)
15723a45 44635
4fa63067
NN
44636.PHONY: maybe-info-target-zlib info-target-zlib
44637maybe-info-target-zlib:
6bd3dfaa
PB
44638@if target-zlib
44639maybe-info-target-zlib: info-target-zlib
15723a45 44640
4fa63067
NN
44641info-target-zlib: \
44642 configure-target-zlib
0aed8855 44643 @: $(MAKE); $(unstage)
22121df0 44644 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44645 r=`${PWD_COMMAND}`; export r; \
44646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44647 $(NORMAL_TARGET_EXPORTS) \
22121df0 44648 echo "Doing info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44649 for flag in $(EXTRA_TARGET_FLAGS); do \
44650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44651 done; \
44652 (cd $(TARGET_SUBDIR)/zlib && \
44653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44655 "RANLIB=$${RANLIB}" \
0c24b341 44656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44657 info) \
bba45b8b 44658 || exit 1
e393202e 44659
6bd3dfaa 44660@endif target-zlib
e393202e 44661
4fa63067
NN
44662.PHONY: maybe-dvi-target-zlib dvi-target-zlib
44663maybe-dvi-target-zlib:
6bd3dfaa
PB
44664@if target-zlib
44665maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 44666
4fa63067
NN
44667dvi-target-zlib: \
44668 configure-target-zlib
0aed8855 44669 @: $(MAKE); $(unstage)
22121df0 44670 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44671 r=`${PWD_COMMAND}`; export r; \
b40e3958 44672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44673 $(NORMAL_TARGET_EXPORTS) \
22121df0 44674 echo "Doing dvi in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44675 for flag in $(EXTRA_TARGET_FLAGS); do \
44676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44677 done; \
44678 (cd $(TARGET_SUBDIR)/zlib && \
44679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44681 "RANLIB=$${RANLIB}" \
0c24b341 44682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44683 dvi) \
4fa63067 44684 || exit 1
e393202e 44685
6bd3dfaa 44686@endif target-zlib
930314a4 44687
56a8fe78
DD
44688.PHONY: maybe-pdf-target-zlib pdf-target-zlib
44689maybe-pdf-target-zlib:
44690@if target-zlib
44691maybe-pdf-target-zlib: pdf-target-zlib
44692
44693pdf-target-zlib: \
44694 configure-target-zlib
44695 @: $(MAKE); $(unstage)
22121df0 44696 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
56a8fe78
DD
44697 r=`${PWD_COMMAND}`; export r; \
44698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44699 $(NORMAL_TARGET_EXPORTS) \
22121df0 44700 echo "Doing pdf in $(TARGET_SUBDIR)/zlib"; \
56a8fe78
DD
44701 for flag in $(EXTRA_TARGET_FLAGS); do \
44702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44703 done; \
44704 (cd $(TARGET_SUBDIR)/zlib && \
44705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44707 "RANLIB=$${RANLIB}" \
0c24b341 44708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44709 pdf) \
44710 || exit 1
44711
44712@endif target-zlib
44713
6d389afc
MS
44714.PHONY: maybe-html-target-zlib html-target-zlib
44715maybe-html-target-zlib:
44716@if target-zlib
44717maybe-html-target-zlib: html-target-zlib
44718
44719html-target-zlib: \
44720 configure-target-zlib
0aed8855 44721 @: $(MAKE); $(unstage)
22121df0 44722 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
6d389afc
MS
44723 r=`${PWD_COMMAND}`; export r; \
44724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44725 $(NORMAL_TARGET_EXPORTS) \
22121df0 44726 echo "Doing html in $(TARGET_SUBDIR)/zlib"; \
6d389afc
MS
44727 for flag in $(EXTRA_TARGET_FLAGS); do \
44728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44729 done; \
44730 (cd $(TARGET_SUBDIR)/zlib && \
44731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44733 "RANLIB=$${RANLIB}" \
0c24b341 44734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44735 html) \
44736 || exit 1
44737
44738@endif target-zlib
44739
4fa63067
NN
44740.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
44741maybe-TAGS-target-zlib:
6bd3dfaa
PB
44742@if target-zlib
44743maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 44744
4fa63067
NN
44745TAGS-target-zlib: \
44746 configure-target-zlib
0aed8855 44747 @: $(MAKE); $(unstage)
22121df0 44748 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44749 r=`${PWD_COMMAND}`; export r; \
b40e3958 44750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44751 $(NORMAL_TARGET_EXPORTS) \
22121df0 44752 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44753 for flag in $(EXTRA_TARGET_FLAGS); do \
44754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44755 done; \
44756 (cd $(TARGET_SUBDIR)/zlib && \
44757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44759 "RANLIB=$${RANLIB}" \
0c24b341 44760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44761 TAGS) \
4fa63067 44762 || exit 1
e393202e 44763
6bd3dfaa 44764@endif target-zlib
15723a45 44765
4fa63067
NN
44766.PHONY: maybe-install-info-target-zlib install-info-target-zlib
44767maybe-install-info-target-zlib:
6bd3dfaa
PB
44768@if target-zlib
44769maybe-install-info-target-zlib: install-info-target-zlib
15723a45 44770
4fa63067
NN
44771install-info-target-zlib: \
44772 configure-target-zlib \
44773 info-target-zlib
0aed8855 44774 @: $(MAKE); $(unstage)
22121df0 44775 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44776 r=`${PWD_COMMAND}`; export r; \
44777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44778 $(NORMAL_TARGET_EXPORTS) \
22121df0 44779 echo "Doing install-info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44780 for flag in $(EXTRA_TARGET_FLAGS); do \
44781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44782 done; \
44783 (cd $(TARGET_SUBDIR)/zlib && \
44784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44786 "RANLIB=$${RANLIB}" \
0c24b341 44787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44788 install-info) \
bba45b8b 44789 || exit 1
e393202e 44790
6bd3dfaa 44791@endif target-zlib
16ae0395 44792
a3ca38d2
DD
44793.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
44794maybe-install-pdf-target-zlib:
44795@if target-zlib
44796maybe-install-pdf-target-zlib: install-pdf-target-zlib
44797
44798install-pdf-target-zlib: \
44799 configure-target-zlib \
44800 pdf-target-zlib
44801 @: $(MAKE); $(unstage)
22121df0 44802 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
a3ca38d2
DD
44803 r=`${PWD_COMMAND}`; export r; \
44804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44805 $(NORMAL_TARGET_EXPORTS) \
22121df0 44806 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib"; \
a3ca38d2
DD
44807 for flag in $(EXTRA_TARGET_FLAGS); do \
44808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44809 done; \
44810 (cd $(TARGET_SUBDIR)/zlib && \
44811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44813 "RANLIB=$${RANLIB}" \
0c24b341 44814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44815 install-pdf) \
44816 || exit 1
44817
44818@endif target-zlib
44819
108a6f8e
CD
44820.PHONY: maybe-install-html-target-zlib install-html-target-zlib
44821maybe-install-html-target-zlib:
44822@if target-zlib
44823maybe-install-html-target-zlib: install-html-target-zlib
44824
44825install-html-target-zlib: \
44826 configure-target-zlib \
44827 html-target-zlib
44828 @: $(MAKE); $(unstage)
22121df0 44829 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
108a6f8e
CD
44830 r=`${PWD_COMMAND}`; export r; \
44831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44832 $(NORMAL_TARGET_EXPORTS) \
22121df0 44833 echo "Doing install-html in $(TARGET_SUBDIR)/zlib"; \
108a6f8e
CD
44834 for flag in $(EXTRA_TARGET_FLAGS); do \
44835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44836 done; \
44837 (cd $(TARGET_SUBDIR)/zlib && \
44838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44840 "RANLIB=$${RANLIB}" \
0c24b341 44841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44842 install-html) \
44843 || exit 1
44844
44845@endif target-zlib
44846
4fa63067
NN
44847.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
44848maybe-installcheck-target-zlib:
6bd3dfaa
PB
44849@if target-zlib
44850maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 44851
4fa63067
NN
44852installcheck-target-zlib: \
44853 configure-target-zlib
0aed8855 44854 @: $(MAKE); $(unstage)
22121df0 44855 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
44856 r=`${PWD_COMMAND}`; export r; \
44857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44858 $(NORMAL_TARGET_EXPORTS) \
22121df0 44859 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44860 for flag in $(EXTRA_TARGET_FLAGS); do \
44861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44862 done; \
44863 (cd $(TARGET_SUBDIR)/zlib && \
44864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44866 "RANLIB=$${RANLIB}" \
0c24b341 44867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44868 installcheck) \
4fa63067 44869 || exit 1
e393202e 44870
6bd3dfaa 44871@endif target-zlib
16ae0395 44872
4fa63067
NN
44873.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
44874maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
44875@if target-zlib
44876maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 44877
4fa63067 44878mostlyclean-target-zlib:
0aed8855 44879 @: $(MAKE); $(unstage)
22121df0 44880 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
44881 r=`${PWD_COMMAND}`; export r; \
44882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44883 $(NORMAL_TARGET_EXPORTS) \
22121df0 44884 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44885 for flag in $(EXTRA_TARGET_FLAGS); do \
44886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44887 done; \
44888 (cd $(TARGET_SUBDIR)/zlib && \
44889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44891 "RANLIB=$${RANLIB}" \
0c24b341 44892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44893 mostlyclean) \
4fa63067 44894 || exit 1
e393202e 44895
6bd3dfaa 44896@endif target-zlib
15723a45 44897
4fa63067
NN
44898.PHONY: maybe-clean-target-zlib clean-target-zlib
44899maybe-clean-target-zlib:
6bd3dfaa
PB
44900@if target-zlib
44901maybe-clean-target-zlib: clean-target-zlib
15723a45 44902
4fa63067 44903clean-target-zlib:
0aed8855 44904 @: $(MAKE); $(unstage)
22121df0 44905 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
44906 r=`${PWD_COMMAND}`; export r; \
44907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44908 $(NORMAL_TARGET_EXPORTS) \
22121df0 44909 echo "Doing clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44910 for flag in $(EXTRA_TARGET_FLAGS); do \
44911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44912 done; \
44913 (cd $(TARGET_SUBDIR)/zlib && \
44914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44916 "RANLIB=$${RANLIB}" \
0c24b341 44917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44918 clean) \
bba45b8b 44919 || exit 1
e393202e 44920
6bd3dfaa 44921@endif target-zlib
e393202e 44922
4fa63067
NN
44923.PHONY: maybe-distclean-target-zlib distclean-target-zlib
44924maybe-distclean-target-zlib:
6bd3dfaa
PB
44925@if target-zlib
44926maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 44927
4fa63067 44928distclean-target-zlib:
0aed8855 44929 @: $(MAKE); $(unstage)
22121df0 44930 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44931 r=`${PWD_COMMAND}`; export r; \
b40e3958 44932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44933 $(NORMAL_TARGET_EXPORTS) \
22121df0 44934 echo "Doing distclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44935 for flag in $(EXTRA_TARGET_FLAGS); do \
44936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44937 done; \
44938 (cd $(TARGET_SUBDIR)/zlib && \
44939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44941 "RANLIB=$${RANLIB}" \
0c24b341 44942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44943 distclean) \
4fa63067 44944 || exit 1
e393202e 44945
6bd3dfaa 44946@endif target-zlib
e393202e 44947
4fa63067
NN
44948.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
44949maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
44950@if target-zlib
44951maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 44952
4fa63067 44953maintainer-clean-target-zlib:
0aed8855 44954 @: $(MAKE); $(unstage)
22121df0 44955 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 44956 r=`${PWD_COMMAND}`; export r; \
b40e3958 44957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44958 $(NORMAL_TARGET_EXPORTS) \
22121df0 44959 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
44960 for flag in $(EXTRA_TARGET_FLAGS); do \
44961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44962 done; \
44963 (cd $(TARGET_SUBDIR)/zlib && \
44964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44966 "RANLIB=$${RANLIB}" \
0c24b341 44967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44968 maintainer-clean) \
4fa63067 44969 || exit 1
e393202e 44970
6bd3dfaa 44971@endif target-zlib
930314a4 44972
4fa63067 44973
15723a45 44974
a7254363 44975
e90269c8 44976
a7254363
PB
44977.PHONY: configure-target-rda maybe-configure-target-rda
44978maybe-configure-target-rda:
4f0ef2d8
CD
44979@if gcc-bootstrap
44980configure-target-rda: stage_current
44981@endif gcc-bootstrap
a7254363
PB
44982@if target-rda
44983maybe-configure-target-rda: configure-target-rda
c52c6897 44984configure-target-rda:
0aed8855
PB
44985 @: $(MAKE); $(unstage)
44986 @r=`${PWD_COMMAND}`; export r; \
44987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44988 echo "Checking multilib configuration for rda..."; \
22121df0
L
44989 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
44990 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null; \
0aed8855
PB
44991 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
44992 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
44993 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
44994 else \
44995 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
44996 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
44997 fi; \
44998 else \
44999 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
45000 fi; \
45001 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
22121df0 45002 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
1f53ca9a 45003 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45004 echo Configuring in $(TARGET_SUBDIR)/rda; \
45005 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 45006 case $(srcdir) in \
b00612cc
PB
45007 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45008 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
45009 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45010 esac; \
1b6c0831 45011 module_srcdir=rda; \
bba45b8b 45012 rm -f no-such-file || : ; \
1b6c0831
L
45013 CONFIG_SITE=no-such-file $(SHELL) \
45014 $$s/$$module_srcdir/configure \
45015 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45016 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45017 --target=${target_alias} \
bba45b8b 45018 || exit 1
6bd3dfaa 45019@endif target-rda
49b7683b 45020
a7254363
PB
45021
45022
d545f33b
PB
45023
45024
4fa63067
NN
45025.PHONY: all-target-rda maybe-all-target-rda
45026maybe-all-target-rda:
4f0ef2d8
CD
45027@if gcc-bootstrap
45028all-target-rda: stage_current
45029@endif gcc-bootstrap
6bd3dfaa 45030@if target-rda
72b2455a 45031TARGET-target-rda=all
6bd3dfaa 45032maybe-all-target-rda: all-target-rda
4fa63067 45033all-target-rda: configure-target-rda
0aed8855 45034 @: $(MAKE); $(unstage)
b40e3958
L
45035 @r=`${PWD_COMMAND}`; export r; \
45036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45037 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45038 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 45039 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45040 $(TARGET-target-rda))
6bd3dfaa 45041@endif target-rda
252b5132 45042
a7254363
PB
45043
45044
d545f33b
PB
45045
45046
4fa63067
NN
45047.PHONY: check-target-rda maybe-check-target-rda
45048maybe-check-target-rda:
6bd3dfaa
PB
45049@if target-rda
45050maybe-check-target-rda: check-target-rda
16ae0395 45051
4fa63067 45052check-target-rda:
0aed8855 45053 @: $(MAKE); $(unstage)
b40e3958
L
45054 @r=`${PWD_COMMAND}`; export r; \
45055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45056 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45057 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 45058 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 45059
6bd3dfaa 45060@endif target-rda
930314a4 45061
4fa63067
NN
45062.PHONY: install-target-rda maybe-install-target-rda
45063maybe-install-target-rda:
6bd3dfaa
PB
45064@if target-rda
45065maybe-install-target-rda: install-target-rda
16ae0395 45066
4fa63067 45067install-target-rda: installdirs
0aed8855 45068 @: $(MAKE); $(unstage)
b40e3958
L
45069 @r=`${PWD_COMMAND}`; export r; \
45070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45071 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45072 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 45073 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 45074
6bd3dfaa 45075@endif target-rda
e393202e 45076
9b980aa1
RW
45077.PHONY: install-strip-target-rda maybe-install-strip-target-rda
45078maybe-install-strip-target-rda:
45079@if target-rda
45080maybe-install-strip-target-rda: install-strip-target-rda
45081
45082install-strip-target-rda: installdirs
45083 @: $(MAKE); $(unstage)
45084 @r=`${PWD_COMMAND}`; export r; \
45085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45086 $(NORMAL_TARGET_EXPORTS) \
45087 (cd $(TARGET_SUBDIR)/rda && \
45088 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45089
45090@endif target-rda
45091
56a8fe78 45092# Other targets (info, dvi, pdf, etc.)
15723a45 45093
4fa63067
NN
45094.PHONY: maybe-info-target-rda info-target-rda
45095maybe-info-target-rda:
6bd3dfaa
PB
45096@if target-rda
45097maybe-info-target-rda: info-target-rda
15723a45 45098
4fa63067
NN
45099info-target-rda: \
45100 configure-target-rda
0aed8855 45101 @: $(MAKE); $(unstage)
22121df0 45102 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
45103 r=`${PWD_COMMAND}`; export r; \
45104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45105 $(NORMAL_TARGET_EXPORTS) \
22121df0 45106 echo "Doing info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45107 for flag in $(EXTRA_TARGET_FLAGS); do \
45108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45109 done; \
45110 (cd $(TARGET_SUBDIR)/rda && \
45111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45113 "RANLIB=$${RANLIB}" \
0c24b341 45114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45115 info) \
bba45b8b 45116 || exit 1
252b5132 45117
6bd3dfaa 45118@endif target-rda
4fa63067
NN
45119
45120.PHONY: maybe-dvi-target-rda dvi-target-rda
45121maybe-dvi-target-rda:
6bd3dfaa
PB
45122@if target-rda
45123maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
45124
45125dvi-target-rda: \
45126 configure-target-rda
0aed8855 45127 @: $(MAKE); $(unstage)
22121df0 45128 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45129 r=`${PWD_COMMAND}`; export r; \
b40e3958 45130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45131 $(NORMAL_TARGET_EXPORTS) \
22121df0 45132 echo "Doing dvi in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45133 for flag in $(EXTRA_TARGET_FLAGS); do \
45134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45135 done; \
45136 (cd $(TARGET_SUBDIR)/rda && \
45137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45139 "RANLIB=$${RANLIB}" \
0c24b341 45140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45141 dvi) \
4fa63067 45142 || exit 1
252b5132 45143
6bd3dfaa 45144@endif target-rda
16ae0395 45145
56a8fe78
DD
45146.PHONY: maybe-pdf-target-rda pdf-target-rda
45147maybe-pdf-target-rda:
45148@if target-rda
45149maybe-pdf-target-rda: pdf-target-rda
45150
45151pdf-target-rda: \
45152 configure-target-rda
45153 @: $(MAKE); $(unstage)
22121df0 45154 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
56a8fe78
DD
45155 r=`${PWD_COMMAND}`; export r; \
45156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45157 $(NORMAL_TARGET_EXPORTS) \
22121df0 45158 echo "Doing pdf in $(TARGET_SUBDIR)/rda"; \
56a8fe78
DD
45159 for flag in $(EXTRA_TARGET_FLAGS); do \
45160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45161 done; \
45162 (cd $(TARGET_SUBDIR)/rda && \
45163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45165 "RANLIB=$${RANLIB}" \
0c24b341 45166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45167 pdf) \
45168 || exit 1
45169
45170@endif target-rda
45171
6d389afc
MS
45172.PHONY: maybe-html-target-rda html-target-rda
45173maybe-html-target-rda:
45174@if target-rda
45175maybe-html-target-rda: html-target-rda
45176
45177html-target-rda: \
45178 configure-target-rda
0aed8855 45179 @: $(MAKE); $(unstage)
22121df0 45180 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
6d389afc
MS
45181 r=`${PWD_COMMAND}`; export r; \
45182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45183 $(NORMAL_TARGET_EXPORTS) \
22121df0 45184 echo "Doing html in $(TARGET_SUBDIR)/rda"; \
6d389afc
MS
45185 for flag in $(EXTRA_TARGET_FLAGS); do \
45186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45187 done; \
45188 (cd $(TARGET_SUBDIR)/rda && \
45189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45191 "RANLIB=$${RANLIB}" \
0c24b341 45192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45193 html) \
45194 || exit 1
45195
45196@endif target-rda
45197
4fa63067
NN
45198.PHONY: maybe-TAGS-target-rda TAGS-target-rda
45199maybe-TAGS-target-rda:
6bd3dfaa
PB
45200@if target-rda
45201maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
45202
45203TAGS-target-rda: \
45204 configure-target-rda
0aed8855 45205 @: $(MAKE); $(unstage)
22121df0 45206 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45207 r=`${PWD_COMMAND}`; export r; \
b40e3958 45208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45209 $(NORMAL_TARGET_EXPORTS) \
22121df0 45210 echo "Doing TAGS in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45211 for flag in $(EXTRA_TARGET_FLAGS); do \
45212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45213 done; \
45214 (cd $(TARGET_SUBDIR)/rda && \
45215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45217 "RANLIB=$${RANLIB}" \
0c24b341 45218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45219 TAGS) \
4fa63067 45220 || exit 1
e393202e 45221
6bd3dfaa 45222@endif target-rda
930314a4 45223
4fa63067
NN
45224.PHONY: maybe-install-info-target-rda install-info-target-rda
45225maybe-install-info-target-rda:
6bd3dfaa
PB
45226@if target-rda
45227maybe-install-info-target-rda: install-info-target-rda
16ae0395 45228
4fa63067
NN
45229install-info-target-rda: \
45230 configure-target-rda \
45231 info-target-rda
0aed8855 45232 @: $(MAKE); $(unstage)
22121df0 45233 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45234 r=`${PWD_COMMAND}`; export r; \
b40e3958 45235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45236 $(NORMAL_TARGET_EXPORTS) \
22121df0 45237 echo "Doing install-info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45238 for flag in $(EXTRA_TARGET_FLAGS); do \
45239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45240 done; \
45241 (cd $(TARGET_SUBDIR)/rda && \
45242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45244 "RANLIB=$${RANLIB}" \
0c24b341 45245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45246 install-info) \
4fa63067 45247 || exit 1
252b5132 45248
6bd3dfaa 45249@endif target-rda
e393202e 45250
a3ca38d2
DD
45251.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
45252maybe-install-pdf-target-rda:
45253@if target-rda
45254maybe-install-pdf-target-rda: install-pdf-target-rda
45255
45256install-pdf-target-rda: \
45257 configure-target-rda \
45258 pdf-target-rda
45259 @: $(MAKE); $(unstage)
22121df0 45260 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
a3ca38d2
DD
45261 r=`${PWD_COMMAND}`; export r; \
45262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45263 $(NORMAL_TARGET_EXPORTS) \
22121df0 45264 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda"; \
a3ca38d2
DD
45265 for flag in $(EXTRA_TARGET_FLAGS); do \
45266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45267 done; \
45268 (cd $(TARGET_SUBDIR)/rda && \
45269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45271 "RANLIB=$${RANLIB}" \
0c24b341 45272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45273 install-pdf) \
45274 || exit 1
45275
45276@endif target-rda
45277
108a6f8e
CD
45278.PHONY: maybe-install-html-target-rda install-html-target-rda
45279maybe-install-html-target-rda:
45280@if target-rda
45281maybe-install-html-target-rda: install-html-target-rda
45282
45283install-html-target-rda: \
45284 configure-target-rda \
45285 html-target-rda
45286 @: $(MAKE); $(unstage)
22121df0 45287 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
108a6f8e
CD
45288 r=`${PWD_COMMAND}`; export r; \
45289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45290 $(NORMAL_TARGET_EXPORTS) \
22121df0 45291 echo "Doing install-html in $(TARGET_SUBDIR)/rda"; \
108a6f8e
CD
45292 for flag in $(EXTRA_TARGET_FLAGS); do \
45293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45294 done; \
45295 (cd $(TARGET_SUBDIR)/rda && \
45296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45298 "RANLIB=$${RANLIB}" \
0c24b341 45299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45300 install-html) \
45301 || exit 1
45302
45303@endif target-rda
45304
4fa63067
NN
45305.PHONY: maybe-installcheck-target-rda installcheck-target-rda
45306maybe-installcheck-target-rda:
6bd3dfaa
PB
45307@if target-rda
45308maybe-installcheck-target-rda: installcheck-target-rda
15723a45 45309
4fa63067
NN
45310installcheck-target-rda: \
45311 configure-target-rda
0aed8855 45312 @: $(MAKE); $(unstage)
22121df0 45313 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067
NN
45314 r=`${PWD_COMMAND}`; export r; \
45315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45316 $(NORMAL_TARGET_EXPORTS) \
22121df0 45317 echo "Doing installcheck in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45318 for flag in $(EXTRA_TARGET_FLAGS); do \
45319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45320 done; \
45321 (cd $(TARGET_SUBDIR)/rda && \
45322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45324 "RANLIB=$${RANLIB}" \
0c24b341 45325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45326 installcheck) \
4fa63067 45327 || exit 1
15723a45 45328
6bd3dfaa 45329@endif target-rda
4fa63067
NN
45330
45331.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
45332maybe-mostlyclean-target-rda:
6bd3dfaa
PB
45333@if target-rda
45334maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
45335
45336mostlyclean-target-rda:
0aed8855 45337 @: $(MAKE); $(unstage)
22121df0 45338 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
45339 r=`${PWD_COMMAND}`; export r; \
45340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45341 $(NORMAL_TARGET_EXPORTS) \
22121df0 45342 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45343 for flag in $(EXTRA_TARGET_FLAGS); do \
45344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45345 done; \
45346 (cd $(TARGET_SUBDIR)/rda && \
45347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45349 "RANLIB=$${RANLIB}" \
0c24b341 45350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45351 mostlyclean) \
bba45b8b 45352 || exit 1
252b5132 45353
6bd3dfaa 45354@endif target-rda
4fa63067
NN
45355
45356.PHONY: maybe-clean-target-rda clean-target-rda
45357maybe-clean-target-rda:
6bd3dfaa
PB
45358@if target-rda
45359maybe-clean-target-rda: clean-target-rda
4fa63067
NN
45360
45361clean-target-rda:
0aed8855 45362 @: $(MAKE); $(unstage)
22121df0 45363 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45364 r=`${PWD_COMMAND}`; export r; \
b40e3958 45365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45366 $(NORMAL_TARGET_EXPORTS) \
22121df0 45367 echo "Doing clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45368 for flag in $(EXTRA_TARGET_FLAGS); do \
45369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45370 done; \
bba45b8b 45371 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45374 "RANLIB=$${RANLIB}" \
0c24b341 45375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45376 clean) \
4fa63067 45377 || exit 1
252b5132 45378
6bd3dfaa 45379@endif target-rda
16ae0395 45380
4fa63067
NN
45381.PHONY: maybe-distclean-target-rda distclean-target-rda
45382maybe-distclean-target-rda:
6bd3dfaa
PB
45383@if target-rda
45384maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
45385
45386distclean-target-rda:
0aed8855 45387 @: $(MAKE); $(unstage)
22121df0 45388 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45389 r=`${PWD_COMMAND}`; export r; \
b40e3958 45390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45391 $(NORMAL_TARGET_EXPORTS) \
22121df0 45392 echo "Doing distclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45393 for flag in $(EXTRA_TARGET_FLAGS); do \
45394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45395 done; \
bba45b8b 45396 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45399 "RANLIB=$${RANLIB}" \
0c24b341 45400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45401 distclean) \
4fa63067 45402 || exit 1
252b5132 45403
6bd3dfaa 45404@endif target-rda
930314a4 45405
4fa63067
NN
45406.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
45407maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
45408@if target-rda
45409maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 45410
4fa63067 45411maintainer-clean-target-rda:
0aed8855 45412 @: $(MAKE); $(unstage)
22121df0 45413 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45414 r=`${PWD_COMMAND}`; export r; \
b40e3958 45415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45416 $(NORMAL_TARGET_EXPORTS) \
22121df0 45417 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45418 for flag in $(EXTRA_TARGET_FLAGS); do \
45419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45420 done; \
bba45b8b 45421 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45424 "RANLIB=$${RANLIB}" \
0c24b341 45425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45426 maintainer-clean) \
4fa63067
NN
45427 || exit 1
45428
6bd3dfaa 45429@endif target-rda
252b5132 45430
e393202e 45431
a2592b1b 45432
a7254363
PB
45433
45434
45435.PHONY: configure-target-libada maybe-configure-target-libada
45436maybe-configure-target-libada:
4f0ef2d8
CD
45437@if gcc-bootstrap
45438configure-target-libada: stage_current
45439@endif gcc-bootstrap
a7254363
PB
45440@if target-libada
45441maybe-configure-target-libada: configure-target-libada
c52c6897 45442configure-target-libada:
0aed8855
PB
45443 @: $(MAKE); $(unstage)
45444 @r=`${PWD_COMMAND}`; export r; \
45445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45446 echo "Checking multilib configuration for libada..."; \
22121df0
L
45447 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
45448 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null; \
0aed8855
PB
45449 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
45450 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
45451 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
45452 else \
45453 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
45454 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
45455 fi; \
45456 else \
45457 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
45458 fi; \
45459 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
22121df0 45460 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
1f53ca9a 45461 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
45462 echo Configuring in $(TARGET_SUBDIR)/libada; \
45463 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
45464 case $(srcdir) in \
b00612cc
PB
45465 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45466 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
45467 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 45468 esac; \
1b6c0831 45469 module_srcdir=libada; \
a2592b1b 45470 rm -f no-such-file || : ; \
1b6c0831
L
45471 CONFIG_SITE=no-such-file $(SHELL) \
45472 $$s/$$module_srcdir/configure \
45473 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45474 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45475 --target=${target_alias} \
a2592b1b 45476 || exit 1
6bd3dfaa 45477@endif target-libada
a2592b1b 45478
a7254363
PB
45479
45480
d545f33b
PB
45481
45482
4fa63067
NN
45483.PHONY: all-target-libada maybe-all-target-libada
45484maybe-all-target-libada:
4f0ef2d8
CD
45485@if gcc-bootstrap
45486all-target-libada: stage_current
45487@endif gcc-bootstrap
6bd3dfaa 45488@if target-libada
72b2455a 45489TARGET-target-libada=all
6bd3dfaa 45490maybe-all-target-libada: all-target-libada
4fa63067 45491all-target-libada: configure-target-libada
0aed8855 45492 @: $(MAKE); $(unstage)
4fa63067
NN
45493 @r=`${PWD_COMMAND}`; export r; \
45494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45495 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45496 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 45497 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45498 $(TARGET-target-libada))
6bd3dfaa 45499@endif target-libada
4fa63067 45500
a7254363
PB
45501
45502
d545f33b
PB
45503
45504
4fa63067
NN
45505.PHONY: check-target-libada maybe-check-target-libada
45506maybe-check-target-libada:
6bd3dfaa
PB
45507@if target-libada
45508maybe-check-target-libada: check-target-libada
4fa63067
NN
45509
45510check-target-libada:
0aed8855 45511 @: $(MAKE); $(unstage)
4fa63067
NN
45512 @r=`${PWD_COMMAND}`; export r; \
45513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45514 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45515 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45516 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 45517
6bd3dfaa 45518@endif target-libada
4fa63067
NN
45519
45520.PHONY: install-target-libada maybe-install-target-libada
45521maybe-install-target-libada:
6bd3dfaa
PB
45522@if target-libada
45523maybe-install-target-libada: install-target-libada
4fa63067
NN
45524
45525install-target-libada: installdirs
0aed8855 45526 @: $(MAKE); $(unstage)
4fa63067
NN
45527 @r=`${PWD_COMMAND}`; export r; \
45528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45529 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45530 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45531 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 45532
6bd3dfaa 45533@endif target-libada
4fa63067 45534
9b980aa1
RW
45535.PHONY: install-strip-target-libada maybe-install-strip-target-libada
45536maybe-install-strip-target-libada:
45537@if target-libada
45538maybe-install-strip-target-libada: install-strip-target-libada
45539
45540install-strip-target-libada: installdirs
45541 @: $(MAKE); $(unstage)
45542 @r=`${PWD_COMMAND}`; export r; \
45543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45544 $(NORMAL_TARGET_EXPORTS) \
45545 (cd $(TARGET_SUBDIR)/libada && \
45546 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45547
45548@endif target-libada
45549
56a8fe78 45550# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
45551
45552.PHONY: maybe-info-target-libada info-target-libada
45553maybe-info-target-libada:
6bd3dfaa
PB
45554@if target-libada
45555maybe-info-target-libada: info-target-libada
4fa63067
NN
45556
45557info-target-libada: \
45558 configure-target-libada
0aed8855 45559 @: $(MAKE); $(unstage)
22121df0 45560 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45561 r=`${PWD_COMMAND}`; export r; \
45562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45563 $(NORMAL_TARGET_EXPORTS) \
22121df0 45564 echo "Doing info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45565 for flag in $(EXTRA_TARGET_FLAGS); do \
45566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45567 done; \
45568 (cd $(TARGET_SUBDIR)/libada && \
45569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45571 "RANLIB=$${RANLIB}" \
0c24b341 45572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45573 info) \
4fa63067
NN
45574 || exit 1
45575
6bd3dfaa 45576@endif target-libada
4fa63067
NN
45577
45578.PHONY: maybe-dvi-target-libada dvi-target-libada
45579maybe-dvi-target-libada:
6bd3dfaa
PB
45580@if target-libada
45581maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
45582
45583dvi-target-libada: \
45584 configure-target-libada
0aed8855 45585 @: $(MAKE); $(unstage)
22121df0 45586 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45587 r=`${PWD_COMMAND}`; export r; \
45588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45589 $(NORMAL_TARGET_EXPORTS) \
22121df0 45590 echo "Doing dvi in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45591 for flag in $(EXTRA_TARGET_FLAGS); do \
45592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45593 done; \
45594 (cd $(TARGET_SUBDIR)/libada && \
45595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45597 "RANLIB=$${RANLIB}" \
0c24b341 45598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45599 dvi) \
4fa63067
NN
45600 || exit 1
45601
6bd3dfaa 45602@endif target-libada
4fa63067 45603
56a8fe78
DD
45604.PHONY: maybe-pdf-target-libada pdf-target-libada
45605maybe-pdf-target-libada:
45606@if target-libada
45607maybe-pdf-target-libada: pdf-target-libada
45608
45609pdf-target-libada: \
45610 configure-target-libada
45611 @: $(MAKE); $(unstage)
22121df0 45612 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
56a8fe78
DD
45613 r=`${PWD_COMMAND}`; export r; \
45614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45615 $(NORMAL_TARGET_EXPORTS) \
22121df0 45616 echo "Doing pdf in $(TARGET_SUBDIR)/libada"; \
56a8fe78
DD
45617 for flag in $(EXTRA_TARGET_FLAGS); do \
45618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45619 done; \
45620 (cd $(TARGET_SUBDIR)/libada && \
45621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45623 "RANLIB=$${RANLIB}" \
0c24b341 45624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45625 pdf) \
45626 || exit 1
45627
45628@endif target-libada
45629
6d389afc
MS
45630.PHONY: maybe-html-target-libada html-target-libada
45631maybe-html-target-libada:
45632@if target-libada
45633maybe-html-target-libada: html-target-libada
45634
45635html-target-libada: \
45636 configure-target-libada
0aed8855 45637 @: $(MAKE); $(unstage)
22121df0 45638 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
6d389afc
MS
45639 r=`${PWD_COMMAND}`; export r; \
45640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45641 $(NORMAL_TARGET_EXPORTS) \
22121df0 45642 echo "Doing html in $(TARGET_SUBDIR)/libada"; \
6d389afc
MS
45643 for flag in $(EXTRA_TARGET_FLAGS); do \
45644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45645 done; \
45646 (cd $(TARGET_SUBDIR)/libada && \
45647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45649 "RANLIB=$${RANLIB}" \
0c24b341 45650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45651 html) \
45652 || exit 1
45653
45654@endif target-libada
45655
4fa63067
NN
45656.PHONY: maybe-TAGS-target-libada TAGS-target-libada
45657maybe-TAGS-target-libada:
6bd3dfaa
PB
45658@if target-libada
45659maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
45660
45661TAGS-target-libada: \
45662 configure-target-libada
0aed8855 45663 @: $(MAKE); $(unstage)
22121df0 45664 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45665 r=`${PWD_COMMAND}`; export r; \
45666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45667 $(NORMAL_TARGET_EXPORTS) \
22121df0 45668 echo "Doing TAGS in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45669 for flag in $(EXTRA_TARGET_FLAGS); do \
45670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45671 done; \
45672 (cd $(TARGET_SUBDIR)/libada && \
45673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45675 "RANLIB=$${RANLIB}" \
0c24b341 45676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45677 TAGS) \
4fa63067
NN
45678 || exit 1
45679
6bd3dfaa 45680@endif target-libada
4fa63067
NN
45681
45682.PHONY: maybe-install-info-target-libada install-info-target-libada
45683maybe-install-info-target-libada:
6bd3dfaa
PB
45684@if target-libada
45685maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
45686
45687install-info-target-libada: \
45688 configure-target-libada \
45689 info-target-libada
0aed8855 45690 @: $(MAKE); $(unstage)
22121df0 45691 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45692 r=`${PWD_COMMAND}`; export r; \
45693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45694 $(NORMAL_TARGET_EXPORTS) \
22121df0 45695 echo "Doing install-info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45696 for flag in $(EXTRA_TARGET_FLAGS); do \
45697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45698 done; \
45699 (cd $(TARGET_SUBDIR)/libada && \
45700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45702 "RANLIB=$${RANLIB}" \
0c24b341 45703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45704 install-info) \
4fa63067
NN
45705 || exit 1
45706
6bd3dfaa 45707@endif target-libada
4fa63067 45708
a3ca38d2
DD
45709.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
45710maybe-install-pdf-target-libada:
45711@if target-libada
45712maybe-install-pdf-target-libada: install-pdf-target-libada
45713
45714install-pdf-target-libada: \
45715 configure-target-libada \
45716 pdf-target-libada
45717 @: $(MAKE); $(unstage)
22121df0 45718 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
a3ca38d2
DD
45719 r=`${PWD_COMMAND}`; export r; \
45720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45721 $(NORMAL_TARGET_EXPORTS) \
22121df0 45722 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada"; \
a3ca38d2
DD
45723 for flag in $(EXTRA_TARGET_FLAGS); do \
45724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45725 done; \
45726 (cd $(TARGET_SUBDIR)/libada && \
45727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45729 "RANLIB=$${RANLIB}" \
0c24b341 45730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45731 install-pdf) \
45732 || exit 1
45733
45734@endif target-libada
45735
108a6f8e
CD
45736.PHONY: maybe-install-html-target-libada install-html-target-libada
45737maybe-install-html-target-libada:
45738@if target-libada
45739maybe-install-html-target-libada: install-html-target-libada
45740
45741install-html-target-libada: \
45742 configure-target-libada \
45743 html-target-libada
45744 @: $(MAKE); $(unstage)
22121df0 45745 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
108a6f8e
CD
45746 r=`${PWD_COMMAND}`; export r; \
45747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45748 $(NORMAL_TARGET_EXPORTS) \
22121df0 45749 echo "Doing install-html in $(TARGET_SUBDIR)/libada"; \
108a6f8e
CD
45750 for flag in $(EXTRA_TARGET_FLAGS); do \
45751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45752 done; \
45753 (cd $(TARGET_SUBDIR)/libada && \
45754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45756 "RANLIB=$${RANLIB}" \
0c24b341 45757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45758 install-html) \
45759 || exit 1
45760
45761@endif target-libada
45762
4fa63067
NN
45763.PHONY: maybe-installcheck-target-libada installcheck-target-libada
45764maybe-installcheck-target-libada:
6bd3dfaa
PB
45765@if target-libada
45766maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
45767
45768installcheck-target-libada: \
45769 configure-target-libada
0aed8855 45770 @: $(MAKE); $(unstage)
22121df0 45771 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45772 r=`${PWD_COMMAND}`; export r; \
45773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45774 $(NORMAL_TARGET_EXPORTS) \
22121df0 45775 echo "Doing installcheck in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45776 for flag in $(EXTRA_TARGET_FLAGS); do \
45777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45778 done; \
45779 (cd $(TARGET_SUBDIR)/libada && \
45780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45782 "RANLIB=$${RANLIB}" \
0c24b341 45783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45784 installcheck) \
4fa63067
NN
45785 || exit 1
45786
6bd3dfaa 45787@endif target-libada
4fa63067
NN
45788
45789.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
45790maybe-mostlyclean-target-libada:
6bd3dfaa
PB
45791@if target-libada
45792maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
45793
45794mostlyclean-target-libada:
0aed8855 45795 @: $(MAKE); $(unstage)
22121df0 45796 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45797 r=`${PWD_COMMAND}`; export r; \
45798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45799 $(NORMAL_TARGET_EXPORTS) \
22121df0 45800 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45801 for flag in $(EXTRA_TARGET_FLAGS); do \
45802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45803 done; \
45804 (cd $(TARGET_SUBDIR)/libada && \
45805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45807 "RANLIB=$${RANLIB}" \
0c24b341 45808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45809 mostlyclean) \
4fa63067
NN
45810 || exit 1
45811
6bd3dfaa 45812@endif target-libada
4fa63067
NN
45813
45814.PHONY: maybe-clean-target-libada clean-target-libada
45815maybe-clean-target-libada:
6bd3dfaa
PB
45816@if target-libada
45817maybe-clean-target-libada: clean-target-libada
4fa63067
NN
45818
45819clean-target-libada:
0aed8855 45820 @: $(MAKE); $(unstage)
22121df0 45821 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
45822 r=`${PWD_COMMAND}`; export r; \
45823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45824 $(NORMAL_TARGET_EXPORTS) \
22121df0 45825 echo "Doing clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45826 for flag in $(EXTRA_TARGET_FLAGS); do \
45827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45828 done; \
45829 (cd $(TARGET_SUBDIR)/libada && \
45830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45832 "RANLIB=$${RANLIB}" \
0c24b341 45833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45834 clean) \
4fa63067
NN
45835 || exit 1
45836
6bd3dfaa 45837@endif target-libada
a2592b1b 45838
4fa63067
NN
45839.PHONY: maybe-distclean-target-libada distclean-target-libada
45840maybe-distclean-target-libada:
6bd3dfaa
PB
45841@if target-libada
45842maybe-distclean-target-libada: distclean-target-libada
a2592b1b 45843
4fa63067 45844distclean-target-libada:
0aed8855 45845 @: $(MAKE); $(unstage)
22121df0 45846 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 45847 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45849 $(NORMAL_TARGET_EXPORTS) \
22121df0 45850 echo "Doing distclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45851 for flag in $(EXTRA_TARGET_FLAGS); do \
45852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45853 done; \
a2592b1b 45854 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45857 "RANLIB=$${RANLIB}" \
0c24b341 45858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45859 distclean) \
4fa63067 45860 || exit 1
a2592b1b 45861
6bd3dfaa 45862@endif target-libada
a2592b1b 45863
4fa63067
NN
45864.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
45865maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
45866@if target-libada
45867maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 45868
4fa63067 45869maintainer-clean-target-libada:
0aed8855 45870 @: $(MAKE); $(unstage)
22121df0 45871 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 45872 r=`${PWD_COMMAND}`; export r; \
a2592b1b 45873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45874 $(NORMAL_TARGET_EXPORTS) \
22121df0 45875 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
45876 for flag in $(EXTRA_TARGET_FLAGS); do \
45877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45878 done; \
a2592b1b 45879 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
45880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45882 "RANLIB=$${RANLIB}" \
0c24b341 45883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45884 maintainer-clean) \
4fa63067
NN
45885 || exit 1
45886
6bd3dfaa 45887@endif target-libada
a2592b1b
DD
45888
45889
e393202e 45890
b3ded179
PB
45891
45892
45893.PHONY: configure-target-libgomp maybe-configure-target-libgomp
45894maybe-configure-target-libgomp:
4f0ef2d8
CD
45895@if gcc-bootstrap
45896configure-target-libgomp: stage_current
45897@endif gcc-bootstrap
b3ded179
PB
45898@if target-libgomp
45899maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 45900configure-target-libgomp:
b3ded179
PB
45901 @r=`${PWD_COMMAND}`; export r; \
45902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45903 echo "Checking multilib configuration for libgomp..."; \
22121df0
L
45904 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
45905 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
b3ded179
PB
45906 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45907 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45908 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45909 else \
45910 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45911 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45912 fi; \
45913 else \
45914 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
45915 fi; \
45916 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
22121df0 45917 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
1f53ca9a 45918 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
45919 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
45920 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
45921 case $(srcdir) in \
45922 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45923 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45924 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45925 esac; \
1b6c0831 45926 module_srcdir=libgomp; \
b3ded179 45927 rm -f no-such-file || : ; \
1b6c0831
L
45928 CONFIG_SITE=no-such-file $(SHELL) \
45929 $$s/$$module_srcdir/configure \
45930 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45931 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45932 --target=${target_alias} \
b3ded179
PB
45933 || exit 1
45934@endif target-libgomp
45935
45936
45937
911e63d0
JR
45938.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
45939maybe-configure-stage1-target-libgomp:
45940@if target-libgomp-bootstrap
45941maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
45942configure-stage1-target-libgomp:
45943 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
45944 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45945 @r=`${PWD_COMMAND}`; export r; \
45946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45947 TFLAGS="$(STAGE1_TFLAGS)"; \
45948 echo "Checking multilib configuration for libgomp..."; \
22121df0 45949 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45950 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45951 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45952 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45953 else \
45954 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45955 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45956 fi; \
45957 else \
45958 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
45959 fi; \
45960 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
45961 $(NORMAL_TARGET_EXPORTS) \
45962 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45963 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45964 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45965 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp; \
45966 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
45967 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
45968 case $(srcdir) in \
45969 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45970 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
45971 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45972 esac; \
1b6c0831
L
45973 module_srcdir=libgomp; \
45974 $(SHELL) $$s/$$module_srcdir/configure \
45975 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 45976 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45977 --target=${target_alias} \
45978 \
911e63d0
JR
45979 $(STAGE1_CONFIGURE_FLAGS)
45980@endif target-libgomp-bootstrap
45981
45982.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
45983maybe-configure-stage2-target-libgomp:
45984@if target-libgomp-bootstrap
45985maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
45986configure-stage2-target-libgomp:
45987 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
45988 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
45989 @r=`${PWD_COMMAND}`; export r; \
45990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45991 TFLAGS="$(STAGE2_TFLAGS)"; \
45992 echo "Checking multilib configuration for libgomp..."; \
22121df0 45993 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
45994 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45995 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
45996 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
45997 else \
45998 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
45999 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46000 fi; \
46001 else \
46002 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46003 fi; \
46004 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46005 $(NORMAL_TARGET_EXPORTS) \
46006 \
46007 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46008 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46009 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46010 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp; \
46011 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46012 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46013 case $(srcdir) in \
46014 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46015 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46016 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46017 esac; \
1b6c0831
L
46018 module_srcdir=libgomp; \
46019 $(SHELL) $$s/$$module_srcdir/configure \
46020 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46021 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46022 --target=${target_alias} \
22121df0 46023 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46024 $(STAGE2_CONFIGURE_FLAGS)
46025@endif target-libgomp-bootstrap
46026
46027.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
46028maybe-configure-stage3-target-libgomp:
46029@if target-libgomp-bootstrap
46030maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
46031configure-stage3-target-libgomp:
46032 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
46033 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46034 @r=`${PWD_COMMAND}`; export r; \
46035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46036 TFLAGS="$(STAGE3_TFLAGS)"; \
46037 echo "Checking multilib configuration for libgomp..."; \
22121df0 46038 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46039 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46040 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46041 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46042 else \
46043 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46044 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46045 fi; \
46046 else \
46047 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46048 fi; \
46049 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46050 $(NORMAL_TARGET_EXPORTS) \
46051 \
46052 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46053 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46054 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46055 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp; \
46056 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46057 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46058 case $(srcdir) in \
46059 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46060 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46061 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46062 esac; \
1b6c0831
L
46063 module_srcdir=libgomp; \
46064 $(SHELL) $$s/$$module_srcdir/configure \
46065 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46066 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46067 --target=${target_alias} \
22121df0 46068 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46069 $(STAGE3_CONFIGURE_FLAGS)
46070@endif target-libgomp-bootstrap
46071
46072.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
46073maybe-configure-stage4-target-libgomp:
46074@if target-libgomp-bootstrap
46075maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
46076configure-stage4-target-libgomp:
46077 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
46078 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46079 @r=`${PWD_COMMAND}`; export r; \
46080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46081 TFLAGS="$(STAGE4_TFLAGS)"; \
46082 echo "Checking multilib configuration for libgomp..."; \
22121df0 46083 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46084 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46085 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46086 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46087 else \
46088 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46089 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46090 fi; \
46091 else \
46092 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46093 fi; \
46094 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46095 $(NORMAL_TARGET_EXPORTS) \
46096 \
46097 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46098 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46099 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46100 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp; \
46101 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46102 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46103 case $(srcdir) in \
46104 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46105 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46106 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46107 esac; \
1b6c0831
L
46108 module_srcdir=libgomp; \
46109 $(SHELL) $$s/$$module_srcdir/configure \
46110 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46111 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46112 --target=${target_alias} \
22121df0 46113 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46114 $(STAGE4_CONFIGURE_FLAGS)
46115@endif target-libgomp-bootstrap
46116
46117.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
46118maybe-configure-stageprofile-target-libgomp:
46119@if target-libgomp-bootstrap
46120maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
46121configure-stageprofile-target-libgomp:
46122 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
46123 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46124 @r=`${PWD_COMMAND}`; export r; \
46125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46126 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46127 echo "Checking multilib configuration for libgomp..."; \
22121df0 46128 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46129 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46130 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46131 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46132 else \
46133 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46134 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46135 fi; \
46136 else \
46137 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46138 fi; \
46139 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46140 $(NORMAL_TARGET_EXPORTS) \
46141 \
46142 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46143 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46144 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46145 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp; \
46146 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46147 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46148 case $(srcdir) in \
46149 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46150 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46151 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46152 esac; \
1b6c0831
L
46153 module_srcdir=libgomp; \
46154 $(SHELL) $$s/$$module_srcdir/configure \
46155 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46156 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46157 --target=${target_alias} \
22121df0 46158 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46159 $(STAGEprofile_CONFIGURE_FLAGS)
46160@endif target-libgomp-bootstrap
46161
46162.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
46163maybe-configure-stagefeedback-target-libgomp:
46164@if target-libgomp-bootstrap
46165maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
46166configure-stagefeedback-target-libgomp:
46167 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
46168 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46169 @r=`${PWD_COMMAND}`; export r; \
46170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46171 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46172 echo "Checking multilib configuration for libgomp..."; \
22121df0 46173 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46174 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46175 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46176 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46177 else \
46178 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46179 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46180 fi; \
46181 else \
46182 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46183 fi; \
46184 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46185 $(NORMAL_TARGET_EXPORTS) \
46186 \
46187 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46188 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46189 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46190 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp; \
46191 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46192 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46193 case $(srcdir) in \
46194 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46195 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46196 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46197 esac; \
1b6c0831
L
46198 module_srcdir=libgomp; \
46199 $(SHELL) $$s/$$module_srcdir/configure \
46200 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46201 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46202 --target=${target_alias} \
22121df0 46203 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46204 $(STAGEfeedback_CONFIGURE_FLAGS)
46205@endif target-libgomp-bootstrap
46206
46207
46208
b3ded179
PB
46209
46210
46211.PHONY: all-target-libgomp maybe-all-target-libgomp
46212maybe-all-target-libgomp:
4f0ef2d8
CD
46213@if gcc-bootstrap
46214all-target-libgomp: stage_current
46215@endif gcc-bootstrap
b3ded179
PB
46216@if target-libgomp
46217TARGET-target-libgomp=all
46218maybe-all-target-libgomp: all-target-libgomp
46219all-target-libgomp: configure-target-libgomp
b3ded179
PB
46220 @r=`${PWD_COMMAND}`; export r; \
46221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46222 $(NORMAL_TARGET_EXPORTS) \
b3ded179 46223 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46224 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46225 $(TARGET-target-libgomp))
b3ded179
PB
46226@endif target-libgomp
46227
46228
46229
911e63d0
JR
46230.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
46231.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
46232maybe-all-stage1-target-libgomp:
46233maybe-clean-stage1-target-libgomp:
46234@if target-libgomp-bootstrap
46235maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
46236all-stage1: all-stage1-target-libgomp
46237TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
46238all-stage1-target-libgomp: configure-stage1-target-libgomp
46239 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
46240 @r=`${PWD_COMMAND}`; export r; \
46241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46242 TFLAGS="$(STAGE1_TFLAGS)"; \
46243 $(NORMAL_TARGET_EXPORTS) \
46244 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46245 \
911e63d0
JR
46246 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46247 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46248 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46249 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46250 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46251 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46252 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
46253 $(EXTRA_TARGET_FLAGS) \
46254 \
05a13254 46255 TFLAGS="$(STAGE1_TFLAGS)" \
911e63d0
JR
46256 $(TARGET-stage1-target-libgomp)
46257
46258maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
46259clean-stage1: clean-stage1-target-libgomp
46260clean-stage1-target-libgomp:
46261 @if [ $(current_stage) = stage1 ]; then \
46262 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46263 else \
46264 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
46265 $(MAKE) stage1-start; \
46266 fi; \
46267 cd $(TARGET_SUBDIR)/libgomp && \
46268 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 46269 clean
911e63d0
JR
46270@endif target-libgomp-bootstrap
46271
46272
46273.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
46274.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
46275maybe-all-stage2-target-libgomp:
46276maybe-clean-stage2-target-libgomp:
46277@if target-libgomp-bootstrap
46278maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
46279all-stage2: all-stage2-target-libgomp
46280TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
46281all-stage2-target-libgomp: configure-stage2-target-libgomp
46282 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
46283 @r=`${PWD_COMMAND}`; export r; \
46284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46285 TFLAGS="$(STAGE2_TFLAGS)"; \
46286 $(NORMAL_TARGET_EXPORTS) \
46287 \
46288 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46289 \
911e63d0
JR
46290 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46291 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46292 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46293 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46294 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46295 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46296 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46297 $(EXTRA_TARGET_FLAGS) \
05a13254 46298 TFLAGS="$(STAGE2_TFLAGS)" \
911e63d0
JR
46299 $(TARGET-stage2-target-libgomp)
46300
46301maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
46302clean-stage2: clean-stage2-target-libgomp
46303clean-stage2-target-libgomp:
46304 @if [ $(current_stage) = stage2 ]; then \
46305 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46306 else \
46307 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
46308 $(MAKE) stage2-start; \
46309 fi; \
46310 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46311 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46312@endif target-libgomp-bootstrap
46313
46314
46315.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
46316.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
46317maybe-all-stage3-target-libgomp:
46318maybe-clean-stage3-target-libgomp:
46319@if target-libgomp-bootstrap
46320maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
46321all-stage3: all-stage3-target-libgomp
46322TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
46323all-stage3-target-libgomp: configure-stage3-target-libgomp
46324 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
46325 @r=`${PWD_COMMAND}`; export r; \
46326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46327 TFLAGS="$(STAGE3_TFLAGS)"; \
46328 $(NORMAL_TARGET_EXPORTS) \
46329 \
46330 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46331 \
911e63d0
JR
46332 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46333 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46334 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46335 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46336 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46337 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46338 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46339 $(EXTRA_TARGET_FLAGS) \
05a13254 46340 TFLAGS="$(STAGE3_TFLAGS)" \
911e63d0
JR
46341 $(TARGET-stage3-target-libgomp)
46342
46343maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
46344clean-stage3: clean-stage3-target-libgomp
46345clean-stage3-target-libgomp:
46346 @if [ $(current_stage) = stage3 ]; then \
46347 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46348 else \
46349 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
46350 $(MAKE) stage3-start; \
46351 fi; \
46352 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46353 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46354@endif target-libgomp-bootstrap
46355
46356
46357.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
46358.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
46359maybe-all-stage4-target-libgomp:
46360maybe-clean-stage4-target-libgomp:
46361@if target-libgomp-bootstrap
46362maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
46363all-stage4: all-stage4-target-libgomp
46364TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
46365all-stage4-target-libgomp: configure-stage4-target-libgomp
46366 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
46367 @r=`${PWD_COMMAND}`; export r; \
46368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46369 TFLAGS="$(STAGE4_TFLAGS)"; \
46370 $(NORMAL_TARGET_EXPORTS) \
46371 \
46372 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46373 \
911e63d0
JR
46374 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46375 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46376 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46377 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46378 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46379 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46380 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46381 $(EXTRA_TARGET_FLAGS) \
05a13254 46382 TFLAGS="$(STAGE4_TFLAGS)" \
911e63d0
JR
46383 $(TARGET-stage4-target-libgomp)
46384
46385maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
46386clean-stage4: clean-stage4-target-libgomp
46387clean-stage4-target-libgomp:
46388 @if [ $(current_stage) = stage4 ]; then \
46389 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46390 else \
46391 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
46392 $(MAKE) stage4-start; \
46393 fi; \
46394 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46395 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46396@endif target-libgomp-bootstrap
46397
46398
46399.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
46400.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
46401maybe-all-stageprofile-target-libgomp:
46402maybe-clean-stageprofile-target-libgomp:
46403@if target-libgomp-bootstrap
46404maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
46405all-stageprofile: all-stageprofile-target-libgomp
46406TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
46407all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
46408 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
46409 @r=`${PWD_COMMAND}`; export r; \
46410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46411 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46412 $(NORMAL_TARGET_EXPORTS) \
46413 \
46414 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46415 \
911e63d0
JR
46416 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46417 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46418 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46419 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46420 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46421 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46422 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46423 $(EXTRA_TARGET_FLAGS) \
05a13254 46424 TFLAGS="$(STAGEprofile_TFLAGS)" \
911e63d0
JR
46425 $(TARGET-stageprofile-target-libgomp)
46426
46427maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
46428clean-stageprofile: clean-stageprofile-target-libgomp
46429clean-stageprofile-target-libgomp:
46430 @if [ $(current_stage) = stageprofile ]; then \
46431 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46432 else \
46433 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
46434 $(MAKE) stageprofile-start; \
46435 fi; \
46436 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46437 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46438@endif target-libgomp-bootstrap
46439
46440
46441.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
46442.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
46443maybe-all-stagefeedback-target-libgomp:
46444maybe-clean-stagefeedback-target-libgomp:
46445@if target-libgomp-bootstrap
46446maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
46447all-stagefeedback: all-stagefeedback-target-libgomp
46448TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
46449all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
46450 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
46451 @r=`${PWD_COMMAND}`; export r; \
46452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46453 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46454 $(NORMAL_TARGET_EXPORTS) \
46455 \
46456 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46457 \
911e63d0
JR
46458 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46459 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46460 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46461 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46462 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46463 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46464 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46465 $(EXTRA_TARGET_FLAGS) \
05a13254 46466 TFLAGS="$(STAGEfeedback_TFLAGS)" \
911e63d0
JR
46467 $(TARGET-stagefeedback-target-libgomp)
46468
46469maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
46470clean-stagefeedback: clean-stagefeedback-target-libgomp
46471clean-stagefeedback-target-libgomp:
46472 @if [ $(current_stage) = stagefeedback ]; then \
46473 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46474 else \
46475 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
46476 $(MAKE) stagefeedback-start; \
46477 fi; \
46478 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46479 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46480@endif target-libgomp-bootstrap
46481
46482
46483
46484
b3ded179
PB
46485
46486
46487.PHONY: check-target-libgomp maybe-check-target-libgomp
46488maybe-check-target-libgomp:
46489@if target-libgomp
46490maybe-check-target-libgomp: check-target-libgomp
46491
46492check-target-libgomp:
46493 @: $(MAKE); $(unstage)
46494 @r=`${PWD_COMMAND}`; export r; \
46495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46496 $(NORMAL_TARGET_EXPORTS) \
46497 (cd $(TARGET_SUBDIR)/libgomp && \
46498 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46499
46500@endif target-libgomp
46501
46502.PHONY: install-target-libgomp maybe-install-target-libgomp
46503maybe-install-target-libgomp:
46504@if target-libgomp
46505maybe-install-target-libgomp: install-target-libgomp
46506
46507install-target-libgomp: installdirs
46508 @: $(MAKE); $(unstage)
46509 @r=`${PWD_COMMAND}`; export r; \
46510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46511 $(NORMAL_TARGET_EXPORTS) \
46512 (cd $(TARGET_SUBDIR)/libgomp && \
46513 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46514
46515@endif target-libgomp
46516
9b980aa1
RW
46517.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
46518maybe-install-strip-target-libgomp:
46519@if target-libgomp
46520maybe-install-strip-target-libgomp: install-strip-target-libgomp
46521
46522install-strip-target-libgomp: installdirs
46523 @: $(MAKE); $(unstage)
46524 @r=`${PWD_COMMAND}`; export r; \
46525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46526 $(NORMAL_TARGET_EXPORTS) \
46527 (cd $(TARGET_SUBDIR)/libgomp && \
46528 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46529
46530@endif target-libgomp
46531
56a8fe78 46532# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
46533
46534.PHONY: maybe-info-target-libgomp info-target-libgomp
46535maybe-info-target-libgomp:
46536@if target-libgomp
46537maybe-info-target-libgomp: info-target-libgomp
46538
46539info-target-libgomp: \
46540 configure-target-libgomp
46541 @: $(MAKE); $(unstage)
22121df0 46542 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46543 r=`${PWD_COMMAND}`; export r; \
46544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46545 $(NORMAL_TARGET_EXPORTS) \
22121df0 46546 echo "Doing info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46547 for flag in $(EXTRA_TARGET_FLAGS); do \
46548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46549 done; \
46550 (cd $(TARGET_SUBDIR)/libgomp && \
46551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46553 "RANLIB=$${RANLIB}" \
0c24b341 46554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46555 info) \
46556 || exit 1
46557
46558@endif target-libgomp
46559
46560.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
46561maybe-dvi-target-libgomp:
46562@if target-libgomp
46563maybe-dvi-target-libgomp: dvi-target-libgomp
46564
46565dvi-target-libgomp: \
46566 configure-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 dvi 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 dvi) \
46582 || exit 1
46583
46584@endif target-libgomp
46585
56a8fe78
DD
46586.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
46587maybe-pdf-target-libgomp:
46588@if target-libgomp
46589maybe-pdf-target-libgomp: pdf-target-libgomp
46590
46591pdf-target-libgomp: \
46592 configure-target-libgomp
46593 @: $(MAKE); $(unstage)
22121df0 46594 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
56a8fe78
DD
46595 r=`${PWD_COMMAND}`; export r; \
46596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46597 $(NORMAL_TARGET_EXPORTS) \
22121df0 46598 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp"; \
56a8fe78
DD
46599 for flag in $(EXTRA_TARGET_FLAGS); do \
46600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46601 done; \
46602 (cd $(TARGET_SUBDIR)/libgomp && \
46603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46605 "RANLIB=$${RANLIB}" \
0c24b341 46606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46607 pdf) \
46608 || exit 1
46609
46610@endif target-libgomp
46611
b3ded179
PB
46612.PHONY: maybe-html-target-libgomp html-target-libgomp
46613maybe-html-target-libgomp:
46614@if target-libgomp
46615maybe-html-target-libgomp: html-target-libgomp
46616
46617html-target-libgomp: \
46618 configure-target-libgomp
46619 @: $(MAKE); $(unstage)
22121df0 46620 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46621 r=`${PWD_COMMAND}`; export r; \
46622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46623 $(NORMAL_TARGET_EXPORTS) \
22121df0 46624 echo "Doing html in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46625 for flag in $(EXTRA_TARGET_FLAGS); do \
46626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46627 done; \
46628 (cd $(TARGET_SUBDIR)/libgomp && \
46629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46631 "RANLIB=$${RANLIB}" \
0c24b341 46632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46633 html) \
46634 || exit 1
46635
46636@endif target-libgomp
46637
46638.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
46639maybe-TAGS-target-libgomp:
46640@if target-libgomp
46641maybe-TAGS-target-libgomp: TAGS-target-libgomp
46642
46643TAGS-target-libgomp: \
46644 configure-target-libgomp
46645 @: $(MAKE); $(unstage)
22121df0 46646 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46647 r=`${PWD_COMMAND}`; export r; \
46648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46649 $(NORMAL_TARGET_EXPORTS) \
22121df0 46650 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46651 for flag in $(EXTRA_TARGET_FLAGS); do \
46652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46653 done; \
46654 (cd $(TARGET_SUBDIR)/libgomp && \
46655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46657 "RANLIB=$${RANLIB}" \
0c24b341 46658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46659 TAGS) \
46660 || exit 1
46661
46662@endif target-libgomp
46663
46664.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
46665maybe-install-info-target-libgomp:
46666@if target-libgomp
46667maybe-install-info-target-libgomp: install-info-target-libgomp
46668
46669install-info-target-libgomp: \
46670 configure-target-libgomp \
46671 info-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 install-info 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 install-info) \
46687 || exit 1
46688
46689@endif target-libgomp
46690
a3ca38d2
DD
46691.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
46692maybe-install-pdf-target-libgomp:
46693@if target-libgomp
46694maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
46695
46696install-pdf-target-libgomp: \
46697 configure-target-libgomp \
46698 pdf-target-libgomp
46699 @: $(MAKE); $(unstage)
22121df0 46700 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
a3ca38d2
DD
46701 r=`${PWD_COMMAND}`; export r; \
46702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46703 $(NORMAL_TARGET_EXPORTS) \
22121df0 46704 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp"; \
a3ca38d2
DD
46705 for flag in $(EXTRA_TARGET_FLAGS); do \
46706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46707 done; \
46708 (cd $(TARGET_SUBDIR)/libgomp && \
46709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46711 "RANLIB=$${RANLIB}" \
0c24b341 46712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46713 install-pdf) \
46714 || exit 1
46715
46716@endif target-libgomp
46717
108a6f8e
CD
46718.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
46719maybe-install-html-target-libgomp:
46720@if target-libgomp
46721maybe-install-html-target-libgomp: install-html-target-libgomp
46722
46723install-html-target-libgomp: \
46724 configure-target-libgomp \
46725 html-target-libgomp
46726 @: $(MAKE); $(unstage)
22121df0 46727 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
108a6f8e
CD
46728 r=`${PWD_COMMAND}`; export r; \
46729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46730 $(NORMAL_TARGET_EXPORTS) \
22121df0 46731 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp"; \
108a6f8e
CD
46732 for flag in $(EXTRA_TARGET_FLAGS); do \
46733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46734 done; \
46735 (cd $(TARGET_SUBDIR)/libgomp && \
46736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46738 "RANLIB=$${RANLIB}" \
0c24b341 46739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46740 install-html) \
46741 || exit 1
46742
46743@endif target-libgomp
46744
b3ded179
PB
46745.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
46746maybe-installcheck-target-libgomp:
46747@if target-libgomp
46748maybe-installcheck-target-libgomp: installcheck-target-libgomp
46749
46750installcheck-target-libgomp: \
46751 configure-target-libgomp
46752 @: $(MAKE); $(unstage)
22121df0 46753 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46754 r=`${PWD_COMMAND}`; export r; \
46755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46756 $(NORMAL_TARGET_EXPORTS) \
22121df0 46757 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46758 for flag in $(EXTRA_TARGET_FLAGS); do \
46759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46760 done; \
46761 (cd $(TARGET_SUBDIR)/libgomp && \
46762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46764 "RANLIB=$${RANLIB}" \
0c24b341 46765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46766 installcheck) \
46767 || exit 1
46768
46769@endif target-libgomp
46770
46771.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
46772maybe-mostlyclean-target-libgomp:
46773@if target-libgomp
46774maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
46775
46776mostlyclean-target-libgomp:
46777 @: $(MAKE); $(unstage)
22121df0 46778 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46779 r=`${PWD_COMMAND}`; export r; \
46780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46781 $(NORMAL_TARGET_EXPORTS) \
22121df0 46782 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46783 for flag in $(EXTRA_TARGET_FLAGS); do \
46784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46785 done; \
46786 (cd $(TARGET_SUBDIR)/libgomp && \
46787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46789 "RANLIB=$${RANLIB}" \
0c24b341 46790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46791 mostlyclean) \
46792 || exit 1
46793
46794@endif target-libgomp
46795
46796.PHONY: maybe-clean-target-libgomp clean-target-libgomp
46797maybe-clean-target-libgomp:
46798@if target-libgomp
46799maybe-clean-target-libgomp: clean-target-libgomp
46800
46801clean-target-libgomp:
46802 @: $(MAKE); $(unstage)
22121df0 46803 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46804 r=`${PWD_COMMAND}`; export r; \
46805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46806 $(NORMAL_TARGET_EXPORTS) \
22121df0 46807 echo "Doing clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46808 for flag in $(EXTRA_TARGET_FLAGS); do \
46809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46810 done; \
46811 (cd $(TARGET_SUBDIR)/libgomp && \
46812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46814 "RANLIB=$${RANLIB}" \
0c24b341 46815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46816 clean) \
46817 || exit 1
46818
46819@endif target-libgomp
46820
46821.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
46822maybe-distclean-target-libgomp:
46823@if target-libgomp
46824maybe-distclean-target-libgomp: distclean-target-libgomp
46825
46826distclean-target-libgomp:
46827 @: $(MAKE); $(unstage)
22121df0 46828 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46829 r=`${PWD_COMMAND}`; export r; \
46830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46831 $(NORMAL_TARGET_EXPORTS) \
22121df0 46832 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46833 for flag in $(EXTRA_TARGET_FLAGS); do \
46834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46835 done; \
46836 (cd $(TARGET_SUBDIR)/libgomp && \
46837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46839 "RANLIB=$${RANLIB}" \
0c24b341 46840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46841 distclean) \
46842 || exit 1
46843
46844@endif target-libgomp
46845
46846.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
46847maybe-maintainer-clean-target-libgomp:
46848@if target-libgomp
46849maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
46850
46851maintainer-clean-target-libgomp:
46852 @: $(MAKE); $(unstage)
22121df0 46853 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
46854 r=`${PWD_COMMAND}`; export r; \
46855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46856 $(NORMAL_TARGET_EXPORTS) \
22121df0 46857 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
46858 for flag in $(EXTRA_TARGET_FLAGS); do \
46859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46860 done; \
46861 (cd $(TARGET_SUBDIR)/libgomp && \
46862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46864 "RANLIB=$${RANLIB}" \
0c24b341 46865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
46866 maintainer-clean) \
46867 || exit 1
46868
46869@endif target-libgomp
46870
46871
46872
7ec59b9e
L
46873
46874
46875.PHONY: configure-target-libitm maybe-configure-target-libitm
46876maybe-configure-target-libitm:
46877@if gcc-bootstrap
46878configure-target-libitm: stage_current
46879@endif gcc-bootstrap
46880@if target-libitm
46881maybe-configure-target-libitm: configure-target-libitm
46882configure-target-libitm:
46883 @: $(MAKE); $(unstage)
46884 @r=`${PWD_COMMAND}`; export r; \
46885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46886 echo "Checking multilib configuration for libitm..."; \
22121df0
L
46887 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
46888 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null; \
7ec59b9e
L
46889 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
46890 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
46891 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
46892 else \
46893 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
46894 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46895 fi; \
46896 else \
46897 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
46898 fi; \
46899 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
22121df0 46900 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
7ec59b9e
L
46901 $(NORMAL_TARGET_EXPORTS) \
46902 echo Configuring in $(TARGET_SUBDIR)/libitm; \
46903 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
46904 case $(srcdir) in \
46905 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46906 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
46907 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46908 esac; \
1b6c0831 46909 module_srcdir=libitm; \
7ec59b9e 46910 rm -f no-such-file || : ; \
1b6c0831
L
46911 CONFIG_SITE=no-such-file $(SHELL) \
46912 $$s/$$module_srcdir/configure \
46913 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 46914 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46915 --target=${target_alias} \
7ec59b9e
L
46916 || exit 1
46917@endif target-libitm
46918
46919
46920
46921
46922
46923.PHONY: all-target-libitm maybe-all-target-libitm
46924maybe-all-target-libitm:
46925@if gcc-bootstrap
46926all-target-libitm: stage_current
46927@endif gcc-bootstrap
46928@if target-libitm
46929TARGET-target-libitm=all
46930maybe-all-target-libitm: all-target-libitm
46931all-target-libitm: configure-target-libitm
46932 @: $(MAKE); $(unstage)
46933 @r=`${PWD_COMMAND}`; export r; \
46934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46935 $(NORMAL_TARGET_EXPORTS) \
46936 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 46937 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
46938 $(TARGET-target-libitm))
46939@endif target-libitm
46940
46941
46942
46943
46944
46945.PHONY: check-target-libitm maybe-check-target-libitm
46946maybe-check-target-libitm:
46947@if target-libitm
46948maybe-check-target-libitm: check-target-libitm
46949
46950check-target-libitm:
46951 @: $(MAKE); $(unstage)
46952 @r=`${PWD_COMMAND}`; export r; \
46953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46954 $(NORMAL_TARGET_EXPORTS) \
46955 (cd $(TARGET_SUBDIR)/libitm && \
46956 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46957
46958@endif target-libitm
46959
46960.PHONY: install-target-libitm maybe-install-target-libitm
46961maybe-install-target-libitm:
46962@if target-libitm
46963maybe-install-target-libitm: install-target-libitm
46964
46965install-target-libitm: installdirs
46966 @: $(MAKE); $(unstage)
46967 @r=`${PWD_COMMAND}`; export r; \
46968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46969 $(NORMAL_TARGET_EXPORTS) \
46970 (cd $(TARGET_SUBDIR)/libitm && \
46971 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46972
46973@endif target-libitm
46974
46975.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
46976maybe-install-strip-target-libitm:
46977@if target-libitm
46978maybe-install-strip-target-libitm: install-strip-target-libitm
46979
46980install-strip-target-libitm: installdirs
46981 @: $(MAKE); $(unstage)
46982 @r=`${PWD_COMMAND}`; export r; \
46983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46984 $(NORMAL_TARGET_EXPORTS) \
46985 (cd $(TARGET_SUBDIR)/libitm && \
46986 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46987
46988@endif target-libitm
46989
46990# Other targets (info, dvi, pdf, etc.)
46991
46992.PHONY: maybe-info-target-libitm info-target-libitm
46993maybe-info-target-libitm:
46994@if target-libitm
46995maybe-info-target-libitm: info-target-libitm
46996
46997info-target-libitm: \
46998 configure-target-libitm
46999 @: $(MAKE); $(unstage)
22121df0 47000 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47001 r=`${PWD_COMMAND}`; export r; \
47002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47003 $(NORMAL_TARGET_EXPORTS) \
22121df0 47004 echo "Doing info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47005 for flag in $(EXTRA_TARGET_FLAGS); do \
47006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47007 done; \
47008 (cd $(TARGET_SUBDIR)/libitm && \
47009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47011 "RANLIB=$${RANLIB}" \
47012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47013 info) \
47014 || exit 1
47015
47016@endif target-libitm
47017
47018.PHONY: maybe-dvi-target-libitm dvi-target-libitm
47019maybe-dvi-target-libitm:
47020@if target-libitm
47021maybe-dvi-target-libitm: dvi-target-libitm
47022
47023dvi-target-libitm: \
47024 configure-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 dvi 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 dvi) \
47040 || exit 1
47041
47042@endif target-libitm
47043
47044.PHONY: maybe-pdf-target-libitm pdf-target-libitm
47045maybe-pdf-target-libitm:
47046@if target-libitm
47047maybe-pdf-target-libitm: pdf-target-libitm
47048
47049pdf-target-libitm: \
47050 configure-target-libitm
47051 @: $(MAKE); $(unstage)
22121df0 47052 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47053 r=`${PWD_COMMAND}`; export r; \
47054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47055 $(NORMAL_TARGET_EXPORTS) \
22121df0 47056 echo "Doing pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47057 for flag in $(EXTRA_TARGET_FLAGS); do \
47058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47059 done; \
47060 (cd $(TARGET_SUBDIR)/libitm && \
47061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47063 "RANLIB=$${RANLIB}" \
47064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47065 pdf) \
47066 || exit 1
47067
47068@endif target-libitm
47069
47070.PHONY: maybe-html-target-libitm html-target-libitm
47071maybe-html-target-libitm:
47072@if target-libitm
47073maybe-html-target-libitm: html-target-libitm
47074
47075html-target-libitm: \
47076 configure-target-libitm
47077 @: $(MAKE); $(unstage)
22121df0 47078 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47079 r=`${PWD_COMMAND}`; export r; \
47080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47081 $(NORMAL_TARGET_EXPORTS) \
22121df0 47082 echo "Doing html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47083 for flag in $(EXTRA_TARGET_FLAGS); do \
47084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47085 done; \
47086 (cd $(TARGET_SUBDIR)/libitm && \
47087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47089 "RANLIB=$${RANLIB}" \
47090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47091 html) \
47092 || exit 1
47093
47094@endif target-libitm
47095
47096.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
47097maybe-TAGS-target-libitm:
47098@if target-libitm
47099maybe-TAGS-target-libitm: TAGS-target-libitm
47100
47101TAGS-target-libitm: \
47102 configure-target-libitm
47103 @: $(MAKE); $(unstage)
22121df0 47104 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47105 r=`${PWD_COMMAND}`; export r; \
47106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47107 $(NORMAL_TARGET_EXPORTS) \
22121df0 47108 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47109 for flag in $(EXTRA_TARGET_FLAGS); do \
47110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47111 done; \
47112 (cd $(TARGET_SUBDIR)/libitm && \
47113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47115 "RANLIB=$${RANLIB}" \
47116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47117 TAGS) \
47118 || exit 1
47119
47120@endif target-libitm
47121
47122.PHONY: maybe-install-info-target-libitm install-info-target-libitm
47123maybe-install-info-target-libitm:
47124@if target-libitm
47125maybe-install-info-target-libitm: install-info-target-libitm
47126
47127install-info-target-libitm: \
47128 configure-target-libitm \
47129 info-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 install-info 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 install-info) \
47145 || exit 1
47146
47147@endif target-libitm
47148
47149.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
47150maybe-install-pdf-target-libitm:
47151@if target-libitm
47152maybe-install-pdf-target-libitm: install-pdf-target-libitm
47153
47154install-pdf-target-libitm: \
47155 configure-target-libitm \
47156 pdf-target-libitm
47157 @: $(MAKE); $(unstage)
22121df0 47158 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47159 r=`${PWD_COMMAND}`; export r; \
47160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47161 $(NORMAL_TARGET_EXPORTS) \
22121df0 47162 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47163 for flag in $(EXTRA_TARGET_FLAGS); do \
47164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47165 done; \
47166 (cd $(TARGET_SUBDIR)/libitm && \
47167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47169 "RANLIB=$${RANLIB}" \
47170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47171 install-pdf) \
47172 || exit 1
47173
47174@endif target-libitm
47175
47176.PHONY: maybe-install-html-target-libitm install-html-target-libitm
47177maybe-install-html-target-libitm:
47178@if target-libitm
47179maybe-install-html-target-libitm: install-html-target-libitm
47180
47181install-html-target-libitm: \
47182 configure-target-libitm \
47183 html-target-libitm
47184 @: $(MAKE); $(unstage)
22121df0 47185 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47186 r=`${PWD_COMMAND}`; export r; \
47187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47188 $(NORMAL_TARGET_EXPORTS) \
22121df0 47189 echo "Doing install-html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47190 for flag in $(EXTRA_TARGET_FLAGS); do \
47191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47192 done; \
47193 (cd $(TARGET_SUBDIR)/libitm && \
47194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47196 "RANLIB=$${RANLIB}" \
47197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47198 install-html) \
47199 || exit 1
47200
47201@endif target-libitm
47202
47203.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
47204maybe-installcheck-target-libitm:
47205@if target-libitm
47206maybe-installcheck-target-libitm: installcheck-target-libitm
47207
47208installcheck-target-libitm: \
47209 configure-target-libitm
47210 @: $(MAKE); $(unstage)
22121df0 47211 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47212 r=`${PWD_COMMAND}`; export r; \
47213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47214 $(NORMAL_TARGET_EXPORTS) \
22121df0 47215 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47216 for flag in $(EXTRA_TARGET_FLAGS); do \
47217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47218 done; \
47219 (cd $(TARGET_SUBDIR)/libitm && \
47220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47222 "RANLIB=$${RANLIB}" \
47223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47224 installcheck) \
47225 || exit 1
47226
47227@endif target-libitm
47228
47229.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
47230maybe-mostlyclean-target-libitm:
47231@if target-libitm
47232maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
47233
47234mostlyclean-target-libitm:
47235 @: $(MAKE); $(unstage)
22121df0 47236 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47237 r=`${PWD_COMMAND}`; export r; \
47238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47239 $(NORMAL_TARGET_EXPORTS) \
22121df0 47240 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47241 for flag in $(EXTRA_TARGET_FLAGS); do \
47242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47243 done; \
47244 (cd $(TARGET_SUBDIR)/libitm && \
47245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47247 "RANLIB=$${RANLIB}" \
47248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47249 mostlyclean) \
47250 || exit 1
47251
47252@endif target-libitm
47253
47254.PHONY: maybe-clean-target-libitm clean-target-libitm
47255maybe-clean-target-libitm:
47256@if target-libitm
47257maybe-clean-target-libitm: clean-target-libitm
47258
47259clean-target-libitm:
47260 @: $(MAKE); $(unstage)
22121df0 47261 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47262 r=`${PWD_COMMAND}`; export r; \
47263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47264 $(NORMAL_TARGET_EXPORTS) \
22121df0 47265 echo "Doing clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47266 for flag in $(EXTRA_TARGET_FLAGS); do \
47267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47268 done; \
47269 (cd $(TARGET_SUBDIR)/libitm && \
47270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47272 "RANLIB=$${RANLIB}" \
47273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47274 clean) \
47275 || exit 1
47276
47277@endif target-libitm
47278
47279.PHONY: maybe-distclean-target-libitm distclean-target-libitm
47280maybe-distclean-target-libitm:
47281@if target-libitm
47282maybe-distclean-target-libitm: distclean-target-libitm
47283
47284distclean-target-libitm:
47285 @: $(MAKE); $(unstage)
22121df0 47286 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47287 r=`${PWD_COMMAND}`; export r; \
47288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47289 $(NORMAL_TARGET_EXPORTS) \
22121df0 47290 echo "Doing distclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47291 for flag in $(EXTRA_TARGET_FLAGS); do \
47292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47293 done; \
47294 (cd $(TARGET_SUBDIR)/libitm && \
47295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47297 "RANLIB=$${RANLIB}" \
47298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47299 distclean) \
47300 || exit 1
47301
47302@endif target-libitm
47303
47304.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
47305maybe-maintainer-clean-target-libitm:
47306@if target-libitm
47307maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
47308
47309maintainer-clean-target-libitm:
47310 @: $(MAKE); $(unstage)
22121df0 47311 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47312 r=`${PWD_COMMAND}`; export r; \
47313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47314 $(NORMAL_TARGET_EXPORTS) \
22121df0 47315 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47316 for flag in $(EXTRA_TARGET_FLAGS); do \
47317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47318 done; \
47319 (cd $(TARGET_SUBDIR)/libitm && \
47320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47322 "RANLIB=$${RANLIB}" \
47323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47324 maintainer-clean) \
47325 || exit 1
47326
47327@endif target-libitm
47328
47329
47330
47331
47332
47333.PHONY: configure-target-libatomic maybe-configure-target-libatomic
47334maybe-configure-target-libatomic:
47335@if gcc-bootstrap
47336configure-target-libatomic: stage_current
47337@endif gcc-bootstrap
47338@if target-libatomic
47339maybe-configure-target-libatomic: configure-target-libatomic
47340configure-target-libatomic:
47341 @: $(MAKE); $(unstage)
47342 @r=`${PWD_COMMAND}`; export r; \
47343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47344 echo "Checking multilib configuration for libatomic..."; \
22121df0
L
47345 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
47346 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null; \
7ec59b9e
L
47347 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
47348 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
47349 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
47350 else \
47351 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
47352 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
47353 fi; \
47354 else \
47355 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
47356 fi; \
47357 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
22121df0 47358 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
7ec59b9e
L
47359 $(NORMAL_TARGET_EXPORTS) \
47360 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
47361 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
47362 case $(srcdir) in \
47363 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47364 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
47365 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47366 esac; \
1b6c0831 47367 module_srcdir=libatomic; \
7ec59b9e 47368 rm -f no-such-file || : ; \
1b6c0831
L
47369 CONFIG_SITE=no-such-file $(SHELL) \
47370 $$s/$$module_srcdir/configure \
47371 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 47372 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47373 --target=${target_alias} \
7ec59b9e
L
47374 || exit 1
47375@endif target-libatomic
47376
47377
47378
47379
47380
47381.PHONY: all-target-libatomic maybe-all-target-libatomic
47382maybe-all-target-libatomic:
47383@if gcc-bootstrap
47384all-target-libatomic: stage_current
47385@endif gcc-bootstrap
47386@if target-libatomic
47387TARGET-target-libatomic=all
47388maybe-all-target-libatomic: all-target-libatomic
47389all-target-libatomic: configure-target-libatomic
47390 @: $(MAKE); $(unstage)
47391 @r=`${PWD_COMMAND}`; export r; \
47392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47393 $(NORMAL_TARGET_EXPORTS) \
47394 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 47395 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
47396 $(TARGET-target-libatomic))
47397@endif target-libatomic
47398
47399
47400
47401
47402
47403.PHONY: check-target-libatomic maybe-check-target-libatomic
47404maybe-check-target-libatomic:
47405@if target-libatomic
47406maybe-check-target-libatomic: check-target-libatomic
47407
47408check-target-libatomic:
47409 @: $(MAKE); $(unstage)
47410 @r=`${PWD_COMMAND}`; export r; \
47411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47412 $(NORMAL_TARGET_EXPORTS) \
47413 (cd $(TARGET_SUBDIR)/libatomic && \
47414 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47415
47416@endif target-libatomic
47417
47418.PHONY: install-target-libatomic maybe-install-target-libatomic
47419maybe-install-target-libatomic:
47420@if target-libatomic
47421maybe-install-target-libatomic: install-target-libatomic
47422
47423install-target-libatomic: installdirs
47424 @: $(MAKE); $(unstage)
47425 @r=`${PWD_COMMAND}`; export r; \
47426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47427 $(NORMAL_TARGET_EXPORTS) \
47428 (cd $(TARGET_SUBDIR)/libatomic && \
47429 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47430
47431@endif target-libatomic
47432
47433.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
47434maybe-install-strip-target-libatomic:
47435@if target-libatomic
47436maybe-install-strip-target-libatomic: install-strip-target-libatomic
47437
47438install-strip-target-libatomic: installdirs
47439 @: $(MAKE); $(unstage)
47440 @r=`${PWD_COMMAND}`; export r; \
47441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47442 $(NORMAL_TARGET_EXPORTS) \
47443 (cd $(TARGET_SUBDIR)/libatomic && \
47444 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47445
47446@endif target-libatomic
47447
47448# Other targets (info, dvi, pdf, etc.)
47449
47450.PHONY: maybe-info-target-libatomic info-target-libatomic
47451maybe-info-target-libatomic:
47452@if target-libatomic
47453maybe-info-target-libatomic: info-target-libatomic
47454
47455info-target-libatomic: \
47456 configure-target-libatomic
47457 @: $(MAKE); $(unstage)
22121df0 47458 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47459 r=`${PWD_COMMAND}`; export r; \
47460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47461 $(NORMAL_TARGET_EXPORTS) \
22121df0 47462 echo "Doing info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47463 for flag in $(EXTRA_TARGET_FLAGS); do \
47464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47465 done; \
47466 (cd $(TARGET_SUBDIR)/libatomic && \
47467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47469 "RANLIB=$${RANLIB}" \
47470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47471 info) \
47472 || exit 1
47473
47474@endif target-libatomic
47475
47476.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
47477maybe-dvi-target-libatomic:
47478@if target-libatomic
47479maybe-dvi-target-libatomic: dvi-target-libatomic
47480
47481dvi-target-libatomic: \
47482 configure-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 dvi 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 dvi) \
47498 || exit 1
47499
47500@endif target-libatomic
47501
47502.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
47503maybe-pdf-target-libatomic:
47504@if target-libatomic
47505maybe-pdf-target-libatomic: pdf-target-libatomic
47506
47507pdf-target-libatomic: \
47508 configure-target-libatomic
47509 @: $(MAKE); $(unstage)
22121df0 47510 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47511 r=`${PWD_COMMAND}`; export r; \
47512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47513 $(NORMAL_TARGET_EXPORTS) \
22121df0 47514 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47515 for flag in $(EXTRA_TARGET_FLAGS); do \
47516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47517 done; \
47518 (cd $(TARGET_SUBDIR)/libatomic && \
47519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47521 "RANLIB=$${RANLIB}" \
47522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47523 pdf) \
47524 || exit 1
47525
47526@endif target-libatomic
47527
47528.PHONY: maybe-html-target-libatomic html-target-libatomic
47529maybe-html-target-libatomic:
47530@if target-libatomic
47531maybe-html-target-libatomic: html-target-libatomic
47532
47533html-target-libatomic: \
47534 configure-target-libatomic
47535 @: $(MAKE); $(unstage)
22121df0 47536 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47537 r=`${PWD_COMMAND}`; export r; \
47538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47539 $(NORMAL_TARGET_EXPORTS) \
22121df0 47540 echo "Doing html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47541 for flag in $(EXTRA_TARGET_FLAGS); do \
47542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47543 done; \
47544 (cd $(TARGET_SUBDIR)/libatomic && \
47545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47547 "RANLIB=$${RANLIB}" \
47548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47549 html) \
47550 || exit 1
47551
47552@endif target-libatomic
47553
47554.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
47555maybe-TAGS-target-libatomic:
47556@if target-libatomic
47557maybe-TAGS-target-libatomic: TAGS-target-libatomic
47558
47559TAGS-target-libatomic: \
47560 configure-target-libatomic
47561 @: $(MAKE); $(unstage)
22121df0 47562 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47563 r=`${PWD_COMMAND}`; export r; \
47564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47565 $(NORMAL_TARGET_EXPORTS) \
22121df0 47566 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47567 for flag in $(EXTRA_TARGET_FLAGS); do \
47568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47569 done; \
47570 (cd $(TARGET_SUBDIR)/libatomic && \
47571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47573 "RANLIB=$${RANLIB}" \
47574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47575 TAGS) \
47576 || exit 1
47577
47578@endif target-libatomic
47579
47580.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
47581maybe-install-info-target-libatomic:
47582@if target-libatomic
47583maybe-install-info-target-libatomic: install-info-target-libatomic
47584
47585install-info-target-libatomic: \
47586 configure-target-libatomic \
47587 info-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 install-info 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 install-info) \
47603 || exit 1
47604
47605@endif target-libatomic
47606
47607.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
47608maybe-install-pdf-target-libatomic:
47609@if target-libatomic
47610maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
47611
47612install-pdf-target-libatomic: \
47613 configure-target-libatomic \
47614 pdf-target-libatomic
47615 @: $(MAKE); $(unstage)
22121df0 47616 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47617 r=`${PWD_COMMAND}`; export r; \
47618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47619 $(NORMAL_TARGET_EXPORTS) \
22121df0 47620 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47621 for flag in $(EXTRA_TARGET_FLAGS); do \
47622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47623 done; \
47624 (cd $(TARGET_SUBDIR)/libatomic && \
47625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47627 "RANLIB=$${RANLIB}" \
47628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47629 install-pdf) \
47630 || exit 1
47631
47632@endif target-libatomic
47633
47634.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
47635maybe-install-html-target-libatomic:
47636@if target-libatomic
47637maybe-install-html-target-libatomic: install-html-target-libatomic
47638
47639install-html-target-libatomic: \
47640 configure-target-libatomic \
47641 html-target-libatomic
47642 @: $(MAKE); $(unstage)
22121df0 47643 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47644 r=`${PWD_COMMAND}`; export r; \
47645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47646 $(NORMAL_TARGET_EXPORTS) \
22121df0 47647 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47648 for flag in $(EXTRA_TARGET_FLAGS); do \
47649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47650 done; \
47651 (cd $(TARGET_SUBDIR)/libatomic && \
47652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47654 "RANLIB=$${RANLIB}" \
47655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47656 install-html) \
47657 || exit 1
47658
47659@endif target-libatomic
47660
47661.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
47662maybe-installcheck-target-libatomic:
47663@if target-libatomic
47664maybe-installcheck-target-libatomic: installcheck-target-libatomic
47665
47666installcheck-target-libatomic: \
47667 configure-target-libatomic
47668 @: $(MAKE); $(unstage)
22121df0 47669 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47670 r=`${PWD_COMMAND}`; export r; \
47671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47672 $(NORMAL_TARGET_EXPORTS) \
22121df0 47673 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47674 for flag in $(EXTRA_TARGET_FLAGS); do \
47675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47676 done; \
47677 (cd $(TARGET_SUBDIR)/libatomic && \
47678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47680 "RANLIB=$${RANLIB}" \
47681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47682 installcheck) \
47683 || exit 1
47684
47685@endif target-libatomic
47686
47687.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
47688maybe-mostlyclean-target-libatomic:
47689@if target-libatomic
47690maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
47691
47692mostlyclean-target-libatomic:
47693 @: $(MAKE); $(unstage)
22121df0 47694 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47695 r=`${PWD_COMMAND}`; export r; \
47696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47697 $(NORMAL_TARGET_EXPORTS) \
22121df0 47698 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47699 for flag in $(EXTRA_TARGET_FLAGS); do \
47700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47701 done; \
47702 (cd $(TARGET_SUBDIR)/libatomic && \
47703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47705 "RANLIB=$${RANLIB}" \
47706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47707 mostlyclean) \
47708 || exit 1
47709
47710@endif target-libatomic
47711
47712.PHONY: maybe-clean-target-libatomic clean-target-libatomic
47713maybe-clean-target-libatomic:
47714@if target-libatomic
47715maybe-clean-target-libatomic: clean-target-libatomic
47716
47717clean-target-libatomic:
47718 @: $(MAKE); $(unstage)
22121df0 47719 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47720 r=`${PWD_COMMAND}`; export r; \
47721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47722 $(NORMAL_TARGET_EXPORTS) \
22121df0 47723 echo "Doing clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47724 for flag in $(EXTRA_TARGET_FLAGS); do \
47725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47726 done; \
47727 (cd $(TARGET_SUBDIR)/libatomic && \
47728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47730 "RANLIB=$${RANLIB}" \
47731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47732 clean) \
47733 || exit 1
47734
47735@endif target-libatomic
47736
47737.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
47738maybe-distclean-target-libatomic:
47739@if target-libatomic
47740maybe-distclean-target-libatomic: distclean-target-libatomic
47741
47742distclean-target-libatomic:
47743 @: $(MAKE); $(unstage)
22121df0 47744 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47745 r=`${PWD_COMMAND}`; export r; \
47746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47747 $(NORMAL_TARGET_EXPORTS) \
22121df0 47748 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47749 for flag in $(EXTRA_TARGET_FLAGS); do \
47750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47751 done; \
47752 (cd $(TARGET_SUBDIR)/libatomic && \
47753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47755 "RANLIB=$${RANLIB}" \
47756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47757 distclean) \
47758 || exit 1
47759
47760@endif target-libatomic
47761
47762.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
47763maybe-maintainer-clean-target-libatomic:
47764@if target-libatomic
47765maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
47766
47767maintainer-clean-target-libatomic:
47768 @: $(MAKE); $(unstage)
22121df0 47769 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47770 r=`${PWD_COMMAND}`; export r; \
47771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47772 $(NORMAL_TARGET_EXPORTS) \
22121df0 47773 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47774 for flag in $(EXTRA_TARGET_FLAGS); do \
47775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47776 done; \
47777 (cd $(TARGET_SUBDIR)/libatomic && \
47778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47780 "RANLIB=$${RANLIB}" \
47781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47782 maintainer-clean) \
47783 || exit 1
47784
47785@endif target-libatomic
47786
47787
47788
7ec59b9e
L
47789@if target-libgomp
47790.PHONY: check-target-libgomp-c++
47791check-target-libgomp-c++:
47792 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
47793
e0541124
EB
47794.PHONY: check-target-libgomp-fortran
47795check-target-libgomp-fortran:
47796 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) fortran.exp" check-target-libgomp
47797
7ec59b9e
L
47798@endif target-libgomp
47799
47800@if target-libitm
47801.PHONY: check-target-libitm-c++
47802check-target-libitm-c++:
47803 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
47804
47805@endif target-libitm
47806
15723a45
NN
47807# ----------
47808# GCC module
47809# ----------
47810
319cab08 47811@if gcc-no-bootstrap
252b5132 47812.PHONY: cross
72b2455a 47813cross: all-build all-gas all-ld
b40e3958
L
47814 @r=`${PWD_COMMAND}`; export r; \
47815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47816 $(HOST_EXPORTS) \
252b5132 47817 echo "Building the C and C++ compiler"; \
5cec67bf 47818 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958 47819 @r=`${PWD_COMMAND}`; export r; \
22121df0 47820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132 47821 echo "Building runtime libraries"; \
656fdd47 47822 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 47823@endif gcc-no-bootstrap
252b5132 47824
6bd3dfaa 47825@if gcc
c50523ce
L
47826
47827.PHONY: check-gcc-c check-c
47828check-gcc-c:
47829 r=`${PWD_COMMAND}`; export r; \
47830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47831 $(HOST_EXPORTS) \
47832 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
47833check-c: check-gcc-c
47834
47835.PHONY: check-gcc-c++ check-c++
7d695d07 47836check-gcc-c++:
c50523ce
L
47837 r=`${PWD_COMMAND}`; export r; \
47838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47839 $(HOST_EXPORTS) \
7ec59b9e 47840 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 47841check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
47842
47843.PHONY: check-gcc-fortran check-fortran
47844check-gcc-fortran:
47845 r=`${PWD_COMMAND}`; export r; \
47846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47847 $(HOST_EXPORTS) \
47848 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e0541124 47849check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran check-target-libgomp-fortran
c50523ce 47850
c50523ce
L
47851.PHONY: check-gcc-ada check-ada
47852check-gcc-ada:
47853 r=`${PWD_COMMAND}`; export r; \
47854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47855 $(HOST_EXPORTS) \
47856 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
47857check-ada: check-gcc-ada check-target-libada
47858
47859.PHONY: check-gcc-objc check-objc
47860check-gcc-objc:
47861 r=`${PWD_COMMAND}`; export r; \
47862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47863 $(HOST_EXPORTS) \
47864 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
47865check-objc: check-gcc-objc check-target-libobjc
47866
47867.PHONY: check-gcc-obj-c++ check-obj-c++
47868check-gcc-obj-c++:
47869 r=`${PWD_COMMAND}`; export r; \
47870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47871 $(HOST_EXPORTS) \
47872 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
47873check-obj-c++: check-gcc-obj-c++
7d695d07 47874
e552509b
ILT
47875.PHONY: check-gcc-go check-go
47876check-gcc-go:
47877 r=`${PWD_COMMAND}`; export r; \
47878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47879 $(HOST_EXPORTS) \
47880 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
e3f56a99 47881check-go: check-gcc-go check-target-libgo
e552509b 47882
252b5132 47883
7ec59b9e
L
47884# The gcc part of install-no-fixedincludes, which relies on an intimate
47885# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
47886.PHONY: gcc-install-no-fixedincludes
47887gcc-install-no-fixedincludes:
15723a45 47888 @if [ -f ./gcc/Makefile ]; then \
b40e3958 47889 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 47890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 47891 $(HOST_EXPORTS) \
7ec59b9e
L
47892 (cd ./gcc \
47893 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 47894 else true; fi
6bd3dfaa 47895@endif gcc
4fa63067 47896
b813574b
PB
47897# ---------------------
47898# GCC bootstrap support
47899# ---------------------
4fa63067 47900
b813574b
PB
47901# We track the current stage (the one in 'gcc') in the stage_current file.
47902# stage_last instead tracks the stage that was built last. These targets
47903# are dummy when toplevel bootstrap is not active.
4fa63067 47904
f70224b5 47905# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
47906# there, so $(unstage) should be run at various points. To avoid excessive
47907# recursive invocations of make, we "inline" them using a variable. These
47908# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
47909# to avoid warnings from the GNU Make job server.
f70224b5
PB
47910
47911unstage = :
47912stage = :
c52c6897 47913current_stage = ""
f70224b5 47914
b813574b 47915@if gcc-bootstrap
9daf3993 47916unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 47917stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 47918current_stage = "`cat stage_current 2> /dev/null`"
b813574b 47919@endif gcc-bootstrap
4fa63067 47920
f70224b5
PB
47921.PHONY: unstage stage
47922unstage:
0aed8855 47923 @: $(MAKE); $(unstage)
b813574b 47924stage:
0aed8855 47925 @: $(MAKE); $(stage)
1d39f329 47926
80911fe1
PB
47927# Disable commands for lean bootstrap.
47928LEAN = false
47929
dfdffa2c
PB
47930# We name the build directories for the various stages "stage1-gcc",
47931# "stage2-gcc","stage3-gcc", etc.
47932
47933# Since the 'compare' process will fail (on debugging information) if any
47934# directory names are different, we need to link the gcc directory for
0aed8855 47935# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
47936# the build directories constant as well. For the latter, we use naked names
47937# like 'gcc', because the scripts in that directory assume it. We use
47938# mv on platforms where symlinks to directories do not work or are not
47939# reliable.
47940
1d39f329
NN
47941# 'touch' doesn't work right on some platforms.
47942STAMP = echo timestamp >
47943
dfdffa2c
PB
47944# We only want to compare .o files, so set this!
47945objext = .o
47946
dfdffa2c 47947
319cab08 47948.PHONY: stage1-start stage1-end
dfdffa2c 47949
656fdd47 47950stage1-start::
0aed8855 47951 @: $(MAKE); $(stage); \
22121df0 47952 echo stage1 > stage_current; \
b00612cc 47953 echo stage1 > stage_last; \
0aed8855 47954 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 47955@if bfd
b00612cc
PB
47956 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
47957 mkdir stage1-bfd; \
22121df0 47958 mv stage1-bfd bfd
72b2455a
PB
47959@endif bfd
47960@if opcodes
b00612cc
PB
47961 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
47962 mkdir stage1-opcodes; \
22121df0 47963 mv stage1-opcodes opcodes
72b2455a
PB
47964@endif opcodes
47965@if binutils
b00612cc
PB
47966 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
47967 mkdir stage1-binutils; \
22121df0 47968 mv stage1-binutils binutils
72b2455a 47969@endif binutils
201f096f 47970@if fixincludes
47971 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
47972 mkdir stage1-fixincludes; \
22121df0 47973 mv stage1-fixincludes fixincludes
201f096f 47974@endif fixincludes
72b2455a 47975@if gas
b00612cc
PB
47976 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
47977 mkdir stage1-gas; \
22121df0 47978 mv stage1-gas gas
72b2455a
PB
47979@endif gas
47980@if gcc
b00612cc
PB
47981 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
47982 mkdir stage1-gcc; \
22121df0 47983 mv stage1-gcc gcc
72b2455a 47984@endif gcc
4b900473
PB
47985@if gmp
47986 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
47987 mkdir stage1-gmp; \
22121df0 47988 mv stage1-gmp gmp
4b900473
PB
47989@endif gmp
47990@if mpfr
47991 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
47992 mkdir stage1-mpfr; \
22121df0 47993 mv stage1-mpfr mpfr
4b900473 47994@endif mpfr
e8a5fa9c
RW
47995@if mpc
47996 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
47997 mkdir stage1-mpc; \
22121df0 47998 mv stage1-mpc mpc
e8a5fa9c 47999@endif mpc
7ec59b9e
L
48000@if isl
48001 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
48002 mkdir stage1-isl; \
22121df0 48003 mv stage1-isl isl
7ec59b9e 48004@endif isl
1f53ca9a
AO
48005@if libelf
48006 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
48007 mkdir stage1-libelf; \
22121df0 48008 mv stage1-libelf libelf
1f53ca9a 48009@endif libelf
93f9b408
ILT
48010@if gold
48011 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
48012 mkdir stage1-gold; \
22121df0 48013 mv stage1-gold gold
93f9b408 48014@endif gold
72b2455a 48015@if intl
b00612cc
PB
48016 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
48017 mkdir stage1-intl; \
22121df0 48018 mv stage1-intl intl
72b2455a
PB
48019@endif intl
48020@if ld
b00612cc
PB
48021 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
48022 mkdir stage1-ld; \
22121df0 48023 mv stage1-ld ld
72b2455a 48024@endif ld
2bf680c4
ILT
48025@if libbacktrace
48026 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
48027 mkdir stage1-libbacktrace; \
22121df0 48028 mv stage1-libbacktrace libbacktrace
2bf680c4 48029@endif libbacktrace
72b2455a 48030@if libcpp
b00612cc
PB
48031 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
48032 mkdir stage1-libcpp; \
22121df0 48033 mv stage1-libcpp libcpp
72b2455a 48034@endif libcpp
be01d343
PB
48035@if libdecnumber
48036 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
48037 mkdir stage1-libdecnumber; \
22121df0 48038 mv stage1-libdecnumber libdecnumber
be01d343 48039@endif libdecnumber
72b2455a 48040@if libiberty
b00612cc
PB
48041 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
48042 mkdir stage1-libiberty; \
22121df0 48043 mv stage1-libiberty libiberty
72b2455a 48044@endif libiberty
1b6c0831
L
48045@if libiberty-linker-plugin
48046 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
48047 mkdir stage1-libiberty-linker-plugin; \
22121df0 48048 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
1b6c0831 48049@endif libiberty-linker-plugin
016a3251
DD
48050@if libiconv
48051 @cd $(HOST_SUBDIR); [ -d stage1-libiconv ] || \
48052 mkdir stage1-libiconv; \
48053 mv stage1-libiconv libiconv
48054@endif libiconv
72b2455a 48055@if zlib
b00612cc
PB
48056 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
48057 mkdir stage1-zlib; \
22121df0 48058 mv stage1-zlib zlib
72b2455a 48059@endif zlib
700d40ca
ILT
48060@if lto-plugin
48061 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
48062 mkdir stage1-lto-plugin; \
22121df0 48063 mv stage1-lto-plugin lto-plugin
700d40ca 48064@endif lto-plugin
0e65dfba
NA
48065@if libctf
48066 @cd $(HOST_SUBDIR); [ -d stage1-libctf ] || \
48067 mkdir stage1-libctf; \
48068 mv stage1-libctf libctf
48069@endif libctf
0aed8855
PB
48070 @[ -d stage1-$(TARGET_SUBDIR) ] || \
48071 mkdir stage1-$(TARGET_SUBDIR); \
22121df0 48072 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 48073
80911fe1 48074stage1-end::
72b2455a 48075@if bfd
22121df0
L
48076 @if test -d $(HOST_SUBDIR)/bfd; then \
48077 cd $(HOST_SUBDIR); mv bfd stage1-bfd; \
0aed8855 48078 fi
72b2455a
PB
48079@endif bfd
48080@if opcodes
22121df0
L
48081 @if test -d $(HOST_SUBDIR)/opcodes; then \
48082 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes; \
0aed8855 48083 fi
72b2455a
PB
48084@endif opcodes
48085@if binutils
22121df0
L
48086 @if test -d $(HOST_SUBDIR)/binutils; then \
48087 cd $(HOST_SUBDIR); mv binutils stage1-binutils; \
0aed8855 48088 fi
72b2455a 48089@endif binutils
201f096f 48090@if fixincludes
22121df0
L
48091 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48092 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes; \
201f096f 48093 fi
48094@endif fixincludes
72b2455a 48095@if gas
22121df0
L
48096 @if test -d $(HOST_SUBDIR)/gas; then \
48097 cd $(HOST_SUBDIR); mv gas stage1-gas; \
0aed8855 48098 fi
72b2455a
PB
48099@endif gas
48100@if gcc
22121df0
L
48101 @if test -d $(HOST_SUBDIR)/gcc; then \
48102 cd $(HOST_SUBDIR); mv gcc stage1-gcc; \
0aed8855 48103 fi
72b2455a 48104@endif gcc
4b900473 48105@if gmp
22121df0
L
48106 @if test -d $(HOST_SUBDIR)/gmp; then \
48107 cd $(HOST_SUBDIR); mv gmp stage1-gmp; \
4b900473
PB
48108 fi
48109@endif gmp
48110@if mpfr
22121df0
L
48111 @if test -d $(HOST_SUBDIR)/mpfr; then \
48112 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr; \
4b900473
PB
48113 fi
48114@endif mpfr
e8a5fa9c 48115@if mpc
22121df0
L
48116 @if test -d $(HOST_SUBDIR)/mpc; then \
48117 cd $(HOST_SUBDIR); mv mpc stage1-mpc; \
e8a5fa9c
RW
48118 fi
48119@endif mpc
7ec59b9e 48120@if isl
22121df0
L
48121 @if test -d $(HOST_SUBDIR)/isl; then \
48122 cd $(HOST_SUBDIR); mv isl stage1-isl; \
e28c595f 48123 fi
7ec59b9e 48124@endif isl
1f53ca9a 48125@if libelf
22121df0
L
48126 @if test -d $(HOST_SUBDIR)/libelf; then \
48127 cd $(HOST_SUBDIR); mv libelf stage1-libelf; \
1f53ca9a
AO
48128 fi
48129@endif libelf
93f9b408 48130@if gold
22121df0
L
48131 @if test -d $(HOST_SUBDIR)/gold; then \
48132 cd $(HOST_SUBDIR); mv gold stage1-gold; \
93f9b408
ILT
48133 fi
48134@endif gold
72b2455a 48135@if intl
22121df0
L
48136 @if test -d $(HOST_SUBDIR)/intl; then \
48137 cd $(HOST_SUBDIR); mv intl stage1-intl; \
0aed8855 48138 fi
72b2455a
PB
48139@endif intl
48140@if ld
22121df0
L
48141 @if test -d $(HOST_SUBDIR)/ld; then \
48142 cd $(HOST_SUBDIR); mv ld stage1-ld; \
0aed8855 48143 fi
72b2455a 48144@endif ld
2bf680c4 48145@if libbacktrace
22121df0
L
48146 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48147 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace; \
2bf680c4
ILT
48148 fi
48149@endif libbacktrace
72b2455a 48150@if libcpp
22121df0
L
48151 @if test -d $(HOST_SUBDIR)/libcpp; then \
48152 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp; \
0aed8855 48153 fi
72b2455a 48154@endif libcpp
be01d343 48155@if libdecnumber
22121df0
L
48156 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48157 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber; \
0aed8855 48158 fi
be01d343 48159@endif libdecnumber
72b2455a 48160@if libiberty
22121df0
L
48161 @if test -d $(HOST_SUBDIR)/libiberty; then \
48162 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty; \
0aed8855 48163 fi
72b2455a 48164@endif libiberty
1b6c0831 48165@if libiberty-linker-plugin
22121df0
L
48166 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48167 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin; \
1b6c0831
L
48168 fi
48169@endif libiberty-linker-plugin
016a3251
DD
48170@if libiconv
48171 @if test -d $(HOST_SUBDIR)/libiconv; then \
48172 cd $(HOST_SUBDIR); mv libiconv stage1-libiconv; \
48173 fi
48174@endif libiconv
72b2455a 48175@if zlib
22121df0
L
48176 @if test -d $(HOST_SUBDIR)/zlib; then \
48177 cd $(HOST_SUBDIR); mv zlib stage1-zlib; \
0aed8855 48178 fi
72b2455a 48179@endif zlib
700d40ca 48180@if lto-plugin
22121df0
L
48181 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48182 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \
700d40ca
ILT
48183 fi
48184@endif lto-plugin
0e65dfba
NA
48185@if libctf
48186 @if test -d $(HOST_SUBDIR)/libctf; then \
48187 cd $(HOST_SUBDIR); mv libctf stage1-libctf; \
48188 fi
48189@endif libctf
22121df0
L
48190 @if test -d $(TARGET_SUBDIR); then \
48191 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); \
0aed8855 48192 fi
80911fe1 48193 rm -f stage_current
dfdffa2c 48194
973601e1 48195# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 48196# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48197# reconfigured either.
319cab08 48198.PHONY: stage1-bubble
656fdd47 48199stage1-bubble::
e360f423
PB
48200 @r=`${PWD_COMMAND}`; export r; \
48201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48202 if test -f stage1-lean ; then \
48203 echo Skipping rebuild of stage1; \
9cb3fa6f 48204 else \
f70224b5
PB
48205 $(MAKE) stage1-start; \
48206 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 48207 fi
72b2455a 48208
0df3d27f 48209.PHONY: all-stage1 clean-stage1
0df3d27f 48210do-clean: clean-stage1
0df3d27f 48211
72b2455a
PB
48212# FIXME: Will not need to be conditional when toplevel bootstrap is the
48213# only possibility, but now it conflicts with no-bootstrap rules
48214@if gcc-bootstrap
48215
48216
48217
48218
0df3d27f 48219# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48220
0df3d27f 48221.PHONY: distclean-stage1
72b2455a 48222distclean-stage1::
0aed8855 48223 @: $(MAKE); $(stage)
e00a73e3 48224 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 48225 rm -rf stage1-*
72b2455a
PB
48226
48227
48228@endif gcc-bootstrap
48229
48230
48231.PHONY: stage2-start stage2-end
48232
48233stage2-start::
0aed8855 48234 @: $(MAKE); $(stage); \
22121df0 48235 echo stage2 > stage_current; \
b00612cc 48236 echo stage2 > stage_last; \
0aed8855 48237 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48238@if bfd
b00612cc
PB
48239 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
48240 mkdir stage2-bfd; \
22121df0 48241 mv stage2-bfd bfd; \
80911fe1 48242 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
48243@endif bfd
48244@if opcodes
b00612cc
PB
48245 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
48246 mkdir stage2-opcodes; \
22121df0 48247 mv stage2-opcodes opcodes; \
80911fe1 48248 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
48249@endif opcodes
48250@if binutils
b00612cc
PB
48251 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
48252 mkdir stage2-binutils; \
22121df0 48253 mv stage2-binutils binutils; \
80911fe1 48254 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 48255@endif binutils
201f096f 48256@if fixincludes
48257 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
48258 mkdir stage2-fixincludes; \
22121df0 48259 mv stage2-fixincludes fixincludes; \
201f096f 48260 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
48261@endif fixincludes
72b2455a 48262@if gas
b00612cc
PB
48263 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
48264 mkdir stage2-gas; \
22121df0 48265 mv stage2-gas gas; \
80911fe1 48266 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
48267@endif gas
48268@if gcc
b00612cc
PB
48269 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
48270 mkdir stage2-gcc; \
22121df0 48271 mv stage2-gcc gcc; \
80911fe1 48272 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 48273@endif gcc
4b900473
PB
48274@if gmp
48275 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
48276 mkdir stage2-gmp; \
22121df0 48277 mv stage2-gmp gmp; \
4b900473
PB
48278 mv stage1-gmp prev-gmp || test -f stage1-lean
48279@endif gmp
48280@if mpfr
48281 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
48282 mkdir stage2-mpfr; \
22121df0 48283 mv stage2-mpfr mpfr; \
4b900473
PB
48284 mv stage1-mpfr prev-mpfr || test -f stage1-lean
48285@endif mpfr
e8a5fa9c
RW
48286@if mpc
48287 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
48288 mkdir stage2-mpc; \
22121df0 48289 mv stage2-mpc mpc; \
e8a5fa9c
RW
48290 mv stage1-mpc prev-mpc || test -f stage1-lean
48291@endif mpc
7ec59b9e
L
48292@if isl
48293 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
48294 mkdir stage2-isl; \
22121df0 48295 mv stage2-isl isl; \
7ec59b9e
L
48296 mv stage1-isl prev-isl || test -f stage1-lean
48297@endif isl
1f53ca9a
AO
48298@if libelf
48299 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
48300 mkdir stage2-libelf; \
22121df0 48301 mv stage2-libelf libelf; \
1f53ca9a
AO
48302 mv stage1-libelf prev-libelf || test -f stage1-lean
48303@endif libelf
93f9b408
ILT
48304@if gold
48305 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
48306 mkdir stage2-gold; \
22121df0 48307 mv stage2-gold gold; \
93f9b408
ILT
48308 mv stage1-gold prev-gold || test -f stage1-lean
48309@endif gold
72b2455a 48310@if intl
b00612cc
PB
48311 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
48312 mkdir stage2-intl; \
22121df0 48313 mv stage2-intl intl; \
80911fe1 48314 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
48315@endif intl
48316@if ld
b00612cc
PB
48317 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
48318 mkdir stage2-ld; \
22121df0 48319 mv stage2-ld ld; \
80911fe1 48320 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 48321@endif ld
2bf680c4
ILT
48322@if libbacktrace
48323 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
48324 mkdir stage2-libbacktrace; \
22121df0 48325 mv stage2-libbacktrace libbacktrace; \
2bf680c4
ILT
48326 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
48327@endif libbacktrace
72b2455a 48328@if libcpp
b00612cc
PB
48329 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
48330 mkdir stage2-libcpp; \
22121df0 48331 mv stage2-libcpp libcpp; \
80911fe1 48332 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 48333@endif libcpp
be01d343
PB
48334@if libdecnumber
48335 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
48336 mkdir stage2-libdecnumber; \
22121df0 48337 mv stage2-libdecnumber libdecnumber; \
80911fe1 48338 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 48339@endif libdecnumber
72b2455a 48340@if libiberty
b00612cc
PB
48341 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
48342 mkdir stage2-libiberty; \
22121df0 48343 mv stage2-libiberty libiberty; \
80911fe1 48344 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 48345@endif libiberty
1b6c0831
L
48346@if libiberty-linker-plugin
48347 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
48348 mkdir stage2-libiberty-linker-plugin; \
22121df0 48349 mv stage2-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48350 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
48351@endif libiberty-linker-plugin
016a3251
DD
48352@if libiconv
48353 @cd $(HOST_SUBDIR); [ -d stage2-libiconv ] || \
48354 mkdir stage2-libiconv; \
48355 mv stage2-libiconv libiconv; \
48356 mv stage1-libiconv prev-libiconv || test -f stage1-lean
48357@endif libiconv
72b2455a 48358@if zlib
b00612cc
PB
48359 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
48360 mkdir stage2-zlib; \
22121df0 48361 mv stage2-zlib zlib; \
80911fe1 48362 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 48363@endif zlib
700d40ca
ILT
48364@if lto-plugin
48365 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
48366 mkdir stage2-lto-plugin; \
22121df0 48367 mv stage2-lto-plugin lto-plugin; \
700d40ca
ILT
48368 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
48369@endif lto-plugin
0e65dfba
NA
48370@if libctf
48371 @cd $(HOST_SUBDIR); [ -d stage2-libctf ] || \
48372 mkdir stage2-libctf; \
48373 mv stage2-libctf libctf; \
48374 mv stage1-libctf prev-libctf || test -f stage1-lean
48375@endif libctf
0aed8855
PB
48376 @[ -d stage2-$(TARGET_SUBDIR) ] || \
48377 mkdir stage2-$(TARGET_SUBDIR); \
22121df0 48378 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 48379 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 48380
80911fe1 48381stage2-end::
72b2455a 48382@if bfd
22121df0
L
48383 @if test -d $(HOST_SUBDIR)/bfd; then \
48384 cd $(HOST_SUBDIR); mv bfd stage2-bfd; \
48385 mv prev-bfd stage1-bfd; : ; \
0aed8855 48386 fi
72b2455a
PB
48387@endif bfd
48388@if opcodes
22121df0
L
48389 @if test -d $(HOST_SUBDIR)/opcodes; then \
48390 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes; \
48391 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 48392 fi
72b2455a
PB
48393@endif opcodes
48394@if binutils
22121df0
L
48395 @if test -d $(HOST_SUBDIR)/binutils; then \
48396 cd $(HOST_SUBDIR); mv binutils stage2-binutils; \
48397 mv prev-binutils stage1-binutils; : ; \
0aed8855 48398 fi
72b2455a 48399@endif binutils
201f096f 48400@if fixincludes
22121df0
L
48401 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48402 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes; \
48403 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 48404 fi
48405@endif fixincludes
72b2455a 48406@if gas
22121df0
L
48407 @if test -d $(HOST_SUBDIR)/gas; then \
48408 cd $(HOST_SUBDIR); mv gas stage2-gas; \
48409 mv prev-gas stage1-gas; : ; \
0aed8855 48410 fi
72b2455a
PB
48411@endif gas
48412@if gcc
22121df0
L
48413 @if test -d $(HOST_SUBDIR)/gcc; then \
48414 cd $(HOST_SUBDIR); mv gcc stage2-gcc; \
48415 mv prev-gcc stage1-gcc; : ; \
0aed8855 48416 fi
72b2455a 48417@endif gcc
4b900473 48418@if gmp
22121df0
L
48419 @if test -d $(HOST_SUBDIR)/gmp; then \
48420 cd $(HOST_SUBDIR); mv gmp stage2-gmp; \
48421 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
48422 fi
48423@endif gmp
48424@if mpfr
22121df0
L
48425 @if test -d $(HOST_SUBDIR)/mpfr; then \
48426 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr; \
48427 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
48428 fi
48429@endif mpfr
e8a5fa9c 48430@if mpc
22121df0
L
48431 @if test -d $(HOST_SUBDIR)/mpc; then \
48432 cd $(HOST_SUBDIR); mv mpc stage2-mpc; \
48433 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
48434 fi
48435@endif mpc
7ec59b9e 48436@if isl
22121df0
L
48437 @if test -d $(HOST_SUBDIR)/isl; then \
48438 cd $(HOST_SUBDIR); mv isl stage2-isl; \
48439 mv prev-isl stage1-isl; : ; \
e28c595f 48440 fi
7ec59b9e 48441@endif isl
1f53ca9a 48442@if libelf
22121df0
L
48443 @if test -d $(HOST_SUBDIR)/libelf; then \
48444 cd $(HOST_SUBDIR); mv libelf stage2-libelf; \
48445 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
48446 fi
48447@endif libelf
93f9b408 48448@if gold
22121df0
L
48449 @if test -d $(HOST_SUBDIR)/gold; then \
48450 cd $(HOST_SUBDIR); mv gold stage2-gold; \
48451 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
48452 fi
48453@endif gold
72b2455a 48454@if intl
22121df0
L
48455 @if test -d $(HOST_SUBDIR)/intl; then \
48456 cd $(HOST_SUBDIR); mv intl stage2-intl; \
48457 mv prev-intl stage1-intl; : ; \
0aed8855 48458 fi
72b2455a
PB
48459@endif intl
48460@if ld
22121df0
L
48461 @if test -d $(HOST_SUBDIR)/ld; then \
48462 cd $(HOST_SUBDIR); mv ld stage2-ld; \
48463 mv prev-ld stage1-ld; : ; \
0aed8855 48464 fi
72b2455a 48465@endif ld
2bf680c4 48466@if libbacktrace
22121df0
L
48467 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48468 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace; \
48469 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
48470 fi
48471@endif libbacktrace
72b2455a 48472@if libcpp
22121df0
L
48473 @if test -d $(HOST_SUBDIR)/libcpp; then \
48474 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp; \
48475 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 48476 fi
72b2455a 48477@endif libcpp
be01d343 48478@if libdecnumber
22121df0
L
48479 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48480 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber; \
48481 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 48482 fi
be01d343 48483@endif libdecnumber
72b2455a 48484@if libiberty
22121df0
L
48485 @if test -d $(HOST_SUBDIR)/libiberty; then \
48486 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty; \
48487 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 48488 fi
72b2455a 48489@endif libiberty
1b6c0831 48490@if libiberty-linker-plugin
22121df0
L
48491 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48492 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin; \
48493 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
48494 fi
48495@endif libiberty-linker-plugin
016a3251
DD
48496@if libiconv
48497 @if test -d $(HOST_SUBDIR)/libiconv; then \
48498 cd $(HOST_SUBDIR); mv libiconv stage2-libiconv; \
48499 mv prev-libiconv stage1-libiconv; : ; \
48500 fi
48501@endif libiconv
72b2455a 48502@if zlib
22121df0
L
48503 @if test -d $(HOST_SUBDIR)/zlib; then \
48504 cd $(HOST_SUBDIR); mv zlib stage2-zlib; \
48505 mv prev-zlib stage1-zlib; : ; \
0aed8855 48506 fi
72b2455a 48507@endif zlib
700d40ca 48508@if lto-plugin
22121df0
L
48509 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48510 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin; \
48511 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
48512 fi
48513@endif lto-plugin
0e65dfba
NA
48514@if libctf
48515 @if test -d $(HOST_SUBDIR)/libctf; then \
48516 cd $(HOST_SUBDIR); mv libctf stage2-libctf; \
48517 mv prev-libctf stage1-libctf; : ; \
48518 fi
48519@endif libctf
22121df0
L
48520 @if test -d $(TARGET_SUBDIR); then \
48521 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); \
48522 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 48523 fi
80911fe1 48524 rm -f stage_current
72b2455a 48525
973601e1 48526# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 48527# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48528# reconfigured either.
72b2455a
PB
48529.PHONY: stage2-bubble
48530stage2-bubble:: stage1-bubble
e360f423
PB
48531 @r=`${PWD_COMMAND}`; export r; \
48532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48533 if test -f stage2-lean || test -f stage1-lean ; then \
48534 echo Skipping rebuild of stage2; \
9cb3fa6f 48535 else \
f70224b5
PB
48536 $(MAKE) stage2-start; \
48537 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 48538 fi
72b2455a 48539
0df3d27f 48540.PHONY: all-stage2 clean-stage2
0df3d27f 48541do-clean: clean-stage2
0df3d27f 48542
72b2455a
PB
48543# FIXME: Will not need to be conditional when toplevel bootstrap is the
48544# only possibility, but now it conflicts with no-bootstrap rules
48545@if gcc-bootstrap
48546
48547
48548
80911fe1 48549.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
48550bootstrap2:
48551 echo stage2 > stage_final
48552 @r=`${PWD_COMMAND}`; export r; \
48553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48554 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 48555 @: $(MAKE); $(unstage)
be01d343
PB
48556 @r=`${PWD_COMMAND}`; export r; \
48557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48558 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 48559 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 48560
80911fe1
PB
48561bootstrap2-lean:
48562 echo stage2 > stage_final
48563 @r=`${PWD_COMMAND}`; export r; \
48564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48565 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
48566 @: $(MAKE); $(unstage)
48567 @r=`${PWD_COMMAND}`; export r; \
48568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48569 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
48570 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48571
72b2455a 48572
0df3d27f 48573# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48574distclean-stage1:: distclean-stage2
0df3d27f 48575.PHONY: distclean-stage2
72b2455a 48576distclean-stage2::
0aed8855 48577 @: $(MAKE); $(stage)
e00a73e3 48578 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 48579 rm -rf stage2-*
72b2455a
PB
48580
48581
48582@endif gcc-bootstrap
48583
48584
48585.PHONY: stage3-start stage3-end
48586
48587stage3-start::
0aed8855 48588 @: $(MAKE); $(stage); \
22121df0 48589 echo stage3 > stage_current; \
b00612cc 48590 echo stage3 > stage_last; \
0aed8855 48591 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48592@if bfd
b00612cc
PB
48593 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
48594 mkdir stage3-bfd; \
22121df0 48595 mv stage3-bfd bfd; \
80911fe1 48596 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
48597@endif bfd
48598@if opcodes
b00612cc
PB
48599 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
48600 mkdir stage3-opcodes; \
22121df0 48601 mv stage3-opcodes opcodes; \
80911fe1 48602 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
48603@endif opcodes
48604@if binutils
b00612cc
PB
48605 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
48606 mkdir stage3-binutils; \
22121df0 48607 mv stage3-binutils binutils; \
80911fe1 48608 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 48609@endif binutils
201f096f 48610@if fixincludes
48611 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
48612 mkdir stage3-fixincludes; \
22121df0 48613 mv stage3-fixincludes fixincludes; \
201f096f 48614 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
48615@endif fixincludes
72b2455a 48616@if gas
b00612cc
PB
48617 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
48618 mkdir stage3-gas; \
22121df0 48619 mv stage3-gas gas; \
80911fe1 48620 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
48621@endif gas
48622@if gcc
b00612cc
PB
48623 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
48624 mkdir stage3-gcc; \
22121df0 48625 mv stage3-gcc gcc; \
80911fe1 48626 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 48627@endif gcc
4b900473
PB
48628@if gmp
48629 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
48630 mkdir stage3-gmp; \
22121df0 48631 mv stage3-gmp gmp; \
4b900473
PB
48632 mv stage2-gmp prev-gmp || test -f stage2-lean
48633@endif gmp
48634@if mpfr
48635 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
48636 mkdir stage3-mpfr; \
22121df0 48637 mv stage3-mpfr mpfr; \
4b900473
PB
48638 mv stage2-mpfr prev-mpfr || test -f stage2-lean
48639@endif mpfr
e8a5fa9c
RW
48640@if mpc
48641 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
48642 mkdir stage3-mpc; \
22121df0 48643 mv stage3-mpc mpc; \
e8a5fa9c
RW
48644 mv stage2-mpc prev-mpc || test -f stage2-lean
48645@endif mpc
7ec59b9e
L
48646@if isl
48647 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
48648 mkdir stage3-isl; \
22121df0 48649 mv stage3-isl isl; \
7ec59b9e
L
48650 mv stage2-isl prev-isl || test -f stage2-lean
48651@endif isl
1f53ca9a
AO
48652@if libelf
48653 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
48654 mkdir stage3-libelf; \
22121df0 48655 mv stage3-libelf libelf; \
1f53ca9a
AO
48656 mv stage2-libelf prev-libelf || test -f stage2-lean
48657@endif libelf
93f9b408
ILT
48658@if gold
48659 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
48660 mkdir stage3-gold; \
22121df0 48661 mv stage3-gold gold; \
93f9b408
ILT
48662 mv stage2-gold prev-gold || test -f stage2-lean
48663@endif gold
72b2455a 48664@if intl
b00612cc
PB
48665 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
48666 mkdir stage3-intl; \
22121df0 48667 mv stage3-intl intl; \
80911fe1 48668 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
48669@endif intl
48670@if ld
b00612cc
PB
48671 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
48672 mkdir stage3-ld; \
22121df0 48673 mv stage3-ld ld; \
80911fe1 48674 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 48675@endif ld
2bf680c4
ILT
48676@if libbacktrace
48677 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
48678 mkdir stage3-libbacktrace; \
22121df0 48679 mv stage3-libbacktrace libbacktrace; \
2bf680c4
ILT
48680 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
48681@endif libbacktrace
72b2455a 48682@if libcpp
b00612cc
PB
48683 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
48684 mkdir stage3-libcpp; \
22121df0 48685 mv stage3-libcpp libcpp; \
80911fe1 48686 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 48687@endif libcpp
be01d343
PB
48688@if libdecnumber
48689 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
48690 mkdir stage3-libdecnumber; \
22121df0 48691 mv stage3-libdecnumber libdecnumber; \
80911fe1 48692 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 48693@endif libdecnumber
72b2455a 48694@if libiberty
b00612cc
PB
48695 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
48696 mkdir stage3-libiberty; \
22121df0 48697 mv stage3-libiberty libiberty; \
80911fe1 48698 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 48699@endif libiberty
1b6c0831
L
48700@if libiberty-linker-plugin
48701 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
48702 mkdir stage3-libiberty-linker-plugin; \
22121df0 48703 mv stage3-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48704 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
48705@endif libiberty-linker-plugin
016a3251
DD
48706@if libiconv
48707 @cd $(HOST_SUBDIR); [ -d stage3-libiconv ] || \
48708 mkdir stage3-libiconv; \
48709 mv stage3-libiconv libiconv; \
48710 mv stage2-libiconv prev-libiconv || test -f stage2-lean
48711@endif libiconv
72b2455a 48712@if zlib
b00612cc
PB
48713 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
48714 mkdir stage3-zlib; \
22121df0 48715 mv stage3-zlib zlib; \
80911fe1 48716 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 48717@endif zlib
700d40ca
ILT
48718@if lto-plugin
48719 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
48720 mkdir stage3-lto-plugin; \
22121df0 48721 mv stage3-lto-plugin lto-plugin; \
700d40ca
ILT
48722 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
48723@endif lto-plugin
0e65dfba
NA
48724@if libctf
48725 @cd $(HOST_SUBDIR); [ -d stage3-libctf ] || \
48726 mkdir stage3-libctf; \
48727 mv stage3-libctf libctf; \
48728 mv stage2-libctf prev-libctf || test -f stage2-lean
48729@endif libctf
0aed8855
PB
48730 @[ -d stage3-$(TARGET_SUBDIR) ] || \
48731 mkdir stage3-$(TARGET_SUBDIR); \
22121df0 48732 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 48733 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 48734
80911fe1 48735stage3-end::
72b2455a 48736@if bfd
22121df0
L
48737 @if test -d $(HOST_SUBDIR)/bfd; then \
48738 cd $(HOST_SUBDIR); mv bfd stage3-bfd; \
48739 mv prev-bfd stage2-bfd; : ; \
0aed8855 48740 fi
72b2455a
PB
48741@endif bfd
48742@if opcodes
22121df0
L
48743 @if test -d $(HOST_SUBDIR)/opcodes; then \
48744 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes; \
48745 mv prev-opcodes stage2-opcodes; : ; \
0aed8855 48746 fi
72b2455a
PB
48747@endif opcodes
48748@if binutils
22121df0
L
48749 @if test -d $(HOST_SUBDIR)/binutils; then \
48750 cd $(HOST_SUBDIR); mv binutils stage3-binutils; \
48751 mv prev-binutils stage2-binutils; : ; \
0aed8855 48752 fi
72b2455a 48753@endif binutils
201f096f 48754@if fixincludes
22121df0
L
48755 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48756 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes; \
48757 mv prev-fixincludes stage2-fixincludes; : ; \
201f096f 48758 fi
48759@endif fixincludes
72b2455a 48760@if gas
22121df0
L
48761 @if test -d $(HOST_SUBDIR)/gas; then \
48762 cd $(HOST_SUBDIR); mv gas stage3-gas; \
48763 mv prev-gas stage2-gas; : ; \
0aed8855 48764 fi
72b2455a
PB
48765@endif gas
48766@if gcc
22121df0
L
48767 @if test -d $(HOST_SUBDIR)/gcc; then \
48768 cd $(HOST_SUBDIR); mv gcc stage3-gcc; \
48769 mv prev-gcc stage2-gcc; : ; \
0aed8855 48770 fi
72b2455a 48771@endif gcc
4b900473 48772@if gmp
22121df0
L
48773 @if test -d $(HOST_SUBDIR)/gmp; then \
48774 cd $(HOST_SUBDIR); mv gmp stage3-gmp; \
48775 mv prev-gmp stage2-gmp; : ; \
4b900473
PB
48776 fi
48777@endif gmp
48778@if mpfr
22121df0
L
48779 @if test -d $(HOST_SUBDIR)/mpfr; then \
48780 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr; \
48781 mv prev-mpfr stage2-mpfr; : ; \
4b900473
PB
48782 fi
48783@endif mpfr
e8a5fa9c 48784@if mpc
22121df0
L
48785 @if test -d $(HOST_SUBDIR)/mpc; then \
48786 cd $(HOST_SUBDIR); mv mpc stage3-mpc; \
48787 mv prev-mpc stage2-mpc; : ; \
e8a5fa9c
RW
48788 fi
48789@endif mpc
7ec59b9e 48790@if isl
22121df0
L
48791 @if test -d $(HOST_SUBDIR)/isl; then \
48792 cd $(HOST_SUBDIR); mv isl stage3-isl; \
48793 mv prev-isl stage2-isl; : ; \
e28c595f 48794 fi
7ec59b9e 48795@endif isl
1f53ca9a 48796@if libelf
22121df0
L
48797 @if test -d $(HOST_SUBDIR)/libelf; then \
48798 cd $(HOST_SUBDIR); mv libelf stage3-libelf; \
48799 mv prev-libelf stage2-libelf; : ; \
1f53ca9a
AO
48800 fi
48801@endif libelf
93f9b408 48802@if gold
22121df0
L
48803 @if test -d $(HOST_SUBDIR)/gold; then \
48804 cd $(HOST_SUBDIR); mv gold stage3-gold; \
48805 mv prev-gold stage2-gold; : ; \
93f9b408
ILT
48806 fi
48807@endif gold
72b2455a 48808@if intl
22121df0
L
48809 @if test -d $(HOST_SUBDIR)/intl; then \
48810 cd $(HOST_SUBDIR); mv intl stage3-intl; \
48811 mv prev-intl stage2-intl; : ; \
0aed8855 48812 fi
72b2455a
PB
48813@endif intl
48814@if ld
22121df0
L
48815 @if test -d $(HOST_SUBDIR)/ld; then \
48816 cd $(HOST_SUBDIR); mv ld stage3-ld; \
48817 mv prev-ld stage2-ld; : ; \
0aed8855 48818 fi
72b2455a 48819@endif ld
2bf680c4 48820@if libbacktrace
22121df0
L
48821 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48822 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace; \
48823 mv prev-libbacktrace stage2-libbacktrace; : ; \
2bf680c4
ILT
48824 fi
48825@endif libbacktrace
72b2455a 48826@if libcpp
22121df0
L
48827 @if test -d $(HOST_SUBDIR)/libcpp; then \
48828 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp; \
48829 mv prev-libcpp stage2-libcpp; : ; \
0aed8855 48830 fi
72b2455a 48831@endif libcpp
be01d343 48832@if libdecnumber
22121df0
L
48833 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48834 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber; \
48835 mv prev-libdecnumber stage2-libdecnumber; : ; \
0aed8855 48836 fi
be01d343 48837@endif libdecnumber
72b2455a 48838@if libiberty
22121df0
L
48839 @if test -d $(HOST_SUBDIR)/libiberty; then \
48840 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty; \
48841 mv prev-libiberty stage2-libiberty; : ; \
0aed8855 48842 fi
72b2455a 48843@endif libiberty
1b6c0831 48844@if libiberty-linker-plugin
22121df0
L
48845 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48846 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin; \
48847 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin; : ; \
1b6c0831
L
48848 fi
48849@endif libiberty-linker-plugin
016a3251
DD
48850@if libiconv
48851 @if test -d $(HOST_SUBDIR)/libiconv; then \
48852 cd $(HOST_SUBDIR); mv libiconv stage3-libiconv; \
48853 mv prev-libiconv stage2-libiconv; : ; \
48854 fi
48855@endif libiconv
72b2455a 48856@if zlib
22121df0
L
48857 @if test -d $(HOST_SUBDIR)/zlib; then \
48858 cd $(HOST_SUBDIR); mv zlib stage3-zlib; \
48859 mv prev-zlib stage2-zlib; : ; \
0aed8855 48860 fi
72b2455a 48861@endif zlib
700d40ca 48862@if lto-plugin
22121df0
L
48863 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48864 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin; \
48865 mv prev-lto-plugin stage2-lto-plugin; : ; \
700d40ca
ILT
48866 fi
48867@endif lto-plugin
0e65dfba
NA
48868@if libctf
48869 @if test -d $(HOST_SUBDIR)/libctf; then \
48870 cd $(HOST_SUBDIR); mv libctf stage3-libctf; \
48871 mv prev-libctf stage2-libctf; : ; \
48872 fi
48873@endif libctf
22121df0
L
48874 @if test -d $(TARGET_SUBDIR); then \
48875 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); \
48876 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); : ; \
0aed8855 48877 fi
80911fe1 48878 rm -f stage_current
72b2455a 48879
973601e1 48880# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 48881# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48882# reconfigured either.
72b2455a
PB
48883.PHONY: stage3-bubble
48884stage3-bubble:: stage2-bubble
e360f423
PB
48885 @r=`${PWD_COMMAND}`; export r; \
48886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48887 if test -f stage3-lean || test -f stage2-lean ; then \
48888 echo Skipping rebuild of stage3; \
9cb3fa6f 48889 else \
f70224b5 48890 $(MAKE) stage3-start; \
80911fe1 48891 if $(LEAN); then \
22121df0
L
48892 rm -rf stage1-*; \
48893 $(STAMP) stage1-lean; \
80911fe1 48894 fi; \
f70224b5 48895 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 48896 fi
f6d183c0 48897 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 48898
0df3d27f 48899.PHONY: all-stage3 clean-stage3
0df3d27f 48900do-clean: clean-stage3
0df3d27f 48901
d545f33b
PB
48902# FIXME: Will not need to be conditional when toplevel bootstrap is the
48903# only possibility, but now it conflicts with no-bootstrap rules
48904@if gcc-bootstrap
72b2455a 48905
d545f33b 48906compare:
e360f423
PB
48907 @r=`${PWD_COMMAND}`; export r; \
48908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48909 if test -f stage2-lean; then \
22121df0
L
48910 echo Cannot compare object files as stage 2 was deleted.; \
48911 exit 0; \
d545f33b 48912 fi; \
0aed8855 48913 : $(MAKE); $(stage); \
22121df0
L
48914 rm -f .bad_compare; \
48915 echo Comparing stages 2 and 3; \
fda13ee8
AO
48916 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
48917 files=`find stage3-* -name "*$(objext)" -print | \
22121df0 48918 sed -n s,^stage$$sed-,,p`; \
e3f56a99 48919 for file in $${files}; do \
fda13ee8
AO
48920 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
48921 if test ! -f $$f1; then continue; fi; \
8520c408 48922 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
48923 if test $$? -eq 1; then \
48924 case $$file in \
e8a5fa9c 48925 @compare_exclusions@) \
f70224b5
PB
48926 echo warning: $$file differs ;; \
48927 *) \
48928 echo $$file differs >> .bad_compare ;; \
22121df0
L
48929 esac; \
48930 fi; \
48931 done; \
d545f33b
PB
48932 if [ -f .bad_compare ]; then \
48933 echo "Bootstrap comparison failure!"; \
48934 cat .bad_compare; \
48935 exit 1; \
48936 else \
c52c6897 48937 echo Comparison successful.; \
22121df0 48938 fi; \
d545f33b 48939 $(STAMP) compare
80911fe1
PB
48940 if $(LEAN); then \
48941 rm -rf stage2-*; \
48942 $(STAMP) stage2-lean; \
48943 fi
9cb3fa6f 48944
72b2455a 48945
72b2455a 48946
80911fe1 48947.PHONY: bootstrap bootstrap-lean
be01d343
PB
48948bootstrap:
48949 echo stage3 > stage_final
48950 @r=`${PWD_COMMAND}`; export r; \
48951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48952 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 48953 @: $(MAKE); $(unstage)
be01d343
PB
48954 @r=`${PWD_COMMAND}`; export r; \
48955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48956 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 48957 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 48958
80911fe1
PB
48959bootstrap-lean:
48960 echo stage3 > stage_final
48961 @r=`${PWD_COMMAND}`; export r; \
48962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48963 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
48964 @: $(MAKE); $(unstage)
48965 @r=`${PWD_COMMAND}`; export r; \
48966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48967 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
48968 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48969
72b2455a 48970
d545f33b
PB
48971# Rules to wipe a stage and all the following ones, also used for cleanstrap
48972distclean-stage2:: distclean-stage3
48973.PHONY: distclean-stage3
48974distclean-stage3::
0aed8855 48975 @: $(MAKE); $(stage)
e00a73e3 48976 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 48977 rm -rf stage3-* compare
0df3d27f 48978
9cb3fa6f 48979
d545f33b 48980.PHONY: cleanstrap
e00a73e3
PB
48981cleanstrap: do-distclean local-clean
48982 echo stage3 > stage_final
48983 @r=`${PWD_COMMAND}`; export r; \
48984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48985 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
48986 @: $(MAKE); $(unstage)
48987 @r=`${PWD_COMMAND}`; export r; \
48988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 48989 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
48990 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
48991
48992@endif gcc-bootstrap
48993
48994
72b2455a
PB
48995.PHONY: stage4-start stage4-end
48996
48997stage4-start::
0aed8855 48998 @: $(MAKE); $(stage); \
22121df0 48999 echo stage4 > stage_current; \
b00612cc 49000 echo stage4 > stage_last; \
0aed8855 49001 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49002@if bfd
b00612cc
PB
49003 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
49004 mkdir stage4-bfd; \
22121df0 49005 mv stage4-bfd bfd; \
80911fe1 49006 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
49007@endif bfd
49008@if opcodes
b00612cc
PB
49009 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
49010 mkdir stage4-opcodes; \
22121df0 49011 mv stage4-opcodes opcodes; \
80911fe1 49012 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
49013@endif opcodes
49014@if binutils
b00612cc
PB
49015 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
49016 mkdir stage4-binutils; \
22121df0 49017 mv stage4-binutils binutils; \
80911fe1 49018 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 49019@endif binutils
201f096f 49020@if fixincludes
49021 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
49022 mkdir stage4-fixincludes; \
22121df0 49023 mv stage4-fixincludes fixincludes; \
201f096f 49024 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
49025@endif fixincludes
72b2455a 49026@if gas
b00612cc
PB
49027 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
49028 mkdir stage4-gas; \
22121df0 49029 mv stage4-gas gas; \
80911fe1 49030 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
49031@endif gas
49032@if gcc
b00612cc
PB
49033 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
49034 mkdir stage4-gcc; \
22121df0 49035 mv stage4-gcc gcc; \
80911fe1 49036 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 49037@endif gcc
4b900473
PB
49038@if gmp
49039 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
49040 mkdir stage4-gmp; \
22121df0 49041 mv stage4-gmp gmp; \
4b900473
PB
49042 mv stage3-gmp prev-gmp || test -f stage3-lean
49043@endif gmp
49044@if mpfr
49045 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
49046 mkdir stage4-mpfr; \
22121df0 49047 mv stage4-mpfr mpfr; \
4b900473
PB
49048 mv stage3-mpfr prev-mpfr || test -f stage3-lean
49049@endif mpfr
e8a5fa9c
RW
49050@if mpc
49051 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
49052 mkdir stage4-mpc; \
22121df0 49053 mv stage4-mpc mpc; \
e8a5fa9c
RW
49054 mv stage3-mpc prev-mpc || test -f stage3-lean
49055@endif mpc
7ec59b9e
L
49056@if isl
49057 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
49058 mkdir stage4-isl; \
22121df0 49059 mv stage4-isl isl; \
7ec59b9e
L
49060 mv stage3-isl prev-isl || test -f stage3-lean
49061@endif isl
1f53ca9a
AO
49062@if libelf
49063 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
49064 mkdir stage4-libelf; \
22121df0 49065 mv stage4-libelf libelf; \
1f53ca9a
AO
49066 mv stage3-libelf prev-libelf || test -f stage3-lean
49067@endif libelf
93f9b408
ILT
49068@if gold
49069 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
49070 mkdir stage4-gold; \
22121df0 49071 mv stage4-gold gold; \
93f9b408
ILT
49072 mv stage3-gold prev-gold || test -f stage3-lean
49073@endif gold
72b2455a 49074@if intl
b00612cc
PB
49075 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
49076 mkdir stage4-intl; \
22121df0 49077 mv stage4-intl intl; \
80911fe1 49078 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
49079@endif intl
49080@if ld
b00612cc
PB
49081 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
49082 mkdir stage4-ld; \
22121df0 49083 mv stage4-ld ld; \
80911fe1 49084 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 49085@endif ld
2bf680c4
ILT
49086@if libbacktrace
49087 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
49088 mkdir stage4-libbacktrace; \
22121df0 49089 mv stage4-libbacktrace libbacktrace; \
2bf680c4
ILT
49090 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
49091@endif libbacktrace
72b2455a 49092@if libcpp
b00612cc
PB
49093 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
49094 mkdir stage4-libcpp; \
22121df0 49095 mv stage4-libcpp libcpp; \
80911fe1 49096 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 49097@endif libcpp
be01d343
PB
49098@if libdecnumber
49099 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
49100 mkdir stage4-libdecnumber; \
22121df0 49101 mv stage4-libdecnumber libdecnumber; \
80911fe1 49102 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 49103@endif libdecnumber
72b2455a 49104@if libiberty
b00612cc
PB
49105 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
49106 mkdir stage4-libiberty; \
22121df0 49107 mv stage4-libiberty libiberty; \
80911fe1 49108 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 49109@endif libiberty
1b6c0831
L
49110@if libiberty-linker-plugin
49111 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
49112 mkdir stage4-libiberty-linker-plugin; \
22121df0 49113 mv stage4-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49114 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
49115@endif libiberty-linker-plugin
016a3251
DD
49116@if libiconv
49117 @cd $(HOST_SUBDIR); [ -d stage4-libiconv ] || \
49118 mkdir stage4-libiconv; \
49119 mv stage4-libiconv libiconv; \
49120 mv stage3-libiconv prev-libiconv || test -f stage3-lean
49121@endif libiconv
72b2455a 49122@if zlib
b00612cc
PB
49123 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
49124 mkdir stage4-zlib; \
22121df0 49125 mv stage4-zlib zlib; \
80911fe1 49126 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 49127@endif zlib
700d40ca
ILT
49128@if lto-plugin
49129 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
49130 mkdir stage4-lto-plugin; \
22121df0 49131 mv stage4-lto-plugin lto-plugin; \
700d40ca
ILT
49132 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
49133@endif lto-plugin
0e65dfba
NA
49134@if libctf
49135 @cd $(HOST_SUBDIR); [ -d stage4-libctf ] || \
49136 mkdir stage4-libctf; \
49137 mv stage4-libctf libctf; \
49138 mv stage3-libctf prev-libctf || test -f stage3-lean
49139@endif libctf
0aed8855
PB
49140 @[ -d stage4-$(TARGET_SUBDIR) ] || \
49141 mkdir stage4-$(TARGET_SUBDIR); \
22121df0 49142 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49143 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 49144
80911fe1 49145stage4-end::
72b2455a 49146@if bfd
22121df0
L
49147 @if test -d $(HOST_SUBDIR)/bfd; then \
49148 cd $(HOST_SUBDIR); mv bfd stage4-bfd; \
49149 mv prev-bfd stage3-bfd; : ; \
0aed8855 49150 fi
72b2455a
PB
49151@endif bfd
49152@if opcodes
22121df0
L
49153 @if test -d $(HOST_SUBDIR)/opcodes; then \
49154 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes; \
49155 mv prev-opcodes stage3-opcodes; : ; \
0aed8855 49156 fi
72b2455a
PB
49157@endif opcodes
49158@if binutils
22121df0
L
49159 @if test -d $(HOST_SUBDIR)/binutils; then \
49160 cd $(HOST_SUBDIR); mv binutils stage4-binutils; \
49161 mv prev-binutils stage3-binutils; : ; \
0aed8855 49162 fi
72b2455a 49163@endif binutils
201f096f 49164@if fixincludes
22121df0
L
49165 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49166 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes; \
49167 mv prev-fixincludes stage3-fixincludes; : ; \
201f096f 49168 fi
49169@endif fixincludes
72b2455a 49170@if gas
22121df0
L
49171 @if test -d $(HOST_SUBDIR)/gas; then \
49172 cd $(HOST_SUBDIR); mv gas stage4-gas; \
49173 mv prev-gas stage3-gas; : ; \
0aed8855 49174 fi
72b2455a
PB
49175@endif gas
49176@if gcc
22121df0
L
49177 @if test -d $(HOST_SUBDIR)/gcc; then \
49178 cd $(HOST_SUBDIR); mv gcc stage4-gcc; \
49179 mv prev-gcc stage3-gcc; : ; \
0aed8855 49180 fi
72b2455a 49181@endif gcc
4b900473 49182@if gmp
22121df0
L
49183 @if test -d $(HOST_SUBDIR)/gmp; then \
49184 cd $(HOST_SUBDIR); mv gmp stage4-gmp; \
49185 mv prev-gmp stage3-gmp; : ; \
4b900473
PB
49186 fi
49187@endif gmp
49188@if mpfr
22121df0
L
49189 @if test -d $(HOST_SUBDIR)/mpfr; then \
49190 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr; \
49191 mv prev-mpfr stage3-mpfr; : ; \
4b900473
PB
49192 fi
49193@endif mpfr
e8a5fa9c 49194@if mpc
22121df0
L
49195 @if test -d $(HOST_SUBDIR)/mpc; then \
49196 cd $(HOST_SUBDIR); mv mpc stage4-mpc; \
49197 mv prev-mpc stage3-mpc; : ; \
e8a5fa9c
RW
49198 fi
49199@endif mpc
7ec59b9e 49200@if isl
22121df0
L
49201 @if test -d $(HOST_SUBDIR)/isl; then \
49202 cd $(HOST_SUBDIR); mv isl stage4-isl; \
49203 mv prev-isl stage3-isl; : ; \
e28c595f 49204 fi
7ec59b9e 49205@endif isl
1f53ca9a 49206@if libelf
22121df0
L
49207 @if test -d $(HOST_SUBDIR)/libelf; then \
49208 cd $(HOST_SUBDIR); mv libelf stage4-libelf; \
49209 mv prev-libelf stage3-libelf; : ; \
1f53ca9a
AO
49210 fi
49211@endif libelf
93f9b408 49212@if gold
22121df0
L
49213 @if test -d $(HOST_SUBDIR)/gold; then \
49214 cd $(HOST_SUBDIR); mv gold stage4-gold; \
49215 mv prev-gold stage3-gold; : ; \
93f9b408
ILT
49216 fi
49217@endif gold
72b2455a 49218@if intl
22121df0
L
49219 @if test -d $(HOST_SUBDIR)/intl; then \
49220 cd $(HOST_SUBDIR); mv intl stage4-intl; \
49221 mv prev-intl stage3-intl; : ; \
0aed8855 49222 fi
72b2455a
PB
49223@endif intl
49224@if ld
22121df0
L
49225 @if test -d $(HOST_SUBDIR)/ld; then \
49226 cd $(HOST_SUBDIR); mv ld stage4-ld; \
49227 mv prev-ld stage3-ld; : ; \
0aed8855 49228 fi
72b2455a 49229@endif ld
2bf680c4 49230@if libbacktrace
22121df0
L
49231 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49232 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace; \
49233 mv prev-libbacktrace stage3-libbacktrace; : ; \
2bf680c4
ILT
49234 fi
49235@endif libbacktrace
72b2455a 49236@if libcpp
22121df0
L
49237 @if test -d $(HOST_SUBDIR)/libcpp; then \
49238 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp; \
49239 mv prev-libcpp stage3-libcpp; : ; \
0aed8855 49240 fi
72b2455a 49241@endif libcpp
be01d343 49242@if libdecnumber
22121df0
L
49243 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49244 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber; \
49245 mv prev-libdecnumber stage3-libdecnumber; : ; \
0aed8855 49246 fi
be01d343 49247@endif libdecnumber
72b2455a 49248@if libiberty
22121df0
L
49249 @if test -d $(HOST_SUBDIR)/libiberty; then \
49250 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty; \
49251 mv prev-libiberty stage3-libiberty; : ; \
0aed8855 49252 fi
72b2455a 49253@endif libiberty
1b6c0831 49254@if libiberty-linker-plugin
22121df0
L
49255 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49256 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin; \
49257 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin; : ; \
1b6c0831
L
49258 fi
49259@endif libiberty-linker-plugin
016a3251
DD
49260@if libiconv
49261 @if test -d $(HOST_SUBDIR)/libiconv; then \
49262 cd $(HOST_SUBDIR); mv libiconv stage4-libiconv; \
49263 mv prev-libiconv stage3-libiconv; : ; \
49264 fi
49265@endif libiconv
72b2455a 49266@if zlib
22121df0
L
49267 @if test -d $(HOST_SUBDIR)/zlib; then \
49268 cd $(HOST_SUBDIR); mv zlib stage4-zlib; \
49269 mv prev-zlib stage3-zlib; : ; \
0aed8855 49270 fi
72b2455a 49271@endif zlib
700d40ca 49272@if lto-plugin
22121df0
L
49273 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49274 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin; \
49275 mv prev-lto-plugin stage3-lto-plugin; : ; \
700d40ca
ILT
49276 fi
49277@endif lto-plugin
0e65dfba
NA
49278@if libctf
49279 @if test -d $(HOST_SUBDIR)/libctf; then \
49280 cd $(HOST_SUBDIR); mv libctf stage4-libctf; \
49281 mv prev-libctf stage3-libctf; : ; \
49282 fi
49283@endif libctf
22121df0
L
49284 @if test -d $(TARGET_SUBDIR); then \
49285 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR); \
49286 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); : ; \
0aed8855 49287 fi
80911fe1 49288 rm -f stage_current
72b2455a 49289
973601e1 49290# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 49291# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49292# reconfigured either.
72b2455a
PB
49293.PHONY: stage4-bubble
49294stage4-bubble:: stage3-bubble
e360f423
PB
49295 @r=`${PWD_COMMAND}`; export r; \
49296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49297 if test -f stage4-lean || test -f stage3-lean ; then \
49298 echo Skipping rebuild of stage4; \
9cb3fa6f 49299 else \
f70224b5 49300 $(MAKE) stage4-start; \
80911fe1 49301 if $(LEAN); then \
22121df0
L
49302 rm -rf stage2-*; \
49303 $(STAMP) stage2-lean; \
80911fe1 49304 fi; \
f70224b5 49305 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 49306 fi
f6d183c0 49307 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 49308
0df3d27f 49309.PHONY: all-stage4 clean-stage4
0df3d27f 49310do-clean: clean-stage4
0df3d27f 49311
d545f33b
PB
49312# FIXME: Will not need to be conditional when toplevel bootstrap is the
49313# only possibility, but now it conflicts with no-bootstrap rules
49314@if gcc-bootstrap
72b2455a 49315
d545f33b 49316compare3:
e360f423
PB
49317 @r=`${PWD_COMMAND}`; export r; \
49318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49319 if test -f stage3-lean; then \
22121df0
L
49320 echo Cannot compare object files as stage 3 was deleted.; \
49321 exit 0; \
d545f33b 49322 fi; \
0aed8855 49323 : $(MAKE); $(stage); \
22121df0
L
49324 rm -f .bad_compare; \
49325 echo Comparing stages 3 and 4; \
fda13ee8
AO
49326 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
49327 files=`find stage4-* -name "*$(objext)" -print | \
22121df0 49328 sed -n s,^stage$$sed-,,p`; \
e3f56a99 49329 for file in $${files}; do \
fda13ee8
AO
49330 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
49331 if test ! -f $$f1; then continue; fi; \
8520c408 49332 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
49333 if test $$? -eq 1; then \
49334 case $$file in \
e8a5fa9c 49335 @compare_exclusions@) \
f70224b5
PB
49336 echo warning: $$file differs ;; \
49337 *) \
49338 echo $$file differs >> .bad_compare ;; \
22121df0
L
49339 esac; \
49340 fi; \
49341 done; \
d545f33b
PB
49342 if [ -f .bad_compare ]; then \
49343 echo "Bootstrap comparison failure!"; \
49344 cat .bad_compare; \
49345 exit 1; \
49346 else \
c52c6897 49347 echo Comparison successful.; \
22121df0 49348 fi; \
d545f33b 49349 $(STAMP) compare3
80911fe1
PB
49350 if $(LEAN); then \
49351 rm -rf stage3-*; \
49352 $(STAMP) stage3-lean; \
49353 fi
9cb3fa6f 49354
72b2455a 49355
72b2455a 49356
80911fe1 49357.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
49358bootstrap4:
49359 echo stage4 > stage_final
49360 @r=`${PWD_COMMAND}`; export r; \
49361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49362 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 49363 @: $(MAKE); $(unstage)
be01d343
PB
49364 @r=`${PWD_COMMAND}`; export r; \
49365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49366 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 49367 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 49368
80911fe1
PB
49369bootstrap4-lean:
49370 echo stage4 > stage_final
49371 @r=`${PWD_COMMAND}`; export r; \
49372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49373 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
49374 @: $(MAKE); $(unstage)
49375 @r=`${PWD_COMMAND}`; export r; \
49376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49377 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
49378 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49379
72b2455a 49380
d545f33b
PB
49381# Rules to wipe a stage and all the following ones, also used for cleanstrap
49382distclean-stage3:: distclean-stage4
49383.PHONY: distclean-stage4
49384distclean-stage4::
0aed8855 49385 @: $(MAKE); $(stage)
e00a73e3 49386 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 49387 rm -rf stage4-* compare3
0df3d27f 49388
9cb3fa6f 49389
d545f33b 49390@endif gcc-bootstrap
72b2455a
PB
49391
49392
49393.PHONY: stageprofile-start stageprofile-end
49394
49395stageprofile-start::
0aed8855 49396 @: $(MAKE); $(stage); \
22121df0 49397 echo stageprofile > stage_current; \
b00612cc 49398 echo stageprofile > stage_last; \
0aed8855 49399 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49400@if bfd
b00612cc
PB
49401 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
49402 mkdir stageprofile-bfd; \
22121df0 49403 mv stageprofile-bfd bfd; \
80911fe1 49404 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
49405@endif bfd
49406@if opcodes
b00612cc
PB
49407 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
49408 mkdir stageprofile-opcodes; \
22121df0 49409 mv stageprofile-opcodes opcodes; \
80911fe1 49410 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
49411@endif opcodes
49412@if binutils
b00612cc
PB
49413 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
49414 mkdir stageprofile-binutils; \
22121df0 49415 mv stageprofile-binutils binutils; \
80911fe1 49416 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 49417@endif binutils
201f096f 49418@if fixincludes
49419 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
49420 mkdir stageprofile-fixincludes; \
22121df0 49421 mv stageprofile-fixincludes fixincludes; \
201f096f 49422 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
49423@endif fixincludes
72b2455a 49424@if gas
b00612cc
PB
49425 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
49426 mkdir stageprofile-gas; \
22121df0 49427 mv stageprofile-gas gas; \
80911fe1 49428 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
49429@endif gas
49430@if gcc
b00612cc
PB
49431 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
49432 mkdir stageprofile-gcc; \
22121df0 49433 mv stageprofile-gcc gcc; \
80911fe1 49434 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 49435@endif gcc
4b900473
PB
49436@if gmp
49437 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
49438 mkdir stageprofile-gmp; \
22121df0 49439 mv stageprofile-gmp gmp; \
4b900473
PB
49440 mv stage1-gmp prev-gmp || test -f stage1-lean
49441@endif gmp
49442@if mpfr
49443 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
49444 mkdir stageprofile-mpfr; \
22121df0 49445 mv stageprofile-mpfr mpfr; \
4b900473
PB
49446 mv stage1-mpfr prev-mpfr || test -f stage1-lean
49447@endif mpfr
e8a5fa9c
RW
49448@if mpc
49449 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
49450 mkdir stageprofile-mpc; \
22121df0 49451 mv stageprofile-mpc mpc; \
e8a5fa9c
RW
49452 mv stage1-mpc prev-mpc || test -f stage1-lean
49453@endif mpc
7ec59b9e
L
49454@if isl
49455 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
49456 mkdir stageprofile-isl; \
22121df0 49457 mv stageprofile-isl isl; \
7ec59b9e
L
49458 mv stage1-isl prev-isl || test -f stage1-lean
49459@endif isl
1f53ca9a
AO
49460@if libelf
49461 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
49462 mkdir stageprofile-libelf; \
22121df0 49463 mv stageprofile-libelf libelf; \
1f53ca9a
AO
49464 mv stage1-libelf prev-libelf || test -f stage1-lean
49465@endif libelf
93f9b408
ILT
49466@if gold
49467 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
49468 mkdir stageprofile-gold; \
22121df0 49469 mv stageprofile-gold gold; \
93f9b408
ILT
49470 mv stage1-gold prev-gold || test -f stage1-lean
49471@endif gold
72b2455a 49472@if intl
b00612cc
PB
49473 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
49474 mkdir stageprofile-intl; \
22121df0 49475 mv stageprofile-intl intl; \
80911fe1 49476 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
49477@endif intl
49478@if ld
b00612cc
PB
49479 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
49480 mkdir stageprofile-ld; \
22121df0 49481 mv stageprofile-ld ld; \
80911fe1 49482 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 49483@endif ld
2bf680c4
ILT
49484@if libbacktrace
49485 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
49486 mkdir stageprofile-libbacktrace; \
22121df0 49487 mv stageprofile-libbacktrace libbacktrace; \
2bf680c4
ILT
49488 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
49489@endif libbacktrace
72b2455a 49490@if libcpp
b00612cc
PB
49491 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
49492 mkdir stageprofile-libcpp; \
22121df0 49493 mv stageprofile-libcpp libcpp; \
80911fe1 49494 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 49495@endif libcpp
be01d343
PB
49496@if libdecnumber
49497 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
49498 mkdir stageprofile-libdecnumber; \
22121df0 49499 mv stageprofile-libdecnumber libdecnumber; \
80911fe1 49500 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 49501@endif libdecnumber
72b2455a 49502@if libiberty
b00612cc
PB
49503 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
49504 mkdir stageprofile-libiberty; \
22121df0 49505 mv stageprofile-libiberty libiberty; \
80911fe1 49506 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 49507@endif libiberty
1b6c0831
L
49508@if libiberty-linker-plugin
49509 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
49510 mkdir stageprofile-libiberty-linker-plugin; \
22121df0 49511 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49512 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
49513@endif libiberty-linker-plugin
016a3251
DD
49514@if libiconv
49515 @cd $(HOST_SUBDIR); [ -d stageprofile-libiconv ] || \
49516 mkdir stageprofile-libiconv; \
49517 mv stageprofile-libiconv libiconv; \
49518 mv stage1-libiconv prev-libiconv || test -f stage1-lean
49519@endif libiconv
72b2455a 49520@if zlib
d545f33b
PB
49521 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
49522 mkdir stageprofile-zlib; \
22121df0 49523 mv stageprofile-zlib zlib; \
80911fe1 49524 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 49525@endif zlib
700d40ca
ILT
49526@if lto-plugin
49527 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
49528 mkdir stageprofile-lto-plugin; \
22121df0 49529 mv stageprofile-lto-plugin lto-plugin; \
700d40ca
ILT
49530 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
49531@endif lto-plugin
0e65dfba
NA
49532@if libctf
49533 @cd $(HOST_SUBDIR); [ -d stageprofile-libctf ] || \
49534 mkdir stageprofile-libctf; \
49535 mv stageprofile-libctf libctf; \
49536 mv stage1-libctf prev-libctf || test -f stage1-lean
49537@endif libctf
0aed8855
PB
49538 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
49539 mkdir stageprofile-$(TARGET_SUBDIR); \
22121df0 49540 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49541 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 49542
80911fe1 49543stageprofile-end::
d545f33b 49544@if bfd
22121df0
L
49545 @if test -d $(HOST_SUBDIR)/bfd; then \
49546 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd; \
49547 mv prev-bfd stage1-bfd; : ; \
0aed8855 49548 fi
d545f33b
PB
49549@endif bfd
49550@if opcodes
22121df0
L
49551 @if test -d $(HOST_SUBDIR)/opcodes; then \
49552 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes; \
49553 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 49554 fi
d545f33b
PB
49555@endif opcodes
49556@if binutils
22121df0
L
49557 @if test -d $(HOST_SUBDIR)/binutils; then \
49558 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils; \
49559 mv prev-binutils stage1-binutils; : ; \
0aed8855 49560 fi
d545f33b 49561@endif binutils
201f096f 49562@if fixincludes
22121df0
L
49563 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49564 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes; \
49565 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 49566 fi
49567@endif fixincludes
d545f33b 49568@if gas
22121df0
L
49569 @if test -d $(HOST_SUBDIR)/gas; then \
49570 cd $(HOST_SUBDIR); mv gas stageprofile-gas; \
49571 mv prev-gas stage1-gas; : ; \
0aed8855 49572 fi
d545f33b
PB
49573@endif gas
49574@if gcc
22121df0
L
49575 @if test -d $(HOST_SUBDIR)/gcc; then \
49576 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc; \
49577 mv prev-gcc stage1-gcc; : ; \
0aed8855 49578 fi
d545f33b 49579@endif gcc
4b900473 49580@if gmp
22121df0
L
49581 @if test -d $(HOST_SUBDIR)/gmp; then \
49582 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp; \
49583 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
49584 fi
49585@endif gmp
49586@if mpfr
22121df0
L
49587 @if test -d $(HOST_SUBDIR)/mpfr; then \
49588 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr; \
49589 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
49590 fi
49591@endif mpfr
e8a5fa9c 49592@if mpc
22121df0
L
49593 @if test -d $(HOST_SUBDIR)/mpc; then \
49594 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc; \
49595 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
49596 fi
49597@endif mpc
7ec59b9e 49598@if isl
22121df0
L
49599 @if test -d $(HOST_SUBDIR)/isl; then \
49600 cd $(HOST_SUBDIR); mv isl stageprofile-isl; \
49601 mv prev-isl stage1-isl; : ; \
e28c595f 49602 fi
7ec59b9e 49603@endif isl
1f53ca9a 49604@if libelf
22121df0
L
49605 @if test -d $(HOST_SUBDIR)/libelf; then \
49606 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf; \
49607 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
49608 fi
49609@endif libelf
93f9b408 49610@if gold
22121df0
L
49611 @if test -d $(HOST_SUBDIR)/gold; then \
49612 cd $(HOST_SUBDIR); mv gold stageprofile-gold; \
49613 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
49614 fi
49615@endif gold
d545f33b 49616@if intl
22121df0
L
49617 @if test -d $(HOST_SUBDIR)/intl; then \
49618 cd $(HOST_SUBDIR); mv intl stageprofile-intl; \
49619 mv prev-intl stage1-intl; : ; \
0aed8855 49620 fi
d545f33b
PB
49621@endif intl
49622@if ld
22121df0
L
49623 @if test -d $(HOST_SUBDIR)/ld; then \
49624 cd $(HOST_SUBDIR); mv ld stageprofile-ld; \
49625 mv prev-ld stage1-ld; : ; \
0aed8855 49626 fi
d545f33b 49627@endif ld
2bf680c4 49628@if libbacktrace
22121df0
L
49629 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49630 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace; \
49631 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
49632 fi
49633@endif libbacktrace
d545f33b 49634@if libcpp
22121df0
L
49635 @if test -d $(HOST_SUBDIR)/libcpp; then \
49636 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp; \
49637 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 49638 fi
d545f33b 49639@endif libcpp
be01d343 49640@if libdecnumber
22121df0
L
49641 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49642 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber; \
49643 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 49644 fi
be01d343 49645@endif libdecnumber
d545f33b 49646@if libiberty
22121df0
L
49647 @if test -d $(HOST_SUBDIR)/libiberty; then \
49648 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty; \
49649 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 49650 fi
d545f33b 49651@endif libiberty
1b6c0831 49652@if libiberty-linker-plugin
22121df0
L
49653 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49654 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin; \
49655 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
49656 fi
49657@endif libiberty-linker-plugin
016a3251
DD
49658@if libiconv
49659 @if test -d $(HOST_SUBDIR)/libiconv; then \
49660 cd $(HOST_SUBDIR); mv libiconv stageprofile-libiconv; \
49661 mv prev-libiconv stage1-libiconv; : ; \
49662 fi
49663@endif libiconv
d545f33b 49664@if zlib
22121df0
L
49665 @if test -d $(HOST_SUBDIR)/zlib; then \
49666 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib; \
49667 mv prev-zlib stage1-zlib; : ; \
0aed8855 49668 fi
d545f33b 49669@endif zlib
700d40ca 49670@if lto-plugin
22121df0
L
49671 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49672 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin; \
49673 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
49674 fi
49675@endif lto-plugin
0e65dfba
NA
49676@if libctf
49677 @if test -d $(HOST_SUBDIR)/libctf; then \
49678 cd $(HOST_SUBDIR); mv libctf stageprofile-libctf; \
49679 mv prev-libctf stage1-libctf; : ; \
49680 fi
49681@endif libctf
22121df0
L
49682 @if test -d $(TARGET_SUBDIR); then \
49683 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); \
49684 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 49685 fi
80911fe1 49686 rm -f stage_current
72b2455a 49687
973601e1 49688# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 49689# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49690# reconfigured either.
d545f33b
PB
49691.PHONY: stageprofile-bubble
49692stageprofile-bubble:: stage1-bubble
e360f423
PB
49693 @r=`${PWD_COMMAND}`; export r; \
49694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49695 if test -f stageprofile-lean || test -f stage1-lean ; then \
49696 echo Skipping rebuild of stageprofile; \
d545f33b 49697 else \
f70224b5
PB
49698 $(MAKE) stageprofile-start; \
49699 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 49700 fi
72b2455a 49701
d545f33b
PB
49702.PHONY: all-stageprofile clean-stageprofile
49703do-clean: clean-stageprofile
0df3d27f 49704
72b2455a
PB
49705# FIXME: Will not need to be conditional when toplevel bootstrap is the
49706# only possibility, but now it conflicts with no-bootstrap rules
49707@if gcc-bootstrap
49708
49709
49710
49711
0df3d27f 49712# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49713distclean-stage1:: distclean-stageprofile
0df3d27f 49714.PHONY: distclean-stageprofile
72b2455a 49715distclean-stageprofile::
0aed8855 49716 @: $(MAKE); $(stage)
e00a73e3 49717 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 49718 rm -rf stageprofile-*
dfdffa2c
PB
49719
49720
72b2455a 49721@endif gcc-bootstrap
dfdffa2c
PB
49722
49723
72b2455a 49724.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 49725
72b2455a 49726stagefeedback-start::
0aed8855 49727 @: $(MAKE); $(stage); \
22121df0 49728 echo stagefeedback > stage_current; \
b00612cc 49729 echo stagefeedback > stage_last; \
0aed8855 49730 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49731@if bfd
b00612cc
PB
49732 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
49733 mkdir stagefeedback-bfd; \
22121df0 49734 mv stagefeedback-bfd bfd; \
e3f56a99 49735 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
49736@endif bfd
49737@if opcodes
b00612cc
PB
49738 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
49739 mkdir stagefeedback-opcodes; \
22121df0 49740 mv stagefeedback-opcodes opcodes; \
e3f56a99 49741 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
49742@endif opcodes
49743@if binutils
b00612cc
PB
49744 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
49745 mkdir stagefeedback-binutils; \
22121df0 49746 mv stagefeedback-binutils binutils; \
e3f56a99 49747 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a 49748@endif binutils
201f096f 49749@if fixincludes
49750 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
49751 mkdir stagefeedback-fixincludes; \
22121df0 49752 mv stagefeedback-fixincludes fixincludes; \
e3f56a99 49753 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
201f096f 49754@endif fixincludes
72b2455a 49755@if gas
b00612cc
PB
49756 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
49757 mkdir stagefeedback-gas; \
22121df0 49758 mv stagefeedback-gas gas; \
e3f56a99 49759 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
49760@endif gas
49761@if gcc
b00612cc
PB
49762 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
49763 mkdir stagefeedback-gcc; \
22121df0 49764 mv stagefeedback-gcc gcc; \
e3f56a99 49765 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 49766@endif gcc
4b900473
PB
49767@if gmp
49768 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
49769 mkdir stagefeedback-gmp; \
22121df0 49770 mv stagefeedback-gmp gmp; \
e3f56a99 49771 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
4b900473
PB
49772@endif gmp
49773@if mpfr
49774 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
49775 mkdir stagefeedback-mpfr; \
22121df0 49776 mv stagefeedback-mpfr mpfr; \
e3f56a99 49777 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
4b900473 49778@endif mpfr
e8a5fa9c
RW
49779@if mpc
49780 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
49781 mkdir stagefeedback-mpc; \
22121df0 49782 mv stagefeedback-mpc mpc; \
e3f56a99 49783 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
e8a5fa9c 49784@endif mpc
7ec59b9e
L
49785@if isl
49786 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
49787 mkdir stagefeedback-isl; \
22121df0 49788 mv stagefeedback-isl isl; \
e3f56a99 49789 mv stageprofile-isl prev-isl || test -f stageprofile-lean
7ec59b9e 49790@endif isl
1f53ca9a
AO
49791@if libelf
49792 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
49793 mkdir stagefeedback-libelf; \
22121df0 49794 mv stagefeedback-libelf libelf; \
e3f56a99 49795 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
1f53ca9a 49796@endif libelf
93f9b408
ILT
49797@if gold
49798 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
49799 mkdir stagefeedback-gold; \
22121df0 49800 mv stagefeedback-gold gold; \
e3f56a99 49801 mv stageprofile-gold prev-gold || test -f stageprofile-lean
93f9b408 49802@endif gold
72b2455a 49803@if intl
b00612cc
PB
49804 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
49805 mkdir stagefeedback-intl; \
22121df0 49806 mv stagefeedback-intl intl; \
e3f56a99 49807 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
49808@endif intl
49809@if ld
b00612cc
PB
49810 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
49811 mkdir stagefeedback-ld; \
22121df0 49812 mv stagefeedback-ld ld; \
e3f56a99 49813 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 49814@endif ld
2bf680c4
ILT
49815@if libbacktrace
49816 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
49817 mkdir stagefeedback-libbacktrace; \
22121df0 49818 mv stagefeedback-libbacktrace libbacktrace; \
e3f56a99 49819 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
2bf680c4 49820@endif libbacktrace
72b2455a 49821@if libcpp
b00612cc
PB
49822 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
49823 mkdir stagefeedback-libcpp; \
22121df0 49824 mv stagefeedback-libcpp libcpp; \
e3f56a99 49825 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 49826@endif libcpp
be01d343
PB
49827@if libdecnumber
49828 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
49829 mkdir stagefeedback-libdecnumber; \
22121df0 49830 mv stagefeedback-libdecnumber libdecnumber; \
e3f56a99 49831 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 49832@endif libdecnumber
72b2455a 49833@if libiberty
b00612cc
PB
49834 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
49835 mkdir stagefeedback-libiberty; \
22121df0 49836 mv stagefeedback-libiberty libiberty; \
e3f56a99 49837 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a 49838@endif libiberty
1b6c0831
L
49839@if libiberty-linker-plugin
49840 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
49841 mkdir stagefeedback-libiberty-linker-plugin; \
22121df0 49842 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin; \
e3f56a99 49843 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
1b6c0831 49844@endif libiberty-linker-plugin
016a3251
DD
49845@if libiconv
49846 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiconv ] || \
49847 mkdir stagefeedback-libiconv; \
49848 mv stagefeedback-libiconv libiconv; \
e3f56a99 49849 mv stageprofile-libiconv prev-libiconv || test -f stageprofile-lean
016a3251 49850@endif libiconv
72b2455a 49851@if zlib
b00612cc
PB
49852 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
49853 mkdir stagefeedback-zlib; \
22121df0 49854 mv stagefeedback-zlib zlib; \
e3f56a99 49855 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 49856@endif zlib
700d40ca
ILT
49857@if lto-plugin
49858 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
49859 mkdir stagefeedback-lto-plugin; \
22121df0 49860 mv stagefeedback-lto-plugin lto-plugin; \
e3f56a99 49861 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
700d40ca 49862@endif lto-plugin
0e65dfba
NA
49863@if libctf
49864 @cd $(HOST_SUBDIR); [ -d stagefeedback-libctf ] || \
49865 mkdir stagefeedback-libctf; \
49866 mv stagefeedback-libctf libctf; \
e3f56a99 49867 mv stageprofile-libctf prev-libctf || test -f stageprofile-lean
0e65dfba 49868@endif libctf
0aed8855
PB
49869 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
49870 mkdir stagefeedback-$(TARGET_SUBDIR); \
22121df0 49871 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
e3f56a99 49872 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 49873
80911fe1 49874stagefeedback-end::
72b2455a 49875@if bfd
22121df0
L
49876 @if test -d $(HOST_SUBDIR)/bfd; then \
49877 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd; \
e3f56a99 49878 mv prev-bfd stageprofile-bfd; : ; \
0aed8855 49879 fi
72b2455a
PB
49880@endif bfd
49881@if opcodes
22121df0
L
49882 @if test -d $(HOST_SUBDIR)/opcodes; then \
49883 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes; \
e3f56a99 49884 mv prev-opcodes stageprofile-opcodes; : ; \
0aed8855 49885 fi
72b2455a
PB
49886@endif opcodes
49887@if binutils
22121df0
L
49888 @if test -d $(HOST_SUBDIR)/binutils; then \
49889 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils; \
e3f56a99 49890 mv prev-binutils stageprofile-binutils; : ; \
0aed8855 49891 fi
72b2455a 49892@endif binutils
201f096f 49893@if fixincludes
22121df0
L
49894 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49895 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes; \
e3f56a99 49896 mv prev-fixincludes stageprofile-fixincludes; : ; \
201f096f 49897 fi
49898@endif fixincludes
72b2455a 49899@if gas
22121df0
L
49900 @if test -d $(HOST_SUBDIR)/gas; then \
49901 cd $(HOST_SUBDIR); mv gas stagefeedback-gas; \
e3f56a99 49902 mv prev-gas stageprofile-gas; : ; \
0aed8855 49903 fi
72b2455a
PB
49904@endif gas
49905@if gcc
22121df0
L
49906 @if test -d $(HOST_SUBDIR)/gcc; then \
49907 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc; \
e3f56a99 49908 mv prev-gcc stageprofile-gcc; : ; \
0aed8855 49909 fi
72b2455a 49910@endif gcc
4b900473 49911@if gmp
22121df0
L
49912 @if test -d $(HOST_SUBDIR)/gmp; then \
49913 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp; \
e3f56a99 49914 mv prev-gmp stageprofile-gmp; : ; \
4b900473
PB
49915 fi
49916@endif gmp
49917@if mpfr
22121df0
L
49918 @if test -d $(HOST_SUBDIR)/mpfr; then \
49919 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr; \
e3f56a99 49920 mv prev-mpfr stageprofile-mpfr; : ; \
4b900473
PB
49921 fi
49922@endif mpfr
e8a5fa9c 49923@if mpc
22121df0
L
49924 @if test -d $(HOST_SUBDIR)/mpc; then \
49925 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc; \
e3f56a99 49926 mv prev-mpc stageprofile-mpc; : ; \
e8a5fa9c
RW
49927 fi
49928@endif mpc
7ec59b9e 49929@if isl
22121df0
L
49930 @if test -d $(HOST_SUBDIR)/isl; then \
49931 cd $(HOST_SUBDIR); mv isl stagefeedback-isl; \
e3f56a99 49932 mv prev-isl stageprofile-isl; : ; \
e28c595f 49933 fi
7ec59b9e 49934@endif isl
1f53ca9a 49935@if libelf
22121df0
L
49936 @if test -d $(HOST_SUBDIR)/libelf; then \
49937 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf; \
e3f56a99 49938 mv prev-libelf stageprofile-libelf; : ; \
1f53ca9a
AO
49939 fi
49940@endif libelf
93f9b408 49941@if gold
22121df0
L
49942 @if test -d $(HOST_SUBDIR)/gold; then \
49943 cd $(HOST_SUBDIR); mv gold stagefeedback-gold; \
e3f56a99 49944 mv prev-gold stageprofile-gold; : ; \
93f9b408
ILT
49945 fi
49946@endif gold
72b2455a 49947@if intl
22121df0
L
49948 @if test -d $(HOST_SUBDIR)/intl; then \
49949 cd $(HOST_SUBDIR); mv intl stagefeedback-intl; \
e3f56a99 49950 mv prev-intl stageprofile-intl; : ; \
0aed8855 49951 fi
72b2455a
PB
49952@endif intl
49953@if ld
22121df0
L
49954 @if test -d $(HOST_SUBDIR)/ld; then \
49955 cd $(HOST_SUBDIR); mv ld stagefeedback-ld; \
e3f56a99 49956 mv prev-ld stageprofile-ld; : ; \
0aed8855 49957 fi
72b2455a 49958@endif ld
2bf680c4 49959@if libbacktrace
22121df0
L
49960 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49961 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace; \
e3f56a99 49962 mv prev-libbacktrace stageprofile-libbacktrace; : ; \
2bf680c4
ILT
49963 fi
49964@endif libbacktrace
72b2455a 49965@if libcpp
22121df0
L
49966 @if test -d $(HOST_SUBDIR)/libcpp; then \
49967 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp; \
e3f56a99 49968 mv prev-libcpp stageprofile-libcpp; : ; \
0aed8855 49969 fi
72b2455a 49970@endif libcpp
be01d343 49971@if libdecnumber
22121df0
L
49972 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49973 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber; \
e3f56a99 49974 mv prev-libdecnumber stageprofile-libdecnumber; : ; \
0aed8855 49975 fi
be01d343 49976@endif libdecnumber
72b2455a 49977@if libiberty
22121df0
L
49978 @if test -d $(HOST_SUBDIR)/libiberty; then \
49979 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty; \
e3f56a99 49980 mv prev-libiberty stageprofile-libiberty; : ; \
0aed8855 49981 fi
72b2455a 49982@endif libiberty
1b6c0831 49983@if libiberty-linker-plugin
22121df0
L
49984 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49985 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin; \
e3f56a99 49986 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin; : ; \
1b6c0831
L
49987 fi
49988@endif libiberty-linker-plugin
016a3251
DD
49989@if libiconv
49990 @if test -d $(HOST_SUBDIR)/libiconv; then \
49991 cd $(HOST_SUBDIR); mv libiconv stagefeedback-libiconv; \
e3f56a99 49992 mv prev-libiconv stageprofile-libiconv; : ; \
016a3251
DD
49993 fi
49994@endif libiconv
72b2455a 49995@if zlib
22121df0
L
49996 @if test -d $(HOST_SUBDIR)/zlib; then \
49997 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib; \
e3f56a99 49998 mv prev-zlib stageprofile-zlib; : ; \
0aed8855 49999 fi
72b2455a 50000@endif zlib
700d40ca 50001@if lto-plugin
22121df0
L
50002 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
50003 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin; \
e3f56a99 50004 mv prev-lto-plugin stageprofile-lto-plugin; : ; \
700d40ca
ILT
50005 fi
50006@endif lto-plugin
0e65dfba
NA
50007@if libctf
50008 @if test -d $(HOST_SUBDIR)/libctf; then \
50009 cd $(HOST_SUBDIR); mv libctf stagefeedback-libctf; \
e3f56a99 50010 mv prev-libctf stageprofile-libctf; : ; \
0e65dfba
NA
50011 fi
50012@endif libctf
22121df0
L
50013 @if test -d $(TARGET_SUBDIR); then \
50014 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR); \
e3f56a99 50015 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); : ; \
0aed8855 50016 fi
80911fe1 50017 rm -f stage_current
dfdffa2c 50018
973601e1 50019# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 50020# remade, but not reconfigured. The next stage (if any) will not be
675492f0 50021# reconfigured either.
72b2455a 50022.PHONY: stagefeedback-bubble
e3f56a99 50023stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
50024 @r=`${PWD_COMMAND}`; export r; \
50025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e3f56a99 50026 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
22121df0 50027 echo Skipping rebuild of stagefeedback; \
9cb3fa6f 50028 else \
f70224b5
PB
50029 $(MAKE) stagefeedback-start; \
50030 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 50031 fi
72b2455a 50032
0df3d27f 50033.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 50034do-clean: clean-stagefeedback
0df3d27f 50035
72b2455a
PB
50036# FIXME: Will not need to be conditional when toplevel bootstrap is the
50037# only possibility, but now it conflicts with no-bootstrap rules
50038@if gcc-bootstrap
656fdd47
PB
50039
50040
50041
80911fe1 50042.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
50043profiledbootstrap:
50044 echo stagefeedback > stage_final
50045 @r=`${PWD_COMMAND}`; export r; \
50046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50047 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 50048 @: $(MAKE); $(unstage)
be01d343
PB
50049 @r=`${PWD_COMMAND}`; export r; \
50050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50051 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 50052 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 50053
80911fe1
PB
50054profiledbootstrap-lean:
50055 echo stagefeedback > stage_final
50056 @r=`${PWD_COMMAND}`; export r; \
50057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50058 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
50059 @: $(MAKE); $(unstage)
50060 @r=`${PWD_COMMAND}`; export r; \
50061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50062 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
50063 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50064
656fdd47 50065
0df3d27f 50066# Rules to wipe a stage and all the following ones, also used for cleanstrap
e3f56a99 50067distclean-stageprofile:: distclean-stagefeedback
0df3d27f 50068.PHONY: distclean-stagefeedback
656fdd47 50069distclean-stagefeedback::
0aed8855 50070 @: $(MAKE); $(stage)
e00a73e3 50071 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 50072 rm -rf stagefeedback-*
656fdd47
PB
50073
50074
72b2455a 50075@endif gcc-bootstrap
656fdd47
PB
50076
50077
50078
7d329e61
PB
50079stageprofile-end::
50080 $(MAKE) distclean-stagefeedback
656fdd47 50081
7d329e61 50082stagefeedback-start::
656fdd47
PB
50083 @r=`${PWD_COMMAND}`; export r; \
50084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61 50085 for i in prev-*; do \
22121df0 50086 j=`echo $$i | sed s/^prev-//`; \
7d329e61 50087 cd $$r/$$i && \
22121df0
L
50088 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL); } && \
50089 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL); }; \
7d329e61 50090 done
b8908782 50091
0df3d27f 50092@if gcc-bootstrap
0df3d27f 50093do-distclean: distclean-stage1
c52c6897
PB
50094
50095# Provide a GCC build when we're building target libraries. This does
50096# not work as a dependency, just as the minimum necessary to avoid errors.
50097stage_last:
314b2e66
AS
50098 @r=`${PWD_COMMAND}`; export r; \
50099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 50100 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 50101
4f0ef2d8
CD
50102# Same as unstage, but not phony and defaulting to stage1-start. We place
50103# it in the dependency so that for example `make -j3 all-gcc' works.
50104stage_current:
50105 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
50106
c52c6897 50107.PHONY: restrap
266df637 50108restrap::
c52c6897 50109 @: $(MAKE); $(stage)
e3f56a99 50110 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 50111restrap:: all
c380fdd8 50112@endif gcc-bootstrap
c52c6897 50113
ae831be5
NN
50114# --------------------------------------
50115# Dependencies between different modules
50116# --------------------------------------
252b5132 50117
9e6ce191 50118# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 50119@if gcc-bootstrap
e8a5fa9c
RW
50120configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
50121configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
50122configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
50123configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
50124configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
50125configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
50126configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
50127configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
50128configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
50129configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
50130configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
50131configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
1b6c0831
L
50132configure-stage1-target-libmpx: maybe-all-stage1-gcc
50133configure-stage2-target-libmpx: maybe-all-stage2-gcc
50134configure-stage3-target-libmpx: maybe-all-stage3-gcc
50135configure-stage4-target-libmpx: maybe-all-stage4-gcc
50136configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
50137configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
95e43135
JBG
50138configure-stage1-target-libvtv: maybe-all-stage1-gcc
50139configure-stage2-target-libvtv: maybe-all-stage2-gcc
50140configure-stage3-target-libvtv: maybe-all-stage3-gcc
50141configure-stage4-target-libvtv: maybe-all-stage4-gcc
50142configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
50143configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
e3f56a99 50144configure-target-libcilkrts: stage_last
1b6c0831 50145configure-target-liboffloadmic: stage_last
c52c6897 50146configure-target-libssp: stage_last
c52c6897 50147configure-target-newlib: stage_last
6aa8ef82
DJ
50148configure-stage1-target-libgcc: maybe-all-stage1-gcc
50149configure-stage2-target-libgcc: maybe-all-stage2-gcc
50150configure-stage3-target-libgcc: maybe-all-stage3-gcc
50151configure-stage4-target-libgcc: maybe-all-stage4-gcc
50152configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
50153configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 50154configure-target-libbacktrace: stage_last
e552509b 50155configure-target-libquadmath: stage_last
c52c6897
PB
50156configure-target-libgfortran: stage_last
50157configure-target-libobjc: stage_last
e552509b 50158configure-target-libgo: stage_last
c52c6897
PB
50159configure-target-libtermcap: stage_last
50160configure-target-winsup: stage_last
50161configure-target-libgloss: stage_last
c52c6897 50162configure-target-libffi: stage_last
c52c6897 50163configure-target-zlib: stage_last
c52c6897
PB
50164configure-target-rda: stage_last
50165configure-target-libada: stage_last
911e63d0
JR
50166configure-stage1-target-libgomp: maybe-all-stage1-gcc
50167configure-stage2-target-libgomp: maybe-all-stage2-gcc
50168configure-stage3-target-libgomp: maybe-all-stage3-gcc
50169configure-stage4-target-libgomp: maybe-all-stage4-gcc
50170configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
50171configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
50172configure-target-libitm: stage_last
50173configure-target-libatomic: stage_last
c52c6897 50174@endif gcc-bootstrap
9e6ce191 50175
c52c6897 50176@if gcc-no-bootstrap
9e6ce191 50177configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 50178configure-target-libsanitizer: maybe-all-gcc
1b6c0831 50179configure-target-libmpx: maybe-all-gcc
95e43135 50180configure-target-libvtv: maybe-all-gcc
e3f56a99 50181configure-target-libcilkrts: maybe-all-gcc
1b6c0831 50182configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 50183configure-target-libssp: maybe-all-gcc
9e6ce191 50184configure-target-newlib: maybe-all-gcc
6aa8ef82 50185configure-target-libgcc: maybe-all-gcc
2bf680c4 50186configure-target-libbacktrace: maybe-all-gcc
e552509b 50187configure-target-libquadmath: maybe-all-gcc
9e6ce191 50188configure-target-libgfortran: maybe-all-gcc
9e6ce191 50189configure-target-libobjc: maybe-all-gcc
e552509b 50190configure-target-libgo: maybe-all-gcc
9e6ce191 50191configure-target-libtermcap: maybe-all-gcc
9e6ce191 50192configure-target-winsup: maybe-all-gcc
9e6ce191 50193configure-target-libgloss: maybe-all-gcc
9e6ce191 50194configure-target-libffi: maybe-all-gcc
9e6ce191 50195configure-target-zlib: maybe-all-gcc
9e6ce191 50196configure-target-rda: maybe-all-gcc
9e6ce191 50197configure-target-libada: maybe-all-gcc
b3ded179 50198configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
50199configure-target-libitm: maybe-all-gcc
50200configure-target-libatomic: maybe-all-gcc
c52c6897 50201@endif gcc-no-bootstrap
b3ded179 50202
9e6ce191 50203
ae831be5
NN
50204# There are two types of dependencies here: 'hard' dependencies, where one
50205# module simply won't build without the other; and 'soft' dependencies, where
50206# if the depended-on module is missing, the depending module will do without
50207# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 50208# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
50209# it's safer to use a soft dependency.
50210
9e6ce191
PB
50211
50212
50213
50214
c60fe18b 50215
9e6ce191
PB
50216# With all the machinery above in place, it is pretty easy to generate
50217# dependencies. Host dependencies are a bit more complex because we have
50218# to check for bootstrap/prebootstrap dependencies. To resolve
50219# prebootstrap dependencies, prebootstrap modules are gathered in
50220# a hash table.
6a9cf61e
PB
50221all-build-bison: maybe-all-build-texinfo
50222all-build-flex: maybe-all-build-texinfo
9e6ce191 50223all-build-flex: maybe-all-build-bison
9e6ce191 50224all-build-flex: maybe-all-build-m4
6a9cf61e 50225all-build-libiberty: maybe-all-build-texinfo
9e6ce191 50226all-build-m4: maybe-all-build-texinfo
ee025550 50227all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 50228all-build-libcpp: maybe-all-build-libiberty
9e6ce191 50229configure-gcc: maybe-configure-intl
9e6ce191
PB
50230configure-stage1-gcc: maybe-configure-stage1-intl
50231configure-stage2-gcc: maybe-configure-stage2-intl
50232configure-stage3-gcc: maybe-configure-stage3-intl
50233configure-stage4-gcc: maybe-configure-stage4-intl
50234configure-stageprofile-gcc: maybe-configure-stageprofile-intl
50235configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8 50236configure-gcc: maybe-all-gmp
861ea9c8
L
50237configure-stage1-gcc: maybe-all-stage1-gmp
50238configure-stage2-gcc: maybe-all-stage2-gmp
50239configure-stage3-gcc: maybe-all-stage3-gmp
50240configure-stage4-gcc: maybe-all-stage4-gmp
50241configure-stageprofile-gcc: maybe-all-stageprofile-gmp
50242configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
1b6c0831 50243configure-gcc: maybe-all-mpfr
1b6c0831
L
50244configure-stage1-gcc: maybe-all-stage1-mpfr
50245configure-stage2-gcc: maybe-all-stage2-mpfr
50246configure-stage3-gcc: maybe-all-stage3-mpfr
50247configure-stage4-gcc: maybe-all-stage4-mpfr
50248configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
50249configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
50250configure-gcc: maybe-all-mpc
1b6c0831
L
50251configure-stage1-gcc: maybe-all-stage1-mpc
50252configure-stage2-gcc: maybe-all-stage2-mpc
50253configure-stage3-gcc: maybe-all-stage3-mpc
50254configure-stage4-gcc: maybe-all-stage4-mpc
50255configure-stageprofile-gcc: maybe-all-stageprofile-mpc
50256configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
50257configure-gcc: maybe-all-isl
1b6c0831
L
50258configure-stage1-gcc: maybe-all-stage1-isl
50259configure-stage2-gcc: maybe-all-stage2-isl
50260configure-stage3-gcc: maybe-all-stage3-isl
50261configure-stage4-gcc: maybe-all-stage4-isl
50262configure-stageprofile-gcc: maybe-all-stageprofile-isl
50263configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
8d8eef9a 50264configure-gcc: maybe-all-lto-plugin
8d8eef9a
RW
50265configure-stage1-gcc: maybe-all-stage1-lto-plugin
50266configure-stage2-gcc: maybe-all-stage2-lto-plugin
50267configure-stage3-gcc: maybe-all-stage3-lto-plugin
50268configure-stage4-gcc: maybe-all-stage4-lto-plugin
50269configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
50270configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b 50271configure-gcc: maybe-all-binutils
c60fe18b
PB
50272configure-stage1-gcc: maybe-all-stage1-binutils
50273configure-stage2-gcc: maybe-all-stage2-binutils
50274configure-stage3-gcc: maybe-all-stage3-binutils
50275configure-stage4-gcc: maybe-all-stage4-binutils
50276configure-stageprofile-gcc: maybe-all-stageprofile-binutils
50277configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
50278configure-gcc: maybe-all-gas
c60fe18b
PB
50279configure-stage1-gcc: maybe-all-stage1-gas
50280configure-stage2-gcc: maybe-all-stage2-gas
50281configure-stage3-gcc: maybe-all-stage3-gas
50282configure-stage4-gcc: maybe-all-stage4-gas
50283configure-stageprofile-gcc: maybe-all-stageprofile-gas
50284configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
50285configure-gcc: maybe-all-ld
c60fe18b
PB
50286configure-stage1-gcc: maybe-all-stage1-ld
50287configure-stage2-gcc: maybe-all-stage2-ld
50288configure-stage3-gcc: maybe-all-stage3-ld
50289configure-stage4-gcc: maybe-all-stage4-ld
50290configure-stageprofile-gcc: maybe-all-stageprofile-ld
50291configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408 50292configure-gcc: maybe-all-gold
93f9b408
ILT
50293configure-stage1-gcc: maybe-all-stage1-gold
50294configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 50295configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
50296configure-stage4-gcc: maybe-all-stage4-gold
50297configure-stageprofile-gcc: maybe-all-stageprofile-gold
50298configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480 50299configure-gcc: maybe-all-libelf
7530c480
AO
50300configure-stage1-gcc: maybe-all-stage1-libelf
50301configure-stage2-gcc: maybe-all-stage2-libelf
50302configure-stage3-gcc: maybe-all-stage3-libelf
50303configure-stage4-gcc: maybe-all-stage4-libelf
50304configure-stageprofile-gcc: maybe-all-stageprofile-libelf
50305configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
016a3251 50306configure-gcc: maybe-all-libiconv
016a3251
DD
50307configure-stage1-gcc: maybe-all-stage1-libiconv
50308configure-stage2-gcc: maybe-all-stage2-libiconv
50309configure-stage3-gcc: maybe-all-stage3-libiconv
50310configure-stage4-gcc: maybe-all-stage4-libiconv
50311configure-stageprofile-gcc: maybe-all-stageprofile-libiconv
50312configure-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
9e6ce191 50313all-gcc: all-libiberty
9e6ce191
PB
50314all-stage1-gcc: all-stage1-libiberty
50315all-stage2-gcc: all-stage2-libiberty
50316all-stage3-gcc: all-stage3-libiberty
50317all-stage4-gcc: all-stage4-libiberty
50318all-stageprofile-gcc: all-stageprofile-libiberty
50319all-stagefeedback-gcc: all-stagefeedback-libiberty
50320all-gcc: maybe-all-intl
9e6ce191
PB
50321all-stage1-gcc: maybe-all-stage1-intl
50322all-stage2-gcc: maybe-all-stage2-intl
50323all-stage3-gcc: maybe-all-stage3-intl
50324all-stage4-gcc: maybe-all-stage4-intl
50325all-stageprofile-gcc: maybe-all-stageprofile-intl
50326all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473 50327all-gcc: maybe-all-mpfr
4b900473
PB
50328all-stage1-gcc: maybe-all-stage1-mpfr
50329all-stage2-gcc: maybe-all-stage2-mpfr
50330all-stage3-gcc: maybe-all-stage3-mpfr
50331all-stage4-gcc: maybe-all-stage4-mpfr
50332all-stageprofile-gcc: maybe-all-stageprofile-mpfr
50333all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c 50334all-gcc: maybe-all-mpc
e8a5fa9c
RW
50335all-stage1-gcc: maybe-all-stage1-mpc
50336all-stage2-gcc: maybe-all-stage2-mpc
50337all-stage3-gcc: maybe-all-stage3-mpc
50338all-stage4-gcc: maybe-all-stage4-mpc
50339all-stageprofile-gcc: maybe-all-stageprofile-mpc
50340all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
1b6c0831 50341all-gcc: maybe-all-isl
1b6c0831
L
50342all-stage1-gcc: maybe-all-stage1-isl
50343all-stage2-gcc: maybe-all-stage2-isl
50344all-stage3-gcc: maybe-all-stage3-isl
50345all-stage4-gcc: maybe-all-stage4-isl
50346all-stageprofile-gcc: maybe-all-stageprofile-isl
50347all-stagefeedback-gcc: maybe-all-stagefeedback-isl
72b2455a 50348all-gcc: maybe-all-build-texinfo
72b2455a
PB
50349all-stage1-gcc: maybe-all-build-texinfo
50350all-stage2-gcc: maybe-all-build-texinfo
50351all-stage3-gcc: maybe-all-build-texinfo
50352all-stage4-gcc: maybe-all-build-texinfo
50353all-stageprofile-gcc: maybe-all-build-texinfo
50354all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a 50355all-gcc: maybe-all-build-bison
72b2455a
PB
50356all-stage1-gcc: maybe-all-build-bison
50357all-stage2-gcc: maybe-all-build-bison
50358all-stage3-gcc: maybe-all-build-bison
50359all-stage4-gcc: maybe-all-build-bison
50360all-stageprofile-gcc: maybe-all-build-bison
50361all-stagefeedback-gcc: maybe-all-build-bison
72b2455a 50362all-gcc: maybe-all-build-flex
72b2455a
PB
50363all-stage1-gcc: maybe-all-build-flex
50364all-stage2-gcc: maybe-all-build-flex
50365all-stage3-gcc: maybe-all-build-flex
50366all-stage4-gcc: maybe-all-build-flex
50367all-stageprofile-gcc: maybe-all-build-flex
50368all-stagefeedback-gcc: maybe-all-build-flex
ee025550 50369all-gcc: maybe-all-build-libiberty
ee025550
PB
50370all-stage1-gcc: maybe-all-build-libiberty
50371all-stage2-gcc: maybe-all-build-libiberty
50372all-stage3-gcc: maybe-all-build-libiberty
50373all-stage4-gcc: maybe-all-build-libiberty
50374all-stageprofile-gcc: maybe-all-build-libiberty
50375all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550 50376all-gcc: maybe-all-build-fixincludes
ee025550
PB
50377all-stage1-gcc: maybe-all-build-fixincludes
50378all-stage2-gcc: maybe-all-build-fixincludes
50379all-stage3-gcc: maybe-all-build-fixincludes
50380all-stage4-gcc: maybe-all-build-fixincludes
50381all-stageprofile-gcc: maybe-all-build-fixincludes
50382all-stagefeedback-gcc: maybe-all-build-fixincludes
1b6c0831 50383all-gcc: maybe-all-build-libcpp
1b6c0831
L
50384all-stage1-gcc: maybe-all-build-libcpp
50385all-stage2-gcc: maybe-all-build-libcpp
50386all-stage3-gcc: maybe-all-build-libcpp
50387all-stage4-gcc: maybe-all-build-libcpp
50388all-stageprofile-gcc: maybe-all-build-libcpp
50389all-stagefeedback-gcc: maybe-all-build-libcpp
9e6ce191 50390all-gcc: maybe-all-zlib
9e6ce191
PB
50391all-stage1-gcc: maybe-all-stage1-zlib
50392all-stage2-gcc: maybe-all-stage2-zlib
50393all-stage3-gcc: maybe-all-stage3-zlib
50394all-stage4-gcc: maybe-all-stage4-zlib
50395all-stageprofile-gcc: maybe-all-stageprofile-zlib
50396all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b 50397all-gcc: all-libbacktrace
8e71395b
L
50398all-stage1-gcc: all-stage1-libbacktrace
50399all-stage2-gcc: all-stage2-libbacktrace
50400all-stage3-gcc: all-stage3-libbacktrace
50401all-stage4-gcc: all-stage4-libbacktrace
50402all-stageprofile-gcc: all-stageprofile-libbacktrace
50403all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191 50404all-gcc: all-libcpp
9e6ce191
PB
50405all-stage1-gcc: all-stage1-libcpp
50406all-stage2-gcc: all-stage2-libcpp
50407all-stage3-gcc: all-stage3-libcpp
50408all-stage4-gcc: all-stage4-libcpp
50409all-stageprofile-gcc: all-stageprofile-libcpp
50410all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343 50411all-gcc: all-libdecnumber
be01d343
PB
50412all-stage1-gcc: all-stage1-libdecnumber
50413all-stage2-gcc: all-stage2-libdecnumber
50414all-stage3-gcc: all-stage3-libdecnumber
50415all-stage4-gcc: all-stage4-libdecnumber
50416all-stageprofile-gcc: all-stageprofile-libdecnumber
50417all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c 50418all-gcc: maybe-all-libiberty
d3ed111c
GK
50419all-stage1-gcc: maybe-all-stage1-libiberty
50420all-stage2-gcc: maybe-all-stage2-libiberty
50421all-stage3-gcc: maybe-all-stage3-libiberty
50422all-stage4-gcc: maybe-all-stage4-libiberty
50423all-stageprofile-gcc: maybe-all-stageprofile-libiberty
50424all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
50425all-gcc: maybe-all-fixincludes
201f096f 50426all-stage1-gcc: maybe-all-stage1-fixincludes
50427all-stage2-gcc: maybe-all-stage2-fixincludes
50428all-stage3-gcc: maybe-all-stage3-fixincludes
50429all-stage4-gcc: maybe-all-stage4-fixincludes
50430all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
50431all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
8d8eef9a 50432all-gcc: maybe-all-lto-plugin
8d8eef9a
RW
50433all-stage1-gcc: maybe-all-stage1-lto-plugin
50434all-stage2-gcc: maybe-all-stage2-lto-plugin
50435all-stage3-gcc: maybe-all-stage3-lto-plugin
50436all-stage4-gcc: maybe-all-stage4-lto-plugin
50437all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
50438all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
016a3251 50439all-gcc: maybe-all-libiconv
016a3251
DD
50440all-stage1-gcc: maybe-all-stage1-libiconv
50441all-stage2-gcc: maybe-all-stage2-libiconv
50442all-stage3-gcc: maybe-all-stage3-libiconv
50443all-stage4-gcc: maybe-all-stage4-libiconv
50444all-stageprofile-gcc: maybe-all-stageprofile-libiconv
50445all-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
57eefe4d 50446info-gcc: maybe-all-build-libiberty
57eefe4d
RW
50447info-stage1-gcc: maybe-all-build-libiberty
50448info-stage2-gcc: maybe-all-build-libiberty
50449info-stage3-gcc: maybe-all-build-libiberty
50450info-stage4-gcc: maybe-all-build-libiberty
50451info-stageprofile-gcc: maybe-all-build-libiberty
50452info-stagefeedback-gcc: maybe-all-build-libiberty
50453dvi-gcc: maybe-all-build-libiberty
57eefe4d
RW
50454dvi-stage1-gcc: maybe-all-build-libiberty
50455dvi-stage2-gcc: maybe-all-build-libiberty
50456dvi-stage3-gcc: maybe-all-build-libiberty
50457dvi-stage4-gcc: maybe-all-build-libiberty
50458dvi-stageprofile-gcc: maybe-all-build-libiberty
50459dvi-stagefeedback-gcc: maybe-all-build-libiberty
50460pdf-gcc: maybe-all-build-libiberty
57eefe4d
RW
50461pdf-stage1-gcc: maybe-all-build-libiberty
50462pdf-stage2-gcc: maybe-all-build-libiberty
50463pdf-stage3-gcc: maybe-all-build-libiberty
50464pdf-stage4-gcc: maybe-all-build-libiberty
50465pdf-stageprofile-gcc: maybe-all-build-libiberty
50466pdf-stagefeedback-gcc: maybe-all-build-libiberty
50467html-gcc: maybe-all-build-libiberty
57eefe4d
RW
50468html-stage1-gcc: maybe-all-build-libiberty
50469html-stage2-gcc: maybe-all-build-libiberty
50470html-stage3-gcc: maybe-all-build-libiberty
50471html-stage4-gcc: maybe-all-build-libiberty
50472html-stageprofile-gcc: maybe-all-build-libiberty
50473html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 50474install-gcc: maybe-install-fixincludes
8d8eef9a 50475install-gcc: maybe-install-lto-plugin
9b980aa1 50476install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 50477install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191 50478configure-libcpp: configure-libiberty
9e6ce191
PB
50479configure-stage1-libcpp: configure-stage1-libiberty
50480configure-stage2-libcpp: configure-stage2-libiberty
50481configure-stage3-libcpp: configure-stage3-libiberty
50482configure-stage4-libcpp: configure-stage4-libiberty
50483configure-stageprofile-libcpp: configure-stageprofile-libiberty
50484configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
50485configure-libcpp: maybe-configure-intl
9e6ce191
PB
50486configure-stage1-libcpp: maybe-configure-stage1-intl
50487configure-stage2-libcpp: maybe-configure-stage2-intl
50488configure-stage3-libcpp: maybe-configure-stage3-intl
50489configure-stage4-libcpp: maybe-configure-stage4-intl
50490configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
50491configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
016a3251 50492configure-libcpp: maybe-all-libiconv
016a3251
DD
50493configure-stage1-libcpp: maybe-all-stage1-libiconv
50494configure-stage2-libcpp: maybe-all-stage2-libiconv
50495configure-stage3-libcpp: maybe-all-stage3-libiconv
50496configure-stage4-libcpp: maybe-all-stage4-libiconv
50497configure-stageprofile-libcpp: maybe-all-stageprofile-libiconv
50498configure-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
9e6ce191 50499all-libcpp: all-libiberty
9e6ce191
PB
50500all-stage1-libcpp: all-stage1-libiberty
50501all-stage2-libcpp: all-stage2-libiberty
50502all-stage3-libcpp: all-stage3-libiberty
50503all-stage4-libcpp: all-stage4-libiberty
50504all-stageprofile-libcpp: all-stageprofile-libiberty
50505all-stagefeedback-libcpp: all-stagefeedback-libiberty
50506all-libcpp: maybe-all-intl
9e6ce191
PB
50507all-stage1-libcpp: maybe-all-stage1-intl
50508all-stage2-libcpp: maybe-all-stage2-intl
50509all-stage3-libcpp: maybe-all-stage3-intl
50510all-stage4-libcpp: maybe-all-stage4-intl
50511all-stageprofile-libcpp: maybe-all-stageprofile-intl
50512all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
016a3251 50513all-libcpp: maybe-all-libiconv
016a3251
DD
50514all-stage1-libcpp: maybe-all-stage1-libiconv
50515all-stage2-libcpp: maybe-all-stage2-libiconv
50516all-stage3-libcpp: maybe-all-stage3-libiconv
50517all-stage4-libcpp: maybe-all-stage4-libiconv
50518all-stageprofile-libcpp: maybe-all-stageprofile-libiconv
50519all-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
d3ed111c 50520all-fixincludes: maybe-all-libiberty
201f096f 50521all-stage1-fixincludes: maybe-all-stage1-libiberty
50522all-stage2-fixincludes: maybe-all-stage2-libiberty
50523all-stage3-fixincludes: maybe-all-stage3-libiberty
50524all-stage4-fixincludes: maybe-all-stage4-libiberty
50525all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
50526all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
b00612cc 50527all-gnattools: maybe-all-target-libada
8d8eef9a 50528all-lto-plugin: maybe-all-libiberty
8d8eef9a
RW
50529all-stage1-lto-plugin: maybe-all-stage1-libiberty
50530all-stage2-lto-plugin: maybe-all-stage2-libiberty
50531all-stage3-lto-plugin: maybe-all-stage3-libiberty
50532all-stage4-lto-plugin: maybe-all-stage4-libiberty
50533all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
50534all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
1b6c0831 50535all-lto-plugin: maybe-all-libiberty-linker-plugin
1b6c0831
L
50536all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
50537all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
50538all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
50539all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
50540all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
50541all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
1b6c0831 50542all-gotools: maybe-all-target-libgo
016a3251 50543configure-intl: maybe-all-libiconv
016a3251
DD
50544configure-stage1-intl: maybe-all-stage1-libiconv
50545configure-stage2-intl: maybe-all-stage2-libiconv
50546configure-stage3-intl: maybe-all-stage3-libiconv
50547configure-stage4-intl: maybe-all-stage4-libiconv
50548configure-stageprofile-intl: maybe-all-stageprofile-libiconv
50549configure-stagefeedback-intl: maybe-all-stagefeedback-libiconv
4b900473 50550configure-mpfr: maybe-all-gmp
4b900473
PB
50551configure-stage1-mpfr: maybe-all-stage1-gmp
50552configure-stage2-mpfr: maybe-all-stage2-gmp
50553configure-stage3-mpfr: maybe-all-stage3-gmp
50554configure-stage4-mpfr: maybe-all-stage4-gmp
50555configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
50556configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c 50557configure-mpc: maybe-all-mpfr
e8a5fa9c
RW
50558configure-stage1-mpc: maybe-all-stage1-mpfr
50559configure-stage2-mpc: maybe-all-stage2-mpfr
50560configure-stage3-mpc: maybe-all-stage3-mpfr
50561configure-stage4-mpc: maybe-all-stage4-mpfr
50562configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
50563configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e 50564configure-isl: maybe-all-gmp
7ec59b9e
L
50565configure-stage1-isl: maybe-all-stage1-gmp
50566configure-stage2-isl: maybe-all-stage2-gmp
50567configure-stage3-isl: maybe-all-stage3-gmp
50568configure-stage4-isl: maybe-all-stage4-gmp
50569configure-stageprofile-isl: maybe-all-stageprofile-gmp
50570configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
016a3251 50571all-intl: maybe-all-libiconv
016a3251
DD
50572all-stage1-intl: maybe-all-stage1-libiconv
50573all-stage2-intl: maybe-all-stage2-libiconv
50574all-stage3-intl: maybe-all-stage3-libiconv
50575all-stage4-intl: maybe-all-stage4-libiconv
50576all-stageprofile-intl: maybe-all-stageprofile-libiconv
50577all-stagefeedback-intl: maybe-all-stagefeedback-libiconv
9e6ce191 50578configure-gdb: maybe-configure-sim
9e6ce191 50579all-gdb: maybe-all-readline
72b2455a 50580all-gdb: maybe-all-build-bison
9e6ce191 50581all-gdb: maybe-all-sim
dbbe5f95 50582all-gdb: maybe-all-libtermcap
9e6ce191
PB
50583configure-libgui: maybe-configure-tcl
50584configure-libgui: maybe-configure-tk
50585all-libgui: maybe-all-tcl
50586all-libgui: maybe-all-tk
50587all-libgui: maybe-all-itcl
b4a77b47 50588configure-bfd: configure-libiberty
9e6ce191
PB
50589configure-stage1-bfd: configure-stage1-libiberty
50590configure-stage2-bfd: configure-stage2-libiberty
50591configure-stage3-bfd: configure-stage3-libiberty
50592configure-stage4-bfd: configure-stage4-libiberty
50593configure-stageprofile-bfd: configure-stageprofile-libiberty
50594configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23 50595configure-bfd: maybe-configure-intl
20e95c23
DJ
50596configure-stage1-bfd: maybe-configure-stage1-intl
50597configure-stage2-bfd: maybe-configure-stage2-intl
50598configure-stage3-bfd: maybe-configure-stage3-intl
50599configure-stage4-bfd: maybe-configure-stage4-intl
50600configure-stageprofile-bfd: maybe-configure-stageprofile-intl
50601configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191 50602all-bfd: maybe-all-libiberty
9e6ce191
PB
50603all-stage1-bfd: maybe-all-stage1-libiberty
50604all-stage2-bfd: maybe-all-stage2-libiberty
50605all-stage3-bfd: maybe-all-stage3-libiberty
50606all-stage4-bfd: maybe-all-stage4-libiberty
50607all-stageprofile-bfd: maybe-all-stageprofile-libiberty
50608all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
50609all-bfd: maybe-all-intl
9e6ce191
PB
50610all-stage1-bfd: maybe-all-stage1-intl
50611all-stage2-bfd: maybe-all-stage2-intl
50612all-stage3-bfd: maybe-all-stage3-intl
50613all-stage4-bfd: maybe-all-stage4-intl
50614all-stageprofile-bfd: maybe-all-stageprofile-intl
50615all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d2d67aea 50616all-bfd: maybe-all-zlib
d2d67aea
L
50617all-stage1-bfd: maybe-all-stage1-zlib
50618all-stage2-bfd: maybe-all-stage2-zlib
50619all-stage3-bfd: maybe-all-stage3-zlib
50620all-stage4-bfd: maybe-all-stage4-zlib
50621all-stageprofile-bfd: maybe-all-stageprofile-zlib
50622all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
66775d67 50623configure-opcodes: configure-libiberty
66775d67
AM
50624configure-stage1-opcodes: configure-stage1-libiberty
50625configure-stage2-opcodes: configure-stage2-libiberty
66775d67 50626configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
50627configure-stage4-opcodes: configure-stage4-libiberty
50628configure-stageprofile-opcodes: configure-stageprofile-libiberty
50629configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
50630all-opcodes: maybe-all-libiberty
66775d67
AM
50631all-stage1-opcodes: maybe-all-stage1-libiberty
50632all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 50633all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
50634all-stage4-opcodes: maybe-all-stage4-libiberty
50635all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50636all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23 50637configure-binutils: maybe-configure-intl
20e95c23
DJ
50638configure-stage1-binutils: maybe-configure-stage1-intl
50639configure-stage2-binutils: maybe-configure-stage2-intl
50640configure-stage3-binutils: maybe-configure-stage3-intl
50641configure-stage4-binutils: maybe-configure-stage4-intl
50642configure-stageprofile-binutils: maybe-configure-stageprofile-intl
50643configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191 50644all-binutils: maybe-all-libiberty
9e6ce191
PB
50645all-stage1-binutils: maybe-all-stage1-libiberty
50646all-stage2-binutils: maybe-all-stage2-libiberty
50647all-stage3-binutils: maybe-all-stage3-libiberty
50648all-stage4-binutils: maybe-all-stage4-libiberty
50649all-stageprofile-binutils: maybe-all-stageprofile-libiberty
50650all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
50651all-binutils: maybe-all-opcodes
9e6ce191
PB
50652all-stage1-binutils: maybe-all-stage1-opcodes
50653all-stage2-binutils: maybe-all-stage2-opcodes
50654all-stage3-binutils: maybe-all-stage3-opcodes
50655all-stage4-binutils: maybe-all-stage4-opcodes
50656all-stageprofile-binutils: maybe-all-stageprofile-opcodes
50657all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
50658all-binutils: maybe-all-bfd
9e6ce191
PB
50659all-stage1-binutils: maybe-all-stage1-bfd
50660all-stage2-binutils: maybe-all-stage2-bfd
50661all-stage3-binutils: maybe-all-stage3-bfd
50662all-stage4-binutils: maybe-all-stage4-bfd
50663all-stageprofile-binutils: maybe-all-stageprofile-bfd
50664all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a 50665all-binutils: maybe-all-build-flex
72b2455a
PB
50666all-stage1-binutils: maybe-all-build-flex
50667all-stage2-binutils: maybe-all-build-flex
50668all-stage3-binutils: maybe-all-build-flex
50669all-stage4-binutils: maybe-all-build-flex
50670all-stageprofile-binutils: maybe-all-build-flex
50671all-stagefeedback-binutils: maybe-all-build-flex
72b2455a 50672all-binutils: maybe-all-build-bison
72b2455a
PB
50673all-stage1-binutils: maybe-all-build-bison
50674all-stage2-binutils: maybe-all-build-bison
50675all-stage3-binutils: maybe-all-build-bison
50676all-stage4-binutils: maybe-all-build-bison
50677all-stageprofile-binutils: maybe-all-build-bison
50678all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191 50679all-binutils: maybe-all-intl
9e6ce191
PB
50680all-stage1-binutils: maybe-all-stage1-intl
50681all-stage2-binutils: maybe-all-stage2-intl
50682all-stage3-binutils: maybe-all-stage3-intl
50683all-stage4-binutils: maybe-all-stage4-intl
50684all-stageprofile-binutils: maybe-all-stageprofile-intl
50685all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685 50686all-binutils: maybe-all-gas
0140d685
L
50687all-stage1-binutils: maybe-all-stage1-gas
50688all-stage2-binutils: maybe-all-stage2-gas
50689all-stage3-binutils: maybe-all-stage3-gas
50690all-stage4-binutils: maybe-all-stage4-gas
50691all-stageprofile-binutils: maybe-all-stageprofile-gas
50692all-stagefeedback-binutils: maybe-all-stagefeedback-gas
0e65dfba
NA
50693all-binutils: maybe-all-libctf
50694all-stage1-binutils: maybe-all-stage1-libctf
50695all-stage2-binutils: maybe-all-stage2-libctf
50696all-stage3-binutils: maybe-all-stage3-libctf
50697all-stage4-binutils: maybe-all-stage4-libctf
50698all-stageprofile-binutils: maybe-all-stageprofile-libctf
50699all-stagefeedback-binutils: maybe-all-stagefeedback-libctf
ae831be5 50700install-binutils: maybe-install-opcodes
9b980aa1 50701install-strip-binutils: maybe-install-strip-opcodes
cf662e21 50702install-opcodes: maybe-install-bfd
9b980aa1 50703install-strip-opcodes: maybe-install-strip-bfd
20e95c23 50704configure-gas: maybe-configure-intl
20e95c23
DJ
50705configure-stage1-gas: maybe-configure-stage1-intl
50706configure-stage2-gas: maybe-configure-stage2-intl
50707configure-stage3-gas: maybe-configure-stage3-intl
50708configure-stage4-gas: maybe-configure-stage4-intl
50709configure-stageprofile-gas: maybe-configure-stageprofile-intl
50710configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191 50711all-gas: maybe-all-libiberty
9e6ce191
PB
50712all-stage1-gas: maybe-all-stage1-libiberty
50713all-stage2-gas: maybe-all-stage2-libiberty
50714all-stage3-gas: maybe-all-stage3-libiberty
50715all-stage4-gas: maybe-all-stage4-libiberty
50716all-stageprofile-gas: maybe-all-stageprofile-libiberty
50717all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
50718all-gas: maybe-all-opcodes
9e6ce191
PB
50719all-stage1-gas: maybe-all-stage1-opcodes
50720all-stage2-gas: maybe-all-stage2-opcodes
50721all-stage3-gas: maybe-all-stage3-opcodes
50722all-stage4-gas: maybe-all-stage4-opcodes
50723all-stageprofile-gas: maybe-all-stageprofile-opcodes
50724all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
50725all-gas: maybe-all-bfd
9e6ce191
PB
50726all-stage1-gas: maybe-all-stage1-bfd
50727all-stage2-gas: maybe-all-stage2-bfd
50728all-stage3-gas: maybe-all-stage3-bfd
50729all-stage4-gas: maybe-all-stage4-bfd
50730all-stageprofile-gas: maybe-all-stageprofile-bfd
50731all-stagefeedback-gas: maybe-all-stagefeedback-bfd
50732all-gas: maybe-all-intl
9e6ce191
PB
50733all-stage1-gas: maybe-all-stage1-intl
50734all-stage2-gas: maybe-all-stage2-intl
50735all-stage3-gas: maybe-all-stage3-intl
50736all-stage4-gas: maybe-all-stage4-intl
50737all-stageprofile-gas: maybe-all-stageprofile-intl
50738all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 50739configure-ld: maybe-configure-intl
20e95c23
DJ
50740configure-stage1-ld: maybe-configure-stage1-intl
50741configure-stage2-ld: maybe-configure-stage2-intl
50742configure-stage3-ld: maybe-configure-stage3-intl
50743configure-stage4-ld: maybe-configure-stage4-intl
50744configure-stageprofile-ld: maybe-configure-stageprofile-intl
50745configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191 50746all-ld: maybe-all-libiberty
9e6ce191
PB
50747all-stage1-ld: maybe-all-stage1-libiberty
50748all-stage2-ld: maybe-all-stage2-libiberty
50749all-stage3-ld: maybe-all-stage3-libiberty
50750all-stage4-ld: maybe-all-stage4-libiberty
50751all-stageprofile-ld: maybe-all-stageprofile-libiberty
50752all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
50753all-ld: maybe-all-bfd
9e6ce191
PB
50754all-stage1-ld: maybe-all-stage1-bfd
50755all-stage2-ld: maybe-all-stage2-bfd
50756all-stage3-ld: maybe-all-stage3-bfd
50757all-stage4-ld: maybe-all-stage4-bfd
50758all-stageprofile-ld: maybe-all-stageprofile-bfd
50759all-stagefeedback-ld: maybe-all-stagefeedback-bfd
50760all-ld: maybe-all-opcodes
9e6ce191
PB
50761all-stage1-ld: maybe-all-stage1-opcodes
50762all-stage2-ld: maybe-all-stage2-opcodes
50763all-stage3-ld: maybe-all-stage3-opcodes
50764all-stage4-ld: maybe-all-stage4-opcodes
50765all-stageprofile-ld: maybe-all-stageprofile-opcodes
50766all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a 50767all-ld: maybe-all-build-bison
72b2455a
PB
50768all-stage1-ld: maybe-all-build-bison
50769all-stage2-ld: maybe-all-build-bison
50770all-stage3-ld: maybe-all-build-bison
50771all-stage4-ld: maybe-all-build-bison
50772all-stageprofile-ld: maybe-all-build-bison
50773all-stagefeedback-ld: maybe-all-build-bison
72b2455a 50774all-ld: maybe-all-build-flex
72b2455a
PB
50775all-stage1-ld: maybe-all-build-flex
50776all-stage2-ld: maybe-all-build-flex
50777all-stage3-ld: maybe-all-build-flex
50778all-stage4-ld: maybe-all-build-flex
50779all-stageprofile-ld: maybe-all-build-flex
50780all-stagefeedback-ld: maybe-all-build-flex
9e6ce191 50781all-ld: maybe-all-intl
9e6ce191
PB
50782all-stage1-ld: maybe-all-stage1-intl
50783all-stage2-ld: maybe-all-stage2-intl
50784all-stage3-ld: maybe-all-stage3-intl
50785all-stage4-ld: maybe-all-stage4-intl
50786all-stageprofile-ld: maybe-all-stageprofile-intl
50787all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685 50788all-ld: maybe-all-gas
0140d685
L
50789all-stage1-ld: maybe-all-stage1-gas
50790all-stage2-ld: maybe-all-stage2-gas
50791all-stage3-ld: maybe-all-stage3-gas
50792all-stage4-ld: maybe-all-stage4-gas
50793all-stageprofile-ld: maybe-all-stageprofile-gas
50794all-stagefeedback-ld: maybe-all-stagefeedback-gas
a6305403 50795all-ld: maybe-all-binutils
a6305403
YS
50796all-stage1-ld: maybe-all-stage1-binutils
50797all-stage2-ld: maybe-all-stage2-binutils
50798all-stage3-ld: maybe-all-stage3-binutils
50799all-stage4-ld: maybe-all-stage4-binutils
50800all-stageprofile-ld: maybe-all-stageprofile-binutils
50801all-stagefeedback-ld: maybe-all-stagefeedback-binutils
e6de499b 50802install-ld: maybe-install-gold
9b980aa1 50803install-strip-ld: maybe-install-strip-gold
93f9b408 50804configure-gold: maybe-configure-intl
93f9b408
ILT
50805configure-stage1-gold: maybe-configure-stage1-intl
50806configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 50807configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
50808configure-stage4-gold: maybe-configure-stage4-intl
50809configure-stageprofile-gold: maybe-configure-stageprofile-intl
50810configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
50811all-gold: maybe-all-libiberty
93f9b408
ILT
50812all-stage1-gold: maybe-all-stage1-libiberty
50813all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 50814all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
50815all-stage4-gold: maybe-all-stage4-libiberty
50816all-stageprofile-gold: maybe-all-stageprofile-libiberty
50817all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
50818all-gold: maybe-all-intl
93f9b408
ILT
50819all-stage1-gold: maybe-all-stage1-intl
50820all-stage2-gold: maybe-all-stage2-intl
93f9b408 50821all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
50822all-stage4-gold: maybe-all-stage4-intl
50823all-stageprofile-gold: maybe-all-stageprofile-intl
50824all-stagefeedback-gold: maybe-all-stagefeedback-intl
50825all-gold: maybe-all-bfd
93f9b408
ILT
50826all-stage1-gold: maybe-all-stage1-bfd
50827all-stage2-gold: maybe-all-stage2-bfd
93f9b408 50828all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
50829all-stage4-gold: maybe-all-stage4-bfd
50830all-stageprofile-gold: maybe-all-stageprofile-bfd
50831all-stagefeedback-gold: maybe-all-stagefeedback-bfd
50832all-gold: maybe-all-build-bison
93f9b408
ILT
50833all-stage1-gold: maybe-all-build-bison
50834all-stage2-gold: maybe-all-build-bison
93f9b408 50835all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
50836all-stage4-gold: maybe-all-build-bison
50837all-stageprofile-gold: maybe-all-build-bison
50838all-stagefeedback-gold: maybe-all-build-bison
0140d685 50839all-gold: maybe-all-gas
0140d685
L
50840all-stage1-gold: maybe-all-stage1-gas
50841all-stage2-gold: maybe-all-stage2-gas
50842all-stage3-gold: maybe-all-stage3-gas
50843all-stage4-gold: maybe-all-stage4-gas
50844all-stageprofile-gold: maybe-all-stageprofile-gas
50845all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97 50846check-gold: maybe-all-binutils
e5164e97
ILT
50847check-stage1-gold: maybe-all-stage1-binutils
50848check-stage2-gold: maybe-all-stage2-binutils
e5164e97 50849check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
50850check-stage4-gold: maybe-all-stage4-binutils
50851check-stageprofile-gold: maybe-all-stageprofile-binutils
50852check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca 50853check-gold: maybe-all-gas
700d40ca
ILT
50854check-stage1-gold: maybe-all-stage1-gas
50855check-stage2-gold: maybe-all-stage2-gas
50856check-stage3-gold: maybe-all-stage3-gas
50857check-stage4-gold: maybe-all-stage4-gas
50858check-stageprofile-gold: maybe-all-stageprofile-gas
50859check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee 50860configure-opcodes: maybe-configure-intl
7206a0ee
JJ
50861configure-stage1-opcodes: maybe-configure-stage1-intl
50862configure-stage2-opcodes: maybe-configure-stage2-intl
50863configure-stage3-opcodes: maybe-configure-stage3-intl
50864configure-stage4-opcodes: maybe-configure-stage4-intl
50865configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
50866configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191 50867all-opcodes: maybe-all-bfd
9e6ce191
PB
50868all-stage1-opcodes: maybe-all-stage1-bfd
50869all-stage2-opcodes: maybe-all-stage2-bfd
50870all-stage3-opcodes: maybe-all-stage3-bfd
50871all-stage4-opcodes: maybe-all-stage4-bfd
50872all-stageprofile-opcodes: maybe-all-stageprofile-bfd
50873all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
50874all-opcodes: maybe-all-libiberty
9e6ce191
PB
50875all-stage1-opcodes: maybe-all-stage1-libiberty
50876all-stage2-opcodes: maybe-all-stage2-libiberty
50877all-stage3-opcodes: maybe-all-stage3-libiberty
50878all-stage4-opcodes: maybe-all-stage4-libiberty
50879all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
50880all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee 50881all-opcodes: maybe-all-intl
7206a0ee
JJ
50882all-stage1-opcodes: maybe-all-stage1-intl
50883all-stage2-opcodes: maybe-all-stage2-intl
50884all-stage3-opcodes: maybe-all-stage3-intl
50885all-stage4-opcodes: maybe-all-stage4-intl
50886all-stageprofile-opcodes: maybe-all-stageprofile-intl
50887all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
50888all-dejagnu: maybe-all-tcl
50889all-dejagnu: maybe-all-expect
50890all-dejagnu: maybe-all-tk
50891configure-expect: maybe-configure-tcl
50892configure-expect: maybe-configure-tk
50893all-expect: maybe-all-tcl
50894all-expect: maybe-all-tk
50895configure-itcl: maybe-configure-tcl
50896configure-itcl: maybe-configure-tk
50897all-itcl: maybe-all-tcl
50898all-itcl: maybe-all-tk
ae831be5 50899install-itcl: maybe-install-tcl
9b980aa1 50900install-strip-itcl: maybe-install-strip-tcl
b4a77b47 50901configure-tk: maybe-configure-tcl
ae831be5 50902all-tk: maybe-all-tcl
9e6ce191
PB
50903all-sid: maybe-all-tcl
50904all-sid: maybe-all-tk
50905install-sid: maybe-install-tcl
9b980aa1 50906install-strip-sid: maybe-install-strip-tcl
9e6ce191 50907install-sid: maybe-install-tk
9b980aa1 50908install-strip-sid: maybe-install-strip-tk
9e6ce191
PB
50909all-sim: maybe-all-readline
50910all-sim: maybe-configure-gdb
72b2455a 50911all-fastjar: maybe-all-build-texinfo
0e65dfba
NA
50912all-libctf: all-libiberty
50913all-stage1-libctf: all-stage1-libiberty
50914all-stage2-libctf: all-stage2-libiberty
50915all-stage3-libctf: all-stage3-libiberty
50916all-stage4-libctf: all-stage4-libiberty
50917all-stageprofile-libctf: all-stageprofile-libiberty
50918all-stagefeedback-libctf: all-stagefeedback-libiberty
50919all-libctf: maybe-all-bfd
50920all-stage1-libctf: maybe-all-stage1-bfd
50921all-stage2-libctf: maybe-all-stage2-bfd
50922all-stage3-libctf: maybe-all-stage3-bfd
50923all-stage4-libctf: maybe-all-stage4-bfd
50924all-stageprofile-libctf: maybe-all-stageprofile-bfd
50925all-stagefeedback-libctf: maybe-all-stagefeedback-bfd
50926all-libctf: maybe-all-zlib
50927all-stage1-libctf: maybe-all-stage1-zlib
50928all-stage2-libctf: maybe-all-stage2-zlib
50929all-stage3-libctf: maybe-all-stage3-zlib
50930all-stage4-libctf: maybe-all-stage4-zlib
50931all-stageprofile-libctf: maybe-all-stageprofile-zlib
50932all-stagefeedback-libctf: maybe-all-stagefeedback-zlib
9698cf9b
NA
50933configure-libctf: maybe-all-bfd
50934configure-stage1-libctf: maybe-all-stage1-bfd
50935configure-stage2-libctf: maybe-all-stage2-bfd
50936configure-stage3-libctf: maybe-all-stage3-bfd
50937configure-stage4-libctf: maybe-all-stage4-bfd
50938configure-stageprofile-libctf: maybe-all-stageprofile-bfd
50939configure-stagefeedback-libctf: maybe-all-stagefeedback-bfd
50940configure-libctf: maybe-all-intl
50941configure-stage1-libctf: maybe-all-stage1-intl
50942configure-stage2-libctf: maybe-all-stage2-intl
50943configure-stage3-libctf: maybe-all-stage3-intl
50944configure-stage4-libctf: maybe-all-stage4-intl
50945configure-stageprofile-libctf: maybe-all-stageprofile-intl
50946configure-stagefeedback-libctf: maybe-all-stagefeedback-intl
50947configure-libctf: maybe-all-zlib
50948configure-stage1-libctf: maybe-all-stage1-zlib
50949configure-stage2-libctf: maybe-all-stage2-zlib
50950configure-stage3-libctf: maybe-all-stage3-zlib
50951configure-stage4-libctf: maybe-all-stage4-zlib
50952configure-stageprofile-libctf: maybe-all-stageprofile-zlib
50953configure-stagefeedback-libctf: maybe-all-stagefeedback-zlib
50954configure-libctf: maybe-all-libiconv
50955configure-stage1-libctf: maybe-all-stage1-libiconv
50956configure-stage2-libctf: maybe-all-stage2-libiconv
50957configure-stage3-libctf: maybe-all-stage3-libiconv
50958configure-stage4-libctf: maybe-all-stage4-libiconv
50959configure-stageprofile-libctf: maybe-all-stageprofile-libiconv
50960configure-stagefeedback-libctf: maybe-all-stagefeedback-libiconv
72b2455a 50961all-bison: maybe-all-build-texinfo
72b2455a 50962all-flex: maybe-all-build-bison
9e6ce191 50963all-flex: maybe-all-m4
72b2455a 50964all-flex: maybe-all-build-texinfo
72b2455a 50965all-m4: maybe-all-build-texinfo
b4a77b47 50966configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 50967all-target-fastjar: maybe-all-target-zlib
e552509b 50968configure-target-libgo: maybe-configure-target-libffi
8e71395b 50969all-target-libgo: maybe-all-target-libbacktrace
e552509b 50970all-target-libgo: maybe-all-target-libffi
9417cd2f 50971all-target-libgo: maybe-all-target-libatomic
cff87f51 50972configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
50973configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50974configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50975configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50976configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50977configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50978configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
5286fdef 50979configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
50980configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
50981configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
50982configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
50983configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
50984configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
50985configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135 50986configure-target-libvtv: maybe-all-target-libstdc++-v3
95e43135
JBG
50987configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
50988configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
50989configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
50990configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
50991configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
50992configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
911e63d0 50993all-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
50994all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
50995all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
50996all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
50997all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
50998all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
50999all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
9417cd2f
JBG
51000install-target-libgo: maybe-install-target-libatomic
51001install-target-libgfortran: maybe-install-target-libquadmath
51002install-target-libgfortran: maybe-install-target-libgcc
3dae1673 51003install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 51004install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
51005install-target-libvtv: maybe-install-target-libstdc++-v3
51006install-target-libvtv: maybe-install-target-libgcc
e3f56a99
NC
51007install-target-libcilkrts: maybe-install-target-libstdc++-v3
51008install-target-libcilkrts: maybe-install-target-libgcc
1b6c0831
L
51009install-target-liboffloadmic: maybe-install-target-libstdc++-v3
51010install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
51011install-target-libitm: maybe-install-target-libgcc
51012install-target-libobjc: maybe-install-target-libgcc
51013install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 51014all-target-libgloss: maybe-all-target-newlib
9e6ce191 51015all-target-winsup: maybe-all-target-libtermcap
e552509b 51016configure-target-libgfortran: maybe-all-target-libquadmath
68996839 51017configure-target-libgfortran: maybe-all-target-libbacktrace
9e6ce191
PB
51018
51019
4119873a
AO
51020@if gcc-bootstrap
51021configure-gnattools: stage_last
51022configure-libcc1: stage_last
51023configure-utils: stage_last
51024configure-gdb: stage_last
51025configure-gprof: stage_last
51026configure-sid: stage_last
51027configure-sim: stage_last
51028configure-fastjar: stage_last
51029configure-bison: stage_last
51030configure-flex: stage_last
51031configure-m4: stage_last
51032@endif gcc-bootstrap
51033
51034@unless gcc-bootstrap
51035all-gnattools: maybe-all-target-libstdc++-v3
51036configure-libcc1: maybe-configure-gcc
51037all-libcc1: maybe-all-gcc
51038all-utils: maybe-all-libiberty
51039configure-gdb: maybe-all-intl
51040configure-gdb: maybe-all-bfd
51041configure-gdb: maybe-all-libiconv
51042all-gdb: maybe-all-libiberty
51043all-gdb: maybe-all-libiconv
51044all-gdb: maybe-all-opcodes
51045all-gdb: maybe-all-libdecnumber
51046configure-gprof: maybe-configure-intl
51047all-gprof: maybe-all-libiberty
51048all-gprof: maybe-all-bfd
51049all-gprof: maybe-all-opcodes
51050all-gprof: maybe-all-intl
51051all-gprof: maybe-all-gas
51052all-sid: maybe-all-libiberty
51053all-sid: maybe-all-bfd
51054all-sid: maybe-all-opcodes
51055configure-sim: maybe-configure-intl
51056all-sim: maybe-all-intl
51057all-sim: maybe-all-libiberty
51058all-sim: maybe-all-bfd
51059all-sim: maybe-all-opcodes
51060all-fastjar: maybe-all-zlib
51061all-fastjar: maybe-all-libiberty
51062all-bison: maybe-all-intl
51063all-flex: maybe-all-intl
51064all-m4: maybe-all-intl
51065configure-target-libgo: maybe-all-target-libstdc++-v3
51066configure-target-liboffloadmic: maybe-configure-target-libgomp
51067all-target-liboffloadmic: maybe-all-target-libgomp
51068configure-target-newlib: maybe-all-binutils
51069configure-target-newlib: maybe-all-ld
51070@endunless gcc-bootstrap
51071
6aa8ef82
DJ
51072# Dependencies for target modules on other target modules are
51073# described by lang_env_dependencies; the defaults apply to anything
51074# not mentioned there.
51075
51076
51077@if gcc-bootstrap
e8a5fa9c
RW
51078configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
51079configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
51080configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
51081configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
51082configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
51083configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
51084configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
51085configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
51086configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
51087configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
51088configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
51089configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
1b6c0831
L
51090configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
51091configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
51092configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
51093configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
51094configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
51095configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
51096configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
51097configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
51098configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
51099configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
51100configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
51101configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
51102configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
51103configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
51104configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
51105configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
51106configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
51107configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
51108@endif gcc-bootstrap
51109
51110@if gcc-no-bootstrap
51111configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 51112configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 51113configure-target-libmpx: maybe-all-target-libgcc
95e43135 51114configure-target-libvtv: maybe-all-target-libgcc
e3f56a99 51115configure-target-libcilkrts: maybe-all-target-libgcc
1b6c0831 51116configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 51117configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 51118configure-target-newlib: maybe-all-target-libgcc
2bf680c4 51119configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 51120configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
51121configure-target-libgfortran: maybe-all-target-libgcc
51122configure-target-libobjc: maybe-all-target-libgcc
e552509b 51123configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
51124configure-target-libtermcap: maybe-all-target-libgcc
51125configure-target-winsup: maybe-all-target-libgcc
51126configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82 51127configure-target-libffi: maybe-all-target-libgcc
6aa8ef82 51128configure-target-zlib: maybe-all-target-libgcc
6aa8ef82
DJ
51129configure-target-rda: maybe-all-target-libgcc
51130configure-target-libada: maybe-all-target-libgcc
51131configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
51132configure-target-libitm: maybe-all-target-libgcc
51133configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
51134@endif gcc-no-bootstrap
51135
51136
51137configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
51138
5286fdef
L
51139configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
51140
1b6c0831
L
51141configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
51142
95e43135
JBG
51143configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
51144
e3f56a99
NC
51145configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
51146configure-target-libcilkrts: maybe-all-target-libstdc++-v3
51147
1b6c0831
L
51148configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
51149configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
51150
6aa8ef82
DJ
51151configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
51152
51153
51154
2bf680c4
ILT
51155configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
51156
e552509b
ILT
51157configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
51158
6aa8ef82
DJ
51159configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
51160
51161configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
51162
e552509b
ILT
51163configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
51164
6aa8ef82
DJ
51165configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
51166
51167configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
51168
51169
6aa8ef82 51170configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
4849dfd8 51171configure-target-libffi: maybe-all-target-libstdc++-v3
6aa8ef82 51172
6aa8ef82
DJ
51173configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
51174
6aa8ef82
DJ
51175configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
51176
51177configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
51178
51179configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
51180
7ec59b9e
L
51181configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
51182configure-target-libitm: maybe-all-target-libstdc++-v3
51183
51184configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
51185
6aa8ef82 51186
907be67c 51187CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 51188GDB_TK = @GDB_TK@
907be67c
DJ
51189INSTALL_GDB_TK = @INSTALL_GDB_TK@
51190configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 51191all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 51192install-gdb: $(INSTALL_GDB_TK)
907a7241 51193
a2cc058a
NN
51194# Serialization dependencies. Host configures don't work well in parallel to
51195# each other, due to contention over config.cache. Target configures and
51196# build configures are similar.
51197@serialization_dependencies@
51198
15723a45
NN
51199# --------------------------------
51200# Regenerating top level configury
51201# --------------------------------
252b5132 51202
14a2a2f1 51203# Rebuilding Makefile.in, using autogen.
43be203f 51204AUTOGEN = autogen
6b784d9f 51205$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 51206 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 51207
a0da8069 51208# Rebuilding Makefile.
43be203f
AO
51209Makefile: $(srcdir)/Makefile.in config.status
51210 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
51211
479759c8 51212config.status: configure
10ecffb9 51213 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 51214
a0da8069 51215# Rebuilding configure.
43be203f 51216AUTOCONF = autoconf
da888c87 51217$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
0597bdc4
AM
51218 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4 \
51219 $(srcdir)/config/elf.m4 $(srcdir)/config/isl.m4 \
51220 $(srcdir)/libtool.m4 $(srcdir)/ltoptions.m4 $(srcdir)/ltsugar.m4 \
51221 $(srcdir)/ltversion.m4 $(srcdir)/lt~obsolete.m4
43be203f 51222 cd $(srcdir) && $(AUTOCONF)
252b5132 51223
3728fade
NN
51224# ------------------------------
51225# Special directives to GNU Make
51226# ------------------------------
51227
3728fade
NN
51228# Don't pass command-line variables to submakes.
51229.NOEXPORT:
51230MAKEOVERRIDES=
51231
252b5132 51232# end of Makefile.in